Cudy

GS2018PS2 - Switch Cudy - Free user manual and instructions

Find the device manual for free GS2018PS2 Cudy in PDF.

📄 569 pages English EN Download 💬 AI Question 10 questions ⚙️ Specs
Notice Cudy GS2018PS2 - page 32
Pick your language and provide your email: we'll send you a specifically translated version.
Product Type Managed Gigabit Ethernet Switch with PoE+
Model GS2018PS2
Ports 18 x 10/100/1000 Mbps PoE+ ports, 2 x Combo SFP slots
PoE Budget Up to 250W
Switching Capacity 40 Gbps
MAC Address Table 8K entries
VLAN Features 802.1Q, MAC-based, Protocol-based, Voice VLAN, Surveillance VLAN
Security Features ACL (MAC, IPv4, IPv6), 802.1X, DHCP Snooping, IP Source Guard, ARP Inspection, Port Security
Quality of Service 802.1p, DSCP, Queue scheduling, Rate Limiting
Management CLI (Telnet/SSH), Web (HTTP/HTTPS), SNMP v1/v2c/v3, RMON
Spanning Tree STP, RSTP, MSTP with BPDU Guard/Filter
Link Aggregation LACP, up to 8 groups
IGMP/MLD Snooping v1/v2/v3, querier, fast leave, static groups
Layer 3 Features Static routing (IPv4 & IPv6), ARP, VLAN interfaces
Diagnostics Ping, Traceroute, Cable Diagnostics, Fiber Transceiver Monitoring
Power Supply AC 100-240V, 50-60Hz
Power Consumption Max 30W (without PoE load)
Dimensions (W x D x H) 17.5 x 8 x 1.75 inches (44.5 x 20.3 x 4.45 cm)
Weight Approx. 5 lbs (2.27 kg)
Operating Temperature 0°C to 50°C (32°F to 122°F)
Humidity 10% to 90% non-condensing
Safety & Compliance CE, FCC Class A, RoHS
Maintenance Clean with dry cloth; no liquid cleaners
Spare Parts Internal fan, power supply unit (replaceable by qualified personnel)
Warranty 3 years limited hardware warranty

Frequently Asked Questions - GS2018PS2 Cudy

How do I enable PoE on a specific port?
Enter interface configuration mode for the port (e.g., interface fa1) and use the command poe. To disable, use no poe. Verify with show poe.
How can I create a VLAN and assign ports?
First create the VLAN with vlan [vlan-id] in global config. Then enter interface config and set the port mode: switchport mode access for untagged or switchport mode trunk for tagged. Use switchport access vlan [vlan-id] or switchport trunk allowed vlan add [vlan-id].
What commands configure an ACL to block a specific IP address?
Create an IP ACL with ip acl [name]. Add a deny entry: deny ip [source-ip] [mask] any. Bind it to an interface with ip acl [name] in interface mode.
How do I set up link aggregation using LACP?
First create a LAG group: lag [1-8] in global config. Then assign physical ports: interface [port] then lag [group-id]. LACP is enabled by default. Check with show lag.
How to enable DHCP snooping?
Enable globally with ip dhcp snooping. Then specify VLANs: ip dhcp snooping vlan [vlan-id]. Mark ports as trusted: ip dhcp snooping trust on trusted uplinks.
How do I configure static routing on this switch?
First create a VLAN interface: interface vlan [vlan-id] and assign an IP address: ip address [ip] [mask]. Then add a route: ip route [dest-net] [mask] [next-hop]. Verify with show ip route.
What is the default IP address of the switch?
The default IP address is 192.168.1.1 with subnet mask 255.255.255.0. Default gateway is 192.168.1.254.
How to reset the switch to factory defaults?
Use the command restore-defaults in privileged EXEC mode. This will erase the startup configuration and reboot the switch with factory settings.
How can I upgrade the firmware?
Copy the firmware image to the switch via TFTP: copy tftp://[server-ip]/[filename] image. Then boot with the new image: boot system [image-name]. Save and reboot.
What ports are used for management access?
Management access can be via any VLAN interface or the default management VLAN (VLAN 1). The switch supports Telnet (port 23), SSH (port 22), HTTP (port 80), and HTTPS (port 443). Enable each service with ip service commands.

User questions about GS2018PS2 Cudy

0 question about this device. Answer the ones you know or ask your own.

Ask a new question about this device

The email remains private: it is only used to notify you if someone responds to your question.

No questions yet. Be the first to ask one.

Download the instructions for your Switch in PDF format for free! Find your manual GS2018PS2 - Cudy and take your electronic device back in hand. On this page are published all the documents necessary for the use of your device. GS2018PS2 by Cudy.

USER MANUAL GS2018PS2 Cudy

Command Line Interface

Managed Switch Software

USER GUIDE

Rev. 1.1

USING THIS DOCUMENT

This document is intended for the software engineer's general information on the usage of switch source files for the chip development of the switch team.

Though every effort has been made to ensure that this document is current and accurate, more information may have become available subsequent to the production of this guide.

REVISION HISTORY

RevisionRelease DateSummary
1.0-First Release
1.12019-08-31Add Static routing and poe function.

Table of Contents

Command Line Interface....1

Managed Switch Software 1

1. AAA....11

aaa authentication....11

login authentication 14

ip http login authentication ....16

enable authentication ....16

show aaa authentication....18

show line lists....18

tacacs default-config ....19

tacacs host 20

show tacacs default-config 20

show tacacs....20

show default-config....21

radius host....23

show radius default-config....25

show radius....25

2. ACL 24

mac acl....24

permit (MAC) 24

deny (MAC) 26

ip acl....30

permit (IP) 30

deny (IP)....35

ipv6 acl....40

permit (IPv6)....40

deny (IPv6)......44

bind acl 38

show acl....38

show acl utilization 39

3. Administration 39

configure....39

clear arp....39

clear service 39

enable 41

end 42

exit 42

history....44

hostname....43

interface......45

ip address....45

ip default-gateway 46

ip dhcp 48

ip dns 48

ip dns lookup....50

ipv6 autoconfig....50

ipv6 address....51

ipv6 default-gateway 49

ipv6 dhcp 49

ip service 50

ip session-timeout....52

ip ssh 52

line 54

reboot....53

enable password....53

exec-timeout....55

password-thresh 57

ping 59

traceroute 61

show arp....61

show cpu utilization....63

show history....63

show info 59

show ip 59

show ip dhcp....60

show ip dns 60

show ip http....61

show ipv6....61

Command Line Interface

User Guide

show ipv6 dhcp 62

show line....62

show memory statistics....63

show privilege 65

show username....65

show users 66

show version....66

silent-time....66

ssl....67

system name 67

system contact....69

system location....70

terminal length 70

username....70

4. Authentication Manager....72

authentication....72

authentication (Interface)....74

authentication mac radius....74

authentication mac local....76

authentication guest-vlan....77

authentication guest-vlan (Interface)....79

authentication host-mode....79

authentication max-hosts 81

authentication method 83

authentication order....85

authentication port-control....85

authentication radius-attributes vlan....79

authentication reauth....81

authentication timer inactive....83

authentication timer quiet....83

authentication timer reauth 82

authentication web local....84

authentication web max-login-attempts 86

clear authentication sessions 85

dot1x 85

dot1x guest-vlan....87

dot1x max-req....89

dot1x port-control 89

dot1x reauth 91

dot1x timeout reauth-period....89

dot1x timeout quiet-period 90

dot1x timeout server-timeout 90

dot1x timeout supp-timeout 92

dot1x timeout tx-period....92

show authentication....94

show authentication sessions....97

5. Diagnostic 98

show cable-diag 98

show fiber-transceiver 100

6. DHCP Snooping 102

ip dhcp snooping....102

ip dhcp snooping vlan....102

ip dhcp snooping trust....98

ip dhcp snooping verify 99

ip dhcp snooping rate-limit 100

clear ip dhcp snooping statistics....101

show ip dhcp snooping 103

show ip dhcp snooping interface....103

show ip dhcp snooping binding....104

ip dhcp snooping option....104

ip dhcp snooping option action....106

ip dhcp snooping option circuit-id....108

ip dhcp snooping option remote-id....108

show ip dhcp snooping option....109

ip dhcp snooping database 109

ip dhcp snooping database write-delay....110

ip dhcp snooping database timeout 112

clear ip dhcp snooping database statistics....114

renew ip dhcp snooping database....116

show ip dhcp snooping database....110

7. DoS....111

dos 111

Command Line Interface

User Guide

dos (interface) 114

show dos 114

8. Dynamic ARPInspection....115

ip arp inspection 115

ip arp inspection vlan 115

ip arp inspection trust....115

ip arp inspection validate 116

ip arp inspection rate-limit....117

clear ip arp inspection statistics....117

show ip arp inspection....118

show ip arp inspeciton interface....118

9. GVRP....119

gvrp (Global)....119

gvrp (Interface) 120

gvrp registration-mode 120

gvrp vlan-create-forbid 122

clear gvrp statistics....122

show gvrp statistics....123

show gvrp....124

show gvrp configuration....126

10. IGMP Snooping 128

ip igmp snooping 128

ip igmp snooping report-suppression 128

ip igmp snooping version....129

ip igmp snooping unknown-multicast action 129

ip igmp snooping querier 130

ip igmp snooping vlan 130

ip igmp snooping vlan fastleave 132

ip igmp snooping vlan last-member-query-count....134

ip igmp snooping vlan last-member-query-interval....134

ip igmp snooping vlan query-interval....130

ip igmp snooping vlan response-time 130

ip igmp snooping vlan robustness-variable 131

ip igmp snooping vlan router 131

ip igmp snooping vlan forbidden-port 132

ip igmp snooping vlan static-port 134

ip igmp snooping vlan forbidden-router-port....134

ip igmp snooping vlan static-router-port....134

ip igmp snooping vlan static-group....134

ip igmp snooping vlan group 136

profile range 136

ip igmp profile 136

ip igmp filter 137

ip igmp max-groups....137

ip igmp max-groups action....138

clear ip igmp snooping groups 139

clear ip igmp snooping statistics....139

show ip igmp snooping groups counters....140

show ip igmp snooping groups 141

show ip igmp snooping router 141

show ip igmp snooping querier ....142

show ip igmp snooping 143

show ip igmp snooping vlan 145

show ip igmp snooping forward-all ....145

show ip igmp profile 146

show ip igmp filter....146

show ip igmp max-group....146

show ip igmp max-group action....147

11. IP Source Guard....147

ip source verify....147

ip source binding 148

show ip source interface 149

show ip source binding 150

lag 150

lag load-balance....151

lapp port-priority 153

lacp system-priority 153

lacp timeout....153

show lacp....153

show lag....155

Command Line Interface

User Guide

13. LLDP 156

clear lldp statistics....156

Ildp 156

lldp rx....157

lldp tx-interval....158

Ildp reinit-delay....160

lldp holdtime-multiplier....160

Ildp Ildpdu....161

lldp med 161

show lldp neighbor 176

show lldp statistics....178

show lldp tlv-overloading 181

14. Logging....183

clear logging....183

logging....183

logging host 183

logging severity....185

show logging....185

15. MAC Address Table....188

clear mac address-table....188

mac address-table aging-time....188

mac address-table static....189

show mac address-table....190

show mac address-table counters....192

show mac address-table aging-time....192

16. MAC VLAN....194

vlan mac-vlan group (Global)....194

vlan mac-vlan group (Interface) 194

show vlan mac-vlan groups....191

show vlan mac-vlan interfaces....192

17. Management ACL....192

management access-list....192

management access-class 193

deny 193

permit....195

no sequence....197

show management access-class 197

show management access-list....199

18. Mirror 199

mirror session destination interface....199

mirror session source interface....201

show mirror 198

19. MLD Snooping .... 199

ipv6 mld snooping....199

ipv6 mld snooping report-suppression 199

ipv6 mld snooping version....201

ipv6 mld snooping unknown-multicast action 201

ipv6 mld snooping vlan....202

ipv6 mld snooping vlan parameters....202

ipv6 mld snooping vlan fastleave....204

ipv6 mld snooping vlan last-member-query-count 206

ipv6 mld snooping vlan last-member-query-interval 206

ipv6 mld snooping vlan query-interval 208

ipv6 mld snooping vlan response-time....208

ipv6 mld snooping vlan robustness-variable 210

ipv6 mld snooping vlan router 210

Command Line Interface

User Guide

ipv6 mld snooping vlan static-port 207

ipv6 mld snooping vlan forbidden-router-port 208

ipv6 mld snooping vlan forbidden-router-port 208

ipv6 mld snooping vlan static router port 209

ipv6 mld snooping vlan static-group 209

ipv6 mld snooping vlan group....211

profile range 211

ipv6 mld profile....211

ipv6 mld filter....212

ipv6 mld max-groups 212

ip igmp max-groups action....213

clear ipv6 mld snooping groups 214

clear ipv6 mld snooping statistics....214

show ipv6 mld snooping groups counters....215

show ipv6 mld snooping groups....215

show ipv6 mld snooping router 216

show ipv6 mld snooping....217

show ipv6 mld snooping vlan....219

show ipv6 mld snooping forward-all....219

show ipv6 mld profile....221

show ipv6 mld filter 221

show ipv6 mld max-group 222

show ipv6 mld port max-group action 223

  1. MVR....223

mvr 223

mvr vlan....222

mvr group 224

mvr mode....225

mvr query-time 226

mvr port type 228

mvr port immediate 226

mvr static group 228

clear mvr members 228

show mvr members....229

show mvr interface....229

show mvr 230

  1. Port......230

back-pressure....231

clear interface....232

description....231

duplex 232

eee....232

flowcontrol....234

jumbo-frame 234

media-type 234

protected....235

show interface....237

speed 239

shutdown....238

  1. Port Error Disable 238

errdisable recovery cause 238

errdisable recovery interval....239

show errdisable recovery 240

  1. Port Security 242

port-security (Global) 242

port-security (Interface) 242

port-security address-limit 242

show port-security 244

show port-security interface....244

  1. Protocol VLAN 246

vlan protocol-vlan group (Global) 246

vlan protocol-vlan group (Interface) 245

show vlan protocol-vlan 247

show vlan protocol-vlan interfaces....247

  1. QoS 248

qos 248

qos cos 248

qos map 248

qos queue....251

qos remark....252

Command Line Interface

User Guide

qos trust....253
qos trust (Interface)......254
show qos 254
show qos interface....256
show qos map 256
show qos queueing....258

26. Rate Limit 259

rate limit egress....259
rate limit egress queue 260
rate limit ingress 261

27. RMON....263

rmon event....263
rmon alarm 260
rmon history 262
clear rmon interfaces statistics....262
show rmon interfaces statistics 263
show rmon event....265
show rmon event log 266
show rmon alarm 266
show rmon history 267
show rmon history statistic 268
show snmp community....270
show snmp engineid....271
show snmp group 271
show snmp host....272
show snmp trap....271
show snmp view....271
show snmp user....272
snmp 272
snmp community 274
snmp engineid....274
snmp engineid rmote 275
snmp group 276
snmp host....276
snmp trap....277
snmp user....277
snmp view....278

29. Spanning Tree....279

instance (MST)......279
name (MST)....279
revision (MST) 281
show spanning-tree 281
show spanning-tree interface....282
show spanning-tree mst 282
show spanning-tree mst configuration....284
show spanning-tree mst interface....286
spanning-tree 288
spanning-tree bpdu....286
spanning-tree bpdu-filter 286
spanning-tree bpdu-guard 287
spanning-tree cost 287
spanning-tree forward-time....288
spanning-tree hello-time....288
spanning-tree edge....290
spanning-tree link-type....290
spanning-tree max-hops....290
spanning-tree maximum-age 292
spanning-tree mcheck 292
spanning-tree mode....293
spanning-tree mst configuration....293
spanning-tree mst cost....295
spanning-tree mst port-priority 294
spanning-tree mst priority 294
spanning-tree pathcost method....296
spanning-tree port-priority 298
spanning-tree priority 298
spanning-tree tx-hold-count 300

30. Storm Control 300

show storm-control....301
storm-control....298
storm-control action 300
storm-control ifg 300

Command Line Interface

User Guide

storm-control level....302
storm-control unit 302

31. System File....302

boot system....302
copy 303
delete 304
restore-defaults....305
save....306
show bootvar....306
show config....308
show flash 310

32. Surveillance VLAN....311

surveillance-vlan (Global)......311
surveillance-vlan (Interface)....311
surveillance-vlan vlan....312
surveillance-vlan oui-table 311
surveillance-vlan cos (Global) 313
surveillance-vlan cos (Interface)......314
surveillance-vlan mode....313
surveillance-vlan aging-time 315
show surveillance-vlan 315

33. Time....316

clock set....316
clock timezone 317
clock source 319
clock summer-time....319
show clock....323
sntp 321
show sntp 321

34. UDLD....323

errdisable recovery cause udld 323
udld 323
udld aggressive....323
udld message time....325
udld reset....325
show udd 325

35. VLAN 326

vlan....326
Name (vlan)....327
switchport mode 327
switchport hybrid pvid 329
switchport hybrid ingress-filtering....331
switchport hybrid acceptable-frame-type....333
switchport hybrid allowed vlan 331
switchport access vlan 332
switchport tunnel vlan 333
switchport trunk native vlan....335
switchport trunk allowed vlan 337
switchport default-vlan tagged....339
switchport forbidden default-vlan 341
switchport forbidden vlan....341
switchport vlan tpid 338
management-vlan....339
show vlan....340
show vlan interface membership 340
show interface switchport 341
show management-vlan....341

36. Voice VLAN 343

voice-vlan (Global) 343
voice-vlan (Interface) 343
voice-vlan vlan ....344
voice-vlan oui-table....344
voice-vlan cos (Global) 346
voice-vlan cos (Interface) 346
voice-vlan mode....347
voice-vlan aging-time....349
show voice-vlan 350

37. Static Routing 352

IPv4 Interface....352

Command Line Interface User Guide

IPv4 Routes 354
IPv4 ARP 354
IPv6 Interface....355
IPv6 Address 356
IPv6 Routes 357
IPv6 Neighbors....357

  1. POE....358

POE Port Setting 358

POE Port Schedule Setting....359

1. AAA

aaa authentication

Syntaxaaa authentication (login | enable) (default | LISTNAME)METHODLIST[METHODLIST] [METHODLIST] [METHODLIST]no aaa authentication (login | enable) LISTNAME
Parameter loginAdd/Edit login authentication list
enable Add/Edit enable authentication list
default Edit default authentication list
LISTNAME Specify the list name for authentication type
METHODLIST Specify the authenticate method, including none, local, enable, tacacs+, radius.
DefaultDefault authentication list name for type login is “default” and default method is “local”.Default authentication list name for type enable is “default” and default method is “enable”
ModeGlobal Configuration
UsageLogin authentication is used when user try to login into the switch.Such as CLI login dialog and WEBUI login web page.Enable authentication is used only on CLI for user trying to switch from User EXEC mode to Privileged EXEC mode.Both of them support following authenticate methods.Local: Use local user account database to authenticate. (This method is not supported for enable authentication)Enable: Use local enable password database to authenticate.Tacacs+: Use remote Tacas+ server to authenticate.Radius: Use remote Radius server to authenticate.None: Do nothing and just make user to be authenticated.Each list allows you to combine these methods with different orders. For example, we want to authenticate login user with remote Tacacs+ server, but server may be crashed. Therefore, we need a backup plan, such as another Radius server. So we can configure the list with Tacacs+ server as first authentication method and Radius server as second one.Use no form to delete the existing list. However, “default” list is not allowed to remove.
ExampleThis example shows how to add a login authentication list to authenticate with order tacacs+, radius, local.Switch(config)# aaa authentication login test1 tacacs+radius local
This example shows how to show existing login authentication lists Switch#show aaa authentication login lists Login List Name | Authentication Method List+----+----default | localtest1 | tacacs+ radius local
This example shows how to add an enable authentication list to authenticate with order tacacs+, radius, enable.Switch(config)# aaa authentication enable test1 tacacs+radius enable
This example shows how to show existing enable authentication lists Switch#show aaa authentication login lists Enable List Name | Authentication Method List+----+----default | enabletest2 | tacacs+ radius enable

login authentication

Syntaxlogin authenticationLISTNAMEno login authentication
ParameterLISTNAMESpecify the login authentication list name to use.
DefaultDefault login authentication list for each line is “default”.
ModeLine Configuration
UsageDifferent access methods are allowed to bind different login authentication lists. Use “login authentication” command to bind the list to specific line (console, telnet, ssh).Use no form to bind the “default” list back.

Example

This example shows how to create a new login authentication list and bind to telnet line.

Switch(config)# aaa authentication login test1

tacacs+ radius local

Switch(config)# line telnet

Switch(config-line)# login authentication test1

This example shows how to show line binding lists.

Switch# show line lists

Cudy GS2018PS2 - Example - 1

flowchart
graph TD
    A["Line Type | AAA Type | List Name"] --> B["console | login | default"]
    B --> C["enable | default"]
    C --> D["telnet | login | test1"]
    D --> E["enable | default"]
    E --> F["ssh | login | default"]
    F --> G["enable | default"]
    G --> H["http | login | default"]
    H --> I["https | login | default"]

ip http login authentication

Syntaxip (http | https) login authenticationLISTNAMEno ip (http | https) login authentication
httpBind login authentication list to user access WEBUI with http protocol
httpsBind login authentication list to user access WEBUI with https protocol
LISTNAMESpecify the login authentication list name to use.
DefaultDefault login authentication list for each line is “default”.
ModeGlobal Configuration
UsageDifferent access methods are allowed to bind different login authentication lists. Use “ip (http | https) login authentication” command to bind the list to WEBUI access from http or https.Use no form to bind the “default” list back.
ExampleThis example shows how to create two new login authentication lists and bind to http and https.Switch(config)# aaa authentication login test1 tacacs+radius localSwitch(config)# aaa authentication login test2

radius local

Switch(config)# ip http login authentication test1

Switch(config)# ip https login authentication test2

This example shows how to show line binding lists.

Switch# show line lists

Line Type | AAA Type | List Name

console | login | default
enable | default
telnet | login | default
enable | default
ssh | login | default
enable | default
http | login | test1
https | login | test2

enable authentication

Syntax

enable authentication

LISTNAME

no enable authentication

Parameter

LISTNAME

Specify the enable authentication list name to use.

Default

Default enable authentication list for each line is "default".

Mode

Line Configuration

Usage

Different access methods are allowed to bind different enable authentication lists. Use “enable authentication” command to bind the list to specific line (console, telnet, ssh).

Use no form to bind the "default" list back.

ExampleThis example shows how to create a new enable authentication list and bind to telnet line.Switch(config)# aaa authentication enable test1 tacacs+radius enableSwitch(config)# line telnetSwitch(config-line)# enable authentication test1
This example shows how to show line binding lists.Switch# show line listsLine Type | AAA Type | List Name

console | login | default | enable | default telnet | login | default | enable | test1 ssh | login | default | enable | default http | login | default https | login | default

show aaa authentication

Syntaxshow aaa authentication (login | enable) lists
ParameterloginShow login authentication list
enableShow enable authentication list
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show aaa authentication” command to show login authentication or enable authentication method lists.
ExampleThis example shows how to show existing login authentication lists Switch# show aaa authentication login lists Login List Name | Authentication Method List+----+----default | localtest1 | tacacs+ radius localThis example shows how to show existing enable authentication lists Switch# show aaa authentication login lists Enable List Name | Authentication Method List+----+----default | enabletest2 | tacacs+ radius enable
Syntaxshow line lists
Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show line lists” command to show all lines’ binding list of all authentication, authorization, and accounting function.
ExampleThis example shows how to show line binding lists.Switch# show line listsLine Type | AAA Type | List Name----+----+----console | login | default| enable | default| exec | default| commands | default| accounting-exec | defaulttelnet | login | default| enable | default| exec | default| commands | default| accounting-exec | default ssh |login | default| enable | default| exec | default| commands | default| accounting-exec | default http |login | defaulthttps | login | default

tacacs default-config

Syntaxtacacs default-config [key TACACSKEY] [timeout <1-30>]
Parameterkey TACACSKEYSpecify default tacacs+ server key string
timeout <1-30>Specify default tacacs+ server timeout value
DefaultDefault tacacs+ key is “”.Default tacacs+ timeout is 5 seconds.
ModeGlobal Configuration
UsageUse “tacacs default-config” command to modify default values of tacacs+ server. These default values will be used when user try to create a new tacacs+ server and not assigned these values.
ExampleThis example shows how modify default tacacs+ configurationSwitch(config)# tacacs default-config timeout 20Switch(config)# tacacs default-config key tackey
This example shows how to show default tacacs+ configurations.Switch# show tacacs default-configTimeout | Key----+----10 | tackey
This example shows how to create a new tacacs+ server with above default config and show results.Switch(config)# tacacs host 192.168.1.111Switch# show tacacsPrio | Timeout | IP Address | Port | Key----+----+----+----+----1 | 10 | 192.168.1.111 | 49 | tackey
tacacs host
Syntaxtacacs host HOSTNAME [port <0-65535>] [key TACPLUSKEY] [priority <0-65535>] [timeout <1-30>]no tacacs [host HOSTNAME]
Parameterhost HOSTNAMESpecify tacacs+ server host name, both IP address and domain name are available.
port <0-65535>Specify tacacs+ server udp port
keyTACPLUSKEYSpecify tacacs+ server key string
priority <0-65535>Specify tacacs+ server priority
timeout <1-30>Specify tacacs+ server timeout value
DefaultDefault tacacs+ key is “”.Default tacacs+ timeout is 5 seconds.
ModeGlobal Configuration
UsageUse “tacacs host” command to add or edit tacacs+ server for authentication, authorization or accounting.Use no form to delete one or all tacacs+ servers from database.
ExampleThis example shows how to create a new tacacs+ serverSwitch(config)# tacacs host 192.168.1.111 port 12345key tacacs+ priority 100 timeout 10This example shows how to show existing tacacs+ server.Switch# show tacacsPrio | Timeout | IP Address | Port | Key----+----+----+----100 | 10 | 192.168.1.111 | 12345|tacacs+

show tacacs default-config

Syntaxshow tacacs default-config
Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show tacacs default-config” command to show tacacs+defaultconfigurations.
ExampleThis example shows how to show default tacacs+ configurations.Switch# show tacacs default-configTimeout | Key----+----10 | tackey

Syntax show tacacs

Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show tacacs” command to show existing tacacs+ servers.
ExampleThis example shows how to show existing tacacs+ server.Switch# show tacacsPrio | Timeout | IP Address | Port | Key----+----+----+----+----100 | 10 | 192.168.1.111 | 12345 | tacacs+

show default-config

Syntaxradius default-config [key RADIUSKEY] [retransmit <1-10>] [timeout <1-30>]
Parameterkey RADIUSKEYSpecify default radius server key string
retransmit <1-10>Specify default radius server retransmit value
timeout <1-30>Specify default radius server timeout value
Default Default radius key is “”.Default radius retransmit is 3 times. Default radius timeout is 3 seconds.
ModeGlobal Configuration
UsageUse “radius default-config” command to modify default values of radius server. These default values will be used when user try to create a new radius server and not assigned these values.
ExampleThis example shows how modify default radius configuration Switch(config)#radius default-config timeout 20 Switch(config)#radius default-config key radiuskey Switch(config)#radius default-config retransmit 5This example shows how to show default radius configurations. Switch#show radius default-configRetries| Timeout| Key----+----+----5 | 20 | radiuskeyThis example shows how to create a new radius server with above default config and show results.Switch(config)#radius host 192.168.1.111Switch#show radiusPrio | IP Address | Auth-Port| Retries|Timeout| Usage-Type| Key----+----+----+----+----+----+----+----1 | 192.168.1.111 | 1812 | 5 |20 | All | radiuskey
radius host
Syntaxradius host HOSTNAME [auth-port <0-65535>] [key RADIUSKEY][priority <0-65535>] [retransmit <1-10>] [timeout <1-30>] [type (login|802.1x|all)]no radius [host HOSTNAME]
Parameterhost HOSTNAME Specify radius server host name, both IP address and domain name are available.
auth-port <0-65535> Specify radius server udp port
key RADIUSKEY Specify radius server key string
priority <0-65535> Specify radius server priority
retransmit <1-10> Specify radius server retransmit times
timeout <1-30> Specify radius server timeout value
type Usage type of this login server Use for login802.1 Use for 802.1X authenticationX Use for both login and 802.1X authentication all
DefaultDefault radius key is “”.Default radius timeout is 3 seconds.
ModeGlobal Configuration

Usage

Use "radius host" command to add or edit an existing radius server.

Use no form to delete one or all radius servers from database.

ExampleThis example shows how to create a new radius serverSwitch(config)#radius host 192.168.1.111 auth-port 12345 keyradiuskey priority 100 retransmit 5 timeout 10 type all
This example shows how to show existing radius server.Switch#show radiusPrio | IP Address | Auth-Port| Retries|Timeout| Usage-Type| Key+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+

show radius default-config

Syntaxshow radius default-config
Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show radius default-config” command to show radius default configurations.
ExampleThis example shows how to show default radius configurations. Switch# show radius default-configRetries|Timeout|Key----+----+----5 | 20 | radiuskey

show radius

Syntaxshow radius
Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show radius” command to show existing radius servers.
ExampleThis example shows how to show existing radius server.Switch#show radiusPrio | IP Address | Auth-Port| Retries|Timeout| Usage-Type| Key----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- + All |radiuskey
2. ACL
mac acl
Syntaxmac aclNAME nomac aclNAME
ParameterNAME Specify the name of MAC ACL
DefaultNo default is defined
ModeGlobal Configuration
UsageUse themac aclcommand to create a MAC access list and to enter mac-acl configuration mode. The name of ACL must be unique that can not have same name with other ACL or QoS policy.Once an ACL is created, an implicit “deny any” ACE created at the end of the ACL. That is, if there are no matches, the packets are denied. Use the no form of this command to delete.
ExampleThe example shows how to create a mac acl. You can verify settings by the followingshow aclcommandSwitch334455(config)#mac acl testSwitch334455(mac-al)#show aclMAC access list test

permit (MAC)

Syntax

[sequence <1-2147483647>] permit

(A:B:C:D:E:F/A:B:C:D:E:F|any)

(A:B:C:D:E:F/A:B:C:D:E:F|any) [vlan <1-4094>] [cos <0-7> <0-7>]

[ethtype <0x0600-0xFFFF>]

no sequence <1-2147483647>
Parameter<1-2147483647>(Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL.
(A:B:C:D:E:F/A:B:C:D:E:F|any)Specify the source MAC address and mask of packet or any MAC address.
(A:B:C:D:E:F/A:B:C:D:E:F|any)Specify the destination MAC address and mask of packet or any MAC address
[vlan <1-4094>](Optional) Specify the vlan ID of packet.
[cos <0-7> <0-7>](Optional) Specify the Class of Service value and mask of packet.
[ethtype <0x0600-0xFFFF>](Optional) Specify Ethernet protocol number of
DefaultNo default is defined.
ModeMAC ACL Configuration
UsageUse the permit command to add permit conditions for a mac ACE that bypass those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE can not be added if has the same conditions as existed ACE.
ExampleThe example shows how to add an ACE that permit packets with source MAC address 22:33:44:55:66:77、VLAN 3 and Ethernet type 1999. You can verify settings by the following show acl command
Switch334455(config)# mac acl testSwitch334455(mac-al)# sequence 999 permit22:33:44:55:66:77/FF:FF:FF:FF:FF any vlan 3 ethtype 0x2800Switch334455(mac-al)# show aclMAC access list testsequence 999 permit 22:33:44:55:66:77/FF:FF:FF:FF:FF any vlan 3 ethtype 0x2800

deny (MAC)

Syntax

(A:B:C:D:E:F/A:B:C:D:E:F|any)

(A:B:C:D:E:F/A:B:C:D:E:F|any) [vlan <1-4094>] [cos <0-7>

<0-7>]

[ethtype <0x0600-0xFFFF>]

[shutdown] no sequence <1-

2147483647>

Parameter

<1-2147483647>

(Optional) Specify sequence

index of ACE, the sequence index represent the priority of an ACE in ACL.
(A:B:C:D:E:F/A:B:C:D:E:F|any)Specify the source MAC address and mask of packet or any MAC address.
(A:B:C:D:E:F/A:B:C:D:E:F|any)Specify the destination MAC address and mask of packet or any MAC address.
[vlan <1-4094>](Optional) Specify the vlan ID of packet.
[cos <0-7> <0-7>](Optional) Specify the Class of Service value and mask of packet.
[ethtype <0x0600-0xFFFF>](Optional) Specify Ethernet protocol number of packet
[shutdown](Optional) Shutdown interface
DefaultNo default is defined.
ModeMAC ACL Configuration
UsageUse the deny command to add deny conditions for a mac ACE that drop those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE cannot be added if has the same conditions as existed ACE. Use “shutdown” to shutdown interface while ACE hit.

Command Line Interface

User Guide

Example

The example shows how to add an ACE that denies packets with

destination MAC address aa:bb:cc:xx:xx:xx and VLAN 9. You can

verify settings by the following show acl command

Switch334455(config)# mac acl test

Switch334455(mac-al)# sequence 30 permit any any

Switch334455(mac-al)# deny any

aa:bb:cc:00:0:00/FF:FF:FF:00:00:00 vlan 9 shutdown

Switch334455(mac-al)# show acl

MAC access list test

sequence 30 permit any any

sequence 50 deny any AA:BB:CC:00:00:00/FF:FF:FF:00:00:00 vlan

9 shutdown

ip acl

Syntaxip aclNAME noip aclNAME
ParameterNAMESpecify the name of IPv4 ACL
DefaultNo default is defined
ModeGlobal Configuration
UsageUse the ip acl command to create an IPv4 access list and to enter ip-acl configuration mode. The name of ACL must be unique that can not have same name with other ACL or QoS policy. Once an ACL is created, an implicit “deny any” ACE created at the end of the ACL. That is, if there are no matches, the packets are denied. Use the no form of this command to delete.
ExampleThe example shows how to create an IP ACL. You can verify settings by the following show acl commandSwitch334455(config)#ip acl iptestSwitch334455(ip-al)#show aclIP access list iptest

permit (IP)

Syntax

[sequence <1-2147483647>] permit (<0-255>|ipinip|egp|igp|hmp|rdp|ipv6|
ipv6:ROUT|ipv6:frag|rsvp|ipv6:icmp|ospf|pim|l2tp|ip)
(A.B.C.D/A.B.C.D|any) (A.B.C.D/A.B.C.D|any)
[(dscp|precedence) VALUE]]
[sequence <1-2147483647>] permit icmp
(A.B.C.D/A.B.C.D|any) (A.B.C.D/A.B.C.D|any)
(<0-255>|echo-reply|destination-unreachable|source-quench|echo-request|
router-advertisement|router-solicitation|time-exceeded|timestamp|timestamp-reply|traceroute|any) (<0-255>|any)
[(dscp|precedence) VALUE]
[sequence <1-2147483647>] permit
tcp (A.B.C.D/A.B.C.D|any) (<0-65535>|echo|
discard|daytime|ftp-data|ftp|telnet|smtp|time|hostname|whois|tacacs-ds|domain|www|
pop2|pop3|syslog|talk|klogin|kshell|sunrpc|drip|PORT_RANG E|any) (A.B.C.D/A.B.C.D|any) (<0- 

65535>|echo|discard|daytime|ftp-data|ftp|telnet|smtp|time|hostname|whois|tacacs-ds|domain|www|pop2|pop3|syslog|talk|klogin|kshell|sunrpc|drip|PORT_RANGE|any)[match-all TCP_FLAG] [(dscp|precedence) VALUE]

[sequence <1-2147483647>] permit udp (A.B.C.D/A.B.C.D|any) (<0-65535>|echo|discard| time|nameserver|tacacs- ds|domain|bootps|bootpc|tftp|sunrpc|ntp|netbios-ns|snmp| snmptrap|who|syslog|talk|rip|PORT_RANGE|any) (A.B.C.D/A.B.C.D|any) (<0-65535>|echo| discard|time|nameserver|tacacs- ds|domain|bootps|bootpc|tftp|sunrpc|ntp|netbios-ns| snmp|snmptrap|who|syslog|PORT_RANGE|any) [(dscp|precedence) VALUE]

no sequence <1-2147483647>

Parameter<1-2147483647>(Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL.
(A.B.C.D/A.B.C.D|any)Specify the source IPv4 address and mask of packet or any IPv4 address.
(A.B.C.D/A.B.C.D|any)Specify the destination IPv4 address and mask of packet or any IPv4 address.
[dscp VALUE](Optional) Specify the DSCP of packet.
[precedence VLAUE](Optional) Specify the IP precedence of packet.
icmp-typeSpecify ICMP message type for filtering ICMP packet. Enter a type name of list or a number of ICMP message type.
icmp-codeSpecify ICMP message code for filtering ICMP packet.
I4-source-portSpecify TCP/UDP source port of for filtering TCP/UDP packet. Enter a port name of list or a number of TCP/UDP port.
I4-destination-portSpecify TCP/UDP destination port of for filtering TCP/UDP packet. Enter a port name of list or a number of

TCP/UDP port.

match-allSpecify tcp flag for TCP packet. If a flag should be set it is prefixed by "+".If a flag should be unset it is ble options
are +urg, +ack, +psh, +rst, +syn, +fin,-urg, -ack, -psh, -rst, -syn and-fin.To define more than 1 flag- enter additional flags oneafter another without a space (example +syn-ack).
DefaultNo default is defined.
ModeIP ACL Configuration
UsageUse the permit command to add permit conditions for an IP ACE that bypasses those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE can not be added if has the same conditions as existed ACE.
ExampleThe example shows how to add a set of ACEs. You can verify settings by the followingshow aclcommand.This command shows how to permit a source IP address subnet. Switch334455(ip-al)#permit ip192.168.1.0/255.255.255.0This command shows how to permit ICMP echo-request packet with any IP address.Switch334455(ip-al)#permit icmp any any echo-request anyThis command shows how to permit any IP address HTTP packets with DSCP 5.Switch334455(ip-al)#permit tcp any any www dscp 5This command shows how to permit any source IP address SNMP packet connect to destination IP address 192.168.1.1.Switch334455(ip-al)#permit udp any any192.168.1.1/255.255.255.255 snmpSwitch334455(ip-al)#show aclIP access list iptestsequence 1 permit ip192.168.1.0/255.255.255.0 any sequence 21permit icmp any any echo-request anysequence 41 permit tcp any any any www dscp5

Command Line Interface

User Guide

sequence 61 permit udp any any 192.168.1.1/255.255.255.255 snmp

deny (IP)

Syntax

[sequence <1-2147483647>] deny (<0-255>|ipinip|egp|igp|hmp|rdp|ipv6| ipv6: rout|ipv6:frag|rsvp|ipv6:icmp|ospf|pim|l2tp|ip) (A.B.C.D/A.B.C.D|any) (A.B.C.D/A.B.C.D|any) [(dscp|precedence) VALUE]] [shutdown]

[sequence <1-2147483647>] deny icmp (A.B.C.D/A.B.C.D|any) (A.B.C.D/A.B.C.D|any) (<0-255>|echo-reply|destination-unreachable|source-quench|echo-request|router-advertisement|router- solicitation|time-exceeded|timestamp| timestamp-reply|traceroute|any) (<0-255>|any)[(dscp|precedence) VALUE] [shutdown]

[sequence <1-2147483647>] deny tcp (A.B.C.D/A.B.C.D|any) (<0-65535>|echo| discard|daytime|ftp- data|ftp|telnet|smtp|time|hostname|whois|tacacs-ds| domain|www|pop2|pop3|syslog|talk|klogin|kshell|sunr pc|drip| PORT_RANGE|any) (A.B.C.D/A.B.C.D|any) (<0- 65535>|echo|discard|daytime|ftp- data|ftp|telnet| smtp|time|hostname|whois|tacacs- ds|domain|www|pop2|pop3|syslog|talk| klogin|kshell|sunrpc|drip|PORT_RANGE|any) [match-all TCP_FLAG] [(dscp|precedence) VALUE] [shutdown]

[sequence <1-2147483647>] deny udp (A.B.C.D/A.B.C.D|any) (<0- 65535>|echo|discard|time|nameserver|tacacs- ds|domain|bootps| bootpc|tftp|sunrpc|ntp|netbios- ns|snmp|snmptrap|who|syslog| talk|rip|PORT_RANGE|any) (A.B.C.D/A.B.C.D|any) (<0- 65535>|echo| discard|time|nameserver|tacacs- ds|domain|bootps|bootpc|tftp| sunrpc|ntp|netbios- ns|snmp|snmptrap|who|syslog|PORT_RANGE|any)

Parameter

[dsqprecedence] VALUE[fi]o[shutdown]sequence index of ACE, the sequence index represent the no sequence <1-2147483647

(A.B.C.D/A.B.C.D|any)Specify the source IPv4 address and mask of packet or any IPv4 address.
(A.B.C.D/A.B.C.D|any)Specify the destination IPv4 address and mask of packet or any IPv4 address.
[dscp VALUE](Optional) Specify the DSCP of
packet.
[precedence VLAUE](Optional) Specify the IP precedence of packet.
icmp-typeSpecify ICMP message type for filtering ICMP packet. Enter a type name of list or a number of ICMP message type.
icmp-codeSpecify ICMP message code for filtering ICMP packet.
I4-source-portSpecify TCP/UDP source port of for filtering TCP/UDP packet.Enter a port name of list or a number of TCP/UDP port.
I4-destination-portSpecify TCP/UDP destination port of for filtering TCP/UDP packet.Enter a port name of list or a number of TCP/UDP port.
match-allSpecify tcp flag for TCP packet. If a flag should be set it is prefixed by\"+\”.If a flag should be unset it is prefixed by\"-\”. Available options are +urg, +ack, +psh, +rst, +syn, +fin,-urg, -ack, -psh, -rst, -syn and -fin.To define more than 1 flag -enter additional flags one after another without a space (example +syn-ack).
[shutdown](Optional) Shutdown interface while
DefaultNo default is defined.
ModeIP ACL Configuration
UsageUse the deny command to add deny conditions for an IP ACE that drop those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE can not be added if has the same conditions as existed ACE. Use “shutdown” to shutdown interface while ACE hit.

Example

The example shows how to add an ACE that denies packets with source IP address 192.168.1.80. You can verify settings by the following show acl command

Switch334455(config)# ip acl iptest

Switch334455(ip-al)# deny ip 192.168.1.80/255.255.255.255 any

Switch334455(ip-al)# show acl
IP access list iptestsequence 1 deny ip 192.168.1.80/255.255.255.255 any
ipv6 acl
Syntaxipv6 acl NAMEno ipv6 acl NAME
ParameterNAMESpecify the name of IPv6 ACL
DefaultNo default is defined
ModeGlobal Configuration
UsageUse the ipv6 acl command to create an IPv6 access list and to enter ipv6-acl configuration mode. The name of ACL must be unique that can not have same name with other ACL or QoS policy.Once an ACL is created, an implicit “deny any” ACE created at the end of the ACL. That is, if there are no matches, the packets are denied. Use the no form of this command to delete.
ExampleThe example shows how to create an IPv6 ACL. You can verify settings by the following show acl command
Switch334455(config)#ipv6 acl ipv6testSwitch334455(ipv6-al)# show aclIPv6 access list iptest
permit (IPv6)
Syntax[sequence <1-2147483647>] permit (<0-255>|ipv6) (X:X::X:X/<0-128>|any)(X:X::X:X/<0-128>|any)[(dscp|precedence) VALUE]
[sequence <1-2147483647>] permit icmp(X:X::X:X/<0-128>|any)(X:X::X:X/<0-128>|any) (<0-255>|destination- unreachable|packet-too-big|time-exceeded|parameter-problem|echo-request|echo-reply| mld-query|mld-report|mldv2-report|mld-done| router- solicitation|router-advertisement|nd-ns|nd-na|any) (<0-255>|any)[(dscp|precedence) VALUE]

[sequence <1-2147483647>] permit tcp

(X:X::X:X/<0-128>|any) (<0-

65535>|echo|discard|daytime|ftp-

data|ftp|telnet|smtp|

time|hostname|whois|taca

CS-

no sequence <1-2147483647>

Parameter

<1-2147483647>(Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL.
(X:X::X:X/<0-128>|any)Specify the source IPv6 address and prefix of packet or any IPv6 address.
(X:X::X:X/<0-128>|any)Specify the destination IPv6 address and prefix of packet or any IPv6 address.
[dscp VALUE](Optional) Specify the DSCP of packet.
[precedence VLAUE](Optional) Specify the IP precedence of packet.
icmp-typeSpecify ICMP message type for filtering ICMP packet. Enter a type name of list or a number of ICMP message type.
icmp-codeSpecify ICMP message code for filtering ICMP packet.

Command Line Interface
User Guide

I4-source-portSpecify TCP/UDP source port of for filtering TCP/UDP packet.Enter a port name of list or a number ofTCP/UDP port.
I4-destination-portSpecify TCP/UDP destination port of for filtering TCP/UDP packet.Enter a port name of list or a number of
match-allSpecify tcp flag for TCP packet. If a flag should be set it is prefixed by\"+\\".If a flag should be unset it is prefixed by\"-\". Available options are +urg, +ack, +psh, +rst, +syn, +fin,-urg, -ack, -psh, -rst, -syn and -fin.To define more than 1 flag -enter additional flags one after another(example +syn-ack).
DefaultNo default is defined.
ModeIPv6 ACL Configuration
UsageUse the permit command to add permit conditions for an IPv6 ACE that bypasses those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE can not be added if has the same conditions as existed ACE.
ExampleThe example shows how to add a set of ACEs. You can verify settings by the followingshow aclcommand.This command shows how to permit a source IP address subnet.Switch334455(ipv6-al)#permit permit ipv6fe80:1122:3344:5566::1/64 anySwitch334455(ipv6-al)#show aclIPv6 access list ipv6testsequence 1 permit ipv6 fe80:1122:3344:5566::1/64 any

deny (IPv6)

Syntax

[sequence <1-2147483647>] deny (<0-255>|ipv6)

(X:X::X:X/<0-128>|any) (X:X::X:X/<0-128>|any)

[(dscp|precedence) VALUE] [shutdown]

[sequence <1-2147483647>] deny icmp (X:X::X:X/<0-

128>|any) (X:X::X:X/<0-128>|any) (<0-255>|destination-unreachable|packet-too-big|

time-exceeded|parameter-problem|echo-

request|echo-reply| mld-query|mld-report|mldv2-

report|mld-done| router- solicitation|router-

advertisement|nd-ns|nd-na|any) (<0-

255>|any][(dscp|precedence) VALUE] [shutdown]

[sequence <1-2147483647>] deny tcp (X:X::X:X/<0-

128>|any) (<0-65535>|echo|discard|daytime|ftp-

data|ftp|telnet|smtp|time|hostname|whois|tacacs-

[(dscp|precedence) VALUE] [shutdown]

no sequence <1-2147483647>

Parameter<1-2147483647>(Optional) Specify sequence index of ACE, the sequence index represent the priority of an ACE in ACL.

Command Line Interface

User Guide

(A.B.C.D/A.B.C.D|any) Specify the source IPv4 address and mask of packet or any IPv4 address.

(A.B.C.D/A.B.C.D|any) Specify the destination IPv4 address any IPv4

address.
[dscp VALUE](Optional) Specify the DSCP of packet.
[precedence VLAUE](Optional) Specify the IP precedence of packet.
icmp-typeSpecify ICMP message type for filtering ICMP packet. Enter a type name of list or a number of ICMP message type.
icmp-codeSpecify ICMP message code for filtering ICMP packet.
I4-source-portSpecify TCP/UDP source port of for filtering TCP/UDP packet.Enter a port name of list or a number of TCP/UDP port.
I4-destination-portSpecify TCP/UDP destination port of for filtering TCP/UDP packet.Enter a port name of list or a number of TCP/UDP port.
match-allSpecify tcp flag for TCP packet. If a flag should be set it is prefixed by\ "+".If a flag should be unset it is prefixed by \"-". Available options are +urg, +ack, +psh, +rst, +syn, +fin,-urg, -ack, -psh, -rst, -syn and -fin.To define more than 1 flag -enter additional flags one after another without a space (example +syn-ack).
[shutdown](Optional) Shutdown interface while
DefaultNo default is defined.
ModeIP ACL Configuration
UsageUse the deny command to add deny conditions for an IPv6 ACE that drop those packets hit the ACE. The “sequence” also represents hit priority when ACL bind to an interface. An ACE not specifies “sequence” index would assign a sequence index which is the largest existed index plus 20. If packet content can match more than one ACE, the lowest sequence ACE is hit. An ACE can not be added if has the same conditions as existed ACE. Use

Command Line Interface

User Guide

"shutdown" to shutdown interface while ACE hit.

Example

The example shows how to add an ACE that denies packets with destination IP address fe80::abcd. You can verify settings by the following show acl command

Switch334455(config)# ipv6 acl ipv6test Switch334455(ip-al)# deny ipv6 any fe80::abcd/128 Switch334455(ip-al)# show acl
IPv6 access list ipv6test sequence 1 deny ipv6 any fe80::abcd/128
bind acl
Syntax(mac|ip|ipv6) acl NAME [no] (mac|ip|ipv6) acl NAME
Parameter(mac|ip|ipv6)Specify a type of ACL to binding to interface
NAMESpecify the name of ACL
DefaultNo default is defined
ModeInterface Configuration
UsageUse the (mac|ip|ipv6) acl NAME command to bind an ACL to interfaces. An interface can bind only one ACL or QoS policy. Use the no form of this command to return to unbind an ACL from interface.
ExampleThe example shows how to bind an existed ACL to interface. switch(config)# interface fa1 switch(config-if)# mac acl test switch(config-if)# do show running-config interfaces fa1 interface fa1 mac acl test
show acl
Syntaxshow acl show (mac|ip|ipv6) acl show (mac|ip|ipv6) acl NAME
Parameter(mac|ip|ipv6)Specify a type of ACL to show
NAMESpecify the name of ACL
DefaultNo default is defined
ModeGlobalConfigurationContextConfiguration
UsageUse theshow aclcommand to show created ACLs. You can specify mac、ip or ipv6 to show specific type ACL or specify unique name string to show ACL with the name.
ExampleThe example shows how to show all IP ACL.Switch334455(config)#show ip aclIP access list iptestsequence 1 deny ip 192.168.1.80/255.255.255.255 any

show acl utilization

Syntaxshow acl utilization
ParameterNone
DefaultNo default is defined
ModeGlobal Configuration
UsageUse the show acl utilization command to show the usage of PIE of ASIC. When an ACL bind to interface, it needs ASIC resource to help to filter packet. An ASIC has limited resource. This command help user to know the PIE usage of AISC.
ExampleThe example shows how to show utilizationSwitch(config-if)# do show acl utilization Type: sys usage: 128Type: mac ACL usage: 128Type: IPv4 ACL usage: 128Type: IPv6 ACL usage: 128

3. Administration

configure

Syntax

configure

Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “configure” command to enter global configuration mode. In global configuration mode, the prompt will show as “Switch(config)#”.
ExampleThis example shows how to enter global configuration mode.Switch# configureSwitch(config)#
clear arp
Syntaxclear arp [A.B.C.D]
ParameterA.B.C.D Specify specific arp entry to clear.
DefaultNo default value for this command.
ModeUser EXEC Privileged EXEC
UsageUse “clear arp” command to clear all or specific one arp entry.
ExampleThis example shows how to clear all arp entries.Switch(config)# clear arp
clear service
Syntaxclear (telnet | ssh)

Command Line Interface
User Guide

ParametertelnetClear all telnet sessions.
sshClear all ssh sessions.
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “clear service” command to kill all existing sessions for the select service.
ExampleThis example shows how to enable telnet service and show current telnet service status.Switch# clear telnet

enable

Syntaxenable [<1-15>]
disable [<1-14>]
Parameter<1-15>Specify privileged level to enable
<1-14>Specify privileged level to disable
DefaultDefault privilege level is 15 if no privilege level is specified on enable command.Default privilege level is 1 if no privilege level is specified on disable command.
ModeUser EXEC
Usage In User EXEC mode, user only allows to do a few actions. Most of commands are only available in privileged EXEC mode. Use “enable” command to enter the privileged mode to do more actions on switch.

In privileged EXEC mode, use "exit" command is able to go back to user EXEC mode with original user privilege level. If you need to go back to user EXEC mode with different privilege level, use "disable" command to specify the privilege level you need.

In privileged EXEC mode, the prompt will show "Switch#

ExampleThis example shows how to enter privileged EXEC mode and show current privilege level.Switch> enableSwitch# show privilegeCurrent CLI Username:Current CLI Privilege: 15This example show how to enter user EXEC mode with privilege 3.Switch# disable 3Switch> show privilegeCurrent CLI Username:Current CLI Privilege: 3
end
Syntaxend
Parameter
DefaultNo default value for this command.
Mode Privileged EXEC
GlobalConfigurationInterfaceConfigurationLineConfiguration......
UsageUse “end” command to return to privileged EXEC mode directly. Every mode except User EXEC mode has the “end” command.
ExampleThis example shows how to enter Interface Configuration mode and use end command to go back to privileged EXEC modeSwitch# configure Switch(config)#interface fa1 Switch(config-if)# endSwitch#
exit
Syntaxexit
Parameter
DefaultNo default value for this command.

Mode

User EXEC

Privileged EXEC

Global

Configuration

InterfaceConfigurationLineConfiguration......
UsageIn User EXEC mode, “exit” command will close current CLI session. In other modes, “exit” command will go to the parent mode. And every mode has the “exit” command.
ExampleThis example shows how to enter privileged EXEC mode and use exit command to go back to user EXEC mode.Switch> enableSwitch# exitSwitch>
history
Syntaxhistory <1-256>no history
Parameter<1-256> Specify maximum CLI history entry number.
DefaultDefault maximum history entry number is 128.
ModeLine Configuration
Usage Use “history” command to specify the maximum commands history number for CLI running on console, telnet or ssh service. Every command input by user will record in history buffer. If all history commands exceed configured history number, older ones will be deleted from buffer.Use “no history” to disable the history feature. And use “show history” to show all history commands.
ExampleThis example shows how to change console history number to 100, telnet history number to 150 and ssh history number to 200.Switch(config)# line consoleSwitch(config-line)# history 100Switch(config-line)# exit Switch(config)#line telnet Switch(config-line)# history150 Switch(config-line)# exitSwitch(config)# line ssh Switch(config-line)# history 200 Switch(config-line)# exit
This example shows how show line information.Switch# show lineConsole ================= sessionsession Timeout : 10 (minutes)

History Count :

100 Password Retry : 3

Silent Time : 0 (seconds) Telnet

Telnet Server : disabled

Session Timeout: 10 (minutes)

History Count:150

Password Retry : 3

Silent Time : 0 (seconds)

SSH

SSH Server : disabled

Session Timeout: 10 (minutes)

History Count : 200

Password Retry : 3

Silent Time : 0 (seconds)

This example shows how show history commands.

Switch# show history

Maximun History Count: 100

  1. enable

  2. configure

  3. line console

  4. exit

  5. show history

  6. line

  7. exit

  8. show history

  9. configure

  10. line

  11. line console

  12. exit

  13. line console

  14. history 100

  15. exit

  16. show history

  17. exit

  18. show history

hostname

Syntax

hostname

WORD

Parameter

WORD

Specify the hostname of the switch.

Default

Default name string is "Switch".

Mode

Global Configuration

Usage

Use "hostname" command to modify hostname of the switch. The system name is also used to be CLI prompt.

ExampleThis example shows how to modify contact information Switch(config)# hostname myname myname(config)#
interface
Syntax interface IF_PORTS interface range IF_PORTS
ParameterIF_PORTSSpecify the port to select. This parameter allows partial port name and ignore case. For Example: fa1 FastEthernet3 Gigabit4 ......If port range is specified, the list format is also available. For Example: fa1,3,5 fa2,gi1-3
DefaultNo default value for this command.
ModeGlobal Configuration
Usage Some configurations are port based. In order to configure these configurations, we need to enter Interface Configuration mode to configure them. Use “interface” command to enter the Interface Configuration mode and select the port to be configured.In Interface Configuration mode, the prompt will show as “Switch(config-if)#”
ExampleThis example shows how to enter Interface Configuration mode Switch# configure Switch(config)# interface fa1 Switch(config-if)#
ip address
Syntaxip address A.B.C.D [mask A.B.C.D]
Parameteraddress A.B.C.DSpecify IPv4 address for switch
mask A.B.C.DSpecify net mask address for switch
DefaultDefault IP address is 192.168.1.1 and default net mask is 255.255.255.0.
ModeGlobal Configuration
UsageUse “ip address” command to modify administration ipv4 address. This address is very important. When we try to use telnet, ssh, http, https, snmp... to connect to the switch, we need to use this ip address to access it.
ExampleThis example shows how to modify the ipv4 address of the switch. Switch(config)# ip address 192.168.1.200 mask 255.255.255.0
This example shows how to show current ipv4 address of the switch. Switch# show ipIP Address: 192.168.1.200Subnet Netmask: 255.255.255.0Default Gateway: 192.168.1.254

ip default-gateway

Syntaxip default-gatewayA.B.C.Dno ip default-gateway
ParameterA.B.C.DSpecify default gateway IPv4 address for switch
DefaultDefault IP address of default gateway is 192.168.1.254.
ModeGlobal Configuration
UsageUse “ip default-gateway” command to modify default gateway address. And use “no ip default-gateway” to restore default gateway address to factory default.

Command Line Interface

User Guide

Example

This example shows how to modify the ipv4 address of the switch.

Switch(config)# ip default-gateway 192.168.1.100

This example shows how to show current ipv4 default gateway of the switch.

Switch# show ip

IP Address: 192.168.1.1

Subnet Netmask: 255.255.255.0

Default Gateway: 192.168.1.100

ip dhcp

Syntaxip dhcp
no ip
dhcp

Parameter

DefaultDefault DHCP client is disabled.
ModeGlobal Configuration
Usage Use “ip dhcp” command to enabled dhcp client to get IP address from remote DHCP server.Use “no ip dhcp” command to disabled dhcp client and use static ip address.
ExampleThis example shows how to enable dhcp client. Switch(config)# ip dhcp
This example shows how to show current dhcp client state of the switch. Switch# show ip dhcp DHCP Status : enabled

ip dns

Syntaxip dns A.B.C.D [A.B.C.D]no ip dns [A.B.C.D]
ParameterA.B.C.DSpecify the DNS server ip address.
DefaultDefault IP address of DNS server is 168.95.1.1 and 168.95.192.1.
ModeGlobal Configuration
UsageUse “ip dns” command to modify DNS server address. And use “no ip dns”to delete existing DNS server.

Example

This example shows how to modify the DNS server of the switch.

Switch(config)# ip dns 111.111.111.111 222.222.222.222

This example shows current DNS server of the switch. Switch# show ip dns DNS lookup is enabled DNS Server 1:111.111.111.111 DNS Server 2:222.222.222.222
ip dns lookup
Syntaxip dns lookup no ip dns lookup
Parameter
DefaultDefault DNS lookup is enabled
ModeGlobal Configuration
UsageUse “ip dns lookup” command to enable the Domain Name to IP address service. And use “no ip dns” to disable the DNS service.
ExampleThis example enables the DNS service on the system. Switch(config)# ip dns lookup
This example shows the DNS service status. Switch# show ip dns DNS Server 1:111.111.111.111 DNS Server 2:222.222.222.222

ipv6 autoconfig

Syntaxipv6 autoconfigno ipv6autoconfig
Parameter
DefaultDefault IPv6 auto config is enabled.
ModeGlobal Configuration
Usage Use “ipv6 autoconfig” command to enabled IPv6 auto configuration feature. Use “no ipv6 autoconfig” command to disabled IPv6 auto configuration feature.
ExampleThis example shows how to disable IPv6 auto config.Switch(config)# no ipv6 autoconfig
This example shows how to show current IPv6 auto config state.Switch# show ipv6IPv6 DHCP Configuration : DisabledIPv6 DHCP DUID :IPv6 Auto Configuration : DisabledIPv6 Link Local Address : fe80::dcad:beff:feef:102/64 IPv6 staticAddress : fe80::20e:2eff:fef1:4b3c/128 IPv6 staticGateway Address : ::IPv6 in use Address : fe80::dcad:beff:feef:102/64IPv6 in use Gateway Address : ::
ipv6 address
Syntaxipv6 address X:X::X:X prefix <0-128>
Parameteraddress X:X::X:X Specify IPv6 address for switchprefix <0-128> Specify IPv6 prefix length for switch
DefaultNo default ipv6 address on the switch.
ModeGlobal Configuration
UsageUse “ipv6 address” command to specify static IPv6 address.
ExampleThis example shows how to add static ipv6 address of the switch.Switch(config)# ipv6 address fe80::20e:2eff:fef1:4b3c prefix 128
This example shows how to show current ipv6 address of the switch.Switch#show ipv6IPv6 DHCP Configuration : DisabledIPv6 DHCP DUID :IPv6 Auto Configuration : EnabledIPv6 Link Local Address : fe80::dcad:beff:feef:102/64 IPv6 staticAddress : fe80::20e:2eff:fef1:4b3c/128 IPv6 staticGateway Address ::IPv6 in use Address : fe80::dcad:beff:feef:102/64IPv6 in use Gateway Address : ::

ipv6 default-gateway

Syntaxipv6 default-gatewayX:X::X:X
ParameterX:X::X:X Specify default gateway IPv6 address for switch
DefaultNo default ipv6 default gateway address on the switch.
ModeGlobal Configuration
UsageUse “ipv6 default-gateway” command to modify default gateway IPv6 address.
ExampleThis example shows how to modify the ipv6 default gateway address of the switch.Switch(config)# ipv6 default-gateway fe80::dcad:beff:feef:103Switch# show ipv6IPv6 DHCP Configuration : DisabledIPv6 DHCP DUID :IPv6 Auto Configuration : EnabledIPv6 Link Local Address : fe80::dcad:beff:feef:102/64 IPv6 staticAddress : fe80::20e:2eff:fef1:4b3c/128 IPv6 staticGateway Address ::IPv6 in use Address : fe80::dcad:beff:feef:102/64IPv6 in use Gateway Address ::
ipv6 dhcp
Syntaxipv6 dhcpno ipv6 dhcp
Parameter
DefaultDefault DHCPv6 client is disabled.
ModeGlobal Configuration
UsageUse “ipv6 dhcp” command to enabled dhcpv6 client to get IP address from remote DHCPv6 server.Use “no ipv6 dhcp” command to disabled dhcpv6 client and use static ipv6
address or ipv6 auto config address.
ExampleThis example shows how to enable dhcp client.Switch(config)# ipv6 dhcp
This example shows how to show current dhcpv6 client state of the switch.Switch# show ipv6 dhcpDHCPv6 Status : enabled
ip service
Syntaxip (telnet | ssh | http | https)no ip (telnet | ssh | http |https)
ParametertelnetEnable/Disable telnet service
sshEnable/Disable ssh service
httpEnable/Disable http service
httpsEnable/Disable https service
Default Default telnet service is disabled.Default ssh service isdisabled. Default httpservice is enabled.Default https service isdisabled.
ModeGlobal Configuration
UsageUse “ip service” command to enable all kinds of ip services. Such as telnet, ssh, http and https.Use no form to disable service.

Example

This example shows how to enable telnet service and show current telnet service status.

Switch(config)# ip telnet

Telnetd daemon enabled.

Switch(config)# exit Switch#

show line telnet

Telnet =

Telnet Server : enabled Session

Timeout:10(minutes) History Count

: 128

Password Retry : 3

Silent Time : 0 (seconds)

This example shows how to enable https service and show current https service status.

Switch(config)# ip https

Switch(config)# exitSwitch# show ip httpsHTTPS daemon : enabledSession Timeout : 10 (minutes)
ip session-timeout
Syntaxip (http | https) session-timeout <0-86400>
Parameter httpSpecify session timeout for http service.
https Specify session timeout for https service.<0-86400> Specify session timeout minutes. 0 means never timeout.
DefaultDefault session timeout for http and https is 10 minutes.
ModeGlobal Configuration
UsageUse “ip session-timeout” command to specify the session timeout value for http or https service. When user login into WEBUI and do not do any action after session timeout will be logged out.
ExampleThis example shows how to change http session timeout to 15min and https session timeout to 20minSwitch(config)# ip http session-timeout 15Switch(config)# ip https session-timeout 20This example shows how to enable https service and show current https service status.Switch# show ip httpHTTPS daemon : enabled SessionTimeout : 15 (minutes) Switch# show ip httpsHTTPS daemon : disabledSession Timeout : 20 (minutes)
ip ssh
Syntaxip ssh (v1|v2|all)no ip ssh(v1|v2|all)
Parameterv1 Generate/Delete version 1 key files
v2 Generate/Delete version 2 key files

all

Generate/Delete version 1 and 2 key files

DefaultVersion 2 key files will be generated by default
ModeGlobal Configuration
UsageUse “ip ssh” command to generate the key files for ssh connection. Use no form to delete key files. SSH connection may not connect if no any v1 or v2 ssh key files exist.
ExampleThis example shows how to delete and re-generate ssh version 2 key files.Switch(config)# no ip ssh v2Switch(config)# do show flashFile Name File Size Modified----startup-config 1913 2000-01-01 08:29:10rsa1 976 2000-01-05 23:28:38ssl_cert 875 2000-01-05 23:03:20image0 (active) 4856825 2014-04-02 15:17:34Switch(config)# ip ssh v2Generating a SSHv2 default RSA Key.This may take a few minutes, depending on the key size.Generating a SSHv2 default DSA Key.This may take a few minutes, depending on the key size.Switch(config)# do show flashFile Name File Size Modified----startup-config 1913 2000-01-01 08:29:10rsa1 976 2000-01-05 23:28:38rsa2 1675 2000-01-05 23:34:43dsa2 668 2000-01-05 23:34:58ssl_cert 875 2000-01-05 23:03:20image0 (active) 4856825 2014-04-02 15:17:34
line
Syntaxline (console | telnet |ssh )
Parameterconsole Select console line to configure.telnet Select telnet line to configure.ssh Select ssh line to configure.
DefaultNo default value for this command.
ModeGlobal Configuration
Usage Some configurations are line based. In order to configure these configurations, we need to enter Line Configuration mode to configure them. Use "line" command to enter the Line Configuration mode and select the line to be configured.In Line Configuration mode, the prompt will show as “Switch(config-line)#”
ExampleThis example shows how to enter Interface Configuration modeSwitch#configureSwitch(config)#lineconsoleSwitch(config-line)#
reboot
Syntaxreboot
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse "reboot" command to make system hot restart.
ExampleThis example shows how to restart the systemSwitch#reboot
enable password
Syntaxenable [privilege <1-15>] (password UNENCRYPY-PASSWORD | secretUNENCRYPY-PASSWORD | secret encrypted ENCRYPT-PASSWORD)no enable [privilege <0-15>]
Parameterprivilege <0-15>Specify the privilege level to configure. If no privilege level is specified, default is 15.
Managed Switch Software53

password

UNENCRYPY-

Specify password string and make it not encrypted.

PASSWORD
secretUNENCRYPY-PASSWORDSpecify password string and make it encrypted.
secretencryptedENCRYPT-PASSWORDEnter an encrypted password. Use this keyword to enter a password that is already encrypted (for instance, a password that you copied from another the of another device).
DefaultDefault enable password for all privilege levels are “”.
ModeGlobal Configuration
UsageUse “enable password” command to edit password for each privilege level for enable authentication. And use “no enable” command to restore enable password to default empty value.The only way to show this configuration is using “show running-config” command.
ExampleThis example shows how to edit enable password for privilege level 15 Switch(config)# enable secret enblpasswd
exec-timeout
Syntaxexec-timeout <0-65535>
Parameter<0-65535>timeoutSpecify session timeout minutes. 0 means never
DefaultDefault session timeout for all lines are 10 minutes.
ModeLine Configuration
UsageUse “exec-timeout” command to specify the session timeout value for CLI running on console, telnet or ssh service. When user login into CLI and do not do any action after session timeout will be logged

out from the CLI session.

Example

This example shows how to change console session timeout to 15min, telnet session timeout to 20min and ssh session timeout to 25min.

Switch(config)# line console

Switch(config-line)# exec-timeout 15

Switch(config-line)# exit Switch(config)# line

telnet Switch(config-line)# exec-timeout 20

Switch(config-line)# exit Switch(config)# line

ssh Switch(config-line)# exec-timeout 25

Switch(config-line)# exit

This example shows how show line information.

Switch# show line

Console =========

Session Timeout : 15 (minutes)

History Count : 128

Password Retry : 3

Silent Time : 0 (seconds) Telnet

Telnet Server : disabled

Session Timeout : 20 (minutes)

History Count : 128

Password Retry : 3

Silent Time : 0 (seconds)

SSH

SSH Server : disabled

Session Timeout : 25 (minutes)

History Count : 128

Password Retry : 3

Silent Time : 0 (seconds)

password-thresh

Syntaxpassword-thresh <0-120>
Parameter<0-120>Specify password fail retry number. 0 means no limit.
DefaultDefault password fail retry number is 3.
ModeLine Configuration
UsageUse “password-thresh” command to specify the password fail retry number for CLI running on console, telnet or ssh service. When user input password to login and authenticate failed, the fail retry number will increase one. After fail retry number exceed configured one, the CLI will block login for the period of silent time which configured by the command “silent-time”.
ExampleThis example shows how to change console fail retry number to 4, telnet fail retry number to 5 and ssh fail retry number to 6.Switch(config)# line console Switch(config-line)#password-thresh 4 Switch(config-line)# exitSwitch(config)# line telnet

Switch(config-line)# password-thresh 5

Switch(config-line)# exit Switch(config)# line

ssh Switch(config-line)# password-thresh 6

Switch(config-line)# exit

This example shows how show line information.

Switch# show line

Console =

Session Timeout : 10 (minutes)

History Count : 128

Password Retry : 4

Silent Time : 0 (seconds) Telnet

Telnet Server : disabled

Session Timeout : 10 (minutes)

History Count : 128

Password Retry : 5

Silent Time : 0 (seconds)

SSH

SSH Server : disabled

Session Timeout : 10 (minutes)

History Count : 128

Password Retry : 6

Silent Time : 0 (seconds)

ping

Syntaxping HOSTNAME [count <1-999999999>]
ParameterHOSTNAMESpecify IPv4/IPv6 address or domain name to ping.
count <1-999999999>Specify how many times to ping.
DefaultNo default value for this command.
ModeUser EXEC Privileged EXEC
UsageUse “ping” command to do network ping diagnostic.

Example

This example shows how to ping remote host 192.168.1.111.

Switch# ping 192.168.1.111

PING 192.168.1.111 (192.168.1.111): 56 data bytes

64 bytes from 192.168.1.111: icmp_seq=0 ttl=128 time=10.0 ms

64 bytes from 192.168.1.111: icmp_seq=1 ttl=128 time=0.0 ms

64 bytes from 192.168.1.111: icmp_seq=2 ttl=128 time=0.0 ms

64 bytes from 192.168.1.111: icmp_seq=3 ttl=128 time=0.0 ms

--- 192.168.1.111 ping statistics ---

4 packets transmitted, 4 packets received, 0% packet loss

round-trip min/avg/max = 0.0/2.5/10.0ms

traceroute

Syntaxtraceroute A.B.C.D [max_hop <2-255>]
Parameter A.B.C.D Specify IPv4 to trace.
max_hop <2-255> Specify maximum hop to trace.
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “traceroute” command to do network trace route diagnostic.
ExampleThis example shows how to trace route host 192.168.1.111.Switch# traceroute 192.168.1.111traceroute to 192.168.1.111 (192.168.1.111), 30 hops max, 40 byte packets1 192.168.1.111 (192.168.1.111) 0 ms 10 ms 0 ms
show arp
Syntaxshow arp
Parameter
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show arp” command to show all arp entries.
ExampleThis example shows how to show arp entries.Switch#show arpAddress HWtype HWaddress Flags Mask Iface192.168.1.111 ether 00:0E:2E:F1:4B:3C C eth0

show cpu utilization

Syntaxshow cpu utilization
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show cpu utilization” command to show current CPU utilization.
ExampleThis example shows how to show current CPU utilization.Switch# show cpu utilizationCPU utilization----Current: 30%

show history

Syntaxshow history
Parameter
DefaultNo default value for this command.

Mode User EXEC

Privileged EXEC Global Configuration
UsageUse “show history” to show commands we input before.
ExampleThis example shows how show history commands.Switch#show historyMaximun History Count: 100
1. enable2. configure3. line console
4. exit
5. show history
6. line
7. exit
8. show history
9. configure
10. line
11. line console
12. exit
13. line console
14. history 100
15. exit
16. show history
17. exit
18. show history

show info

Syntaxshow info
Parameter
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show info” command to show system summary information.
ExampleThis example shows how to show system version.Switch# show infoSystem Name : SwitchSystem Location : Default Location SystemContact : Default Contact MACAddress : DE:AD:BE:EF:01:02 IPAddress : 192.168.1.1Subnet Mask : 255.255.255.0Loader Version : 1.3.0.26225Loader Date : Thu May 17 15:19:42 CST 2012Firmware Version : 2.5.0-beta.32811Firmware Date : Mon Sep 24 19:33:42 CST 2012System Object ID : 1.3.6.1.4.1.27282.3.2.10System Up Time : 0 days, 1 hours, 49 mins, 29 secs

show ip

Syntaxshow ip
Parameter
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show ip” command to show system IPv4 address, net mask and default gateway.
ExampleThis example shows how to show current ipv4 address of the switch.Switch#show ipIP Address: 192.168.1.200Subnet Netmask: 255.255.255.0Default Gateway: 192.168.1.254
show ip dhcp
Syntaxshow ip dhcp
Parameter
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show ip dhcp” command to show IPv4 dhcp client enable state.
ExampleThis example shows how to show current dhcp client state of the switch.Switch#show ip dhcpDHCP Status : enabled
show ip dns
Syntaxshow ip dns
Parameter
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show ip dns” command to show system IPv4 DNS addresses.
ExampleThis example shows how to show current ipv4 address of the switch.Switch# show ip dnsDNS lookup is enabledDNS Server 1 : 168.95.1.1DNS Server 2 : 168.95.192.1
show ip http
Syntaxshow ip (http|https)
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show ip http” command to show HTTP/HTTPS information.
ExampleThis example shows how to show current ipv4 address of the switch.Switch# show ip httpHTTP daemon : enabledSession Timeout : 10 (minutes)Switch# show ip httpsHTTPS daemon : enabledSession Timeout : 10 (minutes)
show ipv6
Syntaxshow ipv6

Parameter

DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show ipv6” command to show system IPv6 address, net mask,defaultgateway and auto config state.
ExampleThis example shows how to show current ipv6 address of the switch.Switch#show ipv6IPv6 DHCP Configuration : DisabledIPv6 DHCP DUID :IPv6 Auto Configuration : EnabledIPv6 Link Local Address : fe80::dcad:beff:feef:102/64 IPv6 staticAddress : fe80::20e:2eff:fef1:4b3c/128 IPv6 staticGateway Address : ::IPv6 in use Address : fe80::dcad:beff:feef:102/64IPv6 in use Gateway Address : ::

show ipv6 dhcp

Syntaxshow ipv6 dhcp
Parameter
DefaultNo default value for this command.
ModeUser EXEC Privileged EXEC
UsageUse “show ipv6 dhcp” command to show system IPv6 dhcp client enable state.
ExampleThis example shows how to show current dhcpv6 client state of the switch.Switch#show ipv6 dhcpDHCPv6 Status : enabled

show line

Syntaxshow line [(console | telnet | ssh)]
ParameterconsoletelnetSelect console line to show.Select telnet line to show.
sshSelect ssh line to show.
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show line” command to show all line configurations including session timeout, history count, password retry number and silent time. For telnet and ssh, it also shows the service enable/disable state.
ExampleThis example shows how show all lines’ information. Switch# show line Console ==================== Session Timeout : 15 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) Telnet ==================== Telnet Server : disabled Session Timeout : 20 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds) SSH ==================== SSH Server : disabled Session Timeout : 25 (minutes) History Count : 128 Password Retry : 3 Silent Time : 0 (seconds)

show memory statistics

Syntaxshow memory statistics
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show memory statistics” command to show current memory

Command Line Interface User Guide

utilization.

ExampleThis example show how to show current system memory statistics.
Switch# show memory statisticstotal(KB) used(KB) free(KB) shared(KB) buffer(KB) cache(KB)----+----+----+----+----Mem: 62408 56424 59840 1320 19328-/+ buffers/cache: 35776 26632Swap: 0 0 0

show privilege

Syntaxshow privilege
Parameter
DefaultNo default value for this command.
ModeUser EXECPrivileged EXEC
UsageUse “show privilege” command to show the privilege level of the current user.
ExampleThis example shows how to show arp entries.Switch#show privilegeCurrent CLI Username: adminCurrent CLI Privilege: 15

show username

Syntaxshowusername
Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show username” command show all user accounts in local database.
ExampleThis example shows how to show existing user accounts.Switch# show usernamePriv | Type | User Name | Password----+----+----01 | secret | | dnXencJRwfiV615 | secret | admin | FzjrGO6vfbERY15 | secret | test | 7p57T9yMkViSUS
show users
Syntaxshow users
Parameter
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show users” command show information of all active users.
ExampleThis example shows how to show existing user accounts.Switch# show usersUsername Protocol Location----admin console 0.0.0.0admin telnet 192.168.1.111admin ssh 192.168.1.111
show version
Syntaxshow version
Parameter
DefaultNo default value for this

Command Line Interface User Guide

command.

ModeUser EXECPrivileged EXEC
UsageUse “show version” command to show loader and firmware version and build date.
ExampleThis example shows how to show system version.Switch#show versionLoader Version: 1.3.0.26225Loader Date: Thu May 17 15:19:42 CST 2012Firmware Version: 2.5.0-beta.32811Firmware Date: Mon Sep 24 19:33:42 CST 2012
silent-time
Syntaxsilent-time <0-65535>
Parameter<0-65535>Specify silent time with unit seconds. 0 means do not silent.
DefaultDefault silent time is 0.
ModeLine Configuration
UsageUse “silent time” command to specify the silent time for CLI running on console, telnet or ssh service. When user input password to login and authenticate failed, the fail retry number will increase one. After fail retry number exceed configured one, the CLI will block login for the period of silent time which configured by the command “silent-time”.

Command Line Interface

User Guide

Example

This example shows how to change console silent time to 10, telnet silent time to 15 and ssh silent time to 20.

Switch(config)# line console Switch(config-

line)# silent-time 10 Switch(config-line)# exit

Switch(config)# line telnet Switch(config-line)#

silent-time 15 Switch(config-line)# exit

Switch(config)# line ssh Switch(config-line)#

silent-time 20 Switch(config-line)# exit

This example shows how show line information.

Switch# show line

Console =

Session Timeout : 10 (minutes)

History Count :128 Password Retry :3Silent Time : 10 (seconds)Telnet
Telnet Server : disabledSession Timeout : 10 (minutes)History Count : 128Password Retry : 3Silent Time : 15 (seconds)SSH
SSH Server : disabledSession Timeout : 10 (minutes)History Count : 128Password Retry : 3Silent Time : 20 (seconds)
SSL
Syntaxssl
Parameter
DefaultNo default value for this command.
ModeGlobal Configuration
UsageUse “ssl” command to generate security certificate files such as RSA, DSA.
ExampleThis example shows how to generate certificate files.Switch(config)# sslThis example shows how to show the certificate file lists.Switch# show flash
File NameFile SizeModified
startup-config11912000-01-01 00:00:23
backup-config16072000-01-01 08:36:23
rsa19742000-01-01 00:00:18
rsa216752000-01-01 00:00:18
dsa26682000-01-01 00:00:18
ssl_cert9932000-01-01 00:00:18
image0 (active)43724012012-09-24 01:57:29
image1 (backup)0

system name

Syntax

system name

NAME

ParameterNAMESpecify system name string.
DefaultDefault name string is “Switch”.
ModeGlobal Configuration
UsageUse “system name” command to modify system name information of the switch. The system name is also used to be CLI prompt.
ExampleThis example shows how to modify contact information Switch(config)# system name myname myname(config)#This example shows how to show system name information Switch# show infoSystem Name : mynameSystem Location : Default Location SystemContact : Default Contact MACAddress : DE:AD:BE:EF:01:02 IPAddress : 192.168.1.1Subnet Mask : 255.255.255.0Loader Version : 1.3.0.26225Loader Date : Thu May 17 15:19:42 CST 2012Firmware Version : 2.5.0-beta.32811Firmware Date : Mon Sep 24 19:33:42 CST 2012System Object ID : 1.3.6.1.4.1.27282.3.2.10System Up Time : 0 days, 0 hours, 2 mins, 37 secs

system contact

Syntaxsystem contactCONTACT
ParameterCONTACTSpecify contact string.
DefaultDefault contact string is “Default Contact”.
ModeGlobal Configuration
UsageUse “system contact” command to modify contact information of the switch.
ExampleThis example shows how to modify contact informationSwitch(config)#system contact callme
This example shows how to show system contact informationSwitch#show infoSystem Name:SwitchSystem Location:Default LocationSystem Contact:callmeMAC Address:DE:AD:BE:EF:01:02 IPAddress:192.168.1.1Subnet Mask:255.255.255.0Loader Version:1.3.0.26225Loader Date:Thu May 17 15:19:42 CST 2012Firmware Version:2.5.0-beta.32811Firmware Date:Mon Sep 24 19:33:42 CST 2012System Object ID:1.3.6.1.4.1.27282.3.2.10System Up Time:0 days,0 hours,2 mins,37 secs

system location

Syntaxsystem locationLOCATION
ParameterCONTACTSpecify location string.
DefaultDefault location string is “Default Location”.
ModeGlobal Configuration
UsageUse “system location” command to modify location information of the switch.
ExampleThis example shows how to modify contact informationSwitch(config)# system location home
This example shows how to show system location informationSwitch# show infoSystem Name : SwitchEF0102System Location : homeSystem Contact : Default Contact MACAddress : DE:AD:BE:EF:01:02 IPAddress : 192.168.1.1Subnet Mask : 255.255.255.0Loader Version : 1.3.0.26225Loader Date : Thu May 17 15:19:42 CST 2012Firmware Version : 2.5.0-beta.32811Firmware Date : Mon Sep 24 19:33:42 CST 2012System Object ID : 1.3.6.1.4.1.27282.3.2.10System Up Time : 0 days, 0 hours, 2 mins, 37 secs

terminal length

Syntaxterminal length <0-24>
Parameter<0-24>Specify terminal length value. 0 means no limit.
DefaultDefault terminal length is 24.
ModeUser EXECPrivileged EXEC
UsageUse “terminal length” command to specify the maximum line number the terminal is able to print.
ExampleThis example shows how to change terminal length.Switch# terminal length 3 Switch#show running-config SYSTEMCONFIG FILE ::= BEGIN! System Description: RTK RTL8380-24FE-4GEC Switch! System Version: v3.0.4.46766--More--
username
Syntaxusername WORD<0-32>[privilege (admin|user|<0-15)](nopassword | password UNENCRYPY-PASSWORD | secret UNENCRYPY-PASSWORD | secret encrypted ENCRYPT-PASSWORD)no username WORD<0-32>
Parameterusername WORD<0-32>Specify user name to add/delete/edit.
privilege adminSpecify privilege level to be admin (privilege 15)
privilege userSpecify privilege level to be user (privilege 1)
privilege <0-15>Specify custom privilege level
password UNENCRYPY-PASSWORDSpecify password string and make it not encrypted.
secret UNENCRYPY-PASSWORDSpecify password string and make it encrypted.

secret encrypted ENCRYPT- PASSWORD

Enter an encrypted password. Use this keyword to enter a password that is already encrypted (for instance, a password that you copied from another the

configuration file of another device).
DefaultDefault username “admin” has password “admin” with privilege 15.
ModeGlobal Configuration
UsageUse “username” command to add a new user account or edit an existing user account. And use “no username” to delete an existing user account. The user account is a local database for login authentication.
ExampleThis example shows how to add a new user account.Switch(config)# username test secret passwdThis example shows how to show existing user accounts.Switch#show usernamePriv | Type | User Name | Password----+----+----+----01 | secret | | dnXencJRwflV615 | secret | admin | FzjrGO6vfbERY15 | secret | test | 7p57T9yMkViSUS

4. Authentication Manager

authentication

Syntaxauthentication (dot1x|mac|web)no authentication(dot1x|mac|web)
Parameter
DefaultDefault is disabled for all type
ModeGlobal Configuration
UsageUse “authentication” command to enable the global setting of 802.1x/MAC/WEB authentication network access control.Use thenoform of this command to disable 802.1x/MAC/WEB authentication.

Example

The following example shows how to enable

802.1x/MAC/WEB authentication.

Switch(config)# authentication dot1x

Switch(config)# authentication macSwitch(config)# authentication web Switch#show authentication Autentication dot1x state:enabled Autentication mac state :enabled Autentication web state :enabledGuest VLAN : enabled (3)Mac-auth Radius User ID Format:XXXXXXXXXX

authentication (Interface)

Syntaxauthentication (dot1x|mac|web)no authentication(dot1x|mac|web)
Parameter
DefaultDefault is disabled for all type
ModeInterface Configuration
UsageUse “authentication” interface command to enable the port setting of 802.1x/MAC/WEB authentication network access control.Use the no form of this command to disable 802.1x/MAC/WEB authentication.
ExampleThe following example shows how to enable 802.1x/MAC/WEB authentication.Switch(config)#interface fa1Switch(config-if)#authentication dot1x Switch(config-if)#authentication mac Switch(config-if)# authentication web Switch# show authentication interface fa1Interface FastEthernet1Admin Control : disableHost Mode : multi-authType dot1x State : enabledType mac State : enabledType web State : enabled......

authentication mac radius

Syntax

authentication mac radius [mac-case (lower|upper)] [mac-delimiter

(colon|dot|hyphen|none) [gap (2|4|6)]]

Parametermac-case(lower|upper)Select radius user id to be upper case or lower case.
mac-delimiter (colon|dot|hyphen|no ne)Select radius user id delimiter colon: XX:XX:XX:XX:XX:XX dot: XX.XX.XX.XX.XX.XX hyphen: XX-XX-XX-XX-XX-XX none:XXXXXXXXXXXX
gap (2|4|6)Select delimiter gap 2: XX-XX-XX-XX-XX-XX 4: XXXX-XXXX-XXXX 6:XXXXXXXX-XXXXXX

Default Default radius id format is upper case with none delimiter.

Mode Global Configuration

Usage Use “authentication mac radius” command to configure the radius user id format used by MAC authentication Radius method.

Example The following example shows how to configure MAC authentication radius id format to be upper case with colon delimiter every 2 chars Switch(config)# authentication mac radius mac-case upper Switch(config)# authentication mac radius mac-delimiter colon gap 2 Switch# show authentication Autentication dot1x state : enabled Autentication mac state : disabled Autentication web state : disabled Guest VLAN : disabled Mac-auth Radius User ID Format: XX:XX:XX:XX:XX:XX

authentication mac local

Syntaxauthentication mac local mac-addr control auth [vlan <1-4094>][reauth-period <300-4294967294>] [inactive-timeout <60-65535>] authentication mac local mac-addr control unauth no authentication mac local mac-

Parameter addr mac addr MAC Authentication local MAC address

Managed Switch Software control auth Host with this MAC address will be

Rev. 1.1

control unauthHost with this MAC address will be force-unauthorized
vlan <1-4094>MAC Authentication host assigned VLAN
reauth-period<300-4294967294>MAC Authentication host reauthentication period
inactive-timeout<60-65535>MAC authentication host inactive timeout
DefaultDefault is no local MAC Authentication entry.
ModeGlobal Configuration
UsageUse “authentication mac local” command to add local MAC authentication hosts in database. This local host database is used when MAC authentication method is configured as “local”. The MAC authentication module will find host in this local database and authenticated it.Use the no form of this command to delete local host from database.
ExampleThe following example shows how to add a new local mac authentication host.Switch(config)# authentication mac local 00:11:22:33:00:01 control auth vlan 3 reauth-period 500 inactive-timeout 300 Switch# show authenticationMac-auth Local Entry :Reauth InactiveMAC Address Control VLAN Period Timeout00:11:22:33:00:01Authorized 3 500 300

authentication guest-vlan

Syntaxauthentication guest-vlan <1-4094>no authentication guest-vlan
Parameter<1-4094> Guest VLAN ID
DefaultDefault guest VLAN isdisabled

Mode

Global Configuration

UsageUse “authentication guest-vlan” command to enable the global setting of guest VLAN and specify guest VLAN ID.Use the no form of this command to disable guest VLAN.
ExampleThe following example shows how to create guest VLAN.Switch(config)# vlan 3Switch(config-vlan)# exitSwitch(config)# authentication guest-vlan 3 Switch# show authentication

authentication guest-vlan (Interface)

Syntaxauthentication guest-vlanno authentication guest-vlan
Parameter
DefaultDefault guest VLAN isdisabled
ModeInterface Configuration
UsageUse “authentication guest-vlan” command to enable the port setting of guest VLAN.Use thenoform of this command to disable guest VLAN.
ExampleThe following example shows how to enable guest VLAN.Switch(config)#interface fa1Switch(config-if)#authentication guest-vlan

authentication host-mode

Syntaxauthentication host-mode (multi-auth|multi-host|single-host) no authentication host-mode

Parameter

multi-auth

Multiple Authentication Mode. In this

mode, every client need to pass authenticate procedure individually.
multi-hostMultiple Host Mode. In this mode, only one client need to be authenticated and other clients will get the same access accessibility.
single-hostSingle Host Mode. In this mode, only one host is allowed to be authenticated. It is the same as multi-auth mode with max hosts number configure to be 1.
DefaultDefault is multi-auth mode.
ModeInterface Configuration
UsageUse “authentication host-mode” command to configure the port authentication host mode.Use the no form of this command to restore default value.
ExampleThe following example shows how to modify port host mode to multi-host.Switch(config)# interface fa1Switch(config-if)# authentication host-mode multi-hostSwitch# show authentication interface fa1Interface FastEthernet1Admin Control : autoHost Mode : multi-hostType dot1x State : disabledType mac State : disabledType web State : disabled......

authentication max-hosts

Syntaxauthentication max-hosts <1-256>no authentication max-hosts
Parameter<1-256>Available max host number in multi-auth
DefaultDefault max host number is 256
Usage Use “authentication max-hosts” command to configure the portmax hosts number for multi-auth mode. The host exceed the maxhost number is not allowed to create authentication session anddo authenticating.Use no form of this command to restore default value.
ExampleThe following example shows how to change port max hosts number.Switch(config)# interface fa1Switch(config-if)# authentication max-hosts 100Switch# show mac-auth interface fa1Interface FastEthernet1Admin Control : disableHost Mode : multi-authType dot1x State : disabledType mac State : disabledType web State : disabledType Order : dot1xMAC/WEB Method Order : radiusGuest VLAN : disabledReauthentication : disabledMax Hosts : 100......

authentication method

Syntaxauthentication method (local [radius] | radius [local])no authentication order
ParameterlocalUse local account to authenticate
radiusUse remote RADIUS server to authenticate
DefaultDefault is RADIUS method in first place and no other method.
ModeInterface Configuration
UsageUse “authentication method” command to configure the por authentication method order.Use the no form of this command to restore default value.
ExampleThe following example shows how to modify port authentication order to local and then RADIUS.Switch(config)#interface fa1Switch(config-if)#authentication method local radiusSwitch#show authentication interface fa1Interface FastEthernet1Admin Control : autoHost Mode : multi-hostType dot1x State : disabledType mac State : disabledType web State : disabled

Type Order : dot1x mac

web MAC/WEB Method Order : local radius

authentication order

Syntaxauthentication order (dot1x [mac] [web] | mac [dot1x] [web] | web) no authentication order
Parameterdot1xAuthenticating user by IEEE 802.1X
macAuthenticating user by mac based authentication
webAuthenticating user by web based on
DefaultDefault is dot1x type in first place and no other types.
ModeInterface Configuration
Usage Use “authentication order” command to configure the port authentication type order.Use the no form of this command to restore default value.
ExampleThe following example shows how to modify port authentication order to dot1x, mac and web.Switch(config)#interface fa1Switch(config-if)#authentication order dot1x mac webSwitch#show authentication interface fa1Interface FastEthernet1Admin Control : autoHost Mode : multi-hostType dot1x State : disabledType mac State : disabledType web State : disabledType Order : dot1x mac web

authentication port-control

Syntaxauthentication port-control (auto|force-auth|force-unauth) no authentication port-control
ParameterautoNeed passing authentication procedure to get network accessibility
force-authPort is force authorized and all clients have network accessibility.
force-unauthPort is force unauthorized and all clients
have no network accessibility.
DefaultDefault is disabled.
ModeInterface Configuration
Usage Use “authentication port-control” command to enable the port authentication control mode.Use the no form of this command to disable authentication port control.
ExampleThe following example shows how to configure port control to auto mode.Switch(config)# interface fa1Switch(config-if)# authentication port-control autoSwitch# show authentication interface fa1Interface FastEthernet1Admin Control : autoHost Mode : multi-authType dot1x State : disabledType mac State : disabledType web State : disabled......

authentication radius-attributes vlan

Syntaxauthentication radius-attributes vlan (reject | static) no authentication radius-attributes vlan
ParameterrejectIf get VLAN authorized information, just use it. However, if there is no VLAN authorized information, reject the host and make it unauthorized.
staticIf get VLAN authorized information, just use it. If there is no VLAN authorized information, keep original VLAN of host.
DefaultDefault radius attributes VLAN assign mode is static.
ModeInterface Configuration

Usage

Use “authentication radius-attributes vlan” command to configure the port RADIUS VLAN assign mode.

Use the no form of this command to disable the port RADIUS VLAN assign.

ExampleThe following example shows how to configure port VLAN assign to reject mode.Switch(config)#interface fa1Switch(config-if)#authentication radius-attributes vlan rejectSwitch#show authentication interface fa1Interface FastEthernet1Admin Control : disableHost Mode : multi-authType dot1x State : disabledType mac State : disabledType web State : disabledType Order : dot1xMAC/WEB Method Order : radiusGuest VLAN : disabledReauthentication : disabledMax Hosts : 256VLAN Assign Mode : reject......

authentication reauth

Syntaxauthentication reauthno authenticationreauth
Parameter
DefaultDefault is disabled.
ModeInterface Configuration
UsageUse “authentication reauth” command to enable the port reauthentication.Use thenoform of this command to disable reauthentication.

Example

The following example shows how to enable port reauthentication.

Switch(config)# interface fa1 Switch(config-if)#

authentication reauth Switch# show authentication

interface fa1 Interface FastEthernet1

Admin Control : disable

Host Mode : multi-auth

Type dot1x State : disabled

Type mac State : disabled

Type web State : disabled

Type Order : dot1x

MAC/WEB Method Order : radius

Guest VLAN : disabled

Reauthentication : enabled

authentication timer inactive

Syntaxauthentication timer inactive <60-65535>no authentication timer inactive
Parameter<60-65535>Interval in seconds after which if there is no activity from the client then it will be
DefaultDefault inactive timeout is 60 seconds.
ModeInterface Configuration
Usage Use “authentication timer inactive” command to configure the port inactive timeout value.Sometimes, we may assign a long aging time for a host, but in fact, it is not active. This inactive timeout will detect the host is active or not. If the host is inactive exceed this timeout, it should be removed.Use no form of this command to restore default value.
ExampleThe following example shows how to configure port inactive period.Switch(config)# interface fa1Switch(config-if)# authentication timer inactive 300Switch# show authentication interface fa1Interface FastEthernet1......Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 60802.1x ParametersEAP Max Request : 2EAP TX Period : 30 SupplicantTimeout : 30 Server Timeout :30Web-auth ParametersLogin Attempt : 3

authentication timer quiet

Syntax authentication timer quiet <0-65535> no authentication timer quiet
Parameter<0-65535>Interval in sec failed exchange
DefaultDefault quiet period is 60 seconds.
ModeInterface Configuration
UsageUse “authentication timer quiet” command to configure the port quiet period value.After authenticating fail many times and the port is guest VLAN disabled, the port/host will enter lock state until quiet period expired. In lock state, the port/host is not allowed to do authenticating.Use no form of this command to restore default value.
ExampleThe following example shows how to configure port quiet period.Switch(config)# interface fa1Switch(config-if)# authentication timer quiet 300 Switch# show authentication interface fa1 Interface FastEthernet1......Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 300802.1x ParametersEAP Max Request : 2EAP TX Period : 30 SupplicantTimeout : 30 Server Timeout : 30Web-auth ParametersLogin Attempt : 3

authentication timer reauth

Syntax authentication timer reauth <300-4294967294> no authentication timer reauth

Parameter<300-4294967294>Time in seconds after which an automatic re-authentication should be initiated
DefaultDefault reauthentication period is 3600 seconds.
ModeInterface Configuration

Command Line Interface

User Guide

Usage

Use “authentication timer reauth” command to configure the port reauthentication period value with unit second if the reauthentication time is not assigned by local database or remote authentication server. On the other

hand, if the reauthentication time is assigned by local database or remote server, this configured reauthentication time will be ignored.Use no form of this command to restore default value.
ExampleThe following example shows how to configure port reauthentication period.Switch(config)# interface fa1Switch(config-if)# authentication timer reauth 300 Switch# show authentication interface fa1 Interface FastEthernet1......Common TimersReauthenticate Period: 300Inactive Timeout : 60Quiet Period : 60802.1x ParametersEAP Max Request : 2EAP TX Period : 30 SupplicantTimeout : 30 Server Timeout : 30Web-auth ParametersLogin Attempt : 3

authentication web local

Syntaxauthentication web local username USERNAME password (encrypted CRYPT-PASSWORD | PASSWORD) [vlan <1-4094>] [reauth-period <300-4294967294>] [inactive-timeout <60-65535>] no authentication web local username USERNAME
ParameterUSERNAMELocal account user name
encrypted CRYPT-PASSWORDEncrypted password.
PASSWORDUn-encrypted password.
vlan <1-4094>Assigned VLAN of this local account
reauth-period <300-4294967294>Reauthentication period of this local account
inactive-timeout <60-65535>Inactive timeout of this local account
DefaultDefault is no local authentication entry.
ModeGlobal Configuration

Usage

Use “authentication web local” command to add local account in database. This local account database is used when web authentication method is configured as “local”. The web authentication module will find account in this local database and authenticated it.

Use the no form of this command to delete local account from database.

Example

The following example shows how to add/delete a new local account. Switch(config)# authentication web local username acct1 password acct1 vlan 3 reauth-period 301 inactive-timeout 61 Switch# show authentication

Web-auth Local Entry :

Reauth Inactive

User Name VLAN Period Timeout

acct1 3 301 61

authentication web max-login-attempts

Syntaxauthentication web max-login-attempts (infinite|<3-10>) no authentication web max-login-attempts
ParameterinfiniteDo not care user login fail number
<3-10>Allow user login fail number
DefaultDefault max login attempt number is 3.
ModeInterface Configuration

Usage Use “authentication web max-login-attempts” command to configure the port WEB authentication max login attempt number. After login fail number exceed, the host will enter Lock state and is not able to authenticate until quiet period exceed. Use no form of this command to restore default value.

ExampleThe following example shows how to configure port max login attempt number.Switch(config)#interface fa1Switch(config-if)#authentication web max-login-attempts 5Switch#show authentication interface fa1Interface FastEthernet1......Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 300802.1x ParametersEAP Max Request : 1EAP TX Period : 10Supplicant Timeout : 120Server Timeout : 150Web-auth Parameters

Login Attempt : 5

clear authentication sessions

Syntaxclear authentication sessions
clear authentication sessions interfaces IF_PORTS
clear authentication sessions mac mac-addr
clear authentication sessions session-id WORD
clear authentication sessions type (dot1x|mac|web)
ParameterinterfacesIF_PORTSClear sessions on specific interface
mac mac-addrClear session with specific MAC address
session-idWORDClear session with specific session ID
type(dot1x|mac|web)Clear session with specific authentication type
DefaultDefault is no local authentication entry.
ModePrivileged EXEC
Usage Use “clear authentication sessions” command to delete existing authentication sessions. If no parameter is specified, all sessions will be deleted.After authentication session is deleted, host need to do authentication procedure again.
ExampleThe following example shows how to clear all authentication sessions.Switch# clear authentication sessionsSwitch# show authentication sessionsNo Auth Manager sessions currently exist

dot1x

Syntaxdot1x
no dot1x

Parameter

Default

Default 802.1x is disabled

ModeGlobal Configuration
UsageUse “dot1x” command to enable the global setting of 802.1x. The “authentication dot1x” command has the same effect as this one. This command is a backward compatible command.Use the no form of this command to disable 802.1x authentication.
ExampleThe following example shows how to enable 802.1x authentication.Switch(config)# dot1xSwitch# show authentication Autentication dot1x state : enabledAutentication mac state : disabledAutentication web state : disabledGuest VLAN : enabled (3) Mac-auth Radius User ID Format:XXXXXXXXXX

dot1x guest-vlan

Syntaxdot1x guest-vlan <1-4094>no dot1x guest-vlan
Parameter<1- Guest VLAN ID4094>
DefaultDefault guest VLAN isdisabled
ModeGlobal Configuration
UsageUse “dot1x guest-vlan” command to enable the global setting ofguest VLAN and specify guest VLAN ID.Use theno form of this command to disable guest VLAN.
ExampleThe following example shows how to create guest VLAN.Switch(config)#vlan 3Switch(config-vlan)#exit Switch(config)# dot1x guest-vlan 3Switch#show authenticationAutentication dot1x state : enabledAutentication mac state : disabledAutentication web state : disabled GuestVLAN : enabled (3) Mac-auth Radius User ID Format:XXXXXXXXXX

dot1x max-req

Syntax dot1x max-req <1-10> no dot1x max-req

Parameter<1-10>The maximum number of EAP requests that can be sent. If a response is not received after the defined period (supplicant timeout), >ation process is restarted.

Default Default EAP max request number is 2.
Mode Interface Configuration

Usage Use "dot1x max-req" command to configure the port 802.1x max EAP request value. The max request is the maximum number of EAP requests that can be sent. If a response is not received after the defined period (supplicant timeout), the authentication process is restarted. Use no form of this command to restore default value.

ExampleThe following example shows how to configure port 802.1x EAP TX period.Switch(config)#interface fa1Switch(config-if)#dot1xmax-req 1 Switch#show authentication interface fa1Interface FastEthernet1......Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 300802.1x ParametersEAP Max Request : 1EAP TX Period : 10Supplicant Timeout : 120Server Timeout : 150Web-auth ParametersLogin Attempt : 3

dot1x port-control

Syntax dot1x port-control (auto|force-auth|force-

unauth)

no dot1x port-control

ParameterautoNeed passing authentication procedure to get network accessibility
force-authPort is force authorized and all clients have network accessibility.
force-unauthPort is force unauthorized and all clients < accessibility.
DefaultDefault is disabled.
ModeInterface Configuration
UsageUse “dot1x port-control” command to enable the port authentication control mode. The “authentication port-control” command has the same effect. Use the no form of this command to disable authentication port control.
ExampleThe following example shows how to configure port control to auto mode.Switch(config)# interface fa1 Switch(config-if)# dot1x port-control auto Switch# show authenticationinterface fa1 Interface FastEthernet1Admin Control : autoHost Mode : multi-authType dot1x State : enabledType mac State : disabledType web State : disabled......
dot1x reauth
Syntaxdot1x reauthno dot1x reauth
Parameter
DefaultDefault is disabled.
ModeInterface Configuration
UsageUse “dot1x reauth” command to enable the port reauthentication. The “authentication reauth” command has the same effect, it is a backward compatible commandUse the no form of this command to disable reauthentication.
ExampleThe following example shows how to enable port reauthentication.Switch(config)#interface fa1Switch(config-if)#dot1x reauthSwitch#show authentication interface fa1Interface FastEthernet1Admin Control : disableHost Mode : multi-authType dot1x State : disabledType mac State : disabledType web State : disabledType Order : dot1xMAC/WEB Method Order : radiusGuest VLAN : disabledReauthentication : enabled......

dot1x timeout reauth-period

Syntax dot1x timeout reauth-period <300-4294967294>no dot1x timeout reauth-period
Parameter<300-4294967294>Time in seconds after which an automatic re-authentication should be initiated
DefaultDefault reauthentication period is 3600 seconds.
ModeInterface Configuration
Usage Use “dot1xtimeout reauth” command to configure the port reauthentication period value with unit second if the reauthentication time is not assigned by local database or remote authentication server. On the other hand, if the reauthentication time is assigned by local database or remote server, this configured reauthentication time will be ignored.The “authentication timer reauth” command has the same effect and it is a backward compatible command.Use no form of this command to restore default value.

Example

The following example shows how to configure port 802.1x reauthentication period.

Switch(config)# interface fa1

Switch(config-if)# dot1x timeout reauth-period 300 Switch# show authentication interface fa1 Interface FastEthernet1

Common Timers

Reauthenticate Period: 300

Inactive Timeout : 60

Quiet Period : 60

802.1x Parameters

EAP Max Request : 2

EAP TX Period : 30

Supplicant Timeout : 30

Server Timeout : 30

Web-auth Parameters

Login Attempt : 3

dot1x timeout quiet-period

Syntax dot1x timeout quiet-period <0-65535> no dot1x timeout quiet-period

Parameter<0-65535>Interval in seconds to wait following a failed exchange

Default Default quiet period is 60 seconds.
Mode Interface Configuration

Usage Use "dot1x timeout quiet-period" command to configure the port quiet period value. The "authentication timer quiet" command has the same effect and it is backward compatible command. After authenticating fail many times and the port is guest VLAN disabled, the port/host will enter lock state until quiet period expired. In lock state, the port/host is not allowed to do authenticating. Use no form of this command to restore default value.

ExampleThe following example shows how to configure port 802.1x quiet period.Switch(config)#interface fa1Switch(config-if)#dot1x timeout quiet-period 300 Switch#showauthentication interface fa1 Interface FastEthernet1
Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 300802.1x ParametersEAP Max Request : 2EAP TX Period : 30 SupplicantTimeout : 30 Server Timeout :30Web-auth ParametersLogin Attempt : 3

dot1x timeout server-timeout

Syntax

dot1x timeout server-timeout <1-

65535>

no dot1x timeout server-timeout
Parameter<1-65535>Number of seconds that lapses before the device resends a request to the authentication
DefaultDefault server timeout is 30 seconds.
ModeInterface Configuration
UsageUse “dot1x timeout server-timeout” command to configure the port 802.1x server timeout value. The server timeout is the number of seconds that lapses before the device resends a request to the authentication server.Use no form of this command to restore default value.
ExampleThe following example shows how to configure port 802.1x server timeout.Switch(config)# interface fa1Switch(config-if)# dot1x timeout supp-timeout 150 Switch#show authentication interface fa1 Interface FastEthernet1
Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 300802.1x ParametersEAP Max Request : 2EAP TX Period : 30Supplicant Timeout : 120Server Timeout : 150Web-auth ParametersLogin Attempt : 3

dot1x timeout supp-timeout

Syntax dot1x timeout supp-timeout <1-65535> no dot1x timeout supp-timeout

Parameter<1-65535>Number of seconds that lapses before EAPesent to the supplicant

Default Default supplicant timeout is 30 seconds.

Mode

Interface Configuration

Usage Use "dot1x timeout supp-timeout" command to configure the port supplicant timeout value. The supplicant timeout is the number of seconds that lapses before EAP requests are resent to the supplicant. Use no form of this command to restore default value.

ExampleThe following example shows how to configure port 802.1x supplicant timeout.Switch(config)#interface fa1Switch(config-if)#dot1x timeout supp-timeout 120 Switch#show authentication interface fa1 Interface FastEthernet1
Common TimersReauthenticate Period: 300Inactive Timeout : 300 QuietPeriod : 300802.1x ParametersEAP Max Request : 2EAP TX Period : 30Supplicant Timeout : 120Server Timeout : 30Web-auth ParametersLogin Attempt : 3

dot1x timeout tx-period

Syntax dot1x timeout tx-period <1-65535> no dot1x timeout tx-period

Parameter<1-65535>Number of seconds that the device waits for a response to an Extensible Authentication Protocol (EAP) request/identity frame from the supplicant (client) before resending the
DefaultDefault EAP TX period is 30 seconds.
ModeInterface Configuration

Usage Use "dot1x timeout tx-period" command to configure the port 802.1x EAP TX period value. The TX period is the number of seconds that the device waits for a response to an Extensible Authentication Protocol (EAP) request/identity frame from the supplicant (client) before resending the request. Use no form of this command to restore default value.

ExampleThe following example shows how to configure port 802.1x EAP TX period.Switch(config)#interface fa1Switch(config-if)#dot1x timeout tx-period 10
Switch# show authentication interface fa1Interface FastEthernet1
......
Common Timers
Reauthenticate Period: 300
Inactive Timeout : 300 Quiet
Period : 300
802.1x Parameters
EAP Max Request : 2
EAP TX Period :
10 Supplicant Timeout :
120 Server Timeout :
150
Web-auth Parameters
Login Attempt : 3

show authentication

Syntaxshow authentication show authentication interfaces IF_PORTS
Parameterinterfaces IF_PORTSSpecify port list to show port configurations.
DefaultNo default value for this command.
ModePrivileged EXEC
Usage Use “show authentication” command to show all authentication manager configurations.Use “show authentication interface” command to show authentication manager configuration of specific port.

Example

This example shows how to show the mac authentication configurations of port fa1.

Switch# show authentication Autentication dot1x

state : enabled

Authentication mac state : disabled

Authentication web state : disabled

Guest VLAN : disabled

Mac-auth Radius User ID Format:XXXXXXXXXX

Mac-auth Local Entry :

Reauth Inactive

MAC Address Control VLAN Period Timeout

00:11:22:33:44:55

Authorized 3 30000 123

Web-auth Local Entry

:

Reauth

Inactive

User Name

VLAN Period Timeout

333

Interface Configurations

Interface FastEthernet1

Admin Control : disable

Host Mode : multi-auth

Type dot1x State : disabled

Type mac State : disabled

Type web State : disabled

Type Order : dot1x

MAC/WEB Method Order : radius

Guest VLAN

disabled

Reauthentication : disabled

Max Hosts : 256

VLAN Assign Mode :

static Common Timers

Reauthenticate Period: 3600

Inactive Timeout :

60

Quiet Period

: 60 802.1x Parameters

EAP Max Request : 2

EAP TX Period : 30

Supplicant Timeout : 30

Server Timeout : 30

Web-auth Parameters

Login Attempt : 3

Switch# show authentication interface fa7

Interface Configurations

Interface

FastEthernet7

Admin Control

: auto

Host Mode : multi-

auth Type dot1x State

enabled Type mac State

:disabled

Type web State

disabled Type Order :

dot1x MAC/WEB Method

Order : radius Guest VLAN

disabled Reauthentication

:

disabled Max Hosts

256

VLAN Assign Mode

:

static Common Timers

Reauthenticate Period:

3600 Inactive Timeout

60

Quiet Period 60

802.1x Parameters

EAP Max Request 2

EAP TX Period 30

Supplicant Timeout 30

Server Timeout :

65535 Web-auth

Parameters

Login Attempt : 3

show authentication sessions

Syntaxshow authentication sessions [detail] show authentication sessions interface IF_PORTS show authentication sessions session-id WORD show authentication session type (dot1x|mac|web)
ParameterdetailShow session detail information.
interfaceShow session detail information of specific
IF_PORTSport
session-idShow session detail information of specific
WORDsession id
type (dot1x|mac|web)Show session detail information of specific authentication type
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show authentication sessions” command to show authentication detail session information.
ExampleThis example shows how to show current authentication session brief and detail information.Switch#show authentication sessionsInterface MAC Address Type Status Session ID----fa7 00:01:6C:CB:29:4Adot1x Authorized 000000010000A028Switch#show authentication sessions detailInterface : FastEthernet7MAC Address : 00:01:6C:CB:29:4ASession ID : 000000010000A028Current Type : dot1xStatus : AuthorizedAuthorized InformationVLAN : 5 (from RADIUS)Reauthenticate Period: 301 (from RADIUS) InactiveTimeout : 600 (from RADIUS)Operational Information VLAN : 5Session Time : 1143Inactive Time : 168Quiet Time : N/A

5. Diagnostic

show cable-diag

Syntax show cable-diag interfaces IF_NMLPORTS

ParameterinterfacesIF_NMLPORTSDisplay the cable diagnostic information of the coppermedia for an interface ID or a list of interfaces IDs.

Default N/A

ModePrivileged EXEC
Usage To show the estimated copper cable length attached to a specific interface, use the commandshow cable-diagin the Privilegeg EXEC mode. For the proper information of the cable length, the interface must be active and linked up.
ExampleThe following example shows the result of cable diagnostic for the interface fa1 and fa2.Switch# show cable-diag interfaces fa1-2Port | Speed | Local pair | Pair length | Pair status----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ fa1 | auto | Pair A | 0.88 | OpenPair B | 0.82 | Open Pair C | 0.80| Open Pair D | 0.78 | Openfa2 | auto | Pair A | 0.81 | OpenPair B | 0.81 | Open Pair C | 0.77| OpenPair D | 0.81 | Open

show fiber-transceiver

Syntaxshow fiber-transceiver interfacesIF_NMLPORTS
ParameterinterfacesIF_NMLPORTSDisplay the o diagnostic information of the fiber transceiver for an interface ID or a list of interface IDs.
DefaultN/A
ModePrivileged EXEC
UsageTo show the diagnostic information of the fiber transceiver use the commandshow fiber-transceiver in the Privilegeg EXEC mode.

Command Line Interface

User Guide

Example The following example shows the diagnostic information for the interface gi1 and gi2, wherer the int fiber media ports with the transceiver inserted.

Switch# show fiber-transceiver interfaces gi1-2 Port | Temperature | Voltage | Current | Output power | Input power | | [C] | [Volt] | [mA] | [mWatt] | [mWatt] |

gi1N/SN/SN/SN/SN/SInsert
gi2N/SN/SN/SN/SN/SInsert

Temp - Internally measured transceiver temperature Voltage

- Internally measured supply voltage

Current - Measured TX bias current

Output Power - Measured TX output power in milliWatts Input Power

- Measured RX received power in milliWatts OE-

Present - SFP Presetn or Not Present

LOS - Loss of signal

N/A - Not Available, N/S - Not Supported, W - Warning, E -

Error

6. DHCP Snooping

ip dhcp snooping

Syntaxip dhcp snoopingno ip dhcp snooping
ParameterNone
DefaultDHCP snooping isdisabled
ModeGlobal Configuration
UsageUse the ip dhcp snooping command to enable DHCP Snooping function. Usethe no form of this command to disable.
ExampleThe example shows how to enable DHCP Snooping on VLAN 1.You can verify settings by the following show ip dhcp snooping command.switch(config)# ip dhcp snoopingswitch(config)# ip dhcp snoopingvlan 1 switch(config)# show ip dhcp snooping DHCP Snooping: enabledEnable on following Vlans 1circuit-id default format : vlan-portremote-id : 00:11:22:33:44:55 (Switch Mac in Byte Order)

ip dhcp snooping vlan

Syntax

ip dhcp snooping vlan VLAN-LIST

ParameterVLAN-LISTSpecify VLAN ID or a range of VLANs to enable or disable dynamic Arp inspection
DefaultDefault is disabled on all VLANs
ModeGlobal Configuration
UsageUse the ip dhcp snooping vlan command to enable VLANs on DHCP Snooping function. Use the no form of this command to disable VLANs on DHCP Snooping function.
ExampleThe example shows how to enable VLAN 1-100 on DHCP Snooping, and then disable VLAN 30-40 on DHCP Snooping. You can verify settings by the following show ip dhcp snooping command.switch(config)# vlan 1-100switch(config)# exitswitch(config)# ip dhcp snoopingswitch(config)# ip dhcp snooping vlan1-100 switch(config)# show ip dhcp snooping DHCP Snooping : enabledEnable on following Vlans : 1-100circuit-id default format : vlan-portremote-id: 00:11:22:33:44:55 (Switch Mac in Byte Order)
switch(config)# no ip dhcp snooping vlan 30-40switch(config)# show ip dhcp snoopingDHCP Snooping : enabledEnable on following Vlans : 1-29,41-100 circuit-id default format : vlan-portremote-id : 00:11:22:33:44:55 (Switch Mac in Byte Order)

ip dhcp snooping trust

Syntaxip dhcp snooping trust no ip dhcp snooping trust
ParameterNone
DefaultDHCP snooping trust is disabled
ModeInterface Configuration
UsageUse theip dhcp snooping trustcommand to set trusted interface. The switch does not check DHCP packets that are received on the trusted interface; it simply forwards it. Use theno form of this command to set untrusted interface.
ExampleThe example shows how to set interface gi1 to trust. You can verify settings by the followingshow ip dhcp snooping interfacecommand.switch(config)#interface gi1switch(config-if)#ip dhcp snooping trustswitch(config-if)#do show ip dhcp snooping interfacegi1Interfaces | Trust State | Rate (pps) | hwaddr Check | Insert Option82 |----+----+----+----+qi1 | Trusted | None | disabled | disabled |
ip dhcp snooping verify
Syntaxip dhcp snooping verify mac-address [no] ip dhcp snooping verify mac-address
ParameterNone
DefaultDHCP snooping verify mac-address is disabled
ModeInterface Configuration
UsageUse theip dhcp snooping verifycommand to verify MAC address function on interface.The “mac-address” drop DHCP packets that chaddr and ethernet-source-mac is not match.
ExampleThe example shows how to set interface gi1 to validate “mac-address”. You can verify settings by the following show ip dhcp snooping interfacecommand.switch(config)#interface gi1switch(config-if)#ip dhcp snooping verify mac-address switch(config-if)#do show ip dhcp snooping interface gi1 Interfaces | Trust State | Rate (pps) | hwaddr Check | Insert Option82 |----+----+----+----+gi1 | Untrusted | None | disabled | disabled |

ip dhcp snooping rate-limit

Syntaxip dhcp snooping rate-limit<1-300> [no] ip dhcpsnooping rate-limit
Parameter<1-300>Set 1 to 300 PPS of DHCP packet rate limitation
DefaultDefault is un-limited of DHCPpacket
ModeInterface Configuration
UsageUse the ip dhcp snooping rate-limit command to set rate limitation on interface. The switch drop DHCP packets after receives more than configured rate of packets per second. Use the no form of this command to return to default settings.
ExampleThe example shows how to set rate limit to 30 pps oninterface gi1. You can verify settings by the following show ip dhcp snooping interface command.switch(config)# interface gi1switch(config-if)# ip dhcp snooping rate-limit 30switch(config-if)# do show ip dhcp snooping interfaces gi1Interfaces|Trust State|Rate (pps)|hwaddr Check|Insert Option82|----+----+----+----+gi1 | Untrusted | 30 | disabled | disabled |

clear ip dhcp snooping statistics

Syntaxclear ip dhcp snooping interfaces IF_PORTS statistics
ParameterIF_PORTSspecifies ports to clear statistics
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the clear ip dhcp snooping interfaces statistics command to clear statistics that are recorded on interface.

Example

The example shows how to clear statistics on interface gi1.

You can verify settings by the following show ip dhcp snooping

interface statistics command.

switch# clear ip dhcp snooping interfaces gi1 statisticsswitch# show ip dhcp snooping interfaces gi1 statisticsInterfaces | Forwarded | Chaddr Check Dropped | UntrustPort Dropped | Untrust Port With Option82 Dropped | InvalidDrop----+----+----+----+----+----+gi1 | 0 | 0 | 0 | 0 | 0

show ip dhcp snooping

Syntaxshow ip dhcp snooping
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip dhcp snooping command to show settings of DHCP Snooping.
ExampleThe example shows how to show settings of DHCP Snooping switch(config)# show ip dhcp snooping DHCP Snooping : enabled Enable on following Vlans : 1 circuit-id default format: vlan-port remote-id: : 00:11:22:33:44:55 (Switch Mac in Byte Order)

show ip dhcp snooping interface

Syntaxshow ip dhcp snooping interfaces IF_PORTS show ip dhcp snooping interfaces IF_PORTS statistics
ParameterIF_PORTS specifies ports to show statistics
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip dhcp snooping interfaces command to show settings or statistics of interface.
ExampleThe example shows how to show settings of interface gi1.switch#show ip dhcp snooping interface gi1Interfaces | Trust State | Rate (pps) | hwaddr Check | Insert Option82 |----+----+----+----+gi1 | Untrusted | None | enabled | disabled |The example shows how to show statistics of interface gi1. switch#show ip dhcp snooping interfaces gi1statistics Interfaces | Forwarded | Chaddr Check Dropped | Untrust Port Dropped | Untrust Port With Option82 Dropped | Invalid Drop----+----+----+----+gi1 | 0 | 0 | 0 | 0 | 0

show ip dhcp snooping binding

Syntaxshow ip dhcp snooping binding
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip dhcp snooping binding command to show binding entries that learned by DHCP Snooping.
ExampleThe example shows how to show binding entries that learned by DHCP Snooping.
switch# show ip dhcp snooping binding
Bind Table: Maximun Binding Entry Number 192
Port | VID | MAC Address | IP | Type | Lease Time
fa1 | 1 | 48:5B:39:C7:12:62 | 192.168.1.100(255.255.255.255)|DHCP Snooping | 86400

ip dhcp snooping option

Syntaxip dhcp snooping optionno ip dhcp snooping

Command Line Interface User Guide

option

ParameterNone
DefaultDHCP snooping option82 isdisabled
ModeInterface Configuration
UsageUse the ip dhcp snooping option command to enable that insertoption82content into packet. Use theno form of this command to disable.
ExampleThe example shows how to enable option82 insertion.You can verify settings by the followingshow ip dhcpsnooping interface command.switch(config)#interface gi1switch(config-if)#ip dhcp snooping optionswitch(config-if)#do show ip dhcp snooping interfacesgi1Interfaces | Trust State | Rate (pps) | hwaddr Check | Insert Option82|----+----+----+----+----+gi1 | Untrusted | None | disabled | enabled |
ip dhcp snooping option action
Syntaxip dhcp snooping option action (drop|keep|replace)no ip dhcp snooping option action
ParameterDropDrop packets with option82 that arereceivedfrom un trusted port
KeepKeep original option82 content in packet
ReplaceReplace option82 content by switchsetting
DefaultDHCP snooping option82 isdrop
ModeInterface Configuration
UsageUse the ip dhcp snooping option action command to set theaction when receive packets that with option82 content. Use theno form of this command to default setting.

Example

The example shows how to set action to replace option82 content.

You can verify settings by the following show running-config command.

switch(config)# interface gi1switch(config-if)# ip dhcp snooping option action replace

ip dhcp snooping option circuit-id

Syntaxip dhcp snooping [vlan <1-4094>] option circuit-idSTRINGno ip dhcp snooping [vlan <1-4094>] option circuit-id
ParameterVlan <1-4094>VLAN ID to set user defined circuit-id string
STRINGCircuit-id string, 1 to 63 ASCII characters, no spaces.
DefaultDefault circuit-id is port id + vlan id in byte format.
ModeInterface Configuration
UsageUse the ip dhcp snooping option circuit-id command to set user-defined circuit-id string. Circuit-id is per port per VLAN setting. If a VLAN is not found user-defined circuit-id then use per port circuit-id string. Use the no form of this command to default setting.
ExampleThe example shows how to set a user-defined circuit-id string on interface gi1 and VLAN 1. You can verify settings by the following show running-config commandswitch(config)# interface gi1switch(config-if)# ip dhcp snooping vlan 1 option circuit-id test

ip dhcp snooping option remote-id

Syntaxip dhcp snooping option remote-id STRING no ip dhcp snooping option remote-id
ParameterSTRINGRemote-id string, 1 to 63 ASCII characters, no spaces.
DefaultDefault remote-id is the switch MAC address in byte order
ModeGlobal Configuration
UsageUse theip dhcp snooping option remote-idcommand to set user-defined remote-id string.Remote-id is a global and unique string. Use thenoform of this command to default setting.
ExampleThe example shows how to set a user-defined remote-id string on switch. You can verify settings by the followingshow ip dhcp snooping option remote-idswitch(config)#ip dhcp snooping option remote-idtest_remote switch(config)#do show ip dhcp snooping option remote-id Remote ID: test_remote

show ip dhcp snooping option

Syntaxshow ip dhcp snooping option remote-id
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip dhcp snooping option remote-id command to show remote-id string.
ExampleThe example shows how to show remote-id stringswitch(config)# do show ip dhcp snooping option remote-idRemote ID: test_remote

ip dhcp snooping database

Syntaxip dhcp snooping database flaship dhcp snooping database tftp (A.B.C.D|HOSTNAME)NAME no ip dhcp snooping database
Parameter(A.B.C.D|HOSTNAME)Specify the IP address or hostname of remote TFTP server
NAMEInput name of backup file
DefaultDHCP snooping database is disabled
ModeGlobal Configuration
UsageUse theip dhcp snooping databasecommand to enable DHCP Snooping database agent. The “flash” means that write backup file to switch local drive. The “tftp” means that write backup file to remote TFTP server. Use thenoform of this command to disable.
ExampleThe example shows how to enable DHCP Snooping database agent and write backup file to remote TFTP server with file name “backup_file”. You can verify settings by the followingshow ip dhcp snooping databasecommand.switch(config)#ip dhcp snooping database tftp 192.168.1.50backup_fileswitch(config)#do show ip dhcp snooping databaseType : tftp:192.168.1.50FileName :backup_fileWrite delay Timer : 300 secondsAbort Timer : 300 secondsAgent Running : RunningDelay Timer Expiry : 300seconds Abort Timer Expiry :299Last Succeeded Time :None Last Failed Time :NoneLast Failed Reason : No failure recorded.Total Attempts : 1Successful Transfers : 0Failed Transfers : 0 Successful Reads :0 Failed Reads : 0Successful Writes : 0 Failed Writes : 0

ip dhcp snooping database write-delay

Syntax

ip dhcp snooping database write-delay <15-86400> no ip dhcp snooping database write-delay

Command Line Interface

User Guide

Parameter <15-86400>

Specifies the seconds of timeout. Specify the duration for which the transfer should be delayed after these changes

DefaultDHCP snooping database write-delay is 300 seconds
ModeGlobal Configuration
UsageUse the ip dhcp snooping database write-delay command to modify the write-delay timer. Use the no form of this command to default setting.
ExampleThe example shows how to set write-delay timer to 60 seconds. You can verify settings by the following show ip dhcp snooping database command.switch(config)# ip dhcp snooping database write-delay 60 switch(config)# do show ip dhcp snooping database Type : tftp:192.168.1.50FileName : backup_fileWrite delay Timer : 60 seconds Abort Timer : 300 secondsAgent Running : RunningDelay Timer Expiry : 300 seconds Abort Timer Expiry : 299Last Succeeded Time : None Last Failed Time : NoneLast Failed Reason : No failure recorded.Total Attempts : 1Successful Transfers : 0Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0Successful Writes : 0 Failed Writes : 0

ip dhcp snooping database timeout

Syntax

ip dhcp snooping database timeout <0-86400> no ip dhcp snooping database timeout

Command Line Interface

User Guide

Parameter

<15-86400>

Specifies the seconds of timeout. Specify (in seconds) how long to wait for the database transfer process to finish before stopping the process. Use 0 to define an infinite duration, which means to continue trying the itely

DefaultDHCP snooping database timeout is 300 seconds
ModeGlobal Configuration
UsageUse the ip dhcp snooping database timeout command to modify the timeout timer. Use the no form of this command to default setting.
ExampleThe example shows how to set timeout timer to 60 seconds. You can verify settings by the following show ip dhcp snooping database command.switch(config)# ip dhcp snooping database timeout 60 switch(config)# do show ip dhcp snooping database Type : tftp: 192.168.1.50FileName : backup_fileWrite delay Timer : 300seconds Abort Timer : 60secondsAgent Running : RunningDelay Timer Expiry : 300seconds Abort Timer Expiry : 299Last Succeeded Time : None Last Failed Time : NoneLast Failed Reason : No failure recorded.Total Attempts : 1Successful Transfers : 0Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0Successful Writes : 0 Failed Writes : 0

clear ip dhcp snooping database statistics

Syntaxclear ip dhcp snooping database statistics
ParameterNone
DefaultNo default is defined

Mode

Privileged EXEC

UsageUse the clear ip dhcp snooping database statistics command to clearstatistics of DHCP Snooping databae.
ExampleThe example shows how to clear statistics of DHCP Snooping agent. You can verify settings by the following show ip dhcp snooping database command.switch# clear ip dhcp snooping database statistics switch# show ip dhcp snooping databaseType : tftp:192.168.1.50FileName : backup_fileWrite delay Timer : 300 seconds Abort Timer : 60 secondsAgent Running : RunningDelay Timer Expiry : 300 secondsAbort Timer Expiry : 299Last Succeeded Time : None Last Failed Time : NoneLast Failed Reason : No failure recorded.Total Attempts : 0Successful Transfers : 0Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0Successful Writes : 0 Failed Writes : 0

renew ip dhcp snooping database

Syntaxrenew ip dhcp snooping database
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC

Usage

Use the renew ip dhcp snooping database command to renew DHCP

Snooping database from backup file.

ExampleThe example shows how to renew DHCP Snooping database. You can verify settings by the following show ip dhcp snooping database and show ip dhcp snooping binding command.
switch#show ip dhcp snooping databaseType : tftp: 192.168.1.50FileName : backup_fileWrite delay Timer : 300 secondsAbort Timer : 60 seconds
Agent Running : RunningDelay Timer Expiry : 300 secondsAbort Timer Expiry : 299
Last Succeeded Time :None Last Failed Time :NoneLast Failed Reason : No failure recorded.
Total Attempts : 1Successful Transfers : 1Failed Transfers : 0 Successful Reads :1 Failed Reads : 0Successful Writes : 0 Failed Writes : 0
switch#show ip dhcp snooping bindingBind Table: Maximun Binding Entry Number 192Port | VID | MAC Address | IP | Type | Lease Timefa1 | 1 | 48:5B:39:C7:12:62 | 192.168.1.100(255.255.255.255)|DHCP Snooping | 86400

show ip dhcp snooping database

Syntaxshow ip dhcp snooping database
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip dhcp snooping database command to show settings of

DHCP Snooping agent.

Example

The example shows how to show settings of DHCP Snooping agent.

switch(config)# show ip dhcp snooping database

Type : tftp:

192.168.1.50

FileName :

backup_file

Write delay Timer : 300

seconds Abort Timer : 60

seconds

Agent Running : Running

Delay Timer Expiry : 300

seconds Abort Timer Expiry :

299

Last Succeeded Time :

None Last Failed Time :

None

Last Failed Reason : No failure recorded.

Total Attempts : 1

Successful Transfers : 1

Failed Transfers : 0 Successful Reads :

1 Failed Reads : 0

Successful Writes : 0 Failed Writes : 0

7. DoS

dos

Syntax

dos (daeqsa-deny|icmp-frag-pkts-deny|icmpv4-ping-

max-check|icmpv6-ping-max-check|ipv6-min-frag-

size-check|land- deny|nullscan-deny|pod-deny|smurf-

deny|syn-sportl1024-

deny|synfin-deny|synrst-deny|tcp-frag-off-min-

check|tcpblat- deny|tcphdr-min-check|udpblat-

deny|xmas-deny)

dos icmp-ping-max-length MAX_LEN

dos ipv6-min-frag-size-length MIN_LEN

dos smurf-netmask MASK

Parameter

dos tcphdr-min-length HDR_MIN_LEN

naedsa-deny Drops the packets in the destination MAC address is no dos (tcp-frag-off-min-check/synrst-deny/synfin-equal to the source MAC address

deny | xma- deny nullscan-deny syn-sport1024-

deny|tcbhdr-min-check|smurf- deny|icmpv6-ping-max-

check icmpv4-ping-max-check icmp-frag-pkts-deny ipv6-

icmpv4-ping-max. Checks the maximum size of ICMP ping packets, and min-trad-size-check|pod-deny|tcpblat- ,deny|udpblat-

deny|land-deny|daeqsa-deny) drops the packets larger than the maximum packet size defined by the command dos icmp-ping-max-length

MAX_LEN.

icmpv6-ping-max-checkChecks the maximum size of ICMPv6 ping packets, and drops the packets larger than the maximum packet size defined by the command dos icmp-ping-max-length MAX_LEN.
ipv6-min-frag-size-checkChecks the minimum size of IPv6 fragments, and drops the packets smaller than the minimum size defined by the command dos ipv6-min-frag-size-lengthMIN_LEN.
land-denyDrops the packets if the source IP address is equal to the destination IP address.
nullscan-denyDrops the packets with NULL scan.
pod-denyAvoids ping of death attack.
smurf-denyAvoids smurf attack.
syn-sportl1024-denyDrops SYN packets with sport less than 1024.
synfin-denyDrops the packets with SYN and FIN bits set.
synrst-denyDrops the packets with SYN and RST bits set.
tcp-frag-off-min-checkDrops the TCP fragment packets with offset equals to one.
tcpblat-denyDrops the packages if the TCP source port is equal to the TCP destination port.
tcphdr-min-checkChecks the minimum TCP header and drops the TCP packets with the header smaller than the minimum size defined by the command dos tcphdr-min-lengthHDR_MIN_LEN.
udpblat-denyDrops the packets if the UDP source port equals to the UDP destination port.
xmas-denyDrops the packets if the sequence number is zero, and the FIN, URG and PSH bits are set.
icmp-ping-max-lengthMAX_LENSpecify the maximum size of the ICMPv4/ICMPv6 ping packets. The valid range is from 0 to 65535 bytes, and the default value is 512 bytes.
ipv6-min-frag-size-lengthMIN_LENSpecify the minimum size of IPv6 fragments. The valid range is from 0 to 65535 bytes, and default value is 1240 bytes.
smurf-netmaskMASKSpecify the netmask of smurf attack. The length range is from 0 to 323 bytes, and default length is 0 bytes.
tcphdr-min-lengthSpecify the minimum TCP header length. The length range is from 0 to 31 bytes, and default length is 20
HDR_MIN_LEN

Default

All of DoS protections are enabled by default. The default parameter are:

  • The maximum size of ICMP ping packages is 512 bytes
  • The minimum size of IPv6 fragments is 1240 bytes.
  • The Smurf netmask length is 0 bytes.
  • The minimum TCP header length is 20 bytes.
ModeGlobal Configuration
Usage To enable the specific Deniel of Service (DoS) protection, use the commanddos in the Global Configuration mode. Otherwise, use theno form of the command to disable the specific DoS protection.
ExampleThe following example sets the minimum fragment size to 1024 bytes, and enables the minimum size of IPv6 fragments validation.Switch(config)# dos ipv6-min-frag-size-length 1024Switch(config)# dos ipv6-min-frag-size-check
dos (interface)
Syntax dosno dos
Parameter N/A
DefaultDoS protection is disabled on each interface.
ModeInterface Configuration
Usage To enable the DoS on the specific interface, use the commanddos in the Interface Configuration mode. Otherwise, use theno form of the command to disable the DoS on the interface.
ExampleThe following example enables the DoS on the interface fa1.Switch(config)# interface fa1Switch(config-if)# dos
show dos
Syntax show dosshow dos interface IF_PORTS
ParameterinterfaceIF PORTSAn interface ID or the list of interface IDs.
DefaultN/A
ModePrivileged EXEC
UsageTo show the DoS protection configuration, use the commandshow dosin the Privileged EXEC mode. For the status of DoS protection on each interface, use the commandshow dosinterfacein the Privileged EXEC mode.
ExampleThe following example shows the global DoS protection configuration.
Switch# show dosType | State (Length)----+----DMAC equal to SMAC | enabledLand (DIP = SIP) | enabled UDP Blat(DPORT = SPORT) | enabled TCP Blat (DPORT= SPORT) | enabled POD (Ping of Death) |enabledIPv6 Min Fragment Size | enabled (1024 Bytes)ICMP Fragment Packets | enabledIPv4 Ping Max Packet Size | enabled (512 Bytes)IPv6 Ping Max Packet Size | enabled (512 Bytes)Smurf Attack | enabled (Netmask Length: 0) TCPMin Header Length | enabled (20 Bytes)TCP Syn (SPORT < 1024) | enabledNull Scan Attack | enabledX-Mas Scan Attack | enabledTCP SYN-FIN Attack | enabledTCP SYN-RST Attack | enabledTCP Fragment (Offset = 1) | enabled
Switch# show dosThe following example shows the status of DoS protection on the interface fa1.
Switch# show dos interfaces fa1 Port |DoS Protection----+----fa1 | disabled

8. Dynamic ARP Inspection

ip arp inspection

Syntaxip arpinspection no iparp inspection
ParameterNone
DefaultDynamic Arp inspection is disabled
ModeGlobal Configuration
UsageUse the ip arp inspection command to enable Dynamic Arp Inspection function. Use the no form of this command to disable.
ExampleThe example shows how to enable Dynamic Arp Inspection on VLAN 1. You can verify settings by the following show ip arp inspection command.switch(config)# ip arp inspectionswitch(config)# ip arp inspection vlan 1switch(config)# show ip arp inspectionDynamic ARP Inspection : enabledEnable on Vlans 1

ip arp inspection vlan

Syntaxip arp inspection vlan VLAN-LISTno ip arp inspection vlan VLAN-LIST
ParameterVLAN-LISTSpecify VLAN ID or a range of VLANs to enable or disable dynamic
DefaultDefault is disabled on all VLANs
ModeGlobal Configuration
UsageUse the ip arp inspection vlan command to enable VLANs on Dynamic Arp Inspection function. Use the no form of this command to disable VLANs on Dynamic Arp Inspection function.
ExampleThe example shows how to enable VLAN 1-100 on Dynamic Arp Inspection, and then disable VLAN 30-40 on Dynamic Arp Inspection. You can verify settings by the following show ip arp inspection command.switch(config)# vlan 1-100switch(config)# exit switch(config)#ip arp inspectionswitch(config)# ip arp inspection vlan 1-100switch(config)# show ip arp inspectionDynamic ARP Inspection : enabledEnable on Vlans : 1-100switch(config)# no ip arp inspection vlan 30-40switch(config)# show ip arp inspectionDynamic ARP Inspection :enabled Enable on Vlans : 1-29,41-100

ip arp inspection trust

Syntax

ip arp inspection trust

no ip arp inspection trust
ParameterNone
DefaultDynamic Arp inspection trust is disabled
ModeInterface Configuration
UsageUse the ip arp inspection trust command to set trusted interface. The switch does not check ARP packets that are received on the trusted interface; it simply forwards it. Use the no form of this command to set untrusted interface.
ExampleThe example shows how to set interface gi1 to trust. You can verify settings by the following show ip arp inspection interface command.switch(config)# interface gi1switch(config)# ip arp inspection trustswitch(config)# do show ip arp inspection interface gi1Interfaces | Trust State | Rate (pps) | SMAC Check | DMAC Check | IP Check/Allow Zero|----+----+----+----+----+gi1 | Trusted | None | disabled | disabled | disabled/disabled

ip arp inspection validate

Syntaxip arp inspection validate src-mac ip arp inspection validatedst-macip arp inspection validate ip [allow-zeros] no ip arp inspection validate src-macno ip arp inspection validate dst-macno ip arp inspection validate ip [allow-zeros]
ParameterNone
DefaultDefault is disabled of all validation
ModeInterface Configuration
UsageUse the ip arp inspection validate command to enable validate function on interface. The "src-mac" drop ARP requests and reply packets that arp-sender-mac and ethernet- source-mac is not match. The "dst-mac" drops ARP reply packets that arp-target-mac and ethernet-dst-mac is not match. The "ip" drop ARP request and reply packets that sender-ip is invalid such as broadcast、multicast、all zero IP address and drop ARP reply packets that target-ip is invalid. The "allow-zeros" means won't drop all zero IP address. Use the no form of this command to disable validation.
ExampleThe example shows how to set interface gi1 to validate “src-mac”、“dst-mac” and “ip allow zeros”. You can verify settings by the following show ip arp inspection interface command.switch(config)# interface gi1switch(config-if)# ip arp inspection validate src-macswitch(config-if)# ip arp inspection validate dst-maswitch(config-if)# ip arp inspection validate ip allow-zerosswitch(config)# do show ip arp inspection interface gi1Interfaces | Trust State | Rate (pps) | SMAC Check | DMAC Check | IP Check/Allow Zero|----+----+----+----+----+gi1 | Untrusted | None | enabled | enabled | enabled/ enabled

ip arp inspection rate-limit

Syntaxip arp inspection rate-limit <1-50> [no] ip arp inspection rate-limit
Parameter<1-50>Set 1 to 50 PPS of DHCP packet rate limitation
DefaultDefault is un-limited of ARP packet
ModeInterface Configuration
UsageUse the ip arp inspection rate-limit command to set rate limitation on interface. The switch drop ARP packets after receives more than configured rate of packets per second. Use the no form of this command to return to default settings.
ExampleThe example shows how to set rate limit to 30 pps on interface gi1. You can verify settings by the following show ip arp inspection interface command.switch(config)# interface gi1switch(config)# ip arp inspection rate-limit 30switch(config)# do show ip arp inspection interface gi1Interfaces | Trust State | Rate (pps) | SMAC Check | DMAC Check | IP Check/Allow Zero|......+......+......+......+......+gi1 | Untrusted | 30 | disabled | disabled | disabled/disabled

clear ip arp inspection statistics

Syntaxclear ip arp inspection interfaces IF_PORTS statistics
ParameterIF_PORTSspecifies ports to clear statistics
DefaultNo default is defined
ModePrivileged EXEC
UsageUse theclear ip arp inspection interfaces statisticscommand to clear statistics that are recorded on interface.
ExampleThe example shows how to clear statistics on interface gi1. You can verify settings by the followingshow ip arp inspection interface statisticscommand.switch#clear ip arp inspection interfaces gi1 statisticsswitch#show ip arp inspection interfaces gi1 statisticsPort| Forward |Source MAC Failures|Dest MAC Failures|SIP Validation Failures|DIP Validation Failures|IP-MAC Mismatch Failures----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ gi1| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |

show ip arp inspection

Syntaxshow ip dhcp snooping
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip arp inspection command to show settings of Dynamic Arp Inspection
ExampleThe example shows how to show settings of Dynamic Arp Inspectionswitch(config)# show ip arp inspectionDynamic ARP Inspection : enabledEnable on Vlans 1

show ip arp inspeciton interface

Syntaxshow ip arp inspection interfaces IF_PORTsshow ip arp inspection interfaces IF_PORTs statistics
ParameterIF_PORTSspecifies ports to show statistics
DefaultNo default is defined
ModePrivileged EXEC
UsageUse theshow ip arp inspection interfacescommand to show settings or statistics of interface.
ExampleThe example shows how to show settings of interface gi1.switch#show ip arp inspection interface gi1Interfaces | Trust State | Rate (pps) | SMAC Check | DMAC Check | IP Check/Allow Zero|----+----+----+----+----+gi1 | Trusted | None | disabled | disabled | disabled/disabledThe example shows how to show statistics of interface gi1.switch#show ip arp inspection interfaces gi1 statisticsPort| Forward |Source MAC Failures|Dest MAC Failures|SIP Validation Failures|DIP Validation Failures|IP-MAC Mismatch Failures----+----+----+----+----+----+gi1| 0 | 0 | 0 | 0 | 0 | 0

9. GVRP

gvrp (Global)

Syntaxgvrpno gvrp
ParameterNone
DefaultGVRP is disabled
ModeGlobal Configuration
UsageDisable gvrp will clear all learned dynamic vlan entry and do not learn dynamic vlan anymore.Use ‘show gvrp’ to show configuration.
ExampleThe following example specifies that set global gvrptest. Switch(config)# gvrpSwitch# show gvrp

GVRP Status

GVRP : Enabled

Join time : 200 ms

Leave time : 600 ms

LeaveAll time : 10000 ms

gvrp (Interface)

Syntaxgvrpno gvrp
Parameternone
DefaultGVRP is disabled oninterface
ModeInterface mode
Usage‘no gvrp’ will remove dynamic port fromvlan.‘gvrp’ must work at port mode is trunk.
ExampleThe following example specifies that set port gvrptest. The port gvrp enable must set port modeistrunk firstly. Switch(config)#interface gi1Switch(config-if)# switchport mode trunkSwitch(config)#gvrpSwitch# show gvrp configuration interfaces gi1Port | GVRP-Status | Registration | Dynamic VLAN Creation----+----+----+----gi1 Enabled Normal Disabled

gvrp registration-mode

Syntaxgvrp registration-mode (normal | fixed | forbidden)
Parameter(normal | fixed | forbidden)normal: register dynamic vlan, and transmit all vlan attribute.fixed: do not register dynamic vlan, and only transmit static vlan attribute.forbidden: do not register dynamic vlan, and only transmit default vlan attribute.
DefaultDefault is Normal
ModeInterface mode
UsageWhen set registration-mode is fixed or forbidden, will remove the port fromvlan witch is dynamic port. And do not learning vlan.
ExampleThe following example specifies that set gvrp registration mode test. Switch(config)#interface gi1Switch(config-if)#gvrp registration-mode fixedSwitch#show gvrp configuration interfaces gi1Port | GVRP-Status | Registration | Dynamic VLAN Creation----+----+----+----gi1 Enabled Fixed Disabled

gvrp vlan-create-forbid

Syntaxgvrp vlan-creation-forbidno gvrp vlan-creation-forbid
Parameternone
DefaultDefault is disabled.
ModeInterface mode
Usage‘gvrp vlan-creation-forbid’ will not remove dynamic port from vlanimmediate.
ExampleThe following example specifies that set port gvrp vlan-creation-forbid test. Switch(config)#interface gi1Switch(config-if)# gvrp vlan-creation-forbidSwitch(config-if)#exitSwitch# show gvrp configuration interfaces gi1Port | GVRP-Status | Registration | Dynamic VLAN Creation----+----+----+----gi1 Enabled Normal Enabled
Syntaxclear gvrp (error-statistics | statistics) [interfaces IF_PORTS]
Parameter (error-statistics| statistics)Error-statistics: error gvrp packet statisticsStatistics: gvrp event message
[interfacesstatistics Specifies posts to clear statistics
IF PORTS]
Defaultnone
ModePrivileged EXEC
UsageThis command will clear the ports error statistics or statistics info.
ExampleThe following example specifies that clear gvrp error statistics and statistics test.Switch# clear gvrp statisticsSwitch# clear gvrp error-statistics

clear gvrp statistics

show gvrp statistics

Syntaxshow gvrp (statistics | error-statistics) [interfaces IF_PORTS]
Parameter noneDisplay all ports
(statistics|error-statistics – GVRP statistics error-statistics GVRP error
statistics)[interfacesstatistics Specifies posts
IF_PORTS]
DefaultDisplay all ports statistics info
ModePrivileged EXEC
UsageThis command will display the ports error statistics or statistics info.

Example

The following example specifies that display gvrp error statistics and statistics test.

Switch# show gvrp statistics

Port id : fa1

Total RX : 0

JoinEmpty RX : 0

JoinIn RX : 0

Empty RX : 0

Leaveln RX : 0

LeaveEmpty RX : 0

LeaveAll RX : 0

Total TX : 0

JoinEmpty TX : 0

JoinIn TX : 0

Empty TX : 0

Leaveln TX : 0

LeaveEmpty TX : 0

LeaveAll TX : 0

Port id : fa2

Total RX : 0

JoinEmpty RX : 0

JoinIn RX : 0

Empty RX : 0

Leaveln RX : 0

LeaveEmpty RX : 0

LeaveAll RX : 0

Total TX : 0

...

Switch# show gvrp error-statistics

INVPROT : Invalid protocol Id

INVATYP : Invalid Attribute Type INVALEN : Invalid Attribute Length

INVAVAL : Invalid Attribute Value INVEVENT: Invalid Event

Port | INVPROT | INVATYP | INVALEN | INVAVAL | INVEVENT

gi100000
gi200000
gi300000
gi400000
gi500000
gi600000

Syntax show gvrp

Parameter none

DefaultNone
ModePrivileged EXEC
UsageThis command will display the gvrp global info.
ExampleThe following example specifies that display gvrp test. Switch# show gvrpGVRP Status----GVRP : DisabledJoin time : 200 msLeave time : 600 msLeaveAll time : 10000 ms

show gvrp configuration

Syntaxshow gvrp configuration [interface IF_PORTS]
Parameter noneDisplay all ports configuration
[interfaces Display Specifies posts configuration IF PORTS]
DefaultDisplay all ports configuration info
ModePrivileged EXEC
UsageThis command will display the ports configuration info.
ExampleThe following example specifies that display gvrp port configuration test. Switch# show gvrp configurationPort | GVRP-Status | Registration | Dynamic VLAN Creation
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
gi1 Disabled NormalEnabled gi 2 Disabled NormalEnabled
gi 3DisabledNormalEnabled
gi 4DisabledNormalEnabled
gi 5DisabledNormalEnabled
gi 6DisabledNormalEnabled
gi 7DisabledNormalEnabled
--More—

10. IGMP Snooping

ip igmp snooping

Syntax ip igmpsnooping no ip igmp snooping
ParameterNone
DefaultDefault is enabled
ModeGlobal Configuration
UsageUse the ip igmp snooping command to enable IGMP snooping function. Use the no form of this command to disable. You can verify settings by the show ip igmp snooping command.
ExampleThe following example specifies that set ip igmp snooping test. Switch(config)# no ip igmp snooping

ip igmp snooping report-suppression

Syntax ip igmp snooping report-suppressionno ip igmp snooping report-suppression
ParameterNone
DefaultDefault is enabled
ModeGlobal Configuration
Usage Use the ip igmp snooping report-suppression command to enable IGMP snooping report-suppression function.Use the no form of this command to disable. Disable report-suppression will forward all received reports to the vlan router ports.You can verify settings by the show ip igmp snooping command.
ExampleThe following example specifies that disable ip igmp snooping report- suppression test.

ip igmp snooping version

Syntax ip igmp snooping version (2|3)

Parameter(2|3)IGMP version 2 or IGMP version 3 basic mode
DefaultDefault is version 2
ModeGlobal Configuration
Usage Use the ip igmp snooping version command to change IGMP support version. Only basic mode is supported in v3. When change version from v3 to v2, all querier version will update to version 2.You can verify settings by the show ip igmp snooping command.
ExampleThe following example specifies that set ip igmp snooping version 3. Switch(config)# ip igmp snooping version 3

ip igmp snooping unknown-multicast action

Syntax ip igmp snooping unknown-multicast action (drop | flood |router-port) no ip igmp snooping unknown-multicast action

Parameter(drop | flood | router- port)Drop、flood in vlan or forward to router port of unknown multicast packet
DefaultDefault is flood.
ModeGlobal Configuration
UsageWhen igmp and mld snooping disabled, it can’t set action router-port.When disable igmp snooping & mld snooping, it set unknown multicast action flood. When action is router-port to flood or drop, it will delete the unknown multicast group entry.Use the ip igmp snooping unknown-multicast action command to change action.Use the no form of this command to restore to default.You can verify settings by the show ip igmp snooping command.
ExampleThe following example specifies that set ip igmp unknown multicast action router-port test.Switch(config)# ip igmp snoopingSwitch(config)# ip igmp snooping unknown-multicast action router-port

ip igmp snooping querier

Syntaxip igmp snooping vlanquerier [version (2|3)]no ip igmp snooping [vlan] querier
ParameterVLAN-LISTspecifies VLAN ID list to set
(2|3)Query version 2 or 3
DefaultNo ip igmp snooping querier by default
ModeGlobal Configuration
UsageWhen enable ip igmp vlan querier, there will process router select, the select successful will send general and specific query.Use the ip igmp snooping querier command to add querier. Use the no form of this command to delete querier.You can verify settings by the show ip igmp snooping querier command.
ExampleThe following example specifies that set ip igmp snooping querier test. Switch(config)# ip igmp snooping vlan 2 querier version 3

ip igmp snooping vlan

Syntax

ip igmp snooping vlan VLAN- LIST

no ip igmp snooping vlan VLAN-LIST
ParameterVLAN-LIST specifies VLAN ID list to set
DefaultDefault is disabled for all VLANs
ModeGlobal Configuration
UsageDisable will clear all ip igmp snooping dynamic group and dynamic router port and make all static ip igmp group invalid of this vlan. Will not learn dynamic group and router port by igmp message any more.Use the ip igmp snooping vlan command to enable IGMP on VLAN. Use the no form of this command to disableYou can verify settings by the show ip igmp snooping vlan command.
ExampleThe following example specifies that set ip igmp snooping vlan test.Switch(config)# ip igmp snoopingSwitch(config)# ip igmp snooping vlan 2

ip igmp snooping vlan fastleave

Syntax ip igmp snooping vlan fastleave no ip igmp snooping vlan fastleave

ParameterVLAN-LISTspecifies VLAN ID list to set
DefaultDefault is disabled
ModeGlobal Configuration

Usage Use the ip igmp snooping vlan fastleave command to enable fastleave function. Group will remove port immediately when receive leave packet. Use the no form of this command to disable. You can verify settings by the show ip igmp snooping vlan command

ExampleThe following example specifies that set ip igmp snooping vlan fastleave test. Switch(config)# ip igmp snooping vlan 1 fastleave

ip igmp snooping vlan last-member-query-count

Syntaxip igmp snooping vlanlast-member-query-count <1-7>no ip igmp snooping vlanlast-member-query-count
ParameterVLAN-LISTspecifies VLAN ID list to set
last-member-query-count <1-7>specifies last member query count to set.
DefaultDefault is 2
ModeGlobal Configuration
Usage Use the ip igmp snooping vlan last-member-query-count command to change how many query packets will send.Use theno form of this command to restore to default.You can verify settings by theshow ip igmp snooping vlancommand
ExampleThe following example specifies that set ip igmp snoopingvlan last-member-query-count test.Switch(config)# ip igmp snooping vlan 1 last-member-query-count 5
ip igmp snooping vlan last-member-query-interval
Syntaxip igmp snooping vlanlast-member-query-interval <1-60>no ip igmp snooping vlanlast-member-query-interval
Parameter VLAN-LIST specifies VLAN ID list to setinterval <1-60>last-member-query-specifies last member query interval to set
DefaultDefault is 1
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan last-member-query-interval command to set interval between each query packet.Use the no form of this command to restore to defaultYou can verify settings by the show ip igmp snooping vlan command
ExampleThe following example specifies that set ip igmp snoopingvlan last- member-query-interval test.Switch(config)# ip igmp snooping vlan 1 last-member-query-interval 3

ip igmp snooping vlan query-interval

Syntaxip igmp snooping vlan
query-interval <30-18000>
no ip igmp snooping vlan
ParameterVLAN-LIST specifies VLAN ID list to set
query-interval <30- specifies query interval to set
18000>
DefaultDefault is 125
ModeGlobal Configuration
Usage Use the ip igmp snooping vlan query-interval command to set interval between each query.Use the no form of this command to restore to defaultYou can verify settings by the show ip igmp snooping vlan command
ExampleThe following example specifies that set ip igmp snooping vlan query- interval test.Switch(config)# ip igmp snooping vlan 1 query-interval 100

ip igmp snooping vlan response-time

Syntaxip igmp snooping vlanresponse-time <5-20>no ip igmp snooping vlanresponse-time
ParameterVLAN-LISTspecifies VLAN ID list to set
response-time <5-20>specifies a response time to set
DefaultDefault is 10
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan response-time command to set response timeUse the no form of this command to restore to default.You can verify settings by the show ip igmp snooping vlan command
ExampleThe following example specifies that set ip igmp snooping vlan response- time test.Switch(config)# ip igmp snooping vlan 1 response-time 12

ip igmp snooping vlan robustness-variable

Syntaxip igmp snooping vlanrobustness-variable <1-7>no ip igmp snooping vlanrobustness-variable
Parameter VLAN-LIST specifies VLAN ID list to set
DefaultDefault is 2
ModeGlobal Configuration
Usage Use the ip igmp snooping vlan robustness-variablecommand to times to retry.Use thenoform of this command to restore to defaultYou can verify settings by theshow ip igmp snooping vlancommand
ExampleThe following example specifies that set ip igmp snooping vlan parameters test.Switch(config)# ip igmp snooping vlan 1 robustness-variable

ip igmp snooping vlan router

Syntaxip igmp snooping vlan VLAN-LIST router learn pim-dvmrpnooping vlan VLAN-LIST router learn pim-
ParameterVLAN-LIST specifies VLAN ID list to set
DefaultDefault is enabled
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan router command to enable learning router port by routing protocol packets such as PIM/PIMv2, DVMRP, MOSPF. Use the no form of this command to disable.You can verify settings by the show ip igmp snooping vlan command
ExampleThe following example specifies that set ip igmp snooping vlan router test. Switch(config)# ip igmp snooping vlan 99 router
ip igmp snooping vlan forbidden-port
Syntaxip igmp snooping vlanforbidden-port IF_PORTSno ip igmp snooping vlanforbidden-port IF_PORTS
ParameterVLAN-LIST specifies VLAN ID list to set
IF_PORTS specifies a port list to set or remove
DefaultNo forbidden ports by default
ModeGlobal Configuration
Usage‘ip igmp snooping vlan 1 static-port gi1-2’ will add static port gi1-2 for vlan 1.the all known vlan 1 ipv4 group will add the static ports.‘ip igmp snooping vlan 1 forbidden-port gi3-4’ will add forbidden port gi3-4 for vlan 1.the all known vlan 1 ipv4 group will remove the forbidden ports. The configure can use ‘show ip igmp snooping forward-all’.
Use the ip igmp snooping vlan forbidden-port command to add static non-forwarding port, all known vlan 1 ipv4 group will remove the forbidden ports. Use the no form of this command to delete forbidden port.You can verify settings by the show ip igmp snooping forward-all

command.

ExampleThe following example specifies that set ip igmp snooping static/forbidden port test.Switch(config)# ip igmp snooping vlan 1 forbidden -port gi3-4

ip igmp snooping vlan static-port

Syntaxip igmp snooping vlanstatic-port IF_PORTSping vlanstatic-port
ParameterVLAN-LIST specifies VLAN ID list to set
IF_PORTS specifies a port list to set or remove
DefaultNo static port by default
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan static-port command to add static forwarding port, all known vlan 1 ipv4 group will add the static ports. Use the no form of this command to delete static port.You can verify settings by the show ip igmp snooping forward-all command.
ExampleThe following example specifies that set ip igmp snooping static port test. Switch(config)# ip igmp snooping vlan 1 static -port gi1-2

ip igmp snooping vlan forbidden-router-port

Syntaxip igmp snooping vlanforbidden-router-portIF_PORTSno ip igmp snooping vlanforbidden-router-port
ParameterVLAN-LISTspecifies VLAN ID list to set
IF_PORTSspecifies a port list to set or remove
DefaultNo forbidden router ports by default
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan forbidden-router-port command to add static forbidden router port. This will also remove port from static router port. The forbidden router port will not forward received query packet.Use the no form of this command to delete forbidden router port.You can verify settings by the show ip igmp snooping router command.
ExampleThe following example specifies that set ip igmp snooping forbidden test. Switch(config)# ip igmp snooping vlan 1 forbidden-router-port gi2

ip igmp snooping vlan static-router-port

Syntaxip igmp snooping vlanstatic-router-port IF_PORTSno ip igmp snooping vlanstatic-router-portIF_PORTS
ParameterVLAN-LISTspecifies VLAN ID list to set
IF_PORTSspecifies a port list to set or remove
DefaultNo static router ports by default
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan static-router-port command to add static router port. All query packets will forward to this port.Use theno form of this command to delete static router port.You can verify settings by theshow ip igmp snooping router command.
ExampleThe following example specifies that set ip igmp snooping static test. Switch(config)# ip igmp snooping vlan 1 static-router-port gi1-2

ip igmp snooping vlan static-group

Syntaxip igmp snooping vlanstatic-group [] interfaces IF_PORTSno ip igmp snooping vlanstatic-groupinterfaces IF_PORTS
ParameterVLAN-LISTip-addrspecifies VLAN ID list to setspecifies multicast group ipv4 address
IF_PORTSspecifies port list to set or remove
DefaultNo static group by default
ModeGlobal Configuration
UsageUse the ip igmp snooping vlan static-group command to add a static group. The static group will not learn other dynamic ports. If the dynamic group exists, then the static group will overlap the dynamic group. The static group set to valid unless igmp snooping global and vlan enable.Use the no form of this command to delete a port in static group. If remove the last member of static group, the static group will be delete.You can verify settings by the show ip igmp snooping group command.
ExampleThe following example specifies that set ip igmp snooping static group test. Switch(config)# ip igmp snooping vlan 1 static-group 224.1.1.1 interfaces gi1-2

ip igmp snooping vlan group

Syntaxno ip igmp snooping vlangroup
ParameterVLAN-LISTspecifies VLAN ID list to set
ip-addrspecifies multicast group ipv4 address
DefaultNone
ModeGlobal Configuration

Usage Use the no ip igmp snooping vlan group command to delete a group which could be static or dynamic. You can verify settings by the show ip igmp snooping group command.

Example

The following example specifies that set ip igmp snooping static group test. Switch(config)# no ip igmp snooping vlan 1 group 224.1.1.1

profile range

Syntaxprofile range ip <ip-addr> [ip-addr] action (permit | deny)
<ip-addr>Start ipv4 multicast address
[ip-addr]End ipv4 multicast address
(permit | deny)Permit: allow Multicast address range ip address learningdeny: do not allow Multicast address range ip address
DefaultNone
Modeigmp profile configuration mode
UsageUse the profile command to generate IGMP profile.You can verify settings by the show ip igmp profile command
ExampleThe following example specifies that set ip igmp profile test. Switch(config)# ip igmp profile 1Switch(config-igmp-profile)# profile range ip 224.1.1.1 224.1.1.8action permit
ip igmp profile
Syntaxip igmp profile <1-128>no ip igmp profile <1-128>
Parameter<1-128>specifies profile ID
DefaultNo profie exist by default
ModeGlobal Configuration
Usage Use the ip igmp profile command to enter profile configurationUse the no form of this command to delete profileYou can verify settings by the show ip igmp profile command
ExampleThe following example specifies that set ip igmp profile test. Switch(config)# ip igmp profile 1
ip igmp filter
Syntaxip igmp filter <1-128>[no] ip igmp filter
Parameter<1-128>specifies profile ID
DefaultNone
ModePort Configuration
UsageUse the ip igmp filter command to bind a profile for port. When the port bind a profile. Then the port learning group will update, if the group is not match the profile rule it will remove the port from the group. Static group is excluded.Use the no form of this command to delete profileYou can verify settings by the show ip igmp filter command
ExampleThe following example specifies that set ip igmp filter test.Switch(config)# interface gi1Switch(config-if)# ip igmp filter 1

ip igmp max-groups

Syntaxip igmp max-groups <0-1024>no ip igmp max-groups
Parameterinterface can join.<0-1024>The maximum number of IGMP groups that an
DefaultDefault is 1024
ModePort Configuration
Usage Use the ip igmp max-groups command to limit port learning max group number. When the port has reach limitation, new group will not add this port. Static group is excluded.Use the no form of this command to restore to defaultYou can verify settings by the show ip igmp max-groups command.
ExampleThe following example specifies that set ip igmp max-groups test. Switch(config-if)#ip igmp max-groups 10

ip igmp max-groups action

Syntaxip igmp max-groups action (deny | replace)
Parameter (deny | replace) Deny: current port igmp group arrived max-groups, don't add group.Replace: current port igmp group arrived max-groups, remove port for rand group, and add port to new group.
DefaultDefault action is deny
ModePort Configuration
Usage Use the ip igmp max-groups action command to set the action when the numbers of groups reach the limitation.Use the no form of this command to restore to defaultYou can verify settings by the show ip igmp max-groups command.
ExampleThe following example specifies that set action replace test. Switch(config-if)#ip igmp max-groupsaction replace

clear ip igmp snooping groups

Syntaxclear ip igmp snooping groups [(dynamic | static)]
ParameternoneClear ip igmp groups include dynamic and static
(dynamic | static)Ip igmp group type is dynamic or static
DefaultNone
ModePrivileged EXEC
UsageThis command will clear the ip igmp groups for dynamic or static or all of type.You can verify settings by the show ip igmp snooping groups command.
ExampleThe following example specifies that clear ip igmp snooping groups test.Switch# clear ip igmp snooping groupsSwitch# show ip igmp snooping groupsVLAN | Group IP Address | Type | Life(Sec) | Port----+----+----+----+----Total Number of Entry = 0

clear ip igmp snooping statistics

Syntax clear ip igmp snooping statistics

Parameternone
DefaultNone
ModePrivileged EXEC
UsageThis command will clear the igmp statistics.You can verify settings by the show ip igmp snooping command.
ExampleThe following example specifies that clear ip igmp snooping statistics test. Switch#clear ip igmp snooping statisticsSwitch#show ip igmp snoopingIGMP Snooping Status----Snooping : EnabledReport Suppression :EnabledOperation Version : v2Forward Method : macUnknown IP Multicast Action :FloodPacket StatisticsTotal RX : 0Valid RX : 0Invalid RX : 0Other RX : 0Leave RX : 0Report RX : 0General Query RX : 0Specail Group Query RX : 0Specail Group & Source Query RX :0 Leave TX : 0Report TX : 0General Query TX : 0Specail Group Query TX : 0Specail Group & Source Query TX : 0

show ip igmp snooping groups counters

Syntaxshow ip igmp snooping groups
Parameternone
Defaultnone
ModePrivileged EXEC
UsageThis command will display the ip igmp group counter include static group.

Example

The following example specifies that display ip igmp snooping group counter test.

Switch# show ip igmp snooping group counters

Total ip igmp snooping group number: 2Total ip igmp snooping static mac number: 0

show ip igmp snooping groups

Syntaxshow ip igmp snooping groups [(dynamic | static)]
ParameternoneShow ip igmp groups include dynamic and static
(dynamic | static)Display Ip igmp group type is dynamic or static
DefaultNone
ModePrivileged EXEC
UsageThis command will display the ip igmp groups for dynamic or static or all of type.
ExampleThe following example specifies that show ip igmp snooping groups.Switch# show ip igmp snooping groupsVLAN | Group IP Address | Type | Life(Sec) | Port----+----+----+----+----1 | 224.1.2.3 | Static| -- | fa91 | 224.1.2.4 | Static| -- | fa10Total Number of Entry = 2

show ip igmp snooping router

Syntaxshow ip igmp snooping router [(dynamic | forbidden |static)]
ParameternoneShow ip igmp router include dynamic and static and forbidden
(dynamic | forbidden | static)Display lp igmp router info for different type
DefaultNone
ModePrivileged EXEC
UsageThis command will display the ip igmp router info.
ExampleThe following example specifies that show ip igmp snooping router.Switch#show ip igmp snooping routerDynamic Router TableVID | Port | Expiry Time(Sec)----+----+----Total Entry 0Static RouterTable VID | PortMask----+----1 | fa4Total Entry 1Forbidden RouterTable VID | PortMask----+----1 | fa8Total Entry 1

show ip igmp snooping querier

Syntax show ip igmp snooping querier

ParameternoneShow all vlan ip igmp querier info.
DefaultNone
ModePrivileged EXEC
UsageThis command will display all of the static vlan ip igmp querier info.
ExampleThe following example specifies that show ip igmp snoopingquerier test. Switch#show ip igmp snooping querierVID | State | Status | Version | Querier IP----+----+----+----+----1 | Disabled | Non-Querier | No | ----Total Entry 1

show ip igmp snooping

Syntax show ip igmp snooping

ParameterNone
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp snooping global info.
ExampleThe following example specifies that show ip igmp snooping test. Switch#show ip igmp snoopingIGMP Snooping Status----Snooping : EnabledReport Suppression :EnabledOperation Version : v2Forward Method : macUnknown Multicast Action :FloodPacket StatisticsTotal RX : 0Valid RX : 0Invalid RX : 0Other RX : 0Leave RX : 0Report RX : 0General Query RX : 0Specail Group Query RX : 0

Specail Group & Source Query RX :

0 Leave TX : 0

Report TX : 0

General Query TX :

0 Specail Group Query TX : 0

Specail Group & Source Query TX : 0

show ip igmp snooping vlan

Syntaxshow ip igmp snooping vlan [VLAN-LIST]
ParameternoneShow all ip igmp snooping vlan info
[VLAN-LIST]Show specifies vlan ip igmp snooping info
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp snooping vlan info.
ExampleThe following example specifies that show ip igmp snooping vlan test. Switch# show ip igmp snooping vlan 1IGMP Snooping is globally enabledIGMP Snooping VLAN 1 admin:disabled IGMP Snooping operationmode: disabled IGMP Snoopingrobustness: admin 2 oper 2IGMP Snooping query interval: admin 125 sec oper 125sec IGMP Snooping query max response: admin 10 secoper 10 sec IGMP Snooping last member query counter:admin 2 oper 2IGMP Snooping last member query interval: admin 1 sec oper 1sec IGMP Snooping last immediate leave: disabledIGMP Snooping automatic learning of multicast router ports: enabled

show ip igmp snooping forward-all

Syntaxshow ip igmp snooping forward-all [vlan VLAN-LIST]
ParameternoneShow all ip igmp snooping vlan forward-all info
[vlan VLAN-LIST]Show specifies vlan of ip igmp forward info.
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp snooping forward all info.
ExampleThe following example specifies that show ip igmp snooping forward-all test. Switch# show ip igmp snooping forward-all 1IGMP Snooping VLAN 1IGMP Snooping static port : NoneIGMP Snooping forbidden port : None

show ip igmp profile

Syntaxshow ip igmp profile [<1-128>]
ParameternoneShow all ip igmp snooping profile info
[<1-128>]Show specifies index profile info
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp profile info.
ExampleThe following example specifies that show ip igmp profile test. Switch# show ip igmp profileIP igmp profile index: 1IP igmp profile action:permit Range low ip:224.1.1.1 Range high ip:224.1.1.8IP igmp profile index: 2IP igmp profile action:deny Range low ip:225.1.1.0Range high ip: 225.1.2.1

show ip igmp filter

Syntax show ip igmp filter [interfaces IF_PORTS]

ParameternoneShow all port filter
[interfacesIF PORTS]Show specifies ports filter
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp port filter info.
ExampleThe following example specifies that show ip igmp filter test. Switch#show ip igmp filterPort ID | Profile ID----+----gi1 : 1gi2 : Nonegi3 : Nonegi4 : Nonegi5 : None--More--

show ip igmp max-group

Syntaxshow ip igmp max-group [interfaces IF_PORTS]
ParameternoneShow all port max-group
[interfaces IF_PORTS]Show specifies ports max-group
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp port max-group.
ExampleThe following example specifies that show ip igmp max-group test.
Switch(config-if)#ip igmp max-groups 50Switch# show ip igmp max-group
Port ID | Max Group
----+----
gi1 : 50
gi2 : 256
gi3 : 256
gi4 : 256
gi5 : 256
--More--

show ip igmp max-group action

Syntaxshow ip igmp max-group action [interfaces IF_PORTS]
ParameternoneShow all port max-group action
[interfacesIF PORTS]Show specifies ports max-group action
DefaultNone
ModePrivileged EXEC
UsageThis command will display ip igmp port max-group action.
ExampleThe following example specifies that show ip igmp max-group action test.Switch(config)#interface gi1Switch(config-if)#ip igmp max-groups action replaceSwitch# show ip igmp max-group actionPort ID | Max-groups Action----+----gi1 :replacegi2 :denygi3 :denygi4 :denygi5 :deny--More--

11. IP Source Guard

Syntax ip source verify [mac-and-ip] no ip source verify
Parametermac-and-ipVerify by mac and ip address boundle
DefaultIP Source Guard is disabled on interface. Default is that verifying ip address only
ModePort Configuration
UsageUse the ip source verify command to enable IP Source Guard function. Default IP Source Guard filter source IP address. The “mac-and-ip” filters not only source IP address but also source MAC address.Use the no form of this command to disable.You can verify settings by the show ip source interfaces command.
ExampleThe example shows how to enable IP Source Guard with source IP address filtering on interface gi1.Switch(config)# interface gi1switch(config-if)# ip source verifyThe example shows how to enable IP Source Guard with source IP and MAC address filtering on interface gi2.Switch(config)# interface gi2switch(config-if)# ip source verify mac-and-ipswitch(config-if)# do show ip source interfacesgi1-2 Port | Status | Max Entry | CurrentEntry+----+----+gi1 | Verify MAC+IP | No Limit | 0gi2 | disabled | No Limit | 0

ip source binding

Syntaxip source binding A:B:C:D:E:F vlan <1-4094> A.B.C.D interfaceIF_PORTno ip source binding A:B:C:D:E:F vlan <1-4094> A.B.C.D interface IF_PORT
ParameterA:B:C:D:E:FSpecify a MAC address of a binding entry
VLAN <1-4094>Specify a VLAN ID of a binding entry
A.B.C.DSpecify IP address and MASK of a binding entry.
IF_PORTSpecify interface of a binding entry.
Managed Switch Software148Rev. 1.1
DefaultDefault is no binding entry.
ModeGlobal Configuration
UsageUse the ip source binding command to create a static IP source binding entry has an IP address, its associated MAC address、VLAN ID、interface.Use the no form of this command to delete static entry.You can verify settings by the show ip source binding command.
ExampleThe example shows how to add a static IP source binding entry.Switch(config)# ip source binding 00:11:22:33:44:55 vlan 1192.168.1.55 interface fa1switch(config)# do show ip source bindingBind Table: Maximun Binding Entry Number 192Port | VID | MAC Address | IP | Type | Lease Time+----+----+----+----+----fa1 |1 | 00:11:22:33:44:55 |192.168.1.55(255.255.255.255)| Static | NA

show ip source interface

Syntaxshow ip source interfacesIF_PORTS
ParameterIF_PORTS specifies ports to show
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip source interface command to show settings of IP SourceGuard of interface
ExampleThe example shows how to show settings of IP Source Guard of interface gi1switch# show ip source interfaces gi1Port | Status | Max Entry | Current Entry----+----+----+----gi1 | Verify MAC+IP | No Limit | 0

show ip source binding

Syntaxshow ip source binding[(dynamic|static)]
ParameterdynamicShow entries that added by DHCP snooping learn
staticShow entries that added by user
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show ip source binding command to show binding entries of IP Source Guard.
ExampleThe example shows how to show static binding entries of IP Source Guard.
switch# show ip source binding
Bind Table: Maximum Binding Entry Number 192
Port | VID | MAC Address | IP | Type | Lease Time
fa1 | 1 | 00:11:22:33:44:55 | 192.168.1.55(255.255.255.255) | Static | NA

lag

Syntaxlag <1-8> mode (static | active | passive) no lag
Parameter<1-8>Specify the LAG id for the interface
staticSpecify the LAG to be static mode and join the interface into this LAG.
activeSpecify the LAG to be dynamic mode and join the interface into this LAG with LACP active port.
passiveSpecify the LAG to be dynamic mode and join the interface into this LAG with LACP passive port.
DefaultThere is no LAG in default.

Mode

Interface Configuration

Usage Link aggregation group function allows you to aggregate multiple physical ports into one logic port to increase bandwidth. This command makes normal port join into the specific LAG logic port with static or dynamic mode. And use “no lag” to leave the LAG logic port.

Example

This example shows how to create a dynamic LAG and join fa1-fa3 to this LAG. Switch(config)# interface range fa1-3 Switch(config-if)# lag 1 mode active

This example shows how to show current LAG status. Switch# show lag Load Balancing: src-dst-mac-ip.

Group ID | Type | Ports
1 | LACP | Inactive: fa1-3 2 |
---- |
3 | ---- |
4 | ---- |
5 | ---- |
6 | ---- |
7 | ---- |
8 | ---- | 

lag load-balance

Syntax

lag load-balance (src-dst-mac | src-dst-mac-ip) no lag load-balance

Parameter src-dst-mac Specify algorithm to balance traffic by using source and destination MAC address for all packets.

src-dst-mac-ip Specify algorithm to balance traffic by using source and destination IP address for IP packets and using source and destination MAC address for non-IP packets.

Default

Default load balance algorithm is src-dst-mac

Mode

Global Configuration

Command Line Interface

User Guide

Usage

Link aggregation group port should transmit packets spread to all ports to balance traffic loading. There are two algorithm supported and this command

allow you to select the algorithm.

ExampleThis example shows how to change load balance algorithm to src-dst-mac-ip.Switch(config)# lag load-balance src-dst-mac-ip
This example shows how to show current load balance algorithm.Switch# show lagLoad Balancing: src-dst-mac-ip.
Group ID | Type | Ports----+----+----1 | ----|
2 | ----|
3 | ----|
4 | ----|
5 | ----|
6 | ----|
7 | ----|
8 | ----|

Iacp port-priority

Syntax lacp port-priority <1-65535>no lacp port-priority
Parameter<1-65535>Specify port priority value
DefaultDefault port priority is 1.
ModeInterface Configuration
Usage LACP port priority is used for two connected DUT to select aggregation ports. Lower port priority value has higher priority. And the port with higher priority will be selected into LAG first.The only way to show this configuration is using “show running-config” command.
ExampleThis example shows how to configure interface fa1 lacp port priority to 100.Switch(config)# interface fa1Switch(config-if)# lacp port-priority 100

Iacp system-priority

Syntaxlapc system-priority <1-65535>no lacp system-priority
Parameter<1-65535>Specify system priority value
DefaultDefault system priority is 32768.
ModeGlobal Configuration
Usage LACP system priority is used for two connected DUT to select master switch. Lower system priority value has higher priority. And the DUT with higher priority can decide which ports are able to join the LAG. Use "no lacp system-priority" to restore to the default priority value. The only way to show this configuration is using "show running-config" command.
ExampleThis example shows how to configure lacp system priority to 1000. Switch(config)# lacp system-priority 1000
lacp timeout
Syntaxlacp timeout (long | short) no lacp timeout
ParameterlongSend LACP packet every 30 seconds.
shortSend LACP packet every 1 second.
DefaultDefault LACP timeout is long.
ModeInterface Configuration
Usage LACP need to send LACP packet to partner switch to check the link status. This command configure the interval of sending LACP packets. The only way to show this configuration is using "show running-config" command.
ExampleThis example shows how to configure interface fa1 lacp timeout to short. Switch(config)# interface fa1 Switch(config-if)# lacp timeout short
show lacp
Syntaxshow lacp sys-id

show lacp [<1-8>] counters

show lacp [<1-8>] (internal | neighbor) [detail]

Parameter

Default

No default values for this

command.

Mode

Privileged EXEC

Usage

Use "show lacp sys-id" command to displays the system identifier that is being used by LACP. The system identifier is made up of the LAPC system priority and the switch MAC address.

Use "show lacp counter" command to display LACP statistic

information. Use "show lacp internal" command to display local

information.

Use "show lacp neighbor" command to display remote information.

State of the specific port. These are the allowed values:

  • —Port is in an unknown state.
  • bndl—Port is attached to an aggregator and bundled with other ports.
  • susp—Port is in a suspended state; it is not attached to any aggregator.
  • hot-sby—Port is in a hot-standby state.
  • 1indiv—Port is incapable of bundling with any other port.
  • 1indep—Port is in an independent state (not bundled but able to switch data traffic. In this case, LACP is not running on the partner port).
  • down—Port is down.

State variables for the port, encoded as individual bits within a single octet with these meanings:

  • bit0—LACP_Activity
  • bit1—LACP_Timeout
  • bit2—Aggregation
  • bit3—Synchronization
  • bit4—Collecting
  • bit5—Distributing
  • bit6—Defaulted
  • bit7—Expired
ExampleThis example shows how to show LACP statistics. Switch# show lacp countersLACPDUs LACPDUsPort Sent Recv Pkts Err
Channel group 1
fa1000
fa2000

This example shows how to show LACP local information.

Switch# show lacp internal

Flags: S - Device is requesting Slow LACPDUs F - Device is requesting Fast LACPDUs A - Device is in Active mode P - Device is in

Passive mode

Channel group 1

Port Port

LACP port Admin Oper

Port Flags State Priority Key Key Number State

fa1 SA down 1 0x3e8 0x3e8 0x1 0x45

fa2 SA down 1 0x3e8 0x3e8 0x2 0x45

This example shows how to show LACP remote information.

Switch# show lacp neighbor

Flags: S - Device is sending Slow LACPDUs F - Device is sending Fast LACPDUs A - Device is in Active mode P - Device is in

Passive mode

Channel group 1 neighbors

Partner's information:

LACP portAdminOper
PortPort
Port NumberFlags StatePriorityDev IDAgekeyKey
fa1FP327680000.0000.00000s0x3e8
0x3e80x1 0x56
fa2FP327680000.0000.00000s0x3e8
0x3e80x2 0x56

show lag

Syntax show lag

Parameter

Default No default values for this command.

Mode Privileged EXEC

UsageUse “show lag” command to show current LAG load balance algorithm and members active/inactive status.
ExampleThis example shows how to show current LAG status.Switch# show lagLoad Balancing: src-dst-mac-ip.Group ID | Type | Ports----+----1 | LACP | Inactive: fa1-3 2 |----|3 |----|4 |----|5 |----|6 |----|7 |----|8 |----|

13. LLDP

clear lldp statistics

Syntaxclear lldpstatistics
DefaultThere is no default configuration for this command
ModePrivileged EXEC
UsageUse “clear lldp statistics” command to clear the LLDP RX/TX statistics.
ExampleThis example shows how to clear LLDP statistics.Switch# clear lldp statistics
Ildp
Syntax lldpno lldp
DefaultDefault is enabled
ModeGlobal Configuration
UsageUse “Ildp” command to enable LLDP RX/TX ability. The LLDP enable status is displayed by “show lldp” command.Use the no form of this command to disable the LLDP. When LLDP is disabled, the behavior of receiving LLDP PDU would be decided by “Ildp lldpdu” command.
ExampleThe following example sets LLDP enable/disable.Switch (config)# IldpSwitch# show lldpState: Enabled Timer:30 SecondsHold multiplier: 4 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: FloodingPort | State | Optional TLVs | Address----+----+----+----fa1 | RX,TX ||192.168.1.2fa2 | RX,TX | |192.168.1.2fa3 | RX,TX | |192.168.1.2fa4 | RX,TX | |192.168.1.2fa5 | RX,TX | |192.168.1.2
Ildp rx
SyntaxIldp rxno lldp rx
DefaultDefault is enabled
ModePort Configuration
Usage Use “Ildp rx” command to enable the LLDP PDU RXability. The configuration could be shown by “show lldp” command.Use the no form of this command to disable the RX ability.

Command Line Interface

User Guide

Example

This example sets port gi1 to enable LLDP TX, port gi2 to disable RX but enable TX, port gi3 to enable RX but disable TX, port gi4 to disable RX and TX.

Switch(config)# interface gi1

Switch(config-if)# lldp rx

Switch(config-if)# lldp tx
Switch(config)# interface gi2
Switch(config-if)# no lldp rx
Switch(config-if)# lldp tx
Switch(config)# interface gi3
Switch(config-if)# lldp rx
Switch(config-if)# no lldp tx
Switch(config)# interface gi4
Switch(config-if)# no lldp rx
Switch(config-if)# no lldp tx
Switch(config-if)# end
Switch# show lldp interfaces gi1-4 

State: Enabled

Timer: 30 Seconds

Hold multiplier: 4 Reinit

delay: 2 Seconds Tx delay:

2 Seconds

LLDP packet handling: Bridging

Port | State | Optional TLVs | Address
---- + ---- + ---- + ---- gi1 | RX,TX |
|192.168.1.254
gi2 | TX | 192.168.1.254
gi3 | RX | 192.168.1.254
gi4 | Disable | 192.168.1.254 

Ildp tx-interval

Syntax lldp tx-interval <5-32768> no lldp tx-interval

Parameter<5-32768>Specify the LLDP PDU TX interval in unit of second.
DefaultDefault TX interval is 30 seconds
ModeGlobal Configuration
UsageUse “lldp tx-interval” command to configure the LLDP TX interval. It should be noticed that both “lldp tx-interval” and “lldp tx-delay” affects the LLDP PDU TX time. The larger value of the two configurations decides the TX interval. The configuration could be shown by “show lldp” command.Use the no form of this command to restore the interval to default value.

Example

This example sets LLDP TX interval to 10 seconds.

Switch(config)# lldp tx-interval 10

Switch# show lldp

State: Disabled

Timer: 10 Seconds

Hold multiplier: 4 Reinit

delay: 2 Seconds Tx delay:

2 Seconds

LLDP packet handling: Flooding

Ildp reinit-delay

Syntax Ildp reinit-delay <1-10>no Ildp reinit-delay
Parameter<1-10>Specify the LLDP re-initial delay time in unit of
DefaultDefault reinitial delay is 2 seconds
ModeGlobal Configuration
UsageUse “Ildp reinit-delay” to configure the LLDP re-initial delay.This delay avoids LLDP generate too many PDU if the port is up and down frequently. The delay starts to count when the port links down. The port would not generate LLDP PDU until the delay counts to zero. The configuration could be shown by “show Ildp” command.Use the no form of this command to restore the delay to default value.
ExampleThis example sets LLDP re-initial delay to 5 seconds.Switch(config)# Ildp reinit-delay 5Switch# show IldpState: Disabled Timer:10 SecondsHold multiplier: 4 Reinit delay:5 Seconds Tx delay: 2SecondsLLDP packet handling: Flooding

Ildp holdtime-multiplier

SyntaxIldp holdtime-multiplier <2-10>no holdtime-multiplier
Parameter<2-10>Specify the LLDP hold time multiplier.
DefaultIldp holdtime-multiplier 4
ModeGlobal Configuration
UsageUse “Ildp holdtime-multiplier” command to configure the LLDP PDU hold multiplier that decides time-to-live (TTL) value sent in LLDP advertisements: TTL = (tx-interval * holdtime-multiplier). The configuration could be shown by “show lldp” command.Use the no form of this command to restore the multiplier to default value.
ExampleThis example sets LLDP hold time multiplier to 3.Switch(config)# Ildp holdtime-multiplier 3Switch# show lldpState: Disabled Timer:10 SecondsHold multiplier: 3 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: Flooding
Ildp lldpdu
SyntaxIldp lldpdu(filtering|flooding|bridging)
ParameterbridgingWhen LLDP is globally disabled, LLDP packets are bridging (bridging LLDP PDU to VLAN member ports).
filteringWhen LLDP is globally disabled, LLDP packets are filtered (deleted).
floodingWhen LLDP is globally disabled, LLDP packets are flooded (forwarded to all interfaces).
DefaultDefault LLDP PDU handling behavior when LLDP disabled is flooding
ModeGlobal Configuration

Command Line Interface

User Guide

Usage

Use "Ildp lldpdu" command to configure the LLDP PDU handling behavior when LLDP is globally disabled. It should be noticed that if LLDP is globally enabled and per port LLDP RX status is configured to disabled, the received LLDP PDU would be dropped instead of taking the global disable behavior.

The configuration could be shown by “show lldp” command.Use the no form of this command to restore the behavior to default.
ExampleThis example sets LLDP disable action to bridging.Switch(config)# lldp lldpdu bridgingSwitch# show lldpState: Enabled Timer:30 SecondsHold multiplier: 4 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: Bridging
Ildp med
SyntaxIldp medno lldp med
DefaultIldp med
ModePort Configuration
UsageUse “lldp med” to configure the LLDP MED enable status. If LLDP MED is enabled, LLDP MED capability TLV and other selected MED TLV would be attached. The configuration could be shown by “show lldp med” command.Use the no form of this command to disable the LLDP MED status.
ExampleThis example sets port gi1 to enable LLDP MED, port gi2 to disable LLDP MED.Switch(config)# interface gi1Switch(config-if)# lldp medSwitch(config)# interface gi2Switch(config-if)# no lldp medSwitch# show lldp interfaces gi1-2 medPort | Capabilities | Network Policy | Location | Inventory----+----+----+----+------gi1 | Yes | Yes | No |Nogi2 | No | Yes | No |No
Usage Use “lldp med fast-start-repeat-count” command to configure the LLDP PDU fast start TX repeat count. When port links up, it will send LLDP PDU immediately to notify link partner. The number of LLDP PDU sends when it links up depends on fast-start-repeat-count configuration. The LLDP PDU fast-start transmits in interval of one second. The fast start behavior works no matter LLDP MED is enabled or not. The configuration could be shown by “show lldp med” command.

Use the no form of this command to restore count to default.

ExampleThis example sets fast start repeat count to 10.

Switch(config)# lldp med fast-start-repeat-count 10

Switch# show lldp med

Fast Start Repeat Count: 10

lldp med network-policy voice: auto

Ildp med location

Syntaxlldp med location (coordination|civic-address|ecs-elin) ADDR no lldp med location (coordination|civic-address|ecs-elin)
Parametercoordination civic-addressecs-elinLocation type to be configured. “ecs-elin” is abbreviation of emergency call service – emergency location identifier number

ADDR

Specify the location data. Input format is hexadecimal values without colon (for example: 1234AB). For coordination location type, the length of ADDR is 16 bytes. For civic-address, the length is 6 to 160 bytes. For ecs-elin, the length is 10 to 25 bytes.

DefaultDeafult is no location data.
ModePort Configuration
UsageUse “Ildp med location” command to configure the LLDP MED location data. The “coordinate”, “civic-address”, “ecs-elin” locations are independent, so at most three location TLVs could be sent if their data are not empty. The configuration of location could be shown by “show lldp interface PORT med” command.Use the no form of this command to clear location data.
ExampleThis example sets location data for interface gi1.Switch(config)#interface gi1Switch(config-if)#Ildp med location coordinate112233445566778899AABBCCDDEEFF00Switch(config-if)#Ildp med location civic-address 112233445566Switch(config-if)#Ildp med location ecs-elin112233445566778899AASwitch#show Ildp interfaces gi1 medPort | Capabilities | Network Policy | Location | Inventory----+----+----+----+------gi1| Yes | Yes | Yes |YesPort ID: gi1Network policies: 1, 32Location:Coordinates: 112233445566778899AABBCCDDEEFF00Civic-address: 112233445566Ecs-elin: 112233445566778899AA
SyntaxIldp med network-policy <1-32> app (voice|voice-signaling|guest-voice|guest-voice-signaling|softphone-voice|video-conferencing|streaming- video|video-signaling) vlan <1-4094>vlan-type (tag|untag) priority <0-7>dscp <0-63>
no Ildp med network-policy <1-32>
Parameter<1-32>Specify the network policy index
voiceSpecify the network policy application type.
voice-signaling
guest-voice-signalingsoftphone-voice video-conferencingstreaming-video video-signaling
<1-4094>Specify the VLAN ID
tag untagSpecify the VLAN tag status
<0-7>Specify the L2 priority
<0-63>Specify the DSCP value
DefaultNo network policy is defined
ModeGlobal Configuration
UsageUse “lldp med network-policy” command to configure the LLDP MED network policy table and add a network policy entry that can be bind to ports. If LLDP MED network policy voice auto mode is enabled, “voice” type network policy can not be created since it is in auto mode. The network policy table configuration could be shown by “show lldp med” command.
Use the no form of this command to remove network policy entry of specific index. A network policy can be removed only when it is not bind to any port.

Example

This example create 2 network policies.

Switch(config)# lldp med network-policy 1 app voice-signaling vlan 2 vlan-type tag priority 3 dscp 4

Switch(config)# lldp med network-policy 32 app video-conferencing vlan 5 vlan-type tag priority 1 dscp 63 Switch# show lldp med

Fast Start Repeat Count: 10

lldp med network-policy voice: auto

Network policy 1

Application type: Voice Signaling VLAN ID: 2

tagged

Layer 2 priority: 3

DSCP: 4

Network policy 32

Application type: Conferencing VLAN ID:

5 tagged

Layer 2 priority: 1

DSCP: 63

Ildp med network-policy (Interface)

SyntaxIldp med network-policy (add|remove) <1-32>
ParameteraddAdd network policy binding for ports.
removeRemove network policy binding for ports.
<1-32>Specify the network policy index
DefaultDefault is no network policy binding to port.
ModePort Configuration
UsageUse “Ildp med network-policy” command to bind the network policy to port interface. The binded network policy of one port should be with different types. If network policy TLV is selected over a port, the binded network policies would be attached in LLDP MED PDU. The configuration of network policy binding could be shown by “show lldp med” command.

Example

This example binds network policy for interface gi1 and gi2.

Switch# show lldp med

Fast Start Repeat Count: 10

Port | Capabilities | Network Policy | Location | Inventory

+ + + + +

--

gi1 | Yes | Yes | Yes |

Yes

gi2 | Yes | Yes | Yes |

Port ID: gi1

Network policies: 1, 32

Port ID: gi2

Network policies: 1, 32

Usage Use “Ildp med network-policy voice auto” command to enable network policy voice auto mode. In voice auto mode, if network-policy TLV is selected, a voice type network policy would be attached to PDU that contents comes from voice VLAN configuration. This works for voice VLAN module to exchange voice VLAN information with link partner. If voice auto mode is enabled, user can not manually create an voice type network policy; if an voice type network policy is created, the voice auto mode can not be enabled. The configuration of network policy auto mode could be shown by “show Ildp med” command.

Use the no form of this command to disable voice auto mode.

Example This example sets network policy auto mode to enable and then disable.

Switch (config)# lldp med network-policy auto Switch# show lldp med

Fast Start Repeat Count: 10

ParameterMEDTLVMED optional TLV. Available optional TLVs are :
network-policy, location, poe-pse, inventory.
Defaultnetwork-policy TLV
ModePort Configuration
UsageUse "lldp med tlv-select" command to configure the LLDP MED TLV selection. It should be noticed that even no MED TLV is selected, MED capability TLV would be attached if LLDP MED is enable. The configuration could be shown by "show lldp med" command.Use the no form of this command to remove all selected MED TLV over the dedicated ports.
ExampleThis example sets port gi1-2 to select LLDP MED network policy, location, POE-PSE, inventory TLVs, and it sets port gi3-4 to un-select all LLDP MED TLVs.Switch(config)# interface gi1Switch(config-if)# lldp med tlv-select network-policy location inventorySwitch(config)# interface gi2 Switch(config-if)# no lldp med tlv-select Switch# show lldp interfaces gi1-2 medPort | Capabilities | Network Policy | Location | Inventory----+----+----+----+------gi1 | Yes | Yes | Yes |Yesgi2 | Yes | No | No |No
Ildp tlv-select
SyntaxIldp tlv-select TLV[TLV] [TLV] [TLV] [TLV] [TLV] [TLV] [TLV] no lldp tlv-select
ParameterTLVSpecify the selected optional TLV. Available optional TLVs are : sys-name (system name),sys-desc (system description), sys-cap (system capability), mac-phy (802.3 MAC-PHY), lag(802.3 link aggregation), max- frame-size (802.3 max frame size), and management-gement address).
DefaultDefault is no selected optional TLV.
ModePort Configuration
UsageUse “lldp tlv-select” command to attach selected TLV in PDU. The configuration could be shown by “show lldp” command.Use the no form of this command to remove all selected TLV.
ExampleThis example selects system name, system description, system capability,802.3 MAC-PHY, 802.3 link aggregation, 802.3 max frame size, and management address TLVs for interface gi1 and gi3.Switch(config)# interface range gi 1,3Switch(config-if-range)# lldp tlv-select port-desc sys-name sys-desc sys-cap mac-phy lag max-frame-size management-addr Switch(config-if-range)# end Switch# show lldp interfaces gi1,3State: Disabled Timer:10 SecondsHold multiplier: 3 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: FloodingPort | State | Optional TLVs | Address----+----+----+----gi1 | RX,TX | PD, SN,SD, SC |192.168.1.254gi3 | RX,TX | PD, SN, SD, SC |192.168.1.254Port ID: gi1802.3 optional TLVs: 802.3-mac-phy, 802.3-lag, 802.3-max- frame-size,management-addr802.1 optional TLVsPVID: EnabledPort ID: gi3802.3 optional TLVs: 802.3-mac-phy, 802.3-lag, 802.3-max- frame-size,management-addr802.1 optional TLVsPVID: Enabled

Ildp tlv-select pvid

Syntaxlldp tlv-select pvid (disable|enable) no lldp tlv-select pvid
ParameterdisableDisable LLDP 802.1 PVID TLV attach state
enableEnable LLDP 802.1 PVID TLV attach state
DefaultDefault is enabled
ModePort Configuration
UsageUse “lldp tlv-select pvid” command to configure the 802.1 PVID TLV attach enable status. The configuration could be shown by “show lldp”command. Use thenoform of this command to restore the pvidto default value.
ExampleThis example sets port gi1 PVID TLV attaches status to disable and port gi2 to enable.Switch(config)#interface gi1Switch(config-if)#lldp tlv-select pvid disableSwitch(config-if)#interface gi2Switch(config-if)#lldp tlv-select pvid enableSwitch#show lldp interfaces gi1,gi2State: Disabled Timer:10 SecondsHold multiplier: 3 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: FloodingPort | State | Optional TLVs | Address----+----+----+----gi1 | RX,TX ||192.168.1.254gi2 | RX,TX | |192.168.1.254Port ID: gi1802.3 optional TLVs:802.1 optional TLVsPVID: DisabledPort ID: gi2802.3 optional TLVs:802.1 optional TLVsPVID: Enabled

Ildp tlv-select vlan-name

Syntax

Ildp tlv-select vlan-name (add|remove) VLAN-

LIST

Command Line Interface
User Guide

Parameteradd VLAN-LISTAdd VLAN list for LLDP 802.1 VLAN-NAME TLV on the specific interface. The configured ports should be member of all the specified VLANs or the VLAN-
remove VLAN- LISTRemove VLAN list of LLDP 802.1 VLAN-NAME TLV from interface.
DefaultDefault is no VLAN added.
ModePort Configuration
UsageUse “lldp tlv-select vlan-name” command to add or remove VLAN list for802.1 VLAN-NAME TLV. The configuration could be shown by “show lldp” command.
ExampleThis example add VLAN 100 to VLAN-NAME TLV for port gi10.Switch(config)# vlan 100Switch(config-vlan)# exitSwitch(config)# interface gi1Switch(config-if)# switchport trunk allowed vlan add all Switch(config-if)# lldp tlv-select vlan-name add 100 Switch(config-if)# endSwitch# show lldp interfaces gi1State: Enabled Timer:30 SecondsHold multiplier: 4 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: FloodingPort | State | Optional TLVs | Address----+----+----+----gi1 | RX,TX ||192.168.1.2Port ID: gi1802.3 optional TLVs:802.1 optional TLVsPVID: EnabledVLANs: 100

Ildp tx

Syntax

Default

Ildp tx

no lldp

tx

Default is enabled

ModePort Configuration
UsageUse “lldp tx” command to enable the LLDP PDU TX ability. The configuration could be shown by “show lldp”command. Use thenoform of this command to disable the TX ability.
ExampleThis example sets port gi1 to enable LLDP TX, port gi2 to disable RX but enable TX, port gi3 to enable RX but disable TX, port gi4 to disable RX and TX.Switch(config)#interface gi1Switch(config-if)#lldp rxSwitch(config-if)#lldp txSwitch(config)#interface gi2Switch(config-if)#no lldp rxSwitch(config-if)#lldp txSwitch(config)#interface gi3Switch(config-if)#lldp rxSwitch(config-if)#no lldp txSwitch(config)#interface gi4Switch(config-if)#no lldp rxSwitch(config-if)#no lldp txSwitch(config-if)#endSwitch#show lldp interfaces gi1-4State: Enabled Timer:30 SecondsHold multiplier: 4 Reinit delay:2 Seconds Tx delay: 2SecondsLLDP packet handling: BridgingPort | State | Optional TLVs | Address----+----+----+----gi1 | RX,TX ||192.168.1.254gi2 | TX | |192.168.1.254gi3 | RX | |192.168.1.254gi4 | Disable | |192.168.1.254

Ildp tx-delay

Syntax lldp tx-delay <1-8192> no lldp tx-delay

Parameter<1-8192>Specify the LLDP tx delay in unit of seconds.
DefaultDefault TX delay is 2 seconds
ModeGlobal Configuration
UsageUse "lldp tx-delay" command to configure the delay in seconds between successive LLDP frame transmissions. The delay starts to count in any case LLDP PDU is sent such as by LLDP PDU advertise routine, LLDP PDU content change, port link up, etc. The configuration could be shown by "show lldp" command.Use the no form of this command to restore the delay to default value.
ExampleThis example sets LLDP PDU TX delay to 10 seconds.Switch(config)# lldp tx-delay 10Switch# show lldpState: Disabled Timer:10 SecondsHold multiplier: 4 Reinit delay:2 Seconds Tx delay: 10SecondsLLDP packet handling: Flooding
show lldp
Syntaxshow lldpshow lldp interfaceIF_NMLPORTS
ParameterIF_NMLPORTS Specify the ports to display information
DefaultThis command has no default value.
ModePrivileged EXEC
UsageUse "show lldp" and "show lldp interface" commands to display LLDP global information including LLDP enable status, LLDP PDU TX interval, hold time multiplier, re-initial delay, TX delay, and LLDP packet handling when LLDP is disabled. The per port information displayed includes port LLDP RX/TX enable status, selected TLV to TX and IP address. The abbreviations in optional TLVs are: port description (PD), system name (SN), system description (SD), and system capability (SC).

Example

This example displays lldp information of port gi1 and gi2 Switch# show lldp interfaces gi1, gi2

State: Disabled

Timer: 30 Seconds

Hold multiplier: 4 Reinit

delay: 2 Seconds Tx delay:

2 Seconds

LLDP packet handling: Flooding

Port | State | Optional TLVs | Address

SN, SD, SC |192.168.1.254 gi1 | RX,TX |

|192.168.1.254

Port ID: gi1

802.3 optional TLVs: 802.3-mac-phy, 802.3-lag, 802.3-max-frame-size,

management-addr

802.1 optional TLVs

PVID: Enabled

Port ID: gi2

802.3 optional TLVs:

802.1 optional TLVs

PVID: Enabled

show lldp local-device

Syntaxshow lldp local-deviceshow lldp interfaces IF_NMLPORTS local-device
ParameterIF_NMLPORTS Specify the ports to display information
DefaultThere is no default configuration for this command
ModePrivileged EXEC
UsageUse “show lldp local-device” command to show the local configuration of LLDP PDU. By the commands, a user can view the contents of LLDP/ LLDP-MED TLVs that would be attached in LLDP PDU.
ExampleThis example displays the local device information.
Switch# show lldp local-device
LLDP Local Device Information: ChassisType : Mac Address Chassis ID :00:12:12:12:12System Name : Switch121212System Description :System Capabilities Support : Bridge SystemCapabilities Enable : BridgeManagement Address : 192.168.1.254(IPv4)

Switch121212(config)# show lldp interfaces gi1 local-device

Device ID: 00:12:12:12:12:12

Port ID: gi1

System Name: Switch121212

Capabilities: Bridge System

description:

Port description:

Management address: 192.168.1.254

Time To Live: 120

802.3 MAC/PHY Configur/Status

Auto-negotiation support: Supported Auto-

negotiation status: Enabled

Auto-negotiation Advertised Capabilities: 10BASE-T

half duplex, 10BASE-T

full duplex, 100BASE-TX half duplex,

100BASE-TX full duplex

Operational MAU type: Other or unknown

802.3 Link Aggregation

Aggregation capability: Capable of being aggregated

Aggregation status: Not currently in aggregation Aggregation port

ID: 0

802.3 Maximum Frame Size: 1522

802.1 PVID: 1

LLDP-MED capabilities: Capabilities, Network Policy, Location, Extended PSE, Inventory

LLDP-MED Device type: Network Connectivity

LLDP-MED Network policy

Application type: Voice Signaling Flags:

Unknown Policy

VLAN ID: 2

Layer 2 priority: 3

DSCP: 4

LLDP-MED Network policy

Application type: Conferencing

Flags: Unknown Policy

VLAN ID: 5

Layer 2 priority: 1

DSCP: 63

Hardware revision: 1123

Firmware revision: 2.5.0-beta.32801

Software revision: 2.5.0-beta.32801 Serial

number: abc

Manufacturer Name:

Model name: GS2018PS2

4GE Asset ID:

LLDP-MED Location

Coordinates: 11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00

Civic-address: 11:22:33:44:55:66

Ecs-elin: 11:22:33:44:55:66:77:88:99:AA

show lldp med

Syntax show lldp med

show lldp interfaces IF_NMLPORTS med

Parameter

IF_NMLPORTS

Specify the ports to display information

DefaultThere is no default configuration for this command
ModePrivileged EXEC
UsageUse “show lldp med” command to display the LLDP MED configuration information.
ExampleThis example displays the LLDP MED information.
Switch# show lldp med
Fast Start Repeat Count: 10
lldp med network-policy voice: manual
Network policy 1
Application type: Voice Signaling VLAN ID: 2 tagged
Layer 2 priority: 3
DSCP: 4
Network policy 32
Application type: Conferencing VLAN ID: 5 tagged
Layer 2 priority: 1
DSCP: 63
Port | Capabilities | Network Policy | Location | Inventory
+ - + - + - + - + - -
--
gi1 | Yes | Yes | Yes |
Yesgi2 | Yes | Yes | Yes |
Yesgi3 | Yes | No | No |
Nogi4 | Yes | No | No |
Nogi5 | No | Yes | No |
Nogi6 | No | Yes | No |
Nogi7 | No | Yes | No |
Nogi8 | No | Yes | No |
Nogi9 | Yes | Yes | No |
Nogi10 | Yes | Yes | No |
Nogi11 | Yes | Yes | No |
No
Nogi12|Yes |Yes |No |
gi13|Yes |Yes |No |
Nogi14|Yes |Yes |No |
Nogi15|Yes |Yes |No |
Nogi16|Yes |Yes |No |
Nogi17|Yes |Yes |No |
Nogi18|Yes |Yes |No |
Nogi19|Yes |Yes |No |
Nogi20|Yes |Yes |No |
Nogi21|Yes |Yes |No |
Nogi22|Yes |Yes |No |
Nogi23|Yes |Yes |No |
Nogi24|Yes |Yes |No |
Nogi25|Yes |Yes |No |
Nogi26|Yes |Yes |No |
Nogi27|Yes |Yes |No |
Nogi28|Yes |Yes |No |

Switch# show lldp interfaces gi1 med

Port | Capabilities | Network Policy | Location | Inventory

--- + --- + --- + --- + ---

-- gi1 | Yes | Yes | Yes |

Yes

Port ID: gi1

Network policies: 1, 32

Location:

Coordinates: 112233445566778899AABBCCDDEEFF00

Civic-address: 112233445566 Ecs-

elin: 112233445566778899AA

Switch121212(config)#

show lldp neighbor

Syntax

show lldp neighbor

show lldp interfaces IF_NMLPORTS

neighbor

ParameterIF_NMLPORTS Specify the ports to display information
DefaultThere is no default configuration for this command
ModePrivileged EXEC
UsageUse “show lldp neighbor” command to display the received neighbor LLDP PDU information. When LLDP PDU is received on LLDP RX enable ports, system would store the PDU information in database until time to live of the PDU counts down to zero.
ExampleThis example displays the neighbor information.Switch# show lldp neighborPort | Device ID | Port ID | SysName | Capabilities | TTL--- + ----+ ----+ ----+ ----+ ----+ ----+ ----gi3 | 00:12:12:12:12:12 | gi1 |Switch121212 | Bridge | 111gi11 | TREEBASE |00:1A:4D:26:EB:E8 |TREEBASE | Station Only | 33Switch121212(config)# show lldp interfaces gi3 neighbor Device ID:00:12:12:12:12:12Port ID: gi1System Name: Switch121212Capabilities: Bridge System description:Port description:Management address: 192.168.1.254 TimeTo Live: 98802.3 MAC/PHY Configur/StatusAuto-negotiation support: Supported Auto-negotiation status: EnabledAuto-negotiation Advertised Capabilities: 10BASE-T half duplex, 10BASE-T full duplex, 100BASE-TX half duplex, 100BASE-TX full duplexOperational MAU type: 100BASE-TX full duplex mode802.3 Link AggregationAggregation capability: Capable of being aggregated Aggregation status: Not currently in aggregation Aggregation port ID: 0802.3 Maximum Frame Size: 1522802.1 PVID: 1LLDP-MED capabilities: Capabilities, Network Policy, Location, Extended PSE, InventoryLLDP-MED Device type: Network Connectivity LLDP-MED Network policyApplication type: Voice Signaling

Flags: Unknown Policy

VLAN ID: 2

Layer 2 priority: 3

DSCP: 4

LLDP-MED Network policy

Application type: Conferencing

Flags: Unknown Policy

VLAN ID: 5

Layer 2 priority: 1

DSCP: 63

LLDP-MED Power over Ethernet Device

Type: Power Sourcing Entity Power

Source: Primary Power Source Power

priority: Low

Power value: 13.0 Watts

Hardware revision: 1123

Firmware revision: 2.5.0-beta.32801

Software revision: 2.5.0-beta.32801 Serial

number: abc

Manufacturer Name:

Model name: GS2018PS2

4GE Asset ID:

LLDP-MED Location

Coordinates: 11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00

Civic-address: 11:22:33:44:55:66

Ecs-elin: 11:22:33:44:55:66:77:88:99:AA

show lldp statistics

Syntaxshow lldp statisticsshow lldp interfaces IF_NMLPORTS statistics
ParameterIF_NMLPORTS Specify the ports to display information
DefaultThere is no default configuration for this command
ModePrivileged EXEC
UsageUse “show lldp statistics” command to display the LLDP RX/TX statistics.
ExampleThis example display the LLDP statistics.
Switch# show lldp statistics
LLDP Global Statistics:Insertions : 3Deletions : 0Drops : 0Age Outs : 1
| TX Frames | RX Frames | RX
TLVs | RX AgeoutsPort | Total | Total | Discarded | Errors | Discarded |Unrecognized | Total
+----+----+----+----+----+----
gi1|50|0|0 |
0|0
gi2|0|0|0 |
0|0
gi3|0|50|0 |
0|1
gi4|0|0|0 |
0|0
gi5|0|0|0 |
0|0
gi6|0|0|0 |
0|0
gi7|0|0|0 |
0|0
gi8|0|0|0 |
0|0
gi9|0|0|0 |
0|0
gi10|0|0|0 |
0|0
gi11|3377|10129|0 |
0|0
gi12|0|0|0 |
0|0
gi13|0|0|0 |
0|0
gi14|0|0|0 |
0|0
gi15|0|0|0 |
0|0
gi16|0|0|0 |
0|0
gi17|0|0|0 |
0|0
gi18|0|0|0 |
0|0
gi19|0|0|0 |
0|0
gi20|0|0|0 |
0|0
gi21|0|0|0 |
0|0
gi22|0|0|0 |
0|0
gi23|0|0|0 |
0|0
gi24|0|0|0 |
0|0
gi25|3377|0|0 |
0|0
gi26|3377|0|0 |
0|0
gi27|0|0|0 |
0|0
gi28|0|0|0 |
0|0

Switch121212(config)# show lldp interfaces gi1 statistics

LLDP Port Statistics: | TX Frames | RX Frames | RX TLVs |

RX Ageouts

Port | Total | Total | Discarded | Errors | Discarded | Unrecognized | Total

+ + + + +

+----+---- gi1 | 51 | 0 | 0 | 0 | 0 | 0 | 0

show lldp tlv-overloading

Syntaxshow lldp interfaces IF_NMLPORTS tIvs-overloading
ParameterIF_NMLPORTSSpecify the ports to display information
DefaultThere is no default configuration for this command
ModePrivileged EXEC
UsageThe LLDP PDU is composed by TLVs and selected number TLVs may compose a large PDU that the system can not handle. The maximum PDU length is to take the smaller number of jumbo frame size minus 30 bytes (30 bytes kept for header) or 1488 bytes.Use “show lldp tIv-overloading” command to display the length of LLDP TLVs and if the TLVs overload the PDU length. The TLVs with status marked “overload” would not be transmitted.

Example This example displays the LLDP TLVs overloading status of port gi1.

Switch# show lldp interfaces gi1 tlvs-overloading

gi1:

TLVs GroupBytesStatus
+----+----
Mandatory |21 |Transmitted LLDP-
MED Capabilities |9 |Transmitted LLDP-
MED Location |53 | Transmitted
LLDP-MED Network Policies |20 |Transmitted
LLDP-MED POE |9 |Transmitted
802.3 |30 |Transmitted
Optional |38 |Transmitted
LLDP-MED Inventory |97 |Transmitted
802.1 |8 |Transmitted

Total: 285 bytes

Left: 1203 bytes

Example The following example shows the global logging configuration.

Switch# show logging Logging

service is enabled

TARGET | STATUS | Server (PORT) | FACILITY | LOG LEVEL

Cudy GS2018PS2 - Syntax - 1

buffered | enabled |

|emerg, alert, crit, error, warning, notice

console | enabled |

|emerg, alert, crit, error, warning, notice

The following table describes the significant fields shown in the example:

FieldDescription
TARGETThe destinations where the logging messages are stored.
STATUSThe status of logging destinations.
Server (PORT)Server address and port number for the remote logging.
FACILITYThe facility of the log messages.
LOG LEVELThe severity level of the log messages.

The following example shows the log messages stored in the RAM.

Switch# show logging buffered

Log messages in buffered

NO.| Timestamp | Category | Severity | Message

1|Jan 01 2000 08:14:47| AAA| notice|

New console connection for user admin, source async

ACCEPTED

2|Jan 01 2000 08:03:12| AAA| notice|

New console connection for user admin, source async

ACCEPTED

3|Jan 01 2000 08:01:13| System| notice| System

Startup!

4|Jan 01 2000 08:01:13| System| notice| Logging

is enabled

The following table describes the significant fields shown in the example:

FieldDescription
NOThe number of log entry.
TimestampTime when the message was generated.

Command Line Interface

User Guide

CategoryThe category of the message.
SeverityThe severity level of the messages.
MessageThe message content.

14. Logging

clear logging

Syntaxclear logging (buffered|file)
ParameterbufferedClear the log messages stored in the RAM.
fileClear the log messages stored in the Flash.
DefaultN/A
ModePrivileged EXEC
UsageTo clear the log messages from the internal logging buffer and flash, use the commandclear loggingin the Privileged EXEC mode.
ExampleThe following example clear the log messages stored in RAM and Flash.Switch#clear logging bufferedSwitch#clear logging file
logging
Syntax loggingno logging
Parameter N/A
DefaultLogging service is enabled.
ModeGlobal Configuration

Usage

To enable logging service on the switch, use the command logging in the Global Configuration mode. Otherwise, use the no form of the command to disable the logging service on the switch.

The status of global logging server is available from the command show

logging in the Privileged EXEC mode. When the logging service is enabled, logging on and off at each destination rule can be individually configured by the commandlogging console,logging buffered,logging file, andlogging hostin the Global Configuration mode. If the logging service is disabled, no messages will be sent to these destinations.
ExampleThe following example disables and enables the logging service on the switch.Switch(config)# no loggingSwitch(config)# logging
logging host
Syntaxlogging host(ip-addr|hostname)[facility facility][port port][severity sev]no logging host(ip-addr|hostname)
Parameteripv4-addrIPv4 address of the remote logging server.
hostnameHostname of the remote logging server.
facility facilitySpecify the facility of the logging messages. It can be on of the following value: local0, local1, local2, local3, local4, local5, local6, and local7. The default value of facility is local7.
port portSpecify the port number of the remote logging server.The valid range is from 0 to 65535, and the default value is 512.
severity sevSpecify the minimum severity of the logging messages. The valid range is from 0 to 7, and the number 0 to 7 represents emerg, alert, critical, error, warning, notice, info, and debug individually. The default value of minimum severity level is 5 (emerg, alert, crit, error,
DefaultNo remote logging destination is configured.
ModeGlobal Configuration

Usage To define the logging server, use the command logging host to add the remote logging server in the Global Configuration mode. Otherwise, use the command no logging host to remove the remote logging rules.

For the host name configuration, logging service would try translating the host name to IP address directly. Add the logging host would be failed on the failure of host name translating.
ExampleThe following example adds the remote logging rules by IP and Hostname.

Switch(config)# logging host 1.2.3.4

Switch(config)# logging host SYSLOG

logging severity

Syntaxlogging (buffered|console|file) [severity sev]no logging (buffered|console|file)
Parameter buffered Log messages to RAM.
console Log messages to console buffer.
file Log messages to Flash.
severity sev Specify the minimum severity of the logging messages.The valid range is from 0 to 7, and thenumber 0 to 7 represents emerg, alert,critical, error, warning, notice, info, and debugindividually. The default minimum severity ofthelogging severityconfiguration is 5(emerg, alert, crit, error, warning, notice).
DefaultLogging to buffered and console is enabled, and the default minimum severity level is 5 (emerg, alert, crit, error, warning, notice).
ModeGlobal Configuration
Usage To set the minimum severity for the messages that are logged to RAM, console, or Flash, use the command logging severity in the Global Configuration mode. Use the no form of the command to remove the mechanism of logging to RAM, console, or Flash individually.
ExampleThe following example sets the minimum severity level of logging to RAM and Flash as debugging.

Switch(config)# logging buffered 7 Switch(config)# logging flash 7

show logging

Syntaxshow logging [buffered|file]
ParameterbufferedDisplay the log messages stored in the RAM.
fileDisplay the log messages stored in the Flash.
DefaultN/A

Mode

Previledged EXEC

Usage

To display the global logging configuration, and the logging messages stored in the RAM and Flash, use the command show logging in the Privileged EXEC mode.

Example The following example shows the global logging configuration.

Switch# show logging Logging

service is enabled

TARGET | STATUS | Server (PORT) | FACILITY | LOG LEVEL

buffered | enabled | | |emerg, alert, crit, error, warning, notice console | enabled | | |emerg, alert, crit, error, warning, notice

The following table describes the significant fields shown in the example:

FieldDescription
TARGETThe destinations where the logging messages are stored.
STATUSThe status of logging destinations.
Server (PORT)Server address and port number for the remote logging.
FACILITYThe facility of the log messages.
LOG LEVELThe severity level of the log messages.

The following example shows the log messages stored in the RAM.

Switch# show logging buffered

Log messages in buffered

NO.| Timestamp | Category | Severity | Message

1|Jan 01 2000 08:14:47| AAA| notice| New console connection for user admin, source async

2|Jan 01 2000 08:03:12| ACCEPTED AAA| notice|

New console connection for user admin, source async ACCEPTED

3|Jan 01 2000 08:01:13| System| notice| System

Startup! 4|Jan 01 2000 08:01:13| System| notice| Logging is enabled

The following table describes the significant fields shown in the example:

Command Line Interface

User Guide

FieldDescription
NOThe number of log entry.
TimestampTime when the message was generated.
CategoryThe category of the message.
SeverityThe severity level of the messages.
MessageThe message content.

15. MAC Address Table

clear mac address-table

Syntaxclear mac address-table dynamic [interfaces IF_PORTS|vlan vlan-id]
Parameter interfacesIF_PORTSDelete all dynamic addresses learned on the specific interface.
VLAN.vlan vlan-id Delete all source addresses learned on the specific
DefaultN/A
ModePrivileged EXEC
Usage To clear the dynamic (learned) MAC entries from the MAC address table, the specific interface, or the specific VLAN, use the command clear mac address-table in the Privileged EXEC mode.
ExampleThe following example clears the learned MAC addresses on the interface gi1.
Switch# clear mac address-table dynamic interfaces gi1

mac address-table aging-time

Syntaxmac access-table aging-timeseconds
ParametersecondsThe time in seconds that an entry remains in the MAC address table. Its valid range is from 10 to 630 seconds, and the default value is 300 seconds.
DefaultThe default aging time is 300 seconds.
ModeGlobal Configuration
UsageTo set the aging time of the MAC address table, use the command mac address-table aging-time in the Global Configuration mode.
ExampleThe following example set the aging time to 500 seconds.Switch(config)# mac address-table aging-time 500
mac address-table static
Syntaxmac address-table static mac-addr vlan vlan-id interfaces IF_PORTS mac address-table static mac-addr vlan vlan-id drop no mac address-table static mac-addr vlan vlan-id
Parametermac-addrMAC address.
vlan vlan-idSpecify the VLAN ID for the interface.
Interface IF_PORTSSpecify the interface ID or a list of interface IDs.
dropDrop the packets with the specified source or destination unicast MAC address.
DefaultNo static addresses are configured
ModeGlobal Configuration
Usage To add a static address to the MAC address table, use the command mac address-table static in the Global Configuration mode. For the unicast MAC address filtering, use the command mac address-table static with parameter drop to drop the packets with the specified source or destination unist MAC address. To delete the static entry from the MAC address table, use the no form of the command.
ExampleThe following example adds a static address into MAC address table.Switch# mac address-table static 00:11:22:33:44:55 vlan 1 interfaces fa5The following example adds a rule of unist address filtering into MAC address table.Switch# mac address-table static 00:11:22:33:44:55 vlan 1 drop

show mac address-table

Syntaxshow mac address-table [dynamic|static] [interface IF_PORTS] [vlan vlan-id]
show mac address-table [mac-addr] [vlan vlan-id]
ParameterdynamicDisplay only dynamic MAC addresses
staticDisplay only static MAC addresses
InterfaceIF_PORTSDisplay the MAC addresses entries for a specific interface.
vlan vlan-idDisplay the MAC address entries for a specific VLAN.
mac-addrDisplay entries for a specific MAC address
DefaultN/A
ModePrivileged EXEC
UsageTo show the entry in the MAC address table, use the command show mac address-table in the Privileged EXEC mode.

Example

The following example displays the entire MAC address table.

Switch# show mac address-table VID | MAC Address | Type | Ports
-+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
1 | DE:AD:BE:EF:01:02 | Management | CPU
1 | 00:01:02:03:04:05 | Static | All
00:11:22:33:44:55 | Static | gi1
| 1C:E6:C7:8F:10:02 | Dynamic | fa3
1 | AA:BB:CC:DD:EE:FF | Static | All
1 | DE:AD:BE:EF:01:0C | Dynamic | gi1

Total number of entries: 6 Switch#

The following example displays the static MAC address configuration for the interface fa1.

Switch# show mac address-table static interfaces fa1 VID | MAC
AddressTypePorts
+----+----+----
1 | 00:01:02:03:04:05 | Filtering | All
1 | AA:BB:CC:DD:EE:FF | Filtering | All

Total number of entries: 2 Switch#

The following example displays address table entries containing the specified MAC address.

Switch# show mac address-table 00:11:22:33:44:55 vlan 100 VID |

MAC Address | Type | Ports

100 | 00:11:22:33:44:55 | Static | gi1

Total number of entries: 1

show mac address-table counters

Syntaxshow mac address-table counters
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo display the total entries in the MAC addrss table, use the command show mac address-table counters in the Privilieged EXEC mode.
ExampleThe following example display numbers of addresses in the address table.Switch# show mac address-table countersTotal number of entries: 5

show mac address-table aging-time

Syntaxshow mac address-table aging-time
Parameter N/A
DefaultN/A
ModePrivileged EXEC

Usage

To show MAC address aging time, use the command show mac

address-

table aging-time in the Privilieged EXEC mode.

ExampleThe following example displays aging time for the MAC address table.
Switch# show mac address-table aging-timeMac Address Table aging time: 300 sec

16. MAC VLAN

vlan mac-vlan group (Global)

Syntaxvlan mac-vlan group <1-2147483647>mac-address mask<9-48>no vlan mac-vlan group mac-address mask <9-48>
<1-2147483647>Specify the group ID
Mac-addressSpecify the MAC address to be mapped.
<9-48>Specify the mask length of MAC address.
DefaultNo MAC Groups are configured.
ModeGlobal Configuration
UsageUse the “vlan mac-vlan group” command to create MAC address group.Use the no form of this command to delete specify group.
ExampleThe following example shows how to create a MAC group with group ID 3.Switch(config)#vlan mac-vlan group 333 22:33:44:55:66:77 mask 48

vlan mac-vlan group (Interface)

Syntaxvlan mac-vlan group <1- 2147483647> vlan <1- 4094> no vlan mac-vlan [group <1- 2147483647>]
<1-2147483647>Specify the group ID. (optional in no form) Delete all mapping group if not specify.

<1-4094>

Specify the VLAN ID to give to match

DefaultNo mappings are configured.
ModeInterface Configuration
UsageUse the “vlan mac-vlan group” to create mapping of group and VLAN ID of an interface.Use thenoform of this command to delete mapping.
ExampleThe following example shows how to mapping group id 333 to VLAN 100 on interface fa1.Switch(config)# Interface fa1Switch(config-if)#vlan mac-vlan group 333 VLAN 100

show vlan mac-vlan groups

Syntaxshow vlan mac-vlan groups
DefaultN/A
ModePrivileged EXEC
UsageUse the show vlan mac-vlan groups command to display mac groups configuration
ExampleThis following example shows how to display mac group.
Switch# show vlan mac-vlan groupsMac Address Mask Group Id
22:33:44:55:66:77 48 22244:55:66:77:88:99 48 33388:99:00:aa:bb:cc 40 44488:99:00:ab:bb:10 48 111

show vlan mac-vlan interfaces

Syntaxshow vlan mac-vlan [interfacesIF_PORTS]
ParameterIF_PORTS(Optional) Specify interfaces mac vlan to display.Display all ports if not specify.
DefaultN/A
ModePrivileged EXEC
UsageUse the show vlan mac-vlan interface command in EXEC mode to displaythe mac-vlan interfaces setting
ExampleThe following example shows how to display the MAC-Based VLAN interfaces settingSwitch# show vlan mac-vlan interfaces fa1Port fa1 :Mac based VLANs:Group ID Vlan ID---- ----333 444444 1

17. Management ACL

management access-list

Syntaxmanagement access-list NAMEno management access-listNAME
ParameterNAMEThe name of management
DefaultNo management ACL is configured.
ModeGlobal Configuration
UsageUse the management access-list command to create a management access list and to enter management access-list configuration mode. The name of ACL must be unique that cannot have same name with other management ACL. Use the no form of this command to delete
ExampleThe following example shows how to add a management ACL with name “test”Switch(config)# management access-list test

management access-class

Syntaxmanagement access-classNAMEno management access-class
ParameterNAMEThe name of management
DefaultDefault is no management ACL restrictions
ModeGlobal Configuration
UsageUse the management access-class command to activate a management ACL. Use the no form of this command to delete
ExampleThe following example shows how to add a management ACL with name “test”Switch(config)# management access-list test

deny

Syntax [sequence <1-65535>] deny interfaces

IF PORTS service

(all|http|https|snmp|ssh|telnet)

[sequence <1-65535>] deny ip A.B.C.D/A.B.C.D interfaces IF_PORTS

service (all|http|https|snmp|ssh|telnet)

[sequence <1-65535>] deny ipv6 X:X::X:X/<0-128> interfaces IF_PORTS

service (all|http|https|snmp|ssh|telnet)

Parameter <1-65535>

(Optional) Specify sequence index of ACL

of an entry in ACL. If not specified, the switch assigns a number from 1 in ascending order.
interfaces IF_PORTSSpecify the interface ID or a list of interface IDs.
ip A.B.C.D/A.B.C.DSpecify the source IP address and mask of packet.
ipv6 X:X::X:X/<0-128>Specify the source IPv6 address and prefix length of packet.
(all|http|https|snmp|ssh|telnet)Specify the type of services.
DefaultNo rules are configured.
ModeManagement Access-List Configuration
UsageUse the deny command to add deny rules that drop those packets hit the rule.
ExampleThe following example shows how to add a deny rule to drop all types of services packets that source ip is 1.1.1.1 from interface gi1.Switch(config)# management access-list testSwitch(config-macl)# sequence 1 deny ip1.1.1.1/255.255.255.255 interfaces gi1 service all
permit
Syntax[sequence <1-65535>] permit interfaces IF_PORTS service (all|http|https|snmp|ssh|telnet)[sequence <1-65535>] permit ip A.B.C.D/A.B.C.D interfaces IF_PORTSService (all|http|https|snmp|ssh|telnet)[sequence <1-65535>] permit ipv6 X:X::X:X/<0-128> interfacesIF_PORTS service (all|http|https|snmp|ssh|telnet)
Parameter<1-65535>(Optional) Specify sequence index of ACLentry, the sequence index represent the priority of an entry in ACL. If not specified, the switchassigns a number from 1 in ascending order.
interfaces IF_PORTSSpecify the interface ID or a list of interface IDs.

Command Line Interface
User Guide

ip A.B.C.D/A.B.C.DSpecify the source IP address and mask of packet.
ipv6 X:X::X:X/<0-128>Specify the source IPv6 address and prefix length of packet.
(all|http|https|snmp|ssh|telnet)Specify the type of services.
DefaultNo rules are configured.
ModeManagement Access-ListConfiguration
UsageUse the permit command to add permit rules that bypass those packets hit the rule.
ExampleThe following example shows how to add a permit rule to bypass http service packets that source ip is 2.2.2.2 from interface gi1.Switch(config)# management access-list testSwitch(config-macl)# sequence 2 permit ip2.2.2.2/255.255.255.255 interfaces gi1 service http
no sequence
Syntaxno sequence <1-65535>
Parameter<1-65535>Specify sequence index of
DefaultNo rules are configured.
ModeManagement Access-ListConfiguration
UsageUse the no sequence command to delete an entry in management ACL.
ExampleThe following example shows how to delete an entry.Switch(config)# management access-list testSwitch(config-macl)# sequence 10 deny interfaces gi1 service allSwitch(config-macl)# no sequence 10

show management access-class

Syntax

show management access-class

Parameter

DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show management access-class command to show the active management access-list.
ExampleThe example shows how to show management access-classSwitch# show management access-classManagement access-class is enabled, using access-list test

show management access-list

Syntaxshow management access-list [NAME]
ParameterNAMESpecify the name of management ACL to displayed
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show management access-list command to show management ACL.
ExampleThe example shows how to show management access-listSwitch#Switch# show managementaccess-list 1 management access-list iscreatedtest----sequence 1 deny ip 1.1.1.1/255.255.255.255 interfaces gi1 service all! (Note: all other access implicitly denied)

18. Mirror

mirror session destination interface

mirror session <1-4> destination interface IF_NMLPORT [allowingress]

Command Line Interface

User Guide

no mirror session <1-4> destination interface IF_NMLPORT no mirror session (<1-4> | all)

<1-4>Specify the mirror session to configure
IF_NMLPORTSpecify the SPAN destination. A destination must be a physical port
allow-ingressEnable ingress traffic forwarding.
DefaultNo monitor sessions are configured.
ModeGlobal Configuration
UsageUse the “mirror session destination interface” command to start a destination interface of a port mirror session.
Use the no form of this command to stop a destination interface of a port mirroring session.
Use the “no mirror session” command to disable all mirror sessions or specific mirror session.
ExampleThe following example shows how to create a local session 1 to monitor both sent and received traffic on source port fa1.
Switch(config)# mirror session 1 destination interface fa1Switch# show mirror session 1Session 1 Configuration Source RXPort : fa2-5 SourceTX Port : fa2-5Destination port : fa1 IngressState: disabled

mirror session source interface

Syntaxmirror session <1-4> source interfaces IF_PORTS (both | rx | tx) no mirror session <1-4> source interfaces IF_PORTS (both | rx | tx) no mirror session (<1-4> | all)
<1-4>Specify the mirror session to configure
IF_PORTSSpecify the source interface, Valid interfaces include physical ports and port channels.
bothMirror tx and rx direction
rxMirror rx direction only
txMirror tx direction only
DefaultNo monitor sessions are configured.
ModeGlobal Configuration
UsageUse the “mirror session source interface” command to start a port mirror session.Use the no form of this command to stop a port mirroring session.Use the “no mirror session” command to disable all mirror sessions or specific mirror session.
ExampleThe following example shows how to create a local SPAN session 1 to monitor both sent and received traffic on source port fa1.Switch(config)# mirror session 1 source interface fa2-5 both Switch(config)# mirror session 1 destination interface fa1 Switch(config)# show mirror session 1Session 1 Configuration SourceRX Port : fa2-5Source TX Port : fa2-5Destination port : fa1Ingress State: disabled
show mirror
Syntaxshow mirror [session <1-4>]
Parameter<1-4> Specify the mirror session to display
DefaultN/A
ModePrivileged EXEC
UsageUse the show mirror command to display mirror session configuration
ExampleThis following example shows how to display mirror session configuration
Switch(config)# show mirrorSession 1 Configuration Source RXPort : fa2-5Source TX Port : fa2-5Destination port : fa1

Ingress State: disabled

Session 2 Configuration Mirrored

source : Not Config

Destination port : Not Config

Session 3 Configuration Mirrored

source : Not Config

Destination port : Not Config

Session 4 Configuration Mirrored

source : Not Config

Destination port : Not Config

19. MLD Snooping

ipv6 mld snooping

Syntax ipv6 mldsnooping noipv6 mldsnooping
ParameterNone
DefaultDefault is disabled
ModeGlobal Configuration
UsageUse the ipv6 mld snooping command to enable MLD snooping function. Use the no form of this command to disable. Disable will clear all ipv6 mld snooping dynamic group and dynamic router port, and make the static ipv6 mld group invalid. No more dynamic group and router port by mld message will be learned.You can verify settings by the show ipv6 mld snooping command.
ExampleThe following example specifies that set ipv6 mldsnooping test. Switch(config)# ipv6 mld snooping

ipv6 mld snooping report-suppression

Syntaxipv6 mld snooping report-suppression

Command Line Interface User Guide

no ipv6 mld snooping report-suppression

Parameternone
DefaultDefault is enabled
ModeGlobal Configuration
UsageUse the ipv6 mld snooping report-suppression command to enable MLD snooping report-suppression function.Use the no form of this command to disable. Disable report-suppression will forward all received reports to the vlan router ports.You can verify settings by the show ipv6 mld snooping command.
ExampleThe following example specifies that disable ipv6 mld snooping report- suppression test.Switch(config)# no ipv6 mld snooping report-suppression

ipv6 mld snooping version

Syntax ipv6 mld snooping version (1|2)

Parameter(1|2)Ipv6 mld snooping running version 1 or 2
DefaultDefault is version 1
ModeGlobal Configuration
Usage Use the ipv6 mld snooping version command to changeMLD support version. Version 2 packet won't be processed if choose version 1.You can verify settings by the show ip igmp snooping command.
ExampleThe following example specifies that set ipv6 mld snooping version 2. Switch(config)# ipv6 mld snooping version 2

ipv6 mld snooping unknown-multicast action

Syntaxipv6 mld snooping unknown-multicast action (drop | flood |router-port)
snooping unknown-multicast action
Parameter(drop | flood | router- port)Drop、flood in vlan or forward to router port of unknown multicast packet
DefaultDefault is flood.
ModeGlobal Configuration
UsageWhen igmp and mld snooping disabled, it can't set action router-port.When disable igmp snooping & mld snooping, it set unknown multicast action flood. When action is router-port to flood or drop, it will delete the unknown multicast group entry.Use the ipv6 mld snooping unknown-multicast action command to change action.Use the no form of this command to restore to default.You can verify settings by the show ipv6 mld snooping command.
ExampleThe following example specifies that set ipv6 mld unknown multicast action router-port test.Switch(config)# ipv6 mld snooping unknown-multicast action router-port

ipv6 mld snooping vlan

Syntax ipv6 mld snooping vlan VLAN-LIST no ipv6 mld snooping vlan VLAN-LIST

ParameterVLAN-LIST specifies VLAN ID list to set
DefaultDefault is disabled for all VLANs
ModeGlobal Configuration
UsageDisable will clear all ipv6 mld snooping dynamic group and dynamic router port and make all static ip igmp group invalid of this vlan. Will not learn dynamic group and router port by igmp message any more. Use the ipv6 mld snooping vlan command to enable MLD on VLAN. Use the no form of this command to disable You can verify settings by the show ipv6 mld snooping vlan command.

Example

The following example specifies that set ipv6 mld snooping vlan test. Switch(config)# ipv6 mld snooping vlan 1

ipv6 mld snooping vlan parameters

Syntaxipv6 mld snooping vlanlast-member-query-count <1-7>no ipv6 mld snooping vlanlast-member-query-count
ipv6 mld snooping vlanlast-member-query-interval <1- 60>no ipv6 mld snooping vlanlast-member-query-interval[no] ipv6 mld snooping vlanrouter learn pim-dvmrp[no] ipv6 mld snooping vlanfastleave ipv6 mld snooping vlanquery-interval <30-18000>no ipv6 mld snooping vlanquery-interval ipv6 mld snooping vlanresponse-time <5-20>no ipv6 mld snooping vlanresponse-time ipv6 mld snooping vlanrobustness-variable <1-7>no ipv6 mld snooping vlanrobustness-variable
ParameterVLAN-LIST specifies VLAN ID list to set
last-member-query- count <1-7>specifies last member query count to set.Default is 2 specifies last member query
last-member-query- interval <1-60>interval to set. Default is 1 specifies query
query-interval <30-18000>interval to set. Default is 125specifies a response time to set. default is 10
response-time <5-20>specifies a robustness value to set, default is 2
robustness-variable
<1-7>

Default

no ipv6 mld snooping vlan 1-4094 last-member-query-count no ipv6 mld snooping vlan 1-4094 last-member-query-interval ipv6 mld snooping vlan 1-4094 router learn pim-dvmrp no ipv6 mld snooping vlan 1-4094 fastleave no ipv6 mld snooping vlan 1-4094 query-interval no ipv6 mld snooping vlan 1-4094

Command Line Interface

User Guide

response-time

no ipv6 mld snooping vlan 1-4094 robustness-variable

ModeGlobal Configuration
Usage‘no ipv6 mld snooping vlan 1 (last-member-query-count | last-member-query- interval | query-interval | response-time | robustness-variable)’ will set the vlan parameters to default.

The cli setting will change the ipv6 mld vlan parameters admin settings. The configure can use 'show ipv6 mld snooping vlan 1'.

Example

The following example specifies that set ipv6 mld snooping vlan parameters test.

Switch(config)# ipv6 mld snooping vlan 1 fastleave Switch(config)# ipv6 mld snooping vlan 1 last-member-query-count 5 Switch(config)# ipv6 mld snooping vlan 1 last-member-query-interval 3 Switch(config)# ipv6 mld snooping vlan 1 query-interval 100 Switch(config)# ipv6 mld snooping vlan 1 response-time 12 Switch(config)# ipv6 mld snooping vlan 1 robustness-variable 4 Switch# show ipv6 mld snooping vlan 1

MLD Snooping is globally enabled

MLD Snooping VLAN 1 admin :

disabled MLD Snooping oper mode : disabled

MLD Snooping robustness: admin 4 oper 2

MLD Snooping query interval: admin 100 sec oper 125

sec MLD Snooping query max response : admin 12 sec oper 10 sec MLD Snooping last member query counter: admin 5 oper 2

MLD Snooping last member query interval: admin 3 sec oper 1 sec MLD Snooping last immediate leave: enabled

MLD Snooping automatic learning of multicast router ports: enabled

ipv6 mld snooping vlan fastleave

Syntax ipv6 mld snooping vlan fastleave no ipv6 mld snooping vlan fastleave

ParameterVLAN-LISTspecifies VLAN ID list to set
DefaultDefault is disabled
ModeGlobal Configuration

Usage Use the ipv6 mld snooping vlan fastleave command to enable fastleave function. Group will remove port immediately when receive leave packet. Use the no form of this command to disable. You can verify settings by the show ipv6 mld snooping vlan command

ExampleThe following example specifies that set ipv6 mld snooping vlan fastleave test.Switch(config)# ipv6 mld snooping vlan 1 fastleave

ipv6 mld snooping vlan last-member-query-count

Syntaxipv6 mld snooping vlanlast-member-query-count <1-7>no ipv6 mld snooping vlanlast-member-query-count
ParameterVLAN-LIST specifies VLAN ID list to setlast-member-query-count <1-7> specifies last member query count to set
DefaultDefault is 2
ModeGlobal Configuration
Usage Use the ipv6 mld snooping vlan last-member-query-count command to change how many query packets will send.Use theno form of this command to restore to default.You can verify settings by theshow ipv6 mld snooping vlancommand
ExampleThe following example specifies that set ipv6 mld snoopingvlan last-member-query-count test.Switch(config)# ipv6 mld snooping vlan 1 last-member-query-count5
ipv6 mld snooping vlan last-member-query-interval
Syntaxipv6 mld snooping vlanlast-member-query-interval <1-60>no ipv6 mld snooping vlanlast-member-query-interval
Parameter VLAN-LIST specifies VLAN ID list to setinterval <1-60>last-member-query-specifies last member query interval to set
DefaultDefault is 1
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan last-member-query-interval command to set interval between each query packet.Use the no form of this command to restore to defaultYou can verify settings by the show ipv6 mld snooping vlan command
ExampleThe following example specifies that set ipv6 mld snoopingvlan last- member-query-interval test.Switch(config)# ipv6 mld snooping vlan 1 last-member-query-interval 3

ipv6 mld snooping vlan query-interval

Syntaxipv6 mld snooping vlan
query-interval <30-18000>
no ipv6 mld snooping vlan
ParameterVLAN-LIST specifies VLAN ID list to set
query-interval <30- specifies query interval to set
18000>
DefaultDefault is 125
ModeGlobal Configuration
Usage Use the ipv6 mld snooping vlan query-interval command to set interval between each query.Use the no form of this command to restore to defaultYou can verify settings by the show ipv6 mld snooping vlan command
ExampleThe following example specifies that set ipv6 mld snooping vlan query- interval test.Switch(config)# ipv6 mld snooping vlan 1 query-interval 100

ipv6 mld snooping vlan response-time

Syntaxipv6 mld snooping vlanresponse-time <5-20>no ipv6 mld snooping vlanresponse-time
ParameterVLAN-LISTspecifies VLAN ID list to set
response-time <5-20>specifies a response time to set
DefaultDefault is 10
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan response-time command to set response time.Use the no form of this command to restore to default.You can verify settings by the show ipv6 mld snooping vlan command
ExampleThe following example specifies that set ipv6 mld snooping vlan response-time test.Switch(config)# ipv6 mld snooping vlan 1 response-time 12

ipv6 mld snooping vlan robustness-variable

Syntaxipv6 mld snooping vlanrobustness-variable <1-7>no ipv6 mld snooping vlanrobustness-variable
Parameter VLAN-LIST specifies VLAN ID list to set
DefaultDefault is 2
ModeGlobal Configuration
Usage Use the ipv6 mld snooping vlan robustness-variable
ExampleThe following example specifies that set ipv6 mld snooping vlan parameters test.Switch(config)# ip igmp snooping vlan 1 robustness-variable

ipv6 mld snooping vlan router

Syntaxipv6 mld snooping vlan VLAN-LIST router learn pim-dvmrp
no ipv6 mld snooping vlan VLAN-LIST router learn pim-dvmrp
ParameterVLAN-LIST specifies VLAN ID list to set
DefaultDefault is enabled
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan router command to enable learning router port by routing protocol packets such as PIM/PIMv2, DVMRP, MOSPF. Use the no form of this command to disable.You can verify settings by the show ipv6 mld snooping vlan command
ExampleThe following example specifies that set ipv6 mld snooping vlan router test. Switch(config)# ipv6 mld snooping vlan 99 router

ipv6 mld snooping vlan static-port

Syntaxipv6 mld snooping vlanstatic-port IF_PORTSoping vlanstatic-port
ParameterVLAN-LIST specifies VLAN ID list to set
IF_PORTS specifies a port list to set or remove
DefaultNo static port by default
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan static-port command to add static forwarding port, all known vlan 1 ipv6 group will add the static ports. Use theno form of this command to delete static port.You can verify settings by theshow ipv6 mld snooping forward-allcommand.
ExampleThe following example specifies that set ipv6 mld snooping static port test. Switch(config)# ipv6 mld snooping vlan 1 static -port gi1-2

ipv6 mld snooping vlan forbidden-router-port

Syntaxipv6 mld snooping vlanforbidden-router-port IF_PORTSno ipv6 mld snooping vlanforbidden-router-port
ParameterVLAN-LISTspecifies VLAN ID list to set
IF_PORTSspecifies a port list to set or remove
DefaultNo forbidden router ports by default
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan forbidden-router-port command to add static forbidden router port. This will also remove port from static router port. The forbidden router port will not forward received query packet.Use the no form of this command to delete forbidden router port.You can verify settings by the show ipv6 mld snooping router command.
ExampleThe following example specifies that set ipv6 mld snooping forbidden test. Switch(config)# ipv6 mld snooping vlan 1 forbidden-router-port gi2

ipv6 mld snooping vlan forbidden-router-port

Syntaxipv6 mld snooping vlanforbidden-router-port IF_PORTSno ipv6 mld snooping vlanforbidden-router-port
ParameterVLAN-LISTspecifies VLAN ID list to set
IF_PORTSspecifies a port list to set or remove
DefaultNo forbidden router ports by default
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan forbidden-router-port command to add static forbidden router port. This will also remove port from static router port. The forbidden router port will not forward received query packet.Use the no form of this command to delete forbidden router port.You can verify settings by the show ipv6 mld snooping router command.
ExampleThe following example specifies that set ipv6 mld snooping forbidden test. Switch(config)# ipv6 mld snooping vlan 1 forbidden-router-port gi2

ipv6 mld snooping vlan static router port

Syntaxipv6 mld snooping vlanstatic-router-port IF_PORTS no ipv6 mld snooping vlanstatic-router-port IF_PORTS
ParameterVLAN-LISTspecifies VLAN ID list to set
IF_PORTSspecifies a port list to set or remove
DefaultNone static router ports by default
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan static-router-port command to add static router port. All query packets will forward to this port. Use the no form of this command to delete static router port. You can verify settings by the show ipv6 mld snooping router command..
ExampleThe following example specifies that set ipv6 mld snooping static test. Switch(config)# ipv6 mld snooping vlan 1 static-router-port gi1-2

ipv6 mld snooping vlan static-group

Syntaxipv6 mld snooping vlanstatic-group [] interfaces IF_PORTSno ipv6 mld snooping vlanstatic-groupinterfaces IF_PORTS
ParameterVLAN-LISTspecifies VLAN ID list to set

Ipv6-addr

specifies multicast group ipv4 address

IF_PORTS specifies port list to set or remove
DefaultNo static group by default
ModeGlobal Configuration
UsageUse the ipv6 mld snooping vlan static-group command to add a static group. The static group will not learn other dynamic ports. If the dynamic group exists, then the static group will overlap the dynamic group. The static group set to valid unless igmp snooping global and vlan enable.Use the no form of this command to delete a port in static group. If remove the last member of static group, the static group will be delete.You can verify settings by the show ipv6 mld snooping group command.
ExampleThe following example specifies that set ipv6 mld snooping static group test. Switch(config)# ipv6 mld snooping vlan 1 static-group ff13::1 interfaces gi1-2

ipv6 mld snooping vlan group

Syntaxno ipv6 mld snooping vlangroup
ParameterVLAN-LISTspecifies VLAN ID list to set
ipv6-addrspecifies multicast group ipv6 address
DefaultNone
ModeGlobal Configuration

Usage Use the no ipv6 mld snooping vlan group command to delete a group which could be static or dynamic. You can verify settings by the show ipv6 mld snooping group command.

Example

The following example specifies that set ip igmp snooping static group test. Switch(config)# no ip igmp snooping vlan 1 group ff13::1

profile range

Syntaxprofile range ipv6 <ipv6-addr> [ipv6-addr] action (permit | deny)
<ipv6-addr>Start ipv6 multicast address
[ipv6-addr]End ipv6 multicast address
(permit | deny)Permit: allow Multicast address range ip address learningdeny: do not allow Multicast address range ip address
DefaultNone
Modemld profile configuration mode
UsageUse the profile command to generate MLD profile.You can verify settings by the show ipv6 mld profile command
ExampleThe following example specifies that set ipv6 mld profile test. Switch(config)# ipv6 mld profile 1Switch(config-mld-profile)# profile range ipv6 ff13::1 ff13::10action permit

ipv6 mld profile

Syntaxipv6 mld profile <1-128>no ipv6 mld profile <1-128>
Parameter<1-128>specifies profile ID
DefaultNo profie exist by default
ModeGlobal Configuration
Usage Use the ipv6 mld profile command to enter profile configuration Use the no form of this command to delete profile You can verify settings by the show ipv6 mld profile command
ExampleThe following example specifies that set ipv6 mld profile test. Switch(config)# ipv6 mld profile 1Switch(config-mld-profile)# profile range ipv6 ff13::1 ff13::10 action permit

ipv6 mld filter

Syntaxipv6 mld filter <1-128>no ipv6 mld filter
Parameter<1-128> specifies profile ID
IF_PORTS][interfaces Specifies interfaces to display
DefaultNone
ModePort Configuration
UsageUse the ipv6 mld filter command to bind a profile for port. When the port bind a profile. Then the port learning group will update, if the group is not match the profile rule it will remove the port from the group. Static group is excluded.Use the no form of this command to delete profileYou can verify settings by the show ipv6 mld filter command
ExampleThe following example specifies that set ipv6 mld filter test.Switch(config)# interface gi1Switch(config-if)# ipv6 mld filter 1

ipv6 mld max-groups

Syntaxipv6 mld max-groups <0-1024>no ipv6 mld max-groups
Parameter<0-1024>specifies profile ID
DefaultDefault is 1024
ModePort Configuration
UsageUse the ipv6 mld max-groups command to limit port learning max group number. When the port has reach limitation, new group will not add this port. Static group is excluded.Use the no form of this command to restore to defaultYou can verify settings by the show ipv6 mld max-groups command.
ExampleThe following example specifies that set ipv6 mld max-groups test. Switch(config)# interface gi1Switch(config-if)# ipv6 mld max-groups 10

ip igmp max-groups action

Syntaxipv6 mld max-groups action (deny | replace)
Parameter (deny | replace) Deny: current port igmp group arrived max-groups, don't add group.Replace: current port igmp group arrived max-groups, remove port for rand group, and add port to new group.
DefaultDefault action is deny
ModeInterface mode
Usage Use the ipv6 mld max-groups action command to set the action when the numbers of groups reach the limitation.Use the no form of this command to restore to defaultYou can verify settings by the show ipv6 mld max-groups command.
ExampleThe following example specifies that set action replace test. Switch(config-if)#ipv6 mld max-groups action replace

clear ipv6 mld snooping groups

Syntaxclear ipv6 mld snooping groups [(dynamic | static)]
ParameterNoneClear ipv6 mld groups include dynamic and static
(dynamic | static)ipv6 mld group type is dynamic or static
DefaultNone
ModePrivileged EXEC
UsageThis command will clear the ipv6 mld groups for dynamic or static or all of type.You can verify settings by the show ipv6 mld snooping groups command..
ExampleThe following example specifies that clear ipv6 mld snooping groups test. Switch# clear ipv6 mld snooping groups static

clear ipv6 mld snooping statistics

Syntax clear ipv6 mld snooping statistics
Parameternone
DefaultNone
ModePrivileged EXEC
UsageThis command will clear the igmp statistics.You can verify settings by the show ipv6 mld snooping command.
ExampleThe following example specifies that clear ipv6 mld snooping statistics test.Switch# clear ipv6 mld snooping statistics

show ipv6 mld snooping groups counters

Syntax show ipv6 mld snooping groups counters

Parameternone
DefaultNone
ModePrivileged EXEC
UsageThis command will display the ipv6 mld group counter include static group.
ExampleThe following example specifies that display ipv6 mld snooping group counter test.Switch# show ipv6 mld snooping group countersTotal ipv6 mld snooping group number: 2

show ipv6 mld snooping groups

Syntaxshow ipv6 mld snooping groups [(dynamic | static)]
ParameternoneShow ipv6 mld groups include dynamic and static
(dynamic | static)Display ipv6 mld group type is dynamic or static
Defaultdisplay all ipv6 mld groups
ModePrivileged EXEC
UsageThis command will display the ipv6 mld groups for dynamic or static or all of type.
ExampleThe following example specifies that show ipv6 mld snooping groups test. Switch# show ipv6 mld snooping groupsVLAN | Group IP Address | Type | Life(Sec) | Port----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ 1 | ff13::1 | Static | -- | fa1 1 | ff13::2 | Static | -- | fa2

Total Number of Entry = 2

show ipv6 mld snooping router

Syntaxshow ipv6 mld snooping router [(dynamic | forbidden |static)]
ParameternoneShow ipv6 mld router include dynamic and static and forbidden
(dynamic | forbidden | static)Display ipv6 mld router info for different type
DefaultNone
ModePrivileged EXEC
UsageThis command will display the ipv6 mld router info.
ExampleThe following example specifies that show ipv6 mld snooping router test. Switch# show ipv6 mld snooping routerDynamic Router TableVID | Port | Expiry Time(Sec)----+----+----Total Entry 0Static RouterTable VID | PortMask----+----1 | fa5Total Entry 1Forbidden RouterTable VID | PortMask----+----

Total Entry 0

show ipv6 mld snooping
Syntax show ipv6 mld snooping

Parameternone
DefaultNone
ModePrivileged EXEC
UsageThis command will display ipv6 mld snooping global info.
ExampleThe following example specifies that show ipv6 mld snooping test. Switch#show ipv6 mld snoopingMLD Snooping Status----Snooping : DisabledReport Suppression :EnabledOperation Version : v1Forward Method : macUnknown Multicast Action :FloodPacket StatisticsTotal RX : 0Valid RX : 0Invalid RX : 0Other RX : 0Leave RX : 0Report RX : 0General Query RX : 0Specail Group Query RX : 0Specail Group & Source Query RX :0 Leave TX : 0Report TX : 0General Query TX : 0Specail Group Query TX : 0

Specail Group & Source Query TX : 0

show ipv6 mld snooping vlan

Syntaxshow ipv6 mld snooping vlan [VLAN-LIST]
ParameternoneShow all ipv6 mld snooping vlan info
[VLAN-LIST]Show specifies vlan ipv6 mld snooping info
DefaultShow all ipv6 mld snooping vlan info
ModePrivileged EXEC
UsageThis command will display ipv6 mld snooping vlan info.
ExampleThe following example specifies that show ipv6 mld snooping vlan test. Switch# show ipv6 mld snooping vlan 1MLD Snooping is globally disabledMLD Snooping VLAN 1 admin:disabled MLD Snooping oper mode:disabled MLD Snooping robustness:admin 2 oper 2MLD Snooping query interval: admin 125 sec oper 125sec MLD Snooping query max response: admin 10 secoper 10 sec MLD Snooping last member query counter:admin 2 oper 2MLD Snooping last member query interval: admin 1 sec oper 1sec MLD Snooping last immediate leave: disabledMLD Snooping automatic learning of multicast router ports: enabled

show ipv6 mld snooping forward-all

Syntaxshow ipv6 mld snooping forward-all [vlan VLAN-LIST]
ParameternoneShow all ipv6 mld snooping vlan forward-all info
[vlan VLAN-LIST]Show specifies vlan of ipv6 mld forward info.
DefaultShow all vlan ipv6 mld forward all info
ModePrivileged EXEC

Usage

This command will display ipv6 mld snooping forward all info.

ExampleThe following example specifies that show ipv6 mld snooping forward-all test.Switch#show ipv6 mld snooping forward-allMLD Snooping VLAN 1MLD Snooping static port : NoneMLD Snooping forbidden port : None

show ipv6 mld profile

Syntaxshow ipv6 mld profile [<1-128>]
ParameternoneShow all ipv6 mld snooping profile info
[<1-128>]Show specifies index profile info
DefaultShow all ipv6 mld profile info
ModePrivileged EXEC
UsageThis command will display ipv6 mld profile info.
ExampleThe following example specifies that show ipv6 mld profile test. Switch# show ipv6 mld profileIPv6 mld profile index: 1IPv6 mld profile action: permitRange low ip: ff13::1Range high ip: ff13::10

show ipv6 mld filter

Syntaxshow ipv6 mld filter [interfaces IF_PORTS]
ParameternoneShow all port filter
[interfacesIF PORTS]Show specifies ports filter
DefaultNone
ModePrivileged EXEC
UsageThis command will display ipv6 mld port filter info.
ExampleThe following example specifies that show ipv6 mld filter test. Switch#show ipv6 mld filterPort ID | Profile ID----+----gi1 : 1gi2 :Nonegi3 :Nonegi4 :Nonegi5 :None--More--

show ipv6 mld max-group

Syntaxshow ipv6 mld max-group [interfaces IF_PORTS]
ParameternoneShow all port max-group
[interfacesIF PORTS]Show specifies ports max-group
DefaultNone
ModePrivileged EXEC
UsageThis command will display ipv6 mld port max-group.
ExampleThe following example specifies that show ipv6 mld max-group test. Switch(config-if)# ipv6 mld max-groups 50Switch# show ipv6 mld max-groupPort ID | Max Group----+----gi1 : 50gi2 : 256gi3 : 256gi4 : 256gi5 : 256--More--

show ipv6 mld port max-group action

Syntaxshow ipv6 mld max-group action [interfaces IF_PORTS]
ParameternoneShow all port max-group action
[interfaces IF_PORTS]Show specifies ports max-group action
DefaultShow all ports ipv6 mld max-group action
ModePrivileged EXEC
UsageThis command will display ipv6 mld port max-group action.
ExampleThe following example specifies that show ipv6 mld max-group action test. Switch(config-if)# ipv6 mld max-groups action replaceSwitch# show ipv6 mld max-group actionPort ID | Max-groups Action----+----gi1 :replacegi2 :denygi3 :denygi4 :denygi5 :deny--More--
  1. MVR
mvr
Syntaxmvrno mvr
ParameterNone
DefaultDefault is disabled
ModeGlobal Configuration
UsageUse themvrcommand to enable MVR function. The command will clear all mvr VLAN ID multicast snooping group.Use thenoform of this command to disable. Disable will clear all mvr group. You can verify settings by theshow mvrcommand.
ExampleThe following example specifies that setmvrtest. Switch(config)#mvrSwitch(config)#no mvrSwitch#show mvrMVR Running:DisabledMVR MulticastVLAN : 1 MVR GroupRange : NoneMVR Max Multicast Groups : 128MVR Current Multicast Groups : 0MVR Global query response time : 1secMVR Mode : compatible

myr vlan

Syntax mvr vlan

ParameterThe exist static vlan id
DefaultDefault mvr vlan id is 1
ModeGlobal Configuration
UsageUse the mvr vlan command to modify mvr vlan id when the mvr status is enabled.Change mvr vlan id will delete the old mvr vlan and new mvr vlan group. If there have configure source or receiver port, there will check the source must only in the mvr vlan , and receiver port must not in the mvr vlan member.You can verify settings by the show mvr command.
ExampleThe following example specifies that configure mvr vlan 2test. Switch(config)#vlan 2Switch(config)#mvrThe operation will delete groups of VLAN ID is MVR VLAN include static groups. Continue? [yes/no]:ySwitch(config)#mvr vlan 2The operation will delete the old and new MVR VLAN groups includestatic MVR groups.Continue? [yes/no]:ySwitch# show mvrMVR Running :Enabled MVRMulticast VLAN : 2MVR Group Range :NoneMVR Max Multicast Groups : 128MVR Current Multicast Groups :0 MVR Global query responsetime : 1 secMVR Mode : compatible
mvr group

mvr group [<1-128>]

< ip-address>Start MVR IP multicast address
[<1-128>]Contiguous series of IP addresses.

Default None

Mode Global Configuration

Usage Use the mvr group command to configure mvr group address range when mvr is enabled. The command will delete all mvr vlan ipv4 group entry You can verify settings by the show mvr command

ExampleThe following example specifies that set mvr group range is 224.1.1.1 ~224.1.1.8 test.Switch(config)#mvrSwitch(config)# mvr group 224.1.1.1 8The operation will delete the MVR VLAN groups include staticMVR groups.Continue? [yes/no]:ySwitch# show mvrMVR Running :Enabled MVR MulticastVLAN : 2MVR Group Range : 224.1.1.1 ~ 224.1.1.8MVR Max Multicast Groups : 128MVR Current Multicast Groups : 0MVR Global query response time : 1secMVR Mode : compatible

mvr mode

Syntax mvr mode (dynamic | compatible)

Parameter (dynamic|compatible) dynamic: Allows dynamic MVR membership on

on source ports.source portscompatible: does not support IGMP dynamic joins
DefaultDefault is compatible.
ModeGlobal Configuration
UsageUse themvr modecommand to change mvr mode when mvr is enabled.You can verify settings by theshow mvrcommand.
ExampleThe following example specifies that set mvr mode dynamic test. Switch(config)#mvrSwitch(config)#mvr mode dynamicSwitch#show mvrMVR Running :Enabled MVR MulticastVLAN : 2MVR Group Range : 224.1.1.1 ~ 224.1.1.8MVR Max Multicast Groups : 128MVR Current Multicast Groups : 0MVR Global query response time : 1secMVR Mode : dynamic

mvr query-time

Syntaxmvr query-time <1-10>no mvr query-time
Parameter<1-10>specifies query response time is 1~10 sec.
DefaultDefault is 1 sec
ModeGlobal Configuration
UsageUse the mvr query-time command to configure when mvr is enabled.Use the no form of this command to set query-time default value. You can verify settings by the show mvr command.

Example

The following example specifies that set mvr query-time 10 sec test. Switch(config)# mvr

Switch(config)# mvr query-time 10Switch# show mvrMVR Running :Enabled MVRMulticast VLAN : 2MVR Group Range : 224.1.1.1 ~ 224.1.1.8MVR Max MulticastGroups : 128 MVR CurrentMulticast Groups : 0MVR Global query response time : 10 secMVR Mode : dynamic

mvr port type

Syntaxmvr type (source | receiver)no mvr type
Parameter(source | receiver)Source: Configure uplink ports that receive and send multicast data as source ports.Subscribers cannot be directly connected to source ports. All source ports on a switch belong to the single multicast VLAN. Receiver: Configure a port as a receiver port if it is a subscriber port and should only receive multicast data. It does not receive data unless it becomes a member of the multicast group, either statically or by using IGMP leave and join messages. Receiver ports cannot belong to the
DefaultNone
ModePort Configuration
UsageUse themvr typecommand to configure mvr port type when mvr is enabled.The source port must only belong to mvr vlan. The receiver port must not belong to mvr vlan, and port mode must be access mode.Use thenoform of this command to set mvr type noneYou can verify settings by theshow mvrinterfacecommand
ExampleThe following example specifies that set gi1 fa1 is source port, fa2 is receiver port test.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#mvrSwitch(config)#mvr vlan 2
Switch(config)#mvr group 224.1.1.1 8
Switch(config)# interface gi1
Switch(config-if)# switchport trunk allowed vlan 2
Switch(config-if)# mvr type
source Switch(config-if)#exit
Switch(config)# interface gi2
Switch(config-if)# switchport mode
access Switch(config-if)#mvr type
receiver Switch# show mvr
interface
Port | Type | Immediate Leave
----+----+----
gi1 | Source| Disabled
gi2 | Receiver| Disabled

mvr port immediate

Syntaxmvr immediateno mvr immediate
ParameterNone
DefaultDefault is disabled
ModePort Configuration
Usage Use themvr immediatecommand to configure mvr supportimmediate leave when mvr is enabled.Note This command applies to only receiver ports and should onlybe enabled on receiver ports to which a single receiver device isconnected.Use theno form of this command to disableimmediate leave. You can verify settings by theshow mvr interfacecommand
ExampleThe following example specifies that set gi2 immediate enable test.The configure should configure mvr receiver port firstly.(eg. mvr port type) Switch(config)#interface gi2Switch(config-if)#mvrimmediate Switch(config-if)#exit Switch(config)# exitSwitch# show mvr interfacePort | Type | Immediate Leave----+----+----gi1 | Source| Disabledgi2 | Receiver| Enabled

mvr static group

Syntaxmvr vlan < VLAN-ID> group <ip-addr> interfaces IF_PORTS no mvr vlan < VLAN-ID> group <ip-addr> interfaces IF_PORTS
ParameterVLAN-IDspecifies MVR VLAN ID for static group
ip-addrspecifies multicast MVR group address
IF_PORTSspecifies port list to set or remove
DefaultNone
ModeGlobal Configuration
Usage Use the mvr vlan group command to add a static group or configure static group member ports when mvr is enabled. This command applies to only receiver ports. In compatible mode, this command applies to only receiver ports. In dynamic mode, it applies to receiver ports and source ports. When remove static mvr group all ports, the static group will be delete. Or can use no ip igmp vlan VLAN-ID group to delete the mvr static group. Static group can't learn dynamic port by igmp memesage. Use the no form of this command to delete a port in static group. If remove the last member of static group, the static group will be delete. You can verify settings by the show mvr members command.
ExampleThe following example specifies that set mvr static group test. The configure must configure mvr receiver port firstly.(eg. mvr port type) Switch(config)# mvr vlan 2 group 224.1.1.1 interfaces gi2 Switch# show mvr members Gourp IP Address | Type | Life(Sec) | Port
224.1.1.1 | Static| -- | gi2
Total Number of Entry = 1

clear mvr members

Syntax clear mvr members [dynamic|static]

Parameter

dynamic

specifies MVR dynamic group

staticspecifies MVR static group
DefaultClear all of mvr group
ModePrivileged EXEC
UsageThis command will clear the mvr groups for selected type.
ExampleThe following example specifies that clear all mvr groups test. Switch# clear mvr members

show mvr members

Syntax show mvr members

ParameterNone
DefaultNone
ModePrivileged EXEC
UsageThis command will display the mvr groups for all of type.
ExampleThe following example specifies that show mvr groups test. Switch# show mvr members

show mvr interface

Syntax show mvr interface [IF_PORTS]

ParameterIF_PORTSShow specifies port list configurationt
DefaultNone
ModePrivileged EXEC
UsageThis command will display mvr port type and port immediate status.
ExampleThe following example specifies that show mvr interface test. Switch# show mvr interface

show mvr

Syntax show mvr

ParameterNone
DefaultNone
ModePrivileged EXEC
UsageThis command will display mvr global information.
ExampleThe following example specifies that show mvr test. Switch#show mvrMVR Running : EnabledMVR Multicast VLAN : 100MVR Group Range : 224.1.1.1 ~ 224.1.1.128MVR Max Multicast Groups : 128MVR Current Multicast Groups : 0MVR Global query response time : 1 secMVR Mode : compatible

21. Port

Command Line Interface User Guide

back-pressure

Syntaxback-pressureno back-pressure
Parameter
DefaultDefault back pressure state is enabled.
ModeInterface Configuration
UsageUse “back-pressure” command to make port to enable back pressure feature.Use no form of this command to disable back pressure feature.The only way to show this configuration is using “show running-config” command.
ExampleThis example shows how to configure port fa1 and fa2 to be protected port.Switch(config)# interface fa1Switch(config-if)# no back-pressureThis example shows how to show current jumbo-frmae size Switch# show running-config interface fa1interface fa1no back-pressure

clear interface

Syntaxclear interfaces IF_PORTS counters
ParameterIF_PORTSSpecify port to clear counters.
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “clear interface” command to clear statistic counters on specific

Command Line Interface User Guide

ports.

ExampleThis example shows how to clear counters on port fa1. Switch(config)#clear interfaces fa1 counters
This example shows how to show current countersSwitch#show interfaces fa1Hardware is Fast EthernetAuto-duplex, Auto-speed, media type is Copper flow-control is off0 packets input, 0 bytes, 0 throttles Received 0 broadcasts (0 multicasts)0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 multicast, 0 pause input0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underrun0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 PAUSE output
description
Syntaxdescription WORD<1-32>no description
ParameterWORD<1-32> Specify port description string.
DefaultDefault port description is empty.
ModeInterface Configuration
UsageUse “description” command to give the port a name to identify it easily.If description includes space character, please use doublequoted to wrap it. Use no form to restore description to empty string.
ExampleThis example shows how to modify portdescriptions. Switch(config)#interface fa1Switch(config-if)#description userportSwitch(config-if)#exitSwitch(config)#interface fa2Switch(config-if)#description “uplink port”
This example shows how to show current port description on interface fa1 and fa2Switch#show interfaces fa1-2 statusPort Name Status Vlan Duplex Speed
Type
fa1 userportnotconnect 1autoauto
Copper
fa2 uplink portnotconnect 1autoauto
Copper
duplex
Syntaxduplex (auto | full | half)
ParameterautoSpecify port duplex to auto negotiation.
fullSpecify port duplex to force full duplex.
halfSpecify port duplex to force half duplex.
DefaultDefault port duplex is auto.
ModeInterface Configuration
UsageUse “duplex” command to change port duplex configuration.
ExampleThis example shows how to modify port duplex configuration. Switch(config)#interface fa1Switch(config-if)#duplex fullSwitch(config-if)#exitSwitch(config)#interface fa2Switch(config-if)#duplex half
This example shows how to show current speed configuration Switch#show running-config interfaces fa1-2 interface fa1duplex full interface fa2 duplex half
This example shows how to show current interface link speed Switch#show interfaces fa1-2 statusPort Name Status Vlan Duplex Speed Type fa1 connected 1 full a-100M Copper fa2 connected 1 half a-100M Copper
eee
Syntaxeee

no eee

Parameter

DefaultDefault eee state isdisabled.
ModeInterface Configuration
UsageUse “eee” command to make port to enable the energy efficient Ethernetfeature.Use no form of this command to disable eee.The only way to show this configuration is using “show running-config” command.
ExampleThis example shows how to configure port fa1 and fa2 to be protectedport.Switch(config)# interface fa1Switch(config-if)# eeeThis example shows how to show current jumbo- frmae size Switch# show running-config interface fa1interface fa1eee
flowcontrol
Syntaxflowcontrol (auto | off |on)no flowcontrol
ParameterautoAutomatically enables or disables flow control ontheinterface.
offDisable port flow control.
onEnable port flow control.
DefaultDefault port flow control is off.
ModeInterface Configuration
UsageUse “flowcontrol” command to change port flow control configuration.Use no form to restore flow control to default (off) configuration.
ExampleThis example shows how to modify port duplex configuration.Switch(config)#interface fa1Switch(config-if)#flowcontrol onThis example shows how to show current flow control configurationSwitch#show interfaces fa1Hardware is Fast EthernetFull-duplex, Auto-speed, media type is Copperflow-control is on0 packets input, 0 bytes, 0 throttles Received 0broadcasts (0 multicasts)0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 multicast, 0 pause input0 input packets with dribble condition detected379 packets output, 31981 bytes, 0 underrun0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 PAUSE output
jumbo-frame
Syntaxjumbo-frame<1518-9216>
Parameter<1518-9216> Specify the maximum frame size.
DefaultDefault maximum frame size is 1522.
ModeGlobal Configuration
UsageUse “jumbo-frame” command to modify maximum frame size.The only way to show this configuration is using “show running-config” command.
ExampleThis example shows how to modify maximum frame size on fa1 to 9216 bytes.Switch(config)#jumbo-frame9216This example shows how to show current jumbo-frmae sizeSwitch#show running-configjumbo-frame 9216
media-type
Syntaxmedia-type (auto-select | rj45 | sfp)no media-type
Parameterauto-selectSelect media automatically.
rj45Select copper media.
sfpSelect fiber media.
DefaultDefault media type is auto.
ModeInterface Configuration
UsageUse “media-type” command to change combo port media type.Use no form of this command to restore media type to default.
ExampleThis example shows how to modify combo port media type to copper.Switch(config)# interface gi1Switch(config-if)# media-type rj45
protected
Syntaxprotectedno protected
DefaultDefault protected state is no protected.
ModeInterface Configuration
UsageUse “protected” command to make port to be protected. Protected port is only allowed to communicate with unprotected port. In other words, protected port is not allowed to communicate with another protected port.Use no form to make port unprotected.
ExampleThis example shows how to configure port fa1 and fa2 to be protected port.Switch(config)#interface range fa1-2Switch(config-if-range)#protectedThis example shows how to show current protected port state.Switch#show interfaces fa1-2 protectedPort | Protected State----+----fa1|enabled

fa2 | enabled

show interface

Syntaxshow interfaces IF_PORTS show interfaces IF_PORTS status show interfaces IF_PORTS potected
ParameterIF_PORTSSpecify port to show.
DefaultNo default value for this command.
ModePrivileged EXEC

Usage Use "show interface" command to show detail port counters, parameters and status.

Use "show interface status" command to show brief port

status. Use "show interface protected" command to

show protected status.

ExampleThis example shows how to show current countersSwitch#show interfaces fa1Hardware is Fast EthernetAuto-duplex, Auto-speed, media type is Copper flow-controlis off0 packets input, 0 bytes, 0 throttles Received 0broadcasts (0 multicasts)0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 multicast, 0 pause input0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underrun0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 PAUSE output
This example shows how to show current protected port state.Switch#show interfaces fa1-2 protectedPort | Protected State----+----fa1 |enabled fa2|enabled
This example shows how to show current port statusSwitch#show interfaces fa1-2 statusPort Name Status Vlan Duplex Speed Typefa1 connected 1 full a-100M Copper

speed

Syntaxspeed (10 | 100 | 1000)
speed auto [(10 | 100 | 1000 | 10/100)]

speed nonegtiate no speed nonegtiate

Parameter 10Specify port speed to force 10Mbits/s or auto with 10Mbits/s ability.
100Specify port speed to force 100Mbits/s or auto with 100Mbits/s ability.
1000Specify port speed to force 1000Mbits/s or auto with 1000Mbits/s ability.
10/100Specify port speed to auto with 10Mbits/s and 100Mbits/s

Default Default port speed is auto with all available abilities.

ModeInterface Configuration

Usage Use “speed” command to change port speed configuration. The speed is only able to configure to the physical maximum speed. For example, in fast Ethernet port, speed 1000 is not available.
You cannot configure the speed on the SFP module ports, but you can configure the speed to not negotiate (nonegotiate) if it is connected to a device that does not support autonegotiation.

ExampleThis example shows how to modify port speed configuration.Switch(config)#interface fa1Switch(config-if)#speed 100Switch(config-if)#exitSwitch(config)#interface fa2Switch(config-if)#speed auto 10/100
This example shows how to show current speed configuration Switch#show running-config interfaces fa1-2interface fa1speed 100interface fa2speed auto 10/100
This example shows how to show current interface link speedSwitch#show interfaces fa1-2statusPort Name Status Vlan Duplex Speed Type
fa1 connected 1 a-full a-100M Copperfa2 connected 1 a-full a-100M Copper
shutdown
Syntaxshutdownno shutdown
Parameter
DefaultDefault port admin state is no shutdown.
ModeInterface Configuration
UsageUse “shutdown” command to disable port and use “no shutdown” to enable port. If port is error disabled by some reason, use “no shutdown” command can also recovery the port manually.
ExampleThis example shows how to modify port duplex configuration. Switch(config)# interface fa1Switch(config-if)# shutdownThis example shows how to show current admin state configuration Switch# show running-config interfaces fa1interface fa1shutdownThis example shows how to show current link statusPort Name Status Vlan Duplex Speed Typefa1 disable 1 full auto Copper

22. Port Error Disable

errdisable recovery cause

Syntax

errdisable recovery cause (all|acl|arp-inspection|bpduguard|broadcast- flood|dhcp-rate-limit|psecure-violation|selfloop|unicast-flood|unknown-multicastflood) no errdisable recovery cause (all|acl|arp-inspection|bpduguard|broadcast- flood|dhcp-rate-limit|psecure-violation|selfloop|unicast-flood|unknown- multicastflood)

ParameterallEnable the auto recovery for port error disabled from all causes.
aclEnable the auto recovery for port error disabled from the ACL cause.
arp-inspectionEnable the auto recovery for port error disabled from the ARP inspection cause.
bpduguardEnable the auto recovery for port error disabled from the STP BPDU Guard cause.
broadcast-floodEnable the auto recovery for port error disabled from the broadcast flooding cause.
dhcp-rate-limitEnable the auto recovery for port error disabled from the DHCP rate limit cause.
psecure-violationEnable the auto recovery for port error disabled from the port security cause.
selfloopEnable the auto recovery for port error disabled from the STP self-loop cause.
unicast-floodEnable the auto recovery for port error disabled from the unicast flooding cause.
unknown-multicastfloodEnable the auto recovery for port error disabled from the unknown multicast flooding cause.

Default

Error disable recovery is disabled for all cause.

Mode

Global Configuration

Usage Ports would be disabled because of the invalid actions detected by protocols.

To enable the port error disable recovery from the specific cause, use the command errdisable recovery cause in the Global Configuration mode.

Example

The following example enables the port error disable recovery for the STP BPDU Guard and self-loop cause.

Switch(config)# errdisable recovery cause bpduguard Switch(config)# errdisable recovery cause selfloop

errdisable recovery interval

Syntaxerrdisable recovery interval seconds
ParametersecondsThe time in seconds to recover from a specific error- disable state. The vaild range is 0 to 86400 seconds, and the default value is 300 seconds.
DefaultThe default recovery time is 300 seconds.
ModeGlobal Configuration
UsageTo set the recovery time of the error disabled ports, use the commanderrdisable recover interval in the Global Configuration mode.
ExampleThe following example set the aging time to 500 seconds.Switch(config)# errdisable recovery interval 60
show errdisable recovery
Syntaxshow errdisable recovery
Parameter N/A
DefaultN/A
ModePrivileged EXEC
Usage To show the error disable configuration and the interfaces in the error disabled state, use the command show errdisable recovery in the Privileged EXEC mode.
ExampleThe following example shows the error disable configuration, and the interfaces in the error disabled state.Switch# show errdisable recovery ErrDisable Reason | Timer Status----+----bpduguard | enabledselfloop | enabledbroadcast-flood | disabledunknown-multicast-flood | disabled unicast-flood | disabledacl | disabledpsecure-violation | disabled dhcp-rate-limit | disabled arp-inspection |disabledTimer Interval : 60 seconds

Interfaces that will be enabled at the next timeout:

Port | Error Disable Reason | Time Left

23. Port Security

port-security (Global)

Syntax port-security no port-security

ParameterNone

Default Default is disabled

ModeGlobal Configuration

Usage The "port-security" command enables the port security functionality globally. Use the no form of this command to disable. You can verify settings by the show port-security command.

ExampleThe following example shows how to enable port security switch(config)# port-securityswitch# show port-securityport-security is: Enabled

port-security (Interface)

Syntax port-security no port-security

ParameterNone

Default Default is disabled

ModePort Configuration
UsageThe “port-security” command enables the port security functionality on this port.Use the no form of this command to disableYou can verify settings by the show port-security interface command.
ExampleThe following example shows how to enable port security on interface fa1switch(config)# interface fa1switch(config-if)# port-securityswitch(config)# show port-security interfaces fa1Port | Security | CurrentAddr | Action----+----+----+----fa1 | Enabled ( 1) | 0 | Discard

port-security address-limit

Syntaxport-security address-limit <1-256> action (forward|discard|shutdown) no port-security address-limit
Parameter<1-256>The learning-limit number. It specifies how many MAC addresses this port can learn.
forwardForward this packet whose SMAC is new to system and exceed the learning-limit number.
discardDiscard this packet whose SMAC is new to system and exceed the learning-limit number.
shutdownShutdown this port when receives a packet whose SMAC is new to system and exceed the learning limit

Default The address-limit default is 1 and action is "drop".

Mode Port Configuration

Usage Use the “port-security address-limit” command to set the learning-limit number and the violation action. Use the no form of this command to restore the default settings. You can verify settings by the show port-security interface command.

ExampleThe following example shows how to enable port security on port 1 and set the learning limit number to 10.switch(config)#interface fa1switch(config-if)#port-security address-limit 10 action discardswitch(config-if)#port-securityswitch(config)#show port-security interfaces fa1Port | Mode | Security | CurrentAddr | Action
fa1 | Dynamic | Enabled ( 10) | 0 | Discard

show port-security

Syntaxshow port-security
ParameterNone
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show port-security” command to show port-security global information.
ExampleThis example shows how to show port-security configurations.Switch# show port-securityport-security is: Enabled

show port-security interface

Syntaxshow port-security interfaceIF_PORTS
ParameterIF_PORTSSelect port to show port-security configurations.
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show port-security interfaces” command to show port-securityinformation of the specified port.
ExampleThis example shows how to show port-security configurations on interface fa1.Switch#show port-security interfaces fa1Port | Security | CurrentAddr | Action----+----+----+----fa1 | Enabled ( 10) | 0 | Discard

24. Protocol VLAN

vlan protocol-vlan group (Global)

Syntaxvlan protocol-vlan group <1-8> frame-type(ethernet_i|llc_other|snap_1042) protocol-valueVALUEno vlan protocol-vlan group <1-8>
Parameter<1-8>Specify protocol vlan group to configure
(ethernet_i|llc_other|snap_1042)Specify protocol based frame type
VALUESpecify protocol value to configure
Defaultno protocol vlan group are configured
ModeGlobal Configuration
UsageUse the vlan protocol-vlan group Global Configuration mode command to add protocol vlan group with spefied proto type and value.Use the no form of this command to remove protocol vlan group setting. You can verify your setting by entering the show vlan proto-vlan Privileged EXEC command

Example

The following example show how to configure protocol vlan group: Switch(config)# vlan protocol-vlan group 1 frame-type ethernet_ii protocol-value 0x806Switch(config)# vlan protocol-vlan group 2 frame-type llc_other protocol- value 0x800Switch# show vlan protocol-vlanGroup ID | Status | Type | value
1EnabledEthernet0x0806
2EnabledLLC other0x0800
3Disabled----
4Disabled----
5Disabled----
6Disabled----
7Disabled----
8Disabled----

vlan protocol-vlan group (Interface)

Syntaxvlan protocol-vlan group <1-8> vlan <1-4094>no vlan protocol-vlan group <1-8>
Parameter<1-8>Specify protocol vlan group to binding
<1-4094>Specifies the Proto VLAN ID to configure.
DefaultIn default all group are not binding to any interface.
ModeInterface configuration
UsageUse thevlan protocol-vlan binding Interface Configuration mode command to binding protocol VLAN Group on specified interfaces, Use theno form of this command to cancel protocol VLAN Group Binding. You can verify your setting by entering theshow vlan protocol-vlan interfaces IF_PORTS Privileged EXEC command
ExampleThe following example how to configure Protocol VLAN function on specified interfaces..Switch(config)#interface fa1Switch(config-if)#vlan protocol-vlan group 1vlan 2 Switch(config-if)#vlan protocol-vlan group 2 vlan 3 Switch#show vlan protocol-vlan interfaces fa1Portfa1 :Group1Status :Enabled VLANID : 2Group 2Status :Enabled VLANID : 3Group 3Status :Disabled Group 4Status :Disabled Group 5Status :Disabled Group 6Status :Disabled Group 7Status :Disabled Group 8Status : Disabled

show vlan protocol-vlan

Syntaxshow vlan protocol-vlan [group <1-8>]
Parameter<1-8>Specify protocol vlan group to display
DefaultN/A
ModePrivileged EXEC
UsageUse the show vlan proto-vlan command in EXEC mode to displayProtoVLAN group configuration
ExampleThe following example how to display Proto VLAN group configuration Switch# show vlan protocol-vlanGroup ID | Status | Type | value----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ 1 | Enabled | Ethernet | 0x0806 2 | Enabled | LLC other | 0x0800 3 | Disabled | -- | -- 4 | Disabled | -- | -- 5 | Disabled | -- | -- 6 | Disabled | -- | -- 7 | Disabled | -- | -- 8 | Disabled | -- | --

show vlan protocol-vlan interfaces

Syntaxshow vlan protocol-vlan interfacesIF_PORTS
ParameterIF_PORTSSpecify interfaces protocol vlan to display
DefaultN/A
ModePrivileged EXEC
UsageUse the show vlan protocol-vlan interface command in EXEC mode to display the Protocol VLAN interfaces setting
ExampleThe following example shows how to display the Protocol VLAN interfaces settingSwitch# show vlan protocol-vlan interfaces fa1Portfa1 :Group1Status :Enabled VLANID : 2Group 2Status :Enabled VLANID : 3Group 3Status :Disabled Group 4Status :Disabled Group 5Status :Disabled Group 6Status :Disabled Group 7Status :Disabled Group 8Status : Disabled

25. QoS

qos

Syntax qos

no qos

Default

Default qos is disabled.

Mode

Global Configuration

Usage

Use “qos” command to enable quality of service which according to basic trust type to assign queue for packets, and packets with higher priority are able to send first.

Use no form of this command to disable quality of service.

ExampleThis example shows how to change qos to basic mode.Switch(config)# qos basic
This example shows how to check current qos mode.Switch# show qosQoS Mode: basicBasic trust: cos
qos cos
Syntaxqos cos <0-7>
Parametercos <0-7> Specify the CoS value for the interface.
DefaultDefault CoS value for interface is 0.
ModeInterface Configuration
Usage Sometimes, there is no qos information in the packets, such as CoS, DSCP, IP Precedence. But we still can give the priority for packets by configuring the interface default cos value. If there is no qos information in the packets, the device will use this default cos value and find the cos-queue map to get the final destination queue.Use “qos cos” command to assign port default cos value.
ExampleThis example shows how to configure default cos value 7 on interface fa1.Switch(config)# interface GigabitEthernet 1Switch(config-if)# qos cos 7Switch(config-if)# endSwitch# show qos interface GigabitEthernet 1Port | CoS | Trust State | Remark Cos | Remark DSCP | Remark IP Precgi1 | 7 enabled disabled disabled disabled
qos map
Syntaxqos map (cos-queue | dscp-queue | precedence-queue)SEQUENCE to <1-8>qos map (queue-cos | queue-precedence) SEQUENCE to <0-7>qos map queue-dscp SEQUENCE to <0-63>
Parametercos-queue Configure or show CoS to queue map
Managed Switch Softwaredscp-queue Configure or show DSCP to queue map
precedence-queue Configure or show IP Precedence to queue map.
queue-cos Configure or show queue to CoS map
queue-dscpConfigure or show queue to DSCP map
queue-precedenceConfigure or show queue to IP Precedence map
SEQUENCESpecify the cos, dscp, precedence or queue with one or multiple values.
<1-8>Specify th queue id
<0-7>Specify the cos or precedence values
<0-63>Specify the dscp values

Default The default values of cos-queue are showing in the following table.

CoSQueue ID
02
11
23
34
45
56
67
78

The default values of dscp-queue are showing in the following table.

DSCPQueue ID
0~71
8~152
16~233
24~314
32~395
40~476
48~557
56~638

The default values of ip precedence are showing in the following table.

IP PrecedenceQueue ID
01
12
23
34
45
56
67
78

The default values of queue-cos are showing in the following table.

Queue IDCoS
11
20
32
43

Command Line Interface User Guide

54
65
76
87

The default values of queue-dscp are showing in the following table.

Queue IDDSCP
10
28
316
424
532
640
748
856

The default values of queue-precedence are showing in the following table.

Queue IDIPPrecedence
10
21
32
43
54
65
76
87

Mode

Global Configuration

Usage

According to different trust type, packets will be assigned to different queue based on the specific qos map. For example, if the trust type is trust cos, the device will get the cos value in packet and reference the cos-queue mapping to assign the correct queue.

The queue to cos, dscp or precedence maps are used by remarking function. If the port remarking feature is enabled, the remarking function will reference these 3 tables to remark packets.

Example

This example shows how to map cos 6 and 7 to queue

  1. Switch(config)# qos map cos-queue 6 7 to 1 Switch# show qos map cos-queue

CoS to Queue mappings

COS 0 1 2 3 4 5 6 7

Queue 2 1 3 4 5 6 1 1

This example shows how to map queue 4 and 5 to

cos 7. Switch(config)# qos map queue-cos 4 5 to 7

Switch# show qos map queue-cos

Queue to CoS mappings

Queue 1 2 3 4 5 6 7 8---- CoS 1 0 2 7 7 5 6 7
qos queue
Syntaxqos queue strict-priority-num <0-8>qos queue weight SEQUENCEShow qos queueing
Parameterstrict-priority- num<0-8>Specify the strict priority queue number
weightSEQUENCESpecify the non-strict priority queue weight value.Thevalid queue weight value is from 1 to 127.

Default Default strict priority queue number is 8, it means all queues are strict priority queue.

The default queue weight for each queue is shown in following table.

Queue IDQueue Weight
11
22
33
44
55
69
713
815

Mode

Global Configuration

Usage

The device support total 8 queues for QoS queueing. It is able to set the queue to be strict priority queue or weighted queue to prevent starvation. The queue with higher id value has higher priority. First, you need to decide how many strict priority queue you need. The strict priority queue will always occupy the higher priority queue. For example, if you specify the strict priority number to be 2, then the queue 7 and 8 will be the strict priority queues and the others are weighted queues.

After you setup the number of strict priority queue, you need to setup the weight for the weighted queues by using "qos queue weight" command. And the bandwidth will shared by the weight you configured between these weighted queues.

ExampleThis example shows how to setup device with 3 strict priority queues and give other weighted queues with weight 5, 10, 15, 20, 25.Switch(config)# qos queue strict-priority-num 3Switch(config)# qos queue weight 5 10 15 20 25 Switch#show qos queueingqid-weights Ef - Priority1 - 5 dis- N/A2 - 10 dis- N/A3 - 15 dis- N/A4 - 20 dis- N/A5 - 25 dis- N/A6 - N/A ena- 67 - N/A ena- 78 - N/A ena- 8

qos remark

Syntaxqos remark (cos | dscp | precedence)
no qos remark (cos | dscp | precedence)
ParametercosEnable/Disable cos remarking.
dscpEnable/Disable dscp remarking.
precedenceEnable/Disable precedence remarking.

Default Default CoS remarking is disabled. Default DSCP remarking is disabled. Default IP Precedence remarking is disabled.

ModeInterface Configuration
Usage QoS remarking feature allow you to change priority information in packets based on egress queue. For example, you want all packets egress from interface fa1 queue 1 to remark the cos value to be 5 for next tier of device, you can enable the cos remarking feature on fa1 and configure the queue-cos map for queue 1 map to cos 5.Use “qos remark” command to enable remarking feature on specific type. And use “no qow remark” command to disable it.
ExampleThis example shows how to enable remarking features on interface fa1.Switch(config)#interface GigabitEthernet 1Switch(config-if)#qos remark cos Switch(config-if)#qos remark dscp Switch(config-if)#qos remark precedenceSwitch(config-if)#endSwitch#show qos interface GigabitEthernet 1Port | CoS | Trust State | Remark Cos | Remark DSCP | Remark IP Precgi1 | 0 | enabled | enabled | enabled | enabled |

qos trust

Syntaxqos trust (cos | cos-dscp | dscp | precedence)
ParametercosSpecify the device to trust CoS
cos-dscpSpecify the device to trust DSCP for IP packets, and trust CoS for non-IP packets.
dscpSpecify the device to trust DSCP
precedenceSpecify the device to trust IP Precedence
DefaultDefault QoS trust type is cos.
ModeGlobal Configuration
Usage In QoS basic mode, there are 4 trust types for device to judge the appropriate queue of the packets. This command is able to switch between these trust types.CoS:IEEE 802.1p defined 3bits priority value in vlan tag. Trust this value in packets and assign queue according to cos-queue map.DSCP:IETF RFC2474 defined 6bits priority value in IP packet (highest 6bits in ToS field). Trust this value in packets and assign queue according to dscp-queue map.IP Precedence:The highest 3bits priority value in IP packet ToS field. Trust this value in packets and assign queue according to precedence-queue map.CoS-DSCP:Trust DSCP for IP packets and assign queue according to dscp-queue map. Trust CoS for non-IP packets and assign queue according to cos-queue map.
ExampleThis example shows how to change qos basic mode trust types.Switch(config)# qos trust cos Switch(config)#qos trust cos-dscp Switch(config)# qos trustdscp Switch(config)# qos trust precedenceThis example shows how to check current qos trust type.Switch# show qosQoS Mode: basicBasic trust: ip-precedence

qos trust (Interface)

Syntaxqos trustno qos trust
Parameter
DefaultDefault interface qos trust state is enabled.
ModeInterface Configuration
UsageAfter QoS function is enabled in basic mode, the device also support per interface enable/disable the qos function. If the trust state on interface is enabled, all ingress packets of this interface will remap according to the trust type and the qos maps. Otherwise, all ingress packets will assign to queue 1.Use “qos trust” to enable trust state on interface and use “no qos trust” to disable trust state on interface.
ExampleThis example shows how to disable qos trust state on interface fa1. Switch(config)#interface GigabitEthernet 1Switch(config-if)#no qos trustSwitch(config-if)#endSwitch#show qos interface GigabitEthernet 1Port | CoS | Trust State | Remark Cos | Remark DSCP | Remark IP Precgi1 | 0 | disabled | disabled | disabled | disabled |
show qos
Syntaxshow qos
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show qos” command to show qos state and trust type.
ExampleThis example shows how to check current qos mode.Switch# show qosQoS Mode: basicBasic trust: cos

show qos interface

Syntaxshow qos interfaceIF_PORTS
ParameterIF_PORTSSelect port to show qos configurations.
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show qos interfaces” command to show port default cos ,remarking state and remarking type state informations.
ExampleThis example shows how to show qos configurations on interface fa1.Switch# show qos interface GigabitEthernet 1Port | CoS | Trust State | Remark Cos | Remark DSCP | Remark IP Precgi1 | 7 | enabled | disabled | disabled | disabled |

show qos map

Syntaxshow qos map [(cos-queue | dscp-queue | precedence-queue | queue-cos | queue-dscp | queue-precedence)]
Parameter cos-queueShow CoS to queue map.
dscp-queue Show DSCP to queue map.
precedence-queue Show IP Precedence to queue map. queue-cos Show queue to CoS map.
queue-dscp Show queue to DSCP map.
queue-precedence Show queue to IP Precedence map.
DefaultNo default value for this command.
ModePrivileged EXEC

Usage

Use "show qos map" command to show all kinds of mapping for

qos

remapping and remarking features.

Example

This example shows how to show all qos maps.

Switch(config)# show qos map

CoS to Queue mappings

COS 0 1 2 3 4 5 6 7

Queue 2 1 3 4 5 6 7 8

DSCP to Queue mappings

d1:d2 0 1 2 3 4 5 6 7 8 9

0: 1 1 1 1 1

1 1 1 2 2

1: 2 2 2 2 2 2 3 3 3 3

2: 3 3 3 3 4 4 4 4 4 4

3: 4 4 5 5 5 5 5 5 5 5

4: 6 6 6 6 6 6 6 6 7 7

5: 7 7 7 7 7 7 8 8 8 8

6: 8 8 8 8

IP Precedence to Queue mappings

IP Precedence 0 1 2 3 4 5 6 7

Queue 1 2 3 4 5 6 7 8

Queue to CoS mappings

Queue 1 2 3 4 5 6 7 8

CoS 1 0 2 3

4 5 6 7

Queue to DSCP mappings

Queue 1 2 3 4 5 6 7 8

DSCP 0 8

16 24 32 40 48 56

Queue to IP Precedence mappings

Queue 1 2 3 4 5 6 7 8

ipprec 0 1 2 3 4 5 6 7

show qos queueing

Syntax

show qos

queueing

Parameter

Default

No default value for this

command.

Mode

Privileged EXEC

Usage

Use "show qos queueing" command to show qos queueing

information.

ExampleThis example shows how to check current qos queueing information. Switch# show qos queueingqid-weights Ef - Priority1 - 3 dis- N/A2 - 5 dis- N/A3 - N/A ena- 34 - N/A ena- 45 - N/A ena- 56 - N/A ena- 67 - N/A ena- 78 - N/A ena- 8

26. Rate Limit

rate limit egress

Syntaxrate-limit egress <16-1000000>no rate-limit egress
Parameter<16-1000000>Specify the committed information rate.
DefaultDefault rate limit is disabled.
ModeInterface configuration
UsageUse the “rate-limit egress” command to configure the egress port shaper. Use the no form of this command to disable the shaper.You can verify your setting by entering the show running-config interfaces command.
ExampleThe following example show how to configure ingress port rate limit and egress port shaper.Switch(config)# interfaces gi1 Switch(config-if)# rate-limit egress 2048 Switch# show running-config interfaces gi1 interface gi1 rate-limit egress 2048

rate limit egress queue

Syntaxrate-limit egress queue <1-8> <16-1000000> no rate-limit egress queue <1-8>
Parameter<1-8>Specify the egress shaper queue number
<16-1000000>Specify the queue rate.
DefaultDefault queue rate limit is disabled.
ModeInterface configuration
UsageUse the “rate-limit egress queue” command to configure the egress queue shaper.Use the no form of this command to disable the queue shaper.You can verify your setting by entering the show running-config interfaces command.
ExampleThe following example show how to configure ingress port rate limit and egress port shaper.Switch(config)# interfaces gi1Switch(config-if)# rate-limit egress queue 3 2048 Switch# show running-config interfaces gi1 interface gi1 rate-limit egress queue 3 2048

rate limit ingress

Syntaxrate-limit ingress <16-1000000>no rate-limit ingress
Parameter<16-1000000>Specify the ingress limit rate
<1-8>Specify the egress shaper queue number
DefaultRate limiting is disabled.
ModeInterface configuration
UsageUse the “rate-limit ingress” command to limit the incoming traffic rate on a

Command Line Interface User Guide

port.

Use the no form of this command to disable the rate limit.
You can verify your setting by entering the show running-config interfaces command
ExampleThe following example show how to configure ingress port rate limit.
Switch(config)# interfaces gi1 Switch(config-if)# rate-limit ingress 128 Switch# show running-config interfaces gi1 interface gi1 rate-limit ingress 128

27. RMON

rmon event

Syntaxrmon event <1-65535> [log] [trap COMMUNITY] [description DESCRIPTION] [owner NAME]no rmon event <1-65535>
Parameter<1-65535>Specify event index to create or modify.
[log](Optional)Specify to show syslog.
[trap COMMUNITY](Optional)Specify SNMP community to show SNMP trap.
[description DESCRIPTION](Optional)Specify description of event
[owner NAME](Optional)Specify owner of event.
DefaultNo default is defined.
ModeGlobal Configuration
UsageUse the rmon event command to add or modify a RMON evnet entry. Use the no form of this command to delete.You can verify settings by the show rmon event command.
ExampleThe example shows how to add RMON event entry with log and trap action and then modify it action to log only.switch(config)# rmon event 1 log trap public description test owner adminswitch(config)# show rmon event 1

Rmon Event Index 1

Rmon Event Type : Log and

Trap Rmon Event Community :

public Rmon Event

Description : test

Rmon Event Last Sent :

Rmon Event Owner : admin

switch(config)# rmon event 1 log description test owner admin

switch(config)# show rmon event 1

Rmon Event Index 1

Rmon Event Type : Log

Rmon Event Community :

public Rmon Event

Description : test Rmon

Event Last Sent :

Rmon Event Owner : admin

rmon alarm

Syntax

rmon alarm <1-65535> interface IF_PORT (drop-events|octets|pkts|broadcast-pkts|multicast-pkts|crc-align-errors|undersize-pkts|oversize-pkts|fragments|jabbers|collisions|pkts64octets|pkts65to127octets|pkts128to255octets|pkts256to511octets|pkts512to1023octets|pkts1024to1518octets) <1-2147483647> (absolute|delta) rising <0-2147483647> <0-65535> falling <0-2147483647> <0-65535> startup (rising|rising-falling|falling) [owner NAME] no rmon alarm <1-65535>

Parameter<1-65535>Specify alarm index to create or modify
IF_PORTSpecify the interface to sample
(variable)Specify a mib object to sample
<1-2147483647>Specify the time in seconds that the alarm monitors the MIB variable.
(absolute|delta)Specify absolute to compare sample counter absolutely. Specify delta to compare delta counter between samples
<0-2147483647>Specify a number which the alarm trigger rising event
<0-65535>Specify event index when the rising threshold exceeds.
<0-2147483647>Specify a number which the alarm trigger falling event
<0-65535>Specify event index when the falling threshold exceeds.
(rising|rising -falling|fallinSpecify only to how rising or falling startup event. Or show either rising or falling startup event.

g)

[owner NAME]

(Optional) Specify owner of alarm.

DefaultNo default is defined.
ModeGlobal Configuration
UsageUse the rmon alarm command to add or modify a RMON alarm entry.Before add alarm entry, at least one event entry mustbe added. Use the no form of this command todelete.You can verify settings by the show rmon alarm command.
ExampleThe example shows how to add RMON alarm entry that sampleinterface fa1 packets delta count every 300 seconds. Trigger eventindex 1 if over than rising threshold 10000, trigger event index 2 iflower than falling threshold.switch(config)# rmon event 1 logswitch(config)# rmon event 2 logSwitch(config)# rmon alarm 1 interface gi1 pkts 300 delta rising10000 1 falling 100 1 startup rising-falling owner adminRmon Alarm Index 1Rmon Alarm Sample Interval 300Rmon Alarm Sample Interface :gi1 Rmon Alarm SampleVariable : Pkts Rmon AlarmSample Type :deltaRmon Alarm Type : Rising orFalling Rmon Alarm Rising Threshold :10000 Rmon Alarm Rising Event 1Rmon Alarm Falling Threshold100Rmon Alarm Falling Event 1Rmon Alarm Owner : admin
rmon history
Syntaxrmon history <1-65535> interface IF_PORT [buckets <1-65535>][interval <1-3600>] [owner NAME]no rmon history <1-65535>
Parameter<1-65535>Specify history index to create or modify.
IF_PORTSpecify the interface to sample
[bucket <1-65535>](Optional) Specify the maximum number of buckets.
[interval <>1-3600](Optional) Specify time interval for each sample

[owner NAME] (Optional)Specify owner of history

DefaultNo default is defined.
ModeGlobal Configuration
UsageUse the rmon history command to add or modify a RMON history entry. Use the no form of this command to delete.You can verify settings by the show rmon history command.
ExampleThe example shows how to add RMON history entry that monitor interface gi1 every 60 seconds and then modify it to monitor every 30 seconds.switch(config)# rmon history 1 interface gi1 interval 60 owner admin switch(config)# show rmon history 1Rmon History Index 1Rmon Collection Interface:gi1 Rmon History Bucket50Rmon history Interval 60Rmon History Owner : adminswitch(config)# rmon history 1 interface gi1 interval 30 owner admin switch(config)# show rmon history 1Rmon History Index 1Rmon Collection Interface:gi1 Rmon History Bucket50Rmon history Interval 30Rmon History Owner : admin

clear rmon interfaces statistics

Syntaxclear rmon interfaces IF_PORTS statistics
ParameterIF_PORTS specifies ports to clear
DefaultNo default is defined
ModePrivileged EXEC

Usage

Use the clear rmon interfaces statistics command to clear RMON etherStat statistics those are recorded on interface.

You can verify results by the show rmon interface statistics command.

ExampleThe example shows how to clear RMON etherStat statistics on interface gi1.
switch# clear rmon interfaces gi1 statistics
switch# show rmon interfaces gi1 statistics
=== Port gi1 ======
etherStatsDropEvents 0
etherStatsOctets 0
etherStatsPkts 0
etherStatsBroadcastPkts 0
etherStatsMulticastPkts 0
etherStatsCRCAlignErrors 0
etherStatsUnderSizePkts 0
etherStatsOverSizePkts 0
etherStatsFragments 0
etherStatsJabbers 0
etherStatsCollisions 0
etherStatsPkts64Octets 0
etherStatsPkts65to127Octets 0
etherStatsPkts128to255Octets 0
etherStatsPkts256to511Octets 0
etherStatsPkts512to1023Octets 0
etherStatsPkts1024to1518Octets 0

show rmon interfaces statistics

Syntaxshow rmon interfaces IF_PORTs statistics
ParameterIF_PORTS specifies ports to show
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show rmon interfaces statistics command to show RMON etherStat statistics of interface.
ExampleThe example shows how to show RMON etherStat statistics of interface gi1.switch(config)# show rmon interfaces gi1 statistics====== Port gi1 ======etherStatsDropEvents 0

etherStatsOctets : 81882

etherStatsPkts 578etherStatsBroadcastPkts 10etherStatsMulticastPkts 0etherStatsCRCAignErrors 0etherStatsUnderSizePkts 0etherStatsOverSizePkts 0etherStatsFragments 0etherStatsJabbers 0etherStatsCollisions 0etherStatsPkts64Octets 355etherStatsPkts65to127Octets 126etherStatsPkts128to255Octets 0etherStatsPkts256to511Octets42etherStatsPkts512to1023Octets55etherStatsPkts1024to1518Octets 0

show rmon event

Syntaxshow rmon event (<1-65535> | all)
Parameter<1-65535>specifies event index to show
allShow all existed event
DefaultNo default is defined
ModePrivileged EXEC
UsageUse the show rmon event command to show existed RMON event entry.
ExampleThe example shows how to show rmon event entry.
switch(config)# rmon event 1 log trap public description test owner admin
switch(config)# show rmon event 1
Rmon Event Index 1
Rmon Event Type : Log and Trap Rmon Event Community : public Rmon Event Description : test
Rmon Event Last Sent :
Rmon Event Owner : admin

show rmon event log

Syntaxshow rmon event <1-65535>log
Parameter<1-65535>specifies event index to show event log
DefaultNo entry and log is exist
ModePrivileged EXEC
UsageUse the show rmon event log command to show log triggered by RMON alarm.
ExampleThe example shows how to show rmon event log.switch(config)# show rmon event 1 log=Index 1Alarm Index 1Action : Startup FallingTime : (32918334) 3 days, 19:26:23.34Description : fa1.Pkts=0 <= 100

show rmon alarm

Syntaxshow rmon alarm (<1-65535> | all)
Parameter<1-65535>specifies alarm index to show
allShow all existed alarm
DefaultNo alarm is defined
ModePrivileged EXEC
UsageUse the show rmon alarm command to show existed RMON alarm entry.
ExampleThe example shows how to show rmon alarm entry.
Switch(config)# rmon alarm 1 interface gi1 pkts 300 delta rising 10000 1 falling 100 1 startup rising-falling owner admin
Rmon Alarm Index 1
Rmon Alarm Sample Interval 300
Rmon Alarm Sample Interface :gi1 Rmon Alarm Sample
Variable : Pkts Rmon Alarm
Sample Type :delta
Rmon Alarm Type : Rising or
Falling Rmon Alarm Rising Threshold :10000 Rmon Alarm Rising Event 1
Rmon Alarm Falling Threshold100
Rmon Alarm Falling Event 1
Rmon Alarm Owner : admin

show rmon history

Syntaxshow rmon history (<1-65535> | all)
Parameter<1-65535>specifies history index to show
allShow all existed history
DefaultNo history is defined
ModePrivileged EXEC
UsageUse the show rmon history command to show existed RMON history entry.
ExampleThe example shows how to show RMON history entry.
switch(config)# rmon history 1 interface gi1 interval 30 owner admin switch(config)# show rmon history 1Rmon History Index 1Rmon Collection Interface:gi1 Rmon History Bucket50Rmon history Interval 30Rmon History Owner : admin

show rmon history statistic

Syntaxshow rmon history <1-65535> statistic
Parameter<1-65535> specifies history index to show history statistic
DefaultNo history is defined
ModePrivileged EXEC
UsageUse the show rmon history statistic command to show statistics that are recorded by RMON history.
ExampleThe example shows how to show RMON history statistics switch(config)# show rmon history 1 statistics = Sample Index 2 Interval Start : (32940466) 3 days, 19:30:04.66 DropEvents 0 Octets : 117226 Pkts 763 BroadcastPkts 9 MulticastPkts 0 CRCAignErrors 0 UnderSizePkts 0 OverSizePkts 0 Fragments 0 Jabbers 0 Collisions 0 Utilization 1 = Sample Index 1 Interval Start : (32939462) 3 days, 19:29:54.62 DropEvents 0 Octets 220 Pkts 3 BroadcastPkts 1 MulticastPkts 0 CRCAignErrors 0 UnderSizePkts 0

OverSizePkts 0

Fragments 0

Jabbers : 0Collisions : 0Utilization : 0
28. SNMPshow snmp
Syntaxshow snmp
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the status of Simple Network Management Protocol (SNMP), use the command show snmp in the Privileged EXEC mode.
ExampleThe following example shows the SNMP status.Switch# show snmpSNMP is disabled.

show snmp community

Syntaxshow snmp community
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the configuration of snmp communities, use the command show snmp community in the Privileged EXEC mode.
ExampleThe following example shows the SNMP communities configuration.
Switch# show snmp communityCommunity Name Group Name ViewAccess---- private allropublic allrwTotal Entries: 2

show snmp engineid

Syntaxshow snmp engineid
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the SNMPv3 engine IDs defined on the switch, use the commandshow snmp engineid in the Privileged EXEC mode.
ExampleThe following example shows the SNMP engind id information.Switch# show snmp engineidLocal SNMPV3 Engine id: 00036d001122IP address Remote SNMP engineID---- 192.168.1.11 00036D10000ATotal Entries: 1

show snmp group

Syntaxshow snmp group
ParameterN/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the SNMP group configuration on the switch, use the commandshow snmp group in the Privileged EXEC mode.
ExampleThe following example shows the SNMP group configuration.Switch# show snmp groupGroup Name Model Level ReadViewWriteView Not--------private v2c noauth allall ---v3 v3 auth allall allTotal Entries: 2

show snmp host

Syntaxshow snmp host
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the SNMP trap notification recipients defined on the switch, use the command show snmp host in the Privileged EXEC mode.
ExampleThe following example shows the configuration of SNMP notification recipients on the switch.
Switch# show snmp host
ServerCommunity NameNotification VersionNotification Type
192.168.1.11privatev1trap
Total Entries: 1

show snmp trap

Syntaxshow snmp trap
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the status of SNMP traps on the switch, use the command show snmp trap in the Privileged EXEC mode.
ExampleThe following example shows the status of SNMP traps.Switch# show snmp trapSNMP auth failed trap : Enable SNMPlinkUpDown trap : Enable SNMP cold-start trap : EnableSNMP warm-start trap : Enable

show snmp view

Syntaxshow snmp view
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the SNMP view defined on the switch, use the command show snmp view in the Privileged EXEC mode.
ExampleThe following example shows the configuration of SNMP view.
Switch# s how snmp viewView Name Subtree OIDOID Mask View Type
---- ---- ----
all .1
all included
private .1.3.3.1
all included
Total Entries: 2

show snmp user

Syntaxshow snmp user
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo show the SNMP users defined on the switch, use the command show snmp user in the Privileged EXEC mode.
ExampleThe following example shows the configuration of SNMP user.Switch# show snmp userUsername: v3Password: *****Privilege Mode: rwAccess GroupName: v3Authentication Protocol: md5Encryption Protocol: noneAccess SecLevel: authTotal Entries: 1
snmp
Syntaxsnmp
Parameter N/A
DefaultSNMP is disabled by default

Mode

Global Configuration

Usage To enable the SNMP on the switch, use the command snmp in the Global Configuration mode. Otherwise, use the no form of the command to disable to SNMP.
ExampleThe following example enables the SNMP.
Switch(config)# snmp
snmp community
Syntaxsnmp community community-name [view view-name] (ro|rw) snmp community community-name group group-name no snmp community community-name
Parametercommunity-name The SNMP community name. Its maximum length is 20 characters.
view view-name Specify the SNMP view configured by the command snmp view to define the object available to the community.
ro Read only access (default)
rw Writable access
group group-name Specify the SNMP group configured by the command snmp group to define the object available to the community.
DefaultNo SNMP community is configured
ModeGlobal Configuration
UsageTo define the SNMP community that permit access for SNMP v1 and v2, use the command snmp community in the Global Configuration mode.
ExampleThe following example defines the SNMP community named private with the default view all, and the access right is read-only. Switch(config)# snmp community private ro

snmp engineid

Syntaxsnmp engineid(default|ENGINEID)
ParameterdefaultDefault engine ID generated on the basis of the switch MAC address.
ENGINEIDSpecify SNMP engine ID. The engine ID is the 10 to 64 hexadecimal characters, and the hexadecimal number must be divided by 2.
DefaultThe default SNMP engine ID on the switch is based on switch MAC address.
ModeGlobal Configuration
UsageTo define the SNMP engine on the switch, use the command snmp engineid in the Global Configuration mode.
ExampleThe following example configure the switch SNMP engine IDSwitch(config)# snmp engineid 00036D001122

snmp engineid rmote

Syntaxsnmp engineid remote (ip-addr|ipv6-addr) ENGINEIDno snmp engineid remote (ip-addr|ipv6-addr)
ParameterENGINEIDSpecify SNMP engine ID. The engine ID is a 10 to 64 hexadecimal characters, and the hexadecimal number must be divided by 2.
ip-addrIP address of the remote host
ipv6-addrIPv6 address of the remote host
DefaultN/A
ModeGlobal Configuration

Usage To define the remote host for SNMP engine, use the command snmp engineid remote in the Global Configuration mode; and use the no form of the command to delete the remote host from the SNMP engine.

Example The following example adds the remote 192.168.1.11 into SNMP engine Switch(config)# snmp engineid remote 192.168.1.11 00036D10000A

Command Line Interface User Guide

snmp group

Syntaxsnmp group group-name (1|2c|3) (noauth|auth|priv) read-view write-view write-view [notify-view notify-view] no snmp group group-name security-mode version (1|2c|3)
Parametergroup-nameSpecify SNMP group name, and the maximum length is 30 characters.
(1|2c|3) Specify the SNMP version.
noauth Specify that no packet authentication is performed.
auth Specify that no packet authentication without entryption is performed. It is applicable only to the SNMPv3 security mode.
priv Specify that no packet authentication with entryption is performed. It is applicable only to the SNMPv3 security mode.
read-view read- viewSet the view name that enables configuring the agent, and its maximum length is 30
write-view write- viewcharacters. Set the view name that enables viewing
notify-view notify- viewonly, and its maximum length is 30 characters. Sets the view name that sends only traps with contents that is included in SNMP view selected for notification. The maximum length is 30 characters.
DefaultNo group entry is existed.
ModeGlobal Configuration
Usage To define the SNMP group, use the command snmp group in the Glocal Configuration mode, and use the no form of the command to delete the configuration.
ExampleThe following example adds SNMPv3 group
Switch(config)# snmp group v3 version 3 auth read-view all write-view all notify-view all

snmp host

Syntax

snmp host (ip-addr|ipv6-addr|hostmane) [traps|informs] [version (1|2c)]

community-name [udp-port udp-port] [timeout timeout] [retries retries]

snmp host (ip-addr|ipv6-addr|hostmane) [traps|informs] version 3[(auth|noauth|priv)] community-name [udp-port udp-port] [timeout timeout] [retries retries]no snmp host (ip-addr|ipv6-addr|hostmane)[traps|informs] [version (1|2c|3)]
ip-addrThe IP adderss of recipet.
ipv6-addrThe IPv6 adderss of recipet.
hostnameThe host name of recipet.
trapsSend SNMP traps to the host. It is the default action.
informsSend SNMP informs to the host.
version (1|2c|3)Specify the SNMP version.
noauthSpecify that no packet authentication is performed. It is applicable only to the SNMPv3 security mode.
authSpecify that no packet authentication without entryption is performed. It is applicable only to the SNMPv3 security mode.
privSpecify that no packet authentication with entryption is performed. It is applicable only to the SNMPv3 security mode.
community-nameThe SNMP community sent with the notification.
udp-port udp-portSpecify the UDP port number.
timeout timeoutSpecify the SNMP informs timeout
retries retriesSpecify the retry counter of the SNMP informs.
DefaultNo SNMP host is configured.The default SNMP version for the command is SNMPv1.
ModeGlobal Configuration
UsageTo configure the hosts to receive SNMP notifications, use the command snmp host in the Global Configuration mode; and use the no form of the command to delete the configuration.
ExampleThe following example adds the recipet 192.168.1.11 for the SNMP traps notification.
Switch(config)# snmp host 192.168.1.11 private
snmp trap
Syntaxsnmp trap (auth|cold-start|linkUpDown|port-security|warm-start)no snmp trap (auth|cold-start|linkUpDown|port-security|warm-start)
authEnable the SNMP authentication failure trap.
cold-startEnable the SNMP cold start-up failure trap.

linkUpDown

Enable the SNMP link up and down failure trap.

port-securityEnable the SNMP port security trap.
warm-startEnable the SNMP warm start-up failure trap.
DefaultAll the SNMP traps are enabled.
ModeGlobal Configuration
Usage To send the SNMP traps, use the command snmp trap in the Global Configuration mode; and use the no form of the command to disable the SNMP traps.
ExampleThe following example disables and enables the SNMP link up and down traps individually.
Switch(config)# no snmp trap linkUpDownSwitch(config)# snmp trap linkUpDown
snmp user
Syntaxsnmp user username group-name [auth (md5|sha) AUTHPASSWD] snmp user username group-name auth (md5|sha) AUTHPASSWD priv PRIVPASSWD no snmp user username
usernameSpecify the SNMP user name on the host that connects to the SNMP agent. The max character is 30 characters. For the SNMP v1 or v2c, the user name must match the community name by the command snmp host.
group-nameSpecify the SNMP group to which the SNMP user belongs. The SNMP group should be SNMPv3 and configured by the command snmp group.
auth (md5|)Specify the HMAC-MD5-96 authentication protocol as the user authentication.
auth (sha|)Specify the HMAC-SHA-96 authentication protocol as the user authentication.
AUTHPASSWDThe password for authentication and the range of length is from 8 to 32 characters.
Priv PRIVPASSWDThe private password for the privacy key, and the range of length is from 8 to 64 characters.
DefaultN/A
ModeGlobal Configuration
UsageTo define a SNMP user, use the command snmp user in the GlobalConfiguration mode; and use the no form to delete the SNMP user.
ExampleThe following example adds SNMP user v3 into the group v3 by the MD5 authentication.Switch(config)# snmp user v3 v3 auth md5 12345678
snmp view
Syntaxsnmp view view-name subtree oid-tree oid-mask (all|oid-mask) viewtype(included|excluded)no snmp view view-name subtree (all|oid-tree)
view-nameThe SNMP view name. Its maximum length is 30 characters.
subtree oid-treeSpecify the ASN.1 subtree object identifier (OID) to be included or excluded from the SNMP view.
oid-mask (all|oid-mask)Specify the OID family mask. It is used to define a family of view subtrees. For example, OID mask FA.80 is is 11111010.10000000. The length of the OID mask must be less than the length of subtree OID.
iewtype(included|excluded)Include or exclude the selected MIBs in the view.
DefaultN/A
ModeGlobal Configuration
Usage To configure the SNMP view, use the command snmp view in the Global Configuration mode; and use the no form of the command to delete the SNMP view.The default SNMP view cannot be deleted and modified by users.By default, the maximum numbers of SNMP view is limited to 16.
ExampleThe following example defines the SNMP view.Switch(config)# snmp view private subtree 1.3.3.1 oid-mask all viewtype included

29. Spanning Tree

instance (MST)

Syntaxinstance instance-id vlan vlan-listno instance instance-id vlan vlan-list
Parameterinstance-idThe MSTP instance ID from 0 to 15.
vlan vlan-listAdd the VLAN list to the MSTP instance.
DefaultAll VLANs are mapped to the Common and Internal Spanning Tree (CIST)instance (instance 0).
ModeMST Configuration
Usage To map the VLAN to the Multiple Spanning Tree (MSTP)instances, use the command instance in the MST Configuration mode; and use the no form of the command to restore its default configuration.All VLANs that are not explicitly configured to an MSTP instance are mapped to the CIST instance (instance 0).For two or more switches in the samp MSTP region, their VLAN mapping, name and revision number configuration, must be the same.
ExampleThe following example maps the vlan 10-20 to the MSTP instance 1, and VLAN 100 to instance 2.Switch(config)# spanning-tree mst configuration Switch(config-mst)# instance 1 vlan 10-20Switch(config-mst)# instance 2 vlan 100
name (MST)
Syntax name name-strno name
Parametername-strThe MSTP instance name. Its maximum length is 32
DefaultThe default MSTP name is the switch MAC address.

Mode

MST Configuration

UsageTo define the name for MSTP instance, use the commandnamein the MST Configuration mode; and use thenoform to restore the default name configuration.
ExampleThe following example configures the name of MST instance to Valkyrie.Switch(config)# spanning-tree mst configurationSwitch(config-mst)# name Valkyrie

revision (MST)

Syntax revision rev
no revision
ParameterrevThe MSTP revision number. Its valid rage is from 0 to
DefaultThe default revision number is 0.
ModeMST Configuration
Usage To define the revision for the MSTP configuration, use the command revision in the MST Configuration mode; and use the no form of the command to restore it default configuration.
ExampleThe following example defines the revision MSTP configuration to 1.
Switch(config)# spanning-tree mst configurationSwitch(config-mst)# revision 1

show spanning-tree

Syntaxshow spanning-tree
Parameter N/A
DefaultN/A
ModePrivileged EXEC
UsageTo display the spanning tree configuration, use the command spanning-tree inthe Privileged EXEC mode
ExampleThe following example shows the spanning tree configuration.Switch# show spanning-treeSpanning tree enabled mode RSTPDefault port cost method: shortRoot ID Priority 32768Address 00:11:22:33:44:55This switch is the rootHello Time 4 sec Max Age 10 sec Forward Delay25 secNumber of topology changes 2 last change occurred 20:34:30 agoTimes: hold 0, topology change 0, notification 0hello 4, max age 10, forward delay 25InterfacesName State Prio.Nbr Cost Sts Role EdgePort Type---- -- ---- -- ---- -- ----fa23 enabled 128.23 19 Blk Desg No P2P(RSTP)

show spanning-tree interface

Syntaxshow spanning-tree interface IF_PORTS[statistic]
ParameterinterfaceIF_PORTSAn interface ID or the list of interface IDs.
statisticDisplay the STP statistic for an interface.
DefaultN/A
ModePrivileged EXEC
UsageTo show the STP configuration and statistics for an interface, use the command show spanning-tree interface in the Privileged EXEC mode.
ExampleThe following example shows the STP configuration for the interface fa23.
Switch# show spanning-tree interfaces fa23 Port fa23
enabledState: forwarding Role:designatedPort id: 128.23 Port cost: 19Type: P2P (RSTP) Edge Port: NoDesignated bridge Priority : 32768 Address:00:11:22:33:44:55Designated port id: 128.23 Designated pathcost: 0BPDU Filter: Disabled BPDU guard:DisabledBPDU: sent 21886, received 0
The following example shows the STP statistic for the interface fa23.
Switch# show spanning-tree interfaces fa23 statistic STP Port Statistic================
Port : fa23Configuration BDPUs Received : 0TCN BDPUs Received : 0MSTP BDPUs Received : 0Configuration BDPUs Transmitted : 0 TCNBDPUs Transmitted : 0MSTP BDPUs Transmitted : 21917================

show spanning-tree mst

Syntaxshow spanning-tree mst instace-id
Parameterinstance-idThe MSTP instance ID. Its valid range is from 0 to 15.
DefaultN/A
ModePrivileged EXEC
UsageTo show the information for a specific MSTP instance, use the command show spanning-tree mst in the Privileged EXEC mode.
ExampleThe following example displays the information for the MSTP instance 0 and 1 individually.

Switch# show spanning-tree mst 0

MST Instance Information

Designated Root Bridge : 32768/ 0/00:11:22:33:44:55

External Root Path Cost : 0

Regional Root Bridge : 32768/ 0/00:11:22:33:44:55

Internal Root Path Cost : 0

Designated Bridge : 32768/0/00:11:22:33:44:55

Root Port : 0/0

Max Age : 10

Forward Delay : 25

Topology changes : 3

Last Topology Change : 930

VLANs mapped: 1-99,111-

4094

Interface Role Sts Cost Prio.Nbr Type

fa23 Desg FWD 19 128.23 P2P (RSTP)

Switch# show spanning-tree mst 1

MST Instance Information

Instance Type : MSTI (1)

Bridge Identifier : 32768/0/00:11:22:33:44:55

Regional Root Bridge : 32768/ 0/00:11:22:33:44:55 Internal

Root Path Cost : 0

Remaining Hops : 10

Topology changes : 3

Last Topology Change : 933

VLANs mapped: 100-110

Interface Role Sts Cost Prio.Nbr Type

fa23 Desg FWD 19 128.23 P2P (RSTP)

show spanning-tree mst configuration

Syntax

show spanning-tree mst configuration

Parameter

N/A

DefaultN/A
ModePrivileged EXEC
UsageTo show the global MST configuration, use the commandshow spanning-tree mst configurationin the Privileged EXEC mode.
ExampleThe following example shows the global MST configuration.Switch# show spanning-tree mst configuration Name[00:11:22:33:44:55]Revision 0 Instances configured 2Instance Vlans mapped---- 0 1-99,111-40941 100-110----

show spanning-tree mst interface

Syntaxshow spanning-tree mst instance-id interfaceIF_PORTS
Parameterinstance-id The MSTP instance ID. Its valid range is from 0 to 15.interface An interface ID or the list of interface IDs.IF PORTS
DefaultN/A
ModePrivileged EXEC
UsageTo show the MSTP instance information on the specific interface, use the command show spanning-tree mst interface in the Privileged EXEC mode.
ExampleThe following example shows the MSTP 0 and 1 information individually on the interface fa23.
Switch# show spanning-tree mst 0 interfaces fa23 MST Port
Information
Instance Type : CIST (0)

Port Identifier : 128/23 External

Path-Cost : 0

/19

Internal Path-Cost : 0 /19

Designated Root Bridge : 32768/00:11:22:33:44:55 External

Root Cost : 0

Regional Root Bridge : 32768/00:11:22:33:44:55 Internal

Root Cost : 0

Designated Bridge : 32768/00:11:22:33:44:55 Internal

Port Path Cost : 19

Port Role : Designated

Port State : Forwarding

Switch# show spanning-tree mst 1 interfaces fa23 MST Port

Information

Instance Type : MSTI (1)

Port Identifier : 128/23 Internal Path-

Cost : 0

/19

Regional Root Bridge : 32768/00:11:22:33:44:55 Internal

Root Cost : 0

Designated Bridge : 32768/00:11:22:33:44:55 Internal

Port Path Cost : 19

Port Role : Designated

Port State : Forwarding

spanning-tree

Syntax spanning-tree

no spanning-tree

Parameter N/A

Default

Spanning-Tree is enabled by

default.

Mode

Global Configuration

Usage To enable the spanning tree, use the command spanning-tree in the Global Configuration mode; and use the no form of the command to disable the spanning tree on the switch.

Example

The following example disables and enables the spanning tree individually.

Switch(config)# no spanning-tree

Switch(config)# spanning-tree

spanning-tree bpdu

Syntaxspanning-tree bpdu (filtering|flooding)no spanning-tree bpdu
ParameterfilteringFilter the BPDU when STP is disabled.
floodingFlood the BPDU when the STP is disabled.
DefaultThe default configuration is flooding.
ModeGlobal Configuration
Usage To configure the action of Bridge Protocol Data Unit (BPDU) handling when STP is disabled, use the command spanning-tree bpdu in the Global Configuration mode. To restore the configuration to the default action, use the no form of the command.
ExampleThe following example configures the action of BPDU handling to filter when the STP is disabled.
Switch(config)# spanning-tree bpdu filtering

spanning-tree bpdu-filter

Syntax spanning-tree bpdu-filterno spanning-tree bpdu-filter
Parameter N/A
DefaultBPDU filter is disabled.
ModeInterface Configuration
UsageTo enable the BPDU filter, use the command spanning-tree bpdu-filter in the Interface Configuration mode; and use no form of the command to disable the BPDU filter.
ExampleThe following example enables the BPDU filter for interface fa1.
Switch(config)# interface fa1Switch(config-if)# spanning-tree bpdu-filter

spanning-tree bpdu-guard

Syntax spanning-tree bpdu-guard no spanning-tree bpdu-guard
Parameter N/A

DefaultBPDU guard is disabled
ModeInterface Configuration

Usage To enable the BPDU filter, use the command spanning-tree bpdu-guard in the Interface Configuration mode; and use no form of the command to disable the BPDU filter.

ExampleThe following example enables the BPDU guard for interface gi1.

Switch(config)# interface gi1 Switch(config-if)# spanning-tree bpdu-guard

spanning-tree cost
Syntax spanning-tree cost cost no spanning-tree cost

ParametercostThe port path cost. For the long path cost method, its valid range is from 0 to 200000000; and the valid range is from 0 to 65535 for the short path cost method. The value 0 indicates AUTO, which the port path cost is by the port speed and the path cost

Default The default port path cost is 0, and it is determined by the port speed and the path cost method (long or short).

InterfaceLongShort
Gigabit Ethernet (1000Mbps)200004
Fast Ethernet (100Mbps)20000019
Ethernet (10Mbps)2000000100

Mode Interface Configuration

Usage To configure the STP path cost for an interface, use the command spanning-tree cost in the Interface Configuration mode; and use the no form of the command to restore it to the default configuration.

Example The following example configures port path cost to 30000 for interface fa2.

Switch(config)# interface gi1 Switch(config-if)# spanning-tree cost 30000

spanning-tree forward-time
Syntax spanning-tree forward-time seconds no spanning-tree forward-time

ParametersecondsSTP forward delay time. Its valid range is from 4 to 10

Default The default forward delay time is 15 seconds.

Mode Global Configuration

Usage To configure the STP bridge forward delay time, which is the amount of time that a port remains in the Listening and Learning states before it enters the Forwarding state, use the command spanning-tree forward-time in the Global Configuration mode. To restore it to the default configuration, use the no form of the command.

When the forward delay time is configured, the following relationship should be maintained:

2 * (forward-time - 1) >= Max-Age

Example The following example configures STP forward delay time to 25.

Switch(config)# spanning-tree forward-time 25

spanning-tree hello-time

Syntax spanning-tree hello-time seconds

no spanning-tree hello-time

ParametersecondsSTP hello time in second. Its valid range is from 1 to 10
seconds.
DefaultThe default STP hello time is 2 seconds.
ModeGlobal Configuration
Usage STP hello time is the time interval to broadcast its hello message to other bridges. To configure the STP hello time, use the command spanning-tree hello-time in the Global Configuration mode; and use the no form of the command to restore the hello time to default configuration.When the hello time is configured, the following relationship should be maintained:Max-Age >= 2 * (hello-time + 1)
ExampleThe following example configures BPDU hello time to 4.Switch(config)# spanning-tree hello-time 4

spanning-tree edge

Syntax spanning-tree edge no spanning-tree edge

Parameter N/A

Default The default configuration is disabled.

Mode Interface Configuration

Usage To enable the edge mode for an interface, use the command spanning-tree edge in the Interface Configuration mode; and use the no form of the command to restore it to the default configuration.

In the edge mode, the interface would be put into the Forwarding state immediately upon link up. If the edge mode is enabled for the interface and there are BPDUs received on the interface, the loop might be occurred in the short time.

Example

The following example enables the edge mode for the interface fa1.

Switch(config)# interface fa1

Switch(config-if)# spanning-tree edge

spanning-tree link-type

Syntaxspanning-tree link-type (point-to-point|shared)no spanning-tree link-type
Parameterpoint-to-pointSpecify the port link type is point to point.
sharedSpecify the port link type is shared.
DefaultThe default configuration link type is point-to-point for the ports with full duplex configuration, and shared for the ports with half duplex settings.
ModeInterface Configuration
Usage To set the RSTP link-type for an interface, use the command spanning-tree link in the Interface Configuration mode. For the default configuration, use the no form of the command.
ExampleThe following example configures the link-type to point-to-point for the interface fa1.
Switch(config)# interface fa1Switch(config-if)# spanning-tree link-type point-to-point

spanning-tree max-hops

Syntax spanning-tree max-hops countsno spanning-tree max-hops
ParametercountsSpecify the number of hops in an MSTP regision beforethe BPDU is discarded. The valid range is 1 to 40.
DefaultThe default max-hops configuration is 20.
ModeGlobal Configuration

Usage

To specify the number of hops for a BPDU to be forwarded in the MSTP region, use the command spanning-tree max-hops in the Global Configuration mode; and restore the setting to default configuration by the no form of the command.

ExampleThe following example specifies the max hops for BPDU to 10.
Switch(config)# spanning-tree max-hops 10

spanning-tree maximum-age

Syntax spanning-tree maximum-age secondsno spanning-tree maximum-age
ParametersecondsThe interval in seconds for a switch to wait the configuration messages, without attempting to redefineduration.
DefaultThe default maximum age is 20 seconds.
ModeGlobal Configuration
Usage To set the interval in seconds that the switch can wait without receiving the configuration messages, before attempting to redefine its own configuration, use the command spanning-tree maximum-age in the Global Configuratio mode. For the default configuration, use the no form of the commands.When the maximum age is configured, the following relationship should be maintained:2 * (forward-time - 1)>= Max-Age >= 2 * (hello-time + 1)
ExampleThe following example configures STP maximum age to 10.Switch(config)# spanning-tree maximum-age 10

spanning-tree mcheck

Syntaxspanning-tree mechek
Parameter N/A
DefaultN/A
ModeInterface Configuration
Usage To restart the Spanning Tree Protocol (STP) migration process(re-negotiate forcibly with its neighborhood) on the specific interface, use the command spanning-tree mcheck in the Interface Configuration mode
ExampleThe following example restarts the STP negotiation on the interface fa1.Switch(config)# interface fa1Switch(config-if)# spanning-tree mecheck

spanning-tree mode

Syntaxspanning-tree mode (mstp|rstp|stp) no spanning-tree force-version
ParametermstpEnable the Multiple Spanning Tree (MSTP) operation.
rstpEnable the Rapid Spanning Tree (RSTP) operation.
stpEnable the Spanning Tree (STP) operation.
DefaultThe default mode is rstp.
ModeGlobal Configuration
Usage To specify the spanning tree operation mode, use the command of spanning- tree mode in the Global Configuration mode. For the default configuration, use the command no spanning-tree force-version in the Global Configuration mode.When the switch is configured as MSTP mode, it can use STP and RSTP for the backward compatibility with switches working in STP and RSTP mode individually. For the RSTP configuration, the switch can also use STP for the switches working in the STP operation.
ExampleThe following example sets the STP operation to MSTP.
Switch(config)# spanning-tree mode mstp

spanning-tree mst configuration

Syntaxspanning-tree mst configuration

Default N/A

Mode Global Configuration

Usage To enter the MST configuration mode for the MSTP configuration modification, use the command spanning-tree mst configuration in the Global Configuration mode.

Example The following example modifies the MSTP configuration in the MST Configuration mode.

Switch(config)# spanning-tree mst configuration Switch(config-mst)# instance 1 vlan 10-20 Switch(config-mst)# name Valkyrie Switch(config-mst)# revision 1

spanning-tree mst cost

Syntaxspanning-tree mst instance-id cost costno spanning-tree mst instance-id cost cost
Parameterinstance-idSpecify the instance ID. The valid range is from 0 to 15.
costSpecify the path cost for the interfaces on the specific MSTP instance. For the long path cost method, its valid range is from 0 to 200000000; and the valid range is from 0 to 65535 for the short path cost method. The value 0 indicates AUTO, which the port path cost is the port speed and the path cost

Default The default port path cost is 0, and it is determined by the port speed and the path cost method (long or short).

InterfaceLongShort
Gigabit Ethernet (1000Mbps)200004
Fast Ethernet (100Mbps)20000019
Ethernet (10Mbps)2000000100

Mode Interface Configuration

Usage

To configure the path cost for MSTP calculations, use the command spanning-tree mst cost in the Interface Configuration mode. If the loop occurs, the MSTP considers the path cost when selecting the interface into the Forwarding state. For the default configuration, use the no form of the command.

When configuring the path cost on the CIST (instance 0), it is equal to the

command spanning-tree cost in the Interface Configuration mode.
ExampleThe following example configures the path cost of interface fa1 on the instance 1 to 30000Switch(config)# interface gi1Switch(config-if)# spanning-tree mst 1 cost 30000

spanning-tree mst port-priority

Syntaxspanning-tree mst instance-id port-priority priority no spanning-tree mst instance-id port-priority
Parameterinstance-idSpecify the instance ID. The valid range is from 0 to 15.
prioritySpecify the interface priority on the specific instance.
DefaultThe default port priority on each instance is 128
ModeInterface Configuration
Usage To configure the interface priority on the specific instances, use the command spanning-tree mst port-priority in the Interface Configuration mode. For the default configuration, use the no form of the command.
The priority value must be the multiple of 16. When the port priority on the CIST (instance 0) is configured, it is equal to the command spanning-tree port-priority in the Interface Configuration mode.
ExampleThe following example sets the port priority of gi1 on the instance 1 to 144; and set the port priority of gi1 on the CIST (instance 0) to 96
Switch(config)# interface gi1
Switch(config-if)# spanning-tree mst 1 port-priority 144
Switch(config-if)# spanning-tree mst 0 port-priority 96

spanning-tree mst priority

Syntaxspanning-tree mst instance instance-id priority priorityno spanning-tree mst instance instance-id priority

Command Line Interface
User Guide

Parameterinstance-idSpecify the instance ID. The valid range is from 0 to 15.
prioritySpecify the bridge priority on the specific instance. The
valid range is from 0 to 61440. It nsures the probability that the switch is selected as the root bridge, and the lower values has the higher priority for the switch to be selected as the root bridge.
DefaultThe default priority on each instance is 32768.
ModeGlobal Configuration
Usage To configure the bridge priority on the specific instance, use the command spanning-tree mst priority in the Global Configuration mode. To restore the default configuration, use the no form of the command.The value of bridge priority must be the multiple of 4096. A switch with the lowest priority is the root of the STP topology. For the configuration of bridge priority on the CIST (instance 0), it is equal to the command spanning-tree priority in the Global Configuration mode.
ExampleThe following example modifies the bridge priority to 4096 on instance 0 and instance 1 individually.Switch(config)# spanning-tree mst 0 priority 4096Switch(config)# spanning-tree mst 1 priority 4096

spanning-tree pathcost method

Syntaxspanning-tree pathcost method (long|short)
ParameterlongThe range for the path cost is from 1 to 200000000.
shortThe range for the path cost is from 1 to 65535.
DefaultThe default path cost method is long.
ModeGlobal Configuration
UsageTo set the spanning tree path cost method, use the command spanning-tree pathcost method in the Global Configuration mode.
If the short method is specified, the switch calculates the path cost in the range 1 through 65535; Otherwise, it calculates the path cost in the range 1 to 200000000.
ExampleThe following example modifies path cost method to short.
Switch(config)# spanning-tree pathcost method short

spanning-tree port-priority

Syntaxspanning-tree port-priority priorityno spanning-tree port-prioritypriority
Parameterpriority from 0 to 240.Specify the priority for an interface. The valid range is
DefaultThe default priority for each interface is 128.
ModeInterface Configuration

Usage To configure the STP priority for an interface, use the command spanning- tree port-priority in the Interface Configuration mode. For the default configuration, use the no form of the command.

The priority value must be the multiple of 16.

Example The following example modifies the port priority to 96 for the interface gi2.

Switch(config)# interface gi2 Switch(config-if)# spanning-tree port-priority 96

spanning-tree priority

Syntaxspanning-tree prioritypriorityno spanning-tree priority
Parameterinstance-idSpecify the instance ID. The valid range is from 0 to 15.
prioritySpecify the bridge STP priority. The valid range is from 0 to 61440. It nsures the probability that the switch is selected as the root bridge, and the lower values has the higher priority for the switch to be selected

as the root

bridge of the STP topology.

Default

The default priority for the switch 32768.

Mode Global Configuration

Usage To configure the bridge priority, use the command spanning-tree mst

priority in the Global Configuration mode. To restore the default configuration, use the no form of the command.

The value of bridge priority must be the multiple of 4096. A switch with the lowest priority is the root of the STP topology. When switches with the same priority configuration in the environment, the switch with lowest MAC address would be selected as the root bridge.

Example The following example modifies the bridge priority to 4096.

Switch(config)# spanning-tree priority 4096

spanning-tree tx-hold-count

Syntax spanning-tree tx-hold-count

count

no spanning-tree tx-hold-count

Parameter count Specify the tx-hold-count used to limit the maximum

numbers of packets transmission per second. The valid range is from 1 to 10.

Default The default value is

6.

Mode Global Configuration

Usage To limit the maximum numbers of packets transmission per

second, use the command spanning-tree tx-hold-count in the Global Configuration mode. For the default configuration, use the no form of the command.

Example The following example sets the tx-hold-count to 4.

Switch(config)# spanning-tree tx-hold-count 4

30. Storm Control

show storm-control

Syntax

show storm-control

show storm-control interface IF_PORTS
ParameterIF_PORTSSpecify port to show.
DefaultNo default value for this command
ModePrivileged EXEC
UsageUse “show storm-control” command to show all storm control related configurations including global configuration and per port configurations.Use “show storm-control interface” command to show selected port storm control configurations.
ExampleThis example shows how to show storm control global configuration.Switch#show storm-controlStorm control preamble and IFG: Excluded Storm control unit: pps......This example shows how to show current storm control configuration on interface gi1Switch#show storm-control interfaces gi1Port | State | Broadcast | Unknown-Multicast | Unknown-Unicast | Action| | pps | pps | pps|----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ Shutdown

storm-control

Syntaxstorm-controlno storm-control
storm-control (broadcast | unknown-unicast | unknown-multicast) no storm-control (broadcast | unknown-unicast | unknown-multicast)
ParameterbroadcastSelect broadcast storm control type
unknown-unicastSelect unknown unicast storm control type
unknown-multicastSelect unknown multicast storm control type

Default

Default storm control is disabled.

Default broadcast storm control is disabled.

Default unknown multicast storm control is disabled Default unknown unicast storm control is disabled

Mode

Interface Configuration

Usage Storm control function is able to enable/disable on each single port. Use the "storm control" command to enable storm control feature on the selected ports. And use "no storm control" command to disable storm control feature. Not only port is able to enable/disable on the port. Each storm control type is also able to enable/disable on each single port.

Use the “storm-control (broadcast|unknown-unicast|unknown-multicast)” command to enable the storm control type you need and use no form to disable it.

Example

This example shows how to enable storm control on interface gi1. Switch(config)# interface gi1 Switch(config-if)# storm-control

This example shows how to enable broadcast storm control and configure broadcast storm control rate to 200. Switch(config)# interface gi1 Switch(config-if)# storm-control broadcast

This example shows how to show current storm control configuration on interface gi1

Cudy GS2018PS2 - Example - 1

line | Event | Value | |-------|-------| | gi1 | 0 | | enable| 200 | | Off | 10000 |

storm-control action

Syntax

storm-control action (drop | shutdown) no storm-control action

Parameter

drop Storm control rate calculates by octet-based shutdown

Default

Default storm control action is drop.

ModeInterface Configuration
UsageUse “storm-control action” command to set the action when the received storm control packets exceed the maximum rate on an interface. Use no form to restore to default action.
ExampleThis example shows how to configure storm control action to shutdown port on interface gi1.Switch(config)#interface gi1Switch(config-if)#storm-control action shutdownThis example shows how to show storm control action on interface gi1.Switch#show storm-control interfaces gi1Port | State | Broadcast | Unknown-Multicast | Unknown-Unicast | Action| | pps | pps | pps|----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ gi1 disable Off( 10000) Off( 10000) Off( 10000) Shutdown

storm-control ifg

Syntaxstorm-control ifg (include | exclude)
ParameterincludeInclude preamble & IFG (20 bytes) when count ingress storm control rate.
excludeExclude preamble & IFG (20 bytes) when count ingress storm control rate
DefaultDefault storm control inter frame gap is excluded.
ModeGlobal Configuration

Usage Storm control mechanism will try to calculate ingress packets is exceed configured rate or not and do corresponding action. Use storm-control ifg command to include/exclude the preamble and inter frame gap into the calculating.

Example

This example shows how to configure storm inter frame gap to include. Switch(config)# storm-control ifg include

This example shows how to show storm control global configuration. Switch# show storm-control Storm control preamble and IFG: Included

Storm control unit: pps

storm-control level

Syntaxstorm-control (broadcast | unknown-unicast | unknown-multicast) level<1-1000000>no storm-control (broadcast | unknown-unicast | unknown-multicast)level
Parameter broadcast Select broadcast storm control type
unknown-unicastSelect unknown unicast storm control type
unknownSelect unknown multicast storm control type
-
multicast
level <1-1000000>Specify the storm control rate for selected type. For bps, range is 16-1000000
For pps, range is 1-262143
DefaultDefault broadcast storm control rate is 10000. Default unknown multicast storm control rate is 10000. Default unknown unicast storm control rate is 10000.
ModeInterface Configuration

Usage Each control type is allowed to have different storm control rate.

Use “storm-control (broadcast|unknown-unicast|unknown-multicast) level” command to configure it

Use no form to restore to default rate.

Example

This example shows how to enable broadcast storm control and configure broadcast storm control rate to 200.

Switch(config)# interface gi1

Switch(config-if)# storm-control broadcast

Switch(config-if)# storm-control broadcast level 200

This example shows how to show current storm control configuration on interface gi1

Switch# show storm-control interfaces gi1

Port | State | Broadcast | Unknown-Multicast | Unknown-Unicast | Action | | pps | pps | pps | ----+----+----+----+---- --- gi1 enable 200 Off( 10000) Off( 10000) Shutdown

storm-control unit

Syntaxstorm-control unit (bps | pps)
ParameterbpsStorm control rate calculates by octet-based
ppsStorm control rate calculates by packet-based
DefaultDefault storm control unit is bps.
ModeGlobal Configuration
Usage Storm control mechanism will try to calculate ingress packets isexceed configured rate or not and do corresponding action.
Use storm-control unit command to change the unit of calculating method.
ExampleThis example shows how to configure storm control rate unit as pps.Switch(config)# storm-control unit ppsThis example shows how to show storm control global configuration.Switch# show storm-controlStorm control preamble and IFG: Excluded Stormcontrol unit: pps......

31. System File

boot system

Syntaxboot system (image0 | image1)
Parameterimage0Boot from flash image partition 0
image1Boot from flash image partition 1
DefaultDefault boot image is image0.
ModeGlobal Configuration

Usage Dual image allow user to have a backup image in the flash partition. Use "boot system" command to select the active firmware image. And another firmware image will become a backup one.

Example This example shows how to select image1 as active image. Switch(config)# boot system image1 Select "image1" Success

This example shows how to show active image partition. Switch# show flash

File Name File Size Modified

startup-config 1191 2000-01-01 00:00:23

backup-config 1607 2000-01-01 08:36:23

rsa1 974 2000-01-01 00:00:18

rsa2 1675 2000-01-01 00:00:18

dsa2 668 2000-01-01 00:00:18

ssl cert 993 2000-01-01 00:00:18

image0 (backup) 4372401 2012-09-24 01:57:29

image1 (active) 5555970 2012-06-12 12:17:46

copy

Syntax

copy (flash:// | tftp://) (flash:// | tftp://)

copy tftp:// (backup-config | running-config | startup-config) copy (backup-config | running-config | startup-config) tftp://

copy (backup-config | startup-config) running-config copy (backup-config | running-config) startup-config copy (running-config | startup-config) backup-config

Parameter

flash:// Specify the file stored in flash to operation.

Available files are:

flash://startup-

config

flash://backup-

config flash://rsa1

flash://rsa2

flash://dsa2

flash://image0

flash://image1

flash://ram.log

flash://flash.log

tftp:// Specify remote tftp server and remote file name. The

format is "tftp://192.168.1.111/remote_file_name"

running-config Running configuration file

startup-config Startup configuration file

backup-config Backup configuration file

Default

No default value for this command.

ModePrivileged EXEC
UsageThere are many types of files in system. These files are very important for administrator to manage the switch. The most common file operation is copy. By using these copy commands, we can upgrade, backup following type of files.Firmware ImageConfiguration FilesSyslog FilesLanguage FilesSecurity Certificate
ExampleThis example shows how to copy running configuration to startup configuration.Switch#copy running-config startupst-configThis example shows how to backup running configuration to remote tftp server 192.168.111 with file name test1.cfg.Switch#copy running-config tftp://192.168.1.111/test1.cfgUploading file...Please Wait... Uploading DoneThis example shows how to upgrade startup configuration from remote tftp server 192.168.1.111 with file name test2.cfg.Switch#copy tftp://192.168.1.111/test2.cfg startup-configDownloading file...Please Wait... Downloading DoneUpgrade config success. Do you want to reboot now? (y/n)nThis example shows how to backup security file dsa2 to remote tftp server 192.168.1.111 with file name dsa2.Switch#copy flash://dsa2 tftp://192.168.1.111/dsa2Uploading file...Please Wait... Uploading Done
delete
Syntaxdelete (startrup-config | backup-config | flash://)delete system (image0 | image1)
Parameterflash://Specify the configuration file stored in flash to delete.Available files are:flash://startup-configflash://backup-

config

startup-config

Delete startup configuration file

backup-configDelete backup configuration file
image0Delete flash image0.
image1Delete flash image1.
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “delete” command to delete configuration files or use “delete system” command to delete firmware image stored in flash.The “delete startup-config” command is using to restore factory default and it is equal to command “restore-defaults”.
ExampleThis example shows how to delete backup configuration file.Switch# delete backup-configThis example shows how to delete backup firmware image from flash.Switch# delete system image1This example shows how to show file status in flash.Switch# show flashFile Name File Size Modified
startup-config 1191 2000-01-01 00:00:23backup-config 1607 2000-01-01 08:36:23rsa1 974 2000-01-01 00:00:18rsa2 1675 2000-01-01 00:00:18dsa2 668 2000-01-01 00:00:18ssl_cert 993 2000-01-01 00:00:18image0 (active) 4372401 2012-09-24 01:57:29image1 (backup) 0

restore-defaults

Syntaxrestore-defaults [interfacesIF_PORTS]
ParameterinterfacesIF PORTSSpecify port to restore its’ ruuning config
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “restore-defaults” command to restore factory default of all system. The command is equal to “delete startup-config”,
ExampleThis example shows how to restore factory defaults.Switch# restore-defaultsRestore Default Success. Do you want to reboot now? (y/n)n
save
Syntaxsave
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “save” command to save running configuration to startup configurationfile. This command is equal to “copy running-config startup-config”.
ExampleThis example shows how to save running configuration to startup configuration.Switch# saveSuccessThis example shows how to show startup configurationSwitch# show startup-config! System Description: RTK RTL8328-24FE-4GE Switch! System Version: v2.5.0-beta.32811! System Name: SwitchEF0102! System Up Time: 0 days, 4 hours, 31 mins, 43 secs! ! ! !username "" privilege user secret "dnXencJRwflV6" username "admin" secret "FzjrGO6vfbERY"voice-vlan vpt 0voice-vlan dscp 0......

show bootvar

Syntax

show bootvar

Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show bootvar” command to show image information in both flash partitions. It also shows current active image and active image on next booting.
ExampleThis example shows how to show dual image informationSwitch# show bootvarImage Version Date Status File Name0 3.0.5 2014-09-22 16:53:53 Active v3.0.5.bix1 3.1.0 2014-10-09 18:32:26 Not active* v3.1.0.bix
show config
Syntaxshow (running-config | startup-config | backup-config)show running-config interfaces IF_PORTS
Parameterrunning-configShow running configuration on terminal
startup-configShow startup configuration on terminal
backup-configShow backup configuration on terminal
IF_PORTSSpecify port to show its’ ruuning config
DefaultNo default value for this command.
ModePrivileged EXEC
UsageOur configuration file is text based. Therefore, we can show the configuration on terminal and read it by this command.Use “show config” command to show configuration files stored in system. Use “show config interfaces” command to show specific port

Command Line Interface User Guide

configurations.

ExampleThis example shows how to show startup configurationSwitch#show startup-config! System Description: RTK RTL8328-24FE-4GE Switch! System Version: v2.5.0-beta.32811! System Name: SwitchEF0102! System Up Time: 0 days, 4 hours, 31 mins, 43 secs!!!!username "" privilege user secret "dnXencJRwflV6" username"admin" secret "FzjrGO6vfbERY"voice-vlan vpt 0voice-vlan dscp 0............This example shows how to show running configurationSwitch#show running-config! System Description: RTK RTL8328-24FE-4GE Switch! System Version: v2.5.0-beta.32811! System Name: SwitchEF0102! System Up Time: 0 days, 5 hours, 23 mins, 42 secs!!!!username "" privilege user secret "dnXencJRwflV6" username"admin" secret "FzjrGO6vfbERY"voice-vlan vpt 0voice-vlan dscp 0............This example shows how to display running configuraiton on specific port.Switch#show running-config interfaces gi1interface gi1rate-limit ingress 128

show flash

Syntaxshow flash
Parameter
DefaultNo default value for this command.
ModePrivileged EXEC
UsageUse “show flash” command to show all files’ status which stored in flash.
ExampleThis example shows how to show all files status stored in flash.Switch#show flashFile Name File Size Modified
----startup-config 1191 2000-01-01 00:00:23backup-config 1607 2000-01-01 08:36:23rsa1 974 2000-01-01 00:00:18rsa2 1675 2000-01-01 00:00:18dsa2 668 2000-01-01 00:00:18ssl_cert 993 2000-01-01 00:00:18image0 (active) 4372401 2012-09-24 01:57:29image1 (backup) 0

32. Surveillance VLAN

surveillance-vlan (Global)

Syntaxsurveillance-vlanno surveillance -vlan
Parameter
DefaultSurveillance VLAN is disabled
ModeGlobal Configuration
UsageUse thesurveillancevlanglobal configuration command to enable the functional Surveillance VLAN on the device.Use thenoform of this command to disable Surveillance VLAN function. You can verify your setting by entering theshow surveillance vlan Privileged EXECcommand.
ExampleThe following example shows how to enable Surveillance VLAN. Switch(config)#surveillance -vlanSwitch#show surveillance -vlanAdministrate Surveillance VLAN state :disabled Surveillance VLAN ID: none(disable) Surveillance VLAN Aging:1440 minutes Surveillance VLAN CoS6Surveillance VLAN 1p Remark: disabled

surveillance-vlan (Interface)

Syntaxsurveillance-vlanno surveillance-vlan
ParameterN/A
DefaultDisable by default.
ModeInterface Configuration
UsageUse the surveillance vlan Interface configuration command to enable OUI surveillance VLAN configuration on an interfaceUse the no form of this command to disable Surveillance VLAN on an interfacesYou can verify your setting by entering the show surveillance vlan Privileged EXEC command
ExampleThe following example how to enable Surveillance VLAN function in oui mode on an interfaceSwitch(config)#interface range fa1-3Switch(config-if)#surveillance-vlanSwitch#show surveillance-vlan interfacesfa1-3Surveillance VLAN Aging : 1440minutes Surveillance VLAN CoS 7Surveillance VLAN 1p Remark: enabledOUI tableOUI MAC | Description----+----00:01:02 | TestPort | State | Port Mode | Cos Mode----+----+----+----fa1 | Disabled | Auto |Src fa2 | Disabled |Auto | Srcfa3 | Disabled | Auto | Src

surveillance-vlan vlan

Syntaxsurveillance-vlan vlan <1-4094>no surveillance-vlan vlan
Parameter<1-4094>Specify the Surveillance VLAN ID
DefaultThe default Surveillance VLAN ID is None.
ModeGlobal Configuration
UsageUse the surveillance vlan id global configuration command to configure the VLAN identifier of the surveillance VLAN statically.Use the no form of this command to restore surveillance VLAN id to default. You can verify your setting by entering the show surveillance vlan Privileged EXEC command
ExampleThe following example shows how to set Surveillance VLAN id. The VLAN id must be created first.Switch(config)# surveillance-vlan vlan 128Switch# show surveillance-vlanAdministrate Surveillance VLAN state : enabled Surveillance VLAN ID 128Surveillance VLAN Aging : 1440minutes Surveillance VLAN CoS6Surveillance VLAN 1p Remark: disabled

This following example shows how to add OUI Mac.

Switch(config)# surveillance-vlan oui-table 00:01:02

"Test" Switch# show surveillance-vlan interfaces

fa1-3 Surveillance VLAN Aging : 1440 minutes

Syntaxsurveillance-vlan cos <0-7>[remark]no surveillance-vlan cos
Parameter<0-7>Specify the surveillance VLAN Class of Service value in telephone OUI mode
remarkSpecify that the L2 user priority is remarked with the CoS value
DefaultThe default cos value is 6, remark is disabled.

Mode Global Configuration

UsageUse the surveillance vlan cos global configurations command to configure the surveillance VLAN cos value and 1p remark function. Use the “no” form to restore to default mode. You can verify your setting by entering the show surveillance vlan Privileged EXEC command
ExampleThe following example show how to set cos value and enable 1p remark functionSwitch(config)# surveillance-vlan cos 7 remarkSwitch# show surveillance-vlan Administrate Surveillance VLAN state :disabled Surveillance VLAN ID 128Surveillance VLAN Aging : 1440minutes Surveillance VLAN CoS7

Surveillance VLAN 1p Remark: enabled

surveillance-vlan cos (Interface)

Syntaxsurveillance-vlan cos (src | all)no surveillance-vlan cos
Parameter srcSpecify QoS attributes are applied to packets with OUIsin the source MAC address.
All Specify QoS attributes are applied to packets that areclassified to the Surveillance VLAN.
DefaultThe default all port in Srcmode.
ModeInterface configuration
Usage Use the surveillance vlan cos mode Interface configurationcommand to configure OUI surveillance VLAN cos modeconfiguration on an interface. Use the “no” form to restore todefault mode.You can verify your setting by entering the show surveillance-vlan interfaces Privileged EXECcommand
ExampleThe following example how to configure surveillance packet QoSattributes on an interfaceSwitch(config)#interface range fa1-3Switch(config-if)#surveillance-vlan cos allSwitch#show surveillance-vlan interfacesfa1-3Surveillance VLAN Aging : 1440minutes Surveillance VLAN CoS 7Surveillance VLAN 1p Remark: enabledOOUI tableOUI MAC | Description----+----00:01:02 | TestPort | State | Port Mode | Cos Mode----+----+----+----fa1 | Disabled | Auto | Allfa2 | Disabled | Auto | Allfa3 | Disabled | Auto | All

surveillance-vlan mode
Syntax surveillance-vlan mode

Managed Switch Software

313

Rev. 1.1

(auto|manual) no surveillance-vlan mode

ParameterautoSpecifies that the port is identified as a candidate to join
the surveillance VLAN. When a packet with a source OUI MAC address that identifies the remote equipment as surveillance equipment is seen on the port, the port joins the surveillance VLAN as a tagged port.
manualSpecifies that the port is manually assigned to the VLAN.
DefaultThe default is auto mode.
Mode Interface Configuration
UsageUse the surveillance-vlan mode global configuration command to configure the surveillance VLAN mode for interface. Use the “no” form to restore to default mode. You can verify your setting by entering the show surveillance-vlan interfaces Privileged EXEC command.
ExampleThe following example how to configure surveillance mode to manual Switch(config)#interface range fa1-3Switch(config-if)#surveillance-vlan mode manaul Switch# show surveillance-vlan interfaces fa1-3 Surveillance VLAN Aging : 1440 minutesSurveillance VLAN CoS 7Surveillance VLAN 1p Remark: enabledOUI tableOUI MAC | Description----+----00:01:02 | TestPort | State | Port Mode | Cos Mode----+----+----fa1 | Disabled | Manual | Srcfa2 | Disabled | Manual | Srcfa3 | Disabled | Manual | Src

surveillance-vlan aging-time

Syntax surveillance-vlan aing-time <30-65536> no surveillance-vlan aing-time

DefaultThe default aging-timeout value is 1440 minutes
ModeGlobal Configuration
UsageUse the surveillance vlan aging-time global configuration command to configure the surveillance VLAN aging timeout. Use the “no” form to restore to default time. You can verify your setting by entering the show surveillance vlan Privileged EXEC command
ExampleThe following example shows how to set aging time. Switch(config)# surveillance-vlan aging-time 720 Switch# show surveillance-vlan Administrate Surveillance VLAN state: disabled Surveillance VLAN ID 1 Surveillance VLAN Aging: 720 minutes Surveillance VLAN CoS 5 Surveillance VLAN 1p Remark: enabled

show surveillance-vlan

Syntax show surveillance-vlanshow surveillance-vlan interfaces [IF_PORTS]
ParameterIF_PORTSSpecifies interfaces to display surveillance VLAN I mode
DefaultN/A
ModePrivileged EXEC
UsageUse the show surveillance vlan command in EXEC mode to display the surveillance VLAN status for all interfaces or for a specific interface if the surveillance VLAN type is OUI
ExampleThe following example show how to display surveillance vlan OUI mode settingsSwitch# show surveillance-vlanAdministrate Surveillance VLAN state :disabled Surveillance VLAN ID : none(disable) Surveillance VLAN Aging: 720 minutesSurveillance VLAN CoS 6Surveillance VLAN 1p Remark: disabled
Switch# show surveillance-vlan interfacesfa1-4 Surveillance VLAN Aging : 720minutes Surveillance VLAN CoS 5Surveillance VLAN 1p Remark: enabled
OOUI tableOUI MAC | Description----+----00:01:02 | Test
Port | State | Port Mode | Cos Mode----+----+----+----fa1 | Disabled | Auto |Src fa2 | Disabled |Auto | Srcfa3 | Disabled | Auto | Src

33. Time

clock set

Syntax

clock set HH:MM:SS

(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)

<1-31> <2000-2035>

Parameter

HH:MM:SS

(jan|feb|mar|ap

r

|may|jun|jul|au

g|

sep|oct|nov|de

c)

<1-31> <2000-

2035>

Default

No default is defined.

The clock set to 2000/01/01 08:00:00 by default at

Command Line Interface User Guide

startup.

Mode

Privileged EXEC

Usage Use the clock set command to set static time. The static timewon't save to configuration file.You can verify your setting by entering the show clock Privileged EXECcommand.
ExampleThe example shows how to set static time of switch.switch# clock set 11:03:00 sep 21 201211:03:00 DFL(UTC+8) Sep 21 2012switch# show clock11:03:21 DFL(UTC+8) Sep 21 2012No time source

clock timezone

Syntaxclock timezone ACRONYM HOUR-OFFSET [minutes <0-59>]
ParameterACRONYMSpecify acronym name of time zone
HOUR-OFFSETSpecify hour offset of time zone
Minutes <1-59>Specify minute offset of time zone
DefaultDefault time zone is UTC+8.
ModeGlobal Configuration
Usage Use the clock timezone command to set timezone setting. Use the no form of this command to restore to default setting. You can verify your setting by entering the show clock detail Privileged EXEC command.
ExampleThe example shows how to set time zone of switch and then restore to default time zone.
switch(config)# clock timezonetest +5 switch(config)# show clockdetail 10:13:27 test(UTC+5) Sep 212012No time source
Time zone:Acronym is testOffset is UTC+5
switch(config)# no clock timezone

switch(config)# show clock detail

13:14:50 DFL(UTC+8) Sep 21 2012No time sourceTime zone:Acronym isDFL Offsetis UTC+8

clock source

Syntaxclock source(local|sntp)
ParameterlocalSpecify to use static time
sntpSpecify to use sntp time
DefaultDefault is using local time.
ModeGlobal Configuration

Usage Use the clock source command to set the source of time. Use the no form of this command to restore to default setting. You can verify your setting by entering the show clock detail Privileged EXEC command.
Example The example shows how to set clock source of switch.
switch(config)# clock source sntp switch(config)# show clock detail 08:32:12 test(UTC+5) Sep 21 2012 Time source is sntp
Time zone: Acronym is DFL Offset is UTC+8

clock summer-time

Syntaxclock summer-time ACRONYM date(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) <1-31><2000-2037>HH:MM (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) <1-31><2000-2037> HH:MM [<1-1440>]clock summer-time ACRONYM recurring (usa|eu) [<1-1440>] clock summer-time ACRONYM recurring (<1-5>|first|last)
(sun|mon|tue|wed|thu|fri|sat)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) HH:MM (<1-5>|first|last) (sun|mon|tue|wed|thu|fri|sat)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) HH:MM [<1-1440>] no clock summer-time
ParameterACRONYMSpecify acronym name of time zone
(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)<1-31><2000-2037> HH:MM(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) <1-31><2000-2037> HH:MMSpecify non-recurring daylight saving time duration.
<1-1440>Specify adjust offset of daylight saving time
usaUsing daylight saving time in the United States that starts on the second Sunday of March and ends on the first Sunday of November
euUsing daylight saving time in the Europe that starts on the last Sunday in March and ending on the last Sunday in October
(<1-5>|first|last)(sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)HH:MM (<1-5>|first|last)(sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)HH:MMSpecify ecurring daylight saving time duration.
DefaultNo default daylight saving time is defined.
ModeGlobal Configuration

Command Line Interface

User Guide

Usage

Use the clock summer-time command to set daylight saving time for system time. The “usa” or “eu” means that use the global daylight saving policy which defined by international organization. In both the “date” and “recurring”, the first part of the command specifies when summer time begins, and the second part specifies when it ends. All times are relative to the local time zone. The “recurring” means that adjust time every year within the month.

Use the no form of this command to default setting.

You can verify your setting by entering the show clock detail

Privileged EXEC command.

ExampleThe example shows how to set clock summer time of switch. You can verify settings by the following show show clock command.
switch(config)#clocksummer-time test recurring usa switch(config)#showclockdetail08:32:12 test(UTC+5) Sep 21 2012No time source
Time zone:Acronym isDFL Offset isUTC+8
Summertime:Acronym is testRecurring every year. Begins at 2 03 2:0Ends at 1 0 11 2:0Offset is 60 minutes.
show clock
Syntaxshow clock[detail]
ParameterdetailShow more detail information of clock
DefaultNo default is defined
ModePrivileged EXEC
UsageUse theshow clockcommand to show clock of switch. The“detail” means that show more information of clock such as time zone and daylight saving time.
ExampleThe example shows how to show clock of switch and detail information.
Switch334455(config)# clock source sntpSwitch334455(config)# clock summer-time DLSrecurring usa Switch334455(config)# sntp host192.168.1.100 Switch334455(config)# show clock14:34:43 DLS(UTC+9) Sep 25 2012Time source is sntp
Switch334455(config)# show clock detail14:35:39 DLS(UTC+9) Sep 25 2012
Time source is sntp
Time zone:Acronym isDFL Offsetis UTC+8
Summertime:Acronym is DLSRecurring every year. Begins at2 0 3 2:0Ends at 1 0 112:0 Offset is 60 minutes.
sntp
Syntaxsntp host HOSTNAME [port <1-65535>]no sntp
ParameterHOSTNAMESpecify ip address or hostname of sntp server
sntpSpecify server port of sntp server
DefaultNo default SNTP server defined. Default server port is 123 when server created.
ModeGlobal Configuration
Usage Use the sntp command to set remoteSNTP server. Use the no form of this command to default setting.You can verify your setting by entering the show sntp Privileged EXEC command.
ExampleThe example shows how to set remote SNTP server of switch. switch(config)# clock source sntpswitch(config)# sntp host 192.168.1.100switch(config)# show sntpSNTP is EnabledSNTP Server address:192.168.1.100 SNTP Server port:123

show sntp

Syntaxshow sntp
ParameterNone
DefaultNo default is defined
ModePrivileged EXEC
UsageUse theshow sntpcommand to remote SNTP server information.
ExampleThe example shows how to show remote SNTP server.Switch334455(config)#show sntpSNTP is EnabledSNTP Server address:192.168.1.100 SNTP Server port:123

34. UDLD

errdisable recovery cause udd

Syntaxerrdisable recovery cause udldno errdisable recovery cause udld
Parameter N/A
DefaultError disable auto recovery is disabled by default.
ModeGlobal EXEC

Usage Use the errdisable recovery cause udld to enable auto recovery of UniDirectional Link Detection (UDLD). Use the "no" to disable it.

ExampleThe example shows how to enable auto recovery of UniDirectional Link Detection (UDLD).
switch(config)# errdisable recovery cause udd switch# show errdisable recovery ErrDisable Reason Timer Status
+
bpduguard | disabled
udld | enabled...
udld
Syntax udldno udld
ParameterN/A
DefaultUDLD is disabled by default.
ModeInterface Configuration
Usage Use the udld command to enable UniDirectional Link Detection (UDLD) normal mode of interface.Use the no form of this command to restore to default setting.You can verify your setting by entering the show udld interface Privileged EXEC command.
ExampleThe example shows how to enable UniDirectional Link Detection (UDLD) normal mode in interface gi1.switch(config)#interface gi1switch(config-if)#udldswitch#show udld interfaces gi1Port enable administrative configuration setting:Enabled Port enable operational state: EnabledCurrent bidirectional state: BidirectionalCurrent operational state: Advertisement - SINGLE NEIGHBOR DETECTED
udld aggressive
Syntax udldaggressiveno udldaggressive
ParameterN/A
DefaultUDLD aggressive mode is disabled by

default.

ModeInterface Configuration
UsageUse the udld aggressive command to enable UniDirectional Link Detection (UDLD) aggressive mode of interface.Use the no form of this command to restore to default setting.You can verify your setting by entering the show udld interface Privileged EXEC command.
ExampleThe example shows how to enable udld aggressive mode in interface gi1.switch(config)#interface gi1switch(config-if)#udldswitch#show udld interfaces gi1Port enable administrative configuration setting: Enabled / in aggressive mode Port enable operational state: Enabled / in aggressive modeCurrent bidirectional state: BidirectionalCurrent operational state: Advertisement - SINGLE NEIGHBOR DETECTED

udld message time

Syntax udd message time message-time-interval

Parametermessage-time-interval Specify the interval for sending message.
DefaultDefault interval is 15 seconds.
ModeGlobal Configuration
UsageUse the uddl d message time to set interval of UniDirectional Link Detection (UDLD) sent message.
ExampleThe example shows how to set interval of UniDirectional Link Detection (UDLD) message.
switch(config)# uddl d message time 30

udld reset

Syntaxudld reset
Parameter N/A
DefaultNo default is defined
ModePrivileged EXEC
Usage Use the udld reset command to reset all interfaces disabled by the UniDirectional Link Detection (UDLD) and permit traffic to begin passing through them again.If the interface configuration is still enabled for UDLD, these ports begin to run UDLD again and are disabled for the same reason if the problem has not been corrected.
ExampleThe example shows how to reset all interfaces disabled by UDLDSwitch# udld reset1 ports shutdown by UDLD were reset.

show uld

Syntax show udldshow udld interfaces IF_NMLPORTS
ParameterIF_NMLPORTSSpecify the normal interfaces to display udld
DefaultNo default is defined
ModePrivileged EXEC
Usage Use the show udld command to to display UniDirectional Link Detection (UDLD) administrative and operational status for all ports or the specified port.
ExampleThe example shows how to show UniDirectional Link Detection (UDLD) settings and operational status of interface gi1.

Switch334455(config)# show udld interfaces gi1

Interface gi1


Port enable administrative configuration setting: Enabled / in aggressive mode Port enable operational state: Enabled / in aggressive mode

Current bidirectional state: Bidirectional

Current operational state: Advertisement - SINGLE

NEIGHBOR DETECTED

Message

interval: 15

Time out

interval: 5

Entry 1


Expiration time: 20

Current neighbor state:

Bidirectional Device ID :

COM4

Device name:

com4 Port ID:

gi3 Message

interval: 7

Time out

interval: 5

Neighbor echo 1 device:

COM3 Neighbor echo 1

port: gi11

35. VLAN

vlan

Syntax vlan

no vlan

Default

VLAN 1 created by default

Mode

Global Configuration

Usage Use the vlan global configuration command to

create VLAN. Use the no form of this command to

remove exist VLAN.

You can verify your setting by entering the show vlan Privileged EXEC

command.
ExampleThe following example creates and removes a VLAN entry (100).
Switch# configureSwitch (config)# vlan 100Switch# show vlan
Name (vlan)VID | VLAN Name | Untagged Ports | Tagged Ports | Type----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ 1 | default | fa1-48,gi1-4,lag1-8 | --- | Default 100 | VLAN0100 | --- | --- | Static
Syntaxname NAME
ParameterNAMESpecify the name of the VLAN (Max. 32 chars).
DefaultDefault name of new vlan is VLANxxxx. Xxxx is 4-digit vlan number.
ModeVLAN Configuration
UsageUse the name vlan configuration command to set name of vlan You can verify your setting by entering the show vlan Privileged EXEC command.
ExampleThis example sets the VLAN name of VLAN 100 to be 'VLAN- one-hundred'.SwitchEF0101(config)# vlan 100SwitchEF0101(config-vlan)# name VLAN-one-hundred Switch# show vlanVID | VLAN Name | Untagged Ports | Tagged Ports | Type----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+\n1 | default | fa1-48,gi1-4,lag1-8 | --- | Default 100 | VLAN-one-hundred | ---- |--- |--- |Static
switchport mode
Syntaxswitchport mode (access | hybrid | trunk [uplink] | tunnel)
ParameteraccessSpecify the VLAN mode to Access port.
hybridSpecify the VLAN mode to Hybrid port.
trunkSpecify the VLAN mode to Trunk port.
uplinkSpecify the Uplink property on this Trunk port.
tunnelSpecify the VLAN mode to Dot1Q Tunnel port.
DefaultDefault is trunk mode of all

interfaces

Mode

Port Configuration

Usage The VLAN mode is used to configure the port for different port role.

Access port: Accepts only untagged frames and join an untagged VLAN. Hybrid port: Support all functions as defined in IEEE 802.1Q specification. Trunk port: An untagged member of one VLAN at most, and is a tagged member of zero or more VLANs. If it is an uplink port, it can recognize double tagging on this port.

Tunnel port: Port-based Q-in-Q mode.

Use the switch mode port configuration command to set mode of interface You can verify your setting by entering the show interfaces switchport Privileged EXEC command.

Example

This example sets VLAN mode to Access port.

SwitchEF0101(config)# interface fa12

SwitchEF0101(config-if)# switchport mode

access SwitchEF0101# show interfaces

switchport fa12 Port : fa12

Port Mode : Access

Ingress Filtering :

enabled

Acceptable Frame Type : untagged-only

Ingress UnTagged VLAN (NATIVE) : 1

Trunking VLANs Enabled:

Port is member in:

Vlan Name Egress rule

1 default Untagged

Forbidden

VLANs: Vlan

Name

SwitchEF0101#

switchport hybrid pvid

Syntax

switchport hybrid pvid <1-4094>

Parameter

<1-4094>

Specify the port-based VLAN ID on the Hybrid port.

Default

Default pivd is 1.

ModePort Configuration
UsageUse the switch hybrid pivd port configuration command to set pvid of interface.You can verify your setting by entering the show interfaces switchport Privileged EXEC command.
ExampleThis example sets PVID to 100.SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport mode hybrid SwitchEF0101(config-if)# switchport hybrid pvid 100 SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : HybridIngress Filtering : enabledAcceptable Frame Type : allIngress UnTagged VLAN (NATIVE) : 100 Trunking VLANs Enabled:Port is member in:Vlan Name Egress rule----1 default UntaggedForbiddenVLANs:Vlan NameSwitchEF0101#

switchport hybrid ingress-filtering

Syntax switchport bybrid ingress-filtering no switchport hybrid ingress-filtering
DefaultDefault is enabled
ModePort Configuration

Usage

Use the switchport hybrid ingress-filtering port configuration

command to enable vlan ingress filter.

Use the no form of this command to disable.

You can verify your setting by entering the s show interfaces switchport Privileged EXEC command.

Example

This example sets ingress-filtering to disable.

SwitchEF0101(config)# interface fa10

SwitchEF0101(config-if)# switchport mode

hybrid

SwitchEF0101(config-if)#no switchport hybrid ingress-filtering

SwitchEF0101# show interfaces switchport fa10

Port : fa10

Port Mode : Hybrid

Ingress Filtering :

disabled

Acceptable Frame Type : all

Ingress UnTagged VLAN (NATIVE) : 100

Trunking VLANs Enabled:

Port is member in:

Vlan Name Egress rule

1 default Untagged

Forbidden

VLANs:

Vlan Name

SwitchEF0101#

switchport hybrid acceptable-frame-type

Syntaxswitchport hybrid acceptable-frame-type ( all | tagged-only | untagged- only )
ParameterallSpecify to accept all frames.
tagged-onlySpecify to only accept tagged frames.
untagged-onlySpecify to only accept untagged frames.
DefaultDefault is accept all frames

Mode Port Configuration

Usage

Use the switchport hybrid accept-frame-type port configuration command to choose which type of frame can be accepted.

You can verify your setting by entering the s show interfaces switchport Privileged EXEC command

ExampleThis example sets acceptable-frame-type to tagged-only. SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport mode hybridSwitchEF0101(config-if)# switchport hybrid acceptable-frame-type tagged-onlySwitchEF0101# show interfaces switchportfa10 Port : fa10Port Mode : NybridIngress Filtering :disabledAcceptable Frame Type : tagged-onlyIngress UnTagged VLAN ( NATIVE ) :100 Trunking VLANs Enabled:
Port is member in:Vlan Name Egress rule----1 default Untagged
ForbiddenVLANs:Vlan Name
SwitchEF0101#

switchport hybrid allowed vlan

Syntaxswitchport hybrid allowed vlan add VLAN-LIST [(tagged|untagged)] switchport hybrid allowed vlan remove VLAN-LIST
ParameterVLAN-LISTSpecifies the VLAN list to be added or remove.
( tagged | untagged )Specifies the member type is tagged or untagged.
DefaultOnly vlan 1 is untagged member by default. Default is tagged member when added.
ModePort Configuration
UsageUse the switchport hybrid allow vlan add port configuration command to allow vlan on interface.Use the switchport hybrid allow vlan remove port configuration command to remove vlan on interface.You can verify your setting by entering the s show interfaces switchport Privileged EXEC command.
ExampleThis example sets port fa10 VLAN to join the VLAN 100 as tagged member. SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport hybrid allowed vlan add 100-105 SwitchEF0101(config-if)# switchport hybrid allowed vlan remove 105 SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : HybridIngress Filtering :disabledAcceptable Frame Type : tagged-onlyIngress UnTagged VLAN ( NATIVE ) :100 Trunking VLANs Enabled:
Port is member in:Vlan Name Egress rule
1 default Untagged100 VLAN-one-hundred Tagged101 VLAN0101 Tagged102 VLAN0102 Tagged103 VLAN0103 Tagged104 VLAN0104 Tagged
ForbiddenVLANs:Vlan Name
SwitchEF0101#

switchport access vlan

Syntax switchport access vlan
<1-4094> No switchport access vlan
Parameter<1-4094>Specifies the access VLAN ID.
DefaultDefault is vlan 1
ModePort Configuration

Command Line Interface

User Guide

Usage

Use the switchport access vlan port configuration command to set native vlan on interface. The vlan will be pvid on interface as well.

Use the no form of this command to restore to default vlan You can verify your setting by entering the s show interfaces switchport Privileged EXEC command.

ExampleThis example sets Access port fa10 native VLAN ID to 100.
SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport modeaccess SwitchEF0101(config-if)# switchportaccess vlan 100 SwitchEF0101# showinterfaces switchport fa10Port : fa10Port Mode : AccessIngress Filtering :enabledAcceptable Frame Type : untagged-onlyIngress UnTagged VLAN ( NATIVE ) :100 Trunking VLANs Enabled:
Port is member in:Vlan Name Egress rule----100 VLAN-one-hundred Untagged
ForbiddenVLANs:Vlan Name----

switchport tunnel vlan

Syntax switchport tunnel vlan <1-4094> no switchport tunnel vlan
Parameter<1-4094>Specifies the tunnel VLAN ID.
DefaultDefault is vlan 1
ModePort Configuration
Usage Use the switchport tunnel vlan port configuration command to set dot1q tunnel vlan on interface. The vlan will be pvid on interface as well.Use the no form of this command to remove vlan on interface.The tunnel vlan id will set to reserve vlan 4095.You can verify your setting by entering the s show interfaces switchport Privileged EXEC command.

Example

This example sets Tunnel port fa10 native VLAN to 100.

SwitchEF0101(config)# interface fa10

SwitchEF0101(config-if)# switchport mode

tunnel

SwitchEF0101(config-if)# switchport tunnel vlan 100

SwitchEF0101# show interfaces switchport fa10 Port : fa10Port Mode : TunnelIngress Filtering : enabledAcceptable Frame Type : allIngress UnTagged VLAN( NATIVE ) : 100 Trunking VLANsEnabled:
Port is member in:Vlan Name Egress rule----100 VLAN-one-hundred Untagged
ForbiddenVLANs:Vlan Name----

switchport trunk native vlan

Syntaxswitchport trunk native vlan <1-4094> no switchport trunk native vlan
Parameter<1-4094>Specifies the native VLAN ID.
DefaultDefault is vlan 1
ModePort Configuration
UsageUse the switchport trunk native vlan port configuration command to set native vlan on interface.Use the no form of this command to restore to default vlan.You can verify your setting by entering the s show interfaces switchport Privileged EXEC command.
ExampleThis example sets Trunk port fa10 native VLAN to 100.
SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport mode trunkSwitchEF0101(config-if)# switchport trunk native vlan100 SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : TrunkIngress Filtering :enabledAcceptable Frame Type : all

Ingress UnTagged VLAN

( NATIVE ) : 100 Trunking VLANs

Enabled:

Port is member in:

Vlan Name Egress rule

100 VLAN-one-hundred Untagged

Forbidden

VLANs:

Vlan Name

switchport trunk allowed vlan

Syntaxswitchport trunk allowed vlan ( add | remove ) ( VLAN-LIST | all )
Parameter ( add |remove ) Specify the action to add or remove the allowed VLAN list.
( VLAN-LIST | all ) Specify the VLAN list or all VLANs to be added or removed.
ModePort Configuration
UsageUse the switchport trunk allow vlan add port configuration command to allow vlan on interface.Use the switchport trunk allow vlan remove port configuration command to remove vlan on interface.You can verify your setting by entering the s show interfaces switchport Privileged EXEC command.
ExampleThis example sets Trunk port fa10 to add the allowed VLAN 100.
SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport trunk allowed vlan add 100SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : TrunkIngress Filtering :enabledAcceptable Frame Type : allIngress UnTagged VLAN ( NATIVE ) : 1Trunking VLANs Enabled: 100
Port is member in:Vlan Name Egress rule----1 default Untagged

100 VLAN-one-hundred Tagged

Forbidden

VLANs:

Vlan Name

switchport default-vlan tagged

Syntax switchport default-vlan tagged no switchport default-vlan tagged

ParameterNone
DefaultDefault is untagged
ModePort Configuration
Usage Use the switchport default vlan tagged port configuration command to become default vlan tagged member. Use the no switchport default vlan tagged port configuration command to restore to default You can verify your setting by entering the s show interfaces switchport Privileged EXEC command
ExampleThis example sets Trunk port fa10 membership with the default VLAN to tag.
SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport default-vlantagged SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : HybridIngress Filtering :enabledAcceptable Frame Type : allIngress UnTagged VLAN ( NATIVE ) : 1Trunking VLANs Enabled:
Port is member in:Vlan Name Egress rule----1 default Tagged
ForbiddenVLANs:Vlan Name----

switchport forbidden default-vlan

Syntax switchport forbidden default-vlan no switchport forbidden default-vlan
ParameterNone
DefaultDefault is allowed
ModePort Configuration
UsageUse theswitchport forbidden default-vlan port configuration command to forbid default-vlan on interface.Use theno switchport forbidden default-vlan port configuration command to restore to defaultYou can verify your setting by entering thesshow interfaces switchport Privileged EXEC command
ExampleThis example sets the membership of the default VLAN with port fa10 to forbidden.SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport forbidden default-vlan SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : TrunkIngress Filtering : enabledAcceptable Frame Type : allIngress UnTagged VLAN (NATIVE) : 4095Trunking VLANs Enabled:Port is member in:Vlan Name Egress rule---- ----ForbiddenVLANs:Vlan Name---- 1 default

Syntax

switchport forbidden vlan ( add | remove ) VLAN-LIST

Parameter(add | remove)Add or remove forbidden membership.
VLAN-LISTSpecify the VLAN list.
DefaultNo vlan is forbidden by default
ModePort Configuration
UsageUse the switchport forbidden vlan add port configuration command to forbid vlan on interface.Use the switchport forbidden vlan remove port configuration command to accept vlan on interface.You can verify your setting by entering the s show interfaces switchport Privileged EXEC command
ExampleThis example sets the membership of the VLAN 100 with port fa10 to forbidden.SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport forbidden vlan add100 SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : TrunkIngress Filtering : enabledAcceptable Frame Type : allIngress UnTagged VLAN ( NATIVE ) : 1Trunking VLANs Enabled: 100Port is member in:Vlan Name Egress rule---- 1 default UntaggedForbidden VLANs:Vlan Name---- 100 VLAN-one-hundred

switchport vlan tpid

Syntaxswitchport vlan tpid(0x8100|0x88a8|0x9100|0x9200)
Parameter(0x8100|0x88a8|0x9100|0x92 Select TPID to set. 00)
DefaultDefault TPID is 0x8100
ModePort Configuration
UsageUse the switchport vlan tpid port configuration command to set TPID on interface.You can verify your setting by entering the s show running-config Privileged EXEC command
ExampleThis example sets the TPID to 0x9100 on interface fa10.SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport vlan tpid 0x9100

management-vlan

Syntax management-vlan vlan<1-4094> nomanagement-vlan
Parameter<1-4094>Specify the VLAN ID of management-vlan.
DefaultDefault management vlan is 1.

Mode Global Configuration

UsageUse the management vlan Global Configuration mode command to set management vlan id. Vlan id must be created first.Use the no form of this command to restore to default setting.You can verify your setting by entering the showmanagement-vlan Privileged EXEC command
Example(1) The following example specifies that management vlan 2 is created Switch(config)#vlan 2Switch(config)# management-vlan vlan 2(2) The following example specifies that management-vlan is restored to be default VLAN.Switch(config)# no management-vlan

show vlan

Syntax show vlan [(VLAN-LIST|dynamic|static)]

Parameter(VLAN-LIST|dynamic|static)Specify vlan id to show information or show all static or dynamic vlan entries.
DefaultNones
ModePrivileged EXEC
UsageDisplay information about vlan entry
ExampleThe following example specifies that show vlan Switch# show vlanVID | VLAN Name | Untagged Port | Tagged Port | Type----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ 1 default fa1-8,fa10-48,lag1-8 --- |Default 100 | VLAN-one-hundred |--- |--- | Static 101 | VLAN0101 |--- |--- | Static102 | VLAN0102 |--- |--- | Static

show vlan interface membership

Syntaxshow vlan VLAN-LIST interfaces IF_PORTS membership
ParameterSpecify vlan to show
IF_PORTSSpecify interface is to show
DefaultNones
ModePrivileged EXEC
UsageDisplay information about vlan membership on interfaces.
ExampleThe following example specifies that show vlan interface membership Switch# show vlan 100 interfaces fa10 membership
VLAN ID : 100VLAN Type : Static
Port | Membership
fa10 | Excluded

show interface switchport

Syntax show interface switchport interfaces IF_PORTS

ParameterIF_PORTSSpecify interfaces protocol vlan to display
DefaultNone
ModePrivileged EXEC
UsageDisplay information about default vlan
ExampleThe following example specifies that show interfacce switchport.SwitchEF0101(config)# interface fa10SwitchEF0101(config-if)# switchport trunk allowed vlan add 100SwitchEF0101# show interfaces switchport fa10Port : fa10Port Mode : TrunkIngress Filtering : enabledAcceptable Frame Type : allIngress UnTagged VLAN (NATIVE) : 1Trunking VLANs Enabled: 100Port is member in:Vlan Name Egress rule----1 default Untagged100 VLAN-one-hundred TaggedForbiddenVLANs:Vlan Name

show management-vlan

Syntax

show management-vlan

Parameter None
DefaultNones
ModePrivileged EXEC
UsageDisplay information about management vlan
ExampleThe following example specifies that show management vlan Switch(config)# show management-vlanManagement VLAN-ID : default(1)

36. Voice VLAN

voice-vlan (Global)

Syntaxvoice-vlanno voice-vlan
Parameter

Default Voice VLAN is disabled

ModeGlobal Configuration
UsageUse the voice vlan global configuration command to enable the functional Voice VLAN on the device.Use the no form of this command to disable voice vlan function.You can verify your setting by entering the show voice vlan Privileged EXEC command.
ExampleThe following example shows how to enable voice vlan. Switch(config)#voice-vlanSwitch#show voice-vlanAdministrate Voice VLAN state :disabled Voice VLAN ID : none(disable)Voice VLAN Aging : 1440minutes Voice VLAN CoS6Voice VLAN 1p Remark: disabled

voice-vlan (Interface)

Syntax voice-vlan
no voice-vlan

ParameterN/A
DefaultThe default all port admin-staus is disabled.
ModeInterface Configuration
UsageUse thevoice vlan Interface configuration command to enable OUI voice VLAN configuration on an interfaceUse theno form of this command to disable voice vlan on an interfaces You can verify your setting by entering theshow voice vlan Privileged EXECcommand
ExampleThe following example how to enable voice VLAN function in ouimode on an interfaceSwitch(config)#interface range fa1-3Switch(config-if)#voice-vlanSwitch# show voice-vlan interfacesfa1-8 Voice VLAN Aging : 1440minutes Voice VLAN CoS 7Voice VLAN 1p Remark: enabled
OUI tableOUI MAC | Description----+----00:E0:BB | 3COM00:03:6B | Cisco00:E0:75 | Veritel00:D0:1E | Pingtel00:01:E3 | Siemens00:60:B9 |NEC/Philips 00:0F:E2| H3C00:09:6E | Avaya
Port | State | Port Mode | Cos Mode----+----+----+----fa1 | Disabled | Auto | Srcfa2 | Disabled | Auto| Src fa3 |Disabled | Auto |Srcfa4 | Disabled | Auto | Src
fa5DisabledAutoSrc
fa6DisabledAutoSrc
fa7DisabledAutoSrc
fa8DisabledAutoSrc

voice-vlan vlan

Syntax voice-vlan vlan <1-4094>no voice-vlan vlan
Parameter<1-4094> Specify the voice VLAN ID
DefaultThe default Voice VLAN ID is None.
ModeGlobal Configuration
UsageUse thevoice vlan idglobal configuration command to configure the VLAN identifier of the voice VLAN statically.Use thenoform of this command to restore voice vlan id to default. You can verify your setting by entering theshowvoice vlan Privileged EXECcommand
ExampleThe following example shows how to set Voice vlan id. The vlan id must be created first.Switch(config)#voice-vlan vlan 128Switch#show voice-vlanAdministrate Voice VLAN state :enabled Voice VLAN ID128Voice VLAN Aging : 1440minutes Voice VLAN CoS6Voice VLAN 1p Remark: disabled

voice-vlan oui-table

Syntaxvoice-vlan oui-table A:B:C [DESCRIPTION] no voice-vlan oui-table [A:B:C]
ParameterA:B:CSpecify OUI Mac address to add or remove
DESCRIPTIONSpecify description of the specified MAC address to the table

Default

The system default has 8 oui addresses.

ModeGlobal Configuration
UsageUse thevoice vlan oui-tableglobal configuration command to addoui mac address to OUI TableUse thenoform of this command to remove all or specified oui macaddress.. You can verify your setting by entering theshow voice vlanPrivileged EXECcommand
ExampleThis following example shows how to add OUIMac. Switch(config)#voice-vlan oui-table00:01:02 “Test” Switch# show voice-vlaninterfaces allVoice VLAN Aging : 1440minutes Voice VLAN CoS 6Voice VLAN 1p Remark: disabledOUI tableOUI MAC | Description----+----00:E0:BB | 3COM00:03:6B | Cisco00:E0:75 | Veritel00:D0:1E | Pingtel00:01:E3 | Siemens00:60:B9 |NEC/Philips 00:0F:E2| H3C00:09:6E | Avaya00:01:02 | TestPort | State | Port Mode | Cos Mode----+----+----+----fa1 | Disabled | Auto | Srcfa2 | Disabled | Auto | Srcfa3 | Disabled | Auto | Src......

voice-vlan cos (Global)

Syntaxvoice-vlan cos <0-7> [remark] no voice-vlan cos
Parameter<0-7>Specify the voice VLAN Class of Service value in telephone oui mode
remarkSpecify that the L2 user priority is remarked with the
DefaultThe default cos value is 6, remark is disabled.
Mode Global Configuration
UsageUse thevoice vlan cosglobal configuration command to configure the voice VLAN cos value and 1p remark functionUse the “no” form to restore to default mode.You can verify your setting by entering theshow voice vlanPrivileged EXECcommand
ExampleThe following example show how to set cos value and enable 1p remark functionSwitch(config)#voice-vlan cos 7 remarkSwitch#show voice-vlanAdministrate Voice VLAN state :disabled Voice VLAN ID 128Voice VLAN Aging : 1440minutes Voice VLAN CoS 7Voice VLAN 1p Remark: enabled

voice-vlan cos (Interface)

Syntaxvoice-vlan cos (src | all) no voice-vlan cos
ParametersrcSpecify QoS attributes are applied to packets with OUIs in the source MAC address.
AllSpecify QoS attributes are applied to packets that are classified to the Voice VLAN.
DefaultThe default all port in Src mode.
ModeInterface configuration
Usage Use the voice vlan cos Interface configuration command toconfigure OUI voice VLAN cos mode configuration on aninterfaceUse the “no” form to restore to default mode.You can verify your setting by entering the show voice-vlaninterfaces Privileged EXEC command

Command Line Interface

User Guide

Example

The following example how to configure voice packet QoS attributes on an interface

Switch(config)#interface range fa1-3

Switch(config-if)#voice-vlan cos all

Switch# show voice-vlan interfaces fa1-8

Voice VLAN Aging : 1440

minutes Voice VLAN CoS

7

Voice VLAN 1p Remark: enabled

OUI table

OUI MAC | Description

Cudy GS2018PS2 - Example - 1

---- 00:E0:BB | 3COM

00:03:6B | Cisco

00:E0:75 | Veritel

00:D0:1E | Pingtel

00:01:E3 |

Siemens 00:60:B9

| NEC/Philips

00:0F:E2 | H3C

00:09:6E | Avaya

Port | State | Port Mode | Cos Mode

Cudy GS2018PS2 - Example - 2

fa1 | Disabled | Auto |

All fa2 | Disabled | Auto

| All fa3 | Disabled | Auto

| All fa4 | Disabled | Auto

| Src fa5 | Disabled | Auto

| Src fa6 | Disabled | Auto

Src fa7 | Disabled |

Auto | Src

fa8 | Disabled | Auto | Src

voice-vlan mode

Syntaxvoice-vlan mode (auto|manual) no voice-vlan mode
ParameterautoSpecifies that the port is identified as a candidate to join the voice VLAN. When a packet with a source OUI MAC address that identifies the remote equipment as voice equipment is seen on the port, the port joins the voice VLAN as a tagged port.
manualSpecifies that the port is manually assigned to the voice
DefaultThe default is auto mode.

Mode

Interface Configuration

UsageUse thevoice-vlan modeglobal configuration command toconfigure the voice VLAN mode for interface.Use the “no” form to restore to default mode.You can verify your setting by entering theshow voice-vlaninterfaces Privileged EXECcommand.
ExampleThe following example how to configure voice mode tomanual Switch(config)#interface range fa1-3Switch(config-if)#voice-vlan modemanaul Switch#show voice-vlaninterfaces fa1-8Voice VLAN Aging :1440 minutesVoice VLAN CoS 7Voice VLAN 1p Remark: enabledOUI tableOUI MAC | Description----+----00:E0:BB | 3COM00:03:6B | Cisco00:E0:75 | Veritel00:D0:1E | Pingtel00:01:E3 | Siemens00:60:B9 |NEC/Philips 00:0F:E2| H3C00:09:6E | AvayaPort | State | Port Mode | Cos Mode----+----+----+----fa1 | Disabled | Manual | Srcfa2 | Disabled | Manual | Srcfa3 | Disabled | Manual | Srcfa4 | Disabled | Auto | Srcfa5 | Disabled | Auto | Srcfa6 | Disabled | Auto | Srcfa7 | Disabled | Auto | Srcfa8 | Disabled | Auto | Src

voice-vlan aging-time

Syntax voice-vlan aing-time <30-65536> no voice-vlan aing-time

Parameter<30-65536>Specify the voice VLAN aging timeout interval in
DefaultThe default aging-timeout value is 1440 minutes
ModeGlobal Configuration
UsageUse thevoice vlan aging-timeglobal configuration command to configure the voice VLAN aging timeout.Use the “no” form to restore to default time.You can verify your setting by entering theshow voice vlanPrivileged EXECcommand
ExampleThe following example shows how to set aging time. Switch(config)#voice-vlan aging-time720Switch#show voice-vlanAdministrate Voice VLAN state :disabled Voice VLAN ID 1Voice VLAN Aging : 720minutes Voice VLAN CoS5Voice VLAN 1p Remark: enabled

show voice-vlan

Syntax show voice-vlanshow voice-vlan interfaces [IF_PORTS]
ParameterIF_PORTSSpecifies interfaces to display voice VLAN settings in
DefaultN/A
ModePrivileged EXEC
UsageUse the show voice vlan command in EXEC mode to display the voice VLAN status for all interfaces or for a specific interface if the voice VLAN type is OUI
ExampleThe following example show how to display voice vlan oui mode settings Switch# show voice-vlan

Administrate Voice VLAN state : disabled

Voice VLAN ID : none (disable)

Voice VLAN Aging : 720

minutes Voice VLAN CoS 6

Voice VLAN 1p Remark: disabled

Switch# show voice-vlan

interfaces fa1-4 Voice VLAN

Aging : 720

minutes Voice VLAN CoS

5

Voice VLAN 1p Remark: enabled

OUI table

OUI MAC | Description

---- 00:E0:BB | 3COM

00:03:6B | Cisco

00:E0:75 | Veritel

00:D0:1E | Pingtel

00:01:E3 |

Siemens 00:60:B9

| NEC/Philips

00:0F:E2 | H3C

00:09:6E | Avaya

Port | State | Port Mode | Cos Mode

fa1 | Disabled | Auto |

Src fa2 | Disabled | Auto

| Src fa3 | Disabled | Auto

| Src

fa4 | Disabled | Auto | Src

37. Static Routing

IPv4 Interface

Syntaxinterface vlanip address ipaddr maskno interface vlanno ip address
ParameteripaddrSpecify IPv4 address for switch
maskSpecify net mask address for switch

Command Line Interface

User Guide

Default The vlan interface and ip address are not configured by default.

Mode Global configuration and vlan interface configuration.

Usage Use theinterface vlan global configuration command to configip interface on the device.Use theip addresscommand in vlan interface mode toconfigure the device's ip address.Use theno ip addresscommand to delete the configured ipaddress.Use theno interface vlancommand to delete ip interface on the device.You can verify your setting by entering theshow ip interfacevlan Privileged EXEC command.
ExampleThe following example shows how to config ipinterface.Switch(config)#interface vlan 2Switch(config-if)#ip address 192.168.3.1255.255.255.0Switch#show ip interface vlan 2
IP Address StatusI/FI/F Status admin/oper Type
192.168.3.1/24VLAN 2UP/DOWNStaticValid

IPv4 Routes

Syntax ip route dest-ipaddr mask router-ipaddr
no ip route dest-ipaddr mask router-ipaddr

Parameterdest-ipaddrDestination ip address prefix
maskDestination ip address prefix mask
router-ipaddrForwarding router's ip address
DefaultStatic route is not configured by default.
ModeGlobal Configuration mode.
UsageUse the ip route command in global mode to configure a static route rule.Use the no ip route command to delete a static routing rule.You can verify your setting by entering the show ip routePrivileged EXEC command
ExampleThe following example shows how to configure a static route.Switch(config)# vlan 2Switch(config)# interface GigabitEthernet 4Switch(config-if)# switchport trunk allowed vlan add 2Switch(config)# interface vlan 2Switch(config-if)# ip address 192.168.3.1 255.255.255.0Switch(config)# ip route 1.1.1.1 255.0.0.0 192.168.3.11Switch# show ip routeCodes: > - best, C - connected, S - staticS> 1.0.0.0/8 [1/1] via 192.168.3.11, VLAN 2C> 192.168.0.0/24 is directly connected, MGMT VLANC> 192.168.3.0/24 is directly connected, VLAN 2

IPv4 ARP

Syntax arp ip-addr mac-addr vlan vlanid no arp ip-addr mac-addr vlan vlanid

Parameterip-addrIP address of ARP entry
mac-addrMAC address of ARP entry
vlanidVlan ID of this arp entry

Default The device contains ARP entries of the vlan interface.

ModeGlobal Configuration mode.
UsageUse the arp command to add a static arp entry.Use the no arp command to delete a static arp entry.You can verify your setting by entering the show arp Privileged EXEC command
ExampleThe following example shows how to configure and view a static arp entry.Switch(config)# arp 192.168.3.22 00:00:11:11:11 vlan 2Switch# show arpVLAN Interface IP address HW address Status---- ---- ---- ---- ----vlan 1 192.168.0.112 00:D0:00:00:00:01 Dynamicvlan 2 192.168.3.22 00:00:11:11:11:11 Static

IPv6 Interface

Syntaxinterface vlan vlanid
ipv6 enable
no interface vlan vlanid
no ipv6 enable
ParametervlanidVlan id for vlan interface

Default The vlan interface are not configured by default.Ipv6 is disabled.

Mode Global configuration and vlan interface configuration.

Usage Use the interface vlan global configuration command to config ip interface on the device. Use the ipv6 enable command in vlan interface mode to enable ipv6 function. Use the no ipv6 enable command to disable ipv6 function. Use the no interface vlan command to delete ip interface on the device. You can verify your setting by entering the show ipv6 interface vlan Privileged EXEC command.

Command Line Interface

User Guide

Example

The following example shows how to config ip interface.

Switch(config)# interface vlan 2

Switch(config-if)# ipv6 enable

Switch# show ipv6 interface vlan 2

VLAN 2 is up/up

IPv6 is enabled, link-local address is fe80::2e0:4cff:fe00:0

IPv6 Forwarding is enabled

No global unicast address is configured

Joined group address(es):

ff02::1:ff00:0

ff02::1

ff01::1

ND DAD is enabled, number of DAD attempts: 1

Stateless autoconfiguration is enabled

IPv6 Address

Syntax

ipv6 address ipv6-addr

no ipv6 address

Parameter

ipv6-addr

Manually configured ipv6 address

Default The vlan interface are not configured by default.Ipv6 is disabled.

Mode Global configuration and vlan interface configuration.

Usage Use the ipv6 address command in vlan interface mode to config a manual ipv6 address.

Use the no ipv6 address command in vlan interface mode to delete all manual ipv6 addresses on this vlan interface.

You can verify your setting by entering the show ipv6 interface vlan Privileged EXEC command.

Example

The following example shows how to config ip interface.

Switch(config)# interface vlan 2

Switch(config-if)# ipv6 address 2001:01::01:01/64

Switch# show ipv6 interface vlan 2

VLAN 2 is up/up

IPv6 is enabled, link-local address is fe80::2e0:4cff:fe00:0

IPv6 Forwarding is enabled

Global unicast address(es):

IPv6 Global Address

2001:1::1:1/64

Joined group address(es):

ff02::1:ff01:1

Type

Manual

ff02::1:ff00:0

ff02::1

ff01::1

ND DAD is enabled, number of DAD attempts: 1

Stateless autoconfiguration is enabled Stateless

autoconfiguration is enabled

IPv6 Routes

Syntaxipv6 route ipv6-addr/length route-ipv6-addr no ipv6 address ipv6-addr/length
Parameteripv6-addr/lengthDestination ipv6 prefix and length
route-ipv6-addrForwarding router's ipv6 address

Default The ipv6 routing entry is not configured by default.

Mode Global configuration and vlan interface configuration.

Usage Use the ipv6 route command to configure a static ipv6 routing entry. Use the no ipv6 address command to delete a static ipv6 routing entry. You can verify your setting by entering the show ipv6 route static Privileged EXEC command.
ExampleThe following example shows how to configure an ipv6 routing entry.Switch(config)# ipv6 route 2002:01::01:01/96 2001:01::01:02Switch# show ipv6 route staticCodes: A - active, I - inactive

I 2002:1::/96 [1/1] via 2001:1::1:2, inactive

IPv6 Neighbors

Syntaxipv6 neighbor ipv6-addr vlan vlanid macaddr no ipv6 neighbor
Parameteripv6-addrNeighbor ipv6 address
vlanidVlan interface number
macaddrMAC address of ipv6 neighbor entry

Default No ipv6 neighbor address by default.

Mode Global configuration.

Usage Use the ipv6 neighbor command to configure a static ipv6 neighbor entry.

Use the no ipv6 neighbor command to delete ipv6 neighbor entry.

You can verify your setting by entering the show ipv6 neighbors Privileged EXEC command.

Example The following example shows how to configure an ipv6 neighbor entry.

Switch(config)# ipv6 neighbor 2001:01::01:11 vlan 2 00:00:00:11:11:12

Switch# show ipv6 neighbors

VLAN Interface IPv6 address HW address Status Router State

vlan 2 2001:1::1:11 00:00:00:11:11:12

Static No

Total number of entries: 1

38. POE

POE Port Setting

Syntaxpoe
no poe
Parameter

Default All ports are enabled for poe power supply by default. (Poe-enabled device)

Mode interface configuration.

Usage Use the poe command in interface mode to enable port poe power supply. Use the no poe command in interface mode to disable port poe power supply. You can check the port poe working status by using the show poe Privileged EXEC command.

Command Line Interface

User Guide

Example

The following example shows how to config poe.

Switch(config)# interface GigabitEthernet 1

Switch(config-if)# poe

Switch# show poe

Get poe power:

Port | Enable | State | type | level | actual- | volatge(V) | current(mA)

||||power(mW) ||
++++++++
gi1enableonAT46765213
gi2enableoffAF0N/AN/AN/A
gi3enableoffAF0N/AN/AN/A
gi4enableoffAF0N/AN/AN/A
gi5enableoffAF0N/AN/AN/A
gi6enableoffAF0N/AN/AN/A
gi7enableoffAF0N/AN/AN/A
gi8enableoffAF0N/AN/AN/A

Total used power: 676 (mW)

Current Temperature: 65 (C)

POE Port Schedule Setting

Syntaxpoe schedule week days hour hours
no poe schedule week days hour hours
ParameterdaysPort poe power supply days
hoursPort poe power supply hours

Default All ports open POE function all day by default.

( Poe-enabled device)

Mode interface configuration.

Usage Use the poe schedule command in interface mode to set port poe power supply time.

Use the no poe schedule command in interface mode to clear port poe power supply time..

You can check the port poe work time setting view through the web.

Example

The following example shows how to config poe schedule.

Switch(config)# interface GigabitEthernet 1

Switch(config-if)# poe schedule week mon hour 1

Note: The configured time has a deviation of about 0\~10

minutes.

Table of contents Click a title to access it
Manual assistant
Powered by Anthropic
Waiting for your message
Product information

Brand : Cudy

Model : GS2018PS2

Category : Switch