Command Guide of GS-4210 Series 1
Command Guide of GS-4210 Series Contents Chapter 1 COMMAND LINE INTERFACE……… ........................................12 1.1 Accessing the CLI ............................................................................................................................. 12 1.2 Command Line Modes ...................................................................................................................... 12 1.3 Command Help ..............................................................................
Command Guide of GS-4210 Series 4.2.7 tacacs default-config .................................................................................................................................. 44 4.2.8 tacacs host ................................................................................................................................................. 45 4.2.9 show tacacs default-config ......................................................................................................................
Command Guide of GS-4210 Series 4.4.19 ipv6 default-gateway ................................................................................................................................ 80 4.4.20 ipv6 dhcp.................................................................................................................................................. 81 4.4.21 ip service ........................................................................................................................................
Command Guide of GS-4210 Series 4.6.15 ip dhcp snooping database .................................................................................................................... 112 4.6.16 ip dhcp snooping database write-delay .................................................................................................. 113 4.6.17 ip dhcp snooping database timeout ....................................................................................................... 114 4.6.
Command Guide of GS-4210 Series 4.10.10 ip igmp snooping vlan static router port................................................................................................ 147 4.10.11 ip igmp snooping static group............................................................................................................... 148 4.10.12 ip igmp profile....................................................................................................................................... 150 4.10.
Command Guide of GS-4210 Series 4.13.9 lldp lldpdu ............................................................................................................................................... 182 4.13.10 lldp tx/rx................................................................................................................................................ 182 4.13.11 lldp med..................................................................................................................................
Command Guide of GS-4210 Series 4.17.6 ipv6 mld snooping vlan static-port .......................................................................................................... 223 4.17.7 ipv6 mld snooping vlan static-router-port ............................................................................................... 224 4.17.8 ipv6 mld snooping vlan static-group ....................................................................................................... 225 4.17.9 ipv6 mld profile ...
Command Guide of GS-4210 Series 4.21.2 qos trust ................................................................................................................................................. 258 4.21.3 qos map ................................................................................................................................................. 259 4.21.4 qos queue ...................................................................................................................................
Command Guide of GS-4210 Series 4.25 Storm Control ................................................................................................................................ 295 4.25.1 storm-control unit ................................................................................................................................... 295 4.25.2 storm-control ifg ..................................................................................................................................... 295 4.
Command Guide of GS-4210 Series 4.28.4 clock summer-time ................................................................................................................................. 326 4.28.5 show clock ............................................................................................................................................. 328 4.28.6 sntp .................................................................................................................................................
Command Guide of GS-4210 Series Chapter 1 COMMAND LINE INTERFACE 1.1 Accessing the CLI When accessing the management interface for the switch over a direct connection to the server’s console port, or via a Telnet connection, the switch can be managed by entering command keywords and parameters at the prompt. Using the switch's command-line interface (CLI) is very similar to entering commands on a UNIX system. This chapter describes how to use the Command Line Interface (CLI). 1.
Command Guide of GS-4210 Series The CLI is divided into various modes. The commands in one mode are not available until the operator switches to that particular mode. The commands available to the operator at any point in time depend upon the mode. Entering a question mark (?) at the CLI prompt, and displays a list of the available commands and descriptions of the commands. The CLI provides the following modes: User Mode When the operator logs into the CLI, the User Mode is the initial mode.
Command Guide of GS-4210 Series To use the key to do keyword auto completion: Switch(config)# copy tftp r Switch(config)# copy tftp running-config You do not need to type in the entire commands; you only need to type in enough characters for the CLI to recognize the command as unique. The following example shows you how to enter the show running-config command: Switch(config)# sh ru Note: If you want to stop displaying the information, press key “q” to escape. 1.
Command Guide of GS-4210 Series Serial Port Connection (Terminal) The above Workstations come with COM Port (DB9) or USB-to-RS-232 converter. The above Workstations have been installed with terminal emulator, such as Hyper Terminal included in Windows XP/2003. Serial cable -- one end is attached to the RS-232 serial port, while the other end to the console port of the Managed Switch. Ethernet Port Connection Network cables -- Use standard network (UTP) cables with RJ-45 connectors.
Command Guide of GS-4210 Series Chapter 2 CONSOLE CLI MANAGEMENT 2.1 Terminal Setup To configure the system, connect a serial cable to a COM port on a PC or notebook computer and to RJ-45 type of serial (console) port of the Managed Switch. Figure 2-1 Managed Switch Console Connectivity The console port of the Managed Switch is an RJ45 type, RS-232 serial port connector. It is an interface for connecting a terminal directly.
Command Guide of GS-4210 Series Figure 2-3 Hyper Terminal COM Port Configuration You can change these settings, if desired, after you log on. This management method is often preferred because you can remain connected and monitor the system during system reboots. Also, certain error messages are sent to the serial port, regardless of the interface through which the associated action was initiated.
Command Guide of GS-4210 Series 2.2 Loggin on to the Console Once the terminal is connected to the device, power on the Managed Switch, and the terminal will display “running testing procedures”. Then, the following message asks to log in user name and password. The factory default user name and password are shown as follows and the login screen in Figure 3-1 appears.
Command Guide of GS-4210 Series Figure 3-2: IP Information Screen Configuring IP Address 3. On ”GS-4210#” prompt, enter “configure”. 4. On “GS-4210(config)#” prompt, enter the following command and press as shown in Figure 3-3. GS-4210(config)# ip address 192.168.1.100 mask 255.255.255.0 GS-4210(config)# ip default-gateway 192.168.1.254 The previous command would apply the following settings for the Switch. IP Address: 192.168.1.100 Subnet Mask: 255.255.255.0 Gateway: 192.168.1.
Command Guide of GS-4210 Series Storing Current Switch Configuration 6. At the “#” prompt, enter the following command and press . # copy running-config startup-config Figure 3-4: Saving Current Configuration Command Screen If the IP is successfully configured, the Managed Switch will apply the new IP address setting immediately. You can access the Web interface of the Managed Switch through the new IP address.
Command Guide of GS-4210 Series Chapter 3 TELNET CLI MANAGEMENT 3.1 Telnet Login The Managed Switch also supports telnet for remote management. The switch asks for user name and password for remote login when using telnet; please use “admin” for both username and password. Default IP address: 192.168.0.
Command Guide of GS-4210 Series Chapter 4 Commands for CLI Configuration 4.1 802.1x 4.1.1 dot1x Command: dot1x no dot1x Default: Default is disabled Mode: Global Configuration Usage Guide: The “dot1x” command enables the global setting of IEEE 802.1X port-based network access control. Only when it is enabled, can the port-based setting work. Use the no form of this command to disable Example: The following example shows how to enable 802.1X access control on port 1.
Command Guide of GS-4210 Series Session Time (HH:MM:SS): 0: 0: 0: 0 4.1.2 dot1x authentication Command: dot1x (auto|force-auth|force-unauth) no dot1x Parameter: auto Port control will depend on the outcome of authentication. force-auth Force this port to be unconditional authorized. force-unauth Force this port to be unconditional unauthorized. Default: Default is disabled Mode: Interface Configuration Usage Guide: Use the “dot1x” command to enable 802.1X function on port.
Command Guide of GS-4210 Series gi1 Authentication | Initialize | Enabled | 3600 Quiet Period: 60 Second Supplicant timeout: 30 Second Max req: 2 Session Time (HH:MM:SS): 0: 0: 0: 0 4.1.3 dot1x reauthentication Command: dot1x reauth no dot1x reauth Default: Default is disabled Mode: Interface Configuration Usage Guide: Use the “dot1x reauth” command to enable 802.1X periodical reauthentication function on port. Use the no form of this command to disable this function.
Command Guide of GS-4210 Series Max req: 2 Session Time (HH:MM:SS): 0: 0: 0: 0 4.1.4 dot1x timeout reauth-period Command: dot1x timeout reauth-period <30-65535> no dot1x timeout reauth-period Parameter: <30-65535> Specify the re-authentication period. Default: 3600 seconds Mode: Interface Configuration Usage Guide: Use the “dot1x timeout reauth-period” command to configure the re-authentication period. Use the no form of this command to restore the period to default value.
Command Guide of GS-4210 Series 4.1.5 dot1x timeout quiet-period Command: dot1x timeout quiet-period <0-65535> no dot1x timeout quite-period Parameter: <0-65535> Specify the quiet period. Default: 36 seconds Mode: Interface Configuration Usage Guide: Use the “dot1x timeout quiet-period” command to configure the quiet period. Use the no form of this command to restore the period to default value. Example: The example shows how to configure quiet period to 300 sec. on port 1.
Command Guide of GS-4210 Series dot1x timeout supp-timeout <1-65535> no dot1x timeout supp-timeout Parameter: <1-65535> Specify the supplicant period. Default: 30 seconds Mode: Interface Configuration Usage Guide: Use the “dot1x timeout supp-timeout” command to configure the supplicant period. Use the no form of this command to restore the period to default value. Example: The example shows how to configure supplicant period to 300 sec. on port 1.
Command Guide of GS-4210 Series Parameter: <1-10> Specify the maximum request retries. Default: 2 times Mode: Interface Configuration Usage Guide: Use the “dot1x max-req” command to configure the maximum request retries. Use the no form of this command to restore the period to default value. Example: The example shows how to configure maximum request retries to 4 times on port 1.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: Use the dot1x guest-vlan command to globally enable guest VLAN function. Use the no form of this command to disable guest VLAN function. For a port to become a member of guest VLAN after authentication fail, you should also enable guest VLAN on that port. Example: The example shows how to configure VLAN 2 as guest VLAN and enable guest VLAN on port 1.
Command Guide of GS-4210 Series gi20 | Disabled | --gi21 | Disabled | --gi22 | Disabled | --gi23 | Disabled | --gi24 | Disabled | --gi25 | Disabled | --gi26 | Disabled | --gi27 | Disabled | --gi28 | Disabled | --- 4.1.9 dot1x guest-vlan Command: dot1x guest-vlan <1-4094> no dot1x guest-vlan Parameter: <1-4094> Specify VLAN ID to enable 802.1X guest VLAN. Default: Default is disabled Mode: Interface Configuration Usage Guide: Use the dot1x guest-vlan command to enable guest VLAN function on a port.
Command Guide of GS-4210 Series switch(config-if)# exit switch(config)# show dot1x guest-vlan Guest VLAN ID: 2 Port | Guest VLAN | In Guest VLAN -------+------------+--------------gi1 | Enabled | No gi2 | Disabled | --gi3 | Disabled | --gi4 | Disabled | --gi5 | Disabled | --gi6 | Disabled | --gi7 | Disabled | --gi8 | Disabled | --gi9 | Disabled | --gi10 | Disabled | --gi11 | Disabled | --gi12 | Disabled | --gi13 | Disabled | --gi14 | Disabled | --gi15 | Disabled | --gi16 | Disabled | --gi17 | Disabled | --g
Command Guide of GS-4210 Series 4.1.10 show dot1x Command: show dot1x Mode: Privileged EXEC Usage Guide: Use “show dot1x” command to show dot1x enabling status. Example: This example shows how to show the dot1x enabling status. Switch# show dot1x 802.1x protocol is: Disabled 802.1x protocol version: 2 4.1.11 show dot1x authenticated-hosts Command: show dot1x auth-hosts Mode: Privileged EXEC Usage Guide: Use “show dot1x auth-hosts” command to show all dot1x authorized hosts.
Command Guide of GS-4210 Series 4.1.12 show dot1x interface Command: show dot1x interface IF_PORTS Parameter: IF_PORTS Select port to show dot1x configurations. Mode: Privileged EXEC Usage Guide: Use “show dot1x interfaces” command to show dot1x information of the specified port. Example: This example shows how to show dot1x configurations on interface gi1.
Command Guide of GS-4210 Series Use “show dot1x guest-vlan” command to show dot1x guest-vlan status. Example: This example shows how to show the dot1x guest-vlan status.
Command Guide of GS-4210 Series 4.2 AAA 4.2.
Command Guide of GS-4210 Series Example: This example shows how to add a login authentication list to authenticate with order tacacs+, radius, local.
Command Guide of GS-4210 Series LISTNAME Specify the login authentication list name to use. Default: Default login authentication list for each line is “default”. Mode: Line Configuration Usage Guide: Different access methods are allowed to bind different login authentication lists. Use “login authentication” command to bind the list to specific line (console, telnet, ssh). Use no form to bind the “default” list back.
Command Guide of GS-4210 Series https | login | default 4.2.3 ip http login authentication Command: ip (http | https) login authentication LISTNAME no ip (http | https) login authentication Parameter: http Bind login authentication list to user access WEBUI with http protocol https Bind login authentication list to user access WEBUI with https protocol LISTNAME Specify the login authentication list name to use. Default: Default login authentication list for each line is “default”.
Command Guide of GS-4210 Series console | login | default | enable | default | exec | default | commands | default | acct-exec | default | acct-cmd( 0) | default | acct-cmd( 1) | default | acct-cmd( 2) | default | acct-cmd( 3) | default | acct-cmd( 4) | default | acct-cmd( 5) | default | acct-cmd( 6) | default | acct-cmd( 7) | default | acct-cmd( 8) | default | acct-cmd( 9) | default | acct-cmd(10) | default | acct-cmd(11) | default | acct-cmd(12) | default | acct-cmd(13) | default | acct-cmd(14) | default
Command Guide of GS-4210 Series | acct-cmd(12) | default | acct-cmd(13) | default | acct-cmd(14) | default | acct-cmd(15) | default ssh | login | default | enable | default | exec | default | commands | default | acct-exec | default | acct-cmd( 0) | default | acct-cmd( 1) | default | acct-cmd( 2) | default | acct-cmd( 3) | default | acct-cmd( 4) | default | acct-cmd( 5) | default | acct-cmd( 6) | default | acct-cmd( 7) | default | acct-cmd( 8) | default | acct-cmd( 9) | default | acct-cmd(10) | default | ac
Command Guide of GS-4210 Series LISTNAME Specify the login authentication list name to use. Default: Default enable authentication list for each line is “default”. Mode: Line Configuration Usage Guide: Different access methods are allowed to bind different enable authentication lists. Use “enable authentication” command to bind the list to specific line (console, telnet, ssh). Use no form to bind the “default” list back.
Command Guide of GS-4210 Series https | login | default 4.2.5 show aaa authentication Command: show aaa authentication (login | enable) lists Parameter: login Show login authentication list enable Show enable authentication list Mode: Privileged EXEC Usage Guide: Use “show aaa authentication” command to show login authentication or enable authentication method lists.
Command Guide of GS-4210 Series 4.2.6 show line lists Command: show line lists Mode: Privileged EXEC Usage Guide: Use “show line lists” command to show all lines’ binding list of all authentication, authorization, and accounting function. Example: This example shows how to show line binding lists.
Command Guide of GS-4210 Series 4.2.7 tacacs default-config Command: tacacs default-config [key TACACSKEY] [timeout <1-30>] Parameter: key TACACSKEY Specify default tacacs+ server key string timeout <1-30> Specify default tacacs+ server timeout value Default: Default tacacs+ key is “”. Default tacacs+ timeout is 5 seconds. Mode: Global Configuration Usage Guide: Use “tacacs default-config” command to modify default values of tacacs+ server.
Command Guide of GS-4210 Series 1 | 10 | 192.168.1.111 | 49 | tackey 4.2.8 tacacs host Command: tacacs host HOSTNAME [port <0-65535>] [key TACPLUSKEY] [priority <0-65535>] [timeout <1-30>] no tacacs [host HOSTNAME] Parameter: host HOSTNAME Specify tacacs+ server host name, both IP address and domain name are available.
Command Guide of GS-4210 Series ------+---------+------------------+--------+---------100 | 10 | 192.168.1.111 | 12345 | tacacs+ 4.2.9 show tacacs default-config Command: show tacacs default-config Mode: Privileged EXEC Usage Guide: Use “show tacacs default-config” command to show tacacs+ default configurations. Example: This example shows how to show default tacacs+ configurations. Switch# show tacacs default-config Timeout | Key --------+--------10 | tackey 4.2.
Command Guide of GS-4210 Series Prio | Timeout | IP Address | Port | Key ------+---------+------------------+--------+---------100 | 10 | 192.168.1.111 | 12345 | tacacs+ 4.2.
Command Guide of GS-4210 Series 5 | 20 | radiuskey This example shows how to create a new radius server with above default config and show results. Switch(config)# radius host 192.168.1.111 Switch# show radius Prio | IP Address | Auth-Port| Retries| Timeout| Usage-Type| Key ------+-----------------+----------+--------+--------+-----------+--------1 | 192.168.1.111 | 1812 | 5 | 20 | All | radiuskey 4.2.
Command Guide of GS-4210 Series Global Configuration Usage Guide: Use “radius host” command to add or edit an existing radius server. Use no form to delete one or all radius servers from database. Example: This example shows how to create a new radius server Switch(config)# radius host 192.168.1.111 auth-port 12345 key radiuskey priority 100 retransmit 5 timeout 10 type all This example shows how to show existing radius server.
Command Guide of GS-4210 Series 4.2.14 show radius Command: show radius Mode: Privileged EXEC Usage Guide: Use “show radius” command to show existing radius servers. Example: This example shows how to show existing radius server. Switch# show radius Prio | IP Address | Auth-Port| Retries| Timeout| Usage-Type| Key -----+----------------+----------+--------+--------+-----------+--------100 | 192.168.1.
Command Guide of GS-4210 Series 4.3 ACL 4.3.1 mac acl Command: mac acl NAME no mac acl NAME Parameter: NAME Specify the name of MAC ACL Mode: Global Configuration Usage Guide: Use the mac acl command to create a MAC access list and to enter mac-acl configuration mode. The name of ACL must be unique that can not have same name with other ACL or QoS policy. Once an ACL is created, an implicit “deny any” ACE created at the end of the ACL. That is, if there are no matches, the packets are denied.
Command Guide of GS-4210 Series Parameter: <1-2147483647> (Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL. (A:B:C:D:E:F/A:B:C Specify the source MAC address and mask of packet or any MAC address. :D:E:F|any) (A:B:C:D:E:F/A:B:C Specify the destination MAC address and mask of packet or any MAC address :D:E:F|any) [vlan <1-4094>] (Optional) Specify the vlan ID of packet.
Command Guide of GS-4210 Series no sequence <1-2147483647> Parameter: <1-2147483647> (Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL. (A:B:C:D:E:F/A:B:C Specify the source MAC address and mask of packet or any MAC address. :D:E:F|any) (A:B:C:D:E:F/A:B:C Specify the destination MAC address and mask of packet or any MAC address. :D:E:F|any) [vlan <1-4094>] (Optional) Specify the vlan ID of packet.
Command Guide of GS-4210 Series 4.3.4 ip acl Command: ip acl NAME no ip acl NAME Parameter: NAME Specify the name of IPv4 ACL Mode: Global Configuration Usage Guide: Use the ip acl command to create an IPv4 access list and to enter ip-acl configuration mode. The name of ACL must be unique that can not have same name with other ACL or QoS policy. Once an ACL is created, an implicit “deny any” ACE created at the end of the ACL. That is, if there are no matches, the packets are denied.
Command Guide of GS-4210 Series [sequence <1-2147483647>] permit tcp (A.B.C.D/A.B.C.D|any) (<0-65535>|echo| discard|daytime|ftp-data|ftp|telnet|smtp|time|hostname|whois|tacacs-ds|domain|www| pop2|pop3|syslog|talk|klogin|kshell|sunrpc|drip|PORT_RANGE|any) (A.B.C.D/A.B.C.
Command Guide of GS-4210 Series Mode: IP ACL Configuration Usage Guide: Use the permit command to add permit conditions for an IP ACE that bypass those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE can not be added if has the same conditions as existed ACE.
Command Guide of GS-4210 Series [sequence <1-2147483647>] deny (<0-255>|ipinip|egp|igp|hmp|rdp|ipv6| ipv6:rout|ipv6:frag|rsvp|ipv6:icmp|ospf|pim|l2tp|ip) (A.B.C.D/A.B.C.D|any) (A.B.C.D/A.B.C.D|any) [(dscp|precedence) VALUE]] [shutdown] [sequence <1-2147483647>] deny icmp (A.B.C.D/A.B.C.D|any) (A.B.C.D/A.B.C.
Command Guide of GS-4210 Series icmp-type Specify ICMP message type for filtering ICMP packet. Enter a type name of list or a number of ICMP message type. icmp-code Specify ICMP message code for filtering ICMP packet. igmp-type Specify IGMP type for filtering IGMP packet. Enter a type name of list or a number of IGMP type. l4-source-port Specify TCP/UDP source port of for filtering TCP/UDP packet. Enter a port name of list or a number of TCP/UDP port.
Command Guide of GS-4210 Series ipv6 acl NAME no ipv6 acl NAME Parameter: NAME Specify the name of IPv6 ACL Mode: Global Configuration Usage Guide: Use the ipv6 acl command to create an IPv6 access list and to enter ipv6-acl configuration mode. The name of ACL must be unique that can not have same name with other ACL or QoS policy. Once an ACL is created, an implicit “deny any” ACE created at the end of the ACL. That is, if there are no matches, the packets are denied.
Command Guide of GS-4210 Series (<0-65535>|echo|discard|daytime|ftp-data|ftp|telnet|smtp| time|hostname|whois|tacacs-ds|domain|www|pop2|pop3|syslog| talk|klogin|kshell|sunrpc|drip|PORT_RANGE|any) (X:X::X:X/<0-128>|any) (<0-65535>|echo|discard|daytime|ftp-data|ftp| telnet|smtp|time|hostname|whois|tacacs-ds|domain|www|pop2| pop3|syslog|talk|klogin|kshell|sunrpc|drip|PORT_RANGE|any) [match-all TCP_FLAG] [(dscp|precedence) VALUE] [sequence <1-2147483647>] permit udp (X:X::X:X/<0-128>|any) (<0-65535>|echo|disca
Command Guide of GS-4210 Series flags one after another without a space (example +syn-ack). Mode: IPv6 ACL Configuration Usage Guide: Use the permit command to add permit conditions for an IPv6 ACE that bypass those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit.
Command Guide of GS-4210 Series telnet|smtp|time|hostname|whois|tacacs-ds|domain|www|pop2| pop3|syslog|talk|klogin|kshell|sunrpc|drip|PORT_RANGE|any) [match-all TCP_FLAG] [(dscp|precedence) VALUE] [shutdown] [sequence <1-2147483647>] deny udp (X:X::X:X/<0-128>|any) (<0-65535>|echo|discard|time|nameserver|tacacs-ds|domain| bootps|bootpc|tftp|sunrpc|ntp|netbios-ns|snmp|snmptrap|who|syslog| talk|rip|PORT_RANGE|any) (X:X::X:X/<0-128>|any) (<0-65535>|echo|discard|time|nameserver|tacacs-ds|domain| bootps|bootpc|
Command Guide of GS-4210 Series [shutdown] (Optional) Shutdown interface while ACE hit Mode: IP ACL Configuration Usage Guide: Use the deny command to add deny conditions for an IPv6 ACE that drop those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit.
Command Guide of GS-4210 Series specify unique name string to show ACL with the name. Example: The example shows how to show all IP ACL. Switch(config)# show ip acl IP access list iptest sequence 1 deny ip 192.168.1.80/255.255.255.255 any 4.3.11 show acl utilization Command: show all utilization Mode: Global Configuration Usage Guide: Use the show acl utilization command to show the usage of PIE of ASIC. When a ACL bind to interface, it needs ASIC PIE resource to help to filter packet.
Command Guide of GS-4210 Series Group Used ACEs : 0 ACEs Used by ACL : 0 ACEs Used by QoS : 0 -----------------------------Group Index : 3 Group Assign to : None Group Maximun ACEs : 128 Group Remain ACEs : 128 Group Used ACEs : 0 ACEs Used by ACL : 0 ACEs Used by QoS : 0 -----------------------------Group Index : 4 Group Assign to : None Group Maximun ACEs : 128 Group Remain ACEs : 128 Group Used ACEs : 0 ACEs Used by ACL : 0 ACEs Used by QoS : 0 65
Command Guide of GS-4210 Series 4.4 Administration 4.4.1 enable Command: enable [<1-15>] disable [<1-14>] Parameter: <1-15> Specify privileged level to enable <1-14> Specify privileged level to enable Default: Default privilege level is 15 if no privilege level is specified on enable command. Default privilege level is 1 if no privilege level is specified on disable command. Mode: User EXEC Usage Guide: In User EXEC mode, user only allows to do a few actions.
Command Guide of GS-4210 Series Switch> show privilege Current CLI Username: Current CLI Privilege: 3 4.4.2 exit Command: exit Mode: User EXEC Privileged EXEC Global Configuration Interface Configuration Line Configuration ....... Usage Guide: In User EXEC mode, “exit” command will close current CLI session. In other modes, “exit” command will go to the parent mode. And every mode has the “exit” command.
Command Guide of GS-4210 Series Privileged EXEC Usage Guide: Use “configure” command to enter global configuration mode. In global configuration mode, the prompt will show as “Switch(config)#”. Example: This example shows how to enter global configuration mode. Switch# configure Switch(config)# 4.4.4 interface Command: interface IF_PORTS interface range IF_PORTS Parameter: IF_PORTS Specify the port to select. This parameter allows partial port name and ignore case. For Example: Gigabit4 ......
Command Guide of GS-4210 Series Switch> enable Switch# exit Switch> Switch# configure Switch(config)# interface gi1 Switch(config-if)# 4.4.5 line Command: line ( console | telnet | ssh ) Parameter: console Select console line to configure. telnet Select telnet line to configure. ssh Select ssh line to configure. Mode: Global Configuration Usage Guide: Some configurations are line based. In order to configure these configurations, we need to enter Line Configuration mode to configure them.
Command Guide of GS-4210 Series Command: end Mode: Privileged EXEC Global Configuration Interface Configuration Line Configuration ....... Usage Guide: Use “end” command to return to privileged EXEC mode directly. Every mode except User EXEC mode has the “end” command. Example: This example shows how to enter Interface Configuration mode and use end command to go back to privileged EXEC mode Switch# configure Switch(config)# interface gi1 Switch(config-if)# end Switch# 4.4.
Command Guide of GS-4210 Series 4.4.8 system name Command: system name NAME Parameter: NAME Specify system name string. Mode: Global Configuration Usage Guide: Use “system name” command to modify system name information of the switch. The system name is also used to be CLI prompt.
Command Guide of GS-4210 Series 4.4.9 system contact Command: system contact CONTACT Parameter: CONTACT Specify contact string. Mode: Global Configuration Usage Guide: Use “system contact” command to modify contact information of the switch.
Command Guide of GS-4210 Series 4.4.10 system location Command: system location LOCATION Parameter: LOCATION Specify location string. Mode: Global Configuration Usage Guide: Use “system location” command to modify location information of the switch.
Command Guide of GS-4210 Series 4.4.11 username Command: username WORD<0-32> [privilege (admin | user | <0-15>)] (password | secret) WORD<0-32> no username WORD<0-32> Parameter: username Specify user name to add/delete/edit. WORD<0-32> privilege admin Specify privilege level to be admin (privilege 15) privilege user Specify privilege level to be user (privilege 1) privilege <0-15> Specify custom privilege level password Specify password string and make it not encrypted.
Command Guide of GS-4210 Series 15 | secret | test | 7p57T9yMkViSUS 4.4.12 enable password Command: enable [privilege <0-15>] (password | secret) WORD<0-32> no enable [privilege <0-15>] Parameter: privilege <0-15> Specify the privilege level to configure. If no privilege level is specified, default is 15. password Specify password string and make it not encrypted. WORD<0-32> secret Specify password string and make it encrypted.
Command Guide of GS-4210 Series ip address A.B.C.D [mask A.B.C.D] Parameter: address A.B.C.D Specify IPv4 address for switch mask A.B.C.D Specify net mask address for switch Default: Default IP address is 192.168.0.100 and default net mask is 255.255.255.0. Mode: Global Configuration Usage Guide: Use “ip address” command to modify administration ipv4 address. This address is very important.
Command Guide of GS-4210 Series Default IP address of default gateway is 192.168.1.254. Mode: Global Configuration Usage Guide: Use “ip default-gateway” command to modify default gateway address. And use “no ip default-gateway” to restore default gateway address to factory default. Example: This example shows how to modify the ipv4 address of the switch. Switch(config)# ip default-gateway 192.168.1.100 This example shows how to show current ipv4 default gateway of the switch.
Command Guide of GS-4210 Series This example shows how to modify the DNS server of the switch. Switch(config)# ip dns 111.111.111.111 222.222.222.222 This example shows how to show current DNS server of the switch. Switch# show ip dns DNS Server 1 : 111.111.111.111 DNS Server 2 : 222.222.222.222 4.4.16 ip dhcp Command: ip dhcp no ip dhcp Default: Default DHCP client is disabled.
Command Guide of GS-4210 Series 4.4.17 ipv6 autoconfig Command: ipv6 autoconfig no ipv6 autoconfig Default: Default IPv6 auto config is enabled. Mode: Global Configuration Usage Guide: Use “ipv6 autoconfig” command to enabled IPv6 auto configuration feature. Use “no ipv6 autoconfig” command to disabled IPv6 auto configuration feature. Example: This example shows how to disable IPv6 auto config. Switch(config)# no ipv6 autoconfig This example shows how to show current IPv6 auto config state.
Command Guide of GS-4210 Series Command: ipv6 address X:X::X:X prefix <0-128> Parameter: address X:X::X:X Specify IPv6 address for switch prefix <0-128> Specify IPv6 prefix length for switch Mode: Global Configuration Usage Guide: Use “ipv6 address” command to specify static IPv6 address. Example: This example shows how to add static ipv6 address of the switch. Switch(config)# ipv6 address fe80::20e:2eff:fef1:4b3c prefix 128 This example shows how to show current ipv6 address of the switch.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: Use “ipv6 default-gateway” command to modify default gateway IPv6 address. Example: This example shows how to modify the ipv6 default gateway address of the switch.
Command Guide of GS-4210 Series Switch(config)# ipv6 dhcp This example shows how to show current dhcpv6 client state of the switch. Switch# show ipv6 dhcp DHCPv6 Status : enabled 4.4.21 ip service Command: ip (telnet | ssh | http | https) no ip (telnet | ssh | http | https) Parameter: telnet Enable/Disable telnet service Ssh Enable/Disable ssh service http Enable/Disable http service https Enable/Disable https service Default: Default telnet service is disabled.
Command Guide of GS-4210 Series Switch(config)# exit Switch# show line telnet Telnet =============================== Telnet Server : enabled Session Timeout : 10 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) This example shows how to enable https service and show current https service status. Switch(config)# ip https Switch(config)# exit Switch# show ip https HTTPS daemon : enabled Session Timeout : 10 (minutes) 4.4.
Command Guide of GS-4210 Series Switch(config)# ip http session-timeout 15 Switch(config)# ip https session-timeout 20 This example shows how to enable https service and show current https service status. Switch# show ip http HTTPS daemon : enabled Session Timeout : 15 (minutes) Switch# show ip https HTTPS daemon : disabled Session Timeout : 20 (minutes) 4.4.23 exec-timeout Command: exec-timeout <0-65535> Parameter: <0-65535> Specify session timeout minutes.
Command Guide of GS-4210 Series Switch(config)# line telnet Switch(config-line)# exec-timeout 20 Switch(config-line)# exit Switch(config)# line ssh Switch(config-line)# exec-timeout 25 Switch(config-line)# exit This example shows how show line information.
Command Guide of GS-4210 Series Default: Default password fail retry number is 3. Mode: line Configuration Usage Guide: Use “password-thresh” command to specify the password fail retry number for CLI running on console, telnet or ssh service. When user input password to login and authenticate failed, the fail retry number will increase one. After fail retry number exceed configured one, the CLI will block login for the period of silent time which configured by the command “silent-time”.
Command Guide of GS-4210 Series SSH ================================== SSH Server : disabled Session Timeout : 10 (minutes) History Count : 128 Password Retry : 6 Silent Time : 0 (seconds) 4.4.25 silent-time Command: silent-time <0-65535> Parameter: <0-65535> Specify silent time with unit seconds. 0 means do not silent. Default: Default silent time is 0. Mode: line Configuration Usage Guide: Use “silent time” command to specify the silent time for CLI running on console, telnet or ssh service.
Command Guide of GS-4210 Series This example shows how show line information.
Command Guide of GS-4210 Series Usage Guide: Use “history” command to specify the maximum commands history number for CLI running on console, telnet or ssh service. Every command input by user will record in history buffer. If all history commands exceed configured history number, older ones will be deleted from buffer. Use “no history” to disable the history feature. And use “show history” to show all history commands.
Command Guide of GS-4210 Series Silent Time : 0 (seconds) This example shows how show history commands. Switch# show history Maximun History Count: 100 -------------------------------------------------1. enable 2. configure 3. line console 4. exit 5. show history 6. line 7. exit 8. show history 9. configure 10. line 11. line console 12. exit 13. line console 14. history 100 15. exit 16. show history 17. exit 18. show history 4.4.
Command Guide of GS-4210 Series Mode: Privileged EXEC Usage Guide: Use “clear service” command to kill all existing sessions for the select service. Example: This example shows how to enable telnet service and show current telnet service status. Switch# clear telnet 4.4.28 ssl Command: ssl Mode: Global Configuration Usage Guide: Use “ssl” command to generate security certificate files such as RSA, DSA. Example: This example shows how to generate certificate files.
Command Guide of GS-4210 Series image1 (backup) 0 4.4.29 ping Command: ping HOSTNAME [count <1-999999999>] Mode: Privileged EXEC Usage Guide: Use “ping” command to do network ping diagnostic. Example: This example shows how to ping remote host 192.168.1.111. Switch# ping 192.168.1.111 PING 192.168.1.111 (192.168.1.111): 56 data bytes 64 bytes from 192.168.1.111: icmp_seq=0 ttl=128 time=10.0 ms 64 bytes from 192.168.1.111: icmp_seq=1 ttl=128 time=0.0 ms 64 bytes from 192.168.1.
Command Guide of GS-4210 Series Mode: User EXEC Privileged EXEC Usage Guide: Use “traceroute” command to do network trace route diagnostic. Example: This example shows how to trace route host 192.168.1.111. Switch# traceroute 192.168.1.111 traceroute to 192.168.1.111 (192.168.1.111), 30 hops max, 40 byte packets 1 192.168.1.111 (192.168.1.111) 0 ms 10 ms 0 ms 4.4.31 clear arp Command: clear arp [A.B.C.D] show arp Parameter: A.B.C.D Specify specific arp entry to clear.
Command Guide of GS-4210 Series This example shows how to clear all arp entries. Switch(config)# clear arp 4.4.32 show version Command: show version Mode: User EXEC Privileged EXEC Usage Guide: Use “show version” command to show loader and firmware version and build date. Example: This example shows how to show system version. Switch# show version Loader Version : 1.3.0.26225 Loader Date : Thu May 17 15:19:42 CST 2012 Firmware Version : 2.5.0-beta.32811 Firmware Date : Mon Sep 24 19:33:42 CST 2012 4.
Command Guide of GS-4210 Series Usage Guide: Use “show info” command to show system summary information. Example: This example shows how to show system version. Switch# show info System Name : Switch System Location : Default Location System Contact : Default Contact MAC Address : 00:30:4F:EF:01:02 IP Address : 192.168.1.1 Subnet Mask : 255.255.255.0 Loader Version : 1.3.0.26225 Loader Date : Thu May 17 15:19:42 CST 2012 Firmware Version : 2.5.0-beta.
Command Guide of GS-4210 Series Switch# show history Maximun History Count: 100 -------------------------------------------------1. enable 2. configure 3. line console 4. exit 5. show history 6. line 7. exit 8. show history 9. configure 10. line 11. line console 12. exit 13. line console 14. history 100 15. exit 16. show history 17. exit 18. show history 4.4.35 show username Command: show username Mode: Privileged EXEC Usage Guide: Use “show username” command show all user accounts in local database.
Command Guide of GS-4210 Series Switch# show username Priv | Type | User Name | Password ------+--------+--------------------+-----------------------01 | secret | | dnXencJRwflV6 15 | secret | admin | FzjrGO6vfbERY 15 | secret | test | 7p57T9yMkViSUS 4.4.36 show ip Command: show ip Mode: User EXEC Privileged EXEC Usage Guide: Use “show ip” command to show system IPv4 address, net mask and default gateway. Example: This example shows how to show current ipv4 address of the switch.
Command Guide of GS-4210 Series Usage Guide: Use “show ip dhcp” command to show IPv4 dhcp client enable state. Example: This example shows how to show current dhcp client state of the switch. Switch# show ip dhcp DHCP Status : enabled 4.4.38 show ipv6 Command: show ipv6 Mode: User EXEC Privileged EXEC Usage Guide: Use “show ipv6” command to show system IPv6 address, net mask, default gateway and auto config state. Example: This example shows how to show current ipv6 address of the switch.
Command Guide of GS-4210 Series show ipv6 dhcp Mode: User EXEC Privileged EXEC Usage Guide: Use “show ipv6 dhcp” command to show system IPv6 dhcp client enable state. Example: This example shows how to show current dhcpv6 client state of the switch. Switch# show ipv6 dhcp DHCPv6 Status : enabled 4.4.40 show line Command: show line [(console | telnet | ssh)] Parameter: console Select console line to show. telnet Select telnet line to show. ssh Select ssh line to show.
Command Guide of GS-4210 Series Switch# show line Console ============================== Session Timeout : 15 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) Telnet =============================== Telnet Server : disabled Session Timeout : 20 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) SSH ================================== SSH Server : disabled Session Timeout : 25 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) 100
Command Guide of GS-4210 Series 4.5 Cable Diagnostics 4.5.1 show cable-diag interface Command: show cable-diag interfaces Parameter: login Add/Edit login authentication list enable Add/Edit enable authentication list default Edit default authentication list LISTNAME Specify the list name for authentication type METHODLIST Specify the authenticate method, including none, local, enable, tacacs+, radius.
Command Guide of GS-4210 Series 4.6 DHCP Snooping 4.6.1 Ip dhcp snooping Command: ip dhcp snooping no ip dhcp snooping Default: DHCP snooping is disabled Mode: Global Configuration Usage Guide: Use the ip dhcp snooping command to enable DHCP Snooping function. Use the no form of this command to disable. Example: The example shows how to enable DHCP Snooping on VLAN 1. You can verify settings by the following show ip dhcp snooping command.
Command Guide of GS-4210 Series Default: Default is disabled on all VLANs Mode: Global Configuration Usage Guide: Use the ip dhcp snooping vlan command to enable VLANs on DHCP Snooping function. Use the no form of this command to disable VLANs on DHCP Snooping function. Example: The example shows how to enable VLAN 1-100 on DHCP Snooping, and then disable VLAN 30-40 on DHCP Snooping. You can verify settings by the following show ip dhcp snooping command.
Command Guide of GS-4210 Series Mode: Interface Configuration Usage Guide: Use the ip dhcp snooping trust command to set trusted interface. The switch does not check DHCP packets that are received on the trusted interface; it simply forwards it. Use the no form of this command to set untrusted interface. Example: The example shows how to set interface gi1 to trust. You can verify settings by the following show ip dhcp snooping interface command.
Command Guide of GS-4210 Series switch(config-if)# ip dhcp snooping verify mac-address switch(config-if)# do show ip dhcp snooping interface gi1 Interfaces|Trust State|Rate (pps)|hwaddr Check|Insert Option82| ----------+-----------+----------+------------+---------------+ gi1 | Untrusted | None | enabled | disabled | 4.6.
Command Guide of GS-4210 Series 4.6.6 clear ip dhcp snooping statistics Command: clear ip dhcp snooping interfaces IF_PORTS statistics Parameter: IF_PORTS specifies ports to clear statistics Mode: Global Configuration Usage Guide: Use the clear ip dhcp snooping interfaces statistics command to clear statistics that are recorded on interface. Example: The example shows how to clear statistics on interface gi1. You can verify settings by the following show ip dhcp snooping interface statistics command.
Command Guide of GS-4210 Series Example: The example shows how to show settings of DHCP Snooping switch(config)# show ip dhcp snooping DHCP Snooping : enabled Enable on following Vlans : 1 circuit-id default format: vlan-port remote-id: : 00:11:22:33:44:55 (Switch Mac in Byte Order) 4.6.
Command Guide of GS-4210 Series Option82 Dropped | Invalid Drop -------+-----------+-----------------+----------------------+-------------------------+-------gi1 | 0 | 0 | 0 | 0 | 0 4.6.9 show ip dhcp snooping binding Command: show ip dhcp snooping binding Mode: Global Configuration Usage Guide: Use the show ip dhcp snooping binding command to show binding entries that learned by DHCP Snooping Example: The example shows how to show binding entries that learned by DHCP Snooping.
Command Guide of GS-4210 Series Interface Configuration Usage Guide: Use the ip dhcp snooping option command to enable that insert option82 content into packet. Use the no form of this command to disable. Example: The example shows how to enable option82 insertion. You can verify settings by the following show ip dhcp snooping interface command.
Command Guide of GS-4210 Series running-config command. switch(config)# interface gi1 switch(config-if)# ip dhcp snooping option action replace 4.6.12 ip dhcp snooping option circuit-id Command: ip dhcp snooping [vlan <1-4094>] option circuit-id STRING no ip dhcp snooping [vlan <1-4094>] option circuit-id Parameter: vlan <1-4094> VLAN ID to set user defined circuit-id string STRING Circuit-id string, 1 to 63 ASCII characters, no spaces.
Command Guide of GS-4210 Series Command: ip dhcp snooping option remote-id STRING no ip dhcp snooping option remote-id Parameter: STRING Remote-id string, 1 to 63 ASCII characters, no spaces. Default: Default remote-id is the switch MAC address in byte order Mode: Global Configuration Usage Guide: Use the ip dhcp snooping option remote-id command to set user-defined remote-id string. Remote-id is an global and unique string. Use the no form of this command to default setting.
Command Guide of GS-4210 Series switch(config)# do show ip dhcp snooping option remote-id Remote ID: test_remote 4.6.15 ip dhcp snooping database Command: ip dhcp snooping database flash ip dhcp snooping database tftp (A.B.C.D|HOSTNAME) NAME no ip dhcp snooping database Parameter: (A.B.C.
Command Guide of GS-4210 Series Agent Running : Running Delay Timer Expiry : 300 seconds Abort Timer Expiry : 299 Last Succeded Time : None Last Failed Time : None Last Failed Reason : No failure recorded. Total Attempts : 1 Successful Transfers : 0 Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0 Successful Writes : 0 Failed Writes : 0 4.6.
Command Guide of GS-4210 Series Type : tftp: 192.168.1.50 FileName : backup_file Write delay Timer : 60 seconds Abort Timer : 300 seconds Agent Running : Running Delay Timer Expiry : 300 seconds Abort Timer Expiry : 299 Last Succeded Time : None Last Failed Time : None Last Failed Reason : No failure recorded. Total Attempts : 1 Successful Transfers : 0 Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0 Successful Writes : 0 Failed Writes : 0 4.6.
Command Guide of GS-4210 Series snooping database command. switch(config)# ip dhcp snooping database timeout 60 switch(config)# do show ip dhcp snooping database Type : tftp: 192.168.1.50 FileName : backup_file Write delay Timer : 300 seconds Abort Timer : 60 seconds Agent Running : Running Delay Timer Expiry : 300 seconds Abort Timer Expiry : 299 Last Succeded Time : None Last Failed Time : None Last Failed Reason : No failure recorded.
Command Guide of GS-4210 Series Write delay Timer : 300 seconds Abort Timer : 60 seconds Agent Running : Running Delay Timer Expiry : 300 seconds Abort Timer Expiry : 299 Last Succeded Time : None Last Failed Time : None Last Failed Reason : No failure recorded. Total Attempts : 0 Successful Transfers : 0 Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0 Successful Writes : 0 Failed Writes : 0 4.6.
Command Guide of GS-4210 Series Last Failed Time : None Last Failed Reason : No failure recorded.
Command Guide of GS-4210 Series Total Attempts : 1 Successful Transfers : 1 Failed Transfers : 0 Successful Reads : 1 Failed Reads : 0 Successful Writes : 0 Failed Writes : 0 118
Command Guide of GS-4210 Series 4.7 DoS 4.7.
Command Guide of GS-4210 Series land-deny Enable/Disable land-deny protection. nullscan-deny Enable/Disable nullscan-deny protection. pod-deny Enable/Disable pod-deny protection. smurf-deny Enable/Disable smurf-deny protection. smurf-netmask Specify smurf netmask. syn-sportl1024- Enable/Disable syn-sportl1024-deny protection. deny synfin-deny Enable/Disable synfin-deny protection. synrst-deny Enable/Disable synrst-deny protection.
Command Guide of GS-4210 Series smurf-netmask : DoS information syn-sportl1024-deny : SYN packets with sport less than 1024 synfin-deny : SYN and FIN bits set in the packet synrst-deny : SYNC and RST bits set in the packet tcp-frag-off-min-check : TCP fragment packet with offset equals to one tcpblat-deny : Source TCP port equals to destination TCP port tcphdr-min-check : Check minimum TCP header tcphdr-min-length : DoS information udpblat-deny : Source UDP port equals to
Command Guide of GS-4210 Series 4.7.2 port dos Command: dos no dos Default: Default value is disable Mode: Interface Configuration Usage Guide: Use “dos” command to enable dos configuration on selected ports. Use “no dos” to diable on selected ports. Example: This example shows how to show current dos state on interface gi1 Switch# show dos interfaces gi1 Port | DoS Protection | Gratuitous-ARP ----------+----------------+---------------gi1 | enabled | disabled 4.7.
Command Guide of GS-4210 Series Use “ip gratuitous-arps” command to enable dos configuration on selected ports. Use “no ip gratuitous-arps” to diable on selected ports. Example: This example shows how to show current dos state on interface gi1 Switch# show dos interfaces gi1 Port | DoS Protection | Gratuitous-ARP ----------+----------------+---------------gi1 | enabled | disabled 4.7.4 show dos Command: show dos [interfaces IF_PORTS] Parameter: IF_PORTS Enable/Disable syn-fin protection.
Command Guide of GS-4210 Series Command: ip arp inspection no ip arp inspection Default: Dynamic Arp inspection is disabled Mode: Global Configuration Usage Guide: Use the ip arp inspection command to enable Dynamic Arp Inspection function. Use the no form of this command to disable. Example: The example shows how to enable Dynamic Arp Inspection on VLAN 1. You can verify settings by the following show ip arp inspection command.
Command Guide of GS-4210 Series Global Configuration Usage Guide: Use the ip arp inspection vlan command to enable VLANs on Dynamic Arp Inspection function. Use the no form of this command to disable VLANs on Dynamic Arp Inspection function. Example: The example shows how to enable VLAN 1-100 on Dynamic Arp Inspection, and then disable VLAN 30-40 on Dynamic Arp Inspection. You can verify settings by the following show ip arp inspection command.
Command Guide of GS-4210 Series The example shows how to set interface gi1 to trust. You can verify settings by the following show ip arp inspection interface command.
Command Guide of GS-4210 Series Example: The example shows how to set interface gi1 to validate “src-mac” 、 “dst-mac” and “ip allow zeros”. You can verify settings by the following show ip arp inspection interface command.
Command Guide of GS-4210 Series switch(config)# interface gi1 switch(config)# ip arp inspection rate-limit 30 switch(config)# do show ip arp inspection interface gi1 Interfaces | Trust State | Rate (pps) | SMAC Check | DMAC Check | IP Check/Allow Zero | ------------+--------------+--------------+----------------|-----------------+-------------------------+ gi1 | Untrusted | 30 | disabled | disabled | disabled/disabled 4.8.
Command Guide of GS-4210 Series show ip arp inspection Mode: Global Configuration Usage Guide: Use the show ip arp inspection command to show settings of Dynamic Arp Inspection Example: The example shows how to show settings of Dynamic Arp Inspection switch(config)# show ip arp inspection Dynamic ARP Inspection : enabled Enable on Vlans : 1 4.8.
Command Guide of GS-4210 Series The example shows how to show statistics of interface gi1.
Command Guide of GS-4210 Series 4.9 GVRP 4.9.1 gvrp Command: gvrp no gvrp Default: no gvrp Mode: Global Configuration Usage Guide: ‘no gvrp’ will clear all dynamic vlan entry. do not learn vlan. The configure can use ‘show gvrp’. Example: The following example specifies that set global gvrp test. Switch(config)# gvrp Switch# show gvrp GVRP Status -------------------GVRP : Enabled Join time : 200 ms Leave time : 600 ms LeaveAll time : 10000 ms 4.9.
Command Guide of GS-4210 Series Default: no gvrp Mode: Interface Configuration Usage Guide: ‘no gvrp’ will remove dynamic port from vlan ‘gvrp’ must work at port mode is trunk. The configure can use show gvrp configuration. Example: The following example specifies that set port gvrp test. The port gvrp enable must set port mode is trunk firstly.
Command Guide of GS-4210 Series learning vlan. Example: The following example specifies that set gvrp registration mode test. Switch(config)# interface gi1 Switch(config-if)# gvrp registration-mode fixed Switch# show gvrp configuration interfaces gi1 Port | GVRP-Status | Registration | Dynamic VLAN Creation --------+---------------+---------------+---------------------gi1 Enabled Fixed Disabled 4.9.
Command Guide of GS-4210 Series 4.9.5 clear gvrp statistics Command: clear gvrp (error-statistics | statistics) [interfaces IF_PORTS] Parameter: (error-statistics | Error-statistics: error gvrp packet statistics statistics) Statistics: gvrp event message statistics [interfaces Specifies posts to clear statistics IF_PORTS] Mode: Privileged Configuration Usage Guide: This command will clear the ports error statistics or statistics info.
Command Guide of GS-4210 Series IF_PORTS] Mode: Privileged Configuration Usage Guide: This command will display the ports error statistics or statistics info. Example: The following example specifies that display gvrp error statistics and statistics test.
Command Guide of GS-4210 Series Switch# show gvrp GVRP Status -------------------GVRP : Disabled Join time : 200 ms Leave time : 600 ms LeaveAll time : 10000 ms 4.9.8 show gvrp port configuration Command: show gvrp configuration [interface IF_PORTS] Parameter: [interface Display Specifies posts configuration IF_PORTS] Mode: Privileged Configuration Usage Guide: This command will display the ports configuration info. Example: The following example specifies that display gvrp port configuration test.
Command Guide of GS-4210 Series 137
Command Guide of GS-4210 Series 4.10 IGMP Snooping 4.10.1 Ip igmp snooping Command: ip igmp snooping no ip igmp snooping Mode: Global Configuration Usage Guide: ‘no ip igmp snooping’ will clear all ip igmp snooping dynamic group and dynamic router port, and make the static ip igmp group invalid. Then do not learning the dynamic group and router port by igmp message. The configure can use ‘show ip igmp snooping’. Example: The following example specifies that set ip igmp snooping test.
Command Guide of GS-4210 Series no ip igmp snooping report-suppression Default: ip igmp snooping report-suppression Mode: Global Configuration Usage Guide: ‘no ip igmp snooping report-suppression’ will disable igmp v1/v2 igmp report suppression function. So when receive report will forward to the vlan router ports. The configure can use ‘show ip igmp snooping’. Example: The following example specifies that disable ip igmp snooping report-suppression test.
Command Guide of GS-4210 Series Global Configuration Usage Guide: ‘ip igmp snooping version 3’, then will support v3 basic mode. When change version from v3 to v2. the all querier version will update to version 2. The configure can use ‘show ip igmp snooping’. Example: The following example specifies that set ip igmp snooping version 3 test.
Command Guide of GS-4210 Series The configure can use ‘show ip igmp snooping’. Example: The following example specifies that set ip igmp unknown multicast action router-port test.
Command Guide of GS-4210 Series Global Configuration Usage Guide: When change lookup method, it will remove all groups. The configure can use ‘show ip igmp snooping’. Example: The following example specifies that set ip igmp lookup method is src-dst-ip test.
Command Guide of GS-4210 Series Example: The following example specifies that set ip igmp snooping querier test. Test must be create static vlan firstly. Switch(config)# vlan 2 Switch(config-vlan)# exit Switch(config)# ip igmp snooping vlan 2 querier Switch(config)#exit Switch#show ip igmp snooping querier VID | State | Status | Version | Querier IP -------+-------------+-------------+------------+-------------------1 | Disabled | Non-Querier | No | -----2 | Enabled | Querier | v2 | 192.168.1.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: ‘no ip igmp snooping vlan 1’ will clear vlan all ip igmp snooping dynamic group and dynamic router port, and make the static ip igmp group invalid witch vlan ID is vlan 1. Then do not learning the dynamic group and router port by igmp message for vlan 1. The configure can use show ip igmp snooping vlan 1. Example: The following example specifies that set ip igmp snooping vlan test. Test must be enable ip igmp snooping firstly.
Command Guide of GS-4210 Series Command: ip igmp snooping vlan last-member-query-count <1-7> no ip igmp snooping vlan last-member-query-count ip igmp snooping vlan last-member-query-interval <1-60> no ip igmp snooping vlan last-member-query-interval [no] ip igmp snooping vlan router learn pim-dvmrp [no] ip igmp snooping vlan fastleave ip igmp snooping vlan query-interval <30-18000> no ip igmp snooping vlan
Command Guide of GS-4210 Series Default: no ip igmp snooping vlan 1-4094 last-member-query-count no ip igmp snooping vlan 1-4094 last-member-query-interval ip igmp snooping vlan 1-4094 router learn pim-dvmrp no ip igmp snooping vlan 1-4094 fastleave no ip igmp snooping vlan 1-4094 query-interval no ip igmp snooping vlan 1-4094 response-time no ip igmp snooping vlan 1-4094 robustness-variable Mode: Global Configuration Usage Guide: ‘no ip igmp snooping vlan 1 (last-member-query-count | last-member-query-inte
Command Guide of GS-4210 Series Command: [no] ip igmp snooping vlan static-port IF_PORTS [no] ip igmp snooping vlan forbidden-port IF_PORTS Parameter: VLAN-LIST specifies VLAN ID list to set IF_PORTS specifies a port list to set or remove Default: None static/forbidden ports Mode: Global Configuration Usage Guide: ‘ip igmp snooping vlan 1 static-port gi1-2’ will add static port gi1-2 for vlan 1.the all known vlan 1 ipv4 group will add the static ports.
Command Guide of GS-4210 Series Parameter: VLAN-LIST specifies VLAN ID list to set IF_PORTS specifies a port list to set or remove Default: None static/forbidden router ports Mode: Global Configuration Usage Guide: ‘ip igmp snooping vlan 1 static-router-port gi1-2’ will add static router port gi1-2 for vlan 1. ‘ip igmp snooping vlan 1 forbidden-router-port gi2’ will add forbidden router port gi2 for vlan 1. This will also remove gi2 from static router port.
Command Guide of GS-4210 Series Command: [no] ip igmp snooping vlan static-group interfaces IF_PORTS [no] ip igmp snooping vlan group show ip igmp snooping groups [(dynamic | static)] clear ip igmp snooping groups [(dynamic | static)] Parameter: VLAN-LIST specifies VLAN ID list to set ip-addr specifies multicast group ipv4 address IF_PORTS specifies port list to set or remove Mode: Global Configuration Usage Guide: ‘ip igmp snooping vlan 1 static-group 2
Command Guide of GS-4210 Series Total Number of Entry = 0 4.10.
Command Guide of GS-4210 Series IP igmp profile action: permit Range low ip: 224.1.1.1 Range high ip: 224.1.1.8 Switch(config-igmp-profile)#exit Switch(config)# ip igmp profile 10 Switch(config-igmp-profile)# profile range ip 224.1.1.5 224.1.1.10 action deny Switch(config-igmp-profile)#show ip igmp profile IP igmp profile index: 10 IP igmp profile action: deny Range low ip: 224.1.1.5 Range high ip: 224.1.1.
Command Guide of GS-4210 Series Mode: Interface Configuration Usage Guide: After create ip igmp profile entry. Can use ‘ip igmp filter 1’ to bind a profile for port. When the port bind a profile. Then the port learning group will update, if the group is not match the profile rule it will remove the port from the group. static group is excluded. The configure can use ‘show ip igmp filter ’ to display Example: The following example specifies that set ip igmp filter test.
Command Guide of GS-4210 Series show ip igmp max-group action [interfaces IF_PORTS] Parameter: <1-128> specifies profile ID (deny | replace) Deny: current port igmp group arrived max-groups, don’t add group. Replace: current port igmp group arrived max-groups, remove port for rand group, and add port to new group. Default: no ip igmp max-groups ip igmp max-groups action deny Mode: Interface Configuration Usage Guide: use ‘ip igmp max-groups 10’ to limit port learning max group num is 10.
Command Guide of GS-4210 Series gi3 : deny gi4 : deny gi5 : deny gi6 : deny --More-- 4.10.15 clear ip igmp snooping groups Command: clear ip igmp snooping groups [(dynamic | static)] Parameter: (dynamic | static) IP igmp group type is dynamic or static Mode: Privileged Configuration Usage Guide: This command will clear the ip igmp groups for dynamic or static or all of type. The configure can use ‘show ip igmp snooping groups’ to check.
Command Guide of GS-4210 Series Mode: Privileged Configuration Usage Guide: This command will clear the igmp statistics. The configure can use show ip igmp snooping. Example: The following example specifies that clear ip igmp snooping statistics test. Switch# clear ip igmp snooping statistics Switch# show ip igmp snooping 4.10.
Command Guide of GS-4210 Series Mode: Privileged Configuration Usage Guide: This command will display the ip igmp groups for dynamic or static or all of type. Example: The following example specifies that show ip igmp snooping groups test. Switch# show ip igmp snooping groups Switch# show ip igmp snooping groups dynamic Switch# show ip igmp snooping groups static 4.10.
Command Guide of GS-4210 Series Command: show ip igmp snooping querier Mode: Privileged Configuration Usage Guide: This command will display all of the static vlan ip igmp querier info. Example: The following example specifies that show ip igmp snooping querier test. Switch# show ip igmp snooping querier VID | State | Status | Version | Querier IP -------+-------------+-------------+------------+-------------------1 | Disabled | Non-Querier | No | -----Total Entry 1 4.10.
Command Guide of GS-4210 Series Forward Method : mac Unknown Multicast Action : Flood Packet Statistics Total RX : 0 Valid RX : 0 Invalid RX : 0 Other RX : 0 Leave RX : 0 Report RX : 0 General Query RX : 0 Specail Group Query RX : 0 Specail Group & Source Query RX : 0 Leave TX : 0 Report TX : 0 General Query TX : 0 Specail Group Query TX : 0 Specail Group & Source Query TX : 0 4.10.
Command Guide of GS-4210 Series IGMP Snooping VLAN 1 admin : disabled IGMP Snooping operation mode : disabled IGMP Snooping robustness: admin 2 oper 2 IGMP Snooping query interval: admin 125 sec oper 125 sec IGMP Snooping query max response : admin 10 sec oper 10 sec IGMP Snooping last member query counter: admin 2 oper 2 IGMP Snooping last member query interval: admin 1 sec oper 1 sec IGMP Snooping last immediate leave: disabled IGMP Snooping automatic learning of multicast router ports: enabled 4.10.
Command Guide of GS-4210 Series Command: show ip igmp profile [<1-128>] Parameter: [<1-128>] Show specifies index profile info Mode: Privileged Configuration Usage Guide: This command will display ip igmp profile info. Example: The following example specifies that show ip igmp profile test. Switch# show ip igmp profile IP igmp profile index: 1 IP igmp profile action: permit Range low ip: 224.1.1.1 Range high ip: 224.1.1.8 IP igmp profile index: 2 IP igmp profile action: deny Range low ip: 225.1.1.
Command Guide of GS-4210 Series Usage Guide: This command will display ip igmp port filter info. Example: The following example specifies that show ip igmp filter test. Switch# show ip igmp filter Port ID | Profile ID ---------+-------------gi1 : 1 gi2 : None gi3 : None gi4 : None gi5 : None --More-- 4.10.
Command Guide of GS-4210 Series Switch(config)#exit Switch# show ip igmp max-group Port ID | Max Group ---------+-------------gi1 : 50 gi2 : 256 gi3 : 256 gi4 : 256 gi5 : 256 --More-- 4.10.27 show ip igmp port max-group action Command: show ip igmp max-group action [interfaces IF_PORTS] Parameter: [interfaces Show specifies ports max-group action IF_PORTS] Mode: Privileged Configuration Usage Guide: This command will display ip igmp port max-group action.
Command Guide of GS-4210 Series gi2 : deny gi3 : deny gi4 : deny gi5 : deny --More-- 163
Command Guide of GS-4210 Series 4.11 IP Source Guard 4.11.1 ip source verify Command: ip source verify ip source verify mac-and-ip no ip source verify Mode: Interface Configuration Usage Guide: Use the ip source verify command to enable IP Source Guard function. Default IP Source Guard filter source IP address. The “mac-and-ip” filters not only source IP address but also source IP address.
Command Guide of GS-4210 Series 4.11.2 ip source binding Command: ip source binding A:B:C:D:E:F vlan <1-4094> A.B.C.D interface IF_PORT no ip source binding A:B:C:D:E:F vlan <1-4094> A.B.C.D interface IF_PORT Parameter: A:B:C:D:E:F Specify a MAC address of a binding entry VLAN <1-4094> Specify a VLAN ID of a binding entry A.B.C.D Specify IP address and MASK of a binding entry. IF_PORT Specify interface of a binding entry.
Command Guide of GS-4210 Series Parameter: IF_PORTS specifies ports to show Mode: Global Configuration Usage Guide: Use the show ip source interface command to show settings of IP Source Guard of interface Example: The example shows how to show settings of IP Source Guard of interface gi1 switch# show ip source interfaces gi1 Port | Status | Max Entry | Current Entry ----------+--------------------+-------------+--------------gi1 | Verify MAC+IP | No Limit | 0 4.11.
Command Guide of GS-4210 Series gi1 | 1 | 00:11:22:33:44:55 | 192.168.1.55(255.255.255.
Command Guide of GS-4210 Series 4.12 Link Aggregation 4.12.1 lag load-balance Command: lag load-balance (src-dst-mac | src-dst-mac-ip) Parameter: src-dst-mac Specify algorithm to balance traffic by using source and destination MAC address for all packets. src-dst-mac-ip Specify algorithm to balance traffic by using source and destination IP address for IP packets and using source and destination MAC address for non-IP packets.
Command Guide of GS-4210 Series 6 | --------- | 7 | --------- | 8 | --------- | 4.12.2 lacp system-priority Command: lacp system-priority <1-65535> no lacp system-priority Parameter: <1-65535> Specify system priority value Default: Default system priority is 1. Mode: Global Configuration Usage Guide: LACP system priority is used for two connected DUT to select master switch. Lower system priority value has higher priority.
Command Guide of GS-4210 Series <1-65535> Specify port priority value Default: Default port priority is 1. Mode: Interface Configuration Usage Guide: LACP port priority is used for two connected DUT to select aggregation ports. Lower port priority value has higher priority. And the port with higher priority will be selected into LAG first. The only way to show this configuration is using “show running-config” command. Example: This example shows how to configure interface fa1 lacp port priority to 100.
Command Guide of GS-4210 Series This example shows how to configure interface gi1 lacp timeout to short. Switch(config)# interface gi1 Switch(config-if)# lacp timeout short 4.12.5 lag Command: lag <1-8> mode (static | active | passive) no lag Parameter: <1-8> Specify the LAG id for the interface static Specify the LAG to be static mode and join the interface into this LAG. active Specify the LAG to be dynamic mode and join the interface into this LAG with LACP active port.
Command Guide of GS-4210 Series Load Balancing: src-dst-mac-ip. Group ID | Type | Ports ---------+--------+---------------------------------------1 | LACP | Inactive: gi1-3 2 | ------ | 3 | ------ | 4 | ------ | 5 | ------ | 6 | ------ | 7 | ------ | 8 | ------ | 4.12.6 show lag Command: Show lag Mode: Privilleged Configuration Usage Guide: Use “show lag” command to show current LAG load balance algorithm and members active/inactive status. Example: This example shows how to show current LAG status.
Command Guide of GS-4210 Series 8 | ------ | 173
Command Guide of GS-4210 Series 4.13 LLDP 4.13.1 lldp Command: lldp no lldp Mode: Global Configuration Usage Guide: The “lldp” command globally enable LLDP RX/TX ability. “no lldp run” command disables the LLDP RX/TX ability and the behavior when receiving LLDP PDU would be decided by “lldp lldpdu” command. The LLDP enable status is displayed by “show lldp” command. Example: The following example sets LLDP enable/disable.
Command Guide of GS-4210 Series 4.13.2 lldp tx-interval Command: lldp tx-interval <5-32768> Parameter: <5-32768> Specify the LLDP PDU TX interval in unit of second. Default: lldp tx-interval 30 Mode: Global Configuration Usage Guide: This command globally configures the LLDP TX interval. It should be noticed that both “lldp tx-interval” and “lldp tx-delay” affects the LLDP PDU TX time. The larger value of the two configuration decides the TX interval.
Command Guide of GS-4210 Series <1-10> Specify the LLDP re-initial delay time in unit of second. Default: lldp reinit-delay 2 Mode: Global Configuration Usage Guide: This command globally configures the LLDP re-initial delay. This delay avoids LLDP generate too many PDU if the port is up and down frequently. The delay starts to count when the port links down. The port would not generate LLDP PDU until the delay counts to zero. The configuration could be shown by “show lldp” command.
Command Guide of GS-4210 Series This command globally configures the LLDP PDU hold multiplier that decides time-to-live (TTL) value sent in LLDP advertisements: TTL = (tx-interval * holdtime-multiplier). The configuration could be shown by “show lldp” command. Example: This example sets LLDP hold time multiplier to 3.
Command Guide of GS-4210 Series State: Disabled Timer: 10 Seconds Hold multiplier: 4 Reinit delay: 2 Seconds Tx delay: 10 Seconds LLDP packet handling: Flooding 4.13.6 lldp tlv-select Command: lldp tlv-select TLV [TLV] [TLV] [TLV] [TLV] [TLV] [TLV] [TLV] no lldp tlv-select Parameter: TLV Specify the selected optional TLV. Available optional TLVs are : sys-name (system name), sys-desc (system description), sys-cap (system capability), mac-phy (802.3 MAC-PHY), lag (802.
Command Guide of GS-4210 Series Hold multiplier: 3 Reinit delay: 2 Seconds Tx delay: 2 Seconds LLDP packet handling: Flooding Port | State | Optional TLVs | Address -------- + ------ + -------------- + -------gi1 | RX,TX | PD, SN, SD, SC |192.168.1.254 gi3 | RX,TX | PD, SN, SD, SC |192.168.1.254 Port ID: gi1 802.3 optional TLVs: 802.3-mac-phy, 802.3-lag, 802.3-max-frame-size, management-addr 802.1 optional TLVs PVID: Enabled Port ID: gi3 802.3 optional TLVs: 802.3-mac-phy, 802.3-lag, 802.
Command Guide of GS-4210 Series Switch(config)# interface gi1 Switch(config-if-range)# lldp tlv-select pvid disable Switch(config-if-range)# exit Switch(config)# interface gi2 Switch(config-if-range)# lldp tlv-select pvid enable Switch(config-if-range)# exit Switch(config)# show lldp interfaces gi1,gi2 State: Disabled Timer: 10 Seconds Hold multiplier: 3 Reinit delay: 2 Seconds Tx delay: 2 Seconds LLDP packet handling: Flooding Port | State | Optional TLVs | Address -------- + ------ + -------------- + ---
Command Guide of GS-4210 Series VLAN-LIST Specify VLAN list. The configured ports should be member of all the specified VLANs or the VLAN-LIST is not valid. Mode: Interface Configuration Usage Guide: The commands per port configure to add or remove VLAN list for 802.1 VLAN-NAME TLV. The configuration could be shown by “show lldp” command. Example: This example add VLAN 1, 100, 4000 to VLAN-NAME TLV for port gi10.
Command Guide of GS-4210 Series 4.13.9 lldp lldpdu Command: lldp lldpdu (filtering|flooding|bridging) Parameter: (filtering|flooding|b Specifies that when LLDP is globally disabled, received LLDP packets are filtered ridging) (dropped), flooded (forwarded to all interfaces) or bridged (flooded to VLAN member ports). Default: Lldp lldpdu flooding Mode: Global Configuration Usage Guide: This command globally configures the LLDP PDU handling behavior when LLDP is globally disabled.
Command Guide of GS-4210 Series lldp rx no lldp rx lldp tx no lldp tx Mode: Interface Configuration Usage Guide: The command per port configures the LLDP PDU RX and TX ability. The configuration could be shown by “show lldp” command. Example: This example sets port gi1 to enable LLDP RX and TX, port gi2 to disable RX but enable TX, port gi3 to enable RX but disable TX, port gi4 to disable RX and TX.
Command Guide of GS-4210 Series Tx delay: 2 Seconds LLDP packet handling: Bridging Port | State | Optional TLVs | Address -------- + ------ + -------------- + -------gi1 | RX,TX | |192.168.1.254 gi2 | TX | |192.168.1.254 gi3 | RX | |192.168.1.254 gi4 |Disable | |192.168.1.254 4.13.11 lldp med Command: lldp med no lldp med Mode: Interface Configuration Usage Guide: The command per port configures the LLDP MED enable status.
Command Guide of GS-4210 Series gi3 | Yes | Yes | No | No | No gi4 | Yes | Yes | No | No | No gi5 | No | Yes | No | No | No gi6 | No | Yes | No | No | No gi7 | No | Yes | No | No | No gi8 | No | Yes | No | No | No 4.13.12 lldp med tlv-select Command: lldp med tlv-select MEDTLV [MEDTLV] [MEDTLV] [MEDTLV] no lldp med tlv-select Parameter: MEDTLV MED optional TLV. Available optional TLVs are : network-policy, location, poe-pse, inventory.
Command Guide of GS-4210 Series Switch(config-if-range)# no lldp med tlv-select Switch(config-if-range)# exit Switch(config)# show lldp interfaces gi1-4 med Port | Capabilities | Network Policy | Location | Inventory | POE ------ + ------------- + -------------- + -------- + ----------+ ----gi1 | Yes | Yes | Yes | Yes | Yes gi2 | Yes | Yes | Yes | Yes | Yes gi3 | Yes | No | No | No | No gi4 | Yes | No | No | No | No 4.13.
Command Guide of GS-4210 Series 4.13.14 lldp med network-policy Command: lldp med network-policy <1-32> app (voice|voice-signaling|guest-voice|guest-voice-signaling|softphone-voice| video-conferencing|streaming-video|video-signaling) vlan <1-4094> vlan-type (tag|untag) priority <0-7> dscp <0-63> no lldp med network-policy <1-32> Parameter: <1-32> Specify the network policy index (voice|voice-signali Specify the network policy application type.
Command Guide of GS-4210 Series priority 3 dscp 4 Switch(config)# lldp med network-policy 32 app video-conferencing vlan 5 vlan-type tag priority 1 dscp 63 Switch(config)# show lldp med Fast Start Repeat Count: 10 lldp med network-policy voice: auto Network policy 1 ------------------Application type: Voice Signaling VLAN ID: 2 tagged Layer 2 priority: 3 DSCP: 4 Network policy 32 ------------------Application type: Conferencing VLAN ID: 5 tagged Layer 2 priority: 1 DSCP: 63 4.13.
Command Guide of GS-4210 Series Example: This example binds network policy for interface gi1 and gi2.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: The command globally configures the network policy voice auto mode enable status. In voice auto mode, if network-policy TLV is selected, a voice type network policy would be attached to PDU that contents comes from voice VLAN configuration. This works for voice VLAN module to exchange voice VLAN information with link partner.
Command Guide of GS-4210 Series Usage Guide: The command per port configures the LLDP MED location data. The “no lldp med location” command clear the location data. The “coordinate”, “civic-address”, “ecs-elin” locations are independent, so at most three location TLVs could be sent if their data are not empty. The configuration of location could be shown by “show lldp interface PORT med” command. Example: This example sets location data for interface gi1.
Command Guide of GS-4210 Series Mode: Global Configuration Privileged Configuraiton Usage Guide: The “show lldp” and “show lldp interface” command displays LLDP global information including LLDP enable status, LLDP PDU TX interval, hold time multiplier, re-initial delay, TX delay, and LLDP packet handling when LLDP is disabled. The per port information displayed includes port LLDP RX/TX enable status, selected TLV to TX and IP address.
Command Guide of GS-4210 Series show lldp local-device show lldp interfaces IF_NMLPORTS local-device Parameter: IF_NMLPORTS Specify the ports to display information Mode: Privileged Configuration Global Configuration Usage Guide: The commands show the local configuration of LLDP PDU. By the commands, a user can view the contents of LLDP/ LLDP-MED TLVs that would be attached in LLDP PDU. Example: This example displays the local device information.
Command Guide of GS-4210 Series 100BASE-TX half duplex, 100BASE-TX full duplex Operational MAU type: Other or unknown 802.3 Link Aggregation Aggregation capability: Capable of being aggregated Aggregation status: Not currently in aggregation Aggregation port ID: 0 802.3 Maximum Frame Size: 1522 802.
Command Guide of GS-4210 Series 4.13.20 show lldp neighbor Command: show lldp neighbor show lldp interfaces IF_NMLPORTS neighbor Parameter: IF_NMLPORTS Specify the ports to display information Mode: Global Configuration Privileged Configuration Usage Guide: When LLDP PDU is received on LLDP RX enable ports, system would store the PDU information in database until time to live of the PDU counts down to zero. The commands display the received neighbor LLDP PDU information.
Command Guide of GS-4210 Series 100BASE-TX half duplex, 100BASE-TX full duplex Operational MAU type: 100BASE-TX full duplex mode 802.3 Link Aggregation Aggregation capability: Capable of being aggregated Aggregation status: Not currently in aggregation Aggregation port ID: 0 802.3 Maximum Frame Size: 1522 802.
Command Guide of GS-4210 Series 4.13.21 show lldp med Command: show lldp med show lldp interfaces IF_NMLPORTS med Parameter: IF_NMLPORTS Specify the ports to display information Mode: Global Configuration Privileged Configuration Usage Guide: The commands display the LLDP MED configuration information. Example: This example display the LLDP MED information.
Command Guide of GS-4210 Series gi3 | Yes | No | No | No | No gi4 | Yes | No | No | No | No gi5 | No | Yes | No | No | No gi6 | No | Yes | No | No | No gi7 | No | Yes | No | No | No gi8 | No | Yes | No | No | No gi9 | Yes | Yes | No | No | No gi10 | Yes | Yes | No | No | No gi11 | Yes | Yes | No | No | No gi12 | Yes | Yes | No | No | No gi13 | Yes | Yes | No | No | No gi14 | Yes | Yes | No | No | No gi15 | Yes | Yes | No | No | No gi16 | Yes | Yes | No | No | No gi17 | Yes | Yes | No | No | No gi18 | Yes |
Command Guide of GS-4210 Series 4.13.22 show lldp statistics Command: show lldp statistics show lldp interfaces IF_NMLPORTS statistics Parameter: IF_NMLPORTS Specify the ports to display information Mode: Global Configuration Privileged Configuration Usage Guide: The commands display the LLDP RX/TX statistics. Example: This example display the LLDP statistics.
Command Guide of GS-4210 Series gi11 | 3377 | 10129 | 0 | 0 | 0 | 0 | 0 gi12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi13 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi19 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi20 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi23 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 gi25 | 3377
Command Guide of GS-4210 Series Privileged Configuration Usage Guide: The LLDP PDU is composed by TLVs and selected number TLVs may compose a large PDU that the system can not handle. The maximum PDU length is to take the smaller number of jumbo frame size minus 30 bytes (30 bytes kept for header) or 1488 bytes. The commands display the length of LLDP TLVs and if the TLVs overload the PDU length. The TLVs with status marked “overload” would not be transmitted.
Command Guide of GS-4210 Series 4.14 Logging 4.14.1 logging Command: logging no logging Mode: Global Configuration Usage Guide: Enable/Disable the logging service. logging Enable the logging service. It is the global option of logging service. The status of the logging service is available from the command “show logging”. no logging Disable the logging service. When the logging service is disabled, all messages will stop logging to the system. show logging Display the global logging status.
Command Guide of GS-4210 Series ----------+----------+---------------------------------+----------+---------------------------------buffered | enabled | | |emerg, alert, crit, error, warning, notice, info 4.14.2 logging flash | buffered Command: logging (flash|buffered) [severity <0-7>] no logging (flash|buffered) Parameter: flash Specify logging to flash. buffer Specify logging to RAM. severity Specify the minimum severity mask of logging message.
Command Guide of GS-4210 Series no logging buffered Disable the capability to log message to RAM. show logging Display the logging status. It will show the logging configuration of the system, including the global logging status, and the lists of logging services. When the local logging capability is enabled, the status of the local logging (flash or buffered) will be shown by the command “show logging”; Otherwise, the logging entry will be removed from the service list.
Command Guide of GS-4210 Series no logging Parameter: ip-addr Specify the IP address of remote logging server. port Specify the port number of remote logging server. severity Specify the minimum severity mask of logging message. facility Specify the facility of logging messages.
Command Guide of GS-4210 Series Switch(config)# show logging Logging service is enabled TARGET | STATUS | Server (PORT) | FACILITY | LOG LEVEL ----------+----------+---------------------------------+----------+---------------------------------buffered | enabled | | |emerg, alert, crit, error, warning, notice, info flash | enabled | | |emerg, alert, crit, error, warning, notice host | enabled | 192.168.1.100( 2048)| local1 |emerg, alert, crit, error Switch(config)# no logging host 192.168.1.
Command Guide of GS-4210 Series buffered | enabled | | |emerg, alert, crit, error, warning, notice, info 4.14.5 show logging flash | buffered Command: show logging (flash|buffered) Parameter: flash Specify showing the messages logged to flash. buffered Specify showing the messages logged to RAM. Mode: Global Configuration Privileged Configuration Usage Guide: Show the messages logged to flash/RAM. show logging flash Show the messages logged to the flash.
Command Guide of GS-4210 Series 4| Jan 01 08:00:28| AAA| info| User '' is authorized with privilege level 1 5| Jan 01 08:00:28| AAA| info| User '' login from console success 6| Jan 01 08:00:24| System| info| Sysinfo variable 'resetdefault' is set to value '0' 7| Jan 01 08:00:23| System| notice| System Startup! 4.14.6 clear logging flash | buffered Command: clear logging (flash|buffered) Parameter: flash Specify showing the messages logged to flash. buffered Specify showing the messages logged to RAM.
Command Guide of GS-4210 Series 4| Jan 01 08:00:28| AAA| info| User '' is authorized with privilege level 1 5| Jan 01 08:00:28| AAA| info| User '' login from console success 6| Jan 01 08:00:24| System| info| Sysinfo variable 'resetdefault' is set to value '0' 7| Jan 01 08:00:23| System| notice| System Startup! Switch# clear logging buffered Switch# show logging buffered Log messages in buffered NO.
Command Guide of GS-4210 Series 4.15 MAC Address Table 4.15.1 clear mac address-table Command: clear mac address-table dynamic [interfaces IF_PORTS] [vlan <1-4094>] Parameter: IF_PORTS Delete all dynamic addresses on the specified interface.
Command Guide of GS-4210 Series Command: mac address-table aging-time <10-630> Parameter: <10-630> Specify aging time value of second. Default: In default aging out time is 300s.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: Use the mac address-table static global configuration command to add static addresses to the MAC address table. Use the no form of this command to remove static entries from the table. You can verify your setting by entering the show mac address-table static Privileged EXEC command Example: This example shows how to add static addresses to the MAC address table.
Command Guide of GS-4210 Series You can verify your setting by entering the show mac address-table static Privileged EXEC command Example: This example shows how to add filter mac addresses to the MAC address table.
Command Guide of GS-4210 Series ------+-------------------------+--------------------------+---------------1 | DE:AD:BE:EF:01:02 | Management | CPU 1 | 00:00:E3:00:00:12 | Dynamic | gi11 1 | 00:01:02:03:04:05 | Static | gi5 1 | 00:14:78:3B:1E:E6 | Dynamic | gi1 100 | 01:06:07:09:0A:0B | Static | gi1,gi5,gi10 20 | 0A:0B:0C:0D:0E:0F | Static | All Total number of entries: 6 The following example displays address table entries containing the specified MAC address.
Command Guide of GS-4210 Series show mac address-table aging-time Mode: Privileged EXEC Usage Guide: Use the show mac address-table aging-time command in EXEC mode to display the aging time for dynamic mac entries. Example: This example shows how to display aging time of dynamic mac address entry Switch# show mac address-table aging-time Mac Address Table aging time: 300 sec 4.16 Mirror 4.16.
Command Guide of GS-4210 Series <1-4094> Specify the mirrored VLAN ID IF_NMLPORT Specify the SPAN destination. A destination must be a physical port allow-ingress Enable ingress traffic forwarding.
Command Guide of GS-4210 Series show mirror [session <1-4>] Parameter: <1-4> Specify the mirror session to display Mode: Privileged EXEC Usage Guide: Use the show mirror command in EXEC mode to display mirror session configuration Example: This example shows how to display mirror session configuration Switch(config)# show mirror Session 1 Configuration Source RX Port : gi2-5 Source TX Port : gi2-5 Destination port : gi1 Ingress State: disabled Session 2 Configuration Mirrored source : Not Config Destina
Command Guide of GS-4210 Series 4.17 MLD Snooping 4.17.1 ipv6 mld snooping Command: ipv6 mld snooping no ipv6 mld snooping show ipv6 mld snooping Default: Disabled Mode: Global Configuration Usage Guide: ‘no ipv6 mld snooping’ will clear all ipv6 mld snooping dynamic group and dynamic router port, and make the static ipv6 mld group invalid. Then do not learning the dynamic group and router port by mld message.
Command Guide of GS-4210 Series Operation Version : v1 Forward Method : mac Unknown Multicast Action : Flood 4.17.2 ipv6 mld snooping report-suppression Command: ipv6 mld snooping report-suppression no ipv6 mld snooping report-suppression Default: Enabled Mode: Global Configuration Usage Guide: ‘no ipv6 mld snooping report-suppression’ will disable mld v1 report suppression function. So when receive report will forward to the vlan router ports. The configure can use ‘show ipv6 mld snooping’.
Command Guide of GS-4210 Series Command: ipv6 mld snooping version (1|2) Parameter: Ipv6 mld snooping running version 1 or 2 (1|2) Default: Version 1 Mode: Global Configuration Usage Guide: When ipv6 mld snooping version is 1 ,the version 2 packet is not process.The configure can use ‘show ipv6 mld snooping’. Example: This example shows how to set ipv6 mld snooping version 2.
Command Guide of GS-4210 Series VLAN-LIST specifies VLAN ID list to set Default: Disabled Mode: Global Configuration Usage Guide: ‘no ipv6 mld snooping vlan 1’ will clear vlan all ipv6 mld snooping dynamic group and dynamic router port, and make the static ipv6 mld group invalid witch vlan ID is vlan 1. Then do not learning the dynamic group and router port by mld message for vlan 1. The configure can use ‘show ipv6 mld snooping vlan 1’. Example: This example shows how to set ipv6 mld snooping vlan.
Command Guide of GS-4210 Series MLD Snooping automatic learning of multicast router ports: enabled 4.17.
Command Guide of GS-4210 Series interval <1-60> query-interval Specify query interval to set. Default is 125 <30-18000> response-time Specify a response time to set. default is 10 <5-20> robustness-variabl Specify a robustness value to set, default is 2 e <1-7> Mode: Global Configuration Usage Guide: ‘no ipv6 mld snooping vlan 1 (last-member-query-count | last-member-query-interval | query-interval | response-time | robustness-variable)’ will set the vlan parameters to default.
Command Guide of GS-4210 Series Command: [no] ipv6 mld snooping vlan static-port IF_PORTS [no] ipv6 mld snooping vlan forbidden-port IF_PORTS Parameter: VLAN-LIST Specify VLAN ID list to set IF_PORTS Specify a port list to set or remove Default: None static/forbidden ports Mode: Global Configuration Usage Guide: ‘ipv6 mld snooping vlan 1 static-port gi1-2’ will add static port gi1-2 for vlan 1. The all known vlan 1 ipv6 group will add the static ports.
Command Guide of GS-4210 Series Parameter: VLAN-LIST specifies VLAN ID list to set IF_PORTS specifies a port list to set or remove Default: None static/forbidden router ports Mode: Global Configuration Usage Guide: ‘ipv6 mld snooping vlan 1 static-router-port gi1-2’ will add static router port gi1-2 for vlan 1. ‘ipv6 mld snooping vlan 1 forbidden-router-port gi2’ will add forbidden router port gi2 for vlan 1. This will also remove gi2 from static router port.
Command Guide of GS-4210 Series [no] ipv6 mld snooping vlan static-group interfaces IF_PORTS [no] ipv6 mld snooping vlan group Parameter: VLAN-LIST specifies VLAN ID list to set ip-addr specifies multicast group ipv4 address IF_PORTS specifies port list to set or remove Mode: Global Configuration Usage Guide: ‘ipv6 mld snooping vlan 1 static-group ff12::1 interfaces gi1’ will add static group. The static group will not learning others dynamic port.
Command Guide of GS-4210 Series ipv6 mld profile <1-128> profile range ipv6 [ipv6-addr] action (permit | deny) show ipv6 mld profile [<1-128>] Parameter: <1-128> specifies profile ID Start ipv6 multicast address [ipv6-addr] End ipv6 multicast address (permit | deny) permit: allow Multicast address range ipv6 address learning Mode: ipv6 mld profile <1-128> Global Configuration profile range ipv6 [ipv6-addr] action (permit | deny) mld profile config mode Usage Guid
Command Guide of GS-4210 Series Switch(config-mld-profile)#exit Switch(config)# exit Switch# show ipv6 mld profile IPv6 mld profile index: 1 IPv6 mld profile action: permit Range low ip: ff13::1 Range high ip: ff13::10 IPv6 mld profile index: 5 IPv6 mld profile action: deny Range low ip: ff12::1 Range high ip: ff12::12 4.17.
Command Guide of GS-4210 Series Switch(config)# ipv6 mld profile 1 Switch(config-igmp-profile)# profile range ipv6 ff13::1 ff13::10 action permit Switch(config-igmp-profile)#exit Switch(config)# interface gi1 Switch(config-if)# ipv6 mld filter 1 Switch(config-if)#exit Switch(config)# exit Switch# show ipv6 mld filter Port ID | Profile ID ---------+-------------gi1 : 1 gi2 : None gi3 : None gi4 : None gi5 : None 4.17.
Command Guide of GS-4210 Series Interface mode Usage Guide: use ‘ipv6 mld max-groups 10’ to limit port learning max group num is 10. When then port had learned more than 10 groups, then the more than 10 group will be remove the port form group. static group is excluded.
Command Guide of GS-4210 Series clear ipv6 mld snooping groups [(dynamic | static)] Parameter: None Clear ipv6 mld groups include dynamic and static (dynamic | static) ipv6 mld group type is dynamic or static Default: clear all ipv6 mld groups Mode: Privileged mode Usage Guide: This command will clear the ipv6 mld groups for dynamic or static or all of type. The configuration can use ‘show ipv6 mld snooping groups’ to check.
Command Guide of GS-4210 Series This example shows how to clear ipv6 mld snooping statistics Switch# clear ipv6 mld snooping statistics Switch# show ipv6 mld snooping 4.17.14 show ipv6 mld snooping groups counters Command: show ipv6 mld snooping groups counters Mode: privileged mode Usage Guide: This command will display the ipv6 mld group counter include static group. Example: This example shows how to display ipv6 mld snooping group counter Switch# show ipv6 mld snooping counters 4.17.
Command Guide of GS-4210 Series Example: This example shows show ipv6 mld snooping groups Switch# show ipv6 mld snooping groups Switch# show ipv6 mld snooping groups dynamic Switch# show ipv6 mld snooping groups static 4.17.
Command Guide of GS-4210 Series show ipv6 mld snooping Mode: privileged mode Usage Guide: This command will display ipv6 mld snooping global info.
Command Guide of GS-4210 Series show ipv6 mld snooping vlan [VLAN-LIST] Parameter: [VLAN-LIST] Show specifies vlan ipv6 mld snooping info Mode: privileged mode Usage Guide: This command will display ipv6 mld snooping vlan info.
Command Guide of GS-4210 Series Example: This example shows how to show ipv6 mld snooping forward-all Switch# show ipv6 mld snooping forward-all MLD Snooping VLAN : 1 MLD Snooping static port : None MLD Snooping forbidden port : None 4.17.20 show ipv6 mld profile Command: show ipv6 mld profile [<1-128>] Parameter: [<1-128>] Show specifies index profile info Mode: privileged mode Usage Guide: This command will display ipv6 mld profile info.
Command Guide of GS-4210 Series show ipv6 mld filter [interfaces IF_PORTS] Parameter: [interfaces Show specifies ports filter IF_PORTS] Mode: privileged mode Usage Guide: This command will display ipv6 mld port filter info. Example: This example shows how to show ipv6 mld filter Switch# show ipv6 mld filter Port ID | Profile ID ---------+-------------gi1 : 1 gi2 : None gi3 : None gi4 : None gi5 : None --More-- 4.17.
Command Guide of GS-4210 Series Example: This example shows how to show ipv6 mld max-group. Switch(config)#interface gi1 Switch(config-if)# ipv6 mld max-groups 50 Switch(config-if)#exit Switch(config)#exit Switch# show ipv6 mld max-group Port ID | Max Group ---------+-------------gi1 : 50 gi2 : 256 gi3 : 256 gi4 : 256 gi5 : 256 --More-- 4.17.
Command Guide of GS-4210 Series Switch# show ipv6 mld max-group action Port ID | Max-groups Action ---------+--------------------- gi1 : replace gi2 : deny gi3 : deny gi4 : deny gi5 : deny --More-- 239
Command Guide of GS-4210 Series 4.18 Port Security 4.18.1 port-security Command: port-security no port-security Default: Default is disabled Mode: Global Configuration Usage Guide: The “port-security” command enables the port security functionality on this port. Use the no form of this command to disable Example: This example shows how to enable port security on port 1 and set the learning limit number to 10.
Command Guide of GS-4210 Series Parameter: <1-256> The learning-limit number. It specifies how many MAC addresses this port can learn forward Forward this packet whose SMAC is new to system and exceed the learning-limit number discard Discard this packet whose SMAC is new to system and exceed the learning-limit number. shutdown Shutdown this port when receives a packet whose SMAC is new to system and exceed the learning limit number. Default: The address-limit default is 10 and action is “discard”.
Command Guide of GS-4210 Series Mode: Privileged EXEC Usage Guide: Use “show port-security interfaces” command to show port-security information of the specified port. Example: This example shows how to show port-security configurations on interface gi1.
Command Guide of GS-4210 Series 4.19 Port Error Disable 4.19.
Command Guide of GS-4210 Series Port will be disabled by some invalid actions detected by protocols. Administrator can enabled these error disabled port manually by “no shutdown” command in Interface Mode, or just turn on the auto recovery mechanism by this command to auto enable the error disabled port after auto recovery interval. Example: This example shows how to enable auto recovery with reason bpduguard and broadcast-flood.
Command Guide of GS-4210 Series <0-86400> Specify the auto recovery interval with unit second. Default: Default auto recovery interval is 300 second. Mode: Global Configuration Usage Guide: Port will be disabled by some invalid actions detected by protocols. Auto recovery mechanism will enable these error disabled port after a while. This command configures how long the port will be enabled after error disabled. Example: This example shows how to configure the auto recovery interval to 600 seconds.
Command Guide of GS-4210 Series Command: show errdisable recovery Mode: Privileged EXEC Usage Guide: Use “show errdisable recovery” command to show each error disable state, error disable recovery interval and current error disabled port status.
Command Guide of GS-4210 Series 4.20 Port 4.20.1 description Command: description WORD<1-32> no description Parameter: WORD<1-32> Specifiy port description string Mode: Interface Configuration Usage Guide: Use “description” command to give the port a name to identify it easily. If description includes space character, please use double quoted to wrap it. Use no form to restore description to empty string. Example: This example shows how to modify port descriptions.
Command Guide of GS-4210 Series 4.20.2 speed Command: speed (10 | 100 | 1000) speed auto [(10 | 100 | 1000 | 10/100)] Parameter: 10 Specify port speed to force 10Mbits/s or auto with 10Mbits/s ability. 100 Specify port speed to force 100Mbits/s or auto with 100Mbits/s ability. 1000 Specify port speed to force 1000Mbits/s or auto with 1000Mbits/s ability. 10/100 Specify port speed to auto with 10Mbits/s and 100Mbits/s Default: Default port speed is auto with all available abilities.
Command Guide of GS-4210 Series This example shows how to show current interface link speed Switch# show interfaces gi1-2 status Port Name Status Vlan Duplex Speed Type gi1 connected 1 a-full a-100M Copper gi2 connected 1 a-full a-100M Copper 4.20.3 duplex Command: duplex (auto | full | half) Parameter: auto Specify port duplex to auto negotiation. full Specify port duplex to force full duplex. half Specify port duplex to force half duplex. Default: Default port duplex is auto.
Command Guide of GS-4210 Series no flow-control Parameter: off Disable port flow control. on Enable port flow control. Default: Default port flow control is off. Mode: Interface Configuration Usage Guide: Use “flow-control” command to change port flow control configuration. Use no form to restore flow control to default (off) configuration. Example: This example shows how to modify port duplex configuration.
Command Guide of GS-4210 Series 4.20.5 shutdown Command: shutdown no shutdown Mode: Interface Configuration Usage Guide: Use “shutdown” command to disable port and use “no shutdown” to enable port. If port is error disabled by some reason, use “no shutdown” command can also recovery the port manually. Example: This example shows how to modify port duplex configuration.
Command Guide of GS-4210 Series Mode: Interface Configuration Usage Guide: Use “jumbo-frame” command to modify maximum frame size. The only way to show this configuration is using “show running-config” command. Example: This example shows how to modify maximum frame size on gi1 to 9216 bytes. Switch(config)# interface gi1 Switch(config-if)# jumbo-frame 9216 This example shows how to show current jumbo-frmae size Switch# show running-config interface gi1 interface gi1 jumbo-frame 9216 4.20.
Command Guide of GS-4210 Series This example shows how to show current protected port state. Switch# show interfaces gi1-2 protected Port | Protected State -------+----------------gi1 |enabled gi2 |enabled 4.20.8 eee Command: eee no eee Default: Default eee state is disabled. Mode: Interface Configuration Usage Guide: Use “eee” command to make port to enable the energy efficient Ethernet feature and use “no eee” command to disable it.
Command Guide of GS-4210 Series 4.20.9 clear interface Command: clear interfaces IF_PORTS counters Parameter: IF_PORTS Specifiy port to clear counters. Mode: Privileged EXEC Usage Guide: Use “clear interface” command to clear counters on specific ports. Example: This example shows how to clear counters on port gi1.
Command Guide of GS-4210 Series 4.20.10 show interface Command: show interfaces IF_PORTS show interfaces IF_PORTS status show interfaces IF_PORTS potected Parameter: IF_PORTS Specifiy port to show. Mode: Privileged EXEC Usage Guide: Use “show interface” command to show port counters, parameters and status.
Command Guide of GS-4210 Series Port | Protected State -------+----------------gi1 |enabled gi2 |enabled This example shows how to show current port status Switch# show interfaces gi1 status Port Name Status Vlan Duplex Speed Type gi1 connected 1 full a-100M Copper 256
Command Guide of GS-4210 Series 4.21 QoS 4.21.1 qos Command: qos basic no qos Parameter: basic Specify the device to qos basic mode Mode: Global Configuration Usage Guide: QoS have following 2 modes, use this command is able to switch between them. Disable: QoS function is disabled and all packets will go through lowest priority queue. It means first in will be first out, no QoS is guarantee.
Command Guide of GS-4210 Series Basic trust: cos 4.21.2 qos trust Command: qos trust (cos | cos-dscp | dscp | precedence) Parameter: cos Specify the device to trust CoS cos-dscp Specify the device to trust DSCP for IP packets, and trust CoS for non-IP packets. dscp Specify the device to trust DSCP precedence Specify the device to trust IP Precedence Default: Default qos basic mode trust type is cos.
Command Guide of GS-4210 Series queue according to cos-queue map. Example: This example shows how to change qos basic mode trust types. Switch(config)# qos trust cos Switch(config)# qos trust cos-dscp Switch(config)# qos trust dscp Switch(config)# qos trust precedence This example shows how to check current qos trust type. Switch# show qos QoS Mode: basic Basic trust: cos 4.21.
Command Guide of GS-4210 Series Default: The default values of cos-queue are showing in the following table. CoS Queue ID 0 2 1 1 2 3 3 4 4 5 5 6 6 7 7 8 The default values of dscp-queue are showing in the following table. DSCP Queue ID 0~7 1 8~15 2 16~23 3 24~31 4 32~39 5 40~47 6 48~55 7 56~63 8 The default values of ip precedence are showing in the following table.
Command Guide of GS-4210 Series 1 1 2 0 3 2 4 3 5 4 6 5 7 6 8 7 The default values of queue-dscp are showing in the following table. Queue ID DSCP 1 0 2 8 3 16 4 24 5 32 6 40 7 48 8 56 The default values of queue-precedence are showing in the following table. Queue ID DSCP 1 0 2 1 3 2 4 3 5 4 6 5 7 6 8 7 Mode: Global Configuration Usage Guide: According to different trust type, packets will be assigned to different queue based on the specific qos map.
Command Guide of GS-4210 Series the remarking function will reference these 3 tables to remark packets. Example: This example shows how to map cos 6 and 7 to queue 1. Switch(config)# qos map cos-queue 6 7 to 1 Switch# show qos map cos-queue CoS to Queue mappings COS 0 1 2 3 4 5 6 7 -------------------------------Queue 2 1 3 4 5 6 1 1 This example shows how to map queue 4 and 5 to cos 7.
Command Guide of GS-4210 Series Default: Default strict priority queue number is 8, it means all queues are strict priority queue. The default queue weight for each queue is shown in following table. Queue ID Queue Weight 1 1 2 2 3 3 4 4 5 5 6 9 7 13 8 15 Mode: Global Configuration Usage Guide: The device support total 8 queues for QoS queueing. It is able to set the queue to be strict priority queue or weighted queue to prevent starvation.
Command Guide of GS-4210 Series 7 - N/A ena- 7 8 - N/A ena- 8 4.21.5 qos cos Command: qos cos <0-7> Parameter: cos <0-7> Specify the CoS value for the interface. Default: Default CoS value for interface is 0. Mode: Interface Configuration Usage Guide: Sometimes, there is no qos information in the packets, such as CoS, DSCP, IP Precedence. But we still can give the priority for packets by configuring the interface default cos value.
Command Guide of GS-4210 Series Command: qos trust no qos trust Default: Default interface qos trust state is enabled. Mode: Interface Configuration Usage Guide: After QoS function is enabled in basic mode, the device also support per interface enable/disable the qos function. If the trust state on interface is enabled, all ingress packets of this interface will remap according to the trust type and the qos maps. Otherwise, all ingress packets will assign to queue 1.
Command Guide of GS-4210 Series precedence Enable/Disable precedence remarking. Default: Default CoS remarking is disabled. Default DSCP remarking is disabled. Default IP Precedence remarking is disabled. Mode: Interface Configuration Usage Guide: QoS remarking feature allow you to change priority information in packets based on egress queue.
Command Guide of GS-4210 Series Use “show qos” command to show qoe mode and trust type. Example: This example shows how to check current qos mode. Switch# show qos QoS Mode: basic Basic trust: cos 4.21.9 show qos map Command: show qos map [(cos-queue | dscp-queue | precedence-queue | queue-cos | queue-dscp | queue-precedence)] Parameter: cos-queue Show CoS to queue map. dscp-queue Show DSCP to queue map precedence-queue Show IP Precedence to queue map. queue-cos Show queue to CoS map.
Command Guide of GS-4210 Series d1: d2 0 1 2 3 4 5 6 7 8 9 -------------------------------------0: 1 1 1 1 1 1 1 1 2 2 1: 2 2 2 2 2 2 3 3 3 3 2: 3 3 3 3 4 4 4 4 4 4 3: 4 4 5 5 5 5 5 5 5 5 4: 6 6 6 6 6 6 6 6 7 7 5: 7 7 7 7 7 7 8 8 8 8 6: 8 8 8 8 IP Precedence to Queue mappings IP Precedence 0 1 2 3 4 5 6 7 ---------------------------------------Queue 1 2 3 4 5 6 7 8 Queue to CoS mappings Queue 1 2 3 4 5 6 7 8 -------------------------------CoS 1 0 2 3 4 5 6 7 Queue to DSCP mappings Queue 1 2 3 4 5 6 7 8 ----
Command Guide of GS-4210 Series Privileged EXEC Usage Guide: Use “show qos interfaces” command to show port default cos ,remarking state and remarking type state informations. Example: This example shows how to show qos configurations on interface gi1.
Command Guide of GS-4210 Series 4.22 Rate Limit 4.22.1 rate limit Command: rate-limit ingress burst <1-65535> no rate-limit ingress burst rate-limit egress burst <4578-50000> rate-limit egress queue burst <1-8> <1-65535> no rate-limit egress burst [<1-8>] Parameter: burst Specify the maximum permitted excess burst size (CBS) in bytes <1-8> Specify the egress shaper queue number Default: Rate limiting is disabled.
Command Guide of GS-4210 Series rate-limit egress burst 6000 rate-limit egress queue burst 7000 4.22.2 rate limit (interface) Command: rate-limit ingress <0-1000000> no rate-limit ingress rate-limit egress <0-1000000> rate-limit egress queue <1-8> <0-1000000> no rate-limit egress [<1-8>] Parameter: Cir Specify the maximum number of kilobits per second of ingress traffic on a port. The range is 100 –max port speed.
Command Guide of GS-4210 Series Switch(config-if)# rate-limit egress queue 1 512 Switch# show running-config interfaces gi7 interface gi7 rate-limit ingress 128 rate-limit egress 2048 165 rate-limit egress queue 1 512 272
Command Guide of GS-4210 Series 4.23 RMON 4.23.1 Rmon event Command: rmon event <1-65535> [log] [trap COMMUNITY] [description DESCRIPTION] [owner NAME] no rmon event <1-65535> Parameter: <1-65535> Specify event index to create or modify [log] (Optional)Specify to show syslog. [trap COMMUNITY] (Optional)Specify SNMP community to show SNMP trap. [description (Optional)Specify description of event DESCRIPTION] [owner NAME] (Optional)Specify owner of event.
Command Guide of GS-4210 Series Rmon Event Type : Log Rmon Event Community : public Rmon Event Description : test Rmon Event Last Sent : Rmon Event Owner : admin 4.23.
Command Guide of GS-4210 Series (absolute|delta) Specify absolute to compare sample counter absolutely. Specify delta to compare delta counter between samples <0-2147483647> Specify a number which the alarm trigger rising event <0-65535> Specify event index when the rising threshold exceeds. <0-2147483647> Specify a number which the alarm trigger falling event <0-65535> Specify event index when the falling threshold exceeds.
Command Guide of GS-4210 Series Rmon Alarm Sample Interval : 300 Rmon Alarm Sample Interface : gi1 Rmon Alarm Sample Variable : Pkts Rmon Alarm Sample Type : delta Rmon Alarm Type : Rising or Falling Rmon Alarm Rising Threshold : 10000 Rmon Alarm Rising Event : 1 Rmon Alarm Falling Threshold : 100 Rmon Alarm Falling Event : 1 Rmon Alarm Owner : admin 4.23.
Command Guide of GS-4210 Series switch(config)# rmon history 1 interface gi1 interval 60 owner admin switch(config)# show rmon history 1 Rmon History Index : 1 Rmon Collection Interface: gi1 Rmon History Bucket : 50 Rmon history Interval : 60 Rmon History Owner : admin switch(config)# rmon history 1 interface gi1 interval 30 owner admin switch(config)# show rmon history 1 Rmon History Index : 1 Rmon Collection Interface: gi1 Rmon History Bucket : 50 Rmon history Interval : 30 Rmon History Owner : admin 4.
Command Guide of GS-4210 Series etherStatsDropEvents : 0 etherStatsOctets : 0 etherStatsPkts : 0 etherStatsBroadcastPkts : 0 etherStatsMulticastPkts : 0 etherStatsCRCAlignErrors : 0 etherStatsUnderSizePkts : 0 etherStatsOverSizePkts : 0 etherStatsFragments : 0 etherStatsJabbers : 0 etherStatsCollisions : 0 etherStatsPkts64Octets : 0 etherStatsPkts65to127Octets : 0 etherStatsPkts128to255Octets : 0 etherStatsPkts256to511Octets : 0 etherStatsPkts512to1023Octets : 0 etherStatsPkts1024to1518Octets : 0 4.23.
Command Guide of GS-4210 Series switch(config)# rmon event 1 log trap public description test owner admin switch(config)# show rmon event 1 Rmon Event Index : 1 Rmon Event Type : Log and Trap Rmon Event Community : public Rmon Event Description : test Rmon Event Last Sent : Rmon Event Owner : admin 4.23.
Command Guide of GS-4210 Series Command: show rmon alarm (<1-65535> | all) Parameter: <1-65535> specifies alarm index to show all Show all existed alarm Mode: Global Configuration Usage Guide: Use the show rmon alarm command to show existed RMON alarm entry. Example: The example shows how to show rmon alarm entry.
Command Guide of GS-4210 Series all Show all existed history Mode: Global Configuration Usage Guide: Use the show rmon history command to show existed RMON history entry Example: The example shows how to show RMON history entry. switch(config)# rmon history 1 interface gi1 interval 30 owner admin switch(config)# show rmon history 1 Rmon History Index : 1 Rmon Collection Interface: gi1 Rmon History Bucket : 50 Rmon history Interval : 30 Rmon History Owner : admin 4.23.
Command Guide of GS-4210 Series Interval Start : (32940466) 3 days, 19:30:04.66 DropEvents : 0 Octets : 117226 Pkts : 763 BroadcastPkts : 9 MulticastPkts : 0 CRCAlignErrors : 0 UnderSizePkts : 0 OverSizePkts : 0 Fragments : 0 Jabbers : 0 Collisions : 0 Utilization : 1 ======================================================= Sample Index : 1 Interval Start : (32939462) 3 days, 19:29:54.
Command Guide of GS-4210 Series 4.24 SNMP 4.24.1 snmp Command: snmp no snmp Mode: Global Configuration Usage Guide: ‘no snmp’ will disable snmp. ‘snmp’ will enable snmp. The configure can use show snmp Example: The following example specifies that set global snmp test Switch(config)# snmp Switch# show snmp SNMP is enabled 4.24.
Command Guide of GS-4210 Series Global Configuration Usage Guide: ‘no snmp trap auth’ snmp will not send auth failure trap. ‘no snmp trap linkUpDown’ snmp will not send linkup and link down trap. ‘no snmp trap warm-start snmp will not send warm start trap. ‘no snmp trap cold-start’ snmp will not send cold start trap. ‘no snmp trap port-security’ snmp will not send port-security trap. The configure can use show snmp trap. Example: The following example specifies that set trap auth disable test.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: The default view can’t delete and create by user The min view is sysUpTime. The exclude view must in range of include view.otherwise, it is not invalid. The configure use ‘show snmp view’ to check Example: The following example specifies that set view systemView test. Switch(config)# snmp view systemView subtree 1.3.6.1.2.1.
Command Guide of GS-4210 Series Usage Guide: The group version 1 and 2c only for snmp community use. And version 3 group only for snmp user use. When group version is 1 or 2c , can only use noauth The read/write/notify view must exist. The configure use ‘show snmp group’ to check Example: The following example specifies that set snmp group test.
Command Guide of GS-4210 Series Usage Guide: The community support basic & advace mode. Basic: community assigned view and read/write right. Advace: community assigned access group. The community specifies the group witch must exist. The community specifies the view witch must exist. It will generate the no exist v1 or v2 access group for community. The configure can use ‘show snmp community’ to check Example: The following example specifies that configure community test.
Command Guide of GS-4210 Series AUTHPASSWD Snmp user auth password PRIVPASSWD Snmp user priv password Mode: Global Configuration Usage Guide: The group version must be v3 , and the security level must match the snmp user configure. AUTHPASSWD and PRIVPASSWD min length is 8.max length is 32 and 64 The configure can use ‘show snmp user’ to check Example: The following example specifies that set auth snmp user test.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: Default engineid is DUT MAC address. The configure can use ‘show snmp engineid’ Example: The following example specifies that set remote engine id test. Switch(config)# snmp engineid remote 192.168.1.100 112233445566 Switch# show snmp engineid Local SNMPV3 Engine id: DEADBEEF0114 IP address Remote SNMP engineID -------------------- -----------------------------------------------192.168.1.100 112233445566 4.24.
Command Guide of GS-4210 Series <1-65535>] [timeout <1-300>] The notify type is inform timeout value [retries <1-255>] The notify type is inform retries Mode: Global Configuration Usage Guide: This command can’t configure version 1 inform When use traps, this command can’t configure udp-port and retries. The host use NAME witch is snmp community or user NAME must exist.
Command Guide of GS-4210 Series Usage Guide: This command will snmp status. Example: The following example specifies that show snmp test Switch# show snmp 4.24.10 show snmp trap Command: show snmp trap Mode: privileged mode Usage Guide: This command will display snmp trap class auth/linkupdown/cold-start/warm-start/port-security/. Status. Example: The following example specifies that display snmp trap test Switch# show snmp trap 4.24.
Command Guide of GS-4210 Series Switch# show snmp view 4.24.12 show snmp group Command: show snmp group Mode: privileged mode Usage Guide: This command will display the snmp group Example: The following example specifies that display snmp group test. Switch# show snmp group 4.24.13 show snmp community Command: show snmp community Mode: privileged mode Usage Guide: This command will display the snmp community entry.
Command Guide of GS-4210 Series 4.24.14 show snmp host Command: show snmp host Mode: privileged mode Usage Guide: This command will display the snmp host entry. Example: The following example specifies that display snmp host test. Switch# show snmp host 4.24.15 show snmp user Command: show snmp user Mode: privileged mode Usage Guide: This command will display the snmp user entry. Example: The following example specifies that display snmp user test. Switch# show snmp user 4.24.
Command Guide of GS-4210 Series Command: show snmp engineid Mode: privileged mode Usage Guide: This command will display the snmp local/remote engine id Example: The following example specifies that display snmp local/remote engine id test.
Command Guide of GS-4210 Series 4.25 Storm Control 4.25.1 Storm-control unit Command: storm-control unit (bps | pps) Parameter: bps Storm control rate calculates by octet-based pps Storm control rate calculates by packet-based Default: Default storm control unit is bps. Mode: Global Configuration Usage Guide: Storm control mechanism will try to calculate ingress packets is exceed configured rate or not and do corresponding action.
Command Guide of GS-4210 Series storm-control ifg (include | exclude) Parameter: include Include preamble & IFG (20 bytes) when count ingress storm control rate. exclude Exclude preamble & IFG (20 bytes) when count ingress storm control rate Default: Default storm control inter frame gap is excluded. Mode: Global Configuration Usage Guide: Storm control mechanism will try to calculate ingress packets is exceed configured rate or not and do corresponding action.
Command Guide of GS-4210 Series no storm-control (broadcast | unknown-unicast | unknown-multicast) storm-control (broadcast | unknown-unicast | unknown-multicast) level <0-1000000> no storm-control (broadcast | unknown-unicast | unknown-multicast) level Parameter: broadcast Select broadcast storm control type unknown-unicast Select unknown unicast storm control type unknown-multicast Select unknown multicast storm control type level <0-1000000> Specify the storm control rate for selected type Def
Command Guide of GS-4210 Series Switch(config-if)# storm-control broadcast Switch(config-if)# storm-control broadcast level 200 This example shows how to show current storm control configuration on interface gi1 Switch# show storm-control interfaces gi1 Port | State | Broadcast | Unkown-Multicast | Unknown-Unicast | Action | | pps | pps | pps | ---------+-------+------------+--------------------+-----------------|----------gi1 enable 200 Off( 10000) Off( 10000) Shutdown 4.25.
Command Guide of GS-4210 Series Switch# show storm-control interfaces gi1 Port | State | Broadcast | Unkown-Multicast | Unknown-Unicast | Action | | pps | pps | pps | ---------+-------+------------+--------------------+-----------------|----------gi1 disable Off( 10000) Off( 10000) Off( 10000) Shutdown 4.25.5 show storm-control Command: show storm-control show storm-control interface IF_PORTS Parameter: IF_PORTS Specify port to show.
Command Guide of GS-4210 Series ---------+-------+------------+--------------------+-----------------|----------fa1 enable 200 Off( 10000) Off( 10000) Shutdown 300
Command Guide of GS-4210 Series 4.26 Spanning Tree 4.26.1 spanning-tree Command: spanning-tree no spanning-tree Mode: Global Configuration Usage Guide: Enable or Disable Spanning-Tree Protocol. Using `spanning-tree` command to enable STP or `no spanning-tree` command to disable STP Example: The following example sets the STP status to enable and disable.
Command Guide of GS-4210 Series 4.26.2 spanning-tree bpdu Command: spanning-tree bpdu ( filtering | flooding ) Parameter: ( filtering | Specify the forwarding action of BPDU to filtering or flooding. flooding ) Default: spanning-tree bpdu flooding Mode: Global Configuration Usage Guide: Configure the BPDU forwarding action when STP is disabled. Example: This example sets the BPDU forwarding action to filtering.
Command Guide of GS-4210 Series Parameter: stp Specify the mode to Spanning Tree Protocol rstp Specify the mode to Rapid Spanning Tree Protocol mstp Specify the mode to Multiple Spanning Tree Protocol. Default: spanning-tree mode stp Mode: Global Configuration Usage Guide: Configure the force-version of Spanning-Tree Protocol. The configuration could be shown by “show spanning-tree” command. Example: This example sets STP mode to STP (Classic Spanning Tree Protocol).
Command Guide of GS-4210 Series Command: spanning-tree priority <0-61440> Parameter: <0-61440> Specify the bridge priority, it must multiples of 4096 Default: spanning-tree priority 32768 Mode: Global Configuration Usage Guide: This command configures the bridge priority. The configuration could be shown by “show spanning-tree” command. Example: This example sets the bridge priority to 16384.
Command Guide of GS-4210 Series Command: spanning-tree hello-time <1-10> Parameter: <1-10> Specify the hello-time interval (second). Default: spanning-tree hello-time = 2 Mode: Global Configuration Usage Guide: This command configures the BPDU hello-time interval (second). The configuration could be shown by “show spanning-tree” command. Example: This example sets the BPDU hello-time to 5 sec.
Command Guide of GS-4210 Series Command: spanning-tree max-hops <1-40> Parameter: <1-40> Specify the max-hops value Default: spanning-tree max-hops = 20 Mode: Global Configuration Usage Guide: This command configures the maximum hops value for MSTP. The configuration could be shown by “show spanning-tree” command. Example: This example sets the max-hops to 15. Switch# configure Switch(config)# spanning-tree max-hops 15 4.26.
Command Guide of GS-4210 Series Example: This example sets the BPDU forward-delay to 30 sec. Switch# configure Switch(config)# spanning-tree forward-delay 30 4.26.8 spanning-tree maximum-age Command: spanning-tree maximum-age <6-40> Parameter: <6-40> Specify the maximum-age time (second). Default: spanning-tree maximum-age = 20 Mode: Global Configuration Usage Guide: This command configures the BPDU maximum-age interval (second). The configuration could be shown by “show spanning-tree” command.
Command Guide of GS-4210 Series Parameter: <1-10> Specify the tx-hold-count value. Default: spanning-tree tx-hold-count = 6 Mode: Global Configuration Usage Guide: This command configures the BPDU tx-hold-count. Example: This example sets the BPDU tx hold count to 10 Switch# configure Switch(config)# spanning-tree tx-hold-count 10 4.26.10 spanning-tree pathcost method Command: spanning-tree pathcost method ( long | short ) Parameter: long Specify the type of pathcost value to 32 bits (long).
Command Guide of GS-4210 Series 4.26.11 spanning-tree port-priority Command: spanning-tree port-priority <0-240> Parameter: <0-240> Specify the STP port priority. It must multiples of 16. Default: spanning-tree port-priority = 128 Mode: Port Configuration Usage Guide: This command per port configures the STP port priority. The configuration could be shown by “show spanning-tree interface” command. Example: This example sets port gi1 STP port priority to 64.
Command Guide of GS-4210 Series Default: spanning-tree cost = 0 Mode: Port Configuration Usage Guide: This command per port configures the STP port cost. The configuration could be shown by “show spanning-tree interface” command. Example: This example sets port gi1 STP port cost to 100. Switch# configure Switch(config)# interface gi1 Switch(config-if)# spanning-tree cost 100 4.26.
Command Guide of GS-4210 Series Command: spanning-tree bpdu-filter no spanning-tree bpdu-filter Mode: Port Configuration Usage Guide: This command per port configures the STP BPDU Filter status. The configuration could be shown by “show spanning-tree interface” command. Example: This example sets port gi1 STP BPDU Filter status to enable. Switch# configure Switch(config)# interface gi1 Switch(config-if)# spanning-tree bpdu-filter 4.26.
Command Guide of GS-4210 Series Switch(config-if)# spanning-tree bpdu-guard 4.26.16 spanning-tree link-type Command: spanning-tree link-type ( point-to-point | shared ) no spanning-tree link-type Parameter: ( point-to-point | Specify the STP port link-type to Point-to-Point or Shared medium. shared ) Mode: Port Configuration Usage Guide: This command per port configures the STP port link-type. The configuration could be shown by “show spanning-tree interface” command.
Command Guide of GS-4210 Series revision <0-65535> instance <0-15> vlan [ VLAN-LIST ] Parameter: NAME Specify the MSTP bridge name of MST Configuration ID. (Max. 32 chars) <0-65535> Specify the MSTP revision number of MST Configuration ID. <0-15> Specify the MST instance ID. VLAN-LIST Specify the VLAN list to be mapped to this specified instance.
Command Guide of GS-4210 Series ------------------------------------------------------------------------------- 4.26.18 spanning-tree mst priority Command: spanning-tree mst <0-15> priority <0-61440> Parameter: <0-15> Specify the MST instance ID to configure. <0-61440> Specify the bridge priority, it must multiples of 4096. Default: spanning-tree mst = 0 ; priority = 32768 Mode: Global Configuration Usage Guide: This command configures the MST instance priority.
Command Guide of GS-4210 Series <0-200000000> Specify the STP port cost. In short pathcost method, the range is from 0 to 65535. ( 0 = Auto ) Default: spanning-tree mst = 0 ; cost = 0 Mode: Port Configuration Usage Guide: This command configures the MSTP port cost for this MST instance. The configuration could be shown by “show spanning-tree mst interface” command. Example: This example sets port gi1 STP pathcost of MST instance 1 to 100.
Command Guide of GS-4210 Series This example sets port gi1 MST port priority of MST instance 0 to 32.
Command Guide of GS-4210 Series 4.27 System File 4.27.1 boot system Command: boot system (image0 | image1) Parameter: image0 Boot from flash image partition 0 image1 Boot from flash image partition 1 Default: Default boot image is image0. Mode: Global Configuration Usage Guide: Dual image allow user to have a backup image in the flash partition. Use “boot system” command to select the active firmware image. And another firmware image will become a backup one.
Command Guide of GS-4210 Series 4.27.2 save Command: save Mode: Privileged EXEC Usage Guide: Use “save” command to save running configuration to startup configuration file. This command is equal to “copy running-config startup-config”. Example: This example shows how to save running configuration to startup configuration. Switch# save Success 4.27.
Command Guide of GS-4210 Series flash://backup-config flash://image0 flash://image1 flash://ram.log flash://flash.log tftp:// Specify remote tftp server and remote file name. The format is “tftp://192.168.1.111/remote_file_name” running-config Running configuration file startup-config Startup configuration file backup-config Edit default authentication list Mode: Privileged EXEC Usage Guide: There are many types of files in system.
Command Guide of GS-4210 Series This example shows how to backup security file dsa2 to remote tftp server 192.168.1.111 with file name dsa2. Switch# copy flash://dsa2 tftp://192.168.1.111/dsa2 Uploading file...Please Wait... Uploading Done 4.27.4 delete Command: delete (startrup-config | backup-config | flash://) delete system (image0 | image1) Parameter: flash:// Specify the configuration file stored in flash to delete.
Command Guide of GS-4210 Series This example shows how to delete backup firmware image from flash. Switch# delete system image1 4.27.5 restore-default Command: restore-default Mode: Privileged EXEC Usage Guide: Use “restore-defaults” command to restore factory default of all system. The command is equal to “delete startup-config” Example: This example shows how to restore factory defaults. Switch# restore-defaults Restore Default Success. Do you want to reboot now? (y/n)n 4.27.
Command Guide of GS-4210 Series Usage Guide: Our configuration file is text based. Therefore, we can show the configuration on terminal and read it by this command. Example: This example shows how to show running configuration Switch# show running-config ! System Description: Switch ! System Version: v2.5.0-beta.
Command Guide of GS-4210 Series ------------------------ ---------------- -----------------------startup-config 1191 2000-01-01 00:00:23 image0 (active) 4372401 2012-09-24 01:57:29 image1 (backup) 0 323
Command Guide of GS-4210 Series 4.28 Time 4.28.1 clock set Command: clock set HH:MM:SS (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) <1-31> <2000-2035> Parameter: HH:MM:SS Specify static time of year, month, day, hour, minute, second (jan|feb|mar|apr|ma y|jun|jul|aug|sep|oc t|nov|dec) <1-31> <2000-2035> Mode: Global Configuration Usage Guide: Use the clock set command to set static time. The static time won’t save to configuration file. Example: The example shows how to set static time of switch.
Command Guide of GS-4210 Series no clock timezone Parameter: ACRONYM Specify acronym name of time zone HOUR-OFFSET Specify hour offset of time zone minutes <0-59> Specify minute offset of time zone Default: Default time zone is UTC+8. Mode: Global Configuration Usage Guide: Use the clock timezone command to set timezone setting. Use the no form of this command to default setting. Example: The example shows how to set time zone of switch and then restore to default time zone.
Command Guide of GS-4210 Series Command: clock source (local|sntp) Parameter: local Specify to use static time sntp Specify to use sntp time Default: Default is using local time. Mode: Global Configuration Usage Guide: Use the clock source command to set the source of time. The “local” means that use static setting by user manual set. The “sntp” means that use remote SNTP server. Use the no form of this command to default setting. Example: The example shows how to set clock source of switch.
Command Guide of GS-4210 Series clock summer-time ACRONYM recurring (<1-5>|first|last) (sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) HH:MM (<1-5>|first|last) (sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) HH:MM [<1-1440>] no clock summer-time Parameter: (jan|feb|mar|apr|ma Specify acronym name of time zone y|jun|jul|aug|sep|oc t|nov|dec) <1-31> <2000-2037> HH:MM [<1-1440>] Specify adjust offset of daylight saving time usa Using dayli
Command Guide of GS-4210 Series switch(config)# clock source sntp switch(config)# show clock detail 08:32:12 test(UTC+5) Sep 21 2012 No time source Time zone: Acronym is DFL Offset is UTC+8 4.28.5 show clock Command: show clock [detail] Parameter: detail Show more detail information of clock Mode: Global Configuration Usage Guide: Use the show clock command to show clock of switch. The “detail” means that show more information of clock such as time zone and daylight saving time.
Command Guide of GS-4210 Series Acronym is DFL Offset is UTC+8 Summertime: Acronym is DLS Recurring every year. Begins at 2 0 3 2:0 Ends at 1 0 11 2:0 Offset is 60 minutes. 4.28.6 sntp Command: sntp host HOSTNAME [port <1-65535>] no sntp Parameter: HOSTNAME Specify ip address or hostname of sntp server port <1-65535> Specify server port of sntp server Mode: Global Configuration Usage Guide: Use the sntp command to set remote SNTP server. Default server port is 123.
Command Guide of GS-4210 Series 4.28.7 show sntp Command: show sntp Mode: Global Configuration Usage Guide: Use the show sntp command to remote SNTP server information. Example: The example shows how to show remote SNTP server. Switch(config)# show sntp SNTP is Enabled SNTP Server address: 192.168.1.
Command Guide of GS-4210 Series 4.29 VLAN 4.29.1 vlan Command: vlan no vlan Mode: Global Configuration Usage Guide: Create or remove a VLAN entry. Using `vlan` command to entry the VLAN configuration mode. Example: The following example creates and removes a VLAN entry (100). Switch# configure Switch (config)# vlan 100 Switch (config-vlan)# exit Switch (config)# no vlan 100 Switch (config)# exit Switch# 4.29.2 vlan name Command: vlan name NAME Parameter: NAME Specify the name of the VLAN (Max.
Command Guide of GS-4210 Series Configure the name of a VLAN entry. Example: This example sets the VLAN name of VLAN 100 to be `VLAN-one-hundred`. Switch# configure Switch(config)# vlan 100 Switch(config-vlan)# name VLAN-one-hundred Switch(config-vlan)# exit Switch(config)# 4.29.3 switchport mode Command: switchport mode ( access | hybrid | trunk [uplink] | tunnel ) Parameter: access Specify the VLAN mode to Access port. hybrid Specify the VLAN mode to Hybrid port.
Command Guide of GS-4210 Series This example sets VLAN mode to Access port. Switch(config)# interface gi12 Switch(config-if)# switchport mode access 4.29.4 switchport hybrid pvid Command: switchport hybrid pvid <1-4094> Parameter: <1-4094> Specify the port-based VLAN ID on the Hybrid port. Default: switchport hybrid pvid = 1 Mode: Port Configuration Usage Guide: This command configures the hybrid port’s PVID. The configuration could be shown by “show interface switchport” command.
Command Guide of GS-4210 Series no switchport bybrid ingress-filtering Mode: Port Configuration Usage Guide: This command per port configures the ingress-filtering status. This filtering is used to filter the frames come from the non-member ingress port. The configuration could be shown by “show interface switchport” command. Example: This example sets ingress-filtering to disable.
Command Guide of GS-4210 Series This example sets acceptable-frame-type to tagged-only. Switch# configure Switch(config)# interface gi10 Switch(config-if)# switchport mode hybrid Switch(config-if)# switchport hybrid acceptable-frame-type tagged-only 4.29.7 switchport hybrid allowed vlan add Command: switchport hybrid allowed vlan add VLAN-LIST [ ( tagged | untagged ) ] Parameter: VLAN-LIST Specifies the VLAN list to be added ( tagged | Specifies the member type to tagged or untagged.
Command Guide of GS-4210 Series switchport hybrid allowed vlan remove VLAN-LIST Parameter: VLAN-LIST Specifies the VLAN list to be removed. Mode: Port Configuration Usage Guide: This command per hybrid port configures to remove the allowed VLAN list. The configuration could be shown by “show interface switchport” command. Example: This example sets port fa10 VLAN to leave the VLAN 100. Switch# configure Switch(config)# interface gi10 Switch(config-if)# switchport hybrid allowed vlan remove 100 4.29.
Command Guide of GS-4210 Series Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 100 4.29.10 switchport tunnel vlan Command: switchport tunnel vlan <1-4094> Mode: Port Configuration Usage Guide: The command per Tunnel port configures the native VLAN.
Command Guide of GS-4210 Series Example: This example sets Trunk port gi10 native VLAN to 100. Switch# configure Switch(config)# interface gi10 Switch(config-if)# switchport mode trunk Switch(config-if)# switchport trunk native vlan 100 4.29.12 switchport trunk allowed vlan Command: switchport trunk allowed vlan ( add | remove ) ( VLAN-LIST | all ) Parameter: ( add | remove ) Specify the action to add or remove the allowed VLAN list.
Command Guide of GS-4210 Series switchport default-vlan tagged no switchport default-vlan tagged Mode: Port Configuration Usage Guide: The command per port configures the membership of the default VLAN to tagged. The configuration could be shown by “show interface switchport” command. Example: This example sets Trunk port gi10 membership with the default VLAN to tagged. Switch# configure Switch(config)# interface gi10 Switch(config-if)# switchport default-vlan tagged 4.29.
Command Guide of GS-4210 Series 4.29.15 switchport forbidden vlan Command: switchport forbidden vlan ( add | remove ) VLAN-LIST Parameter: ( add | remove ) Add or remove forbidden membership. VLAN-LIST Specify the VLAN list. Mode: Port Configuration Usage Guide: The command per port configures the membership of the specfied VLANs to forbidden. The configuration could be shown by “show interface switchport” command.
Command Guide of GS-4210 Series Mode: Global Configuration Usage Guide: (1) Set <1-4094> as management VLAN id; suggest to create the VLAN and make the port to be member of it firstly. (2) When use no command, restore management vlan to be default VLAN. (3) If want to see management vlan created ,use “show management-vlan” Example: The following example specifies that management vlan 2 is created Switch(config)# management-vlan vlan 2 4.29.
Command Guide of GS-4210 Series vlan protocol-vlan group <1-8> frame-type (ethernet_ii|llc_other|snap_1042) protocol-value VALUE no vlan protocol-vlan group <1-8> Parameter: <1-8> Specify protocol vlan group to configure (ethernet_ii|llc_oth Specify protocol based frame type er|snap_1042) VALUE Specify protocol value to configure Mode: Global Configuration Usage Guide: Use the vlan protocol-vlan group Global Configuration mode command to add protocol vlan group with spefied proto type and value.
Command Guide of GS-4210 Series 4.29.19 protocol vlan binding Command: vlan protocol-vlan group <1-8> vlan <1-4094> no vlan protocol-vlan group <1-8> Parameter: <1-8> Specify protocol vlan group to binding <1-4094> Specifies the Proto VLAN ID to configure. Mode: Interface Configuration Usage Guide: Use the vlan protocol-vlan binding Interface Configuration mode command to binding protocol VLAN Group on specified interfaces, Use the no form of this command to cancel protocol VLAN Group Binding.
Command Guide of GS-4210 Series Mode: Privileged EXEC Usage Guide: Use the show vlan proto-vlan command in EXEC mode to display Proto VLAN group configuration Example: The following example how to display Proto VLAN group configuration Switch# show vlan protocol-vlan Group ID | Status | Type | value ---------------+-------------------+---------------------+-----------------1 | Enabled | Ethernet | 0x0806 2 | Enabled | LLC other | 0x0800 3 | Disabled | -- | -4 | Disabled | -- | -5 | Disabled | -- | -6 | Dis
Command Guide of GS-4210 Series Switch# show vlan protocol-vlan interfaces gi1 Port gi1 : Group 1 Status : Enabled VLAN ID : 2 Group 2 Status : Enabled VLAN ID : 3 Group 3 Status : Disabled Group 4 Status : Disabled Group 5 Status : Disabled Group 6 Status : Disabled Group 7 Status : Disabled Group 8 Status : Disabled 345
Command Guide of GS-4210 Series 4.30 Voice VLAN 4.30.1 voice vlan Command: voice-vlan no voice-vlan Mode: Global Configuration Usage Guide: Use the voice vlan global configuration command to enable the functional Voice VLAN on the device. Use the no form of this command to disable voice vlan function. You can verify your setting by entering the show voice vlan Privileged EXEC command. Example: The following example shows how to change voice vlan state from auto to oui mode.
Command Guide of GS-4210 Series Example: The following example shows how to set Voice VLAN ID, before make sure the VLAN EXIST. Switch(config)# voice-vlan vlan 128 4.30.
Command Guide of GS-4210 Series no voice-vlan Parameter: <0-7> Specify the voice VLAN Class of Service value in telephone oui mode remark Specify that the L2 user priority is remarked with the CoS value Default: The default cos value is 6, remark is disabled.
Command Guide of GS-4210 Series Switch(config)# voice-vlan aging-time 720 4.30.6 voice vlan cos mode Command: voice-vlan cos ( src | all ) no voice-vlan Parameter: src Specify QoS attributes are applied to packets with OUIs in the source MAC address. all Specify QoS attributes are applied to packets that are classified to the Voice VLAN. Default: The defaultall port in Src mode.
Command Guide of GS-4210 Series no voice-vlan Mode: Interface Configuration Usage Guide: Use the voice vlan Interface configuration command to enable OUI voice VLAN configuration on an interface Use the no form of this command to disable voice vlan on an interfaces You can verify your setting by entering the show voice vlan Privileged EXEC command Example: The following example how to enable voice VLAN function in oui mode on an interface Switch(config)#interface range gi1-3 Switch(config-if)#voice-vlan
Command Guide of GS-4210 Series Administrate Voice VLAN state : disabled Voice VLAN ID : 1 Voice VLAN Aging : 720 minutes Voice VLAN CoS : 5 Voice VLAN 1p Remark: enabled Switch# show voice-vlan interfaces gi1 Voice VLAN Aging : 720 minutes Voice VLAN CoS : 5 Voice VLAN 1p Remark: enabled OUI table OUI MAC | Description --------------+----------------00:E0:BB | 3COM 00:03:6B | Cisco 00:E0:75 | Veritel 00:D0:1E | Pingtel 00:01:E3 | Siemens 00:60:B9 | NEC/Philips 00:0F:E2 | H3C 00:09:6E | Avaya Port | State |