4.1.8 clear ip arp...........................................................................................................................................................31
4.1.9 clear ip dhcp detailed statistics all .......................................................................................................................31
4.1.10 clear ip dhcp detailed statistics client.................................................................................................................32
4.1.11 clear ip dhcp detailed statistics helper ...............................................................................................................32
4.1.12 clear ip dhcp detailed statistics server...............................................................................................................33
4.1.13 clear ip dhcp detailed statistics snooping ..........................................................................................................33
4.1.14 clear ip dhcp relay statistics...............................................................................................................................34
4.1.15 clear ip dhcp server binding...............................................................................................................................34
4.1.16 clear ip dhcp server binding automatic ..............................................................................................................34
4.1.17 clear ip dhcp server binding expired..................................................................................................................35
4.1.18 clear ip dhcp server binding manual..................................................................................................................35
4.1.19 clear ip igmp snooping statistics........................................................................................................................36
-2-
Command Guide of XGSW-28040HP
4.1.20 clear ip igmp snooping vlan...............................................................................................................................36
4.1.21 clear ip statistics icmp icmp-msg.......................................................................................................................37
4.1.22 clear ip statistics icmp interface vlan .................................................................................................................37
4.1.23 clear ip statistics system icmp icmp-msg...........................................................................................................38
4.1.24 clear ip statistics system icmp interface vlan.....................................................................................................38
4.1.36 clear logging info error.......................................................................................................................................44
4.1.37 clear logging info warning..................................................................................................................................44
4.1.40 clear mac address-table ....................................................................................................................................45
4.2.39 end ....................................................................................................................................................................74
4.2.47 erps <1-64> sub ................................................................................................................................................78
4.2.58 green-ethernet led interval.................................................................................................................................90
4.2.59 green-ethernet led on-event ..............................................................................................................................90
4.2.65.9 aggregation group ...................................................................................................................................98
4.2.65.18 end ......................................................................................................................................................103
4.2.65.31 ip arp inspection check-vlan................................................................................................................110
4.2.65.32 ip arp inspection logging......................................................................................................................110
4.2.65.33 ip arp inspection trust ..........................................................................................................................111
4.2.65.34 ip dhcp snooping trust .........................................................................................................................111
4.2.65.35 ip igmp snooping filter .........................................................................................................................112
4.2.65.36 ip igmp snooping immediate-leave...................................................................................................... 112
4.2.65.37 ip igmp snooping max-groups .............................................................................................................113
4.2.65.38 ip igmp snooping mrouter....................................................................................................................113
4.2.65.39 ip verify source....................................................................................................................................114
4.2.65.40 ip verify source limit.............................................................................................................................114
4.2.65.51 lldp med media-vlan policy-list.............................................................................................................120
4.2.65.52 lldp med transmit-tlv ............................................................................................................................120
4.2.65.64 mac address-table learning .................................................................................................................126
4.2.65.68 mvr name ............................................................................................................................................128
4.2.65.80 poe power limit....................................................................................................................................135
4.2.66.4 ip address..............................................................................................................................................172
4.2.66.5 ip address dhcp.....................................................................................................................................172
-8-
Command Guide of XGSW-28040HP
4.2.66.6 ip address dhcp fallback........................................................................................................................173
4.2.66.7 ip dhcp server........................................................................................................................................173
4.2.66.8 ip igmp snooping ...................................................................................................................................174
4.2.66.9 ip igmp snooping compatibility...............................................................................................................174
4.2.66.10 ip igmp snooping last-member-query-interval......................................................................................175
4.2.66.11 ip igmp snooping priority .....................................................................................................................176
4.2.66.12 ip igmp snooping querier address .......................................................................................................176
4.2.66.13 ip igmp snooping querier election........................................................................................................177
4.2.66.14 ip igmp snooping query-interval...........................................................................................................177
4.2.66.15 ip igmp snooping query-max-response-time........................................................................................178
4.2.66.16 ip igmp snooping robustness-variable.................................................................................................179
4.2.66.17 ip igmp snooping unsolicited-report-interval ........................................................................................179
4.2.67 ip arp inspection ..............................................................................................................................................186
4.2.68 ip arp inspection entry interface .......................................................................................................................186
4.2.69 ip arp inspection translate................................................................................................................................187
4.2.70 ip arp inspection translate interface.................................................................................................................188
4.2.71 ip arp inspection vlan.......................................................................................................................................188
4.2.72 ip dhcp excluded-address................................................................................................................................189
4.2.73 ip dhcp pool.....................................................................................................................................................190
4.2.74 ip dns proxy.....................................................................................................................................................201
4.2.75 ip helper-address.............................................................................................................................................202
4.2.76 ip http secure-redirect......................................................................................................................................202
4.2.77 ip http secure-server........................................................................................................................................203
4.2.78 ip igmp host-proxy...........................................................................................................................................203
4.2.79 ip igmp host-proxy leave-proxy........................................................................................................................204
4.2.80 ip igmp snooping .............................................................................................................................................204
4.2.81 ip igmp snooping vlan......................................................................................................................................205
4.2.82 ip igmp ssm-range...........................................................................................................................................206
4.2.83 ip igmp unknown-flooding................................................................................................................................206
4.2.84 ip name-server ................................................................................................................................................207
4.2.85 ip name-server dhcp........................................................................................................................................207
4.2.86 ip name-server dhcp interface vlan..................................................................................................................208
4.2.87 ip route ............................................................................................................................................................208
4.2.88 ip routing..........................................................................................................................................................209
4.2.89 ip source binding interface...............................................................................................................................209
4.2.90 ip ssh...............................................................................................................................................................210
4.2.91 ip verify source ................................................................................................................................................211
4.2.92 ip verify source translate..................................................................................................................................211
4.2.94.1 default range .........................................................................................................................................213
4.2.103.1 do ........................................................................................................................................................221
4.2.103.3 end ......................................................................................................................................................222
4.2.103.8 history size ..........................................................................................................................................225
4.2.103.12 no ......................................................................................................................................................227
4.2.105 lldp med datum..............................................................................................................................................229
4.2.106 lldp med fast..................................................................................................................................................229
4.2.107 lldp med location-tlv altitude ..........................................................................................................................230
4.2.108 lldp med location-tlv elin-addr........................................................................................................................230
4.2.109 lldp med location-tlv latitude ..........................................................................................................................231
4.2.110 lldp med location-tlv longitude........................................................................................................................231
4.2.111 lldp med media-vlan-policy.............................................................................................................................232
4.2.121 mac address-table aging-time .......................................................................................................................238
4.2.122 mac address-table static................................................................................................................................238
4.2.133 mep <Instance> down ...................................................................................................................................246
4.2.150 mvr name <mvr_name> channel...................................................................................................................257
4.2.151 mvr name <mvr_name> frame priority...........................................................................................................258
4.2.152 mvr name <mvr_name> frame tagged ..........................................................................................................258
4.2.153 mvr name <mvr_name> igmp-address..........................................................................................................259
4.2.154 mvr name <mvr_name> last-member-query-interval.....................................................................................259
4.2.155 mvr name <mvr_name> mode ......................................................................................................................260
4.2.165 no ..................................................................................................................................................................265
4.2.167 ntp server ......................................................................................................................................................266
4.2.177.1 do ........................................................................................................................................................272
4.2.177.2 end ......................................................................................................................................................273
4.2.177.4 no ........................................................................................................................................................274
4.2.180 port-security aging time .................................................................................................................................277
4.2.209 snmp-server community ................................................................................................................................299
4.2.212.1 do ........................................................................................................................................................301
4.2.212.2 end ......................................................................................................................................................302
4.2.212.5 no ........................................................................................................................................................304
4.2.213.1 do ........................................................................................................................................................307
4.2.213.2 end ......................................................................................................................................................308
4.2.213.4 no ........................................................................................................................................................309
4.2.217 transport email authentication .......................................................................................................................315
4.2.218 transport email from.......................................................................................................................................316
4.2.219 transport email smtp-server...........................................................................................................................316
-
-14
Command Guide of XGSW-28040HP
4.2.220 transport email to...........................................................................................................................................317
4.2.225.1 do ........................................................................................................................................................320
4.2.225.2 end ......................................................................................................................................................321
4.2.225.4 name ...................................................................................................................................................322
4.2.225.5 no ........................................................................................................................................................322
4.2.230 voice vlan class .............................................................................................................................................325
4.2.233 web privilege group .......................................................................................................................................327
4.6.1 dir ......................................................................................................................................................................330
4.8 do ...............................................................................................................................331
4.8.1 do ......................................................................................................................................................................331
4.17 no .............................................................................................................................337
4.17.1 no ....................................................................................................................................................................337
4.21.1 show aaa.........................................................................................................................................................342
4.21.2 show access management..............................................................................................................................342
4.21.3 show access-list ..............................................................................................................................................343
4.21.4 show access-list ..............................................................................................................................................344
4.21.5 show access-list ace-status.............................................................................................................................346
4.21.6 show aggregation............................................................................................................................................347
4.21.7 show aggregation mode ..................................................................................................................................347
4.21.8 show clock.......................................................................................................................................................348
4.21.9 show clock detail .............................................................................................................................................349
4.21.10 show dot1x statistics......................................................................................................................................350
4.21.11 show dot1x status..........................................................................................................................................351
4.21.12 show eps .......................................................................................................................................................352
4.21.13 show erps......................................................................................................................................................353
4.21.14 show evc .......................................................................................................................................................354
4.21.15 show evc statistics.........................................................................................................................................355
-
-16
Command Guide of XGSW-28040HP
4.21.16 show green-ethernet......................................................................................................................................355
4.21.17 show green-ethernet energy-detect...............................................................................................................356
4.21.18 show green-ethernet short-reach...................................................................................................................356
4.21.19 show history ..................................................................................................................................................357
4.21.20 show interface <port_type> <port_type_list> capabilities ..............................................................................357
4.21.21 show interface <port_type> <port_type_list> statistics..................................................................................358
4.21.22 show interface <port_type> <port_type_list> status ......................................................................................359
4.21.23 show interface <port_type> <port_list> switchport.........................................................................................359
4.21.24 show interface <port_type> <port_type_list> veriphy ....................................................................................360
4.21.25 show interface <port_type> <port_type_list> veriphy ....................................................................................361
4.21.26 show interface vlan........................................................................................................................................361
4.21.27 show ip arp....................................................................................................................................................362
4.21.28 show ip arp inspection...................................................................................................................................363
4.21.29 show ip arp inspection...................................................................................................................................363
4.21.30 show ip arp inspection entry..........................................................................................................................364
4.21.31 show ip dhcp detailed statistics .....................................................................................................................365
4.21.32 show ip dhcp excluded-address ....................................................................................................................366
4.21.33 show ip dhcp pool..........................................................................................................................................367
4.21.34 show ip dhcp relay.........................................................................................................................................368
4.21.35 show ip dhcp server.......................................................................................................................................368
4.21.36 show ip dhcp server binding (GG).................................................................................................................369
4.21.37 show ip dhcp server declined-ip (GG) ...........................................................................................................370
4.21.38 show ip dhcp server statistics........................................................................................................................370
4.21.39 show ip dhcp snooping..................................................................................................................................371
4.21.40 show ip dhcp snooping table .........................................................................................................................372
4.21.41 show ip http server secure status..................................................................................................................373
4.21.42 show ip igmp snooping..................................................................................................................................373
4.21.43 show ip igmp snooping mrouter.....................................................................................................................374
4.21.44 show ip interface brief....................................................................................................................................375
4.21.45 show ip name-server.....................................................................................................................................375
4.21.46 show ip route.................................................................................................................................................376
4.21.47 show ip source binding..................................................................................................................................376
4.21.48 show ip ssh....................................................................................................................................................377
4.21.49 show ip statistics............................................................................................................................................377
4.21.50 show ip verify source.....................................................................................................................................379
4.21.51 show ipmc profile...........................................................................................................................................380
4.21.52 show ipmc range ...........................................................................................................................................380
4.21.53 show ipv6 interface........................................................................................................................................381
4.21.54 show ipv6 mld snooping ................................................................................................................................382
4.21.55 show ipv6 mld snooping mrouter...................................................................................................................383
4.21.56 show ipv6 neighbor........................................................................................................................................383
-
-17
Command Guide of XGSW-28040HP
4.21.57 show ipv6 route .............................................................................................................................................384
4.21.58 show ipv6 statistics........................................................................................................................................385
4.21.59 show lacp ......................................................................................................................................................387
4.21.60 show line .......................................................................................................................................................387
4.21.61 show lldp med media-vlan-policy...................................................................................................................388
4.21.62 show lldp med remote-device........................................................................................................................ 389
4.21.63 show lldp neighbors.......................................................................................................................................389
4.21.64 show lldp statistics.........................................................................................................................................390
4.21.65 show logging .................................................................................................................................................390
4.21.66 show loop-protect..........................................................................................................................................391
4.21.67 show mac address-table................................................................................................................................392
4.21.68 show mep......................................................................................................................................................393
4.21.69 show mvr.......................................................................................................................................................394
4.21.70 show network-clock.......................................................................................................................................395
4.21.71 show ntp status..............................................................................................................................................395
4.21.72 show platform phy .........................................................................................................................................396
4.21.73 show platform phy failover.............................................................................................................................397
4.21.74 show platform phy id......................................................................................................................................397
4.21.75 show platform phy status...............................................................................................................................398
4.21.76 show port-security port ..................................................................................................................................398
4.21.77 show port-security switch ..............................................................................................................................399
4.21.78 show privilege................................................................................................................................................400
4.21.79 show pvlan ....................................................................................................................................................400
4.21.80 show pvlan isolation ......................................................................................................................................401
4.21.81 show qos .......................................................................................................................................................401
4.21.82 show radius-server........................................................................................................................................404
4.21.83 show rmon alarm...........................................................................................................................................404
4.21.84 show rmon event...........................................................................................................................................405
4.21.85 show rmon history .........................................................................................................................................406
4.21.86 show rmon statistics......................................................................................................................................406
4.21.87 show running-config ......................................................................................................................................407
4.21.88 show snmp ....................................................................................................................................................409
4.21.89 show snmp access........................................................................................................................................411
4.21.90 show snmp community v3 .............................................................................................................................412
4.21.91 show snmp host.............................................................................................................................................412
4.21.92 show snmp mib context.................................................................................................................................413
4.21.93 show snmp mib ifmib ifIndex .........................................................................................................................415
4.21.94 show snmp security-to-group ........................................................................................................................417
4.21.95 show snmp user ............................................................................................................................................418
4.21.96 show snmp view............................................................................................................................................418
4.21.97 show spanning-tree.......................................................................................................................................419
-
-18
Command Guide of XGSW-28040HP
4.21.98 show switchport forbidden.............................................................................................................................420
4.21.99 show tacacs-server........................................................................................................................................421
4.21.100 show terminal ..............................................................................................................................................421
4.21.101 show upnp...................................................................................................................................................422
4.21.102 show users ..................................................................................................................................................423
4.21.103 show version ...............................................................................................................................................424
4.21.104 show vlan ....................................................................................................................................................425
4.21.105 show vlan ip-subnet.....................................................................................................................................425
4.21.106 show vlan mac.............................................................................................................................................426
4.21.107 show vlan protocol.......................................................................................................................................426
4.21.108 show voice vlan...........................................................................................................................................427
4.21.109 show web privilege group............................................................................................................................428
4.22.3 terminal history size.........................................................................................................................................431
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.2 Command Line Modes
The CLI groups all the commands in appropriate modes according to the nature of the command. A sample of the CLI command
modes are described below. Each of the command modes supports specific software commands.
Mode-based Command Hierarchy
The Command Line Interface (CLI) groups all the commands in appropriate modes by the nature of the commands. Examples
of the CLI command modes are described below. Each of the command modes supports specific switch’s commands.
The CLI Command Modes table captures the command modes, the prompts visible in that mode and the exit method from that
mode.
Command Mode Access Method Prompt Exit or Access Previous Mode
This is the first level of
User Mode
Privileged Mode
Global Config
Mode
access. Perform basic tasks
and list system information.
From the User Mode, enter
the enable command.
From the Privileged Mode,
enter the configuration
command.
COMMAND>
Switch#
Switch (Config)#
Enter Logout command
To exit to the User Mode, enter
exit or Logout.
To exit to the Privileged Mode,
enter the exit command.
Interface Config
Mode
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.
From the Global Config
mode, enter the interface
<port#> command.
Table 4-1 CLI Command Modes
Switch (Interface <port#>)#
-
-20
To exit to the Global Config
mode, enter exit.
Command Guide of XGSW-28040HP
The CLI provides the following modes:
User Mode
When the operator logs into the CLI, the User Mode is the initial mode. The User Mode contains a limited set of commands. The
command prompt shown at this level is:
Command Prompt: switch>
Privileged Mode
To have access to the full suite of commands, the operator must enter the Privileged Mode. The Privileged Mode requires
password authentication. From Privileged Mode, the operator can issue any Exec command to enter the Global Configuration
mode. The command prompt shown at this level is:
Command Prompt: switch#
Global Config Mode
This mode permits the operator to make modifications to the running configuration. General setup commands are gr ouped in
this mode. From the Global Configuration mode, the operator can enter the Interface Configuration mode. The command
prompt at this level is:
Command Prompt: switch(Config)#
From the Global Config mode, the operator may enter the following configuration modes:
Interface Config Mode
Many features are enabled for a particular interface. The Interface commands enable or modify the operation of an interface. In
this mode, a physical port is set up for a specific logical connection operation. The command prompt at this level is:
Command Prompt: Switch(Interface <port#>)#
1.3 Requirements
Workstations running Windows XP/Vista/7/8/, Windows 2003/2008, MAC OS X or later, Linux, UNIX, or other platforms
are compatible with TCP/IP protocols.
Workstations are installed with Ethernet NIC (Network Interface Card)
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.
The above PC is installed with Web Browser and JAVA runtime environment plug-in.
-
-21
Command Guide of XGSW-28040HP
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 a RJ-45 type, RS-23 2 serial port connector. It is an interface for connecting a
terminal directly. Through the console port, it provides rich diagnostic information including IP Address setting, factory reset, port
management, link status and system setting. Users can use the attached RS-232 cable in the package and connect to the
console port on the device. After the connection, users can run any terminal emulatio n program (Hyper Terminal, ProComm
Plus, Telix, Winterm and so on) to enter the startup screen of the device.
XGSW-28040HP Rear Panel
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. The Hyper Terminal can be accessed from the Start menu.
Figure 2-2: Rear Panel of XG
SW-28040HP
1. Click START, then Programs, Accessories and then Hyper Terminal.
2. When the following screen appears, make sure that the COM port should be configured as:
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 messag es are sent to the serial port,
regardless of the interface through which the associated action was initiated. A Macintosh or PC attachment can use any
terminal-emulation program for connecting to the terminal serial port. A workstation attachment under UNIX can use an
emulator such as TIP.
-23
-
Command Guide of XGSW-28040HP
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
password are shown as follows and the login screen in Figure 3-1 appears.
Username: admin
Password: admin
Figure 3-1: Managed Switch Console Login Screen
The user can now enter commands to manage the Managed Switch. For a detailed description of the commands, please refer
to the following chapters.
1. For security reason, please change and memorize the new password after this first setup.
2. Only accept command in lowercase letter under console interface.
2.3 Configuring IP Address
The Managed Switch is shipped with default IP address shown below.
IP Address: 192.168.0.100
Subnet Mask: 255.255.255.0
To check the current IP address or modify a new IP address for the Switch, please use the procedures as follows:
-
-24
Command Guide of XGSW-28040HP
Show the current IP Address
1. At the “#” prompt, enter “show ip interface brief”.
2. The screen displays the current IP address and Subnet Mask as shown in Figure 3-2.
Figure 3-2: IP Information Screen
Configuring IP Address
3. At the “#” prompt, enter the following command and press <Enter>. As shown in Figure 3-3.
The previous command would apply the following settings for the Managed Switch.
IP Address: 192.168.1.100
Subnet Mask: 255.255.255.0
Figure 3-3: Configuring IP Address Screen
-
-25
4. Repeat step 1 to check if the IP address is changed.
Store current switch configuration
5. At the “#” prompt, enter the following command and press <Enter>.
# copy running-config startup-config
Command Guide of XGSW-28040HP
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.
If you are not familiar with the console command or the related parameter, enter “ ?” anytime
in console to get the help description.
-26
-
Command Guide of XGSW-28040HP
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.
Default IP address: 192.168.0.100
Username: admin
Password: admin
Figure 4-1 Managed Switch Telnet Login Screen
-
-27
Chapter 4 Commands for CLI Configuration
4.1 clear
4.1.1 clear access management statistics
Command:
clear access management statistics
Default:
N/A
Usage Guide:
Command Guide of XGSW-28040HP
To clear the access management statistics.
Example:
To clear the Switch’s access management statistics.
Switch# clear access management statistics
4.1.2 clear access-list ace statistics
Command:
clear access-list ace statistics
Default:
N/A
Usage Guide:
To clear the Access list entry statistics.
Example:
To clear the Switch’s Access list entry statistics.