Command Guide of WGSW-28040 Contents Chapter 1 COMMAND LINE INTERFACE ........... 12 1.1 Accessing the CLI ..........................12 1.2 Command Line Modes ........................12 1.3 Cammand Help ..........................13 1.4 Command Line Editing ........................14 1.5 Requirements ............................ 14 Chapter 2 CONSOLE CLI MANAGEMENT ..........16 2.1 Terminal Setup...........................
Page 3
Command Guide of WGSW-28040 4.2.7 tacacs default-config ..........................44 4.2.8 tacacs host ..............................45 4.2.9 show tacacs default-config ......................... 46 4.2.10 show tacacs ............................. 46 4.2.11 radius default-config ..........................47 4.2.12 radius host ............................... 48 4.2.13 show radius default-config ........................49 4.2.14 show radius ..............................
Page 4
Command Guide of WGSW-28040 4.4.19 ipv6 default-gateway ..........................80 4.4.20 ipv6 dhcp ..............................81 4.4.21 ip service ..............................82 4.4.22 ip session-timeout ............................ 83 4.4.23 exec-timeout ............................84 4.4.24 password-thresh ............................85 4.4.25 silent-time ..............................87 4.4.26 history ..............................88 4.4.27 clear service .............................
Page 5
Command Guide of WGSW-28040 4.6.15 ip dhcp snooping database ........................112 4.6.16 ip dhcp snooping database write-deley ....................113 4.6.17 ip dhcp snooping database timeout ....................... 114 4.6.18 clear ip dhcp snooping database statistics ..................... 115 4.6.19 renew ip dhcp snooping database ......................116 4.6.20 show ip dhcp snooping database ......................
Page 6
Command Guide of WGSW-28040 4.10.10 ip igmp snooping vlan static router port ....................147 4.10.11 ip igmp snooping static group ....................... 149 4.10.12 ip igmp profile ............................150 4.10.13 ip igmp filter ............................151 4.10.14 ip igmp max-group ..........................152 4.10.15 clear ip igmp snooping groups ......................
Page 7
Command Guide of WGSW-28040 4.13.9 lldp lldpdu ............................... 182 4.13.10 lldp tx/rx ..............................182 4.13.11 lldp med ..............................184 4.13.12 lldp med tlv-select ..........................185 4.13.13 lldp med fast-start-report-count ......................186 4.13.14 lldp med network-policy ........................187 4.13.15 lldp med network-policy add | remove ....................188 4.13.16 lldp med network-policy auto ........................
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 To use the <Tab> key to do keyword auto completion: Switch(config)# copy tftp r<Tab> 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.
Page 15
Command Guide of WGSW-28040 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. ...
Terminal, ProComm Plus, Telix, Winterm and so on) to enter the startup screen of the device. WGSW-28040 Rear Panel Figure 2-2: Rear Panel of WGSW-28040 Console port A terminal program is required to make the software connection to the Managed Switch. Windows' Hyper Terminal program may be a good choice.
Page 17
Command Guide of WGSW-28040 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 WGSW-28040 2.2 Logon 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...
Page 19
Figure 3-2: IP Information Screen Configuring IP Address On ”WGSW-28040#” prompt, enter “configure”. On “WGSW-28040(config)#” prompt, enter the following command and press <Enter> as shown in Figure 3-3. WGSW-28040(config)# ip address 192.168.1.100 mask 255.255.255.0 WGSW-28040(config)# ip default-gateway 192.168.1.254 The previous command would apply the following settings for the Switch.
Page 20
Command Guide of WGSW-28040 Store current switch configuration At the “#” prompt, enter the following command and press <Enter>. # 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 WGSW-28040 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 username & password.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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 depends on the outcome of authentication. force-auth Force this port to be unconditional authorized. force-unauth Force this port to be unconditional unauthorized.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.
Page 29
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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 Guide of WGSW-28040 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.
Page 34
Command Guide of WGSW-28040 Switch# show dot1x guest-vlan Guest VLAN ID: 2 Port | Guest VLAN | In Guest VLAN -------+------------+--------------- gi1 | Enabled | No gi2 | Disabled | --- gi3 | Disabled | --- gi4 | Disabled | ---...
Command Guide of WGSW-28040 Use no form to delete the existing list. However, “default” list is not allowed to remove. Example: This example shows how to add a login authentication list to authenticate with order tacacs+, radius, local. Switch(config)# aaa authentication login test1 tacacs+ radius local...
Page 37
Command Guide of WGSW-28040 Parameter: 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”...
Page 41
Command Guide of WGSW-28040 Parameter: 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 Guide of WGSW-28040 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 WGSW-28040 ------+---------+------------------+--------+---------- 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.
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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.111 | 12345 | 5 | 10 | All |radiuskey...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.
Page 53
Command Guide of WGSW-28040 [sequence <1-2147483647>] deny (A:B:C:D:E:F/A:B:C:D:E:F|any) (A:B:C:D:E:F/A:B:C:D:E:F|any) [vlan <1-4094>] [cos <0-7> <0-7>] [ethtype <1501-65535>] [shutdown] 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.
Command Guide of WGSW-28040 sequence 50 deny any AA:BB:CC:00:00:00/FF:FF:FF:00:00:00 vlan 9 shutdown 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.
Page 56
Command Guide of WGSW-28040 match-all Specify tcp flag for TCP packet. If a flag should be set it is prefixed by \"+\".If a flag should be unset it is prefixed by \"-\". Available options are +urg, +ack, +psh, +rst, +syn, +fin, -urg, -ack, -psh, -rst, -syn and -fin.To define more than 1 flag - enter additional...
Page 58
Command Guide of WGSW-28040 [dscp VALUE] (Optional) Specify the DSCP of packet. [precedence (Optional) Specify the IP precedence of packet. VLAUE] icmp-type Specify ICMP message type for filtering ICMP packet. Enter a type name of list or a number of ICMP message type.
Command Guide of WGSW-28040 4.3.7 ipv6 acl Command: 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.
Command Guide of WGSW-28040 list or a number of TCP/UDP port. match-all Specify tcp flag for TCP packet. If a flag should be set it is prefixed by \"+\".If a flag should be unset it is prefixed by \"-\". Available options are +urg, +ack, +psh, +rst, +syn, +fin, -urg, -ack, -psh, -rst, -syn and -fin.To define more than 1 flag - enter additional...
Page 62
Command Guide of WGSW-28040 (<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] [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|tftp|sunrpc|ntp|netbios-ns| snmp|snmptrap|who|syslog|PORT_RANGE|any) [(dscp|precedence) VALUE] [shutdown] no sequence <1-2147483647> Parameter: <1-2147483647> (Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL.
Command Guide of WGSW-28040 match-all Specify tcp flag for TCP packet. If a flag should be set it is prefixed by \"+\".If a flag should be unset it is prefixed by \"-\". Available options are +urg, +ack, +psh, +rst, +syn, +fin, -urg, -ack, -psh, -rst, -syn and -fin.To define more than 1 flag - enter additional...
Command Guide of WGSW-28040 Global Configuration Context Configuration Usage Guide: Use the show acl command to show created ACLs. You can specify mac、ip or ipv6 to show specific type ACL or specify unique name string to show ACL with the name.
Page 65
Command Guide of WGSW-28040 Group Index : 2 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...
Command Guide of WGSW-28040 Switch# disable 3 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.
Command Guide of WGSW-28040 Mode: 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 Guide of WGSW-28040 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. Select ssh line to configure.
Command Guide of WGSW-28040 4.4.6 end Command: 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:...
Command Guide of WGSW-28040 Switch# reboot 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 WGSW-28040 System Up Time : 0 days, 0 hours, 2 mins, 37 secs 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 WGSW-28040 System Up Time : 0 days, 0 hours, 2 mins, 37 secs 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 WGSW-28040 System Up Time : 0 days, 0 hours, 2 mins, 37 secs 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.
Command Guide of WGSW-28040 4.4.13 ip address Command: 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.
Command Guide of WGSW-28040 Parameter: A.B.C.D Specify default gateway IPv4 address for switch Default: 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.
Command Guide of WGSW-28040 Global Configuration Usage Guide: Use “ip dns” command to modify DNS server address. And use “no ip dns” to delete existing DNS server. Example: This example shows how to modify the DNS server of the switch.
Command Guide of WGSW-28040 Switch# show ip dhcp DHCP Status : enabled 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.
Command Guide of WGSW-28040 Parameter: X:X::X:X Specify default gateway IPv6 address for switch 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 WGSW-28040 Example: This example shows how to enable dhcp client. 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 Guide of WGSW-28040 Switch(config)# ip telnet Telnetd daemon enabled. 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.
Command Guide of WGSW-28040 Example: This example shows how to change http session timeout to 15min and https session timeout to 20min 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.
Command Guide of WGSW-28040 Switch(config-line)# exec-timeout 15 Switch(config-line)# exit 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. Switch# show line Console ============================== Session Timeout : 15 (minutes)
Page 86
Command Guide of WGSW-28040 Parameter: <0-120> Specify password fail retry number. 0 means no limit. 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.
Command Guide of WGSW-28040 Switch(config-line)# silent-time 20 Switch(config-line)# exit This example shows how show line information. Switch# show line Console ============================== Session Timeout : 10 (minutes) History Count : 128 Password Retry : 3 Silent Time : 10 (seconds) Telnet ===============================...
Page 89
Command Guide of WGSW-28040 Default maximum history entry number is 128. Mode: line Configuration 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.
Command Guide of WGSW-28040 Session Timeout : 10 (minutes) History Count : 200 Password Retry : 3 Silent Time : 0 (seconds) This example shows how show history commands. Switch# show history Maximun History Count: 100 -------------------------------------------------- 1. enable 2. configure 3.
Command Guide of WGSW-28040 telnet Clear all telnet sessions. Clear all ssh sessions. 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.
Command Guide of WGSW-28040 Parameter: A.B.C.D Specify IPv4 to trace. max_hop <2-255> Specify maximum hop to trace. 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.
Command Guide of WGSW-28040 Switch# show arp Address HWtype HWaddress Flags Mask Iface 192.168.1.111 ether 00:30:4F:F1:4B:3C C eth0 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 Guide of WGSW-28040 Mode: User EXEC Privileged EXEC 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...
Command Guide of WGSW-28040 Example: 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.
Command Guide of WGSW-28040 Example: This example shows how to show existing user accounts. 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 Guide of WGSW-28040 Mode: User EXEC Privileged EXEC 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 Guide of WGSW-28040 4.4.39 show ipv6 dhcp Command: 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.
Page 100
Command Guide of WGSW-28040 Example: This example shows how show all lines’ information. Switch# show line Console ============================== Session Timeout : 15 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) Telnet =============================== Telnet Server : disabled...
Command Guide of WGSW-28040 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 WGSW-28040 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.
Command Guide of WGSW-28040 Parameter: VLAN-LIST Specify VLAN ID or a range of VLANs to enable or disable dynamic Arp inspection 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.
Command Guide of WGSW-28040 Default: DHCP snooping trust is disabled 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.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.8 show ip dhcp snooping interface...
Command Guide of WGSW-28040 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 WGSW-28040 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 WGSW-28040 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:...
Command Guide of WGSW-28040 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.D|...
Command Guide of WGSW-28040 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...
Page 121
Command Guide of WGSW-28040 smurf-deny : Smurf Attacks 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 ...
Command Guide of WGSW-28040 TCP Fragment (Offset = 1) | enabled 4.7.2 port dos Command: 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.
Command Guide of WGSW-28040 Interface Configuration Usage Guide: 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...
Command Guide of WGSW-28040 4.8 Dynamic ARP Inspection 4.8.1 ip arp inspection 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.
Command Guide of WGSW-28040 VLAN-LIST Specify VLAN ID or a range of VLANs to enable or disable dynamic Arp inspection Default: Default is disabled on all VLANs Mode: 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.
Command Guide of WGSW-28040 Interface Configuration Usage Guide: Use the ip arp inspection trust command to set trusted interface. The switch does not check ARP packets that are received on the trusted interface; it simply forwards it. Use the no form of this command to set untrusted interface.
Command Guide of WGSW-28040 The “src-mac” drop ARP requests and reply packets that arp-sender-mac and ethernet-source-mac is not match. The “dst-mac” drop ARP reply packets that arp-target-mac and ethernet-dst-mac is not match. The “ip” drop ARP request and reply packets that sender-ip is invalid such as broadcast、multicast、all zero IP address and drop ARP reply packets that target-ip is invalid.
Command Guide of WGSW-28040 Example: The example shows how to set rate limit to 30 pps on interface gi1. You can verify settings by the following show ip arp inspection interface command. switch(config)# interface gi1 switch(config)# ip arp inspection rate-limit 30...
Command Guide of WGSW-28040 4.8.7 show ip arp inspection Command: 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...
Page 130
Command Guide of WGSW-28040 switch# show ip arp inspection interface gi1 Interfaces | Trust State | Rate (pps) | SMAC Check | DMAC Check | IP Check/Allow Zero | ------------+--------------+--------------+----------------|-----------------+-------------------------+ gi1 | Trusted | None | disabled | disabled | disabled/disabled The example shows how to show statistics of interface gi1.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 no gvrp 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.
Command Guide of WGSW-28040 Interface Configuration Usage Guide: When set registration-mode is fixed or forbidden, will remove the port from vlan witch is dynamic port. And do not learning vlan. Example: The following example specifies that set gvrp registration mode test.
Command Guide of WGSW-28040 show gvrp error-statistics [interfaces IF_PORTS] Parameter: [interfaces Specifies posts 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 WGSW-28040 This command will display the gvrp global info. Example: The following example specifies that display gvrp test. 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...
Page 137
Command Guide of WGSW-28040 gi 5 Disabled Normal Enabled gi 6 Disabled Normal Enabled gi 7 Disabled Normal Enabled --More--...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 ip igmp snooping report-suppression 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.
Command Guide of WGSW-28040 Mode: 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’.
Command Guide of WGSW-28040 When action is router-port to flood or drop, it will delete the unknown multicast group entry. 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 WGSW-28040 Mode: 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 WGSW-28040 The configure can use ‘show ip igmp snooping querier’. 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...
Page 144
Command Guide of WGSW-28040 no ip igmp snooping vlan 1-4094 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.
Command Guide of WGSW-28040 4.10.8 ip igmp snooping vlan parameters Command: ip igmp snooping vlan <VLAN-LIST> last-member-query-count <1-7> no ip igmp snooping vlan <VLAN-LIST> last-member-query-count ip igmp snooping vlan <VLAN-LIST> last-member-query-interval <1-60> no ip igmp snooping vlan <VLAN-LIST> last-member-query-interval [no] ip igmp snooping vlan <VLAN-LIST> router learn pim-dvmrp [no] ip igmp snooping vlan <VLAN-LIST>...
Page 146
Command Guide of WGSW-28040 variable <1-7> 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...
Command Guide of WGSW-28040 4.10.9 ip igmp snooping static port Command: [no] ip igmp snooping vlan <VLAN-LIST> static-port IF_PORTS [no] ip igmp snooping vlan <VLAN-LIST> forbidden-port IF_PORTS Parameter: VLAN-LIST specifies VLAN ID list to set IF_PORTS specifies a port list to set or remove...
Command Guide of WGSW-28040 [no] ip igmp snooping vlan <VLAN-LIST> static-router-port IF_PORTS [no] ip igmp snooping vlan <VLAN-LIST> forbidden-router-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 router ports...
Command Guide of WGSW-28040 4.10.11 ip igmp snooping static group Command: [no] ip igmp snooping vlan <VLAN-LIST> static-group <ip-addr> interfaces IF_PORTS [no] ip igmp snooping vlan <VLAN-LIST> group <ip-addr> show ip igmp snooping groups [(dynamic | static)] clear ip igmp snooping groups [(dynamic | static)]...
Command Guide of WGSW-28040 Switch# show ip igmp snooping groups VLAN | Gourp IP Address | Type | Life(Sec) | Port ------+------------------+--------+-----------+------------------ Total Number of Entry = 0 4.10.12 ip igmp profile Command: ip igmp profile <1-128> profile range ip <ip-addr> [ip-addr] action (permit | deny) show ip igmp profile [<1-128>]...
Command Guide of WGSW-28040 Switch(config-igmp-profile)# profile range ip 224.1.1.1 224.1.1.8 action permit Switch(config-igmp-profile)#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 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...
Command Guide of WGSW-28040 <1-128> specifies profile ID [interfaces Specifies interfaces to display IF_PORTS] 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.
Page 153
Command Guide of WGSW-28040 ip igmp max-groups action (deny | replace) show ip igmp max-group [interfaces IF_PORTS] 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.
Command Guide of WGSW-28040 clear ip igmp snooping statistics 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.
Command Guide of WGSW-28040 Parameter: (dynamic | static) Display Ip igmp group type is dynamic or static 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.
Command Guide of WGSW-28040 4.10.20 show ip igmp snooping querier 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.
Command Guide of WGSW-28040 4.10.24 show ip igmp profile 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.
Command Guide of WGSW-28040 Mode: Privileged Configuration 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 ---------+--------------...
Command Guide of WGSW-28040 Switch(config-if)#ip igmp max-groups 50 Switch(config-if)#exit 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 Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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>...
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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 WGSW-28040 Parameter: <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.
Command Guide of WGSW-28040 Example: 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.
Command Guide of WGSW-28040 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 Guide of WGSW-28040 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”...
Command Guide of WGSW-28040 <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.
Command Guide of WGSW-28040 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 WGSW-28040 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 Guide of WGSW-28040 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:...
Page 183
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 gi3 | Yes | Yes | No | No | No gi4 | Yes | Yes | No | No | No gi5 | No | Yes | No | No | No gi6 | No | Yes | No | No | No...
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 Example: This example binds network policy for interface gi1 and gi2. 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...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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 Guide of WGSW-28040 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.
Page 193
Command Guide of WGSW-28040 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.
Page 194
Command Guide of WGSW-28040 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.1 PVID: 1...
Command Guide of WGSW-28040 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.
Page 196
Command Guide of WGSW-28040 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.1 PVID: 1...
Command Guide of WGSW-28040 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.
Page 198
Command Guide of WGSW-28040 gi3 | Yes | No | No | No | No gi4 | Yes | No | No | No | No gi5 | No | Yes | No | No | No gi6 | No | Yes | No | No | No...
Command Guide of WGSW-28040 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.
Page 201
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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”.
Command Guide of WGSW-28040 Disable the capability to log message to flash. Once the logging capability of flash is disabled, the status of logging flash service will be removed from the service list shown by the command “show logging”. no logging buffered Disable the capability to log message to RAM.
Page 205
Command Guide of WGSW-28040 logging host <ip-addr> [port <0-65535>] [severity <0-7>] [facility (local0|local1|local2|local3|local4|local5|local6|local7)] no logging <ip-addr> 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.
Command Guide of WGSW-28040 2| Jan 01 08:00:42| STP| info| Port 1 STP port state is set to Learning 3| Jan 01 08:00:30| AAA| info| User '' enter privileged mode from console with level '15' success 4| Jan 01 08:00:28| AAA| info| User '' is authorized with privilege level 1...
Page 209
Command Guide of WGSW-28040 2| Jan 01 08:00:42| STP| info| Port 1 STP port state is set to Learning 3| Jan 01 08:00:30| AAA| info| User '' enter privileged mode from console with level '15' success 4| Jan 01 08:00:28| AAA| info| User '' is authorized with privilege level 1...
Command Guide of WGSW-28040 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. <1-4094> Delete all dynamic addresses on the specified VLAN...
Command Guide of WGSW-28040 4.15.2 mac address-table aging-time 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. Mode: Global Configuration Usage Guide: Use the mac address-table aging-time Global configuration command to set the aging time of the address table...
Command Guide of WGSW-28040 IF_PORTS Interface to which the received packet is forwarded. Valid interfaces include physical ports and port channels. Mode: Global Configuration Usage Guide: Use the mac address-table static global configuration command to add static addresses to the MAC address table.
Command Guide of WGSW-28040 Use the mac address-table static drop global configuration command to enable unicast MAC address filtering and to configure the switch to drop traffic with a specific source or destination MAC address. Use the no form of this command to return to the default setting.
Command Guide of WGSW-28040 Command: 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...
Command Guide of WGSW-28040 Specify the source interface, Valid interfaces include physical ports and port channels. IF_PORTS Specify the traffic direction to mirror. both,rx,tx Specify the mirrored VLAN ID <1-4094> Specify the SPAN destination. A destination must be a physical port IF_NMLPORT Enable ingress traffic forwarding.
Page 217
Command Guide of WGSW-28040 Command: 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...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 4.17.3 ipv6 mld snooping version 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’.
Page 221
Command Guide of WGSW-28040 show ipv6 mld snooping vlan [VLAN-LIST] Parameter: specifies VLAN ID list to set VLAN-LIST 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.
Command Guide of WGSW-28040 count <1-7> Specify last member query interval to set. Default is 1 last-member-query- interval <1-60> Specify query interval to set. Default is 125 query-interval <30-18000> Specify a response time to set. default is 10 response-time <5-20>...
Command Guide of WGSW-28040 4.17.6 ipv6 mld snooping vlan static-port Command: [no] ipv6 mld snooping vlan <VLAN-LIST> static-port IF_PORTS [no] ipv6 mld snooping vlan <VLAN-LIST> forbidden-port IF_PORTS Parameter: VLAN-LIST Specify VLAN ID list to set IF_PORTS Specify a port list to set or remove...
Page 225
Command Guide of WGSW-28040 [no] ipv6 mld snooping vlan <VLAN-LIST> static-router-port IF_PORTS [no] ipv6 mld snooping vlan <VLAN-LIST> forbidden-router-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 router ports...
Command Guide of WGSW-28040 The configure can use ‘show ipv6 mld filter ’ to display Example: This example shows how to set ipv6 mld filter 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...
Page 230
Command Guide of WGSW-28040 Default: no ipv6 mld max-groups ipv6 mld max-groups action deny Mode: 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.
Command Guide of WGSW-28040 4.17.12 clear ipv6 mld snooping groups Command: 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...
Command Guide of WGSW-28040 Usage Guide: This command will clear the mld statistics. The configure can use show ipv6 mld snooping. Example: 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 Guide of WGSW-28040 Mode: Privileged mode Usage Guide: This command will display the ipv6 mld groups for dynamic or static or all of type. Example: This example shows show ipv6 mld snooping groups Switch# show ipv6 mld snooping groups...
Command Guide of WGSW-28040 4.17.17 show ipv6 mld snooping Command: show ipv6 mld snooping Mode: privileged mode Usage Guide: This command will display ipv6 mld snooping global info. Example: This example shows how to show ipv6 mld snooping Switch# show ipv6 mld snooping...
Command Guide of WGSW-28040 Mode: privileged mode Usage Guide: This command will display ipv6 mld snooping forward all info. Example: This example shows how to show ipv6 mld snooping forward-all Switch# show ipv6 mld snooping forward-all MLD Snooping VLAN : 1...
Command Guide of WGSW-28040 4.17.21 show ipv6 mld filter Command: 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...
Command Guide of WGSW-28040 Mode: privileged mode Usage Guide: This command will display ipv6 mld port max-group. 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...
Command Guide of WGSW-28040 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 WGSW-28040 no dot1x port-control address-limit 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.
Page 242
Command Guide of WGSW-28040 IF_PORTS Select port to show port-security configurations. 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 WGSW-28040 Usage Guide: 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.
Page 245
Command Guide of WGSW-28040 Parameter: <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.
Command Guide of WGSW-28040 4.19.3 show errdisable recovery 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. Example: This example shows how to show current auto recovery interval...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 4.20.2 speed Command: speed (10 | 100 | 1000) speed auto [(10 | 100 | 1000 | 10/100)] Parameter: Specify port speed to force 10Mbits/s or auto with 10Mbits/s ability. Specify port speed to force 100Mbits/s or auto with 100Mbits/s ability.
Command Guide of WGSW-28040 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...
Page 250
Command Guide of WGSW-28040 no flow-control Parameter: Disable port flow control. 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.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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: no eee Default: Default eee state is disabled. Mode:...
Command Guide of WGSW-28040 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 WGSW-28040 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.
Page 256
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 Switch# show qos QoS Mode: basic Basic trust: cos 4.21.2 qos trust Command: qos trust (cos | cos-dscp | dscp | precedence) Parameter: Specify the device to trust CoS cos-dscp Specify the device to trust DSCP for IP packets, and trust CoS for non-IP packets.
Command Guide of WGSW-28040 CoS-DSCP: Trust DSCP for IP packets and assign queue according to dscp-queue map. Trust CoS for non-IP packets and assign queue according to cos-queue map. Example: This example shows how to change qos basic mode trust types.
Page 260
Command Guide of WGSW-28040 <0-7> Specify the cos or precedence values <0-63> Specify the dscp values Default: The default values of cos-queue are showing in the following table. Queue ID The default values of dscp-queue are showing in the following table.
Page 261
Command Guide of WGSW-28040 The default values of queue-cos are showing in the following table. Queue ID The default values of queue-dscp are showing in the following table. Queue ID DSCP The default values of queue-precedence are showing in the following table.
Command Guide of WGSW-28040 to assign the correct queue. The queue to cos, dscp or precedence maps are used by remarking function. If the port remarking feature is enabled, the remarking function will reference these 3 tables to remark packets.
Page 263
Command Guide of WGSW-28040 1 to 127. 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 Mode:...
Command Guide of WGSW-28040 5 - 25 dis- N/A 6 - N/A ena- 6 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.
Command Guide of WGSW-28040 4.21.6 qos trust 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.
Command Guide of WGSW-28040 Parameter: Enable/Disable cos remarking. dscp Enable/Disable dscp remarking. 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. For example, you want all packets egress from interface fa1 queue 1 to remark the cos value to be 5 for next tier of device, you can enable the cos remarking feature on fa1 and configure the queue-cos map for queue 1 map to cos 5.
Command Guide of WGSW-28040 Mode: Privileged EXEC Usage Guide: 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...
Page 269
Command Guide of WGSW-28040 IF_PORTS Select port to show qos configurations. Mode: 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 WGSW-28040 Switch# show running-config rate-limit ingress burst 5000 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: Specify the maximum number of kilobits per second of ingress traffic on a port.
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 switch(config)# show rmon event 1 Rmon Event Index : 1 Rmon Event Type : Log Rmon Event Community : public Rmon Event Description : test Rmon Event Last Sent : Rmon Event Owner : admin 4.23.2 Rmon alarm Command: rmon alarm <1-65535>...
Page 275
Command Guide of WGSW-28040 ets) <1-2147483647> Specify the time in seconds that the alarm monitors the MIB variable (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>...
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 4.23.7 show rmon alarm Command: show rmon alarm (<1-65535> | all) Parameter: <1-65535> specifies alarm index to show Show all existed alarm Mode: Global Configuration Usage Guide: Use the show rmon alarm command to show existed RMON alarm entry.
Command Guide of WGSW-28040 Parameter: <1-65535> specifies history index to show 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.
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 snmp trap port-security Mode: 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.
Command Guide of WGSW-28040 Default: Default View is “all” and subtree is .1 the type is include. 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.
Command Guide of WGSW-28040 Mode: Global Configuration 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.
Command Guide of WGSW-28040 Mode: Global Configuration 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.
Command Guide of WGSW-28040 GROUPNAME Snmp user specifies group [auth (md5|sha)] Snmp user auth protocol 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.
Command Guide of WGSW-28040 ENGINEID) ENGINEID is 10~64 hex characters (A.B.C.D|X:X::X:X) Host ipv4/ipv6 address 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.
Command Guide of WGSW-28040 NAME Snmp community name or user name [udp-port The manage receive trap udp port num <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...
Command Guide of WGSW-28040 Mode: privileged mode 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.
Command Guide of WGSW-28040 Example: The following example specifies that display snmp view test. 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.
Command Guide of WGSW-28040 Switch# show snmp community 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 Guide of WGSW-28040 4.24.16 show snmp engineid 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. Switch# show snmp engineid...
Command Guide of WGSW-28040 4.25 Storm Control 4.25.1 Storm-control unit Command: storm-control unit (bps | pps) Parameter: Storm control rate calculates by octet-based 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 WGSW-28040 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.
Page 297
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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 WGSW-28040 Switch# 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.
Page 303
Command Guide of WGSW-28040 spanning-tree mode ( stp | rstp | mstp ) Parameter: 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:...
Command Guide of WGSW-28040 4.26.4 spanning-tree priority 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.
Command Guide of WGSW-28040 4.26.5 spanning-tree hello-time 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 Guide of WGSW-28040 4.26.6 spanning-tree max-hops 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 Guide of WGSW-28040 This command configures the BPDU forward-delay interval (second). The configuration could be shown by “show spanning-tree” command. 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>...
Command Guide of WGSW-28040 spanning-tree tx-hold-count <1-10> 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...
Command Guide of WGSW-28040 Switch# configure Switch(config)# spanning-tree pathcost method short 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.
Command Guide of WGSW-28040 Auto ) 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.
Command Guide of WGSW-28040 4.26.14 spanning-tree bpdu-filter 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.
Command Guide of WGSW-28040 Switch# configure Switch(config)# interface gi1 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.
Page 313
Command Guide of WGSW-28040 name NAME 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.
Command Guide of WGSW-28040 <0-15> Specify the MST instance ID to configure. <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...
Page 316
Command Guide of WGSW-28040 Example: This example sets port gi1 MST port priority of MST instance 0 to 32. Switch# configure Switch(config)# interface gi1 Switch(config-if)# spanning-tree mst 1 cost 0 Switch(config-if)# exit Switch(config)# interface gi1 Switch(config-if)# spanning-tree mst 1 port-priority 32...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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.
Page 319
Command Guide of WGSW-28040 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 WGSW-28040 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://)
Command Guide of WGSW-28040 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”...
Command Guide of WGSW-28040 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.32811...
Command Guide of WGSW-28040 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.
Page 325
Command Guide of WGSW-28040 clock timezone ACRONYM HOUR-OFFSET [minutes <0-59>] 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.
Command Guide of WGSW-28040 4.28.3 clock source 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.
Command Guide of WGSW-28040 Example: The example shows how to set clock source of switch. You can verify settings by the following show show clock command. switch(config)# clock source sntp switch(config)# show clock detail 08:32:12 test(UTC+5) Sep 21 2012 No time source...
Command Guide of WGSW-28040 14:35:39 DLS(UTC+9) Sep 25 2012 Time source is sntp Time zone: 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.
Command Guide of WGSW-28040 SNTP is Enabled SNTP Server address: 192.168.1.100 SNTP Server port: 123 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.
Command Guide of WGSW-28040 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).
Command Guide of WGSW-28040 VLAN Configuration Usage Guide: 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 Guide of WGSW-28040 switchport bybrid ingress-filtering 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.
Command Guide of WGSW-28040 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 Guide of WGSW-28040 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. The configuration could be shown by “show interface switchport”...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 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 Guide of WGSW-28040 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.
Page 342
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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:...
Command Guide of WGSW-28040 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...
Page 345
Command Guide of WGSW-28040 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...
Command Guide of WGSW-28040 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.
Command Guide of WGSW-28040 Use the voice vlan id global configuration command to configure the VLAN identifier of the voice VLAN statically You can verify your setting by entering the show voice vlan Privileged EXEC command Example: The following example shows how to set Voice VLAN ID, before make sure the VLAN EXIST.
Command Guide of WGSW-28040 voice-vlan cos <0-7> [remark] 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 WGSW-28040 Example: The following example show how to set aging time. Switch(config)# voice-vlan aging-time 720 4.30.6 voice vlan cos mode Command: voice-vlan cos ( src | all ) no voice-vlan Parameter: Specify QoS attributes are applied to packets with OUIs in the source MAC address.
Command Guide of WGSW-28040 voice-vlan 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...
Page 351
Command Guide of WGSW-28040 Switch# show voice-vlan 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...