4.1.4 clear ip arp...........................................................................................................................................................27
4.1.5 clear ip dhcp detailed statistics all .......................................................................................................................27
4.1.6 clear ip dhcp detailed statistics client...................................................................................................................28
4.1.7 clear ip dhcp detailed statistics helper.................................................................................................................28
4.1.8 clear ip dhcp detailed statistics server.................................................................................................................29
4.1.9 clear ip dhcp detailed statistics snooping ............................................................................................................29
4.1.10 clear ip dhcp relay statistics...............................................................................................................................29
4.1.11 clear ip dhcp server binding...............................................................................................................................30
4.1.12 clear ip dhcp server binding automatic ..............................................................................................................30
4.1.13 clear ip dhcp server binding expired..................................................................................................................31
4.1.14 clear ip dhcp server binding manual..................................................................................................................31
4.1.15 clear ip igmp snooping statistics........................................................................................................................31
4.1.16 clear ip igmp snooping vlan...............................................................................................................................32
4.1.17 clear ip statistics icmp icmp-msg.......................................................................................................................32
4.1.18 clear ip statistics icmp interface vlan .................................................................................................................33
4.1.19 clear ip statistics system icmp icmp-msg...........................................................................................................33
-2-
Command Guide of SGS-5220-24T2X
4.1.20 clear ip statistics system icmp interface vlan.....................................................................................................34
4.1.32 clear logging info error.......................................................................................................................................39
4.1.33 clear logging info warning..................................................................................................................................39
4.1.36 clear mac address-table ....................................................................................................................................40
4.2.39 end ....................................................................................................................................................................68
4.2.41 green-ethernet led interval.................................................................................................................................69
4.2.42 green-ethernet led on-event ..............................................................................................................................69
4.2.45.10 aggregation group .................................................................................................................................76
4.2.45.19 end ........................................................................................................................................................80
4.2.45.23 ip arp inspection check-vlan..................................................................................................................82
4.2.45.24 ip arp inspection logging........................................................................................................................83
4.2.45.25 ip arp inspection trust ............................................................................................................................84
4.2.45.26 ip dhcp snooping trust ...........................................................................................................................84
4.2.45.27 ip igmp snooping filter ...........................................................................................................................85
4.2.45.28 ip igmp snooping immediate-leave........................................................................................................85
4.2.45.29 ip igmp snooping max-groups ...............................................................................................................85
4.2.45.30 ip igmp snooping mrouter......................................................................................................................86
4.2.45.31 ip verify source......................................................................................................................................87
4.2.45.32 ip verify source limit...............................................................................................................................87
4.2.45.43 lldp med media-vlan policy-list...............................................................................................................93
4.2.45.44 lldp med transmit-tlv ..............................................................................................................................93
4.2.45.56 mac address-table learning .................................................................................................................100
4.2.45.60 mvr name ............................................................................................................................................102
4.2.45.91 rmon collection history .........................................................................................................................119
4.2.46.4 ip address..............................................................................................................................................139
4.2.46.5 ip address dhcp.....................................................................................................................................139
4.2.46.6 ip address dhcp fallback........................................................................................................................140
4.2.46.7 ip dhcp server........................................................................................................................................140
-7-
Command Guide of SGS-5220-24T2X
4.2.46.8 ip igmp snooping ...................................................................................................................................141
4.2.46.9 ip igmp snooping compatibility...............................................................................................................141
4.2.46.10 ip igmp snooping last-member-query-interval......................................................................................142
4.2.46.11 ip igmp snooping priority .....................................................................................................................143
4.2.46.12 ip igmp snooping querier address .......................................................................................................143
4.2.46.13 ip igmp snooping querier election........................................................................................................144
4.2.46.14 ip igmp snooping query-interval...........................................................................................................144
4.2.46.15 ip igmp snooping query-max-response-time........................................................................................145
4.2.46.16 ip igmp snooping robustness-variable.................................................................................................146
4.2.46.17 ip igmp snooping unsolicited-report-interval ........................................................................................146
4.2.47 ip arp inspection ..............................................................................................................................................153
4.2.48 ip arp inspection entry interface .......................................................................................................................153
4.2.49 ip arp inspection translate................................................................................................................................154
4.2.50 ip arp inspection translate interface.................................................................................................................155
4.2.51 ip arp inspection vlan.......................................................................................................................................155
4.2.52 ip dhcp excluded-address................................................................................................................................156
4.2.53 ip dhcp pool.....................................................................................................................................................157
4.2.54 ip dns proxy.....................................................................................................................................................168
4.2.55 ip helper-address.............................................................................................................................................169
4.2.56 ip http secure-redirect......................................................................................................................................169
4.2.57 ip http secure-server........................................................................................................................................170
4.2.58 ip igmp host-proxy...........................................................................................................................................170
4.2.59 ip igmp host-proxy leave-proxy........................................................................................................................171
4.2.60 ip igmp snooping .............................................................................................................................................171
4.2.61 ip igmp snooping vlan......................................................................................................................................172
4.2.62 ip igmp ssm-range...........................................................................................................................................173
4.2.63 ip igmp unknown-flooding................................................................................................................................173
4.2.64 ip name-server ................................................................................................................................................174
4.2.65 ip name-server dhcp........................................................................................................................................174
4.2.66 ip name-server dhcp interface vlan..................................................................................................................175
4.2.67 ip route ............................................................................................................................................................175
4.2.68 ip routing..........................................................................................................................................................176
4.2.69 ip source binding interface...............................................................................................................................176
4.2.70 ip ssh...............................................................................................................................................................177
4.2.71 ip verify source ................................................................................................................................................178
4.2.72 ip verify source translate..................................................................................................................................178
4.2.74.1 default range .........................................................................................................................................180
4.2.83.8 history size ............................................................................................................................................192
4.2.85 lldp med datum................................................................................................................................................196
4.2.86 lldp med fast....................................................................................................................................................196
4.2.87 lldp med location-tlv altitude ............................................................................................................................197
4.2.88 lldp med location-tlv elin-addr..........................................................................................................................197
4.2.89 lldp med location-tlv latitude ............................................................................................................................198
4.2.90 lldp med location-tlv longitude .........................................................................................................................199
4.2.91 lldp med media-vlan-policy..............................................................................................................................199
4.2.101 mac address-table aging-time .......................................................................................................................205
4.2.102 mac address-table static................................................................................................................................205
4.2.106 mvr name <mvr_name> channel...................................................................................................................207
4.2.107 mvr name <mvr_name> frame priority...........................................................................................................208
4.2.108 mvr name <mvr_name> frame tagged ..........................................................................................................209
4.2.109 mvr name <mvr_name> igmp-address..........................................................................................................209
4.2.110 mvr name <mvr_name> last-member-query-interval.....................................................................................210
4.2.111 mvr name <mvr_name> mode.......................................................................................................................210
4.2.121 no ..................................................................................................................................................................216
4.2.123 ntp server ......................................................................................................................................................217
4.2.126 port-security aging time .................................................................................................................................218
4.2.150 snmp-server community ................................................................................................................................237
4.2.153.1 do ........................................................................................................................................................240
4.2.153.2 end ......................................................................................................................................................240
4.2.153.5 no ........................................................................................................................................................242
4.2.154.1 do ........................................................................................................................................................246
4.2.154.2 end ......................................................................................................................................................246
4.2.154.4 no ........................................................................................................................................................247
4.2.158 transport email authentication .......................................................................................................................254
4.2.159 transport email from.......................................................................................................................................254
4.2.160 transport email smtp-server...........................................................................................................................255
4.2.161 transport email to...........................................................................................................................................256
4.2.166.1 do ........................................................................................................................................................259
4.2.166.2 end ......................................................................................................................................................259
4.2.166.4 name ...................................................................................................................................................261
4.2.166.5 no ........................................................................................................................................................261
4.2.171 voice vlan class .............................................................................................................................................264
4.2.174 web privilege group .......................................................................................................................................266
4.6.1 dir ......................................................................................................................................................................269
4.8 do ...............................................................................................................................270
4.8.1 do ......................................................................................................................................................................270
4.16 no .............................................................................................................................275
4.16.1 no ....................................................................................................................................................................275
4.20.1 show aaa.........................................................................................................................................................279
4.20.2 show access management..............................................................................................................................280
4.20.3 show access-list ..............................................................................................................................................280
4.20.4 show access-list ..............................................................................................................................................282
4.20.5 show access-list ace-status.............................................................................................................................283
4.20.6 show aggregation............................................................................................................................................284
4.20.7 show aggregation mode ..................................................................................................................................285
4.20.8 show clock.......................................................................................................................................................285
4.20.9 show clock detail .............................................................................................................................................286
4.20.10 show dot1x statistics......................................................................................................................................287
4.20.11 show dot1x status..........................................................................................................................................288
4.20.12 show green-ethernet......................................................................................................................................289
4.20.13 show green-ethernet energy-detect...............................................................................................................289
4.20.14 show green-ethernet short-reach...................................................................................................................290
4.20.15 show history ..................................................................................................................................................290
4.20.16 show interface <port_type> <port_type_list> capabilities ..............................................................................291
4.20.17 show interface <port_type> <port_type_list> statistics..................................................................................292
4.20.18 show interface <port_type> <port_type_list> status ......................................................................................292
4.20.19 show interface <port_type> <port_list> switchport.........................................................................................293
4.20.20 show interface <port_type> <port_type_list> veriphy ....................................................................................294
4.20.21 show interface <port_type> <port_type_list> veriphy ....................................................................................294
4.20.22 show interface vlan........................................................................................................................................295
4.20.23 show ip arp....................................................................................................................................................296
-
-14
Command Guide of SGS-5220-24T2X
4.20.24 show ip arp inspection...................................................................................................................................296
4.20.25 show ip arp inspection...................................................................................................................................297
4.20.26 show ip arp inspection entry..........................................................................................................................298
4.20.27 show ip dhcp detailed statistics .....................................................................................................................298
4.20.28 show ip dhcp excluded-address ....................................................................................................................300
4.20.29 show ip dhcp pool..........................................................................................................................................300
4.20.30 show ip dhcp relay.........................................................................................................................................301
4.20.31 show ip dhcp server.......................................................................................................................................302
4.20.32 show ip dhcp server binding (GG).................................................................................................................302
4.20.33 show ip dhcp server declined-ip (GG) ...........................................................................................................303
4.20.34 show ip dhcp server statistics........................................................................................................................304
4.20.35 show ip dhcp snooping..................................................................................................................................305
4.20.36 show ip dhcp snooping table .........................................................................................................................306
4.20.37 show ip http server secure status..................................................................................................................306
4.20.38 show ip igmp snooping..................................................................................................................................307
4.20.39 show ip igmp snooping mrouter.....................................................................................................................307
4.20.40 show ip interface brief....................................................................................................................................308
4.20.41 show ip name-server.....................................................................................................................................309
4.20.42 show ip route.................................................................................................................................................309
4.20.43 show ip source binding..................................................................................................................................310
4.20.44 show ip ssh....................................................................................................................................................310
4.20.45 show ip statistics............................................................................................................................................311
4.20.46 show ip verify source.....................................................................................................................................313
4.20.47 show ipmc profile...........................................................................................................................................313
4.20.48 show ipmc range ...........................................................................................................................................314
4.20.49 show ipv6 interface........................................................................................................................................314
4.20.50 show ipv6 mld snooping ................................................................................................................................316
4.20.51 show ipv6 mld snooping mrouter...................................................................................................................316
4.20.52 show ipv6 neighbor........................................................................................................................................317
4.20.53 show ipv6 route .............................................................................................................................................318
4.20.54 show ipv6 statistics........................................................................................................................................318
4.20.55 show lacp ......................................................................................................................................................320
4.20.56 show line .......................................................................................................................................................321
4.20.57 show lldp med media-vlan-policy...................................................................................................................322
4.20.58 show lldp med remote-device........................................................................................................................ 322
4.20.59 show lldp neighbors.......................................................................................................................................323
4.20.60 show lldp statistics.........................................................................................................................................323
4.20.61 show logging .................................................................................................................................................324
4.20.62 show loop-protect..........................................................................................................................................325
4.20.63 show mac address-table................................................................................................................................325
4.20.64 show mep......................................................................................................................................................326
-
-15
Command Guide of SGS-5220-24T2X
4.20.65 show mvr.......................................................................................................................................................327
4.20.66 show network-clock.......................................................................................................................................328
4.20.67 show ntp status..............................................................................................................................................329
4.20.68 show platform phy .........................................................................................................................................330
4.20.69 show platform phy failover.............................................................................................................................330
4.20.70 show platform phy id......................................................................................................................................331
4.20.71 show platform phy status...............................................................................................................................331
4.20.72 show port-security port ..................................................................................................................................332
4.20.73 show port-security switch ..............................................................................................................................333
4.20.74 show privilege................................................................................................................................................333
4.20.75 show pvlan ....................................................................................................................................................334
4.20.76 show pvlan isolation ......................................................................................................................................334
4.20.77 show qos .......................................................................................................................................................335
4.20.78 show radius-server........................................................................................................................................337
4.20.79 show rmon alarm...........................................................................................................................................338
4.20.80 show rmon event...........................................................................................................................................339
4.20.81 show rmon history .........................................................................................................................................339
4.20.82 show rmon statistics......................................................................................................................................340
4.20.83 show running-config ......................................................................................................................................341
4.20.84 show snmp ....................................................................................................................................................342
4.20.85 show snmp access........................................................................................................................................344
4.20.86 show snmp community v3 .............................................................................................................................345
4.20.87 show snmp host.............................................................................................................................................346
4.20.88 show snmp mib context.................................................................................................................................347
4.20.89 show snmp mib ifmib ifIndex .........................................................................................................................349
4.20.90 show snmp security-to-group ........................................................................................................................350
4.20.91 show snmp user ............................................................................................................................................351
4.20.92 show snmp view............................................................................................................................................352
4.20.93 show spanning-tree.......................................................................................................................................353
4.20.94 show switchport forbidden.............................................................................................................................354
4.20.95 show tacacs-server........................................................................................................................................354
4.20.96 show terminal ................................................................................................................................................355
4.20.97 show upnp.....................................................................................................................................................356
4.20.98 show users ....................................................................................................................................................356
4.20.99 show version .................................................................................................................................................357
4.20.100 show vlan ....................................................................................................................................................358
4.20.101 show vlan ip-subnet.....................................................................................................................................359
4.20.102 show vlan mac.............................................................................................................................................359
4.20.103 show vlan protocol.......................................................................................................................................360
4.20.104 show voice vlan...........................................................................................................................................361
4.20.105 show web privilege group............................................................................................................................362
4.21.3 terminal history size.........................................................................................................................................364
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#>)#
-
-18
To exit to the Global Config
mode, enter exit.
Command Guide of SGS-5220-24T2X
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.
-
-19
Command Guide of SGS-5220-24T2X
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.
SGS-5220-24T2X Rear Panel
Fi
A terminal pr
may be a good choice. The Hyper Terminal can be accessed from the Start menu.
ogram is required to make the software connection to the Managed Switch. Windows' Hyper Terminal program
gure 2-2: Front Panel of SGS-5220-24T2X
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.
-21
-
Command Guide of SGS-5220-24T2X
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:
-
-22
Command Guide of SGS-5220-24T2X
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
-
-23
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 SGS-5220-24T2X
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.
-24
-
Command Guide of SGS-5220-24T2X
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
-
-25
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 SGS-5220-24T2X
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.