4.1.8 clear ip arp...........................................................................................................................................................33
4.1.9 clear ip dhcp detailed statistics all .......................................................................................................................33
4.1.10 clear ip dhcp detailed statistics client.................................................................................................................34
4.1.11 clear ip dhcp detailed statistics helper ...............................................................................................................34
4.1.12 clear ip dhcp detailed statistics server ...............................................................................................................35
4.1.13 clear ip dhcp detailed statistics snooping ..........................................................................................................35
4.1.14 clear ip dhcp relay statistics...............................................................................................................................36
4.1.15 clear ip dhcp server binding...............................................................................................................................36
4.1.16 clear ip dhcp server binding automatic ..............................................................................................................36
4.1.17 clear ip dhcp server binding expired ..................................................................................................................37
4.1.18 clear ip dhcp server binding manual ..................................................................................................................37
-3-
4.1.19 clear ip igmp snooping statistics........................................................................................................................38
4.1.20 clear ip igmp snooping vlan ...............................................................................................................................38
4.1.21 clear ip statistics icmp icmp-msg .......................................................................................................................39
4.1.22 clear ip statistics icmp interface vlan .................................................................................................................39
4.1.23 clear ip statistics system icmp icmp-msg...........................................................................................................40
4.1.24 clear ip statistics system icmp interface vlan .....................................................................................................40
4.1.36 clear logging info error.......................................................................................................................................46
4.1.37 clear logging info warning..................................................................................................................................46
4.1.40 clear mac address-table ....................................................................................................................................47
4.2.39 end ....................................................................................................................................................................76
4.2.42 erps <1-64> major .............................................................................................................................................77
4.2.47 erps <1-64> sub ................................................................................................................................................80
4.2.58 green-ethernet led interval.................................................................................................................................92
4.2.59 green-ethernet led on-event ..............................................................................................................................92
4.2.65.9 aggregation group .................................................................................................................................100
4.2.65.11 do ........................................................................................................................................................101
4.2.65.18 end ......................................................................................................................................................105
4.2.65.23 evc update dei .....................................................................................................................................108
4.2.65.31 ip arp inspection check-vlan ................................................................................................................112
4.2.65.32 ip arp inspection logging...................................................................................................................... 11 2
4.2.65.33 ip arp inspection trust ..........................................................................................................................11 3
4.2.65.34 ip dhcp snooping trust .........................................................................................................................113
4.2.65.35 ip igmp snooping filter .........................................................................................................................11 4
4.2.65.36 ip igmp snooping immediate-leave ...................................................................................................... 114
4.2.65.37 ip igmp snooping max-groups .............................................................................................................115
4.2.65.38 ip igmp snooping mrouter.................................................................................................................... 11 5
4.2.65.39 ip verify source ....................................................................................................................................116
4.2.65.40 ip verify source limit.............................................................................................................................116
4.2.65.51 lldp med media-vlan policy-list.............................................................................................................122
4.2.65.52 lldp med transmit-tlv ............................................................................................................................122
4.2.65.64 mac address-table learning .................................................................................................................128
4.2.65.66 mtu ......................................................................................................................................................129
4.2.65.68 mvr name ............................................................................................................................................130
4.2.65.71 no ........................................................................................................................................................132
4.2.65.80 poe power limit ....................................................................................................................................137
4.2.65.84 port-security maximum ........................................................................................................................139
4.2.66.1 do ..........................................................................................................................................................172
4.2.66.2 end ........................................................................................................................................................173
4.2.66.4 ip address..............................................................................................................................................174
-9-
4.2.66.5 ip address dhcp .....................................................................................................................................174
4.2.66.6 ip address dhcp fallback........................................................................................................................175
4.2.66.7 ip dhcp server........................................................................................................................................175
4.2.66.8 ip igmp snooping ...................................................................................................................................176
4.2.66.9 ip igmp snooping compatibility...............................................................................................................176
4.2.66.10 ip igmp snooping last-member-query-interval......................................................................................177
4.2.66.11 ip igmp snooping priority .....................................................................................................................178
4.2.66.12 ip igmp snooping querier address .......................................................................................................178
4.2.66.13 ip igmp snooping querier election........................................................................................................179
4.2.66.14 ip igmp snooping query-interval...........................................................................................................179
4.2.66.15 ip igmp snooping query-max-response-time........................................................................................180
4.2.66.16 ip igmp snooping robustness-variable .................................................................................................181
4.2.66.17 ip igmp snooping unsolicited-report-interval ........................................................................................181
4.2.66.28 no ........................................................................................................................................................187
4.2.67 ip arp inspection ..............................................................................................................................................188
4.2.68 ip arp inspection entry interface.......................................................................................................................188
4.2.69 ip arp inspection translate................................................................................................................................189
4.2.70 ip arp inspection translate interface .................................................................................................................190
4.2.71 ip arp inspection vlan.......................................................................................................................................190
4.2.72 ip dhcp excluded-address................................................................................................................................191
4.2.73 ip dhcp pool .....................................................................................................................................................192
4.2.73.7 do ..........................................................................................................................................................195
4.2.73.9 end ........................................................................................................................................................196
4.2.73.20 no ........................................................................................................................................................202
4.2.74 ip dns proxy .....................................................................................................................................................203
4.2.75 ip helper-address.............................................................................................................................................204
4.2.76 ip http secure-redirect......................................................................................................................................204
4.2.77 ip http secure-server........................................................................................................................................205
4.2.78 ip igmp host-proxy ...........................................................................................................................................205
4.2.79 ip igmp host-proxy leave-proxy........................................................................................................................206
4.2.80 ip igmp snooping .............................................................................................................................................206
4.2.81 ip igmp snooping vlan......................................................................................................................................207
4.2.82 ip igmp ssm-range...........................................................................................................................................208
4.2.83 ip igmp unknown-flooding................................................................................................................................208
4.2.84 ip name-server ................................................................................................................................................209
4.2.85 ip name-server dhcp........................................................................................................................................209
4.2.86 ip name-server dhcp interface vlan..................................................................................................................210
4.2.87 ip route ............................................................................................................................................................210
4.2.88 ip routing..........................................................................................................................................................211
4.2.89 ip source binding interface...............................................................................................................................211
4.2.90 ip ssh ...............................................................................................................................................................212
4.2.91 ip verify source ................................................................................................................................................213
4.2.92 ip verify source translate..................................................................................................................................213
4.2.94.1 default range .........................................................................................................................................215
4.2.94.3 do ..........................................................................................................................................................216
4.2.94.4 end ........................................................................................................................................................216
4.2.94.6 no ..........................................................................................................................................................217
4.2.94.7 range .....................................................................................................................................................218
4.2.103.1 do ........................................................................................................................................................223
4.2.103.3 end ......................................................................................................................................................224
4.2.103.8 history size ..........................................................................................................................................227
4.2.103.12 no ......................................................................................................................................................229
4.2.105 lldp med datum ..............................................................................................................................................231
4.2.106 lldp med fast ..................................................................................................................................................231
4.2.107 lldp med location-tlv altitude ..........................................................................................................................232
4.2.108 lldp med location-tlv elin-addr........................................................................................................................232
4.2.109 lldp med location-tlv latitude ..........................................................................................................................233
4.2.110 lldp med location-tlv longitude........................................................................................................................233
4.2.111 lldp med media-vlan-policy.............................................................................................................................234
4.2.117 logging on ......................................................................................................................................................238
4.2.121 mac address-table aging-time .......................................................................................................................240
4.2.122 mac address-table static................................................................................................................................240
4.2.125 mep <Instance> cc ........................................................................................................................................242
4.2.133 mep <Instance> down ...................................................................................................................................248
4.2.145 mep <Instance> vid .......................................................................................................................................257
4.2.146 mep <Instance> voe ......................................................................................................................................257
4.2.165 no ..................................................................................................................................................................267
4.2.167 ntp server ......................................................................................................................................................268
4.2.177.1 do ........................................................................................................................................................274
4.2.177.2 end ......................................................................................................................................................275
4.2.177.4 no ........................................................................................................................................................276
4.2.180 port-security aging time .................................................................................................................................279
4.2.209 snmp-server community ................................................................................................................................301
4.2.212.1 do ........................................................................................................................................................303
4.2.212.2 end ......................................................................................................................................................304
4.2.212.5 no ........................................................................................................................................................306
4.2.213.1 do ........................................................................................................................................................309
4.2.213.2 end ......................................................................................................................................................310
4.2.213.4 no ........................................................................................................................................................311
4.2.217 transport email authentication .......................................................................................................................317
4.2.218 transport email from.......................................................................................................................................318
-15-
4.2.219 transport email smtp-server...........................................................................................................................318
4.2.220 transport email to...........................................................................................................................................319
4.2.225.1 do ........................................................................................................................................................322
4.2.225.2 end ......................................................................................................................................................323
4.2.225.4 name ...................................................................................................................................................324
4.2.225.5 no ........................................................................................................................................................324
4.2.230 voice vlan class .............................................................................................................................................327
4.2.233 web privilege group .......................................................................................................................................329
4.6.1 dir ......................................................................................................................................................................332
4.8 do ...............................................................................................................................333
4.8.1 do ......................................................................................................................................................................333
4.16.1 more ................................................................................................................................................................338
4.17 no .............................................................................................................................339
4.17.1 no ....................................................................................................................................................................339
4.21.1 show aaa .........................................................................................................................................................344
4.21.2 show access management ..............................................................................................................................344
4.21.3 show access-list ..............................................................................................................................................345
4.21.4 show access-list ..............................................................................................................................................346
4.21.5 show access-list ace-status.............................................................................................................................348
4.21.6 show aggregation ............................................................................................................................................349
4.21.7 show aggregation mode ..................................................................................................................................349
4.21.8 show clock.......................................................................................................................................................350
4.21.9 show clock detail .............................................................................................................................................351
4.21.10 show dot1x statistics......................................................................................................................................352
4.21.11 show dot1x status..........................................................................................................................................353
4.21.12 show eps .......................................................................................................................................................354
4.21.13 show erps ......................................................................................................................................................355
-17-
4.21.14 show evc .......................................................................................................................................................356
4.21.15 show evc statistics.........................................................................................................................................357
4.21.16 show green-ethernet......................................................................................................................................357
4.21.17 show green-ethernet energy-detect...............................................................................................................358
4.21.18 show green-ethernet short-reach...................................................................................................................358
4.21.19 show history ..................................................................................................................................................359
4.21.20 show interface <port_type> <port_type_list> capabilities ..............................................................................359
4.21.21 show interface <port_type> <port_type_list> statistics ..................................................................................360
4.21.22 show interface <port_type> <port_type_list> status ......................................................................................361
4.21.23 show interface <port_type> <port_list> switchport.........................................................................................361
4.21.24 show interface <port_type> <port_type_list> veriphy ....................................................................................362
4.21.25 show interface <port_type> <port_type_list> veriphy ....................................................................................363
4.21.26 show interface vlan........................................................................................................................................363
4.21.27 show ip arp ....................................................................................................................................................364
4.21.28 show ip arp inspection ...................................................................................................................................365
4.21.29 show ip arp inspection ...................................................................................................................................365
4.21.30 show ip arp inspection entry ..........................................................................................................................366
4.21.31 show ip dhcp detailed statistics .....................................................................................................................367
4.21.32 show ip dhcp excluded-address ....................................................................................................................368
4.21.33 show ip dhcp pool..........................................................................................................................................369
4.21.34 show ip dhcp relay.........................................................................................................................................370
4.21.35 show ip dhcp server.......................................................................................................................................370
4.21.36 show ip dhcp server binding (GG) .................................................................................................................371
4.21.37 show ip dhcp server declined-ip (GG) ...........................................................................................................372
4.21.38 show ip dhcp server statistics........................................................................................................................372
4.21.39 show ip dhcp snooping ..................................................................................................................................373
4.21.40 show ip dhcp snooping table .........................................................................................................................374
4.21.41 show ip http server secure status ..................................................................................................................375
4.21.42 show ip igmp snooping ..................................................................................................................................375
4.21.43 show ip igmp snooping mrouter.....................................................................................................................376
4.21.44 show ip interface brief....................................................................................................................................377
4.21.45 show ip name-server .....................................................................................................................................377
4.21.46 show ip route .................................................................................................................................................378
4.21.47 show ip source binding ..................................................................................................................................378
4.21.48 show ip ssh....................................................................................................................................................379
4.21.49 show ip statistics............................................................................................................................................379
4.21.50 show ip verify source .....................................................................................................................................381
4.21.51 show ipmc profile...........................................................................................................................................382
4.21.52 show ipmc range ...........................................................................................................................................382
4.21.53 show ipv6 interface........................................................................................................................................383
4.21.54 show ipv6 mld snooping ................................................................................................................................384
-18-
4.21.55 show ipv6 mld snooping mrouter...................................................................................................................385
4.21.56 show ipv6 neighbor........................................................................................................................................385
4.21.57 show ipv6 route .............................................................................................................................................386
4.21.58 show ipv6 statistics........................................................................................................................................387
4.21.59 show lacp ......................................................................................................................................................389
4.21.60 show line .......................................................................................................................................................389
4.21.61 show lldp med media-vlan-policy...................................................................................................................390
4.21.62 show lldp med remote-device........................................................................................................................391
4.21.63 show lldp neighbors.......................................................................................................................................391
4.21.64 show lldp statistics.........................................................................................................................................392
4.21.65 show logging .................................................................................................................................................392
4.21.66 show loop-protect ..........................................................................................................................................393
4.21.67 show mac address-table................................................................................................................................394
4.21.68 show mep ......................................................................................................................................................395
4.21.69 show mvr .......................................................................................................................................................396
4.21.70 show network-clock .......................................................................................................................................397
4.21.71 show ntp status..............................................................................................................................................397
4.21.72 show platform phy .........................................................................................................................................398
4.21.73 show platform phy failover.............................................................................................................................399
4.21.74 show platform phy id......................................................................................................................................399
4.21.75 show platform phy status...............................................................................................................................400
4.21.76 show port-security port ..................................................................................................................................400
4.21.77 show port-security switch ..............................................................................................................................401
4.21.78 show privilege................................................................................................................................................402
4.21.79 show pvlan ....................................................................................................................................................402
4.21.80 show pvlan isolation ......................................................................................................................................403
4.21.81 show qos .......................................................................................................................................................403
4.21.82 show radius-server ........................................................................................................................................406
4.21.83 show rmon alarm ...........................................................................................................................................406
4.21.84 show rmon event ...........................................................................................................................................407
4.21.85 show rmon history .........................................................................................................................................408
4.21.86 show rmon statistics ......................................................................................................................................408
4.21.87 show running-config ......................................................................................................................................409
4.21.88 show snmp ....................................................................................................................................................411
4.21.89 show snmp access ........................................................................................................................................413
4.21.90 show snmp community v3 .............................................................................................................................414
4.21.91 show snmp host.............................................................................................................................................414
4.21.92 show snmp mib context .................................................................................................................................415
4.21.93 show snmp mib ifmib ifIndex .........................................................................................................................417
4.21.94 show snmp security-to-group ........................................................................................................................419
4.21.95 show snmp user ............................................................................................................................................420
-19-
4.21.96 show snmp view ............................................................................................................................................420
4.21.97 show spanning-tree .......................................................................................................................................421
4.21.98 show switchport forbidden.............................................................................................................................422
4.21.99 show tacacs-server........................................................................................................................................423
4.21.100 show terminal ..............................................................................................................................................423
4.21.101 show upnp ...................................................................................................................................................424
4.21.102 show users ..................................................................................................................................................425
4.21.103 show version ...............................................................................................................................................426
4.21.104 show vlan ....................................................................................................................................................427
4.21.105 show vlan ip-subnet.....................................................................................................................................427
4.21.106 show vlan mac.............................................................................................................................................428
4.21.107 show vlan protocol.......................................................................................................................................428
4.21.108 show voice vlan ...........................................................................................................................................429
4.21.109 show web privilege group ............................................................................................................................430
4.22.3 terminal history size.........................................................................................................................................433
When accessing the management interface for the switch over a direct connection to the server’s console port, or via a Telnet
connection, the s witch can b e mana ged by entering command ke ywords and p arameters at the prompt. Using the s witch'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
From the Global Config
mode, enter the interface
<port#> command.
Table 4-1 CLI Command Modes
Switch (Interface <port#>)#
To exit to the Global Config
mode, enter exit.
-21-
The CLI is divide d into vari ous modes. T he comman ds i n one mo de a re not avai lable until the o perator s witches to that
particular mode. The commands available to the operator at any point in time depend upon the mode. Entering a question mark
(?) at the CLI prompt, and displays a list of the available commands and descriptions of the commands.
The CLI provides the following modes:
User Mode
When the operator logs into the CLI, the User Mode is the initial mode. 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 comm ands, the operator must enter the Privileged Mode. T he Privileged Mod e requ ires
password authentication. From Privileged Mode, the operator can issue any Exec command to enter th e Global C onfiguration
mode. The command prompt shown at this level is:
Command Prompt: switch#
Global Config Mode
This mode permit s the operat or to make modificati ons to the running co nfiguration. General setup commands are gr ouped in
this mod e. F rom the Glob al Configuration mode, the op erator can enter the In terface Confi guration mode. T he c ommand
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 runn ing Windows XP/Vista/7/8/, W indows 2003/2008, MAC OS X or l ater, Linux, UNIX, or oth er 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
-22-
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.
-23-
Chapter 2 CONSOLE CLI MANAGEMENT
2.1 Terminal Setup
To configure th e s ystem, co nnect a ser ial c able to a COM port on a PC or note book c omputer and t o RJ-45 t ype of seri al
(console) port of the Managed Switch.
Figure 2-1 Managed Switch Console Connectivity
The console port of the Man aged S witch is a RJ-45 t ype, RS-23 2 seri al port con nector. It is an inter face for con necting a
terminal directly. Through the console port, it provides rich diagnostic information including IP Address setting, factory reset, port
management, link st atus an d system settin g. Users can us e t he attached RS-232 c able in the p ackage an d con nect to the
console p ort o n the d evice. After the c onnection, us ers can ru n an y ter minal emulation pro gram (H yper Terminal, ProComm
Plus, Telix, Winterm and so on) to enter the startup screen of the device.
NS4702-24P-4S-4X Front Panel
Console port
Figure 2-2: Front Panel of NS4702-24P-4S-4X
A terminal pr ogram is re quired to make the software con nection to th e Managed Switch. Windows' Hyper Terminal progr am
may be a good choice. The Hyper Terminal can be accessed from the Start menu.
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: