Edge-Core ECS4620-28P Cli Reference Manual

Edge-Core ECS4620-28P Cli Reference Manual

28/52-port layer 3 stackable ge switch
Hide thumbs Also See for ECS4620-28P:
Table of Contents

Advertisement

ECS4620 Series
28/52-Port Layer 3
C L I R e f e r e n c e G u i d e
Stackable GE Switch
Software Release v1.2.2.26
www.edge-core.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ECS4620-28P and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Edge-Core ECS4620-28P

  • Page 1 ECS4620 Series 28/52-Port Layer 3 C L I R e f e r e n c e G u i d e Stackable GE Switch Software Release v1.2.2.26 www.edge-core.com...
  • Page 2 2 10-Gigabit SFP+ Ports, and Optional Module with 2 10-Gigabit SFP+ Ports and Optional Module with 2 10-Gigabit SFP+ Ports ECS4620-28P Stackable GE PoE Switch ECS4620-52P Stackable GE PoE Switch Layer 3 Stackable Gigabit Ethernet PoE Switch Layer 3 Stackable Gigabit Ethernet PoE Switch...
  • Page 3: How To Use This Guide

    How to Use This Guide This guide includes detailed information on the switch software, including how to operate and use the management functions of the switch. To deploy this switch effectively and ensure trouble-free operation, you should first read the relevant sections in this guide so that you are familiar with all of its software features.
  • Page 4 How to Use This Guide Conventions The following conventions are used throughout this guide to show information: Note: Emphasizes important information or calls your attention to related features or instructions. Caution: Alerts you to a potential hazard that could cause loss of data, or damage the system or equipment.
  • Page 5 How to Use This Guide ◆ Added Command Usage for "show interfaces brief" on page 433. ◆ Updated syntax for "show port monitor" on page 475. ◆ Updated Command Usage for "spanning-tree bpdu-filter" on page 536. ◆ Updated Command Usage for "spanning-tree bpdu-guard"...
  • Page 6 April 2014 Revision This is the second version of this guide. This guide is valid for software release v1.2.1.3. It contains the following changes: ◆ Added information for ECS4620-28F, ECS4620-28T, and ECS4620-28P. ◆ Extended configurable VLAN range from 1-4093 to 1-4094. ◆...
  • Page 7 How to Use This Guide ◆ Updated command usage section for the command "port security" on page 313. ◆ Added the command "port security mac-address-as-permanent" on page 315. ◆ Added the commands "ip dhcp snooping information option encode no- subtype" on page 342, "ip dhcp snooping information option remote-id"...
  • Page 8 How to Use This Guide ◆ Updated syntax for the commands "show qos map cos-dscp" on page 641, "show qos map dscp-mutation" on page 641, and "show qos map phb-queue" on page 642. ◆ Added the commands "clear ip igmp snooping groups dynamic" on page 683, "clear ip igmp snooping statistics"...
  • Page 9: Table Of Contents

    Contents How to Use This Guide Contents Figures Tables Section I Getting Started 1 Initial Switch Configuration Connecting to the Switch Configuration Options Connecting to the Console Port Logging Onto the Command Line Interface Setting Passwords Remote Connections Stack Operations Selecting the Stack Master Selecting the Backup Unit Recovering from Stack Failure or Topology Change...
  • Page 10 Contents Downloading Operation Code from a File Server Specifying a DHCP Client Identifier Downloading a Configuration File and Other Parameters from a DHCP Server Setting the System Clock Setting the Time Manually Configuring SNTP Configuring NTP Section II Command Line Interface 2 Using the Command Line Interface Accessing the CLI Console Connection...
  • Page 11 Contents configure disable reload (Privileged Exec) show reload exit 4 System Management Commands Device Designation hostname Banner Information banner configure banner configure company banner configure dc-power-info banner configure department banner configure equipment-info banner configure equipment-location banner configure ip-lan banner configure lp-number banner configure manager-info banner configure mux banner configure note...
  • Page 12 Contents show watchdog watchdog software Fan Control fan-speed force-full Frame Size jumbo frame File Management General Commands boot system copy delete whichboot Automatic Code Upgrade Commands upgrade opcode auto upgrade opcode path upgrade opcode reload show upgrade TFTP Configuration Commands ip tftp retry ip tftp timeout show ip tftp...
  • Page 13 Contents terminal show line Event Logging logging facility logging history logging host logging on logging trap clear log show log show logging SMTP Alerts logging sendmail logging sendmail destination-email logging sendmail host logging sendmail level logging sendmail source-email show logging sendmail Time SNTP Commands sntp client...
  • Page 14 Contents calendar set show calendar Time Range time-range absolute periodic show time-range Switch Clustering cluster cluster commander cluster ip-pool cluster member rcommand show cluster show cluster members show cluster candidates Stacking switch all renumber switch master button switch stacking button show switch master button show switch stacking button show switch stacking interfaces...
  • Page 15 Contents show snmp-server enable port-traps SNMPv3 Commands snmp-server engine-id snmp-server group snmp-server user snmp-server view show snmp engine-id show snmp group show snmp user show snmp view Notification Log Commands snmp-server notify-filter show nlm oper-status show snmp notify-filter Additional Trap Commands memory process cpu process cpu guard...
  • Page 16 Contents 8 Authentication Commands User Accounts and Privilege Levels enable password username privilege show privilege Authentication Sequence authentication enable authentication login RADIUS Client radius-server acct-port radius-server auth-port radius-server host radius-server key radius-server retransmit radius-server timeout show radius-server TACACS+ Client tacacs-server host tacacs-server key tacacs-server port tacacs-server retransmit...
  • Page 17 Contents accounting exec authorization exec show accounting show authorization Web Server ip http authentication ip http port ip http secure-port ip http secure-server ip http server Telnet Server ip telnet max-sessions ip telnet port ip telnet server telnet (client) show ip telnet Secure Shell ip ssh authentication-retries ip ssh server...
  • Page 18 Contents dot1x max-reauth-req dot1x max-req dot1x operation-mode dot1x port-control dot1x re-authentication dot1x timeout quiet-period dot1x timeout re-authperiod dot1x timeout supp-timeout dot1x timeout tx-period dot1x re-authenticate Supplicant Commands dot1x identity profile dot1x max-start dot1x pae supplicant dot1x timeout auth-period dot1x timeout held-period dot1x timeout start-period Information Display Commands show dot1x...
  • Page 19 Contents Port Security mac-learning port security port security mac-address-as-permanent show port security Network Access (MAC Address Authentication) network-access aging network-access mac-filter mac-authentication reauth-time network-access dynamic-qos network-access dynamic-vlan network-access guest-vlan network-access link-detection network-access link-detection link-down network-access link-detection link-up network-access link-detection link-up-down network-access max-mac-count network-access mode mac-authentication network-access port-mac-filter...
  • Page 20 Contents show web-auth summary DHCPv4 Snooping ip dhcp snooping ip dhcp snooping information option ip dhcp snooping information option encode no-subtype ip dhcp snooping information option remote-id ip dhcp snooping information option tr101 board-id ip dhcp snooping information policy ip dhcp snooping limit rate ip dhcp snooping verify mac-address ip dhcp snooping vlan ip dhcp snooping information option circuit-id...
  • Page 21 Contents clear ip source-guard binding blocked show ip source-guard show ip source-guard binding IPv6 Source Guard ipv6 source-guard binding ipv6 source-guard ipv6 source-guard max-binding show ipv6 source-guard show ipv6 source-guard binding ARP Inspection ip arp inspection ip arp inspection filter ip arp inspection log-buffer logs ip arp inspection validate ip arp inspection vlan...
  • Page 22 Contents traffic-segmentation session traffic-segmentation uplink/downlink traffic-segmentation uplink-to-uplink show traffic-segmentation 10 Access Control Lists IPv4 ACLs access-list ip ip access-group (Global Configuration) permit, deny (Standard IP ACL) permit, deny (Extended IPv4 ACL) ip access-group (Interface Configuration) show ip access-group show ip access-list IPv6 ACLs access-list ipv6 ipv6 access-group (Global Configuration)
  • Page 23 Contents show access-group show access-list 11 Interface Commands Interface Configuration interface alias capabilities description discard flowcontrol media-type negotiation shutdown speed-duplex clear counters show discard show interfaces brief show interfaces counters show interfaces status show interfaces switchport Transceiver Threshold Configuration transceiver-monitor transceiver-threshold-auto transceiver-threshold current transceiver-threshold rx-power...
  • Page 24 Contents Power Savings power-save show power-save 12 Link Aggregation Commands Manual Configuration Commands port channel load-balance channel-group Dynamic Configuration Commands lacp lacp admin-key (Ethernet Interface) lacp port-priority lacp system-priority lacp admin-key (Port Channel) lacp timeout Trunk Status Display Commands show lacp show port-channel load-balance 13 Power over Ethernet Commands power inline...
  • Page 25 Contents 15 Congestion Control Commands Rate Limit Commands rate-limit Storm Control Commands switchport packet-rate Automatic Traffic Control Commands Threshold Commands auto-traffic-control apply-timer auto-traffic-control release-timer auto-traffic-control auto-traffic-control action auto-traffic-control alarm-clear-threshold auto-traffic-control alarm-fire-threshold auto-traffic-control auto-control-release auto-traffic-control control-release SNMP Trap Commands snmp-server enable port-traps atc broadcast-alarm-clear snmp-server enable port-traps atc broadcast-alarm-fire snmp-server enable port-traps atc broadcast-control-apply snmp-server enable port-traps atc broadcast-control-release...
  • Page 26 Contents show loopback-detection 17 UniDirectional Link Detection Commands udld detection-interval udld message-interval udld recovery udld recovery-interval udld aggressive udld port show udld 18 Address Table Commands mac-address-table aging-time mac-address-table hash-lookup-depth mac-address-table static clear collision-mac-address-table clear mac-address-table dynamic show collision-mac-address-table show mac-address-table show mac-address-table aging-time show mac-address-table count show mac-address-table hash-lookup-depth...
  • Page 27 Contents max-hops mst priority mst vlan name revision spanning-tree bpdu-filter spanning-tree bpdu-guard spanning-tree cost spanning-tree edge-port spanning-tree link-type spanning-tree loopback-detection spanning-tree loopback-detection action spanning-tree loopback-detection release-mode spanning-tree loopback-detection trap spanning-tree mst cost spanning-tree mst port-priority spanning-tree port-bpdu-flooding spanning-tree port-priority spanning-tree root-guard spanning-tree spanning-disabled spanning-tree tc-prop-stop spanning-tree loopback-detection release...
  • Page 28 Contents meg-level mep-monitor node-id non-erps-dev-protect non-revertive propagate-tc raps-def-mac raps-without-vc ring-port rpl neighbor rpl owner version wtr-timer clear erps statistics erps clear erps forced-switch erps manual-switch show erps 21 VLAN Commands GVRP and Bridge Extension Commands bridge-ext gvrp garp timer switchport forbidden vlan switchport gvrp show bridge-ext show garp timer...
  • Page 29 Contents switchport ingress-filtering switchport mode switchport native vlan vlan-trunking Displaying VLAN Information show vlan Configuring IEEE 802.1Q Tunneling dot1q-tunnel system-tunnel-control switchport dot1q-tunnel mode switchport dot1q-tunnel priority map switchport dot1q-tunnel service match cvid switchport dot1q-tunnel tpid show dot1q-tunnel Configuring L2PT Tunneling l2protocol-tunnel tunnel-dmac switchport l2protocol-tunnel show l2protocol-tunnel...
  • Page 30 Contents switchport voice vlan switchport voice vlan priority switchport voice vlan rule switchport voice vlan security show voice vlan 22 Class of Service Commands Priority Commands (Layer 2) queue mode queue weight switchport priority default show queue mode show queue weight Priority Commands (Layer 3 and 4) qos map cos-dscp qos map dscp-mutation...
  • Page 31 Contents service-policy show class-map show policy-map show policy-map interface 24 Multicast Filtering Commands IGMP Snooping ip igmp snooping ip igmp snooping priority ip igmp snooping proxy-reporting ip igmp snooping querier ip igmp snooping router-alert-option-check ip igmp snooping router-port-expire-time ip igmp snooping tcn-flood ip igmp snooping tcn-query-solicit ip igmp snooping unregistered-data-flood ip igmp snooping unsolicited-report-interval...
  • Page 32 Contents ip igmp snooping vlan mrouter IGMP Filtering and Throttling ip igmp filter (Global Configuration) ip igmp profile permit, deny range ip igmp authentication ip igmp filter (Interface Configuration) ip igmp max-groups ip igmp max-groups action ip igmp query-drop ip multicast-data-drop show ip igmp authentication show ip igmp filter show ip igmp profile...
  • Page 33 Contents show ipv6 mld snooping group show ipv6 mld snooping group source-list show ipv6 mld snooping mrouter show ipv6 mld snooping statistics MLD Filtering and Throttling ipv6 mld filter (Global Configuration) ipv6 mld profile permit, deny range ipv6 mld filter (Interface Configuration) ipv6 mld max-groups ipv6 mld max-groups action ipv6 mld query-drop...
  • Page 34 Contents show mvr show mvr associated-profile show mvr interface show mvr members show mvr profile show mvr statistics MVR for IPv6 mvr6 associated-profile mvr6 domain mvr6 priority mvr6 profile mvr6 proxy-query-interval mvr6 proxy-switching mvr6 robustness-value mvr6 source-port-mode dynamic mvr6 upstream-source-ip mvr6 vlan mvr6 immediate-leave mvr6 type...
  • Page 35 Contents ip igmp version clear ip igmp group show ip igmp groups show ip igmp interface IGMP Proxy Routing ip igmp proxy ip igmp proxy unsolicited-report-interval MLD (Layer 3) ipv6 mld ipv6 mld last-member-query-response-interval ipv6 mld max-resp-interval ipv6 mld query-interval ipv6 mld robustval ipv6 mld static-group ipv6 mld version...
  • Page 36 Contents lldp basic-tlv system-name lldp dot1-tlv proto-ident lldp dot1-tlv proto-vid lldp dot1-tlv pvid lldp dot1-tlv vlan-name lldp dot3-tlv link-agg lldp dot3-tlv mac-phy lldp dot3-tlv max-frame lldp dot3-tlv poe lldp med-location civic-addr lldp med-notification lldp med-tlv ext-poe lldp med-tlv inventory lldp med-tlv location lldp med-tlv med-cap lldp med-tlv network-policy lldp notification...
  • Page 37 Contents show ethernet cfm configuration show ethernet cfm md show ethernet cfm ma show ethernet cfm maintenance-points local show ethernet cfm maintenance-points local detail mep show ethernet cfm maintenance-points remote detail Continuity Check Operations ethernet cfm cc ma interval ethernet cfm cc enable snmp-server enable traps ethernet cfm cc mep archive-hold-time clear ethernet cfm maintenance-points remote...
  • Page 38 Contents Delay Measure Operations ethernet cfm delay-measure two-way 27 OAM Commands efm oam efm oam critical-link-event efm oam link-monitor frame efm oam link-monitor frame threshold efm oam link-monitor frame window efm oam mode clear efm oam counters clear efm oam event-log efm oam remote-loopback efm oam remote-loopback test show efm oam counters interface...
  • Page 39 Contents DHCP for IPv4 ip dhcp client class-id ip dhcp restart client DHCP for IPv6 ipv6 dhcp client rapid-commit vlan show ipv6 dhcp duid show ipv6 dhcp vlan DHCP Relay DHCP Relay for IPv4 ip dhcp relay server ip dhcp restart relay DHCP Relay for IPv6 ipv6 dhcp relay destination show ipv6 dhcp relay destination...
  • Page 40 Contents 30 IP Interface Commands IPv4 Interface Basic IPv4 Configuration ip address ip default-gateway show ip interface show ip traffic traceroute ping ARP Configuration arp timeout ip proxy-arp clear arp-cache show arp UDP Helper Configuration ip forward-protocol udp ip helper ip helper-address show ip helper IPv6 Interface...
  • Page 41 Contents Neighbor Discovery ipv6 hop-limit ipv6 neighbor ipv6 nd dad attempts ipv6 nd managed-config-flag ipv6 nd other-config-flag ipv6 nd ns-interval ipv6 nd raguard ipv6 nd reachable-time ipv6 nd prefix ipv6 nd ra interval ipv6 nd ra lifetime ipv6 nd ra router-preference ipv6 nd ra suppress clear ipv6 neighbors show ipv6 nd raguard...
  • Page 42 Contents vrrp priority vrrp timers advertise show vrrp show vrrp interface show vrrp interface counters show vrrp router counters 50 IP Routing Commands Global Routing Configuration IPv4 Commands ip route maximum-paths show ip host-route show ip route show ip route database show ip route summary show ip traffic IPv6 Commands...
  • Page 43 Contents ip rip receive-packet ip rip send version ip rip send-packet ip rip split-horizon clear ip rip route show ip protocols rip 1000 show ip rip 1001 Open Shortest Path First (OSPFv2) 1002 General Configuration 1003 router ospf 1003 compatible rfc1583 1004 default-information originate 1005...
  • Page 44 Contents ip ospf priority 1027 ip ospf retransmit-interval 1028 ip ospf transmit-delay 1029 passive-interface 1030 Display Information 1030 show ip ospf 1030 show ip ospf border-routers 1032 show ip ospf database 1033 show ip ospf interface 1039 show ip ospf neighbor 1041 show ip ospf route 1042...
  • Page 45 Contents ipv6 ospf retransmit-interval 1062 ipv6 ospf transmit-delay 1063 passive-interface 1064 Display Information 1065 show ipv6 ospf 1065 show ipv6 ospf database 1066 show ipv6 ospf interface 1067 show ipv6 ospf neighbor 1068 show ipv6 ospf route 1069 show ipv6 ospf virtual-links 1070 Border Gateway Protocol (BGPv4) 1071...
  • Page 46 Contents network 1102 redistribute 1103 timers bgp 1104 clear ip bgp 1105 clear ip bgp dampening 1106 Route Metrics and Selection 1107 bgp always-compare-med 1107 bgp bestpath as-path ignore 1107 bgp bestpath compare-confed-aspath 1108 bgp bestpath compare-routerid 1108 bgp bestpath med 1109 bgp default local-preference 1110...
  • Page 47 Contents neighbor peer-group (Creating) 1126 neighbor peer-group (Group Members) 1127 neighbor port 1128 neighbor prefix-list 1128 neighbor remote-as 1129 neighbor remove-private-as 1130 neighbor route-map 1131 neighbor route-reflector-client 1131 neighbor route-server-client 1132 neighbor send-community 1133 neighbor shutdown 1134 neighbor soft-reconfiguration inbound 1134 neighbor strict-capability-match 1135...
  • Page 48 Contents show ip extcommunity-list 1151 show ip prefix-list 1151 show ip prefix-list detail 1152 show ip prefix-list summary 1152 Policy-based Routing for BGP 1153 route-map 1155 call 1156 continue 1156 description 1157 match as-path 1157 match community 1158 match extcommunity 1159 match ip address 1159...
  • Page 49 Contents 51 Multicast Routing Commands 1175 General Multicast Routing 1175 IPv4 Commands 1175 ip multicast-routing 1175 show ip mroute 1176 IPv6 Commands 1178 ipv6 multicast-routing 1178 show ipv6 mroute 1179 Static Multicast Routing 1181 ip igmp snooping vlan mrouter 1181 show ip igmp snooping mrouter 1182 PIM Multicast Routing...
  • Page 50 Contents ip pim spt-threshold 1200 ip pim dr-priority 1201 ip pim join-prune-interval 1202 clear ip pim bsr rp-set 1203 show ip pim bsr-router 1204 show ip pim rp mapping 1205 show ip pim rp-hash 1206 IPv6 PIM Commands 1206 PIM6 Shared Mode Commands 1207 router pim6 1207...
  • Page 51 Contents show ipv6 pim rp mapping 1228 show ipv6 pim rp-hash 1229 Section III Appendices 1231 A Troubleshooting 1233 Problems Accessing the Management Interface 1233 Using System Logs 1234 B License Information 1235 The GNU General Public License 1235 Glossary 1239 CLI Command List 1247...
  • Page 52 Contents – 52 –...
  • Page 53: Figures

    Figures Figure 1: Storm Control by Limiting the Traffic Rate Figure 2: Storm Control by Shutting Down a Port Figure 3: Non-ERPS Device Protection Figure 4: Sub-ring with Virtual Channel Figure 5: Sub-ring without Virtual Channel Figure 6: Configuring VLAN Trunking Figure 7: Mapping QinQ Service VLAN to Customer VLAN Figure 8: Configuring VLAN Translation Figure 1: Connections for Internal and External BGP...
  • Page 54 Figures – 54 –...
  • Page 55: Tables

    Tables Table 1: Options 60, 66 and 67 Statements Table 2: Options 55 and 124 Statements Table 3: General Command Modes Table 4: Configuration Command Modes Table 5: Keystroke Commands Table 6: Command Group Index Table 7: General Commands Table 8: System Management Commands Table 9: Device Designation Commands Table 10: Banner Commands Table 11: System Status Commands...
  • Page 56 Tables Table 30: show snmp engine-id - display description Table 31: show snmp group - display description Table 32: show snmp user - display description Table 33: show snmp view - display description Table 34: RMON Commands Table 35: sFlow Commands Table 36: Authentication Commands Table 37: User Access Commands Table 38: Default Login Settings...
  • Page 57 Tables Table 65: Commands for Configuring Traffic Segmentation Table 66: Traffic Segmentation Forwarding Table 67: Access Control List Commands Table 68: IPv4 ACL Commands Table 69: IPv6 ACL Commands Table 70: MAC ACL Commands Table 71: ARP ACL Commands Table 72: ACL Information Commands Table 73: Interface Commands Table 74: show interfaces counters - display description Table 75: show interfaces switchport - display description...
  • Page 58 Tables Table 100: show erps - summary display description Table 101: show erps domain - detailed display description Table 102: show erps statistics - detailed display description Table 103: VLAN Commands Table 104: GVRP and Bridge Extension Commands Table 105: show bridge-ext - display description Table 106: Commands for Editing VLAN Groups Table 107: Commands for Configuring VLAN Interfaces Table 108: Commands for Displaying VLAN Information...
  • Page 59 Tables Table 135: show ipv6 MLD snooping statistics summary - display description Table 136: MLD Filtering and Throttling Commands Table 137: Multicast VLAN Registration for IPv4 Commands Table 138: show mvr - display description Table 139: show mvr interface - display description Table 140: show mvr members - display description Table 141: show mvr statistics input - display description Table 142: show mvr statistics output - display description...
  • Page 60 Tables Table 170: OAM Commands Table 171: DNS Commands Table 172: show dns cache - display description Table 173: show hosts - display description Table 174: DHCP Commands Table 175: DHCP Client Commands Table 176: Options 60, 66 and 67 Statements Table 177: Options 55 and 124 Statements Table 178: DHCP Relay Option 82 Commands Table 179: DHCP Server Commands...
  • Page 61 Tables Table 11: show ip ospf database router - display description 1038 Table 12: show ip ospf database summary - display description 1039 Table 13: show ip ospf interface - display description 1040 Table 14: show ip ospf neighbor - display description 1041 Table 15: show ip ospf virtual-links - display description 1043...
  • Page 62 Tables Table 46: Troubleshooting Chart 1233 – 62 –...
  • Page 63: Section I

    Section I Getting Started This section describes how to configure the switch for management access through the web interface or SNMP. This section includes these chapters: ◆ "Initial Switch Configuration" on page 65 – 63 –...
  • Page 64 Section I | Getting Started – 64 –...
  • Page 65: Initial Switch Configuration

    Initial Switch Configuration This chapter includes information on connecting to the switch and basic configuration procedures. Connecting to the Switch The switch includes a built-in network management agent. The agent offers a variety of management options, including SNMP, RMON and a web-based interface. A PC may also be connected directly to the switch for configuration and monitoring via a command line interface (CLI).
  • Page 66: Connecting To The Console Port

    Chapter 1 | Initial Switch Configuration Connecting to the Switch ◆ Filter packets using Access Control Lists (ACLs) ◆ Configure up to 4094 IEEE 802.1Q VLANs ◆ Enable GVRP automatic VLAN registration ◆ Configure IP routing for unicast or multicast traffic ◆...
  • Page 67: Logging Onto The Command Line Interface

    Chapter 1 | Initial Switch Configuration Connecting to the Switch Set flow control to none. ■ Set the emulation mode to VT100. ■ When using HyperTerminal, select Terminal keys, not Windows keys. ■ Power on the switch. After the system completes the boot cycle, the logon screen appears. Logging Onto the The CLI program provides two different command levels —...
  • Page 68: Remote Connections

    Console(config)# * This manual covers all switches in the ECS4620 series. Other than the difference in port types, and support for PoE (ECS4620-28P/52P/52P-2AC), there are no significant differences. Therefore nearly all of the screen display examples are based on the ECS4620-28T.
  • Page 69: Stack Operations

    Chapter 1 | Initial Switch Configuration Stack Operations Stack Operations Up to eight switches can be stacked together as described in the Installation Guide. One unit in the stack acts as the Master for configuration tasks and firmware upgrade. All of the other units function in Slave mode, but can automatically take over management of the stack if the Master unit fails.
  • Page 70: Selecting The Backup Unit

    Chapter 1 | Initial Switch Configuration Stack Operations Selecting the Once the Master unit finishes booting up, it continues to synchronize configuration information to all of the Slave units in the stack. If the Master unit fails or is powered Backup Unit off, a new master unit will be selected based on the election rules described in the preceding section.
  • Page 71: Renumbering The Stack

    Chapter 1 | Initial Switch Configuration Stack Operations failover events, you should include port members on several units within the primary VLAN used for stack management. Resilient Configuration If a unit in the stack fails, the unit numbers will not change. This means that when you replace a unit in the stack, the original configuration for the failed unit will be restored to the replacement unit.
  • Page 72: Configuring The Switch For Remote Management

    Chapter 1 | Initial Switch Configuration Configuring the Switch for Remote Management image” and downloads the image to those backup units that are running a different image version. Configuring the Switch for Remote Management Using the Network The switch can be managed through the operational network, known as in-band Interface management.
  • Page 73 Chapter 1 | Initial Switch Configuration Configuring the Switch for Remote Management Assigning an IPv4 Address Before you can assign an IP address to the switch, you must obtain the following information from your network administrator: ◆ IP address for the switch ◆...
  • Page 74 Chapter 1 | Initial Switch Configuration Configuring the Switch for Remote Management To configure an IPv6 link local address for the switch, complete the following steps: From the Global Configuration mode prompt, type “interface vlan 1” to access the interface-configuration mode. Press <Enter>. Type “ipv6 address”...
  • Page 75 Chapter 1 | Initial Switch Configuration Configuring the Switch for Remote Management To generate an IPv6 global unicast address for the switch, complete the following steps: From the global configuration mode prompt, type “interface vlan 1” to access the interface-configuration mode. Press <Enter>. From the interface prompt, type “ipv6 address ipv6-address”...
  • Page 76 Chapter 1 | Initial Switch Configuration Configuring the Switch for Remote Management Dynamic Configuration Obtaining an IPv4 Address If you select the “bootp” or “dhcp” option, the system will immediately start broadcasting service requests. IP will be enabled but will not function until a BOOTP or DHCP reply has been received.
  • Page 77 Chapter 1 | Initial Switch Configuration Configuring the Switch for Remote Management Console(config)#interface vlan 1 Console(config-if)#ip address dhcp Console(config-if)#end Console#show ip interface VLAN 1 is Administrative Up - Link Up Address is 00-E0-0C-00-00-FB Index: 1001, MTU: 1500 Address Mode is DHCP IP Address: 192.168.0.2 Mask: 255.255.255.0 Proxy ARP is disabled DHCP Client Vendor Class ID (text): ECS4620-28T...
  • Page 78: Enabling Snmp Management Access

    Enabling SNMP Management Access The switch can be configured to accept management commands from Simple Network Management Protocol (SNMP) applications such as Edge-Core ECView Pro. You can configure the switch to respond to SNMP requests or generate SNMP traps. When SNMP management stations send requests to the switch (either to return information or to set a parameter), the switch provides the requested data or sets the specified parameter.
  • Page 79 Chapter 1 | Initial Switch Configuration Enabling SNMP Management Access Console(config)#snmp-server community admin rw Console(config)#snmp-server community private Console(config)# Note: If you do not intend to support access to SNMP version 1 and 2c clients, we recommend that you delete both of the default community strings. If there are no community strings, then SNMP management access from SNMP v1 and v2c clients is disabled.
  • Page 80: Managing System Files

    Chapter 1 | Initial Switch Configuration Managing System Files For a more detailed explanation on how to configure the switch for access from SNMP v3 clients, refer to “SNMP Commands” on page 203 or to the Web Management Guide. Managing System Files The switch’s flash memory supports three types of system files that can be managed by the CLI program, the web interface, or SNMP.
  • Page 81: Upgrading The Operation Code

    Chapter 1 | Initial Switch Configuration Managing System Files config, the system will reboot, and the settings will have to be copied from the running-config to a permanent file. Upgrading the The following example shows how to download new firmware to the switch and activate it.
  • Page 82 Chapter 1 | Initial Switch Configuration Managing System Files the new file as the startup file. To select a previously saved configuration file, use the boot system config:<filename> command. The maximum number of saved configuration files depends on available flash memory.
  • Page 83: Automatic Installation Of Operation Code And Configuration Settings

    Chapter 1 | Initial Switch Configuration Automatic Installation of Operation Code and Configuration Settings Automatic Installation of Operation Code and Configuration Settings Downloading Automatic Operation Code Upgrade can automatically download an operation Operation Code from code file when a file newer than the currently installed one is discovered on the file server.
  • Page 84 Chapter 1 | Initial Switch Configuration Automatic Installation of Operation Code and Configuration Settings ◆ Note that the switch itself does not distinguish between upper and lower-case file names, and only checks to see if the file stored on the server is more recent than the current runtime image.
  • Page 85 Chapter 1 | Initial Switch Configuration Automatic Installation of Operation Code and Configuration Settings This shows how to specify an FTP server where new code is stored. Console(config)#upgrade opcode path tftp://192.168.0.1/sm24/ Console(config)# Set the switch to automatically reboot and load the new code after the opcode upgrade is completed.
  • Page 86: Specifying A Dhcp Client Identifier

    Chapter 1 | Initial Switch Configuration Automatic Installation of Operation Code and Configuration Settings The following shows an example of the upgrade process. Console#dir File Name Type Startup Modify Time Size(bytes) -------------------------- -------------- ------- ------------------- ------- Unit 1: ECS4620-28T_V1.2.2.26.bix OpCode 2000-12-31 00:19:13 18601012 Factory_Default_Config.cfg...
  • Page 87: Downloading A Configuration File And Other Parameters From A Dhcp Server

    Chapter 1 | Initial Switch Configuration Downloading a Configuration File and Other Parameters from a DHCP Server The general framework for this DHCP option is set out in RFC 2132 (Option 60). This information is used to convey configuration settings or other identification information about a client, but the specific string to use should be supplied by your service provider or network administrator.
  • Page 88: Table 1: Options 60, 66 And 67 Statements

    Chapter 1 | Initial Switch Configuration Downloading a Configuration File and Other Parameters from a DHCP Server To successfully transmit a bootup configuration file to the switch, the DHCP daemon (using a Linux based system for this example) must be configured with the following information: ◆...
  • Page 89: Setting The System Clock

    Chapter 1 | Initial Switch Configuration Setting the System Clock subnet 192.168.255.0 netmask 255.255.255.0 { range 192.168.255.160 192.168.255.200; option routers 192.168.255.101; option tftp-server-name "192.168.255.100"; #Default Option 66 option bootfile-name "bootfile"; #Default Option 67 class "Option66,67_1" { #DHCP Option 60 Vendor class match if option vendor-class-identifier = "ecs4620-28t.cfg";...
  • Page 90: Configuring Sntp

    Chapter 1 | Initial Switch Configuration Setting the System Clock To set the time shift for summer time, enter a command similar to the following. Console(config)#clock summer-time SUMMER date 2 april 2013 0 0 30 june 2013 0 Console(config)# To display the clock configuration settings, enter the following command. Console#show calendar Current Time : Apr...
  • Page 91 Chapter 1 | Initial Switch Configuration Setting the System Clock Console(config)#ntp server 192.168.3.21 Console(config)#ntp server 192.168.5.23 key 19 Console(config)#exit Console#show ntp Current Time : Apr 29 13:57:32 2011 Polling : 1024 seconds Current Mode : unicast NTP Status : Enabled NTP Authenticate Status : Enabled Last Update NTP Server...
  • Page 92 Chapter 1 | Initial Switch Configuration Setting the System Clock – 92 –...
  • Page 93: Command Line Interface

    Section II Command Line Interface This section provides a detailed description of the Command Line Interface, along with examples for all of the commands. This section includes these chapters: ◆ “Using the Command Line Interface” on page 95 ◆ “General Commands” on page 109 ◆...
  • Page 94 Section II | Command Line Interface ◆ “Address Table Commands” on page 515 ◆ “Spanning Tree Commands” on page 523 ◆ “ERPS Commands” on page 553 ◆ “VLAN Commands” on page 585 ◆ “Class of Service Commands” on page 631 ◆...
  • Page 95: Using The Command Line Interface

    Using the Command Line Interface This chapter describes how to use the Command Line Interface (CLI). Note: You can only access the console interface through the Master unit in the stack. Accessing the CLI When accessing the management interface for the switch over a direct connection to the server’s console port, or via a Telnet or Secure Shell connection (SSH), the switch can be managed by entering command keywords and parameters at the prompt.
  • Page 96: Telnet Connection

    Chapter 2 | Using the Command Line Interface Accessing the CLI Telnet Connection Telnet operates over the IP transport protocol. In this environment, your management station and any network device you want to manage over the network must have a valid IP address. Valid IP addresses consist of four numbers, 0 to 255, separated by periods.
  • Page 97: Entering Commands

    Chapter 2 | Using the Command Line Interface Entering Commands Note: You can open up to eight sessions to the device via Telnet or SSH. Entering Commands This section describes how to enter CLI commands. Keywords and A CLI command is a series of keywords and arguments. Keywords identify a command, and arguments specify configuration parameters.
  • Page 98: Getting Help On Commands

    Chapter 2 | Using the Command Line Interface Entering Commands Getting Help You can display a brief description of the help system by entering the help command. You can also display command syntax by using the “?” character to list on Commands keywords or parameters.
  • Page 99 Chapter 2 | Using the Command Line Interface Entering Commands port Port characteristics port-channel Port channel information power Shows power power-save Shows the power saving information pppoe Displays PPPoE configuration privilege Shows current privilege level process Device process protocol-vlan Protocol-VLAN information public-key Public key information Quality of Service...
  • Page 100: Partial Keyword Lookup

    Chapter 2 | Using the Command Line Interface Entering Commands display the rest of the information without stopping. You can press any other key to terminate the display. Partial Keyword If you terminate a partial keyword with a question mark, alternatives that match the initial letters are provided.
  • Page 101: Exec Commands

    Chapter 2 | Using the Command Line Interface Entering Commands Table 3: General Command Modes Class Mode Exec Normal Privileged Configuration Access Control List Global Class Map DHCP ERPS IGMP Profile Interface Line Multiple Spanning Tree Policy Map Route Map Router Time Range VLAN Database...
  • Page 102: Configuration Commands

    Chapter 2 | Using the Command Line Interface Entering Commands Configuration Configuration commands are privileged level commands used to modify switch settings. These commands modify the running configuration only and are not Commands saved when the switch is rebooted. To store the running configuration in non- volatile storage, use the copy running-config startup-config command.
  • Page 103: Table 4: Configuration Command Modes

    Chapter 2 | Using the Command Line Interface Entering Commands ◆ VLAN Configuration - Includes the command to create VLAN groups. To enter the Global Configuration mode, enter the command configure in Privileged Exec mode. The system prompt will change to “Console(config)#” which gives you access privilege to all Global Configuration commands.
  • Page 104: Command Line Processing

    Chapter 2 | Using the Command Line Interface Entering Commands For example, you can use the following commands to enter interface configuration mode, and then return to Privileged Exec mode Console(config)#interface ethernet 1/5 Console(config-if)#exit Console(config)# Command Line Commands are not case sensitive. You can abbreviate commands and parameters Processing as long as they contain enough letters to differentiate them from any other currently available commands or parameters.
  • Page 105: Showing Status Information

    Chapter 2 | Using the Command Line Interface CLI Command Groups Showing Status There are various “show” commands which display configuration settings or the status of specified processes. Many of these commands will not display any Information information unless the switch is properly configured, and in some cases the interface to which a command applies is up.
  • Page 106 Chapter 2 | Using the Command Line Interface CLI Command Groups (Continued) Table 6: Command Group Index Command Group Description Page General Security Measures Segregates traffic for clients attached to common data ports; and prevents unauthorized access by configuring valid static or dynamic addresses, web authentication, MAC address authentication, filtering DHCP requests and replies, and discarding invalid ARP responses...
  • Page 107 Displays debugging information for all key functions These commands are not described in this manual. Please refer to the prompt messages included in the CLI interface. * ECS4620-28P/52P/52P-2AC The access mode shown in the following tables is indicated by these abbreviations: ACL (Access Control List Configuration)
  • Page 108 Chapter 2 | Using the Command Line Interface CLI Command Groups – 108 –...
  • Page 109: General Commands

    General Commands The general commands are used to control the command access mode, configuration mode, and other basic functions. Table 7: General Commands Command Function Mode prompt Customizes the CLI prompt reload Restarts the system at a specified time, after a specified delay, or at a periodic interval enable Activates privileged mode...
  • Page 110: Reload (Global Configuration)

    Chapter 3 | General Commands Command Mode Global Configuration Command Usage This command and the hostname command can be used to set the command line prompt as shown in the example below. Using the no form of either command will restore the default command line prompt.
  • Page 111: Enable

    Chapter 3 | General Commands Default Setting None Command Mode Global Configuration Command Usage ◆ This command resets the entire system. ◆ Any combination of reload options may be specified. If the same option is re- specified, the previous setting will be overwritten. ◆...
  • Page 112: Quit

    Chapter 3 | General Commands ◆ The “#” character is appended to the end of the prompt to indicate that the system is in privileged access mode. Example Console>enable Password: [privileged level password] Console# Related Commands disable (114) enable password (244) quit This command exits the configuration program.
  • Page 113: Configure

    Chapter 3 | General Commands Example In this example, the show history command lists the contents of the command history buffer: Console#show history Execution command history: 2 config 1 show history Configuration command history: 4 interface vlan 1 3 exit 2 interface vlan 1 1 end Console#...
  • Page 114: Disable

    Chapter 3 | General Commands disable This command returns to Normal Exec mode from privileged mode. In normal access mode, you can only display basic information on the switch's configuration or Ethernet statistics. To gain access to all commands, you must use the privileged mode.
  • Page 115: Show Reload

    Chapter 3 | General Commands show reload This command displays the current reload settings, and the time at which next scheduled reload will take place. Command Mode Privileged Exec Example Console#show reload Reloading switch in time: 0 hours 29 minutes. The switch will be rebooted at January 1 02:11:50 2016.
  • Page 116 Chapter 3 | General Commands Example This example shows how to return to the Privileged Exec mode from the Global Configuration mode, and then quit the CLI session: Console(config)#exit Console#exit Press ENTER to start session User Access Verification Username: – 116 –...
  • Page 117: System Management Commands

    System Management Commands The system management commands are used to control system logs, passwords, user names, management options, and display or configure a variety of other system information. Table 8: System Management Commands Command Group Function Device Designation Configures information that uniquely identifies this switch Banner Information Configures administrative contact, device identification and location System Status...
  • Page 118: Hostname

    Chapter 4 | System Management Commands Banner Information hostname This command specifies or modifies the host name for this device. Use the no form to restore the default host name. Syntax hostname name no hostname name - The name of this host. (Maximum length: 255 characters) Default Setting None Command Mode...
  • Page 119: Banner Configure

    The delete and left-arrow keys terminate the script. The use of the backspace key during script mode is not supported. If, for example, a mistake is made in the company name, it can be corrected with the banner configure company command. Example Console(config)#banner configure Company: Edge-Core Networks – 119 –...
  • Page 120: Banner Configure Company

    Manager3 name: Night-shift Net Admin / Janitor phone number: 123-555-1214 The physical location of the equipment. City and street address: 12 Straight St. Motown, Zimbabwe Information about this equipment: Manufacturer: Edge-Core Networks ID: 123_unique_id_number Floor: 2 Row: 7 Rack: 29 Shelf in this rack: 8 Information about DC power supply.
  • Page 121: Banner Configure Dc-Power-Info

    Chapter 4 | System Management Commands Banner Information banner configure This command is use to configure DC power information displayed in the banner. Use the no form to restore the default setting. dc-power-info Syntax banner configure dc-power-info floor floor-id row row-id rack rack-id electrical-circuit ec-id no banner configure dc-power-info [floor | row | rack | electrical-circuit] floor-id - The floor number.
  • Page 122: Banner Configure Equipment-Info

    Chapter 4 | System Management Commands Banner Information Command Mode Global Configuration Command Usage Input strings cannot contain spaces. The banner configure department command interprets spaces as data input boundaries. The use of underscores ( _ ) or other unobtrusive non-letter characters is suggested for situations where white space is necessary for clarity.
  • Page 123: Banner Configure Equipment-Location

    Chapter 4 | System Management Commands Banner Information Example Console(config)#banner configure equipment-info manufacturer-id ECS4620-28T floor 3 row 10 rack 15 shelf-rack 12 manufacturer Edge-Core Console(config)# banner configure This command is used to configure the equipment location information displayed equipment-location in the banner. Use the no form to restore the default setting.
  • Page 124: Banner Configure Lp-Number

    Chapter 4 | System Management Commands Banner Information Command Mode Global Configuration Command Usage Input strings cannot contain spaces. The banner configure ip-lan command interprets spaces as data input boundaries. The use of underscores ( _ ) or other unobtrusive non-letter characters is suggested for situations where white space is necessary for clarity.
  • Page 125: Banner Configure Manager-Info

    Chapter 4 | System Management Commands Banner Information banner configure This command is used to configure the manager contact information displayed in the banner. Use the no form to restore the default setting. manager-info Syntax banner configure manager-info name mgr1-name phone-number mgr1-number [name2 mgr2-name phone-number mgr2-number | name3 mgr3-name phone-number mgr3-number] no banner configure manager-info [name1 | name2 | name3]...
  • Page 126: Banner Configure Note

    Chapter 4 | System Management Commands Banner Information Default Setting None Command Mode Global Configuration Command Usage Input strings cannot contain spaces. The banner configure mux command interprets spaces as data input boundaries. The use of underscores ( _ ) or other unobtrusive non-letter characters is suggested for situations where white space is necessary for clarity.
  • Page 127: Show Banner

    | System Management Commands System Status show banner This command displays all banner information. Command Mode Normal Exec, Privileged Exec Example Console#show banner Edge-Core WARNING - MONITORED ACTIONS AND ACCESSES R&D Albert_Einstein - 123-555-1212 Lamar - 123-555-1219 Station's information: 710_Network_Path,_Indianapolis ECS4620-28T...
  • Page 128: Show Access-List Tcam-Utilization

    Chapter 4 | System Management Commands System Status (Continued) Table 11: System Status Commands Command Function Mode show users Shows all active console, Telnet, SSH and Web connections, NE, PE including user name, idle time and IP address show version Displays version information for the system NE, PE show watchdog...
  • Page 129: Show Process Cpu

    Chapter 4 | System Management Commands System Status Example Console#show memory Status Bytes ------ ---------- --- Free 111706112 Used 156729344 Total 268435456 Alarm Configuration Rising Threshold : 90% Falling Threshold : 70% Console# Related Commands memory (224) show process cpu This command shows the CPU utilization parameters, alarm status, and alarm thresholds.
  • Page 130: Show Process Cpu Guard

    Chapter 4 | System Management Commands System Status show process cpu This command shows the CPU utilization watermark and threshold settings. guard Command Mode Normal Exec, Privileged Exec Example Console#show process cpu guard CPU Guard Configuration Status : Disabled High Watermark : 90% Low Watermark : 70%...
  • Page 131: Show Running-Config

    Chapter 4 | System Management Commands System Status L2MCAST_GROUP 0.00 0.00 0.00 L2MUX_GROUP 0.00 0.00 0.00 L4_GROUP 0.00 0.00 0.00 LACP_GROUP 0.00 0.00 0.00 MSL_TD 0.00 0.00 0.00 NETACCESS_GROUP 0.00 0.00 0.00 NETACCESS_NMTR 0.00 0.25 2.00 NETCFG_GROUP 0.00 0.00 0.00 NETCFG_PROC 0.00 0.08...
  • Page 132 Chapter 4 | System Management Commands System Status port-channel channel-id (Range: 1-16) vlan vlan-id (Range: 1-4094) Command Mode Privileged Exec Command Usage ◆ Use the interface keyword to display configuration data for the specified interface. ◆ Use this command in conjunction with the show startup-config command to compare the information in running memory to the information stored in non- volatile memory.
  • Page 133: Show Startup-Config

    Chapter 4 | System Management Commands System Status username guest access-level 0 username guest password 7 084e0343a0486ff05530df6c705c8bb4 enable password 7 1b3231655cebb7a1f783eddf27d254ca vlan database VLAN 1 name DefaultVlan media ethernet state active spanning-tree mst configuration interface ethernet 1/1 interface ethernet 1/52 no negotiation interface vlan 1 ip address dhcp...
  • Page 134: Show System

    Chapter 4 | System Management Commands System Status Example Refer to the example for the running configuration file. Related Commands show running-config (131) show system This command displays system information. Default Setting None Command Mode Normal Exec, Privileged Exec Example Console#show system System Description : ECS4620-28T System OID String...
  • Page 135: Show Tech-Support

    Chapter 4 | System Management Commands System Status (Continued) Table 12: show system – display description Parameter Description System Location Specifies the system location. System Contact Administrator responsible for the system. MAC Address MAC address assigned to this switch. Web Server/Port Shows administrative status of web server and UDP port number.
  • Page 136: Show Users

    Chapter 4 | System Management Commands System Status ECS4620-28T_V1.2.1.6.bix OpCode 2013-07-02 08:18:42 17601308 Factory_Default_Config.cfg Config 2000-12-31 00:00:32 startup1.cfg Config 2000-01-01 02:31:23 2924 ---------------------------------------------------------------------------- Free space for compressed user config files: 65220608 show apr: ARP Cache Timeout: 1200 (seconds) IP Address MAC Address Type Interface...
  • Page 137: Show Version

    Chapter 4 | System Management Commands System Status Web Online Users: Line User Name Idle time (h:m:s) Remote IP Addr ----- -------------------------------- ----------------- --------------- HTTP admin 0:00:01 192.168.0.99 Console# show version This command displays hardware and software version information for the system. Command Mode Normal Exec, Privileged Exec Example...
  • Page 138: Table 14: Fan Control Commands

    Chapter 4 | System Management Commands Fan Control show watchdog This command shows if watchdog debugging is enabled. Command Mode Privileged Exec Example Console#show watchdog Software Watchdog Information Status : Enabled Console# watchdog software This command monitors key processes, and automatically reboots the system if any of these processes are not responding correctly.
  • Page 139: Table 15: Frame Size Commands

    Chapter 4 | System Management Commands Frame Size Syntax [no] fan-speed force-full Default Setting Normal speed Command Mode Global Configuration Example Console(config)#fan-speed force-full Console(config)# Frame Size This section describes commands used to configure the Ethernet frame size on the switch. Table 15: Frame Size Commands Command Function...
  • Page 140: Table 16: Flash/File Commands

    Chapter 4 | System Management Commands File Management operating at full duplex, all switches in the network between the two end nodes must be able to accept the extended frame size. And for half-duplex connections, all devices in the collision domain would need to support jumbo frames.
  • Page 141 Chapter 4 | System Management Commands File Management (Continued) Table 16: Flash/File Commands Command Function Mode copy Copies a code image or a switch configuration to or from flash memory or an FTP/SFTP/TFTP server delete Deletes a file or code image Displays a list of files in flash memory whichboot Displays the files booted...
  • Page 142 Chapter 4 | System Management Commands File Management Command Usage ◆ A colon (:) is required after the specified unit number and file type. ◆ If the file contains an error, it cannot be set as the default file. Example Console(config)#boot system config: startup Console(config)# Related Commands...
  • Page 143 Chapter 4 | System Management Commands File Management add-to-running-config - Keyword that adds the settings listed in the specified file to the running configuration. file - Keyword that allows you to copy to/from a file. ftp - Keyword that allows you to copy to/from an FTP server. https-certificate - Keyword that allows you to copy the HTTPS secure site certificate.
  • Page 144 Chapter 4 | System Management Commands File Management ◆ The Boot ROM and Loader cannot be uploaded or downloaded from the FTP/ SFTP/TFTP server. You must follow the instructions in the release notes for new firmware, or contact your distributor for help. ◆...
  • Page 145 Chapter 4 | System Management Commands File Management The following example shows how to upload the configuration settings to a file on the TFTP server: Console#copy file tftp Choose file type: 1. config: 2. opcode: 1 Source file name: startup TFTP server ip address: 10.1.0.99 Destination file name: startup.01 TFTP completed.
  • Page 146 Chapter 4 | System Management Commands File Management This example shows how to copy a public-key used by SSH from an TFTP server. Note that public key authentication via SSH is only supported for users configured locally on the switch. Console#copy tftp public-key TFTP server IP address: 192.168.1.19 Choose public key type:...
  • Page 147 Chapter 4 | System Management Commands File Management file - Keyword that allows you to delete a file. name - Keyword indicating a file. unit - Unit identifier. (Range: 1-8) filename - Name of configuration file or code image. https-certificate - Keyword that allows you to delete the HTTPS secure site certificate.
  • Page 148: Table 17: File Directory Information

    Chapter 4 | System Management Commands File Management unit - Unit identifier. (Range: 1-8) boot-rom - Boot ROM (or diagnostic) image file. config - Switch configuration file. opcode - Run-time operation code image file. filename - Name of configuration file or code image. If this file exists but contains errors, information on this file cannot be shown.
  • Page 149 Chapter 4 | System Management Commands File Management whichboot This command displays which files were booted when the system powered up. Syntax whichboot [unit] unit - Unit identifier. (Range: 1-8) Default Setting None Command Mode Privileged Exec Example This example shows the information displayed by the whichboot command. See the table under the dir command for a description of the file information displayed by this command.
  • Page 150 Chapter 4 | System Management Commands File Management the TFTP server must be ECS4620-28T.bix. If the switch detects a code version newer than the one currently in use, it will download the new image. If two code images are already stored in the switch, the image not set to start up the system will be overwritten by the new version.
  • Page 151 Chapter 4 | System Management Commands File Management Command Mode Global Configuration Command Usage ◆ This command is used in conjunction with the upgrade opcode auto command to facilitate automatic upgrade of new operational code stored at the location indicated by this command. ◆...
  • Page 152 Chapter 4 | System Management Commands File Management Example This shows how to specify a TFTP server where new code is stored. Console(config)#upgrade opcode reload Console(config)# show upgrade This command shows the opcode upgrade configuration settings. Command Mode Privileged Exec Example Console#show upgrade Auto Image Upgrade Global Settings:...
  • Page 153 Chapter 4 | System Management Commands File Management ip tftp timeout This command specifies the time the switch can wait for a response from a TFTP server before retransmitting a request or timing out for the last retry. Use the no form to restore the default setting.
  • Page 154: Table 18: Line Commands

    Chapter 4 | System Management Commands Line Line You can access the onboard configuration program by attaching a VT100 compatible device to the server’s serial port. These commands are used to set communication parameters for the serial port or Telnet (i.e., a virtual terminal). Table 18: Line Commands Command Function...
  • Page 155 Chapter 4 | System Management Commands Line line This command identifies a specific line for configuration, and to process subsequent line configuration commands. Syntax line {console | vty} console - Console terminal line. vty - Virtual terminal for remote console access (i.e., Telnet). Default Setting There is no default line.
  • Page 156 Chapter 4 | System Management Commands Line Command Usage The databits command can be used to mask the high bit on input from devices that generate 7 data bits with parity. If parity is being generated, specify 7 data bits per character.
  • Page 157 Chapter 4 | System Management Commands Line login This command enables password checking at login. Use the no form to disable password checking and allow connections without a password. Syntax login [local] no login local - Selects local password checking. Authentication is based on the user name specified with the username command.
  • Page 158 Chapter 4 | System Management Commands Line parity This command defines the generation of a parity bit. Use the no form to restore the default setting. Syntax parity {none | even | odd} no parity none - No parity even - Even parity odd - Odd parity Default Setting No parity...
  • Page 159 Chapter 4 | System Management Commands Line Command Usage ◆ When a connection is started on a line with password protection, the system prompts for the password. If you enter the correct password, the system shows a prompt. You can use the password-thresh command to set the number of times a user can enter an incorrect password before the system terminates the...
  • Page 160 Chapter 4 | System Management Commands Line Example To set the password threshold to five attempts, enter this command: Console(config-line-console)#password-thresh 5 Console(config-line-console)# Related Commands silent-time (160) silent-time This command sets the amount of time the management console is inaccessible after the number of unsuccessful logon attempts exceeds the threshold set by the password-thresh command.
  • Page 161 Chapter 4 | System Management Commands Line speed This command sets the terminal line’s baud rate. This command sets both the transmit (to terminal) and receive (from terminal) speeds. Use the no form to restore the default setting. Syntax speed bps no speed bps - Baud rate in bits per second.
  • Page 162 Chapter 4 | System Management Commands Line Example To specify 2 stop bits, enter this command: Console(config-line-console)#stopbits 2 Console(config-line-console)# timeout login This command sets the interval that the system waits for a user to log into the CLI. response Use the no form to restore the default setting. Syntax timeout login response [seconds] no timeout login response...
  • Page 163 Chapter 4 | System Management Commands Line Command Mode Privileged Exec Command Usage Specifying session identifier “0” will disconnect the console connection. Specifying any other identifiers for an active session will disconnect an SSH or Telnet connection. Example Console#disconnect 1 Console# Related Commands show ssh (284)
  • Page 164 Chapter 4 | System Management Commands Line Terminal Type: VT100 Width: 80 Command Mode Privileged Exec Example This example sets the number of lines displayed by commands with lengthy output such as show running-config to 48 lines. Console#terminal length 48 Console# show line This command displays the terminal line’s parameters.
  • Page 165: Table 19: Event Logging Commands

    Chapter 4 | System Management Commands Event Logging Login Timeout : 300 sec. Silent Time : Disabled Console# Event Logging This section describes commands used to configure event logging on the switch. Table 19: Event Logging Commands Command Function Mode logging facility Sets the facility type for remote logging of syslog messages GC logging history...
  • Page 166: Table 20: Logging Levels

    Chapter 4 | System Management Commands Event Logging However, it may be used by the syslog server to sort messages or to store messages in the corresponding database. Example Console(config)#logging facility 19 Console(config)# logging history This command limits syslog messages saved to switch memory based on severity. The no form returns the logging of syslog messages to the default level.
  • Page 167 Chapter 4 | System Management Commands Event Logging Example Console(config)#logging history ram 0 Console(config)# logging host This command adds a syslog server host IP address that will receive logging messages. Use the no form to remove a syslog server host. Syntax logging host host-ip-address [port udp-port] no logging host host-ip-address...
  • Page 168 Chapter 4 | System Management Commands Event Logging Command Usage The logging process controls error messages saved to switch memory or sent to remote syslog servers. You can use the logging history command to control the type of error messages that are stored in memory. You can use the logging trap command to control the type of error messages that are sent to specified syslog servers.
  • Page 169 Chapter 4 | System Management Commands Event Logging clear log This command clears messages from the log buffer. Syntax clear log [flash | ram] flash - Event history stored in flash memory (i.e., permanent memory). ram - Event history stored in temporary RAM (i.e., memory flushed on power reset).
  • Page 170 Chapter 4 | System Management Commands Event Logging Example The following example shows the event message stored in RAM. Console#show log ram [1] 00:01:30 2001-01-01 "VLAN 1 link-up notification." level: 6, module: 5, function: 1, and event no.: 1 [0] 00:01:30 2001-01-01 "Unit 1, Port 1 link-up notification."...
  • Page 171: Table 21: Show Logging Flash/Ram - Display Description

    Chapter 4 | System Management Commands Event Logging Table 21: show logging flash/ram - display description Field Description Syslog Logging Shows if system logging has been enabled via the logging on command. History Logging in Flash The message level(s) reported based on the logging history command.
  • Page 172: Table 23: Event Logging Commands

    Chapter 4 | System Management Commands SMTP Alerts SMTP Alerts These commands configure SMTP event handling, and forwarding of alert messages to the specified SMTP servers and email recipients. Table 23: Event Logging Commands Command Function Mode logging sendmail Enables SMTP event handling logging sendmail Email recipients of alert messages destination-email...
  • Page 173 Chapter 4 | System Management Commands SMTP Alerts Default Setting None Command Mode Global Configuration Command Usage You can specify up to five recipients for alert messages. However, you must enter a separate command to specify each recipient. Example Console(config)#logging sendmail destination-email ted@this-company.com Console(config)# logging sendmail host This command specifies SMTP servers that will be sent alert messages.
  • Page 174 Chapter 4 | System Management Commands SMTP Alerts logging sendmail level This command sets the severity threshold used to trigger alert messages. Use the no form to restore the default setting. Syntax logging sendmail level level no logging sendmail level level - One of the system message levels (page 166).
  • Page 175: Table 24: Time Commands

    Chapter 4 | System Management Commands Time Example Console(config)#logging sendmail source-email bill@this-company.com Console(config)# show logging This command displays the settings for the SMTP event handler. sendmail Command Mode Normal Exec, Privileged Exec Example Console#show logging sendmail SMTP servers ----------------------------------------------- 192.168.1.19 SMTP Minimum Severity Level: 7 SMTP Destination E-mail Addresses -----------------------------------------------...
  • Page 176 Chapter 4 | System Management Commands Time (Continued) Table 24: Time Commands Command Function Mode ntp client Enables the NTP client for time updates from specified servers ntp server Specifies NTP servers to poll for time updates show ntp Shows current NTP configuration settings NE, PE Manual Configuration Commands clock summer-time (date)
  • Page 177 Chapter 4 | System Management Commands Time Example Console(config)#sntp server 10.1.0.19 Console(config)#sntp poll 60 Console(config)#sntp client Console(config)#end Console#show sntp Current Time: Dec 23 02:52:44 2016 Poll Interval: 60 Current Mode: Unicast SNTP Status : Enabled SNTP Server 137.92.140.80 0.0.0.0 0.0.0.0 Current Server: 137.92.140.80 Console# Related Commands...
  • Page 178 Chapter 4 | System Management Commands Time sntp server This command sets the IP address of the servers to which SNTP time requests are issued. Use the this command with no arguments to clear all time servers from the current list. Use the no form to clear all time servers from the current list, or to clear a specific server.
  • Page 179 Chapter 4 | System Management Commands Time Example Console#show sntp Current Time : Nov 5 18:51:22 2015 Poll Interval : 16 seconds Current Mode : Unicast SNTP Status : Enabled SNTP Server : 137.92.140.80 0.0.0.0 0.0.0.0 Current Server : 137.92.140.80 Console# NTP Commands ntp authenticate...
  • Page 180 Chapter 4 | System Management Commands Time This command configures authentication keys and key numbers to use when NTP authentication is enabled. Use the no form of the command to clear a specific authentication-key authentication key or all keys from the current list. Syntax ntp authentication-key number md5 key no ntp authentication-key [number]...
  • Page 181 Chapter 4 | System Management Commands Time ntp client This command enables NTP client requests for time synchronization from NTP time servers specified with the ntp servers command. Use the no form to disable NTP client requests. Syntax [no] ntp client Default Setting Disabled Command Mode...
  • Page 182 Chapter 4 | System Management Commands Time Default Setting Version number: 3 Command Mode Global Configuration Command Usage ◆ This command specifies time servers that the switch will poll for time updates when set to NTP client mode. It issues time synchronization requests based on the interval set with the ntp poll command.
  • Page 183 Chapter 4 | System Management Commands Time NTP Status : Disabled NTP Authenticate Status : Enabled Last Update NTP Server : 0.0.0.0 Port: 0 Last Update Time : Jan 1 00:00:00 1970 UTC NTP Server 192.168.3.20 version 3 NTP Server 192.168.3.21 version 3 NTP Server 192.168.4.22 version 3 key 19 NTP Authentication Key 19 md5 42V68751663T6K11P2J307210R885 Console#...
  • Page 184 Chapter 4 | System Management Commands Time Command Mode Global Configuration Command Usage ◆ In some countries or regions, clocks are adjusted through the summer months so that afternoons have more daylight and mornings have less. This is known as Summer Time, or Daylight Savings Time (DST).
  • Page 185: Table 25: Predefined Summer-Time Parameters

    Chapter 4 | System Management Commands Time Summer Time, or Daylight Savings Time (DST). Typically, clocks are adjusted forward one hour at the start of spring and then adjusted backward in autumn. ◆ This command sets the summer-time time relative to the configured time zone. To specify the time corresponding to your local time when summer time is in effect, select the predefined summer-time time zone appropriate for your location, or manually configure summer time if these predefined...
  • Page 186 Chapter 4 | System Management Commands Time b-day - The day of the week when summer time will begin. (Options: sunday | monday | tuesday | wednesday | thursday | friday | saturday) b-month - The month when summer time will begin. (Options: january | february | march | april | may | june | july | august | september | october | november | december) b-hour - The hour when summer time will begin.
  • Page 187 Chapter 4 | System Management Commands Time Related Commands show sntp (178) clock timezone This command sets the time zone for the switch’s internal clock. Syntax clock timezone name hour hours minute minutes {before-utc | after-utc} name - Name of timezone, usually an acronym. (Range: 1-30 characters) hours - Number of hours before/after UTC.
  • Page 188 Chapter 4 | System Management Commands Time calendar set This command sets the system clock. It may be used if there is no time server on your network, or if you have not configured the switch to receive signals from a time server.
  • Page 189: Table 26: Time Range Commands

    Chapter 4 | System Management Commands Time Range Summer Time in Effect : No Console# Time Range This section describes the commands used to sets a time range for use by other functions, such as Access Control Lists. Table 26: Time Range Commands Command Function Mode...
  • Page 190 Chapter 4 | System Management Commands Time Range absolute This command sets the absolute time range for the execution of a command. Use the no form to remove a previously specified time. Syntax absolute start hour minute day month year [end hour minutes day month year] absolute end hour minutes day month year no absolute...
  • Page 191 Chapter 4 | System Management Commands Time Range periodic This command sets the time range for the periodic execution of a command. Use the no form to remove a previously specified time range. Syntax [no] periodic {daily | friday | monday | saturday | sunday | thursday | tuesday | wednesday | weekdays | weekend} hour minute to {daily | friday | monday | saturday | sunday | thursday | tuesday | wednesday | weekdays | weekend | hour minute}...
  • Page 192: Table 27: Switch Cluster Commands

    Chapter 4 | System Management Commands Switch Clustering show time-range This command shows configured time ranges. Syntax show time-range [name] name - Name of the time range. (Range: 1-32 characters) Default Setting None Command Mode Privileged Exec Example Console#show time-range r&d Time-range r&d: absolute start 01:01 01 April 2009 periodic...
  • Page 193 Chapter 4 | System Management Commands Switch Clustering can use either Telnet or the web interface to communicate directly with the Commander through its IP address, and then use the Commander to manage the Member switches through the cluster’s “internal” IP addresses. ◆...
  • Page 194 Chapter 4 | System Management Commands Switch Clustering ◆ Switch clusters are limited to the same Ethernet broadcast domain. ◆ There can be up to 100 candidates and 36 member switches in one cluster. ◆ A switch can only be a Member of one cluster. ◆...
  • Page 195 Chapter 4 | System Management Commands Switch Clustering cluster ip-pool This command sets the cluster IP address pool. Use the no form to reset to the default address. Syntax cluster ip-pool ip-address no cluster ip-pool ip-address - The base IP address for IP addresses assigned to cluster Members.
  • Page 196 Chapter 4 | System Management Commands Switch Clustering Command Mode Global Configuration Command Usage ◆ The maximum number of cluster Members is 36. ◆ The maximum number of cluster Candidates is 100. Example Console(config)#cluster member mac-address 00-12-34-56-78-9a id 5 Console(config)# rcommand This command provides access to a cluster Member CLI for configuration.
  • Page 197 Chapter 4 | System Management Commands Switch Clustering show cluster This command shows the switch clustering configuration. Command Mode Privileged Exec Example Console#show cluster Role : commander Interval Heartbeat : 30 Heartbeat Loss Count : 3 seconds Number of Members Number of Candidates : 2 Console# show cluster members...
  • Page 198: Table 28: Stacking Commands

    Chapter 4 | System Management Commands Stacking Stacking This section includes commands which configure a unit as the stack master, set the For information on 10G ports to stacking mode, or renumber all units in the stack. how to physically connect units into a stack, see the Hardware Installation Guide.
  • Page 199 Chapter 4 | System Management Commands Stacking switch master button This command configures a unit as the stack master. Use the no form to disable the master button. Syntax [no] switch master button unit unit - Unit identifier. (Range: 1-8) Default Setting Disabled Command Mode...
  • Page 200 Chapter 4 | System Management Commands Stacking Provision complete ... Finished module 2 provision complete ... Module provision complete. switch stacking This command sets the switch to operate in stacking mode. Use the no form to button disable this function. Syntax [no] switch stacking button unit unit - Unit identifier.
  • Page 201 Chapter 4 | System Management Commands Stacking Console# show switch stacking This command shows the status of the stacking button. button Command Mode Privileged Exec Command Usage Use the switch stacking button command to set the 10G ports to stacking mode. Example Console#show switch stacking button Switch ID...
  • Page 202 Chapter 4 | System Management Commands Stacking – 202 –...
  • Page 203: Table 29: Snmp Commands

    SNMP Commands SNMP commands control access to this switch from management stations using the Simple Network Management Protocol (SNMP), as well as the error types sent to trap managers. SNMP Version 3 also provides security features that cover message integrity, authentication, and encryption;...
  • Page 204 Chapter 5 | SNMP Commands (Continued) Table 29: SNMP Commands Command Function Mode show snmp user Shows the SNMP users show snmp view Shows the SNMP views Notification Log Commands Enables the specified notification log snmp-server notify-filter Creates a notification log and specifies the target host show nlm oper-status Shows operation status of configured notification logs show snmp notify-filter...
  • Page 205 Chapter 5 | SNMP Commands General SNMP Commands (Continued) Table 29: SNMP Commands Command Function Mode transceiver-threshold Sends a trap when the power level of the transmitted signal IC (Port) tx-power power outside the specified thresholds transceiver-threshold Sends a trap when the transceiver voltage falls outside the IC (Port) voltage specified thresholds...
  • Page 206 Chapter 5 | SNMP Commands General SNMP Commands string - Community string that acts like a password and permits access to the SNMP protocol. (Maximum length: 32 characters, case sensitive; Maximum number of strings: 5) ro - Specifies read-only access. Authorized management stations are only able to retrieve MIB objects.
  • Page 207 Chapter 5 | SNMP Commands General SNMP Commands snmp-server location This command sets the system location string. Use the no form to remove the location string. Syntax snmp-server location text no snmp-server location text - String that describes the system location. (Maximum length: 255 characters) Default Setting None...
  • Page 208 Chapter 5 | SNMP Commands SNMP Target Host Commands SNMP Communities : 1. public, and the access level is read-only 2. private, and the access level is read/write 0 SNMP packets input 0 Bad SNMP version errors 0 Unknown community name 0 Illegal operation for community name supplied 0 Encoding errors 0 Number of requested variables...
  • Page 209 Chapter 5 | SNMP Commands SNMP Target Host Commands Command Usage ◆ If you do not enter an snmp-server enable traps command, no notifications controlled by this command are sent. In order to configure this device to send SNMP notifications, you must enter at least one snmp-server enable traps command.
  • Page 210 Chapter 5 | SNMP Commands SNMP Target Host Commands snmp-server host This command specifies the recipient of a Simple Network Management Protocol notification operation. Use the no form to remove the specified host. Syntax snmp-server host host-addr [inform [retry retries | timeout seconds]] community-string [version {1 | 2c | 3 {auth | noauth | priv} [udp-port port]} no snmp-server host host-addr host-addr - IPv4 or IPv6 address of the host (the targeted recipient).
  • Page 211 Chapter 5 | SNMP Commands SNMP Target Host Commands ◆ The snmp-server host command is used in conjunction with the snmp-server enable traps command. Use the snmp-server enable traps command to enable the sending of traps or informs and to specify which SNMP notifications are sent globally.
  • Page 212 Chapter 5 | SNMP Commands SNMP Target Host Commands Example Console(config)#snmp-server host 10.1.19.23 batman Console(config)# Related Commands snmp-server enable traps (208) snmp-server This command enables the device to send SNMP traps (i.e., SNMP notifications) enable port-traps when a dynamic MAC address is added or removed. Use the no form to restore the default setting.
  • Page 213 Chapter 5 | SNMP Commands SNMPv3 Commands Command Mode Privileged Exec Example Console#show snmp-server enable port-traps interface Interface MAC Notification Trap --------- --------------------- Eth 1/1 Eth 1/2 Eth 1/3 SNMPv3 Commands snmp-server This command configures an identification string for the SNMPv3 engine. Use the no form to restore the default.
  • Page 214 Chapter 5 | SNMP Commands SNMPv3 Commands remote agent. You therefore need to configure the remote agent’s SNMP engine ID before you can send proxy requests or informs to it. ◆ Trailing zeroes need not be entered to uniquely specify a engine ID. In other words, the value “0123456789”...
  • Page 215 Chapter 5 | SNMP Commands SNMPv3 Commands Command Mode Global Configuration Command Usage ◆ A group sets the access policy for the assigned users. ◆ When authentication is selected, the MD5 or SHA algorithm is used as specified in the snmp-server user command.
  • Page 216 Chapter 5 | SNMP Commands SNMPv3 Commands md5 | sha - Uses MD5 or SHA authentication. auth-password - Authentication password. Enter as plain text if the encrypted option is not used. Otherwise, enter an encrypted password. (Range: 8-32 characters for unencrypted password.) If the encrypted option is selected, enter an encrypted password.
  • Page 217 Chapter 5 | SNMP Commands SNMPv3 Commands need to configure the remote agent’s SNMP engine ID before you can send proxy requests or informs to it. Example Console(config)#snmp-server user steve group r&d v3 auth md5 greenpeace priv des56 einstien Console(config)#snmp-server user mark group r&d remote 192.168.1.19 v3 auth md5 greenpeace priv des56 einstien Console(config)# snmp-server view...
  • Page 218: Table 30: Show Snmp Engine-Id - Display Description

    Chapter 5 | SNMP Commands SNMPv3 Commands This view includes the MIB-2 interfaces table, ifDescr. The wild card is used to select all the index values in the following table. Console(config)#snmp-server view ifEntry.2 1.3.6.1.2.1.2.2.1.*.2 included Console(config)# This view includes the MIB-2 interfaces table, and the mask selects all index entries. Console(config)#snmp-server view ifEntry.a 1.3.6.1.2.1.2.2.1.1.* included Console(config)# show snmp engine-id...
  • Page 219: Table 31: Show Snmp Group - Display Description

    Chapter 5 | SNMP Commands SNMPv3 Commands show snmp group Four default groups are provided – SNMPv1 read-only access and read/write access, and SNMPv2c read-only access and read/write access. Command Mode Privileged Exec Example Console#show snmp group Group Name: r&d Security Model: v3 Read View: defaultview Write View: daily...
  • Page 220: Table 32: Show Snmp User - Display Description

    Chapter 5 | SNMP Commands SNMPv3 Commands Table 31: show snmp group - display description Field Description Write View The associated write view. Notify View The associated notify view. Storage Type The storage type for this entry. Row Status The row status of this entry. show snmp user This command shows information on SNMP users.
  • Page 221: Table 33: Show Snmp View - Display Description

    Chapter 5 | SNMP Commands Notification Log Commands (Continued) Table 32: show snmp user - display description Field Description Row Status The row status of this entry. SNMP remote user A user associated with an SNMP engine on a remote device. show snmp view This command shows information on the SNMP views.
  • Page 222 Chapter 5 | SNMP Commands Notification Log Commands Command Mode Global Configuration Command Usage ◆ Notification logging is enabled by default, but will not start recording information until a logging profile specified by the snmp-server notify-filter command is enabled by the nlm command. ◆...
  • Page 223 Chapter 5 | SNMP Commands Notification Log Commands ◆ Given the service provided by the NLM, individual MIBs can now bear less responsibility to record transient information associated with an event against the possibility that the Notification message is lost, and applications can poll the log to verify that they have not missed any important Notifications.
  • Page 224 Chapter 5 | SNMP Commands Additional Trap Commands show snmp This command displays the configured notification logs. notify-filter Command Mode Privileged Exec Example This example displays the configured notification logs and associated target hosts. Console#show snmp notify-filter Filter profile name IP address ---------------------------- ----------------...
  • Page 225 Chapter 5 | SNMP Commands Additional Trap Commands Related Commands show memory (128) process cpu This command sets an SNMP trap based on configured thresholds for CPU utilization. Use the no form to restore the default setting. Syntax process cpu {rising rising-threshold | falling falling-threshold} no process cpu {rising | falling} rising-threshold - Rising threshold for CPU utilization alarm expressed in percentage.
  • Page 226 Chapter 5 | SNMP Commands Additional Trap Commands process cpu guard This command sets the CPU utilization high and low watermarks in percentage of CPU time utilized and the CPU high and low thresholds in the number of packets being processed per second. Use the no form of this command without any parameters to restore all of the default settings, or with a specific parameter to restore the default setting for that item.
  • Page 227 Chapter 5 | SNMP Commands Additional Trap Commands ◆ Once the maximum threshold is exceeded, utilization must drop beneath the minimum threshold before the alarm is terminated, and then exceed the maximum threshold again before another alarm is triggered. Example Console(config)#process cpu guard high-watermark 80 Console(config)#process cpu guard low-watermark 60 Console(config)#...
  • Page 228 Chapter 5 | SNMP Commands Additional Trap Commands – 228 –...
  • Page 229: Table 34: Rmon Commands

    Remote Monitoring Commands Remote Monitoring allows a remote device to collect information or respond to specified events on an independent basis. This switch is an RMON-capable device which can independently perform a wide range of tasks, significantly reducing network management traffic. It can continuously run diagnostics and log information on network performance.
  • Page 230 Chapter 6 | Remote Monitoring Commands rmon alarm This command sets threshold bounds for a monitored variable. Use the no form to remove an alarm. Syntax rmon alarm index variable interval {absolute | delta} rising-threshold threshold [event-index] falling-threshold threshold [event-index] [owner name] no rmon alarm index index –...
  • Page 231 Chapter 6 | Remote Monitoring Commands generated until the sampled value has fallen below the rising threshold, reaches the falling threshold, and again moves back up to the rising threshold. ◆ If the current value is less than or equal to the falling threshold, and the last sample value was greater than this threshold, then an alarm will be generated.
  • Page 232 Chapter 6 | Remote Monitoring Commands Command Usage ◆ If an event is already defined for an index, the entry must be deleted before any changes can be made with this command. ◆ The specified events determine the action to take when an alarm triggers this event.
  • Page 233 Chapter 6 | Remote Monitoring Commands input octets, packets, broadcast packets, multicast packets, undersize packets, oversize packets, fragments, jabbers, CRC alignment errors, collisions, drop events, and network utilization. ◆ The switch reserves two controlEntry index entries for each port. If a default index entry is re-assigned to another port by this command, the show running-config...
  • Page 234 Chapter 6 | Remote Monitoring Commands ◆ If statistics collection is already enabled on an interface, the entry must be deleted before any changes can be made with this command. ◆ The information collected for each entry includes: input octets, packets, broadcast packets, multicast packets, undersize packets, oversize packets, fragments, jabbers, CRC alignment errors, collisions, drop events, and packets of specified lengths Example...
  • Page 235 Chapter 6 | Remote Monitoring Commands Example Console#show rmon history Entry 1 is valid, and owned by Monitors 1.3.6.1.2.1.2.2.1.1.1 every 1800 seconds Requested # of time intervals, ie buckets, is 8 Granted # of time intervals, ie buckets, is 8 Sample # 1 began measuring at 00:00:01 Received 77671 octets, 1077 packets, 61 broadcast and 978 multicast packets,...
  • Page 236 Chapter 6 | Remote Monitoring Commands – 236 –...
  • Page 237: Table 35: Sflow Commands

    Flow Sampling Commands Flow sampling (sFlow) can be used with a remote sFlow Collector to provide an accurate, detailed and real-time overview of the types and levels of traffic present on the network. The sFlow Agent samples 1 out of n packets from all data traversing the switch, re-encapsulates the samples as sFlow datagrams and transmits them to the sFlow Collector.
  • Page 238 Chapter 7 | Flow Sampling Commands sampling data source instances are removed from the configuration. (Range: 30-10000000 seconds) ipv4-address - IPv4 address of the sFlow collector. Valid IPv4 addresses consist of four decimal numbers, 0 to 255, separated by periods. ipv6-address - IPv6 address of the sFlow collector.
  • Page 239 Chapter 7 | Flow Sampling Commands This example shows how to modify the sFlow port number for an already configured collector. Console(config)#sflow owner stat_server1 timeout 100 port 35100 Console(config)# sflow polling instance This command enables an sFlow polling data source, for a specified interface, that polls periodically based on a specified time interval.
  • Page 240 Chapter 7 | Flow Sampling Commands sflow sampling This command enables an sFlow data source instance for a specific interface that takes samples periodically based on the number of packets processed. Use the no instance form to remove the sampling data source instance from the switch’s sFlow configuration.
  • Page 241 Chapter 7 | Flow Sampling Commands The following command removes a sampling data source from Ethernet interface 1/1. Console# no sflow sampling interface ethernet 1/1 instance 1 Console# show sflow This command shows the global and interface settings for the sFlow process. Syntax show sflow [owner owner-name | interface interface] owner-name - The associated receiver, to which the samples are sent.
  • Page 242 Chapter 7 | Flow Sampling Commands – 242 –...
  • Page 243: Table 36: Authentication Commands

    Authentication Commands You can configure this switch to authenticate users logging into the system for management access using local or remote authentication methods. Port-based authentication using IEEE 802.1X can also be configured to control either management access to the uplink ports or client access to the data ports.
  • Page 244: Table 37: User Access Commands

    Chapter 8 | Authentication Commands User Accounts and Privilege Levels User Accounts and Privilege Levels The basic commands required for management access and assigning command privilege levels are listed in this section. This switch also includes other options for password checking via the console or a Telnet connection (page 154), user authentication via a remote authentication server...
  • Page 245 Chapter 8 | Authentication Commands User Accounts and Privilege Levels Command Mode Global Configuration Command Usage ◆ You cannot set a null password. You will have to enter a password to change the command mode from Normal Exec to Privileged Exec with the enable command.
  • Page 246: Table 38: Default Login Settings

    Chapter 8 | Authentication Commands User Accounts and Privilege Levels {0 | 7} - 0 means plain password, 7 means encrypted password. password password - The authentication password for the user. (Maximum length: 32 characters plain text or encrypted, case sensitive) Default Setting The default access level is 0 (Normal Exec).
  • Page 247 Chapter 8 | Authentication Commands User Accounts and Privilege Levels command - Specifies any command contained within the specified mode. Default Setting Privilege level 0 provides access to a limited number of the commands which display the current status of the switch, as well as several database clear and reset functions.
  • Page 248: Table 39: Authentication Sequence Commands

    Chapter 8 | Authentication Commands Authentication Sequence Authentication Sequence Three authentication methods can be specified to authenticate users logging into the system for management access. The commands in this section can be used to define the authentication method and sequence. Table 39: Authentication Sequence Commands Command Function...
  • Page 249 Chapter 8 | Authentication Commands Authentication Sequence is attempted on the TACACS+ server. If the TACACS+ server is not available, the local user name and password is checked. Example Console(config)#authentication enable radius Console(config)# Related Commands enable password - sets the password for changing command modes (244) authentication login This command defines the login authentication method and precedence.
  • Page 250: Table 40: Radius Client Commands

    Chapter 8 | Authentication Commands RADIUS Client Example Console(config)#authentication login radius Console(config)# Related Commands username - for setting the local user names and passwords (245) RADIUS Client Remote Authentication Dial-in User Service (RADIUS) is a logon authentication protocol that uses software running on a central server to control access to RADIUS- aware devices on the network.
  • Page 251 Chapter 8 | Authentication Commands RADIUS Client Example Console(config)#radius-server acct-port 181 Console(config)# radius-server This command sets the RADIUS server network port. Use the no form to restore the auth-port default. Syntax radius-server auth-port port-number no radius-server auth-port port-number - RADIUS server UDP port used for authentication messages. (Range: 1-65535) Default Setting 1812...
  • Page 252 Chapter 8 | Authentication Commands RADIUS Client retransmit - Number of times the switch will try to authenticate logon access via the RADIUS server. (Range: 1-30) timeout - Number of seconds the switch waits for a reply before resending a request. (Range: 1-65535) Default Setting auth-port - 1812 acct-port - 1813...
  • Page 253 Chapter 8 | Authentication Commands RADIUS Client radius-server This command sets the number of retries. Use the no form to restore the default. retransmit Syntax radius-server retransmit number-of-retries no radius-server retransmit number-of-retries - Number of times the switch will try to authenticate logon access via the RADIUS server.
  • Page 254: Table 41: Tacacs+ Client Commands

    Chapter 8 | Authentication Commands TACACS+ Client show radius-server This command displays the current settings for the RADIUS server. Default Setting None Command Mode Privileged Exec Example Console#show radius-server Remote RADIUS Server Configuration: Global Settings: Authentication Port Number : 1812 Accounting Port Number : 1813 Retransmit Times...
  • Page 255 Chapter 8 | Authentication Commands TACACS+ Client tacacs-server host This command specifies the TACACS+ server and other optional parameters. Use the no form to remove the server, or to restore the default values. Syntax tacacs-server index host host-ip-address [key key] [port port-number] [retransmit retransmit] [timeout timeout] no tacacs-server index index - The index for this server.
  • Page 256 Chapter 8 | Authentication Commands TACACS+ Client Default Setting None Command Mode Global Configuration Example Console(config)#tacacs-server key green Console(config)# tacacs-server port This command specifies the TACACS+ server network port. Use the no form to restore the default. Syntax tacacs-server port port-number no tacacs-server port port-number - TACACS+ server TCP port used for authentication messages.
  • Page 257 Chapter 8 | Authentication Commands TACACS+ Client Example Console(config)#tacacs-server retransmit 5 Console(config)# tacacs-server timeout This command sets the interval between transmitting authentication requests to the TACACS+ server. Use the no form to restore the default. Syntax tacacs-server timeout number-of-seconds no tacacs-server timeout number-of-seconds - Number of seconds the switch waits for a reply before resending a request.
  • Page 258: Table 42: Aaa Commands

    Chapter 8 | Authentication Commands TACACS+ Server Group: Group Name Member Index ------------------------- ------------- tacacs+ Console# The Authentication, Authorization, and Accounting (AAA) feature provides the main framework for configuring access control on the switch. The AAA functions require the use of configured RADIUS or TACACS+ servers in the network. Table 42: AAA Commands Command Function...
  • Page 259 Chapter 8 | Authentication Commands default - Specifies the default accounting method for service requests. method-name - Specifies an accounting method for service requests. (Range: 1-64 characters) start-stop - Records accounting from starting point and stopping point. group - Specifies the server group to use. tacacs+ - Specifies all TACACS+ hosts configured with the tacacs-server host...
  • Page 260 Chapter 8 | Authentication Commands group - Specifies the server group to use. radius - Specifies all RADIUS hosts configure with the radius-server host command. tacacs+ - Specifies all TACACS+ hosts configure with the tacacs-server host command. server-group - Specifies the name of a server group configured with the aaa group server command.
  • Page 261 Chapter 8 | Authentication Commands Default Setting Accounting is not enabled No servers are specified Command Mode Global Configuration Command Usage ◆ This command runs accounting for Exec service requests for the local console and Telnet connections. ◆ Note that the default and method-name fields are only used to describe the accounting method(s) configured on the specified RADIUS or TACACS+ servers, and do not actually send any information to the servers about the methods to use.
  • Page 262 Chapter 8 | Authentication Commands Example Console(config)#aaa accounting update periodic 30 Console(config)# aaa authorization exec This command enables the authorization for Exec access. Use the no form to disable the authorization service. Syntax aaa authorization exec {default | method-name} group {tacacs+ | server-group} no aaa authorization exec {default | method-name} default - Specifies the default authorization method for Exec access.
  • Page 263 Chapter 8 | Authentication Commands aaa group server Use this command to name a group of security server hosts. To remove a server group from the configuration list, enter the no form of this command. Syntax [no] aaa group server {radius | tacacs+} group-name radius - Defines a RADIUS server group.
  • Page 264 Chapter 8 | Authentication Commands Example Console(config)#aaa group server radius tps Console(config-sg-radius)#server 10.2.68.120 Console(config-sg-radius)# accounting dot1x This command applies an accounting method for 802.1X service requests on an interface. Use the no form to disable accounting on the interface. Syntax accounting dot1x {default | list-name} no accounting dot1x default - Specifies the default method list created with the...
  • Page 265 Chapter 8 | Authentication Commands Command Mode Line Configuration Example Console(config)#line console Console(config-line)#accounting commands 15 default Console(config-line)# accounting exec This command applies an accounting method to local console, Telnet or SSH connections. Use the no form to disable accounting on the line. Syntax accounting exec {default | list-name} no accounting exec...
  • Page 266 Chapter 8 | Authentication Commands Default Setting None Command Mode Line Configuration Example Console(config)#line console Console(config-line)#authorization exec tps Console(config-line)#exit Console(config)#line vty Console(config-line)#authorization exec default Console(config-line)# show accounting This command displays the current accounting settings per function and per port. Syntax show accounting [commands [level]] | [[dot1x [statistics [username user-name | interface interface]] | exec [statistics] | statistics]...
  • Page 267 Chapter 8 | Authentication Commands Interface : Eth 1/1 Method List : tps Group List : radius Interface : Eth 1/2 Accounting Type : EXEC Method List : default Group List : tacacs+ Interface : vty Accounting Type : Commands 0 Method List : default Group List...
  • Page 268: Table 43: Web Server Commands

    Chapter 8 | Authentication Commands Web Server Interface Console# Web Server This section describes commands used to configure web browser management access to the switch. Table 43: Web Server Commands Command Function Mode ip http authentication Sets the method list for EXEC authorization of an EXEC session ip http port Specifies the port to be used by the web browser interface GC...
  • Page 269 Chapter 8 | Authentication Commands Web Server Related Commands aaa authorization exec (262) ip http server (271) show system (134) ip http port This command specifies the UDP port number used by the web browser interface. Use the no form to use the default port. Syntax ip http port port-number no ip http port...
  • Page 270 Chapter 8 | Authentication Commands Web Server Command Usage ◆ You cannot configure the HTTP and HTTPS servers to use the same port. ◆ If you change the HTTPS port number, clients attempting to connect to the HTTPS server must specify the port number in the URL, in this format: https:// device:port_number Example Console(config)#ip http secure-port 1000...
  • Page 271: Table 44: Https System Support

    Chapter 8 | Authentication Commands Web Server A padlock icon should appear in the status bar for Internet Explorer 11, Mozilla Firefox 40, or Google Chrome 45, or more recent versions. The following web browsers and operating systems currently support HTTPS: Table 44: HTTPS System Support Web Browser Operating System...
  • Page 272: Table 45: Telnet Server Commands

    Chapter 8 | Authentication Commands Telnet Server Related Commands ip http port (269) show system (134) Telnet Server This section describes commands used to configure Telnet management access to the switch. Table 45: Telnet Server Commands Command Function Mode ip telnet max-sessions Specifies the maximum number of Telnet sessions that can simultaneously connect to this system ip telnet port...
  • Page 273 Chapter 8 | Authentication Commands Telnet Server Command Usage A maximum of eight sessions can be concurrently opened for Telnet and Secure Shell (i.e., both Telnet and SSH share a maximum number of eight sessions). Example Console(config)#ip telnet max-sessions 1 Console(config)# ip telnet port This command specifies the TCP port number used by the Telnet interface.
  • Page 274 Chapter 8 | Authentication Commands Telnet Server telnet (client) This command accesses a remote device using a Telnet connection. Syntax telnet host host - IP address or alias of a remote device. Command Mode Privileged Exec Example Console#telnet 192.168.2.254 Connect To 192.168.2.254... *************************************************************** WARNING - MONITORED ACTIONS AND ACCESSES User Access Verification...
  • Page 275: Table 46: Secure Shell Commands

    Chapter 8 | Authentication Commands Secure Shell Secure Shell This section describes the commands used to configure the SSH server. Note that you also need to install a SSH client on the management station when using this protocol to configure the switch. Note: The switch supports both SSH Version 1.5 and 2.0 clients.
  • Page 276 Chapter 8 | Authentication Commands Secure Shell To use the SSH server, complete these steps: Generate a Host Key Pair – Use the ip ssh crypto host-key generate command to create a host public/private key pair. Provide Host Public Key to Clients – Many SSH client programs automatically import the host public key during the initial connection setup with the switch.
  • Page 277 Chapter 8 | Authentication Commands Secure Shell Public Key Authentication – When an SSH client attempts to contact the switch, the SSH server uses the host key pair to negotiate a session key and encryption method. Only clients that have a private key corresponding to the public keys stored on the switch can access it.
  • Page 278 Chapter 8 | Authentication Commands Secure Shell ip ssh This command configures the number of times the SSH server attempts to reauthenticate a user. Use the no form to restore the default setting. authentication-retries Syntax ip ssh authentication-retries count no ip ssh authentication-retries count –...
  • Page 279 Chapter 8 | Authentication Commands Secure Shell Example Console#ip ssh crypto host-key generate dsa Console#configure Console(config)#ip ssh server Console(config)# Related Commands ip ssh crypto host-key generate (281) show ssh (284) ip ssh server-key size This command sets the SSH server key size. Use the no form to restore the default setting.
  • Page 280 Chapter 8 | Authentication Commands Secure Shell Default Setting 120 seconds Command Mode Global Configuration Command Usage The timeout specifies the interval the switch will wait for a response from the client during the SSH negotiation phase. Once an SSH session has been established, the timeout for user input is controlled by the exec-timeout command for vty sessions.
  • Page 281 Chapter 8 | Authentication Commands Secure Shell ip ssh crypto This command generates the host key pair (i.e., public and private). host-key generate Syntax ip ssh crypto host-key generate [dsa | rsa] dsa – DSA (Version 2) key type. rsa – RSA (Version 1) key type. Default Setting Generates both the DSA and RSA key pairs.
  • Page 282 Chapter 8 | Authentication Commands Secure Shell Command Mode Privileged Exec Command Usage ◆ This command clears the host key from volatile memory (RAM). Use the no ssh save host-key command to clear the host key from flash memory. ◆ The SSH server must be disabled before you can execute this command.
  • Page 283 Chapter 8 | Authentication Commands Secure Shell Example Console#show ip ssh SSH Enabled - Version 2.0 Negotiation Timeout : 120 seconds; Authentication Retries : 3 Server Key Size : 768 bits Console# show public-key This command shows the public key for the specified user or for the host. Syntax show public-key [user [username]| host] username –...
  • Page 284: Table 47: Show Ssh - Display Description

    Chapter 8 | Authentication Commands 802.1X Port Authentication show ssh This command displays the current SSH server connections. Command Mode Privileged Exec Example Console#show ssh Connection Version State Username Encryption Session-Started admin ctos aes128-cbc-hmac-md5 stoc aes128-cbc-hmac-md5 Console# Table 47: show ssh - display description Field Description Connection...
  • Page 285 Chapter 8 | Authentication Commands 802.1X Port Authentication (Continued) Table 48: 802.1X Port Authentication Commands Command Function Mode dot1x operation-mode Allows single or multiple hosts on an dot1x port dot1x port-control Sets dot1x mode for a port interface dot1x re-authentication Enables re-authentication for all ports dot1x timeout quiet-period Sets the time that a switch port waits after the Max Request...
  • Page 286 Chapter 8 | Authentication Commands 802.1X Port Authentication ◆ dot1x operation-mode ◆ dot1x max-req ◆ dot1x timeout quiet-period ◆ dot1x timeout tx-period ◆ dot1x timeout re-authperiod ◆ dot1x timeout sup-timeout ◆ dot1x re-authentication ◆ dot1x intrusion-action Example Console(config)#dot1x default Console(config)# dot1x eapol- This command passes EAPOL frames through to all ports in STP forwarding state when dot1x is globally disabled.
  • Page 287 Chapter 8 | Authentication Commands 802.1X Port Authentication dot1x system- This command enables IEEE 802.1X port authentication globally on the switch. Use the no form to restore the default. auth-control Syntax [no] dot1x system-auth-control Default Setting Disabled Command Mode Global Configuration Example Console(config)#dot1x system-auth-control Console(config)#...
  • Page 288 Chapter 8 | Authentication Commands 802.1X Port Authentication Example Console(config)#interface eth 1/2 Console(config-if)#dot1x intrusion-action guest-vlan Console(config-if)# dot1x max-reauth-req This command sets the maximum number of times that the switch sends an EAP- request/identity frame to the client before restarting the authentication process. Use the no form to restore the default.
  • Page 289 Chapter 8 | Authentication Commands 802.1X Port Authentication Example Console(config)#interface eth 1/2 Console(config-if)#dot1x max-req 2 Console(config-if)# dot1x This command allows hosts (clients) to connect to an 802.1X-authorized port. Use operation-mode the no form with no keywords to restore the default to single host. Use the no form with the multi-host max-count keywords to restore the default maximum count.
  • Page 290 Chapter 8 | Authentication Commands 802.1X Port Authentication Example Console(config)#interface eth 1/2 Console(config-if)#dot1x operation-mode multi-host max-count 10 Console(config-if)# dot1x port-control This command sets the dot1x mode on a port interface. Use the no form to restore the default. Syntax dot1x port-control {auto | force-authorized | force-unauthorized} no dot1x port-control auto –...
  • Page 291 Chapter 8 | Authentication Commands 802.1X Port Authentication connected the network and the process is handled transparently by the dot1x client software. Only if re-authentication fails is the port blocked. ◆ The connected client is re-authenticated after the interval specified by the dot1x timeout re-authperiod command.
  • Page 292 Chapter 8 | Authentication Commands 802.1X Port Authentication Default 3600 seconds Command Mode Interface Configuration Example Console(config)#interface eth 1/2 Console(config-if)#dot1x timeout re-authperiod 300 Console(config-if)# dot1x timeout This command sets the time that an interface on the switch waits for a response to supp-timeout an EAP request from a client before re-transmitting an EAP packet.
  • Page 293 Chapter 8 | Authentication Commands 802.1X Port Authentication dot1x timeout This command sets the time that an interface on the switch waits during an authentication session before re-transmitting an EAP packet. Use the no form to tx-period reset to the default value. Syntax dot1x timeout tx-period seconds no dot1x timeout tx-period...
  • Page 294 Chapter 8 | Authentication Commands 802.1X Port Authentication Supplicant Commands dot1x identity profile This command sets the dot1x supplicant user name and password. Use the no form to delete the identity settings. Syntax dot1x identity profile {username username | password password} no dot1x identity profile {username | password} username - Specifies the supplicant user name.
  • Page 295 Chapter 8 | Authentication Commands 802.1X Port Authentication Example Console(config)#interface eth 1/2 Console(config-if)#dot1x max-start 10 Console(config-if)# dot1x pae supplicant This command enables dot1x supplicant mode on a port. Use the no form to disable dot1x supplicant mode on a port. Syntax [no] dot1x pae supplicant Default...
  • Page 296 Chapter 8 | Authentication Commands 802.1X Port Authentication dot1x timeout This command sets the time that a supplicant port waits for a response from the authenticator. Use the no form to restore the default setting. auth-period Syntax dot1x timeout auth-period seconds no dot1x timeout auth-period seconds - The number of seconds.
  • Page 297 Chapter 8 | Authentication Commands 802.1X Port Authentication dot1x timeout This command sets the time that a supplicant port waits before resending an EAPOL start frame to the authenticator. Use the no form to restore the default start-period setting. Syntax dot1x timeout start-period seconds no dot1x timeout start-period seconds - The number of seconds.
  • Page 298 Chapter 8 | Authentication Commands 802.1X Port Authentication ◆ Authenticator Parameters – Shows whether or not EAPOL pass-through is enabled (page 286). ◆ Supplicant Parameters – Shows the supplicant user name used when the switch responds to an MD5 challenge from an authenticator (page 294).
  • Page 299 Chapter 8 | Authentication Commands 802.1X Port Authentication ◆ Backend State Machine State – Current state (including request, response, success, fail, timeout, ■ idle, initialize). Request Count– Number of EAP Request packets sent to the Supplicant ■ without receiving a response. Identifier (Server)–...
  • Page 300: Table 49: Management Ip Filter Commands

    Chapter 8 | Authentication Commands Management IP Filter Reauth Count Current Identifier Backend State Machine State : Idle Request Count Identifier(Server) Reauthentication State Machine State : Initialize Console# Management IP Filter This section describes commands used to configure IP management access to the switch.
  • Page 301 Chapter 8 | Authentication Commands Management IP Filter Command Usage ◆ The management interfaces are open to all IP addresses by default. Once you add an entry to a filter list, access to that interface is restricted to the specified addresses.
  • Page 302: Table 50: Pppoe Intermediate Agent Commands

    Chapter 8 | Authentication Commands PPPoE Intermediate Agent Example Console#show management all-client Management Ip Filter HTTP-Client: Start IP address End IP address ----------------------------------------------- 1. 192.168.1.19 192.168.1.19 2. 192.168.1.25 192.168.1.30 SNMP-Client: Start IP address End IP address ----------------------------------------------- 1. 192.168.1.19 192.168.1.19 2.
  • Page 303 Chapter 8 | Authentication Commands PPPoE Intermediate Agent pppoe This command enables the PPPoE Intermediate Agent globally on the switch. Use the no form to disable this feature. intermediate-agent Syntax [no] pppoe intermediate-agent Default Setting Disabled Command Mode Global Configuration Command Usage ◆...
  • Page 304 Chapter 8 | Authentication Commands PPPoE Intermediate Agent Default Setting ◆ Access Node Identifier: IP address of the first IPv4 interface on the switch. ◆ Generic Error Message: PPPoE Discover packet too large to process. Try reducing the number of tags added. Command Mode Global Configuration Command Usage...
  • Page 305 Chapter 8 | Authentication Commands PPPoE Intermediate Agent pppoe This command sets the circuit-id or remote-id for an interface. Use the no form to restore the default settings. intermediate-agent port-format-type Syntax pppoe intermediate-agent port-format-type {circuit-id circuit-id-string | remote-id remote-id-string} no pppoe intermediate-agent port-format-type {circuit-id | remote-id} circuit-id-string - String identifying the circuit identifier (or interface) on this switch to which the user is connected.
  • Page 306 Chapter 8 | Authentication Commands PPPoE Intermediate Agent pppoe This command sets the remote-id delimiter for an interface. Use the enable keyword to enable the delimiter. Use the no form with the enable keyword to intermediate-agent disable the delimiter. Use the no form without any keywords toto restore the port-format-type default settings.
  • Page 307 Chapter 8 | Authentication Commands PPPoE Intermediate Agent ◆ At least one trusted interface must be configured on the switch for the PPPoE IA to function. Example Console(config)#interface ethernet 1/5 Console(config-if)#pppoe intermediate-agent trust Console(config-if)# pppoe This command enables the stripping of vendor tags from PPPoE Discovery packets intermediate-agent sent from a PPPoE server.
  • Page 308 Chapter 8 | Authentication Commands PPPoE Intermediate Agent Command Mode Privileged Exec Example Console#clear pppoe intermediate-agent statistics Console# show pppoe This command displays configuration settings for the PPPoE Intermediate Agent. intermediate-agent info Syntax show pppoe intermediate-agent info [interface [interface]] interface ethernet unit/port unit - Stack unit.
  • Page 309: Table 51: Show Pppoe Intermediate-Agent Statistics - Display Description

    Chapter 8 | Authentication Commands PPPoE Intermediate Agent show pppoe This command displays statistics for the PPPoE Intermediate Agent. intermediate-agent statistics Syntax show pppoe intermediate-agent statistics interface [interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) Command Mode Privileged Exec...
  • Page 310 Chapter 8 | Authentication Commands PPPoE Intermediate Agent – 310 –...
  • Page 311: Table 52: General Security Commands

    General Security Measures This switch supports many methods of segregating traffic for clients attached to each of the data ports, and for ensuring that only authorized clients gain access to the network. Port-based authentication using IEEE 802.1X is commonly used for these purposes.
  • Page 312: Table 53: Port Security Commands

    Chapter 9 | General Security Measures Port Security Port Security These commands can be used to enable port security on a port. When MAC address learning is disabled on an interface, only incoming traffic with source addresses already stored in the dynamic or static address table for this port will be authorized to access the network.
  • Page 313 Chapter 9 | General Security Measures Port Security security function such as 802.1X or DHCP snooping is enabled and mac- learning is disabled, then only incoming traffic with source addresses stored in the static address table will be accepted, all other packets are dropped. Note that the dynamic addresses stored in the address table when MAC address learning is disabled are flushed from the system, and no dynamic addresses are subsequently learned until MAC address learning has been re-enabled.
  • Page 314 Chapter 9 | General Security Measures Port Security Command Mode Interface Configuration (Ethernet) Command Usage ◆ The default maximum number of MAC addresses allowed on a secure port is zero (that is, port security is disabled). To use port security, you must configure the maximum number of addresses allowed on a port using the port security max-mac-count command.
  • Page 315 Chapter 9 | General Security Measures Port Security Example The following example enables port security for port 5, and sets the response to a security violation to issue a trap message: Console(config)#interface ethernet 1/5 Console(config-if)#port security action trap Related Commands show interfaces status (438) shutdown (431) mac-address-table static (517)
  • Page 316: Table 54: Show Port Security - Display Description

    Chapter 9 | General Security Measures Port Security Command Mode Privileged Exec Example This example shows the port security settings and number of secure addresses for all ports. Console#show port security Global Port Security Parameters Secure MAC Aging Mode : Disabled Port Security Port Summary Port Port Security Port Status...
  • Page 317: Table 55: Network Access Commands

    Chapter 9 | General Security Measures Network Access (MAC Address Authentication) Port Security Details Port : 1/2 Port Security : Enabled Port Status : Secure/Up Intrusion Action : None Max MAC Count Current MAC Count MAC Filter : Disabled Last Intrusion MAC : NA Last Time Detected Intrusion MAC : NA...
  • Page 318 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) (Continued) Table 55: Network Access Commands Command Function Mode network-access link-detection Enables the link detection feature network-access link-detection Configures the link detection feature to detect and act link-down upon link-down events network-access link-detection Configures the link detection feature to detect and act link-up...
  • Page 319 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) ◆ This parameter applies to authenticated MAC addresses configured by the MAC Address Authentication process described in this section, as well as to any secure MAC addresses authenticated by 802.1X, regardless of the 802.1X Operation Mode (Single-Host, Multi-Host, or MAC-Based authentication as described on page...
  • Page 320 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) mac-authentication Use this command to set the time period after which a connected MAC address must be re-authenticated. Use the no form of this command to restore the default reauth-time value.
  • Page 321: Table 56: Dynamic Qos Profiles

    Chapter 9 | General Security Measures Network Access (MAC Address Authentication) (attribute 11) can be configured on the RADIUS server to pass the following QoS information: Table 56: Dynamic QoS Profiles Profile Attribute Syntax Example DiffServ service-policy-in=policy-map-name service-policy-in=p1 Rate Limit rate-limit-input=rate (kbps) rate-limit-input=100 (kbps) rate-limit-output=rate (kbps)
  • Page 322 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) Command Mode Interface Configuration Command Usage ◆ When enabled, the VLAN identifiers returned by the RADIUS server through the 802.1X authentication process will be applied to the port, providing the VLANs have already been created on the switch.
  • Page 323 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) ◆ When used with 802.1X authentication, the intrusion-action must be set for “guest-vlan” to be effective (see the dot1x intrusion-action command). ◆ A port can only be assigned to the guest VLAN in case of failed authentication, switchport mode is set to Hybrid.
  • Page 324 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) network-access link- Use this command to detect link-down events. When detected, the switch can shut down the port, send an SNMP trap, or both. Use the no form of this command to detection link-down disable this feature.
  • Page 325 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) Example Console(config)#interface ethernet 1/1 Console(config-if)#network-access link-detection link-up action trap Console(config-if)# network-access Use this command to detect link-up and link-down events. When either event is link-detection detected, the switch can shut down the port, send an SNMP trap, or both. Use the no form of this command to disable this feature.
  • Page 326 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) Command Mode Interface Configuration Command Usage The maximum number of MAC addresses per port is 1024, and the maximum number of secure MAC addresses supported for the switch system is 1024. When the limit is reached, all new MAC addresses are treated as authentication failures.
  • Page 327 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) ◆ When port status changes to down, all MAC addresses are cleared from the secure MAC address table. Static VLAN assignments are not restored. ◆ The RADIUS server may optionally return a VLAN identifier list. VLAN identifier list is carried in the “Tunnel-Private-Group-ID”...
  • Page 328 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) mac-authentication Use this command to configure the port response to a host MAC authentication failure. Use the no form of this command to restore the default. intrusion-action Syntax mac-authentication intrusion-action {block traffic | pass traffic} no mac-authentication intrusion-action Default Setting Block Traffic...
  • Page 329 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) clear network-access Use this command to clear entries from the secure MAC addresses table. Syntax clear network-access mac-address-table [static | dynamic] [address mac-address] [interface interface] static - Specifies static address entries. dynamic - Specifies dynamic address entries.
  • Page 330 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) Example Console#show network-access interface ethernet 1/1 Global secure port information Reauthentication Time : 1800 MAC Address Aging : Disabled Port : 1/1 MAC Authentication : Disabled MAC Authentication Intrusion Action : Block traffic MAC Authentication Maximum MAC Counts : 1024 Maximum MAC Counts...
  • Page 331 Chapter 9 | General Security Measures Network Access (MAC Address Authentication) 00-00-00 would result in all MACs in the range 00-00-01-00-00-00 to 00-00-01-FF- FF-FF to be displayed. All other MACs would be filtered out. Example Console#show network-access mac-address-table Interface MAC Address RADIUS Server Time Attribute...
  • Page 332: Table 57: Web Authentication

    Chapter 9 | General Security Measures Web Authentication Web Authentication Web authentication allows stations to authenticate and access the network in situations where 802.1X or Network Access authentication are infeasible or impractical. The web authentication feature allows unauthenticated hosts to request and receive a DHCP assigned IP address and perform DNS queries.
  • Page 333 Chapter 9 | General Security Measures Web Authentication web-auth This command defines the limit for failed web authentication login attempts. After the limit is reached, the switch refuses further login attempts until the quiet time login-attempts expires. Use the no form to restore the default. Syntax web-auth login-attempts count no web-auth login-attempts...
  • Page 334 Chapter 9 | General Security Measures Web Authentication web-auth This command defines the amount of time a web-authentication session remains valid. When the session timeout has been reached, the host is logged off and must session-timeout re-authenticate itself the next time data transmission takes place. Use the no form to restore the default.
  • Page 335 Chapter 9 | General Security Measures Web Authentication web-auth This command enables web authentication for an interface. Use the no form to restore the default. Syntax [no] web-auth Default Setting Disabled Command Mode Interface Configuration Command Usage Both web-auth system-auth-control for the switch and web-auth for a port must be enabled for the web authentication feature to be active.
  • Page 336 Chapter 9 | General Security Measures Web Authentication web-auth This command ends the web authentication session associated with the designated IP address and forces the user to re-authenticate. re-authenticate (IP) Syntax web-auth re-authenticate interface interface ip interface - Specifies a port interface. ethernet unit/port unit - Unit identifier.
  • Page 337 Chapter 9 | General Security Measures Web Authentication show web-auth This command displays interface-specific web authentication parameters and statistics. interface Syntax show web-auth interface interface interface - Specifies a port interface. ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) Command Mode Privileged Exec Example...
  • Page 338: Table 58: Dhcp Snooping Commands

    Chapter 9 | General Security Measures DHCPv4 Snooping DHCPv4 Snooping DHCPv4 snooping allows a switch to protect a network from rogue DHCPv4 servers or other devices which send port-related information to a DHCPv4 server. This information can be useful in tracking an IP address back to a physical port. This section describes commands used to configure DHCPv4 snooping.
  • Page 339 Chapter 9 | General Security Measures DHCPv4 Snooping ip dhcp snooping This command enables DHCP snooping globally. Use the no form to restore the default setting. Syntax [no] ip dhcp snooping Default Setting Disabled Command Mode Global Configuration Command Usage ◆...
  • Page 340 Chapter 9 | General Security Measures DHCPv4 Snooping If the DHCP packet is from a client, such as a DECLINE or RELEASE ■ message, the switch forwards the packet only if the corresponding entry is found in the binding table. If the DHCP packet is from client, such as a DISCOVER, REQUEST, ■...
  • Page 341 Chapter 9 | General Security Measures DHCPv4 Snooping ip dhcp snooping This command enables the use of DHCP Option 82 information for the switch, and specifies the frame format to use for the remote-id when Option 82 information is information option generated by the switch.
  • Page 342 Chapter 9 | General Security Measures DHCPv4 Snooping directly between the server and client without having to flood them to the entire VLAN. ◆ DHCP snooping must be enabled for the DHCP Option 82 information to be inserted into packets. When enabled, the switch will only add/remove option 82 information in incoming DHCP packets but not relay them.
  • Page 343 Chapter 9 | General Security Measures DHCPv4 Snooping XAMPLE This example enables the use of sub-type and sub-length fields for the circuit-ID (CID) and remote-ID (RID). Console(config)#no ip dhcp snooping information option encode no-subtype Console(config)# ip dhcp snooping This command sets the remote ID to the switch’s IP address, MAC address, arbitrary information option string, or TR-101 compliant node identifier.
  • Page 344 Chapter 9 | General Security Measures DHCPv4 Snooping ip dhcp snooping This command sets the board identifier used in Option 82 information based on TR-101 syntax. Use the no form to remove the board identifier. Use the no form to information option restore the default setting.
  • Page 345 Chapter 9 | General Security Measures DHCPv4 Snooping Command Usage When the switch receives DHCP packets from clients that already include DHCP Option 82 information, the switch can be configured to set the action policy for these packets. The switch can either drop the DHCP packets, keep the existing information, or replace it with the switch’s relay information.
  • Page 346 Chapter 9 | General Security Measures DHCPv4 Snooping Command Mode Global Configuration Command Usage If MAC address verification is enabled, and the source MAC address in the Ethernet header of the packet is not same as the client’s hardware address in the DHCP packet, the packet is dropped.
  • Page 347 Chapter 9 | General Security Measures DHCPv4 Snooping Example This example enables DHCP snooping for VLAN 1. Console(config)#ip dhcp snooping vlan 1 Console(config)# Related Commands ip dhcp snooping (339) ip dhcp snooping trust (348) ip dhcp snooping This command specifies DHCP Option 82 circuit-id suboption information. Use the information option no form to use the default settings.
  • Page 348: Table 59: Option 82 Information

    Chapter 9 | General Security Measures DHCPv4 Snooping Table 59: Option 82 information 3-69 1-67 opt82 opt-len sub-opt1 string-len R-124 string The circuit identifier used by this switch starts at sub-option1 and goes to the end of the R-124 string. The R-124 string includes the following information: ■...
  • Page 349 Chapter 9 | General Security Measures DHCPv4 Snooping Command Usage ◆ A trusted interface is an interface that is configured to receive only messages from within the network. An untrusted interface is an interface that is configured to receive messages from outside the network or fire wall. ◆...
  • Page 350 Chapter 9 | General Security Measures DHCPv4 Snooping Console#clear ip dhcp snooping binding 11-22-33-44-55-66 vlan 1 Console# clear ip dhcp This command removes all dynamically learned snooping entries from flash snooping database memory. flash Command Mode Privileged Exec Example Console#clear ip dhcp snooping database flash Console# ip dhcp snooping This command writes all dynamically learned snooping entries to flash memory.
  • Page 351 Chapter 9 | General Security Measures DHCPv6 Snooping show ip dhcp This command shows the DHCP snooping configuration settings. snooping Command Mode Privileged Exec Example Console#show ip dhcp snooping Global DHCP Snooping Status: disabled DHCP Snooping Information Option Status: enabled DHCP Snooping Information Option Sub-option Format: extra subtype included DHCP Snooping Information Option Remote ID: MAC Address (hex encoded) DHCP Snooping Information Option TR101 Board ID: none...
  • Page 352: Table 60: Dhcp Snooping Commands

    Chapter 9 | General Security Measures DHCPv6 Snooping information can be useful in tracking an IP address back to a physical port. This section describes commands used to configure DHCPv6 snooping. Table 60: DHCP Snooping Commands Command Function Mode ipv6 dhcp snooping Enables DHCPv6 snooping globally ipv6 dhcp snooping option Enables insertion of DHCPv6 Option 37 relay agent...
  • Page 353 Chapter 9 | General Security Measures DHCPv6 Snooping ◆ When enabled, DHCPv6 messages entering an untrusted interface are filtered based upon dynamic entries learned via DHCPv6 snooping. ◆ Table entries are only learned for trusted interfaces. Each entry includes a MAC address, IPv6 address, lease time, binding type, VLAN identifier, and port identifier.
  • Page 354 Chapter 9 | General Security Measures DHCPv6 Snooping If a DHCPv6 Reply packet is received from a server on a trusted port, it ■ will be processed in the following manner: Check if IPv6 address in IA option is found in binding table: If yes, continue to C.
  • Page 355 Chapter 9 | General Security Measures DHCPv6 Snooping ipv6 dhcp snooping This command enables the insertion of remote-id option 37 information into DHCPv6 client messages. Remote-id option information such as the port attached option remote-id to the client, DUID, and VLAN ID is used by the DHCPv6 server to assign preassigned configuration data specific to the DHCPv6 client.
  • Page 356 Chapter 9 | General Security Measures DHCPv6 Snooping Example This example enables the DHCPv6 Snooping Remote-ID Option. Console(config)#ipv6 dhcp snooping option remote-id Console(config)# ipv6 dhcp snooping This command sets the remote-id option policy for DHCPv6 client packets that option remote-id include Option 37 information.
  • Page 357 Chapter 9 | General Security Measures DHCPv6 Snooping ipv6 dhcp snooping This command enables DHCPv6 snooping on the specified VLAN. Use the no form to restore the default setting. vlan Syntax [no] ipv6 dhcp snooping vlan {vlan-id | vlan-range} vlan-id - ID of a configured VLAN (Range: 1-4094) vlan-range - A consecutive range of VLANs indicated by the use a hyphen, or a random group of VLANs with each entry separated by a comma.
  • Page 358 Chapter 9 | General Security Measures DHCPv6 Snooping ipv6 dhcp snooping This command sets the maximum number of entries which can be stored in the binding database for an interface. Use the no form to restore the default setting. max-binding Syntax ipv6 dhcp snooping max-binding count no ipv6 dhcp snooping max-binding...
  • Page 359 Chapter 9 | General Security Measures DHCPv6 Snooping VLAN according to the default status, or as specifically configured for an interface with the no ipv6 dhcp snooping trust command. ◆ When an untrusted port is changed to a trusted port, all the dynamic DHCPv6 snooping bindings associated with this port are removed.
  • Page 360 Chapter 9 | General Security Measures DHCPv6 Snooping clear ipv6 dhcp This command clears statistical counters for DHCPv6 snooping client, server and relay packets. snooping statistics Command Mode Privileged Exec Example Console(config)#clear ipv6 dhcp snooping statistics Console(config)# show ipv6 dhcp This command shows the DHCPv6 snooping configuration settings.
  • Page 361: Table 61: Ipv4 Source Guard Commands

    Chapter 9 | General Security Measures IPv4 Source Guard 2001:b000::1 2591912 1 Eth 1/3 Console# show ipv6 dhcp This command shows statistics for DHCPv6 snooping client, server and relay snooping statistics packets. Command Mode Privileged Exec Example Console#show ipv6 dhcp snooping statistics DHCPv6 Snooping Statistics: Client Packet: Solicit, Request, Confirm, Renew, Rebind, Decline, Release, Information-request...
  • Page 362 Chapter 9 | General Security Measures IPv4 Source Guard Table 61: IPv4 Source Guard Commands Command Function Mode show ip source-guard Shows whether source guard is enabled or disabled on each interface show ip source-guard Shows the source guard binding table binding ip source-guard This command adds a static address to the source-guard ACL or MAC address...
  • Page 363 Chapter 9 | General Security Measures IPv4 Source Guard ◆ When source guard is enabled, traffic is filtered based upon dynamic entries learned via DHCP snooping, or static addresses configured in the source guard binding table with this command. ◆ An entry with same MAC address and a different VLAN ID cannot be added to the binding table.
  • Page 364 Chapter 9 | General Security Measures IPv4 Source Guard ip source-guard This command configures the switch to filter inbound traffic based on source IP address, or source IP address and corresponding MAC address. Use the no form to disable this function. Syntax ip source-guard {sip | sip-mac} no ip source-guard...
  • Page 365 Chapter 9 | General Security Measures IPv4 Source Guard the sip-mac option). If a matching entry is found in the binding table and the entry type is static IP source guard binding, the packet will be forwarded. If the DHCP snooping is enabled, IP source guard will check the VLAN ID, ■...
  • Page 366 Chapter 9 | General Security Measures IPv4 Source Guard Command Mode Interface Configuration (Ethernet) Command Usage ◆ This command sets the maximum number of address entries that can be mapped to an interface in the binding table for the specified mode (ACL binding table or MAC address table) including dynamic entries discovered by DHCP snooping and static entries set by the ip source-guard...
  • Page 367 Chapter 9 | General Security Measures IPv4 Source Guard Command Usage There are two modes for the filtering table: ◆ ACL - IP traffic will be forwarded if it passes the checking process in the ACL mode binding table. ◆ MAC - A MAC entry will be added in MAC address table if IP traffic passes the checking process in MAC mode binding table.
  • Page 368 Chapter 9 | General Security Measures IPv4 Source Guard Example Console#show ip source-guard ACL Table MAC Table Interface Filter-type Filter-table Max-binding Max-binding --------- ----------- ------------ ----------- ----------- Eth 1/1 DISABLED 1024 Eth 1/2 DISABLED 1024 Eth 1/3 DISABLED 1024 Eth 1/4 DISABLED 1024 Eth 1/5...
  • Page 369: Table 62: Ipv6 Source Guard Commands

    Chapter 9 | General Security Measures IPv6 Source Guard IPv6 Source Guard IPv6 Source Guard is a security feature that filters IPv6 traffic on non-routed, Layer 2 network interfaces based on manually configured entries in the IPv6 Source Guard table, or dynamic entries in the Neighbor Discovery Snooping table or DHCPv6 Snooping table when either snooping protocol is enabled (see “DHCPv6 Snooping”...
  • Page 370 Chapter 9 | General Security Measures IPv6 Source Guard Default Setting No configured entries Command Mode Global Configuration Command Usage ◆ Table entries include an associated MAC address, IPv6 global unicast address, entry type (Static-IPv6-SG-Binding, Dynamic-ND-Snooping, Dynamic-DHCPv6- Snooping), VLAN identifier, and port identifier. ◆...
  • Page 371 Chapter 9 | General Security Measures IPv6 Source Guard Related Commands ipv6 source-guard (371) ipv6 dhcp snooping (352) ipv6 dhcp snooping vlan (357) ipv6 source-guard This command configures the switch to filter inbound traffic based on the source IP address stored in the binding table. Use the no form to disable this function. Syntax ipv6 source-guard sip no ipv6 source-guard...
  • Page 372 Chapter 9 | General Security Measures IPv6 Source Guard ◆ If IPv6 source guard is enabled, an inbound packet’s source IPv6 address will be checked against the binding table. If no matching entry is found, the packet will be dropped. ◆...
  • Page 373 Chapter 9 | General Security Measures IPv6 Source Guard Command Mode Interface Configuration (Ethernet) Command Usage ◆ This command sets the maximum number of address entries that can be mapped to an interface in the binding table, including both dynamic entries discovered by ND snooping, DHCPv6 snooping, and static entries set by the ipv6 source-guard command.
  • Page 374: Table 63: Arp Inspection Commands

    Chapter 9 | General Security Measures ARP Inspection show ipv6 This command shows the IPv6 source guard binding table. source-guard binding Syntax show ipv6 source-guard binding [dynamic | static] dynamic - Shows dynamic entries configured with ND Snooping or DHCPv6 Snooping commands (see page 351) static - Shows static entries configured with the...
  • Page 375 Chapter 9 | General Security Measures ARP Inspection (Continued) Table 63: ARP Inspection Commands Command Function Mode ip arp inspection validate Specifies additional validation of address components in an ARP packet ip arp inspection vlan Enables ARP Inspection for a specified VLAN or range of VLANs ip arp inspection limit Sets a rate limit for the ARP packets received on a port...
  • Page 376 Chapter 9 | General Security Measures ARP Inspection ◆ When ARP Inspection is disabled, all ARP request and reply packets bypass the ARP Inspection engine and their manner of switching matches that of all other packets. ◆ Disabling and then re-enabling global ARP Inspection will not affect the ARP Inspection configuration for any VLANs.
  • Page 377 Chapter 9 | General Security Measures ARP Inspection ◆ If static mode is not enabled, packets are first validated against the specified ARP ACL. Packets matching a deny rule are dropped. All remaining packets are validated against the address bindings in the DHCP snooping database. Example Console(config)#ip arp inspection filter sales vlan 1 Console(config)#...
  • Page 378 Chapter 9 | General Security Measures ARP Inspection ◆ The switch generates a system message on a rate-controlled basis determined by the seconds values. After the system message is generated, all entries are cleared from the log buffer. Example Console(config)#ip arp inspection log-buffer logs 1 interval 10 Console(config)# ip arp inspection This command specifies additional validation of address components in an ARP...
  • Page 379 Chapter 9 | General Security Measures ARP Inspection ip arp inspection vlan This command enables ARP Inspection for a specified VLAN or range of VLANs. Use the no form to disable this function. Syntax [no] ip arp inspection vlan {vlan-id | vlan-range} vlan-id - VLAN ID.
  • Page 380 Chapter 9 | General Security Measures ARP Inspection ip arp inspection limit This command sets a rate limit for the ARP packets received on a port. Use the no form to restore the default setting. Syntax ip arp inspection limit {rate pps | none} no ip arp inspection limit pps - The maximum number of ARP packets that can be processed by the CPU per second on trusted or untrusted ports.
  • Page 381 Chapter 9 | General Security Measures ARP Inspection Example Console(config)#interface ethernet 1/1 Console(config-if)#ip arp inspection trust Console(config-if)# show ip arp inspection This command displays the global configuration settings for ARP Inspection. configuration Command Mode Privileged Exec Example Console#show ip arp inspection configuration ARP Inspection Global Information: Global IP ARP Inspection Status : disabled Log Message Interval...
  • Page 382 Chapter 9 | General Security Measures ARP Inspection show ip arp inspection This command shows information about entries stored in the log, including the associated VLAN, port, and address components. Command Mode Privileged Exec Example Console#show ip arp inspection log Total log entries number is 1 Num VLAN Port Src IP Address Dst IP Address...
  • Page 383: Table 64: Dos Protection Commands

    Chapter 9 | General Security Measures Denial of Service Protection Command Usage Enter this command to display the configuration settings for all VLANs, or display the settings for a specific VLAN by entering the VLAN identifier. Example Console#show ip arp inspection vlan 1 VLAN ID DAI Status ACL Name...
  • Page 384 Chapter 9 | General Security Measures Denial of Service Protection dos-protection This command protects against DoS echo/chargen attacks in which the echo service repeats anything sent to it, and the chargen (character generator) service echo-chargen generates a continuous stream of data. When used together, they create an infinite loop and result in a denial-of-service.
  • Page 385 Chapter 9 | General Security Measures Denial of Service Protection dos-protection This command protects against DoS TCP-flooding attacks in which a perpetrator sends a succession of TCP SYN requests (with or without a spoofed-Source IP) to a tcp-flooding target and never returns ACK packets. These half-open connections will bind resources on the target, and no new connections can be made, resulting in a denial of service.
  • Page 386 Chapter 9 | General Security Measures Denial of Service Protection Example Console(config)#dos-protection tcp-null-scan Console(config)# dos-protection This command protects against DoS TCP-SYN/FIN-scan attacks in which a TCP SYN/ tcp-syn-fin-scan FIN scan message is used to identify listening TCP ports. The scan uses a series of strangely configured TCP packets which contain SYN (synchronize) and FIN (finish) flags.
  • Page 387 Chapter 9 | General Security Measures Denial of Service Protection dos-protection This command protects against DoS TCP-xmas-scan in which a so-called TCP XMAS scan message is used to identify listening TCP ports. This scan uses a series of tcp-xmas-scan strangely configured TCP packets which contain a sequence number of 0 and the URG, PSH and FIN flags.
  • Page 388 Chapter 9 | General Security Measures Denial of Service Protection dos-protection This command protects against DoS WinNuke attacks in which affected the Microsoft Windows 3.1x/95/NT operating systems. In this type of attack, the win-nuke perpetrator sends the string of OOB out-of-band (OOB) packets contained a TCP URG flag to the target computer on TCP port 139 (NetBIOS), casing it to lock up and display a “Blue Screen of Death.
  • Page 389: Table 65: Commands For Configuring Traffic Segmentation

    Chapter 9 | General Security Measures Port-based Traffic Segmentation Port-based Traffic Segmentation If tighter security is required for passing traffic from different clients through downlink ports on the local network and over uplink ports to the service provider, port-based traffic segmentation can be used to isolate traffic for individual clients. Traffic belonging to each client is isolated to the allocated downlink ports.
  • Page 390: Table 66: Traffic Segmentation Forwarding

    Chapter 9 | General Security Measures Port-based Traffic Segmentation ◆ When traffic segmentation is enabled, the forwarding state for the uplink and downlink ports assigned to different client sessions is shown below. Table 66: Traffic Segmentation Forwarding Destination Session #1 Session #1 Session #2 Session #2...
  • Page 391 Chapter 9 | General Security Measures Port-based Traffic Segmentation Command Mode Global Configuration Command Usage ◆ Use this command to create a new traffic-segmentation client session. ◆ Using the no form of this command will remove any assigned uplink or downlink ports, restoring these interfaces to normal operating mode.
  • Page 392 Chapter 9 | General Security Measures Port-based Traffic Segmentation ◆ A downlink port can only communicate with an uplink port in the same session. Therefore, if an uplink port is not configured for a session, the assigned downlink ports will not be able to communicate with any other ports. ◆...
  • Page 393 Chapter 9 | General Security Measures Port-based Traffic Segmentation show This command displays the configured traffic segments. traffic-segmentation Command Mode Privileged Exec Example Console#show traffic-segmentation Private VLAN Status Enabled Uplink-to-Uplink Mode : Forwarding Session Uplink Ports Downlink Ports --------- ------------------------------ ----------------------------- Ethernet Ethernet Ethernet...
  • Page 394 Chapter 9 | General Security Measures Port-based Traffic Segmentation – 394 –...
  • Page 395: Table 67: Access Control List Commands

    Access Control Lists Access Control Lists (ACL) provide packet filtering for IPv4 frames (based on address, protocol, Layer 4 protocol port number or TCP control code), IPv6 frames (based on address, DSCP traffic class, or next header type), or any frames (based on MAC address or Ethernet type).
  • Page 396 Chapter 10 | Access Control Lists IPv4 ACLs access-list ip This command adds an IP access list and enters configuration mode for standard or extended IPv4 ACLs. Use the no form to remove the specified ACL. Syntax [no] access-list ip {standard | extended} acl-name standard –...
  • Page 397 Chapter 10 | Access Control Lists IPv4 ACLs ip access-group This command binds an IPv4 ACL to all ports for ingress traffic. Use the no form to remove the port. (Global Configuration) Syntax ip access-group acl-name in [time-range time-range-name] [counter] no ip access-group acl-name in acl-name –...
  • Page 398 Chapter 10 | Access Control Lists IPv4 ACLs permit, deny This command adds a rule to a Standard IPv4 ACL. The rule sets a filter condition for packets emanating from the specified source. Use the no form to remove a rule. (Standard IP ACL) Syntax {permit | deny} {any | source bitmask | host source}...
  • Page 399 Chapter 10 | Access Control Lists IPv4 ACLs permit, deny This command adds a rule to an Extended IPv4 ACL. The rule sets a filter condition for packets with specific source or destination IP addresses, protocol types, source (Extended IPv4 ACL) or destination protocol ports, or TCP control codes.
  • Page 400 Chapter 10 | Access Control Lists IPv4 ACLs port-bitmask – Decimal number representing the port bits to match. (Range: 0-65535) control-flags – Decimal number (representing a bit string) that specifies flag bits in byte 14 of the TCP header. (Range: 0-63) flag-bitmask –...
  • Page 401 Chapter 10 | Access Control Lists IPv4 ACLs Example This example accepts any incoming packets if the source address is within subnet 10.7.1.x. For example, if the rule is matched; i.e., the rule (10.7.1.0 & 255.255.255.0) equals the masked address (10.7.1.2 & 255.255.255.0), the packet passes through. Console(config-ext-acl)#permit 10.7.1.1 255.255.255.0 any Console(config-ext-acl)# This allows TCP packets from class C addresses 192.168.1.0 to any destination...
  • Page 402 Chapter 10 | Access Control Lists IPv4 ACLs Command Mode Interface Configuration (Ethernet) Command Usage If an ACL is already bound to a port and you bind a different ACL to it, the switch will replace the old binding with the new one. Example Console(config)#int eth 1/2 Console(config-if)#ip access-group david in...
  • Page 403: Table 69: Ipv6 Acl Commands

    Chapter 10 | Access Control Lists IPv6 ACLs Example Console#show ip access-list standard IP standard access-list david: permit host 10.1.1.21 permit 168.92.0.0 255.255.15.0 Console# Related Commands permit, deny (398) ip access-group (Interface Configuration) (401) IPv6 ACLs The commands in this section configure ACLs based on IPv6 addresses, DSCP traffic class, or next header type.
  • Page 404 Chapter 10 | Access Control Lists IPv6 ACLs Default Setting None Command Mode Global Configuration Command Usage ◆ When you create a new ACL or enter configuration mode for an existing ACL, use the permit or deny command to add new rules to the bottom of the list. To create an ACL, you must add at least one rule to the list.
  • Page 405 Chapter 10 | Access Control Lists IPv6 ACLs Command Usage If a port is already bound to an ACL and you bind it to a different ACL, the switch will replace the old binding with the new one. Example Console(config)#ipv6 access-group standard david in Console(config)# Related Commands show ipv6 access-list (409)
  • Page 406 Chapter 10 | Access Control Lists IPv6 ACLs Example This example configures one permit rule for the specific address 2009:DB9:2229::79 and another rule for the addresses with the network prefix 2009:DB9:2229:5::/64. Console(config-std-ipv6-acl)#permit host 2009:DB9:2229::79 Console(config-std-ipv6-acl)#permit 2009:DB9:2229:5::/64 Console(config-std-ipv6-acl)# Related Commands access-list ipv6 (403) Time Range (189) permit, deny This command adds a rule to an Extended IPv6 ACL.
  • Page 407 Chapter 10 | Access Control Lists IPv6 ACLs next-header – Identifies the type of header immediately following the IPv6 header. (Range: 0-255) time-range-name - Name of the time range. (Range: 1-16 characters) Default Setting None Command Mode Extended IPv6 ACL Command Usage ◆...
  • Page 408 Chapter 10 | Access Control Lists IPv6 ACLs Here is a more detailed example for setting the CPU rate limit for SNMP packets. Set ACL Console(config)#access-list ip extended snmp-acl Console(config-ext-acl)#permit any any destination-port 161 Console(config-ext-acl)#permit any any destination-port 162 Console(config-ext-acl)#exit Set class map Console(config)#class-map snmp-class Console(config-cmap)#match access-list snmp-acl...
  • Page 409 Chapter 10 | Access Control Lists IPv6 ACLs Command Usage If a port is already bound to an ACL and you bind it to a different ACL, the switch will replace the old binding with the new one. Example Console(config)#interface ethernet 1/2 Console(config-if)#ipv6 access-group standard david in Console(config-if)# Related Commands...
  • Page 410: Table 70: Mac Acl Commands

    Chapter 10 | Access Control Lists MAC ACLs permit 2009:DB9:2229:5::/64 Console# Related Commands permit, deny (Standard IPv6 ACL) (405) permit, deny (Extended IPv6 ACL) (406) ipv6 access-group (Interface Configuration) (408) MAC ACLs The commands in this section configure ACLs based on hardware addresses, packet format, and Ethernet type.
  • Page 411 Chapter 10 | Access Control Lists MAC ACLs Command Usage ◆ When you create a new ACL or enter configuration mode for an existing ACL, use the permit or deny command to add new rules to the bottom of the list. ◆...
  • Page 412 Chapter 10 | Access Control Lists MAC ACLs Related Commands show mac access-list (416) Time Range (189) permit, deny This command adds a rule to a MAC ACL. The rule filters packets matching a (MAC ACL) specified MAC source or destination address (i.e., physical layer address), or Ethernet protocol type.
  • Page 413 Chapter 10 | Access Control Lists MAC ACLs {permit | deny} tagged-eth2 {any | host source | source address-bitmask} {any | host destination | destination address-bitmask} [vid vid vid-bitmask] [ethertype ethertype [ethertype-bitmask]] {{ip {any | host source-ip | source-ip network-mask} {any | host destination-ip | destination-ip network-mask} {ipv6 {any | host source-ipv6 | source-ipv6/prefix-length} {any | host destination-ipv6 | destination-ipv6/prefix-length}}...
  • Page 414 Chapter 10 | Access Control Lists MAC ACLs {permit | deny} tagged-802.3 {any | host source | source address-bitmask} {any | host destination | destination address-bitmask} [vid vid vid-bitmask] [time-range time-range-name] no {permit | deny} tagged-802.3 {any | host source | source address-bitmask} {any | host destination | destination address-bitmask} [vid vid vid-bitmask] {permit | deny} untagged-802.3...
  • Page 415 Chapter 10 | Access Control Lists MAC ACLs port-bitmask – Decimal number representing the port bits to match. (Range: 0-65535) time-range-name - Name of the time range. (Range: 1-32 characters) Default Setting None Command Mode MAC ACL Command Usage ◆ New rules are added to the end of the list.
  • Page 416 Chapter 10 | Access Control Lists MAC ACLs time-range-name - Name of the time range. (Range: 1-32 characters) counter – Enables counter for ACL statistics. Default Setting None Command Mode Interface Configuration (Ethernet) Command Usage If an ACL is already bound to a port and you bind a different ACL to it, the switch will replace the old binding with the new one.
  • Page 417: Table 71: Arp Acl Commands

    Chapter 10 | Access Control Lists ARP ACLs Command Mode Privileged Exec Example Console#show mac access-list MAC access-list jerry: permit any 00-e0-29-94-34-de ethertype 0800 Console# Related Commands permit, deny (412) mac access-group (Interface Configuration) (415) ARP ACLs The commands in this section configure ACLs based on the IP or MAC address contained in ARP request and reply messages.
  • Page 418 Chapter 10 | Access Control Lists ARP ACLs Command Usage ◆ When you create a new ACL or enter configuration mode for an existing ACL, use the permit or deny command to add new rules to the bottom of the list. To create an ACL, you must add at least one rule to the list.
  • Page 419 Chapter 10 | Access Control Lists ARP ACLs log - Logs a packet when it matches the access control entry. Default Setting None Command Mode ARP ACL Command Usage New rules are added to the end of the list. Example This rule permits packets from any source IP and MAC address to the destination subnet address 192.168.0.0.
  • Page 420: Table 72: Acl Information Commands

    Chapter 10 | Access Control Lists ACL Information ACL Information This section describes commands used to display ACL information. Table 72: ACL Information Commands Command Function Mode clear access-list Clears hit counter for rules in all ACLs, or in a specified ACL. hardware counters show access-group Shows the ACLs assigned to each port...
  • Page 421 Chapter 10 | Access Control Lists ACL Information show access-group This command shows the port assignments of ACLs. Command Mode Privileged Executive Example Console#show access-group Interface ethernet 1/2 IP access-list david MAC access-list jerry Console# show access-list This command shows all ACLs and associated rules. Syntax show access-list [[arp [acl-name]] |...
  • Page 422 Chapter 10 | Access Control Lists ACL Information MAC access-list jerry: permit any host 00-30-29-94-34-de ethertype 800 800 IP extended access-list A6: deny tcp any any control-flag 2 2 permit any any Console# – 422 –...
  • Page 423: Table 73: Interface Commands

    Interface Commands These commands are used to display or set communication parameters for an Ethernet port, aggregated link, or VLAN; or perform cable diagnostics on the specified interface. Table 73: Interface Commands Command Function Mode Interface Configuration interface Configures an interface type and enters interface configuration mode alias Configures an alias name for the interface...
  • Page 424 Chapter 11 | Interface Commands Interface Configuration (Continued) Table 73: Interface Commands Command Function Mode transceiver-threshold Sets thresholds for transceiver current which can be used current to trigger an alarm or warning message transceiver-threshold Sets thresholds for the transceiver power level of the rx-power received signal which can be used to trigger an alarm or warning message...
  • Page 425 Chapter 11 | Interface Commands Interface Configuration Default Setting None Command Mode Global Configuration Example To specify several different ports, enter the following command: Console(config)#interface ethernet 1/17-20,23 Console(config-if)# alias This command configures an alias name for the interface. Use the no form to remove the alias name.
  • Page 426 Chapter 11 | Interface Commands Interface Configuration capabilities This command advertises the port capabilities of a given interface during auto- negotiation. Use the no form with parameters to remove an advertised capability, or the no form without parameters to restore the default values. Syntax [no] capabilities {1000full | 100full | 100half | 10full | 10half | flowcontrol} 1000full - Supports 1 Gbps full-duplex operation...
  • Page 427 Chapter 11 | Interface Commands Interface Configuration Related Commands negotiation (430) speed-duplex (431) flowcontrol (428) description This command adds a description to an interface. Use the no form to remove the description. Syntax description string no description string - Comment or a description to help you remember what is attached to this interface.
  • Page 428 Chapter 11 | Interface Commands Interface Configuration Command Mode Interface Configuration (Ethernet) Command Usage Use the no discard command to allow CDP or PVST packets to be forwarded to other ports in the same VLAN which are also configured to forward the specified packet type.
  • Page 429 Chapter 11 | Interface Commands Interface Configuration Example The following example enables flow control on port 5. Console(config)#interface ethernet 1/5 Console(config-if)#flowcontrol Console(config-if)#no negotiation Console(config-if)# Related Commands negotiation (430) capabilities (426) This command forces the transceiver mode to use for SFP/SFP+ ports, or media-type the port type to use for combination RJ-45/SFP ports.
  • Page 430 Chapter 11 | Interface Commands Interface Configuration Example This forces the switch to use the 1000sfp mode for SFP port 28. Console(config)#interface ethernet 1/28 Console(config-if)#media-type sfp-forced 1000sfp Console(config-if)# negotiation This command enables auto-negotiation for a given interface. Use the no form to disable auto-negotiation.
  • Page 431 Chapter 11 | Interface Commands Interface Configuration shutdown This command disables an interface. To restart a disabled interface, use the no form. Syntax [no] shutdown Default Setting All interfaces are enabled. Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage This command allows you to disable a port due to abnormal behavior (e.g., excessive collisions), and then re-enable it after the problem has been resolved.
  • Page 432 Chapter 11 | Interface Commands Interface Configuration Command Usage ◆ The 1000BASE-T standard does not support forced mode. Auto-negotiation should always be used to establish a connection over any 1000BASE-T port or trunk. If not used, the success of the link process cannot be guaranteed when connecting to other types of switches.
  • Page 433 Chapter 11 | Interface Commands Interface Configuration Command Usage Statistics are only initialized for a power reset. This command sets the base value for displayed statistics to zero for the current management session. However, if you log out and back into the management interface, the statistics displayed will show the absolute value accumulated since the last power reset.
  • Page 434 Chapter 11 | Interface Commands Interface Configuration ◆ The Type field will always display “NA” for a trunk entry because a trunk allows for mixed port types such as 1000BASE-T and 1000BASE SFP. ◆ If link status is down due to an administrative setting or the result of a protocol state, the reason will be listed in the Status field (i.e., STP LBD, BpduGuard, LinkDet, DynQoS, PortSec, LBD, ATC Bcast, ATC Mcast, UDLD).
  • Page 435: Table 74: Show Interfaces Counters - Display Description

    Chapter 11 | Interface Commands Interface Configuration 0 Error Input 0 Error Output 0 Unknown Protocols Input 0 QLen Output ===== Extended Iftable Stats ===== 23 Multi-cast Input 5525 Multi-cast Output 170 Broadcast Input 11 Broadcast Output ===== Ether-like Stats ===== 0 Alignment Errors 0 FCS Errors 0 Single Collision Frames...
  • Page 436 Chapter 11 | Interface Commands Interface Configuration (Continued) Table 74: show interfaces counters - display description Parameter Description Unicast Input The number of subnetwork-unicast packets delivered to a higher-layer protocol. Unicast Output The total number of packets that higher-level protocols requested be transmitted to a subnetwork-unicast address, including those that were discarded or not sent.
  • Page 437 Chapter 11 | Interface Commands Interface Configuration (Continued) Table 74: show interfaces counters - display description Parameter Description Excessive Collisions A count of frames for which transmission on a particular interface fails due to excessive collisions. This counter does not increment when the interface is operating in full-duplex mode.
  • Page 438 Chapter 11 | Interface Commands Interface Configuration (Continued) Table 74: show interfaces counters - display description Parameter Description 64 Octets The total number of packets (including bad packets) received and transmitted that were less than 64 octets in length (excluding framing bits but including FCS octets).
  • Page 439 Chapter 11 | Interface Commands Interface Configuration Basic Information: Port Type : 1000BASE-T MAC Address : 00-E0-0C-00-00-FE Configuration: Name Port Admin : Up Speed-duplex : Auto Capabilities : 10half, 10full, 100half, 100full, 1000full Broadcast Storm : Enabled Broadcast Storm Limit : 500 packets/second Multicast Storm : Disabled...
  • Page 440: Table 75: Show Interfaces Switchport - Display Description

    Chapter 11 | Interface Commands Interface Configuration Example This example shows the configuration setting for port 1. Console#show interfaces switchport ethernet 1/1 Information of Eth 1/1 Broadcast Threshold : Enabled, 500 packets/second Multicast Threshold : Disabled Unknown Unicast Threshold : Disabled LACP Status : Disabled Ingress Rate Limit...
  • Page 441 Chapter 11 | Interface Commands Transceiver Threshold Configuration (Continued) Table 75: show interfaces switchport - display description Field Description 802.1Q-tunnel Shows if 802.1Q tunnel is enabled on this interface (page 603). Status 802.1Q-tunnel Shows the tunnel mode as Normal, 802.1Q Tunnel or 802.1Q Tunnel Uplink Mode (page 604).
  • Page 442 Chapter 11 | Interface Commands Transceiver Threshold Configuration Example Console(config)interface ethernet 1/1 Console(config-if)#transceiver-threshold-auto Console# transceiver-threshold This command sets thresholds for transceiver current which can be used to trigger current an alarm or warning message. Use the no form to restore the default settings. Syntax transceiver-threshold current {high-alarm | high-warning | low-alarm | low-warning} threshold-value...
  • Page 443 Chapter 11 | Interface Commands Transceiver Threshold Configuration ◆ Threshold events are triggered as described above to avoid a hysteresis effect which would continuously trigger event messages if the power level were to fluctuate just above and below either the high threshold or the low threshold. ◆...
  • Page 444 Chapter 11 | Interface Commands Transceiver Threshold Configuration ◆ Refer to the Command Usage section under the transceiver-threshold current command for more information on configuring transceiver thresholds. ◆ Trap messages enabled by the transceiver-monitor command are sent to any management station configured by the snmp-server host command.
  • Page 445 Chapter 11 | Interface Commands Transceiver Threshold Configuration ◆ Trap messages enabled by the transceiver-monitor command are sent to any management station configured by the snmp-server host command. Example The following example sets alarm thresholds for the transceiver temperature at port 1.
  • Page 446 Chapter 11 | Interface Commands Transceiver Threshold Configuration ◆ Trap messages enabled by the transceiver-monitor command are sent to any management station configured by the snmp-server host command. Example The following example sets alarm thresholds for the signal power transmitted at port 1.
  • Page 447 Chapter 11 | Interface Commands Transceiver Threshold Configuration Example The following example sets alarm thresholds for the transceiver voltage at port 1. Console(config)interface ethernet 1/1 Console(config-if)#transceiver-threshold voltage low-alarm 4 Console(config-if)#transceiver-threshold voltage high-alarm 2 Console# show interfaces This command displays identifying information for the specified transceiver, including connector type and vendor-related parameters, as well as the transceiver temperature, voltage, bias current, transmit power, and receive power.
  • Page 448 Chapter 11 | Interface Commands Transceiver Threshold Configuration DDM Info Temperature : 35.64 degree C : 3.25 V Bias Current : 12.13 mA TX Power : 2.36 dBm RX Power : -24.20 dBm DDM Thresholds Low Alarm Low Warning High Warning High Alarm ----------- ------------...
  • Page 449 Chapter 11 | Interface Commands Cable Diagnostics Transceiver-threshold-auto : Enabled Low Alarm Low Warning High Warning High Alarm ----------- ------------ ------------ ------------ ------------ Temperature(Celsius) -123.00 0.00 70.00 75.00 Voltage(Volts) 3.10 3.15 3.45 3.50 Current(mA) 6.00 7.00 90.00 100.00 TxPower(dBm) -12.00 -11.50 -9.50 -9.00...
  • Page 450 Chapter 11 | Interface Commands Cable Diagnostics show This command shows the results of a cable diagnostics test. cable-diagnostics Syntax show cable-diagnostics interface [interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (ECS4620-28F/28F-DC: 23-24, Other models: 1-24/48) Command Mode Privileged Exec Command Usage...
  • Page 451 Chapter 11 | Interface Commands Power Savings Power Savings power-save This command enables power savings mode on the specified port. Use the no form to disable this feature. Syntax [no] power-save Default Setting Enabled Command Mode Interface Configuration (Ethernet) Command Usage ◆...
  • Page 452 Chapter 11 | Interface Commands Power Savings determine whether or not it can reduce the signal amplitude used on a particular link. Note: Power savings can only be implemented on Gigabit Ethernet ports using twisted-pair cabling. Power-savings mode on a active link only works when connection speed is 1 Gbps, and line length is less than 60 meters.
  • Page 453: Table 76: Link Aggregation Commands

    Link Aggregation Commands Ports can be statically grouped into an aggregate link (i.e., trunk) to increase the bandwidth of a network connection or to ensure fault recovery. Or you can use the Link Aggregation Control Protocol (LACP) to automatically negotiate a trunk link between this switch and another network device.
  • Page 454 Chapter 12 | Link Aggregation Commands Manual Configuration Commands Guidelines for Creating Trunks General Guidelines – ◆ Finish configuring trunks before you connect the corresponding network cables between switches to avoid creating a loop. ◆ A trunk can have up to 8 ports. ◆...
  • Page 455 Chapter 12 | Link Aggregation Commands Manual Configuration Commands src-dst-ip - Load balancing based on source and destination IP address. src-dst-mac - Load balancing based on source and destination MAC address. src-ip - Load balancing based on source IP address. src-mac - Load balancing based on source MAC address.
  • Page 456 Chapter 12 | Link Aggregation Commands Manual Configuration Commands src-mac: All traffic with the same source MAC address is output on the ■ same link in a trunk. This mode works best for switch-to-switch trunk links where traffic through the switch is received from many different hosts. Example Console(config)#port-channel load-balance dst-ip Console(config)#...
  • Page 457 Chapter 12 | Link Aggregation Commands Dynamic Configuration Commands Dynamic Configuration Commands lacp This command enables 802.3ad Link Aggregation Control Protocol (LACP) for the current interface. Use the no form to disable it. Syntax [no] lacp Default Setting Disabled Command Mode Interface Configuration (Ethernet) Command Usage ◆...
  • Page 458 Chapter 12 | Link Aggregation Commands Dynamic Configuration Commands Multicast Storm : Disabled Multicast Storm Limit : 500 packets/second Unknown Unicast Storm : Disabled Unknown Unicast Storm Limit : 500 packets/second Flow Control : Disabled VLAN Trunking : Disabled MAC Learning : Enabled Media Type : None...
  • Page 459 Chapter 12 | Link Aggregation Commands Dynamic Configuration Commands ◆ Once the remote side of a link has been established, LACP operational settings are already in use on that side. Configuring LACP settings for the partner only applies to its administrative state, not its operational state. Note: Configuring the partner admin-key does not affect remote or local switch operation.
  • Page 460 Chapter 12 | Link Aggregation Commands Dynamic Configuration Commands ◆ Once the remote side of a link has been established, LACP operational settings are already in use on that side. Configuring LACP settings for the partner only applies to its administrative state, not its operational state, and will only take effect the next time an aggregate link is established with the partner.
  • Page 461 Chapter 12 | Link Aggregation Commands Dynamic Configuration Commands lacp admin-key This command configures a port channel's LACP administration key string. Use the no form to restore the default setting. (Port Channel) Syntax lacp admin-key key no lacp admin-key key - The port channel admin key is used to identify a specific link aggregation group (LAG) during local LACP setup on this switch.
  • Page 462 Chapter 12 | Link Aggregation Commands Dynamic Configuration Commands lacp timeout This command configures the timeout to wait for the next LACP data unit (LACPDU). Use the no form to restore the default setting. Syntax lacp timeout {long | short} no lacp timeout long - Specifies a slow timeout of 90 seconds.
  • Page 463: Table 77: Show Lacp Counters - Display Description

    Chapter 12 | Link Aggregation Commands Trunk Status Display Commands Trunk Status Display Commands show lacp This command displays LACP information. Syntax show lacp [port-channel] {counters | internal | neighbors | sysid} port-channel - Local identifier for a link aggregation group. (Range: 1-16) counters - Statistics for LACP protocol messages.
  • Page 464: Table 78: Show Lacp Internal - Display Description

    Chapter 12 | Link Aggregation Commands Trunk Status Display Commands (Continued) Table 77: show lacp counters - display description Field Description Unknown Packet Number of frames received that either (1) Carry the Slow Protocols Ethernet Received Type value, but contain an unknown PDU, or (2) are addressed to the Slow Protocols group MAC Address, but do not carry the Slow Protocols Ethernet Type.
  • Page 465: Table 79: Show Lacp Neighbors - Display Description

    Chapter 12 | Link Aggregation Commands Trunk Status Display Commands (Continued) Table 78: show lacp internal - display description Field Description ◆ Admin State, Aggregation – The system considers this link to be aggregatable; i.e., a potential candidate for aggregation. Oper State (continued) ◆...
  • Page 466: Table 80: Show Lacp Sysid - Display Description

    Chapter 12 | Link Aggregation Commands Trunk Status Display Commands 32768 00-30-F1-8F-2C-A7 32768 00-30-F1-8F-2C-A7 32768 00-30-F1-8F-2C-A7 32768 00-30-F1-D4-73-A0 32768 00-30-F1-D4-73-A0 32768 00-30-F1-D4-73-A0 32768 00-30-F1-D4-73-A0 32768 00-30-F1-D4-73-A0 32768 00-30-F1-D4-73-A0 Table 80: show lacp sysid - display description Field Description Channel group A link aggregation group configured on this switch.
  • Page 467: Table 81: Poe Commands

    Power over Ethernet Commands The commands in this group control the power that can be delivered to attached PoE devices through the RJ-45 ports 1-24/48 on the ECS4620-28P/52P/52P-2AC. The switch’s power management enables total switch power and individual port power to be controlled within a configured power budget. Port power can be automatically turned on and off for connected devices, and a per-port power priority can be set so that the switch never exceeds its allocated power budget.
  • Page 468 Interface Configuration (ECS4620-28P/52P Ethernet ports 1-24/48) Command Usage ◆ The ECS4620-28P can supply up to 30W of power for 13 ports (based on IEEE 802.3at), or up to 15.4W to 24 ports (based on IEEE 802.3af ). ◆ The ECS4620-52P/52P-2AC can supply up to 30W of power for 23 ports (based on IEEE 802.3at) when power is provided from the RPS, or up to 15.4W to 48...
  • Page 469 Options: 1 (critical), 2 (high), or 3 (low) Default Setting 3 (low) Command Mode Interface Configuration (ECS4620-28P/52P Ethernet ports 1-24/48) Command Usage ◆ If the power demand from devices connected to the switch exceeds the power budget setting as determined during bootup, the switch uses port power priority settings to control the supplied power.
  • Page 470: Table 82: Show Power Inline Status - Display Description

    This command displays the current power status for all ports or for specific ports. status Syntax show power inline status [interface] interface ethernet unit - Unit identifier. (Range: 1-8) port - Port number. (ECS4620-28P/52P/52P-2AC ports 1-24/48) Command Mode Privileged Exec Example Console#show power inline status Unit: 1 Compatible...
  • Page 471: Table 83: Show Power Mainpower - Display Description

    Chapter 13 | Power over Ethernet Commands show power Use this command to display the current power status for the switch. mainpower Command Mode Privileged Exec Example This example shows the maximum available PoE power and maximum allocated PoE power for the ECS4620-52P. Console#show power mainpower Unit 1 Main Power Status PoE Maximum Available Power...
  • Page 472 Chapter 13 | Power over Ethernet Commands – 472 –...
  • Page 473: Table 84: Port Mirroring Commands

    Port Mirroring Commands Data can be mirrored from a local port on the same switch or from a remote port on another switch for analysis at the target port using software monitoring tools or a hardware probe. This switch supports the following mirroring modes. Table 84: Port Mirroring Commands Command Function...
  • Page 474 Chapter 14 | Port Mirroring Commands Local Port Mirroring Commands both - Mirror both received and transmitted packets. vlan-id - VLAN ID (Range: 1-4094) mac-address - MAC address in the form of xx-xx-xx-xx-xx-xx or xxxxxxxxxxxx. acl-name – Name of the ACL. (Maximum length: 32 characters, no spaces or other special characters) Default Setting ◆...
  • Page 475 Chapter 14 | Port Mirroring Commands Local Port Mirroring Commands ◆ You can create multiple mirror sessions, but all sessions must share the same destination port. ◆ The destination port cannot be a trunk or trunk member port. ◆ ACL-based mirroring is only used for ingress traffic. To mirror an ACL, follow these steps: Use the access-list command to add an ACL.
  • Page 476: Table 86: Rspan Commands

    Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands acl-name – Name of the ACL. (Maximum length: 32 characters, no spaces or other special characters) Default Setting Shows all sessions. Command Mode Privileged Exec Command Usage This command displays the currently configured source port, destination port, and mirror mode (i.e., RX, TX, RX/TX).
  • Page 477 Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands Configuration Guidelines Take the following steps to configure an RSPAN session: Use the vlan rspan command to configure a VLAN to use for RSPAN. (Default VLAN 1 and switch cluster VLAN 4093 are prohibited.) Use the rspan source command to specify the interfaces and the traffic type...
  • Page 478 Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands RSPAN uplink ports cannot be configured to use IEEE 802.1X Port Authentication, but RSPAN source ports and destination ports can be configured to use it ◆ Port Security – If port security is enabled on any port, that port cannot be set as an RSPAN uplink port, even though it can still be configured as an RSPAN source or destination port.
  • Page 479 Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands ◆ The source port and destination port cannot be configured on the same switch. Example The following example configures the switch to mirror received packets from port 2 and 3: Console(config)#rspan session 1 source interface ethernet 1/2 Console(config)#rspan session 1 source interface ethernet 1/3 Console(config)# rspan destination...
  • Page 480 Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands ◆ The source port and destination port cannot be configured on the same switch. ◆ A destination port can still send and receive switched traffic, and participate in any Layer 2 protocols to which it has been assigned. Example The following example configures port 4 to receive mirrored RSPAN traffic: Console(config)#rspan session 1 destination interface ethernet 1/2...
  • Page 481 Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands Command Usage ◆ Only 802.1Q trunk or hybrid (i.e., general use) ports can be configured as an RSPAN uplink port – access ports are not allowed (see switchport mode). ◆ Only one uplink port can be configured on a source switch, but there is no limitation on the number of uplink ports configured on an intermediate or destination switch.
  • Page 482 Chapter 14 | Port Mirroring Commands RSPAN Mirroring Commands show rspan Use this command to displays the configuration settings for an RSPAN session. Syntax show rspan session [session-id] session-id – A number identifying this RSPAN session. (Range: 1) Only one mirror session is allowed, including both local and remote mirroring.
  • Page 483: Table 87: Congestion Control Commands

    Congestion Control Commands The switch can set the maximum upload or download data transfer rate for any port. It can control traffic storms by setting a maximum threshold for broadcast traffic or multicast traffic. It can also set bounding thresholds for broadcast and multicast storms which can be used to automatically trigger rate limits or to shut down a port.
  • Page 484 Chapter 15 | Congestion Control Commands Rate Limit Commands rate-limit This command defines the rate limit for a specific interface. Use this command without specifying a rate to enable rate limiting. Use the no form to disable rate limiting. Syntax rate-limit {input | output} [rate] no rate-limit {input | output} input –...
  • Page 485: Table 89: Storm Control Commands

    Chapter 15 | Congestion Control Commands Storm Control Commands Storm Control Commands Storm control commands can be used to configure broadcast, multicast, and unknown unicast storm control thresholds. Traffic storms may occur when a device on your network is malfunctioning, or if application programs are not well designed or properly configured.
  • Page 486: Table 90: Atc Commands

    Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands ◆ Traffic storms can be controlled at the hardware level using this command or at the software level using the auto-traffic-control command. However, only one of these control types can be applied to a port. Enabling hardware-level storm control on a port will disable automatic storm control on that port.
  • Page 487 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands (Continued) Table 90: ATC Commands Command Function Mode auto-traffic-control Sets the control action to limit ingress traffic or shut IC (Port) action down the offending port auto-traffic-control Sets the lower threshold for ingress traffic beneath IC (Port) alarm-clear-threshold which a cleared storm control trap is sent...
  • Page 488: Figure 1: Storm Control By Limiting The Traffic Rate

    Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Usage Guidelines ATC includes storm control for broadcast or multicast traffic. The control response for either of these traffic types is the same, as shown in the following diagrams. Figure 1: Storm Control by Limiting the Traffic Rate Traffic without storm control Traffic without storm control TrafficControl...
  • Page 489: Figure 2: Storm Control By Shutting Down A Port

    Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Figure 2: Storm Control by Shutting Down a Port The key elements of this diagram are the same as that described in the preceding diagram, except that automatic release of the control response is not provided. When traffic control is applied, you must manually re-enable the port.
  • Page 490 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Command Usage After the apply timer expires, a control action may be triggered as specified by the auto-traffic-control action command and a trap message sent as specified by the snmp-server enable port-traps atc broadcast-control-apply command or snmp- server enable port-traps atc multicast-control-apply...
  • Page 491 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands auto-traffic-control This command enables automatic traffic control for broadcast or multicast storms. Use the no form to disable this feature. Syntax [no] auto-traffic-control {broadcast | multicast} broadcast - Specifies automatic storm control for broadcast traffic. multicast - Specifies automatic storm control for multicast traffic.
  • Page 492 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands shutdown - If a control response is triggered, the port is administratively disabled. A port disabled by automatic traffic control can only be manually re-enabled. Default Setting rate-control Command Mode Interface Configuration (Ethernet) Command Usage ◆...
  • Page 493 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Default Setting 128 kilo-packets per second Command Mode Interface Configuration (Ethernet) Command Usage ◆ Once the traffic rate falls beneath the lower threshold, a trap message may be sent if configured by the snmp-server enable port-traps atc broadcast-alarm- clear command or...
  • Page 494 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Command Usage ◆ Once the upper threshold is exceeded, a trap message may be sent if configured by the snmp-server enable port-traps atc broadcast-alarm-fire command or snmp-server enable port-traps atc multicast-alarm-fire command.
  • Page 495 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands auto-traffic-control This command manually releases a control response. control-release Syntax auto-traffic-control {broadcast | multicast} control-release interface interface broadcast - Specifies automatic storm control for broadcast traffic. multicast - Specifies automatic storm control for multicast traffic. interface ethernet unit/port-list unit - Unit identifier.
  • Page 496 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Example Console(config)#interface ethernet 1/1 Console(config-if)#snmp-server enable port-traps atc broadcast-alarm-clear Console(config-if)# Related Commands auto-traffic-control action (491) auto-traffic-control alarm-clear-threshold (492) snmp-server This command sends a trap when broadcast traffic exceeds the upper threshold for enable port-traps atc automatic storm control.
  • Page 497 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Example Console(config)#interface ethernet 1/1 Console(config-if)#snmp-server enable port-traps atc broadcast-control-apply Console(config-if)# Related Commands auto-traffic-control alarm-fire-threshold (493) auto-traffic-control apply-timer (489) snmp-server This command sends a trap when broadcast traffic falls beneath the lower enable port-traps atc threshold after a storm control response has been triggered and the release timer expires.
  • Page 498 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Command Mode Interface Configuration (Ethernet) Example Console(config)#interface ethernet 1/1 Console(config-if)#snmp-server enable port-traps atc multicast-alarm-clear Console(config-if)# Related Commands auto-traffic-control action (491) auto-traffic-control alarm-clear-threshold (492) snmp-server This command sends a trap when multicast traffic exceeds the upper threshold for enable port-traps atc automatic storm control.
  • Page 499 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands Example Console(config)#interface ethernet 1/1 Console(config-if)#snmp-server enable port-traps atc multicast-control-apply Console(config-if)# Related Commands auto-traffic-control alarm-fire-threshold (493) auto-traffic-control apply-timer (489) snmp-server This command sends a trap when multicast traffic falls beneath the lower threshold enable port-traps atc after a storm control response has been triggered and the release timer expires.
  • Page 500 Chapter 15 | Congestion Control Commands Automatic Traffic Control Commands release-timer (sec) : 900 Storm-control: Multicast Apply-timer(sec) : 300 release-timer(sec) : 900 Console# show auto-traffic- This command shows interface configuration settings and storm control status for control interface the specified port. Syntax show auto-traffic-control interface [interface] interface...
  • Page 501: Table 91: Loopback Detection Commands

    Loopback Detection Commands The switch can be configured to detect general loopback conditions caused by hardware problems or faulty protocol settings. When enabled, a control frame is transmitted on the participating ports, and the switch monitors inbound traffic to see if the frame is looped back. Table 91: Loopback Detection Commands Command Function...
  • Page 502 Chapter 16 | Loopback Detection Commands loopback-detection This command enables loopback detection globally on the switch or on a specified interface. Use the no form to disable loopback detection. Syntax [no] loopback-detection Default Setting Enabled Command Mode Global Configuration Interface Configuration (Ethernet, Port Channel) Command Usage Loopback detection must be enabled globally for the switch by this command and enabled for a specific interface for this function to take effect.
  • Page 503 Chapter 16 | Loopback Detection Commands Command Usage ◆ When the response to a detected loopback condition is set to block user traffic, loopback detection control frames may untagged or tagged depending on the port’s VLAN membership type. ◆ When the response to a detected loopback condition is set to block user traffic, ingress filtering for the port is enabled automatically if not already enabled by switchport ingress-filtering command.
  • Page 504 Chapter 16 | Loopback Detection Commands Command Usage ◆ When the loopback detection mode is changed, any ports placed in shutdown state by the loopback detection process will be immediately restored to operation regardless of the remaining recover time. ◆ If the recovery time is set to zero, all ports placed in shutdown state can be restored to operation using the loopback-detection release...
  • Page 505 Chapter 16 | Loopback Detection Commands detect - Sends an SNMP trap message when a loopback condition is detected. none - Does not send an SNMP trap for loopback detection or recovery. recover - Sends an SNMP trap message when the switch recovers from a loopback condition.
  • Page 506 Chapter 16 | Loopback Detection Commands show loopback- This command shows loopback detection configuration settings for the switch or for a specified interface. detection Syntax show loopback-detection [interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) Command Mode Privileged Exec Example...
  • Page 507: Table 92: Unidirectional Link Detection Commands

    UniDirectional Link Detection Commands The switch can be configured to detect and disable unidirectional Ethernet fiber or copper links. When enabled, the protocol advertises a port’s identity and learns about its neighbors on a specific LAN segment; and stores information about its neighbors in a cache.
  • Page 508 Chapter 17 | UniDirectional Link Detection Commands Command Usage When a neighbor device is discovered by UDLD, the switch enters “detection state” and remains in this state for specified detection-interval. After the detection- interval expires, the switch tries to decide whether or the link is unidirectional based on the information collected during “detection state.
  • Page 509 Chapter 17 | UniDirectional Link Detection Commands udld recovery This command configures the switch to automatically recover from UDLD disabled port state after a period specified by the udld recovery-interval command. Use the no form to disable this feature. Syntax [no] udld recovery Default Setting Disabled...
  • Page 510 Chapter 17 | UniDirectional Link Detection Commands Example Console(config)#udld recovery-interval 15 Console(config)# udld aggressive This command sets UDLD to aggressive mode on an interface. Use the no form to restore the default setting. Syntax [no] udld aggressive Default Setting Disabled Command Mode Interface Configuration (Ethernet Port) Command Usage...
  • Page 511 Chapter 17 | UniDirectional Link Detection Commands Example This example enables UDLD aggressive mode on port 1. Console(config)#interface ethernet 1/1 Console(config-if)#udld aggressive Console(config-if)# udld port This command enables UDLD on a port. Use the no form to disable UDLD on an interface.
  • Page 512: Table 93: Show Udld - Display Description

    Chapter 17 | UniDirectional Link Detection Commands show udld This command shows UDLD configuration settings and operational status for the switch or for a specified interface. Syntax show udld [interface interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number.
  • Page 513 Chapter 17 | UniDirectional Link Detection Commands (Continued) Table 93: show udld - display description Field Description Recovery Interval Shows the period after which to recover from UDLD disabled port state if automatic recovery is enabled UDLD Shows if UDLD is enabled or disabled on a port Mode Shows if UDLD is functioning in Normal or Aggressive mode Oper State...
  • Page 514 Chapter 17 | UniDirectional Link Detection Commands – 514 –...
  • Page 515: Table 94: Address Table Commands

    Address Table Commands These commands are used to configure the address table for filtering specified addresses, displaying current entries, clearing the table, or setting the aging time. Table 94: Address Table Commands Command Function Mode mac-address-table Sets the aging time of the address table aging-time mac-address-table Sets the hash lookup depth of MAC address table...
  • Page 516 Chapter 18 | Address Table Commands Command Usage The aging time is used to age out dynamically learned forwarding information. Example Console(config)#mac-address-table aging-time 100 Console(config)# mac-address-table This command sets the hash lookup depth used when searching the MAC address hash-lookup-depth table.
  • Page 517 Chapter 18 | Address Table Commands mac-address-table This command maps a static address to a destination port in a VLAN. Use the no form to remove an address. static Syntax mac-address-table static mac-address interface interface vlan vlan-id [action] no mac-address-table static mac-address vlan vlan-id mac-address - MAC address.
  • Page 518 Chapter 18 | Address Table Commands clear collision-mac- This command removes all entries from the collision MAC address table. address-table Default Setting None Command Mode Privileged Exec Example Console#clear collision-mac-address-table Console# clear mac-address- This command removes any learned entries from the forwarding database. table dynamic Default Setting None...
  • Page 519 Chapter 18 | Address Table Commands show mac-address- This command shows classes of entries in the bridge-forwarding database. table Syntax show mac-address-table [address mac-address [mask]] [interface interface] [vlan vlan-id] [sort {address | vlan | interface}] mac-address - MAC address. mask - Bits to match in the address. interface ethernet unit/port unit - Unit identifier.
  • Page 520 Chapter 18 | Address Table Commands Eth 1/ 1 00-E0-29-94-34-64 1 Learn Delete on Timeout Console# show mac-address- This command shows the aging time for entries in the address table. table aging-time Default Setting None Command Mode Privileged Exec Example Console#show mac-address-table aging-time Aging Status : Enabled Aging Time: 300 sec.
  • Page 521 Chapter 18 | Address Table Commands Maximum number of MAC Address which can be created in the system: Total Number of MAC Address : 16384 Number of Static MAC Address : 1024 Current number of entries which have been created in the system: Total Number of MAC Address Number of Static MAC Address Number of Dynamic MAC Address...
  • Page 522 Chapter 18 | Address Table Commands – 522 –...
  • Page 523: Table 95: Spanning Tree Commands

    Spanning Tree Commands This section includes commands that configure the Spanning Tree Algorithm (STA) globally for the switch, and commands that configure STA for the selected interface. Table 95: Spanning Tree Commands Command Function Mode spanning-tree Enables the spanning tree protocol spanning-tree Configures spanning tree operation to be compatible with cisco-prestandard...
  • Page 524 Chapter 19 | Spanning Tree Commands (Continued) Table 95: Spanning Tree Commands Command Function Mode spanning-tree Enables BPDU loopback detection for a port loopback-detection spanning-tree loopback- Configures the response for loopback detection to block detection action user traffic or shut down the interface spanning-tree loopback- Configures loopback release mode for a port detection release-mode...
  • Page 525 Chapter 19 | Spanning Tree Commands Command Usage ◆ The Spanning Tree Algorithm (STA) can be used to detect and disable network loops, and to provide backup links between switches, bridges or routers. This allows the switch to interact with other bridging devices (that is, an STA- compliant switch, bridge or router) in your network to ensure that only one route exists between any two stations on the network, and provide backup links which automatically take over when a primary link goes down.
  • Page 526 Chapter 19 | Spanning Tree Commands spanning-tree This command configures the spanning tree bridge forward time globally for this switch. Use the no form to restore the default setting. forward-time Syntax spanning-tree forward-time seconds no spanning-tree forward-time seconds - Time in seconds. (Range: 4 - 30 seconds) The minimum value is the higher of 4 or [(max-age / 2) + 1].
  • Page 527 Chapter 19 | Spanning Tree Commands Command Usage This command sets the time interval (in seconds) at which the root device transmits a configuration message. Example Console(config)#spanning-tree hello-time 5 Console(config)# Related Commands spanning-tree forward-time (526) spanning-tree max-age (527) spanning-tree This command configures the spanning tree bridge maximum age globally for this max-age switch.
  • Page 528 Chapter 19 | Spanning Tree Commands spanning-tree mode This command selects the spanning tree mode for this switch. Use the no form to restore the default. Syntax spanning-tree mode {stp | rstp mstp} no spanning-tree mode stp - Spanning Tree Protocol (IEEE 802.1D) rstp - Rapid Spanning Tree Protocol (IEEE 802.1w) mstp - Multiple Spanning Tree (IEEE 802.1s) Default Setting...
  • Page 529 Chapter 19 | Spanning Tree Commands Be careful when switching between spanning tree modes. Changing ■ modes stops all spanning-tree instances for the previous mode and restarts the system in the new mode, temporarily disrupting user traffic. Example The following example configures the switch to use Rapid Spanning Tree: Console(config)#spanning-tree mode rstp Console(config)# spanning-tree...
  • Page 530 Chapter 19 | Spanning Tree Commands Command Mode Global Configuration Command Usage ◆ The path cost method is used to determine the best path between devices. Therefore, lower values should be assigned to ports attached to faster media, and higher values assigned to ports with slower media. Note that path cost (page 538) takes precedence over port priority (page...
  • Page 531 Chapter 19 | Spanning Tree Commands spanning-tree This command configures the system to flood BPDUs to all other ports on the switch or just to all other ports in the same VLAN when spanning tree is disabled system-bpdu-flooding globally on the switch or disabled on a specific port. Use the no form to restore the default.
  • Page 532 Chapter 19 | Spanning Tree Commands Default Setting All ports and trunks belong to a common group. Command Mode Global Configuration Command Usage A port can only belong to one group. When an interface is added to a group, it is removed from the default group.
  • Page 533 Chapter 19 | Spanning Tree Commands hop-number - Maximum hop number for multiple spanning tree. (Range: 1-40) Default Setting Command Mode MST Configuration Command Usage An MSTI region is treated as a single node by the STP and RSTP protocols. Therefore, the message age for BPDUs inside an MSTI region is never changed.
  • Page 534 Chapter 19 | Spanning Tree Commands priority, the device with the lowest MAC address will then become the root device. ◆ You can set this switch to act as the MSTI root device by specifying a priority of 0, or as the MSTI alternate device by specifying a priority of 16384. Example Console(config-mstp)#mst 1 priority 4096 Console(config-mstp)#...
  • Page 535 Chapter 19 | Spanning Tree Commands name This command configures the name for the multiple spanning tree region in which this switch is located. Use the no form to clear the name. Syntax name name name - Name of multiple spanning tree region. (Range: 1-32 alphanumeric characters) Default Setting Switch’s MAC address...
  • Page 536 Chapter 19 | Spanning Tree Commands Example Console(config-mstp)#revision 1 Console(config-mstp)# Related Commands name (535) spanning-tree This command allows you to avoid transmitting BPDUs on configured edge ports bpdu-filter that are connected to end nodes. Use the no form to disable this feature. Syntax [no] spanning-tree bpdu-filter Default Setting...
  • Page 537 Chapter 19 | Spanning Tree Commands spanning-tree This command shuts down an edge port (i.e., an interface set for fast forwarding) if it receives a BPDU. Use the no form without any keywords to disable this feature, or bpdu-guard with a keyword to restore the default settings. Syntax spanning-tree bpdu-guard [auto-recovery [interval interval]] no spanning-tree bpdu-guard [auto-recovery [interval]]...
  • Page 538: Table 96: Recommended Sta Path Cost Range

    Chapter 19 | Spanning Tree Commands spanning-tree cost This command configures the spanning tree path cost for the specified interface. Use the no form to restore the default auto-configuration mode. Syntax spanning-tree cost cost no spanning-tree cost cost - The path cost for the port. (Range: 0 for auto-configuration, 1-65535 for short path cost method , 1-200,000,000 for long path cost method) Table 96: Recommended STA Path Cost Range...
  • Page 539 Chapter 19 | Spanning Tree Commands ◆ Path cost takes precedence over port priority. ◆ When the path cost method (page 529) is set to short, the maximum value for path cost is 65,535. Example Console(config)#interface ethernet 1/5 Console(config-if)#spanning-tree cost 50 Console(config-if)# spanning-tree This command specifies an interface as an edge port.
  • Page 540 Chapter 19 | Spanning Tree Commands spanning-tree This command configures the link type for Rapid Spanning Tree and Multiple Spanning Tree. Use the no form to restore the default. link-type Syntax spanning-tree link-type {auto | point-to-point | shared} no spanning-tree link-type auto - Automatically derived from the duplex mode setting.
  • Page 541 Chapter 19 | Spanning Tree Commands Command Usage ◆ If Port Loopback Detection is not enabled and a port receives it’s own BPDU, then the port will drop the loopback BPDU according to IEEE Standard 802.1W- 2001 9.3.4 (Note 1). ◆...
  • Page 542 Chapter 19 | Spanning Tree Commands spanning-tree This command configures the release mode for a port that was placed in the discarding state because a loopback BPDU was received. Use the no form to restore loopback-detection the default. release-mode Syntax spanning-tree loopback-detection release-mode {auto | manual} no spanning-tree loopback-detection release-mode auto - Allows a port to automatically be released from the discarding state...
  • Page 543 Chapter 19 | Spanning Tree Commands spanning-tree This command enables SNMP trap notification for Spanning Tree loopback BPDU detections. Use the no form to restore the default. loopback-detection trap Syntax [no] spanning-tree loopback-detection trap Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel) Example Console(config)#interface ethernet 1/5 Console(config-if)#spanning-tree loopback-detection trap...
  • Page 544 Chapter 19 | Spanning Tree Commands interfaces attached to faster media, and higher values assigned to interfaces with slower media. ◆ Use the no spanning-tree mst cost command to specify auto-configuration mode. ◆ Path cost takes precedence over interface priority. Example Console(config)#interface Ethernet 1/5 Console(config-if)#spanning-tree mst 1 cost 50...
  • Page 545 Chapter 19 | Spanning Tree Commands Related Commands spanning-tree mst cost (543) spanning-tree This command floods BPDUs to other ports when spanning tree is disabled globally or disabled on a specific port. Use the no form to restore the default setting. port-bpdu-flooding Syntax [no] spanning-tree port-bpdu-flooding...
  • Page 546 Chapter 19 | Spanning Tree Commands Command Usage ◆ This command defines the priority for the use of a port in the Spanning Tree Algorithm. If the path cost for all ports on a switch are the same, the port with the highest priority (that is, lowest value) will be configured as an active link in the spanning tree.
  • Page 547 Chapter 19 | Spanning Tree Commands by taking over as the root port and forming a new spanning tree topology. It could also be used to form a border around part of the network where the root bridge is allowed. ◆...
  • Page 548 Chapter 19 | Spanning Tree Commands Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage When this command is enabled on an interface, topology change information originating from the interface will still be propagated. This command should not be used on an interface which is purposely configured in a ring topology.
  • Page 549 Chapter 19 | Spanning Tree Commands spanning-tree This command re-checks the appropriate BPDU format to send on the selected interface. protocol-migration Syntax spanning-tree protocol-migration interface interface ethernet unit/port unit - Unit identifier. (Range: 1) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) Command Mode Privileged Exec...
  • Page 550 Chapter 19 | Spanning Tree Commands show spanning-tree This command shows the configuration for the common spanning tree (CST), for all instances within the multiple spanning tree (MST), or for a specific instance within the multiple spanning tree (MST). Syntax show spanning-tree [interface | mst instance-id | brief | stp-enabled-only] interface ethernet unit/port...
  • Page 551 Chapter 19 | Spanning Tree Commands VLANs Configured : 1-4094 Priority : 32768 Bridge Hello Time (sec.) Bridge Max. Age (sec.) : 20 Bridge Forward Delay (sec.) : 15 Root Hello Time (sec.) Root Max. Age (sec.) : 20 Root Forward Delay (sec.) : 15 Max.
  • Page 552 Chapter 19 | Spanning Tree Commands Current Root Cost : 10000 Interface Pri Designated Designated Oper Role State Oper Bridge ID Port ID Cost Status Edge --------- --- --------------------- ---------- -------- ------ ---- ----- --- Eth 1/ 1 128 32768.0000E89382A0 128.1 100000 EN DESG FWD...
  • Page 553: Table 98: Erps Commands

    ERPS Commands The G.8032 recommendation, also referred to as Ethernet Ring Protection Switching (ERPS), can be used to increase the availability and robustness of Ethernet rings. This chapter describes commands used to configure ERPS. Table 98: ERPS Commands Command Function Mode erps Enables ERPS globally on the switch...
  • Page 554 Chapter 20 | ERPS Commands (Continued) Table 98: ERPS Commands Command Function Mode clear erps Clears statistics, including SF, NR, NR-RB, FS, MS, Event, and Health statistics protocol messages erps clear Manually clears protection state which has been invoked by a Forced Switch or Manual Switch command, and the node is operating under non-revertive mode;...
  • Page 555 Chapter 20 | ERPS Commands Enable ERPS: Before enabling a ring as described in the next step, first use the erps command to globally enable ERPS on the switch. If ERPS has not yet been enabled or has been disabled with the no erps command, no ERPS rings will work.
  • Page 556 Chapter 20 | ERPS Commands erps domain This command creates an ERPS ring and enters ERPS configuration mode for the specified domain. Use the no form to delete a ring. Syntax erps domain ring-name [id ring-id] no erps domain ring-name ring-name - Name of a specific ERPS ring.
  • Page 557 Chapter 20 | ERPS Commands Command Usage ◆ Configure one control VLAN for each ERPS ring. First create the VLAN to be used as the control VLAN (vlan, page 592), add the ring ports for the east and west interface as tagged members to this VLAN (switchport allowed vlan, page...
  • Page 558 Chapter 20 | ERPS Commands ring-port command, the RPL owner specified with the rpl owner command, and the control VLAN configured with the control-vlan command. ◆ Once enabled, the RPL owner node and non-owner node state machines will start, and the ring will enter idle state if no signal failures are detected. Example Console(config-erps)#enable Console(config-erps)#...
  • Page 559 Chapter 20 | ERPS Commands holdoff-timer This command sets the timer to filter out intermittent link faults. Use the no form to restore the default setting. Syntax holdoff-timer milliseconds milliseconds - The hold-off timer is used to filter out intermittent link faults. Faults will only be reported to the ring protection mechanism if this timer expires.
  • Page 560 Chapter 20 | ERPS Commands Command Mode ERPS Configuration Command Usage ◆ This switch can support up to six rings. However, ERPS control packets can only be sent on one ring. This command is used to indicate that the current ring is a secondary ring, and to specify the major ring which will be used to send ERPS control packets.
  • Page 561 Chapter 20 | ERPS Commands Example Console(config-erps)#meg-level 0 Console(config-erps)# Related Commands ethernet cfm domain (825) ethernet cfm mep (830) mep-monitor This command specifies the CFM MEPs used to monitor the link on a ring node. Use the no form to restore the default setting. Syntax mep-monitor {east | west} mep mpid east - Connects to next ring node to the east.
  • Page 562 Chapter 20 | ERPS Commands Related Commands ethernet cfm domain (825) ethernet cfm mep (830) node-id This command sets the MAC address for a ring node. Use the no form to restore the default setting. Syntax node-id mac-address mac-address – A MAC address unique to the ring node. The MAC address must be specified in the format xx-xx-xx-xx-xx-xx or xxxxxxxxxxxx.
  • Page 563: Figure 3: Non-Erps Device Protection

    Chapter 20 | ERPS Commands Default Setting Disabled Command Mode ERPS Configuration Command Usage ◆ The RPL owner node detects a failed link when it receives R-APS (SF - signal fault) messages from nodes adjacent to the failed link. The owner then enters protection state by unblocking the RPL.
  • Page 564 Chapter 20 | ERPS Commands non-revertive This command enables non-revertive mode, which requires the protection state on the RPL to manually cleared. Use the no form to restore the default revertive mode. Syntax [no] non-revertive Default Setting Disabled Command Mode ERPS Configuration Command Usage ◆...
  • Page 565 Chapter 20 | ERPS Commands traffic channel over the RPL, transmitting an R-APS (NR, RB) message over both ring ports, informing the ring that the RPL is blocked, and performing a flush FDB action. The acceptance of the R-APS (NR, RB) message causes all ring nodes to unblock any blocked non-RPL link that does not have an SF condition.
  • Page 566 Chapter 20 | ERPS Commands The WTB timer is cancelled if during the WTB period a higher priority request than NR is accepted by the RPL Owner Node or is declared locally at the RPL Owner Node. When the WTB timer expires, in the absence of any other higher priority request, the RPL Owner Node initiates reversion by blocking the traffic channel over the RPL, transmitting an R-APS (NR, RB) message over both ring ports, informing the ring that the RPL is blocked, and flushes...
  • Page 567 Chapter 20 | ERPS Commands Recovery with revertive mode is handled in the following way: ■ The RPL Owner Node, upon reception of an R-APS (NR) message and in the absence of any other higher priority request, starts the WTB timer and waits for it to expire.
  • Page 568 Chapter 20 | ERPS Commands Command Mode ERPS Configuration Command Usage ◆ When a secondary ring detects a topology change, it can pass a message about this event to the major ring. When the major ring receives this kind of message from a secondary ring, it can clear the MAC addresses on its ring ports to help the secondary ring restore its connections more quickly through protection switching.
  • Page 569 Chapter 20 | ERPS Commands raps-without-vc This command terminates the R-APS channel at the primary ring to sub-ring interconnection nodes. Use the no form to restore the default setting. Syntax [no] raps-without-vc Default Setting R-APS with Virtual Channel Command Mode ERPS Configuration Command Usage ◆...
  • Page 570: Figure 4: Sub-Ring With Virtual Channel

    Chapter 20 | ERPS Commands Figure 4: Sub-ring with Virtual Channel Interconnection Node RPL Port Ring Node Major Ring Sub-ring with Virtual Channel Virtual Channel ◆ Sub-ring without R-APS Virtual Channel – Under certain circumstances it may not be desirable to use a virtual channel to interconnect the sub-ring over an arbitrary Ethernet network.
  • Page 571 Chapter 20 | ERPS Commands ring-port This command configures a node’s connection to the ring through the east or west interface. Use the no form to disassociate a node from the ring. Syntax ring-port {east | west} interface interface east - Connects to next ring node to the east. west - Connects to next ring node to the west.
  • Page 572 Chapter 20 | ERPS Commands rpl neighbor This command configures a ring node to be the Ring Protection Link (RPL) neighbor. Use the no form to restore the default setting. Syntax rpl neighbor no rpl Default Setting None (that is, neither owner nor neighbor) Command Mode ERPS Configuration Command Usage...
  • Page 573 Chapter 20 | ERPS Commands Command Mode ERPS Configuration Command Usage ◆ Only one RPL owner can be configured on a ring. The owner blocks traffic on the RPL during Idle state, and unblocks it during Protection state (that is, when a signal fault is detected on the ring or the protection state is enabled with the erps forced-switch erps manual-switch...
  • Page 574 Chapter 20 | ERPS Commands ◆ The version number is automatically set to “1” when a ring node, supporting only the functionalities of G.8032v1, exists on the same ring with other nodes that support G.8032v2. ◆ When ring nodes running G.8032v1 and G.8032v2 co-exist on a ring, the ring ID of each node is configured as “1”.
  • Page 575 Chapter 20 | ERPS Commands clear erps statistics This command clears statistics, including SF, NR, NR-RB, FS, MS, Event, and Health protocol messages. Syntax clear erps statistics [domain ring-name] ring-name - Name of a specific ERPS ring. (Range: 1-12 characters) Command Mode Privileged Exec Example...
  • Page 576 Chapter 20 | ERPS Commands Example Console#erps clear domain r&d Console# erps forced-switch This command blocks the specified ring port. Syntax erps forced-switch [domain ring-name] {east | west} ring-name - Name of a specific ERPS ring. (Range: 1-12 characters) east - East ring port. west - West ring port.
  • Page 577: Table 99: Erps Request/State Priority

    Chapter 20 | ERPS Commands While an existing forced switch request is present in a ring, any new forced switch request is accepted, except on a ring node having a prior local forced switch request. The ring nodes where further forced switch commands are issued block the traffic channel and R-APS channel on the ring port at which the forced switch was issued.
  • Page 578 Chapter 20 | ERPS Commands node under maintenance in order to avoid falling into the above mentioned unrecoverable situation. Example Console#erps forced-switch domain r&d west Console# erps manual-switch This command blocks the specified ring port, in the absence of a failure or an erps forced-switch command.
  • Page 579 Chapter 20 | ERPS Commands A ring node accepting an R-APS (MS) message, without any local higher priority requests stops transmitting R-APS messages. A ring node receiving an R-APS (MS) message flushes its FDB. ◆ Protection switching on a manual switch request is completed when the above actions are performed by each ring node.
  • Page 580: Table 100: Show Erps - Summary Display Description

    Chapter 20 | ERPS Commands Example This example displays a summary of all the ERPS rings configured on the switch. Console#show erps ERPS Status : Enabled Number of ERPS Domains Domain Enabled Ver MEL Ctrl VLAN State Type Revertive ------------ --- ------- --- --- --------- ---------- ------------ --------- r&d 1 Yes 1 Idle...
  • Page 581: Table 101: Show Erps Domain - Detailed Display Description

    Chapter 20 | ERPS Commands (Continued) Table 100: show erps - summary display description Field Description Port State The operational state: Blocking – The transmission and reception of traffic is blocked and the forwarding of R-APS messages is blocked, but the transmission of locally generated R-APS messages is allowed and the reception of all R- APS messages is allowed.
  • Page 582 Chapter 20 | ERPS Commands (Continued) Table 101: show erps domain - detailed display description Field Description R-APS with VC The R-APS Virtual Channel is the R-APS channel connection used to tunnel R-APS messages between two interconnection nodes of a sub- ring in another Ethernet ring or network.
  • Page 583: Table 102: Show Erps Statistics - Detailed Display Description

    Chapter 20 | ERPS Commands Table 102: show erps statistics - detailed display description Field Description Interface The direction, and port or trunk which is configured as a ring port. Local SF A signal fault generated on a link to the local node. Local Clear SF The number of times a clear command was issued to terminate protection state entered through a forced switch or manual switch...
  • Page 584 Chapter 20 | ERPS Commands – 584 –...
  • Page 585: Table 103: Vlan Commands

    VLAN Commands A VLAN is a group of ports that can be located anywhere in the network, but communicate as though they belong to the same physical segment. This section describes commands used to create VLAN groups, add port members, specify how VLAN tagging is used, and enable automatic VLAN registration for the selected interface.
  • Page 586: Table 104: Gvrp And Bridge Extension Commands

    Chapter 21 | VLAN Commands GVRP and Bridge Extension Commands GVRP and Bridge Extension Commands GARP VLAN Registration Protocol defines a way for switches to exchange VLAN information in order to automatically register VLAN members on interfaces across the network. This section describes how to enable GVRP for individual interfaces and globally for the switch, as well as how to display default configuration settings for the Bridge Extension MIB.
  • Page 587 Chapter 21 | VLAN Commands GVRP and Bridge Extension Commands garp timer This command sets the values for the join, leave and leaveall timers. Use the no form to restore the timers’ default values. Syntax garp timer {join | leave | leaveall} timer-value no garp timer {join | leave | leaveall} {join | leave | leaveall} - Timer to set.
  • Page 588 Chapter 21 | VLAN Commands GVRP and Bridge Extension Commands switchport forbidden This command configures forbidden VLANs. Use the no form to remove the list of forbidden VLANs. vlan Syntax switchport forbidden vlan {add vlan-list | remove vlan-list} no switchport forbidden vlan add vlan-list - List of VLAN identifiers to add.
  • Page 589: Table 105: Show Bridge-Ext - Display Description

    Chapter 21 | VLAN Commands GVRP and Bridge Extension Commands Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage GVRP cannot be enabled for ports set to Access mode using the switchport mode command. Example Console(config)#interface ethernet 1/1 Console(config-if)#switchport gvrp Console(config-if)# show bridge-ext...
  • Page 590 Chapter 21 | VLAN Commands GVRP and Bridge Extension Commands (Continued) Table 105: show bridge-ext - display description Field Description Static Entry This switch allows static filtering for unicast and multicast addresses. (Refer to Individual Port mac-address-table static command.) VLAN Version Based on IEEE 802.1Q, “1”...
  • Page 591: Table 106: Commands For Editing Vlan Groups

    Chapter 21 | VLAN Commands Editing VLAN Groups Related Commands garp timer (587) show gvrp This command shows if GVRP is enabled. configuration Syntax show gvrp configuration [interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) Default Setting Shows both global and interface-specific configuration.
  • Page 592 Chapter 21 | VLAN Commands Editing VLAN Groups Command Mode Global Configuration Command Usage ◆ Use the VLAN database command mode to add, change, and delete VLANs. After finishing configuration changes, you can display the VLAN settings by entering the show vlan command.
  • Page 593: Table 107: Commands For Configuring Vlan Interfaces

    Chapter 21 | VLAN Commands Configuring VLAN Interfaces Note: Ports can only be added to an RSPAN VLAN using the commands described under “RSPAN Mirroring Commands”. Default Setting By default only VLAN 1 exists and is active. Command Mode VLAN Database Configuration Command Usage ◆...
  • Page 594 Chapter 21 | VLAN Commands Configuring VLAN Interfaces (Continued) Table 107: Commands for Configuring VLAN Interfaces Command Function Mode switchport priority default Sets a port priority for incoming untagged frames vlan-trunking Allows unknown VLANs to cross the switch interface vlan This command enters interface configuration mode for VLANs, which is used to configure VLAN parameters for a physical interface.
  • Page 595 Chapter 21 | VLAN Commands Configuring VLAN Interfaces switchport This command configures the acceptable frame types for a port. Use the no form to restore the default. acceptable-frame- types Syntax switchport acceptable-frame-types {all | tagged} no switchport acceptable-frame-types all - The port accepts all frames, tagged or untagged. tagged - The port only receives tagged frames.
  • Page 596 Chapter 21 | VLAN Commands Configuring VLAN Interfaces Separate nonconsecutive VLAN identifiers with a comma and no spaces; use a hyphen to designate a range of IDs. (Range: 1-4094). add vlan-list - List of VLAN identifiers to add. When the add option is used, the interface is assigned to the specified VLANs, and membership in all previous VLANs is retained.
  • Page 597 Chapter 21 | VLAN Commands Configuring VLAN Interfaces switchport This command enables ingress filtering for an interface. Use the no form to restore the default. ingress-filtering Syntax [no] switchport ingress-filtering Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage ◆...
  • Page 598 Chapter 21 | VLAN Commands Configuring VLAN Interfaces switchport mode This command configures the VLAN membership mode for a port. Use the no form to restore the default. Syntax switchport mode {access | hybrid | trunk} no switchport mode access - Specifies an access VLAN interface. The port transmits and receives untagged frames on a single VLAN only.
  • Page 599 Chapter 21 | VLAN Commands Configuring VLAN Interfaces vlan-id - Default VLAN ID for a port. (Range: 1-4094) Default Setting VLAN 1 Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage ◆ When using Access mode, and an interface is assigned to a new VLAN, its PVID is automatically set to the identifier for that VLAN.
  • Page 600: Figure 6: Configuring Vlan Trunking

    Chapter 21 | VLAN Commands Configuring VLAN Interfaces Figure 6: Configuring VLAN Trunking Without VLAN trunking, you would have to configure VLANs 1 and 2 on all intermediate switches – C, D and E; otherwise these switches would drop any frames with unknown VLAN group tags.
  • Page 601: Table 108: Commands For Displaying Vlan Information

    Chapter 21 | VLAN Commands Displaying VLAN Information Displaying VLAN Information This section describes commands used to display VLAN information. Table 108: Commands for Displaying VLAN Information Command Function Mode show interfaces status vlan Displays status for the specified VLAN interface NE, PE show interfaces switchport Displays the administrative and operational status of an...
  • Page 602: Table 109: 802.1Q Tunneling Commands

    Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling Configuring IEEE 802.1Q Tunneling IEEE 802.1Q tunneling (QinQ tunneling) uses a single Service Provider VLAN (SPVLAN) for customers who have multiple VLANs. Customer VLAN IDs are preserved and traffic from different customers is segregated within the service provider’s network even when they use the same customer-specific VLAN IDs.
  • Page 603 Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling Configure the QinQ tunnel uplink port to dot1Q-tunnel uplink mode (switchport dot1q-tunnel mode). Configure the QinQ tunnel uplink port to join the SPVLAN as a tagged member (switchport allowed vlan). Limitations for QinQ ◆...
  • Page 604 Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling switchport This command configures an interface as a QinQ tunnel port. Use the no form to disable QinQ on the interface. dot1q-tunnel mode Syntax switchport dot1q-tunnel mode {access | uplink} no switchport dot1q-tunnel mode access –...
  • Page 605 Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage When priority bits are found in the inner tag, these are also copied to the outer tag. This allows the service provider to differentiate service based on the indicated priority and appropriate methods of queue management at intermediate nodes across the tunnel.
  • Page 606: Figure 7: Mapping Qinq Service Vlan To Customer Vlan

    Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling ◆ Note that all customer interfaces should be configured as access interfaces (that is, a user-to-network interface) and service provider interfaces as uplink interfaces (that is, a network-to-network interface). Use the switchport dot1q-tunnel mode uplink command to set an interface to access or uplink...
  • Page 607 Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling Console(config-if)#switchport dot1q-tunnel service 200 match cvid 20 Console(config-if)#switchport dot1q-tunnel service 300 match cvid 30 Configures port 1 as member of VLANs 10, 20 and 30 to avoid filtering out incoming frames tagged with VID 10, 20 or 30 on port 1 Console(config)#interface ethernet 1/1 Console(config-if)#switchport allowed vlan add 10,20,30 Verify configuration settings.
  • Page 608 Chapter 21 | VLAN Commands Configuring IEEE 802.1Q Tunneling custom 802.1Q ethertype on a trunk port, incoming frames containing that ethertype are assigned to the VLAN contained in the tag following the ethertype field, as they would be with a standard 802.1Q trunk. Frames arriving on the port containing any other ethertype are looked upon as untagged frames, and assigned to the native VLAN of that port.
  • Page 609: Table 110: L2 Protocol Tunnel Commands

    Chapter 21 | VLAN Commands Configuring L2PT Tunneling Eth 1/ 3 Normal 8100 Console#show dot1q-tunnel interface ethernet 1/5 802.1Q Tunnel Service Subscriptions Port Match C-VID S-VID -------- ----------- ----- Eth 1/ 5 Console#show dot1q-tunnel service 100 802.1Q Tunnel Service Subscriptions Port Match C-VID S-VID -------- ----------- -----...
  • Page 610 Chapter 21 | VLAN Commands Configuring L2PT Tunneling IPv6 multicast addresses (with prefix 33-33-33) ■ Addresses used by the spanning tree protocol. ■ Default Setting 01-12-CF-.00-00-02, proprietary tunnel address Command Mode Global Configuration Command Usage ◆ When L2PT is not used, protocol packets (such as STP) are flooded to 802.1Q access ports on the same edge switch, but filtered from 802.1Q tunnel ports.
  • Page 611 Chapter 21 | VLAN Commands Configuring L2PT Tunneling with the destination address 01-80-C2-00-00-01~0A (S-VLAN tag), it is ■ filtered, decapsulated, and processed locally by the switch if the protocol is supported. ◆ When a protocol packet is received on an access port (i.e., an 802.1Q trunk port connecting the edge switch to the local customer network) with the destination address 01-80-C2-00-00-00,0B~0F (C-VLAN), and ■...
  • Page 612 Chapter 21 | VLAN Commands Configuring L2PT Tunneling L2PT is disabled on this port, it is forwarded to the following ports in ■ the same S-VLAN: (a) other access ports for which L2PT is disabled, and (b) all uplink ports. recognized as a GBPT protocol packet (i.e., having the destination address ■...
  • Page 613: Table 111: Vlan Translation Commands

    Chapter 21 | VLAN Commands Configuring VLAN Translation ◆ For L2PT to function properly, QinQ must be enabled on the switch using the dot1q-tunnel system-tunnel-control command, and the interface configured to 802.1Q tunnel mode using the switchport dot1q-tunnel mode command. Example Console(config)#dot1q-tunnel system-tunnel-control Console(config)#interface ethernet 1/1...
  • Page 614: Figure 8: Configuring Vlan Translation

    Chapter 21 | VLAN Commands Configuring VLAN Translation switchport This command maps VLAN IDs between the customer and service provider. vlan-translation Syntax switchport vlan-translation original-vlan new-vlan no switchport vlan-translation original-vlan original-vlan - The original VLAN ID. (Range: 1-4094) new-vlan - The new VLAN ID. (Range: 1-4094) Default Setting Disabled Command Mode...
  • Page 615 Chapter 21 | VLAN Commands Configuring VLAN Translation Console(config)#vlan database Console(config-vlan)#vlan 10 media ethernet state active Console(config-vlan)#vlan 100 media ethernet state active Console(config-vlan)#exit Console(config)#interface ethernet 1/1,2 Console(config-if)#switchport allowed vlan add 10 tagged Console(config-if)#switchport allowed vlan add 100 tagged Console(config-if)#interface ethernet 1/1 Console(config-if)#switchport vlan-translation 10 100 Console(config-if)#end Console#show vlan-translation...
  • Page 616: Table 112: Protocol-Based Vlan Commands

    Chapter 21 | VLAN Commands Configuring Protocol-based VLANs Configuring Protocol-based VLANs The network devices required to support multiple protocols cannot be easily grouped into a common VLAN. This may require non-standard devices to pass traffic between different VLANs in order to encompass all the devices participating in a specific protocol.
  • Page 617 Chapter 21 | VLAN Commands Configuring Protocol-based VLANs protocol-vlan This command creates a protocol group, or adds specific protocols to a group. Use the no form to remove a protocol group. protocol-group (Configuring Groups) Syntax protocol-vlan protocol-group group-id [{add | remove} frame-type frame protocol-type protocol] no protocol-vlan protocol-group group-id group-id - Group identifier of this protocol group.
  • Page 618 Chapter 21 | VLAN Commands Configuring Protocol-based VLANs Default Setting No protocol groups are mapped for any interface. Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage ◆ When creating a protocol-based VLAN, only assign interfaces via this command. If you assign interfaces using any of the other VLAN commands (such as the vlan command), these interfaces will admit traffic of any protocol...
  • Page 619 Chapter 21 | VLAN Commands Configuring Protocol-based VLANs Command Mode Privileged Exec Example This shows protocol group 1 configured for IP over Ethernet: Console#show protocol-vlan protocol-group Protocol Group ID Frame Type Protocol Type ------------------ ------------- --------------- ethernet 08 00 Console# show interfaces This command shows the mapping from protocol groups to VLANs for the selected protocol-vlan...
  • Page 620: Table 113: Ip Subnet Vlan Commands

    Chapter 21 | VLAN Commands Configuring IP Subnet VLANs Configuring IP Subnet VLANs When using IEEE 802.1Q port-based VLAN classification, all untagged frames received by a port are classified as belonging to the VLAN whose VID (PVID) is associated with that port. When IP subnet-based VLAN classification is enabled, the source address of untagged ingress frames are checked against the IP subnet-to-VLAN mapping table.
  • Page 621 Chapter 21 | VLAN Commands Configuring IP Subnet VLANs ◆ When an untagged frame is received by a port, the source IP address is checked against the IP subnet-to-VLAN mapping table, and if an entry is found, the corresponding VLAN ID is assigned to the frame. If no mapping is found, the PVID of the receiving port is assigned to the frame.
  • Page 622: Table 114: Mac Based Vlan Commands

    Chapter 21 | VLAN Commands Configuring MAC Based VLANs Configuring MAC Based VLANs When using IEEE 802.1Q port-based VLAN classification, all untagged frames received by a port are classified as belonging to the VLAN whose VID (PVID) is associated with that port. When MAC-based VLAN classification is enabled, the source address of untagged ingress frames are checked against the MAC address-to-VLAN mapping table.
  • Page 623 Chapter 21 | VLAN Commands Configuring MAC Based VLANs ◆ Source MAC addresses can be mapped to only one VLAN ID. ◆ Configured MAC addresses cannot be broadcast or multicast addresses. ◆ When MAC-based, IP subnet-based, and protocol-based VLANs are supported concurrently, priority is applied in this sequence, and then port-based VLANs last.
  • Page 624: Table 115: Voice Vlan Commands

    Chapter 21 | VLAN Commands Configuring Voice VLANs Configuring Voice VLANs The switch allows you to specify a Voice VLAN for the network and set a CoS priority for the VoIP traffic. VoIP traffic can be detected on switch ports by using the source MAC address of packets, or by using LLDP (IEEE 802.1AB) to discover connected VoIP devices.
  • Page 625 Chapter 21 | VLAN Commands Configuring Voice VLANs ◆ VoIP traffic can be detected on switch ports by using the source MAC address of packets, or by using LLDP (IEEE 802.1AB) to discover connected VoIP devices. When VoIP traffic is detected on a configured port, the switch automatically assigns the port as a tagged member of the Voice VLAN.
  • Page 626 Chapter 21 | VLAN Commands Configuring Voice VLANs Note that when the switchport voice vlan command is set to auto mode, the remaining aging time displayed by the show voice vlan command will be displayed. Otherwise, if the switchport voice vlan command is disabled or set to manual mode, the remaining aging time will display “NA.
  • Page 627 Chapter 21 | VLAN Commands Configuring Voice VLANs Example The following example adds a MAC OUI to the OUI Telephony list. Console(config)#voice vlan mac-address 00-12-34-56-78-90 mask ff-ff-ff-00-00- 00 description A new phone Console(config)# switchport voice vlan This command specifies the Voice VLAN mode for ports. Use the no form to disable the Voice VLAN feature on the port.
  • Page 628 Chapter 21 | VLAN Commands Configuring Voice VLANs switchport voice vlan This command specifies a CoS priority for VoIP traffic on a port. Use the no form to restore the default priority on a port. priority Syntax switchport voice vlan priority priority-value no switchport voice vlan priority priority-value - The CoS priority value.
  • Page 629 Chapter 21 | VLAN Commands Configuring Voice VLANs Command Usage ◆ When OUI is selected, be sure to configure the MAC address ranges in the Telephony OUI list (see the voice vlan mac-address command. MAC address OUI numbers must be configured in the Telephony OUI list so that the switch recognizes the traffic as being from a VoIP device.
  • Page 630 Chapter 21 | VLAN Commands Configuring Voice VLANs show voice vlan This command displays the Voice VLAN settings on the switch and the OUI Telephony list. Syntax show voice vlan {oui | status} oui - Displays the OUI Telephony list. status - Displays the global and port Voice VLAN settings.
  • Page 631: Table 116: Priority Commands

    Class of Service Commands The commands described in this section allow you to specify which data packets have greater precedence when traffic is buffered in the switch due to congestion. This switch supports CoS with eight priority queues for each port. Data packets in a port’s high-priority queue will be transmitted before those in the lower-priority queues.
  • Page 632 Chapter 22 | Class of Service Commands Priority Commands (Layer 2) queue mode This command sets the scheduling mode used for processing each of the class of service (CoS) priority queues. The options include strict priority, Weighted Round- Robin (WRR), or a combination of strict and weighted queuing. Use the no form to restore the default value.
  • Page 633 Chapter 22 | Class of Service Commands Priority Commands (Layer 2) ◆ Service time is shared at the egress ports by defining scheduling weights for WRR, or for the queuing mode that uses a combination of strict and weighted queuing. Service time is allocated to each queue by calculating a precise number of bytes per second that will be serviced on each round.
  • Page 634 Chapter 22 | Class of Service Commands Priority Commands (Layer 2) Example The following example shows how to assign round-robin weights of 1 - 8 to the CoS priority queues 0 - 7. Console(config)#queue weight 1 2 3 4 5 6 7 8 Console(config)# Related Commands queue mode (632)
  • Page 635 Chapter 22 | Class of Service Commands Priority Commands (Layer 2) Example The following example shows how to set a default priority on port 3 to 5: Console(config)#interface ethernet 1/3 Console(config-if)#switchport priority default 5 Console(config-if)# Related Commands show interfaces switchport (439) show queue mode This command shows the current queue mode.
  • Page 636: Table 118: Priority Commands (Layer 3 And 4)

    Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) Priority Commands (Layer 3 and 4) This section describes commands used to configure Layer 3 and 4 traffic priority mapping on the switch. Table 118: Priority Commands (Layer 3 and 4) Command Function Mode...
  • Page 637: Table 119: Default Mapping Of Cos/Cfi To Internal Phb/Drop Precedence

    Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) Default Setting Table 119: Default Mapping of CoS/CFI to Internal PHB/Drop Precedence (0,0) (0,0) (1,0) (1,0) (2,0) (2,0) (3,0) (3,0) (4,0) (4,0) (5,0) (5,0) (6,0) (6,0) (7,0) (7,0) Command Mode Interface Configuration (Port, Static Aggregation)
  • Page 638: Table 120: Default Mapping Of Dscp Values To Internal Phb/Drop Values

    Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) qos map This command maps DSCP values in incoming packets to per-hop behavior and drop precedence values for priority processing. Use the no form to restore the dscp-mutation default settings.
  • Page 639: Table 121: Mapping Internal Per-Hop Behavior To Hardware Queues

    Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) ◆ Two QoS domains can have different DSCP definitions, so the DSCP-to-PHB/ Drop Precedence mutation map can be used to modify one set of DSCP values to match the definition of another domain. The mutation map should be applied at the receiving port (ingress mutation) at the boundary of a QoS administrative domain.
  • Page 640 Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) Example Console(config)#interface ethernet 1/5 Console(config-if)#qos map phb-queue 0 from 1 2 3 Console(config-if)# qos map trust-mode This command sets QoS mapping to DSCP or CoS. Use the no form to restore the default setting.
  • Page 641 Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) show qos map This command shows ingress CoS/CFI to internal DSCP map. cos-dscp Syntax show qos map cos-dscp interface interface interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number.
  • Page 642 Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) Example The ingress DSCP is composed of “d1” (most significant digit in the left column) and “d2” (least significant digit in the top row (in other words, ingress DSCP = d1 * 10 + d2);...
  • Page 643 Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) show qos map This command shows the QoS mapping mode. trust-mode Syntax show qos map trust-mode interface interface interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number.
  • Page 644 Chapter 22 | Class of Service Commands Priority Commands (Layer 3 and 4) – 644 –...
  • Page 645: Table 122: Quality Of Service Commands

    Quality of Service Commands The commands described in this section are used to configure Differentiated Services (DiffServ) classification criteria and service policies. You can classify traffic based on access lists, IP Precedence or DSCP values, or VLANs. Using access lists allows you select traffic based on Layer 2, Layer 3, or Layer 4 information contained in each packet.
  • Page 646 Chapter 23 | Quality of Service Commands To create a service policy for a specific category of ingress traffic, follow these steps: Use the class-map command to designate a class name for a specific category of traffic, and enter the Class Map configuration mode. Use the match command to select a specific type of traffic based on an access...
  • Page 647 Chapter 23 | Quality of Service Commands ◆ One or more class maps can be assigned to a policy map (page 650). The policy map is then bound by a service policy to an interface (page 661). A service policy defines packet classification, service tagging, and bandwidth policing. Once a policy map has been bound to an interface, no additional class maps may be added to the policy map, nor any changes made to the assigned class maps with the...
  • Page 648 Chapter 23 | Quality of Service Commands match This command defines the criteria used to classify traffic. Use the no form to delete the matching criteria. Syntax [no] match {access-list acl-name | cos cos | ip dscp dscp | ip precedence ip-precedence | ipv6 dscp dscp | source-port interface | vlan vlan} acl-name - Name of the access control list.
  • Page 649 Chapter 23 | Quality of Service Commands Example This example creates a class map called “rd-class#1, ” and sets it to match packets marked for DSCP service value 3. Console(config)#class-map rd-class#1 match-any Console(config-cmap)#match ip dscp 3 Console(config-cmap)# This example creates a class map call “rd-class#2, ” and sets it to match packets marked for IP Precedence service value 5.
  • Page 650 Chapter 23 | Quality of Service Commands policy-map This command creates a policy map that can be attached to multiple interfaces, and enters Policy Map configuration mode. Use the no form to delete a policy map. Syntax [no] policy-map policy-map-name policy-map-name - Name of the policy map.
  • Page 651 Chapter 23 | Quality of Service Commands Command Mode Policy Map Configuration Command Usage ◆ Use the policy-map command to specify a policy map and enter Policy Map configuration mode. Then use the class command to enter Policy Map Class configuration mode.
  • Page 652 Chapter 23 | Quality of Service Commands police flow This command defines an enforcer for classified traffic based on the metered flow rate. Use the no form to remove a policer. Syntax [no] police flow committed-rate committed-burst conform-action transmit violate-action {drop| new-dscp} committed-rate - Committed information rate (CIR) in kilobits per second.
  • Page 653 Chapter 23 | Quality of Service Commands Tc is not incremented. ■ When a packet of size B bytes arrives at time t, the following happens: If Tc(t)-B  0, the packet is green and Tc is decremented by B down to the ■...
  • Page 654 Chapter 23 | Quality of Service Commands violate-action - Action to take when rate exceeds the BE. (There are not enough tokens in bucket BE to service the packet, the packet is set red.) transmit - Transmits without taking any action. drop - Drops packet as required by exceed-action or violate-action.
  • Page 655 Chapter 23 | Quality of Service Commands When a packet of size B bytes arrives at time t, the following happens if srTCM is configured to operate in color-blind mode: If Tc(t)-B  0, the packet is green and Tc is decremented by B down to the ■...
  • Page 656 Chapter 23 | Quality of Service Commands police trtcm-color This command defines an enforcer for classified traffic based on a two rate three color meter (trTCM). Use the no form to remove a policer. Syntax [no] police {trtcm-color-blind | trtcm-color-aware} committed-rate committed-burst peak-rate peak-burst conform-action transmit exceed-action {drop | new-dscp}...
  • Page 657 Chapter 23 | Quality of Service Commands ◆ The trTCM as defined in RFC 2698 meters a traffic stream and processes its packets based on two rates – Committed Information Rate (CIR) and Peak Information Rate (PIR), and their associated burst sizes - Committed Burst Size (BC) and Peak Burst Size (BP).
  • Page 658 Chapter 23 | Quality of Service Commands Example This example creates a policy called “rd-policy, ” uses the class command to specify the previously defined “rd-class, ” uses the set phb command to classify the service that incoming packets will receive, and then uses the police trtcm-color-blind command to limit the average bandwidth to 100,000 Kbps, the committed burst rate to 4000 bytes, the peak information rate to 1,000,000 kbps, the peak burst size to 6000, to remark any packets exceeding the committed burst size, and to drop...
  • Page 659 Chapter 23 | Quality of Service Commands Example This example creates a policy called “rd-policy, ” uses the class command to specify the previously defined “rd-class, ” uses the set cos command to classify the service that incoming packets will receive, and then uses the police flow command to limit the average bandwidth to 100,000 Kbps, the burst rate to 4000 bytes, and configure...
  • Page 660 Chapter 23 | Quality of Service Commands set phb This command services IP traffic by setting a per-hop behavior value for a matching packet (as specified by the match command) for internal processing. Use the no form to remove this setting. Syntax [no] set phb phb-value phb-value - Per-hop behavior value.
  • Page 661 Chapter 23 | Quality of Service Commands service-policy This command applies a policy map defined by the policy-map command to the ingress or egress side of a particular interface. Use the no form to remove this mapping. Syntax [no] service-policy {input | output} policy-map-name input - Apply to the input traffic.
  • Page 662 Chapter 23 | Quality of Service Commands Example Console#show class-map Class Map match-any rd-class#1 Description: Match ip dscp 10 Match access-list rd-access Match ip dscp 0 Class Map match-any rd-class#2 Match ip precedence 5 Class Map match-any rd-class#3 Match vlan 1 Console# show policy-map This command displays the QoS policy maps which define classification criteria for...
  • Page 663 Chapter 23 | Quality of Service Commands show policy-map This command displays the service policy assigned to the specified interface. interface Syntax show policy-map interface interface {input | output} interface unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) Command Mode Privileged Exec...
  • Page 664 Chapter 23 | Quality of Service Commands – 664 –...
  • Page 665: Table 123: Multicast Filtering Commands

    Multicast Filtering Commands This switch uses IGMP (Internet Group Management Protocol) to check for any attached hosts that want to receive a specific multicast service. It identifies the ports containing hosts requesting a service and sends data out to those ports only. It then propagates the service request up to any neighboring multicast switch/ router to ensure that it will continue to receive the multicast service.
  • Page 666: Table 124: Igmp Snooping Commands

    Chapter 24 | Multicast Filtering Commands IGMP Snooping IGMP Snooping This section describes commands used to configure IGMP snooping on the switch. Table 124: IGMP Snooping Commands Command Function Mode ip igmp snooping Enables IGMP snooping ip igmp snooping priority Assigns a priority to all multicast traffic ip igmp snooping Enables IGMP Snooping with Proxy Reporting...
  • Page 667 Chapter 24 | Multicast Filtering Commands IGMP Snooping (Continued) Table 124: IGMP Snooping Commands Command Function Mode ip igmp snooping vlan Adds an interface as a member of a multicast group static ip igmp snooping Configures the IGMP version for snooping vlan version ip igmp snooping Discards received IGMP messages which use a version...
  • Page 668 Chapter 24 | Multicast Filtering Commands IGMP Snooping Example The following example enables IGMP snooping globally. Console(config)#ip igmp snooping Console(config)# ip igmp snooping This command assigns a priority to all multicast traffic. Use the no form to restore priority the default setting. Syntax ip igmp snooping priority priority no ip igmp snooping priority...
  • Page 669 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping This command enables IGMP Snooping with Proxy Reporting. Use the no form to restore the default setting. proxy-reporting Syntax [no] ip igmp snooping proxy-reporting ip igmp snooping vlan vlan-id proxy-reporting {enable | disable} no ip igmp snooping vlan vlan-id proxy-reporting vlan-id - VLAN ID (Range: 1-4094) enable - Enable on the specified VLAN.
  • Page 670 Chapter 24 | Multicast Filtering Commands IGMP Snooping Command Usage ◆ IGMP snooping querier is not supported for IGMPv3 snooping (see ip igmp snooping version). ◆ If enabled, the switch will serve as querier if elected. The querier is responsible for asking hosts if they want to receive multicast traffic.
  • Page 671 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping This command configures the querier timeout. Use the no form to restore the default. router-port- expire-time Syntax ip igmp snooping router-port-expire-time seconds no ip igmp snooping router-port-expire-time seconds - The time the switch waits after the previous querier stops before it considers it to have expired.
  • Page 672 Chapter 24 | Multicast Filtering Commands IGMP Snooping ◆ If a topology change notification (TCN) is received, and all the uplink ports are subsequently deleted, a timeout mechanism is used to delete all of the currently learned multicast channels. ◆ When a new uplink port starts up, the switch sends unsolicited reports for all current learned channels out through the new uplink port.
  • Page 673 Chapter 24 | Multicast Filtering Commands IGMP Snooping When an upstream multicast router receives this solicitation, it will also immediately issues an IGMP general query. ◆ The ip igmp snooping tcn query-solicit command can be used to send a query solicitation whenever it notices a topology change, even if the switch is not the root bridge in the spanning tree.
  • Page 674 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping This command specifies how often the upstream interface should transmit unsolicited IGMP reports when proxy reporting is enabled. Use the no form to unsolicited-report- restore the default value. interval Syntax ip igmp snooping unsolicited-report-interval seconds no ip igmp snooping unsolicited-report-interval...
  • Page 675 Chapter 24 | Multicast Filtering Commands IGMP Snooping Command Mode Global Configuration Command Usage ◆ This command configures the IGMP report/query version used by IGMP snooping. Versions 1 - 3 are all supported, and versions 2 and 3 are backward compatible, so the switch can operate with other devices, regardless of the snooping version employed.
  • Page 676 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping vlan This command suppresses general queries except for ports attached to downstream multicast hosts. Use the no form to flood general queries to all ports general-query- except for the multicast router port. suppression Syntax [no] ip igmp snooping vlan vlan-id general-query-suppression...
  • Page 677 Chapter 24 | Multicast Filtering Commands IGMP Snooping Command Usage ◆ If immediate-leave is not used, a multicast router (or querier) will send a group- specific query message when an IGMPv2/v3 group leave message is received. The router/querier stops forwarding traffic for that group only if no host replies to the query within the timeout period.
  • Page 678 Chapter 24 | Multicast Filtering Commands IGMP Snooping Command Usage This command will take effect only if IGMP snooping proxy reporting or IGMP querier is enabled (page 669). Example Console(config)#ip igmp snooping vlan 1 last-memb-query-count 7 Console(config)# ip igmp snooping vlan This command configures the last-member-query interval.
  • Page 679 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping vlan This command enables sending of multicast router solicitation messages. Use the no form to disable these messages. Syntax [no] ip igmp snooping vlan vlan-id mrd vlan-id - VLAN ID (Range: 1-4094) Default Setting Disabled Command Mode...
  • Page 680 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping vlan This command configures a static source address for locally generated query and report messages used by IGMP proxy reporting. Use the no form to restore the proxy-address default source address. Syntax [no] ip igmp snooping vlan vlan-id proxy-address source-address vlan-id - VLAN ID (Range: 1-4094)
  • Page 681 Chapter 24 | Multicast Filtering Commands IGMP Snooping Example The following example sets the source address for proxied IGMP query messages to 10.0.1.8. Console(config)#ip igmp snooping vlan 1 proxy-address 10.0.1.8 Console(config)# ip igmp snooping vlan This command configures the interval between sending IGMP general queries. Use the no form to restore the default.
  • Page 682 Chapter 24 | Multicast Filtering Commands IGMP Snooping ip igmp snooping vlan This command configures the maximum time the system waits for a response to general queries. Use the no form to restore the default. query-resp-intvl Syntax ip igmp snooping vlan vlan-id query-resp-intvl interval no ip igmp snooping vlan vlan-id query-resp-intvl vlan-id - VLAN ID (Range: 1-4094) interval - The maximum time the system waits for a response to general...
  • Page 683 Chapter 24 | Multicast Filtering Commands IGMP Snooping Command Mode Global Configuration Command Usage ◆ Static multicast entries are never aged out. ◆ When a multicast entry is assigned to an interface in a specific VLAN, the corresponding traffic can only be forwarded to ports within that VLAN. Example The following shows how to statically configure a multicast group on a port.
  • Page 684 Chapter 24 | Multicast Filtering Commands IGMP Snooping Command Mode Privileged Exec Example Console#clear ip igmp snooping statistics Console# show ip igmp This command shows the IGMP snooping, proxy, and query configuration settings. snooping Syntax show ip igmp snooping [vlan vlan-id] vlan-id - VLAN ID (1-4094) Command Mode Privileged Exec...
  • Page 685 Chapter 24 | Multicast Filtering Commands IGMP Snooping Multicast Router Discovery : Disabled VLAN Static Group Port ---- --------------- -------- 224.1.1.1 Eth 1/ 1 show ip igmp This command shows known multicast group, source, and host port mappings for the specified VLAN interface, or for all interfaces if none is specified. snooping group Syntax show ip igmp snooping group [host-ip-addr ip-address interface | igmpsnp |...
  • Page 686 Chapter 24 | Multicast Filtering Commands IGMP Snooping VLAN Group Port Up time Expire Count ---- --------------- ----------- ----------- ------ -------- 1 224.1.1.1 00:00:00:37 2(P) Eth 1/ 1(R) Eth 1/ 2(M) 0(H) Console# show ip igmp This command displays information on statically configured and dynamically snooping mrouter learned multicast router ports.
  • Page 687: Table 125: Show Ip Igmp Snooping Statistics Input - Display Description

    Chapter 24 | Multicast Filtering Commands IGMP Snooping port-channel channel-id (Range: 1-16) vlan vlan-id - VLAN ID (Range: 1-4094) query - Displays IGMP snooping-related statistics. Default Setting None Command Mode Privileged Exec Example The following shows IGMP protocol statistics input: Console#show ip igmp snooping statistics input interface ethernet 1/1 Input Statistics: Interface Report...
  • Page 688: Table 126: Show Ip Igmp Snooping Statistics Output - Display Description

    Chapter 24 | Multicast Filtering Commands IGMP Snooping Table 126: show ip igmp snooping statistics output - display description Field Description Interface Shows interface. Report The number of IGMP membership reports sent from this interface. Leave The number of leave messages sent from this interface. G Query The number of general query messages sent from this interface.
  • Page 689: Table 128: Static Multicast Interface Commands

    Chapter 24 | Multicast Filtering Commands Static Multicast Routing Table 127: show ip igmp snooping statistics vlan query - display description Field Description Warn Rate Limit The rate at which received query messages of the wrong version type cause the Vx warning count to increment. Note that “0 sec” means that the Vx warning count is incremented for each wrong message version received.
  • Page 690: Table 129: Igmp Filtering And Throttling Commands

    Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Command Usage ◆ Depending on your network connections, IGMP snooping may not always be able to locate the IGMP querier. Therefore, if the IGMP querier is a known multicast router or switch connected over the network to an interface (port or trunk) on this switch, that interface can be manually configured to join all the current multicast groups.
  • Page 691 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling (Continued) Table 129: IGMP Filtering and Throttling Commands Command Function Mode show ip igmp query-drop Shows if the interface is configured to drop IGMP query packets show ip igmp throttle Displays the IGMP throttling setting for interfaces interface show ip multicast-data-...
  • Page 692 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling ip igmp profile This command creates an IGMP filter profile number and enters IGMP profile configuration mode. Use the no form to delete a profile number. Syntax [no] ip igmp profile profile-number profile-number - An IGMP filter profile number.
  • Page 693 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Example Console(config)#ip igmp profile 19 Console(config-igmp-profile)#permit Console(config-igmp-profile)# range This command specifies multicast group addresses for a profile. Use the no form to delete addresses from a profile. Syntax [no] range low-ip-address [high-ip-address] low-ip-address - A valid IP address of a multicast group or start of a group range.
  • Page 694: Table 130: Igmp Authentication Radius Attribute Value Pairs

    Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Command Usage ◆ If IGMP authentication is enabled on an interface, and a join report is received on the interface, the switch will send an access request to the RADIUS server to perform authentication.
  • Page 695 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Table 130: IGMP Authentication RADIUS Attribute Value Pairs Attribute Name AVP Type Entry NAS_PORT User Port Number FRAMED_IP_ADDRESS Multicast Group ID Example This example shows how to enable IGMP Authentication on all of the switch’s Ethernet interfaces.
  • Page 696 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling ip igmp max-groups This command sets the IGMP throttling number for an interface on the switch. Use the no form to restore the default setting. Syntax ip igmp max-groups number no ip igmp max-groups number - The maximum number of multicast groups an interface can join at the same time.
  • Page 697 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage When the maximum number of groups is reached on a port, the switch can take one of two actions; either “deny” or “replace. ” If the action is set to deny, any new IGMP join reports will be dropped.
  • Page 698 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage This command can be used to stop multicast services from being forwarded to users attached to the downstream port (i.e., the interfaces specified by this command).
  • Page 699 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling show ip igmp filter This command displays the global and interface settings for IGMP filtering. Syntax show ip igmp filter [interface interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number.
  • Page 700 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Console#show ip igmp profile 19 IGMP Profile 19 Deny Range 239.1.1.1 239.1.1.1 Range 239.2.3.1 239.2.3.100 Console# show ip igmp This command shows if the specified interface is configured to drop IGMP query query-drop packets.
  • Page 701 Chapter 24 | Multicast Filtering Commands IGMP Filtering and Throttling Default Setting None Command Mode Privileged Exec Command Usage Using this command without specifying an interface displays information for all interfaces. Example Console#show ip igmp throttle interface ethernet 1/1 1/1 Information Status : FALSE Action : Deny Max Multicast Groups : 1024...
  • Page 702: Table 131: Mld Snooping Commands

    Chapter 24 | Multicast Filtering Commands MLD Snooping MLD Snooping Multicast Listener Discovery (MLD) snooping operates on IPv6 traffic and performs a similar function to IGMP snooping for IPv4. That is, MLD snooping dynamically configures switch ports to limit IPv6 multicast traffic so that it is forwarded only to ports with users that want to receive it.
  • Page 703 Chapter 24 | Multicast Filtering Commands MLD Snooping (Continued) Table 131: MLD Snooping Commands Command Function Mode clear ipv6 mld snooping Clears MLD snooping statistics statistics show ipv6 mld snooping Displays MLD Snooping configuration show ipv6 mld snooping Displays the learned groups group show ipv6 mld snooping Displays the learned groups and corresponding source list PE...
  • Page 704 Chapter 24 | Multicast Filtering Commands MLD Snooping Command Usage ◆ When proxy reporting is enabled with this command, reports received from downstream hosts are summarized and used to build internal membership states. Proxy-reporting devices may use the all-zeros IP source address when forwarding any summarized reports upstream.
  • Page 705 Chapter 24 | Multicast Filtering Commands MLD Snooping ipv6 mld snooping This command configures the interval between sending MLD general queries. Use the no form to restore the default. query-interval Syntax ipv6 mld snooping query-interval interval no ipv6 mld snooping query-interval interval - The interval between sending MLD general queries.
  • Page 706 Chapter 24 | Multicast Filtering Commands MLD Snooping Example Console(config)#ipv6 mld snooping query-max-response-time seconds 15 Console(config)# ipv6 mld snooping This command configures the MLD Snooping robustness variable. Use the no form robustness to restore the default value. Syntax ipv6 mld snooping robustness value no ipv6 mld snooping robustness value - The number of the robustness variable.
  • Page 707 Chapter 24 | Multicast Filtering Commands MLD Snooping Command Usage The router port expire time is the time the switch waits after the previous querier stops before it considers the router port (i.e., the interface that had been receiving query packets) to have expired. Example Console(config)#ipv6 mld snooping router-port-expire-time 300 Console(config)#...
  • Page 708 Chapter 24 | Multicast Filtering Commands MLD Snooping ipv6 mld snooping This command specifies how often the upstream interface should transmit unsolicited MLD snooping reports when proxy reporting is enabled. Use the no unsolicited-report- form to restore the default value. interval Syntax ipv6 mld snooping unsolicited-report-interval seconds...
  • Page 709 Chapter 24 | Multicast Filtering Commands MLD Snooping Example Console(config)#ipv6 mld snooping version 1 Console(config)# ipv6 mld snooping This command immediately deletes a member port of an IPv6 multicast service vlan immediate-leave when a leave packet is received at that port and immediate-leave is enabled for the parent VLAN.
  • Page 710 Chapter 24 | Multicast Filtering Commands MLD Snooping ipv6 mld snooping This command statically configures an IPv6 multicast router port. Use the no form to remove the configuration. vlan mrouter Syntax [no] ipv6 mld snooping vlan vlan-id mrouter interface vlan-id - VLAN ID (Range: 1-4094) interface ethernet unit/port unit - Unit identifier.
  • Page 711 Chapter 24 | Multicast Filtering Commands MLD Snooping ipv6 mld snooping This command adds a port to an IPv6 multicast group. Use the no form to remove the port. vlan static Syntax [no] ipv6 mld snooping vlan vlan-id static ipv6-address interface vlan - VLAN ID (Range: 1-4094) ipv6-address - An IPv6 address of a multicast group.
  • Page 712 Chapter 24 | Multicast Filtering Commands MLD Snooping clear ipv6 mld This command clears MLD snooping statistics. snooping statistics Syntax clear ipv6 mld snooping statistics [interface interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) vlan vlan-id - VLAN identifier (Range: 1-4094) Command Mode...
  • Page 713 Chapter 24 | Multicast Filtering Commands MLD Snooping Unknown Flood Behavior : To Router Port MLD Snooping Version : Version 2 VLAN Group IPv6 Address Port ---- --------------------------------------- --------- ff05:0:1:2:3:4:5:6 Eth 1/1 Console#show ipv6 mld snooping vlan VLAN 1 Immediate Leave : Disabled Unknown Flood Behavior : To Router Port Console#...
  • Page 714 Chapter 24 | Multicast Filtering Commands MLD Snooping Example The following shows MLD Snooping group mapping information: Console#show ipv6 mld snooping group source-list VLAN ID Mutlicast IPv6 Address : FF02::01:01:01:01 Member Port : Eth 1/1 MLD Snooping : Multicast Data Filter Mode : Include (if exclude filter mode)
  • Page 715: Table 132: Show Ipv6 Mld Snooping Statistics Input - Display Description

    Chapter 24 | Multicast Filtering Commands MLD Snooping show ipv6 mld This command shows MLD snooping protocol statistics for the specified interface. snooping statistics Syntax show ipv6 mld snooping statistics {input [interface interface] | output [interface interface] | query [vlan vlan-id] | summary interface interface} interface ethernet unit/port...
  • Page 716: Table 133: Show Ipv6 Mld Snooping Statistics Output - Display Description

    Chapter 24 | Multicast Filtering Commands MLD Snooping Table 132: show ipv6 MLD snooping statistics input - display description Field Description Join Succ The number of times a multicast group was successfully joined. Group The number of MLD groups active on this interface. The following shows MLD snooping output-related message statistics: Console#show ipv6 mld snooping statistics output interface ethernet 1/1 Output Statistics:...
  • Page 717: Table 134: Show Ipv6 Mld Snooping Statistics Query - Display Description

    Chapter 24 | Multicast Filtering Commands MLD Snooping Table 134: show ipv6 MLD snooping statistics query - display description Field Description Other Querier Address IP address of remote querier on this interface. Other Querier Expire Time after which remote querier is assumed to have expired. Other Querier Uptime Time remote querier has been up.
  • Page 718: Table 135: Show Ipv6 Mld Snooping Statistics Summary - Display Description

    Chapter 24 | Multicast Filtering Commands MLD Snooping Table 135: show ipv6 MLD snooping statistics summary - display description Field Description Number of Groups Number of active MLD groups active on the specified interface. Physical Interface (Port/Trunk) Querier: Transmit General The number of general queries sent from this interface.
  • Page 719: Table 136: Mld Filtering And Throttling Commands

    Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling MLD Filtering and Throttling In certain switch applications, the administrator may want to control the multicast services that are available to end users. For example, an IP/TV service based on a specific subscription plan.
  • Page 720 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling can contain one or more, or a range of multicast addresses; but only one profile can be assigned to a port. When enabled, MLD join reports received on the port are checked against the filter profile.
  • Page 721 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling permit, deny This command sets the access mode for an MLD filter profile. Use the no form to delete a profile number. Syntax {permit | deny} Default Setting deny Command Mode MLD Profile Configuration Command Usage ◆...
  • Page 722 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling Example Console(config-mld-profile)#range ff01::0101 ff01::0202 Console(config-mld-profile)# ipv6 mld filter This command assigns an MLD filtering profile to an interface on the switch. Use (Interface Configuration) the no form to remove a profile from an interface. Syntax [no] ipv6 mld filter profile-number profile-number - An MLD filter profile number.
  • Page 723 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage ◆ MLD throttling sets a maximum number of multicast groups that a port can join at the same time. When the maximum number of groups is reached on a port, the switch can take one of two actions;...
  • Page 724 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling Example Console(config)#interface ethernet 1/1 Console(config-if)#ipv6 mld max-groups action replace Console(config-if)# ipv6 mld query-drop This command drops any received MLD query packets. Use the no form to restore the default setting. Syntax [no] ipv6 mld query-drop Default Setting...
  • Page 725 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling show ipv6 mld filter This command displays the global and interface settings for MLD filtering. Syntax show ipv6 mld filter [interface interface] interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number.
  • Page 726 Chapter 24 | Multicast Filtering Commands MLD Filtering and Throttling Console#show ipv6 mld profile 5 Profile 19 Deny Range ff01::101 ff01::faa Console# show ipv6 mld This command shows if the specified interface is configured to drop MLD query query-drop packets. Syntax show ipv6 mld query-drop interface [interface] interface...
  • Page 727: Table 137: Multicast Vlan Registration For Ipv4 Commands

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 Default Setting None Command Mode Privileged Exec Command Usage Using this command without specifying an interface displays information for all interfaces. Example Console#show ipv6 mld throttle interface ethernet 1/3 1/3 Information Status : TRUE Action...
  • Page 728 Chapter 24 | Multicast Filtering Commands MVR for IPv4 (Continued) Table 137: Multicast VLAN Registration for IPv4 Commands Command Function Mode mvr robustness-value Configures the expected packet loss, and thereby the number of times to generate report and group-specific queries mvr source-port-mode Configures the switch to only forward multicast streams dynamic...
  • Page 729 Chapter 24 | Multicast Filtering Commands MVR for IPv4 Command Usage Only IGMP version 2 or 3 hosts can issue multicast join or leave messages. If MVR must be configured for an IGMP version 1 host, the multicast groups must be statically assigned using the mvr vlan group command.
  • Page 730 Chapter 24 | Multicast Filtering Commands MVR for IPv4 Default Setting Disabled Command Mode Global Configuration Command Usage Only IGMP version 2 or 3 hosts can issue multicast join or leave messages. If MVR must be configured for an IGMP version 1 host, the multicast groups must be statically assigned using the mvr vlan group command.
  • Page 731 Chapter 24 | Multicast Filtering Commands MVR for IPv4 mvr profile This command maps a range of MVR group addresses to a profile. Use the no form of this command to remove the profile. Syntax mvr profile profile-name start-ip-address end-ip-address no mvr profile profile-name profile-name - The name of a profile containing one or more MVR group addresses.
  • Page 732 Chapter 24 | Multicast Filtering Commands MVR for IPv4 This command configures the interval at which the receiver port sends out general queries. Use the no form to restore the default setting. proxy-query-interval Syntax mvr proxy-query-interval interval no mvr proxy-query-interval interval - The interval at which the receiver port sends out general queries.
  • Page 733 Chapter 24 | Multicast Filtering Commands MVR for IPv4 ◆ Receiver ports are known as downstream or router interfaces. These interfaces perform the standard MVR router functions by maintaining a database of all MVR subscriptions on the downstream interface. Receiver ports must therefore be configured on all downstream interfaces which require MVR proxy service.
  • Page 734 Chapter 24 | Multicast Filtering Commands MVR for IPv4 Command Mode Global Configuration Command Usage ◆ This command is used to set the number of times report messages are sent upstream when changes are learned about downstream groups, and the number of times group-specific queries are sent to downstream receiver ports.
  • Page 735 Chapter 24 | Multicast Filtering Commands MVR for IPv4 Example Console(config)#mvr source-port-mode dynamic Console(config)# This command configures the source IP address assigned to all MVR control packets upstream-source-ip sent upstream on all domains or on a specified domain. Use the no form to restore the default setting.
  • Page 736 Chapter 24 | Multicast Filtering Commands MVR for IPv4 Command Usage ◆ This command specifies the VLAN through which MVR multicast data is received. This is the VLAN to which all source ports must be assigned. ◆ The VLAN specified by this command must be an existing VLAN configured with the vlan command.
  • Page 737 Chapter 24 | Multicast Filtering Commands MVR for IPv4 would without this option having been used). Instead of immediately deleting that group, it will look up the record, and only delete the group if there are no other subscribers for it on the member port. Only when all hosts on that port leave the group will the member port be deleted.
  • Page 738 Chapter 24 | Multicast Filtering Commands MVR for IPv4 ◆ One or more interfaces may be configured as MVR source ports. A source port is able to both receive and send data for multicast groups which it has joined through the MVR protocol or which have been assigned through the mvr vlan group command.
  • Page 739 Chapter 24 | Multicast Filtering Commands MVR for IPv4 ◆ The IP address range from 224.0.0.0 to 239.255.255.255 is used for multicast streams. MVR group addresses cannot fall within the reserved IP multicast address range of 224.0.0.x. ◆ Only IGMP version 2 or 3 hosts can issue multicast join or leave messages. If MVR must be configured for an IGMP version 1 host, the multicast groups must be statically assigned using the mvr vlan group command.
  • Page 740 Chapter 24 | Multicast Filtering Commands MVR for IPv4 port-channel channel-id (Range: 1-16) vlan vlan-id - VLAN identifier (Range: 1-4094) Command Mode Privileged Exec Example Console#clear mvr statistics Console# show mvr This command shows information about MVR domain settings, including MVR operational status, the multicast VLAN, the current number of group addresses, and the upstream source IP address.
  • Page 741: Table 138: Show Mvr - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 Table 138: show mvr - display description Field Description MVR 802.1p Forwarding Priority assigned to multicast traffic forwarded into the MVR VLAN Priority MVR Proxy Switching Shows if MVR proxy switching is enabled MVR Robustness Value Shows the number of reports or query messages sent when proxy switching is enabled...
  • Page 742: Table 139: Show Mvr Interface - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 show mvr interface This command shows MVR configuration settings for interfaces attached to the MVR VLAN. Syntax show mvr [domain domain-id] interface domain-id - An independent multicast domain. (Range: 1-5) Default Setting Displays configuration settings for all attached interfaces.
  • Page 743 Chapter 24 | Multicast Filtering Commands MVR for IPv4 show mvr members This command shows information about the current number of entries in the forwarding database, detailed information about a specific multicast address, the IP address of the hosts subscribing to all active multicast groups, or the multicast groups associated with each port.
  • Page 744: Table 140: Show Mvr Members - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 Group Address VLAN Port Up time Expire Count --------------- ---- ----------- ----------- ------ -------- 234.5.6.7 00:00:09:17 2(P) 1 Eth 1/ 1(S) 2 Eth 1/ 2(R) Console# The following example shows detailed information about a specific multicast address: Console#show mvr domain 1 members 234.5.6.7 MVR Domain : 1...
  • Page 745 Chapter 24 | Multicast Filtering Commands MVR for IPv4 show mvr profile This command shows all configured MVR profiles. Command Mode Privileged Exec Example The following shows all configured MVR profiles: Console#show mvr profile MVR Profile Name Start IP Addr. End IP Addr.
  • Page 746: Table 141: Show Mvr Statistics Input - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 Example The following shows MVR protocol-related statistics received: Console#show mvr domain 1 statistics input MVR Domain : 1 , MVR VLAN: 2 Input Statistics: Interface Report Leave G Query G(-S)-S Query Drop Join Succ Group --------- -------- -------- -------- ------------- -------- --------- ------ Eth 1/ 1...
  • Page 747: Table 143: Show Mvr Statistics Query - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 (Continued) Table 142: show mvr statistics output - display description Field Description Leave The number of leave messages sent from this interface. G Query The number of general query messages sent from this interface. G(-S)-S Query The number of group specific or group-and-source specific query messages sent from this interface.
  • Page 748: Table 144: Show Mvr Statistics Summary Interface - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv4 (Continued) Table 143: show mvr statistics query - display description Field Description Warn Rate Limit Count down from 15 seconds after receiving a Query different from the configured version. V# Warning Count Number of queries received on MVR that were configured for IGMP version 1, 2 or 3.
  • Page 749: Table 145: Multicast Vlan Registration For Ipv6 Commands

    Chapter 24 | Multicast Filtering Commands MVR for IPv6 Table 144: show mvr statistics summary interface - display description Field Description Join Success Number of join reports processed successfully. Filter Drop Number of report/leave messages dropped by IGMP filter. Source Port Drop Number of report/leave messages dropped by MVR source port.
  • Page 750 Chapter 24 | Multicast Filtering Commands MVR for IPv6 (Continued) Table 145: Multicast VLAN Registration for IPv6 Commands Command Function Mode clear mvr6 groups dynamic Clears multicast group information dynamically learned through MVR6 clear mvr6 statistics Clears the MVR6 statistics globally or on a per-interface basis PE show mvr6 Shows information about MVR6 domain settings, including MVR6 operational status, the multicast VLAN, the current...
  • Page 751 Chapter 24 | Multicast Filtering Commands MVR for IPv6 mvr6 domain This command enables Multicast VLAN Registration for IPv6 (MVR6) for a specific domain. Use the no form of this command to disable MVR6 for a domain. Syntax [no] mvr6 domain domain-id domain-id - An independent multicast domain.
  • Page 752 Chapter 24 | Multicast Filtering Commands MVR for IPv6 Example Console(config)#mvr6 priority 6 Console(config)# ELATED OMMANDS show mvr6 (761) mvr6 profile This command maps a range of MVR6 group addresses to a profile. Use the no form of this command to remove the profile. Syntax mvr6 profile profile-name start-ip-address end-ip-address profile-name - The name of a profile containing one or more MVR6 group...
  • Page 753 Chapter 24 | Multicast Filtering Commands MVR for IPv6 Example The following example maps a range of MVR6 group addresses to a profile: Console(config)#mvr6 profile rd ff01:0:0:0:0:0:0:fe ff01:0:0:0:0:0:0:ff Console(config)# mvr6 This command configures the interval at which the receiver port sends out general proxy-query-interval queries.
  • Page 754 Chapter 24 | Multicast Filtering Commands MVR for IPv6 Command Mode Global Configuration Command Usage ◆ When MVR6 proxy-switching is enabled, an MVR6 source port serves as the upstream or host interface, and the MVR6 receiver port serves as the querier. The source port performs only the host portion of MVR6 by sending summarized membership reports, and automatically disables MVR6 router functions.
  • Page 755 Chapter 24 | Multicast Filtering Commands MVR for IPv6 mvr6 This command configures the expected packet loss, and thereby the number of times to generate report and group-specific queries. Use the no form to restore the robustness-value default setting. Syntax mvr6 robustness-value value no mvr6 robustness-value value - The robustness used for all interfaces.
  • Page 756 Chapter 24 | Multicast Filtering Commands MVR for IPv6 source ports on the switch and to all receiver ports that have elected to receive data on that multicast address. ◆ When the mvr6 source-port-mode dynamic command is used, the switch only forwards multicast streams which the source port has dynamically joined.
  • Page 757 Chapter 24 | Multicast Filtering Commands MVR for IPv6 mvr6 vlan This command specifies the VLAN through which MVR6 multicast data is received. Use the no form of this command to restore the default MVR6 VLAN. Syntax mvr6 domain domain-id vlan vlan-id no mvr6 domain domain-id vlan domain-id - An independent multicast domain.
  • Page 758 Chapter 24 | Multicast Filtering Commands MVR for IPv6 Command Usage ◆ Immediate leave applies only to receiver ports. When enabled, the receiver port is immediately removed from the multicast group identified in the leave message. When immediate leave is disabled, the switch follows the standard rules by sending a group-specific query to the receiver port and waiting for a response to determine if there are any remaining subscribers for that multicast group before removing the port from the group list.
  • Page 759 Chapter 24 | Multicast Filtering Commands MVR for IPv6 Command Usage ◆ A port configured as an MVR6 receiver or source port can join or leave multicast groups configured under MVR6. A port which is not configured as an MVR6 receiver or source port can use MLD snooping to join or leave multicast groups using the standard rules for multicast filtering (see “MLD Snooping”...
  • Page 760 Chapter 24 | Multicast Filtering Commands MVR for IPv6 ip-address - Statically configures an interface to receive multicast traffic from the IPv6 address specified for an MVR6 multicast group. This parameter must be a full IPv6 address including the network prefix and host address bits.
  • Page 761 Chapter 24 | Multicast Filtering Commands MVR for IPv6 Example Console#clear mvr6 groups dynamic Console# clear mvr6 statistics Use this command to clear MVR6 statistics. Syntax clear mvr6 statistics [interface interface] ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) vlan vlan-id (Range: 1-4094) Command Mode...
  • Page 762: Table 146: Show Mvr6 - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv6 Example The following shows the MVR6 settings: Console#show mvr6 MVR6 802.1p Forwarding Priority: Disabled MVR6 Proxy Switching : Enabled MVR6 Robustness Value MVR6 Proxy Query Interval : 125(sec.) MVR6 Source Port Mode : Always Forward Domain MVR6 Config Status...
  • Page 763 Chapter 24 | Multicast Filtering Commands MVR for IPv6 show mvr6 This command shows the profiles bound the specified domain. associated-profile Syntax show mvr6 [domain domain-id] associated-profile domain-id - An independent multicast domain. (Range: 1-5) Default Setting Displays profiles bound to all MVR6 domains. Command Mode Privileged Exec Example...
  • Page 764: Table 147: Show Mvr6 Interface - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv6 Table 147: show mvr6 interface - display description Field Description Port Shows interfaces attached to the MVR6. Type Shows the MVR6 port type. Status Shows the MVR6 status and interface status. MVR6 status for source ports is “ACTIVE”...
  • Page 765: Table 148: Show Mvr6 Members - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv6 The following example shows detailed information about a specific multicast address: Console#show mvr6 domain 1 members ff00::1 MVR6 Domain : 1 MVR6 Forwarding Entry Count :1 Flag: S - Source port, R - Receiver port. H - Host counts (number of hosts join the group on this port).
  • Page 766: Table 149: Show Mvr6 Statistics Input - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv6 show mvr6 statistics This command shows MVR protocol-related statistics for the specified interface. Syntax show mvr6 statistics {input | output} [interface interface] show mvr6 domain domain-id statistics {input [interface interface] | output [interface interface] | query} domain-id - An independent multicast domain.
  • Page 767: Table 150: Show Mvr6 Statistics Output - Display Description

    Chapter 24 | Multicast Filtering Commands MVR for IPv6 (Continued) Table 149: show mvr6 statistics input - display description Field Description Drop The number of times a report, leave or query was dropped. Packets may be dropped due to invalid format, rate limiting, packet content not allowed, or MVR group report received Join Succ The number of times a multicast group was successfully joined.
  • Page 768: Table 151: Show Mvr6 Statistics Query - Display Description

    Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) Table 151: show mvr6 statistics query - display description Field Description Other Querier Address The IPv6 address of the querier on this interface. Other Querier Uptime Other querier’s time up. Other Querier Expire Time The time after which this querier is assumed to have expired.
  • Page 769 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) ip igmp This command enables IGMP on a VLAN interface. Use the no form of this command to disable IGMP on the specified interface. Syntax [no] ip igmp Default Setting Disabled Command Mode Interface Configuration (VLAN) Command Usage...
  • Page 770 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) ip igmp last-member- This command configures the frequency at which to send IGMP group-specific or IGMPv3 group-source-specific query messages in response to receiving a group- query-interval specific or group-source-specific leave message. Use the no form to restore the default setting.
  • Page 771 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) Command Usage ◆ IGMPv1 does not support a configurable maximum response time for query messages. It is fixed at 10 seconds for IGMPv1. ◆ By varying the Maximum Response Interval, the burstiness of IGMP messages passed on the subnet can be tuned;...
  • Page 772 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) Example The following shows how to configure the query interval to 100 seconds. Console(config-if)#ip igmp query-interval 100 Console(config-if)# Related Commands ip igmp max-resp-interval (770) ip igmp robustval This command specifies the robustness (expected packet loss) for this interface. Use the no form of this command to restore the default value.
  • Page 773 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) ip igmp static-group This command configures the router to be a static member of a multicast group on the specified VLAN interface. Use the no form to remove the static mapping. Syntax ip igmp static-group group-address [source source-address] no ip igmp static-group...
  • Page 774 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) ip igmp version This command configures the IGMP version used on an interface. Use the no form of this command to restore the default. Syntax ip igmp version {1 | 2 | 3} no ip igmp version 1 - IGMP Version 1 2 - IGMP Version 2...
  • Page 775 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) Command Mode Privileged Exec Command Usage Enter the address for a multicast group to delete all entries for the specified group. Enter the interface option to delete all multicast groups for the specified interface. Enter no options to clear all multicast groups from the cache.
  • Page 776: Table 153: Show Ip Igmp Groups - Display Description

    Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) Console#show ip igmp groups interface vlan 1 Group Address Interface VLAN Last Reporter Uptime Expire V1 Timer --------------- --------------- --------------- -------- -------- -------- 224.0.17.17 192.168.1.10 0:0:1 0:4:19 0:0:0 Console# Table 153: show ip igmp groups - display description Field Description IP multicast group address with subscribers directly attached or...
  • Page 777 Chapter 24 | Multicast Filtering Commands IGMP (Layer 3) (Continued) Table 154: show ip igmp groups detail - display description Field Description The time elapsed since this entry was created. Uptime In INCLUDE mode, reception of packets sent to the specified multicast Group mode address is requested only from those IP source addresses listed in the source-list parameter.
  • Page 778: Table 155: Igmp Proxy Commands

    Chapter 24 | Multicast Filtering Commands IGMP Proxy Routing Query Interval : 125 sec Query Max Response Time : 100 (resolution in 0.1 sec) Last Member Query Interval : 10 (resolution in 0.1 sec) Querier : 0.0.0.0 Joined Groups : Static Groups : switch# IGMP Proxy Routing...
  • Page 779 Chapter 24 | Multicast Filtering Commands IGMP Proxy Routing Command Mode Interface Configuration (VLAN) Command Usage ◆ When IGMP proxy is enabled on an interface, that interface is known as the upstream or host interface. This interface performs only the host portion of IGMP by sending IGMP membership reports, and automatically disables IGMP router functions.
  • Page 780: Table 156: Mld Commands (Layer 3)

    Chapter 24 | Multicast Filtering Commands MLD (Layer 3) ip igmp proxy This command specifies how often the upstream interface should transmit unsolicited IGMP reports. Use the no form to restore the default value. unsolicited-report- interval Syntax ip igmp proxy unsolicited-report-interval seconds no ip igmp proxy unsolicited-report-interval seconds - The interval at which to issue unsolicited reports.
  • Page 781 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) ipv6 mld This command enables MLD on a VLAN interface. Use the no form of this command to disable MLD on the selected interface. Syntax [no] ipv6 mld Default Setting Disabled Command Mode Interface Configuration (VLAN) Command Usage...
  • Page 782 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) Default Setting 10 (1 second) Command Mode Interface Configuration (VLAN) Command Usage When the switch receives an MLD or MLDv2 leave message from a host that wants to leave a multicast group, source or channel, it sends a number of group-specific or group-source-specific query messages at intervals defined by this command.
  • Page 783 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) Example The following shows how to configure the maximum response time to 20 seconds. Console(config-if)#ipv6 mld max-resp-interval 200 Console(config-if)# Related Commands ipv6 mld query-interval (783) ipv6 mld This command configures the frequency at which host query messages are sent. query-interval Use the no form to restore the default.
  • Page 784 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) ipv6 mld robustval This command specifies the robustness (expected packet loss) for this interface. Use the no form of this command to restore the default value. Syntax ipv6 mld robustval robust-value no ipv6 mld robustval robust-value - The robustness of this interface.
  • Page 785 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) Command Mode Interface Configuration (VLAN) Command Usage ◆ If a static group is configured for an any-source multicast (*,G), a source address cannot subsequently be defined for this group without first deleting the entry. ◆...
  • Page 786 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) Command Usage ◆ MLDv1 is derived from IGMPv2, and MLDv2 from IGMPv3. IGMP uses IP Protocol 2 message types, and MLD uses IP Protocol 58 message types, which is a subset of the ICMPv6 messages.
  • Page 787: Table 157: Show Ipv6 Mld Groups - Display Description

    Chapter 24 | Multicast Filtering Commands MLD (Layer 3) show ipv6 mld groups This command displays information on multicast groups active on the switch and learned through MLD. Syntax show ipv6 mld groups [{group-address | interface} [detail] | detail] group-address - IPv6 multicast group address. (Note that link-local scope addresses FF02:* are not allowed.) interface vlan vlan-id - VLAN ID.
  • Page 788 Chapter 24 | Multicast Filtering Commands MLD (Layer 3) (Continued) Table 157: show ipv6 mld groups - display description Field Description The time remaining before this entry will be aged out. (The default is Expire 260 seconds.) This field displays “stopped” if the Group Mode is INCLUDE. In Include mode, reception of packets sent to the specified multicast Group Mode address is requested only from those IP source addresses listed in the...
  • Page 789: Table 158: Igmp Proxy Commands

    Chapter 24 | Multicast Filtering Commands MLD Proxy Routing Querier : FE80::200:E8FF:FE93:82A0 Joined Groups : Static Groups : FFEE::101 Console# MLD Proxy Routing This section describes commands used to configure MLD Proxy Routing on the switch. Table 158: IGMP Proxy Commands Command Function Mode...
  • Page 790 Chapter 24 | Multicast Filtering Commands MLD Proxy Routing Command Mode Interface Configuration (VLAN) Command Usage ◆ When MLD proxy is enabled on an interface, that interface is known as the upstream or host interface. This interface performs only the host portion of MLD by sending MLD membership reports, and automatically disables MLD router functions.
  • Page 791 Chapter 24 | Multicast Filtering Commands MLD Proxy Routing ipv6 mld proxy This command specifies how often the upstream interface should transmit unsolicited MLD reports. Use the no form to restore the default value. unsolicited-report- interval Syntax ipv6 mld proxy unsolicited-report-interval seconds no ipv6 mld proxy unsolicited-report-interval seconds - The interval at which to issue unsolicited reports.
  • Page 792 Chapter 24 | Multicast Filtering Commands MLD Proxy Routing – 792 –...
  • Page 793: Table 159: Lldp Commands

    LLDP Commands Link Layer Discovery Protocol (LLDP) is used to discover basic information about neighboring devices on the local broadcast domain. LLDP is a Layer 2 protocol that uses periodic broadcasts to advertise information about the sending device. Advertised information is represented in Type Length Value (TLV) format according to the IEEE 802.1AB standard, and can include details such as device identification, capabilities and configuration settings.
  • Page 794 Chapter 25 | LLDP Commands (Continued) Table 159: LLDP Commands Command Function Mode lldp basic-tlv Configures an LLDP-enabled port to advertise the system-description system description lldp basic-tlv Configures an LLDP-enabled port to advertise its system-name system name Configures an LLDP-enabled port to advertise the lldp dot1-tlv proto-ident supported protocols Configures an LLDP-enabled port to advertise port-...
  • Page 795 Chapter 25 | LLDP Commands lldp This command enables LLDP globally on the switch. Use the no form to disable LLDP. Syntax [no] lldp Default Setting Enabled Command Mode Global Configuration Example Console(config)#lldp Console(config)# lldp This command configures the time-to-live (TTL) value sent in LLDP advertisements. holdtime-multiplier Use the no form to restore the default setting.
  • Page 796 Chapter 25 | LLDP Commands lldp This command specifies the amount of MED Fast Start LLDPDUs to transmit during the activation process of the LLDP-MED Fast Start mechanism. Use the no form to med-fast-start-count restore the default setting. Syntax lldp med-fast-start-count packets no lldp med-fast-start-count seconds - Amount of packets.
  • Page 797 Chapter 25 | LLDP Commands ◆ Information about changes in LLDP neighbors that occur between SNMP notifications is not transmitted. Only state changes that exist at the time of a notification are included in the transmission. An SNMP agent should therefore periodically check the value of lldpStatsRemTableLastChangeTime to detect any lldpRemTablesChange notification-events missed due to throttling or transmission loss.
  • Page 798 Chapter 25 | LLDP Commands Command Mode Global Configuration Command Usage When LLDP is re-initialized on a port, all information in the remote systems LLDP MIB associated with this port is deleted. Example Console(config)#lldp reinit-delay 10 Console(config)# lldp tx-delay This command configures a delay between the successive transmission of advertisements initiated by a change in local LLDP MIB variables.
  • Page 799 Chapter 25 | LLDP Commands lldp admin-status This command enables LLDP transmit, receive, or transmit and receive mode on the specified port. Use the no form to disable this feature. Syntax lldp admin-status {rx-only | tx-only | tx-rx} no lldp admin-status rx-only - Only receive LLDP PDUs.
  • Page 800 Chapter 25 | LLDP Commands ◆ Since there are typically a number of different addresses associated with a Layer 3 device, an individual LLDP PDU may contain more than one management address TLV. ◆ Every management address TLV that reports an address that is accessible on a port and protocol VLAN through the particular port should be accompanied by a port and protocol VLAN TLV that indicates the VLAN identifier (VID) associated with the management address reported by this TLV.
  • Page 801 Chapter 25 | LLDP Commands Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage The system capabilities identifies the primary function(s) of the system and whether or not these primary functions are enabled. The information advertised by this TLV is described in IEEE 802.1AB. Example Console(config)#interface ethernet 1/1 Console(config-if)#lldp basic-tlv system-capabilities...
  • Page 802 Chapter 25 | LLDP Commands Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage The system name is taken from the sysName object in RFC 3418, which contains the system’s administratively assigned name, and is in turn based on the hostname command.
  • Page 803 Chapter 25 | LLDP Commands Command Usage This option advertises the port-based protocol VLANs configured on this interface (see “Configuring Protocol-based VLANs” on page 616). Example Console(config)#interface ethernet 1/1 Console(config-if)#no lldp dot1-tlv proto-vid Console(config-if)# lldp dot1-tlv pvid This command configures an LLDP-enabled port to advertise its default VLAN ID. Use the no form to disable this feature.
  • Page 804 Chapter 25 | LLDP Commands Command Usage This option advertises the name of all VLANs to which this interface has been assigned. See “switchport allowed vlan” on page 595 “protocol-vlan protocol- group (Configuring Interfaces)” on page 617. Example Console(config)#interface ethernet 1/1 Console(config-if)#no lldp dot1-tlv vlan-name Console(config-if)# lldp dot3-tlv link-agg...
  • Page 805 Chapter 25 | LLDP Commands Command Usage This option advertises MAC/PHY configuration/status which includes information about auto-negotiation support/capabilities, and operational Multistation Access Unit (MAU) type. Example Console(config)#interface ethernet 1/1 Console(config-if)#no lldp dot3-tlv mac-phy Console(config-if)# lldp dot3-tlv This command configures an LLDP-enabled port to advertise its maximum frame max-frame size.
  • Page 806 Chapter 25 | LLDP Commands Command Usage ◆ This command only applies to the ECS4510-28P/52P/52P-2AC. ◆ This option advertises Power-over-Ethernet capabilities, including whether or not PoE is supported, currently enabled, if the port pins through which power is delivered can be controlled, the port pins selected to deliver power, and the power class.
  • Page 807: Table 160: Lldp Med Location Ca Types

    Chapter 25 | LLDP Commands ◆ Use the ca-type to advertise the physical location of the device, that is the city, street number, building and room information. The address location is specified as a type and value pair, with the civic address (CA) type being defined in RFC 4776.
  • Page 808 Chapter 25 | LLDP Commands Console(config-if)#lldp med-location civic-addr what 2 Console(config-if)# lldp med-notification This command enables the transmission of SNMP trap notifications about LLDP- MED changes. Use the no form to disable LLDP-MED notifications. Syntax [no] lldp med-notification Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel)
  • Page 809 Chapter 25 | LLDP Commands Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage ◆ This command only applies to the ECS4510-28P/52P/52P-2AC. ◆ This option advertises extended Power-over-Ethernet capability details, such as power availability from the switch, and power state of the switch, including whether the switch is operating from primary or backup power (the Endpoint Device could use this information to decide to enter power conservation mode).
  • Page 810 Chapter 25 | LLDP Commands Default Setting Enabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage This option advertises location identification details. Example Console(config)#interface ethernet 1/1 Console(config-if)#lldp med-tlv location Console(config-if)# lldp med-tlv med-cap This command configures an LLDP-MED-enabled port to advertise its Media Endpoint Device capabilities.
  • Page 811 Chapter 25 | LLDP Commands Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage This option advertises network policy configuration information, aiding in the discovery and diagnosis of VLAN configuration mismatches on a port. Improper network policy configurations frequently result in voice quality degradation or complete service disruption.
  • Page 812 Chapter 25 | LLDP Commands show lldp config This command shows LLDP configuration settings for all ports. Syntax show lldp config [detail interface] detail - Shows configuration summary. interface ethernet unit/port unit - Unit identifier. (Range: 1-8) port - Port number. (Range: 1-28/52) port-channel channel-id (Range: 1-16) Command Mode Privileged Exec...
  • Page 813 Chapter 25 | LLDP Commands max-frame MED Notification Status : Enabled MED Enabled TLVs Advertised : med-cap network-policy location ext-poe inventory MED Location Identification: Location Data Format : Civic Address LCI Civic Address Status : Enabled Country Name : US What CA-Type CA-Value...
  • Page 814 Chapter 25 | LLDP Commands Console#show lldp info local-device detail ethernet 1/1 LLDP Local Port Information Detail Port : Eth 1/1 Port ID Type : MAC Address Port ID : 00-12-CF-DA-FC-E9 Port Description : Ethernet Port on unit 1, port 1 MED Capability : LLDP-MED Capabilities Network Policy...
  • Page 815 Chapter 25 | LLDP Commands Enabled Capabilities : Bridge, Router Management Address : 192.168.0.4 (IPv4) Port VLAN ID : 1 Port and Protocol VLAN ID : supported, disabled VLAN Name : VLAN 1 - DefaultVlan Protocol Identity (Hex) : 88-CC MAC/PHY Configuration/Status Port Auto-neg Supported : Yes...
  • Page 816 Chapter 25 | LLDP Commands Software Revision : 1.2.6.0 Serial Number : S123456 Manufacture Name : Prye Model Name : VP101 Asset ID : 340937 Console# show lldp info This command shows statistics based on traffic received through all attached LLDP- statistics enabled interfaces.
  • Page 817 Chapter 25 | LLDP Commands Console# – 817 –...
  • Page 818 Chapter 25 | LLDP Commands – 818 –...
  • Page 819: Table 161: Cfm Commands

    CFM Commands Connectivity Fault Management (CFM) is an OAM protocol that includes proactive connectivity monitoring using continuity check messages, fault verification through loop back messages, and fault isolation by examining end-to-end connections between provider edge devices or between customer edge devices. CFM is implemented as a service level protocol based on service instances which encompass only that portion of the metropolitan area network supporting a specific customer.
  • Page 820 Chapter 26 | CFM Commands (Continued) Table 161: CFM Commands Command Function Mode ma index name-format Specifies the name format for the maintenance association as IEEE 802.1ag character based, or ITU-T SG13/SG15 Y.1731 defined ICC-based format ethernet cfm mep Sets an interface as a domain boundary, defines it as a maintenance end point (MEP), and sets direction of the MEP in regard to sending and receiving CFM messages ethernet cfm port-enable...
  • Page 821 Chapter 26 | CFM Commands (Continued) Table 161: CFM Commands Command Function Mode ethernet cfm mep Enables cross-checking between the list of configured crosscheck remote MEPs within a maintenance association and MEPs learned through continuity check messages show ethernet cfm Displays information about remote maintenance points maintenance-points configured statically in a cross-check list...
  • Page 822 Chapter 26 | CFM Commands Defining CFM Structures Enter a static list of MEPs assigned to other devices within the same maintenance association using the mep crosscheck mpid command. This allows CFM to automatically verify the functionality of these remote end points by cross-checking the static list configured on this device against information learned through continuity check messages.
  • Page 823 Chapter 26 | CFM Commands Defining CFM Structures Example This example sets the maintenance level for sending AIS messages within the specified MA. Console(config)#ethernet cfm ais level 4 md voip ma rd Console(config)# ethernet cfm ais ma This command enables the MEPs within the specified MA to send frames with AIS information following detection of defect conditions.
  • Page 824 Chapter 26 | CFM Commands Defining CFM Structures ethernet cfm ais This command configures the interval at which AIS information is sent. Use the no form to restore the default setting. period Syntax ethernet cfm ais period period md domain-name ma ma-name no ethernet cfm ais period md domain-name ma ma-name period –...
  • Page 825 Chapter 26 | CFM Commands Defining CFM Structures with AIS information. More importantly, it cannot determine the associated subset of its peer MEPs for which it should suppress alarms since the received AIS information does not contain that information. Therefore, upon reception of a frame with AIS information, the MEP will suppress alarms for all peer MEPs whether there is still connectivity or not.
  • Page 826 Chapter 26 | CFM Commands Defining CFM Structures Default Setting No maintenance domains are configured. No MIPs are created for any MA in the specified domain. Command Mode Global Configuration Command Usage ◆ A domain can only be configured with one name. ◆...
  • Page 827 Chapter 26 | CFM Commands Defining CFM Structures which can only validate received CFM messages, and respond to loop back and link trace messages. The MIP creation method defined by the ma index name command takes precedence over the method defined by this command. Example This example creates a maintenance domain set to maintenance level 3, and enters CFM configuration mode for this domain.
  • Page 828 Chapter 26 | CFM Commands Defining CFM Structures ma index name This command creates a maintenance association (MA) within the current maintenance domain, maps it to a customer service instance (S-VLAN), and sets the manner in which MIPs are created for this service instance. Use the no form with the vlan keyword to remove the S-VLAN from the specified MA.
  • Page 829 Chapter 26 | CFM Commands Defining CFM Structures ◆ Before removing an MA, first remove all the MEPs configured for it (see the crosscheck mpid command). ◆ If the MIP creation method is not defined by this command, the creation method defined by the ethernet cfm domain command is applied to this MA.
  • Page 830 Chapter 26 | CFM Commands Defining CFM Structures ethernet cfm mep This command sets an interface as a domain boundary, defines it as a maintenance end point (MEP), and sets direction of the MEP in regard to sending and receiving CFM messages.
  • Page 831 Chapter 26 | CFM Commands Defining CFM Structures ethernet cfm This command enables CFM processing on an interface. Use the no form to disable CFM processing on an interface. port-enable Syntax [no] ethernet cfm port-enable Default Setting Enabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage ◆...
  • Page 832 Chapter 26 | CFM Commands Defining CFM Structures Command Usage This command can be used to clear AIS defect entries if a MEP does not exit the AIS state when all errors are resolved. Example This example clears AIS defect entries on port 1. Console#clear ethernet cfm ais mpid 1 md voip ma rd Console(config)# show ethernet cfm...
  • Page 833: Table 162: Show Ethernet Cfm Configuration Traps - Display Description

    Chapter 26 | CFM Commands Defining CFM Structures This example shows the configuration status for continuity check and cross-check traps. Console#show ethernet cfm configuration traps CC MEP Up Trap :Disabled CC MEP Down Trap :Disabled CC Configure Trap :Disabled CC Loop Trap :Disabled Cross Check MEP Unknown Trap :Disabled Cross Check MEP Missing Trap :Disabled...
  • Page 834 Chapter 26 | CFM Commands Defining CFM Structures show ethernet cfm md This command displays the configured maintenance domains. Syntax show ethernet cfm md [level level] level – Maintenance level. (Range: 0-7) Default Setting None Command Mode Privileged Exec Example This example shows all configured maintenance domains.
  • Page 835 Chapter 26 | CFM Commands Defining CFM Structures show ethernet cfm This command displays the maintenance points configured on this device. maintenance-points local Syntax show ethernet cfm maintenance-points local {mep [domain domain-name | interface interface | level level-id] | mip [domain domain-name | level level-id]} mep –...
  • Page 836 Chapter 26 | CFM Commands Defining CFM Structures show ethernet cfm This command displays detailed CFM information about a local MEP in the continuity check database. maintenance-points local detail mep Syntax show ethernet cfm maintenance-points local detail mep [domain domain-name | interface interface | level level-id] domain-name –...
  • Page 837: Table 163: Show Ethernet Cfm Maintenance-Points Local Detail Mep - Display

    Chapter 26 | CFM Commands Defining CFM Structures Table 163: show ethernet cfm maintenance-points local detail mep - display Field Description MPID MEP identifier MD Name The maintenance domain for this entry. MA Name Maintenance association to which this remote MEP belongs MA Name Format The format of the Maintenance Association name, including primary VID, character string, unsigned Integer 16, or RFC 2865 VPN ID...
  • Page 838: Table 164: Show Ethernet Cfm Maintenance-Points Remote Detail - Display

    Chapter 26 | CFM Commands Defining CFM Structures Default Setting None Command Mode Privileged Exec Command Usage Use the mpid keyword with this command to display information about a specific maintenance point, or use the mac keyword to display information about all maintenance points that have the specified MAC address.
  • Page 839 Chapter 26 | CFM Commands Continuity Check Operations Table 164: show ethernet cfm maintenance-points remote detail - display Field Description Port State Port states include: Up – The port is functioning normally. Blocked – The port has been blocked by the Spanning Tree Protocol. No port state –...
  • Page 840 Chapter 26 | CFM Commands Continuity Check Operations CCMs are issued should therefore be configured to detect connectivity problems in a timely manner, as dictated by the nature and size of the MA. ◆ The maintenance of a MIP CCM database by a MIP presents some difficulty for bridges carrying a large number of Service Instances, and for whose MEPs are issuing CCMs at a high frequency.
  • Page 841 Chapter 26 | CFM Commands Continuity Check Operations ◆ If a maintenance point receives a CCM with an invalid MEPID or MA level or an MA level lower than its own, a failure is registered which indicates a configuration error or cross-connect error (i.e., overlapping MAs). Example This example enables continuity check messages for the specified maintenance association.
  • Page 842 Chapter 26 | CFM Commands Continuity Check Operations Example This example enables SNMP traps for mep-up events. Console(config)#snmp-server enable traps ethernet cfm cc mep-up Console(config)# Related Commands ethernet cfm mep crosscheck (847) mep archive-hold- This command sets the time that data from a missing MEP is retained in the time continuity check message (CCM) database before being purged.
  • Page 843 Chapter 26 | CFM Commands Continuity Check Operations Default Setting None Command Mode Privileged Exec Command Usage Use this command without any keywords to clear all entries in the CCM database. Use the domain keyword to clear the CCM database for a specific domain, or the level keyword to clear it for a specific maintenance level.
  • Page 844: Table 165: Show Ethernet Cfm Errors - Display Description

    Chapter 26 | CFM Commands Continuity Check Operations show ethernet cfm This command displays the CFM continuity check errors logged on this device. errors Syntax show ethernet cfm errors [domain domain-name | level level-id] domain-name – Domain name. (Range: 1-43 alphanumeric characters) level-id –...
  • Page 845 Chapter 26 | CFM Commands Cross Check Operations Cross Check Operations ethernet cfm mep This command sets the maximum delay that a device waits for remote MEPs to crosscheck start-delay come up before starting the cross-check operation. Use the no form to restore the default setting.
  • Page 846 Chapter 26 | CFM Commands Cross Check Operations Default Setting All continuity checks are enabled. Command Mode Global Configuration Command Usage ◆ For this trap type to function, cross-checking must be enabled on the required maintenance associations using the ethernet cfm mep crosscheck command.
  • Page 847 Chapter 26 | CFM Commands Cross Check Operations Command Usage ◆ Use this command to statically configure remote MEPs that exist inside the maintenance association. These remote MEPs are used in the cross-check operation to verify that all endpoints in the specified MA are operational. ◆...
  • Page 848 Chapter 26 | CFM Commands Link Trace Operations ◆ The cross-check process is disabled by default, and must be manually started using this command with the enable keyword. Example This example enables cross-checking within the specified maintenance association. Console#ethernet cfm mep crosscheck enable md voip ma rd Console# show ethernet cfm This command displays information about remote MEPs statically configured in a...
  • Page 849 Chapter 26 | CFM Commands Link Trace Operations Command Mode Global Configuration Command Usage ◆ A link trace message is a multicast CFM frame initiated by a MEP, and forwarded from MIP to MIP, with each MIP generating a link trace reply, up to the point at which the link trace message reaches its destination or can no longer be forwarded.
  • Page 850 Chapter 26 | CFM Commands Link Trace Operations Example This example sets the aging time for entries in the link trace cache to 60 minutes. Console(config)#ethernet cfm linktrace cache hold-time 60 Console(config)# ethernet cfm linktrace This command sets the maximum size for the link trace cache. Use the no form to cache size restore the default setting.
  • Page 851 Chapter 26 | CFM Commands Link Trace Operations source-mpid – The identifier of a source MEP that will send the link trace message. (Range: 1-8191) mac-address – MAC address of a remote MEP that is the target of the link trace message.
  • Page 852: Table 166: Show Ethernet Cfm Linktrace-Cache - Display Description

    Chapter 26 | CFM Commands Link Trace Operations clear ethernet cfm This command clears link trace messages logged on this device. linktrace-cache Command Mode Privileged Exec Example Console#clear ethernet cfm linktrace-cache Console# show ethernet cfm This command displays the contents of the link trace cache. linktrace-cache Command Mode Privileged Exec...
  • Page 853 Chapter 26 | CFM Commands Loopback Operations (Continued) Table 166: show ethernet cfm linktrace-cache - display description Field Description Egr. Action Action taken on the egress port: EgrOk – The targeted data frame was forwarded. EgrDown – The Egress Port can be identified, but that bridge port’s MAC_Operational parameter is false.
  • Page 854 Chapter 26 | CFM Commands Fault Generator Operations Command Usage ◆ Use this command to test the connectivity between maintenance points. If the continuity check database does not have an entry for the specified maintenance point, an error message will be displayed. ◆...
  • Page 855 Chapter 26 | CFM Commands Fault Generator Operations set by the mep fault-notify lowest-priority command. Example This example set the delay time before generating a fault alarm. Console(config)#ethernet cfm domain index 1 name voip level 3 Console(config-ether-cfm)#mep fault-notify alarm-time 10 Console(config-ether-cfm)# mep fault-notify This command sets the lowest priority defect that is allowed to generate a fault...
  • Page 856: Table 167: Remote Mep Priority Levels

    Chapter 26 | CFM Commands Fault Generator Operations ◆ Priority defects include the following items: Table 167: Remote MEP Priority Levels Priority Level Level Name Description allDef All defects. macRemErrXcon DefMACstatus, DefRemoteCCM, DefErrorCCM, or DefXconCCM. remErrXcon DefErrorCCM, DefXconCCM or DefRemoteCCM. errXcon DefErrorCCM or DefXconCCM.
  • Page 857: Table 169: Show Fault-Notify-Generator - Display Description

    Chapter 26 | CFM Commands Fault Generator Operations Default Setting 10 seconds Command Mode CFM Domain Configuration Example This example sets the reset time after which another fault alarm can be generated. Console(config)#ethernet cfm domain index 1 name voip level 3 Console(config-ether-cfm)#mep fault-notify reset-time 7 Console(config-ether-cfm)# show ethernet cfm...
  • Page 858 Chapter 26 | CFM Commands Delay Measure Operations (Continued) Table 169: show fault-notify-generator - display description Field Description Alarm Time The time a defect must exist before a fault alarm is issued (see the fault-notify alarm-time, command). Reset Time The time after a fault alarm has been issued, and no defect exists, before another fault alarm can be issued (see the mep fault-notify reset-time command).
  • Page 859 Chapter 26 | CFM Commands Delay Measure Operations Command Usage ◆ Delay measurement can be used to measure frame delay and frame delay variation between MEPs. ◆ A local MEP must be configured for the same MA before you can use this command.
  • Page 860 Chapter 26 | CFM Commands Delay Measure Operations – 860 –...
  • Page 861: Table 170: Oam Commands

    OAM Commands The switch provides OAM (Operation, Administration, and Maintenance) remote management tools required to monitor and maintain the links to subscriber CPEs (Customer Premise Equipment). This section describes functions including enabling OAM for selected ports, loop back testing, and displaying device information.
  • Page 862 Chapter 27 | OAM Commands efm oam This command enables OAM functions on the specified port. Use the no form to disable this function. Syntax [no] efm oam Default Setting Disabled Command Mode Interface Configuration Command Usage ◆ If the remote device also supports OAM, both exchange Information OAMPDUs to establish an OAM link.
  • Page 863 Chapter 27 | OAM Commands Command Usage ◆ Critical events are vendor-specific and may include various failures, such as abnormal voltage fluctuations, out-of-range temperature detected, fan failure, CRC error in flash memory, insufficient memory, or other hardware faults. ◆ Dying gasp events are caused by an unrecoverable failure, such as a power failure or device reset.
  • Page 864 Chapter 27 | OAM Commands efm oam link-monitor This command sets the threshold for errored frame link events. Use the no form to restore the default setting. frame threshold Syntax efm oam link-monitor frame threshold count no efm oam link-monitor frame threshold count - The threshold for errored frame link events.
  • Page 865 Chapter 27 | OAM Commands exceeded within the period specified by this command. The Errored Frame Event TLV includes the number of errored frames detected during the specified period. Example This example set the window size to 5 seconds. Console(config)#interface ethernet 1/1 Console(config-if)#efm oam link-monitor frame window 50 Console(config-if)# efm oam mode...
  • Page 866 Chapter 27 | OAM Commands clear efm oam This command clears statistical counters for various OAMPDU message types. counters Syntax clear efm oam counters [interface-list] interface-list - unit/port unit - Unit identifier. (Range: 1-8) port - Port number or list of ports. To enter a list, separate nonconsecutive port identifiers with a comma and no spaces;...
  • Page 867 Chapter 27 | OAM Commands efm oam This command starts or stops OAM loopback test mode to the attached CPE. remote-loopback Syntax efm oam remote-loopback {start | stop} interface start - Starts remote loopback test mode. stop - Stops remote loopback test mode. interface - unit/port unit - Unit identifier.
  • Page 868 Chapter 27 | OAM Commands efm oam remote- This command performs a remote loopback test, sending a specified number of packets. loopback test Syntax efm oam remote-loopback test interface [number-of-packets [packet-size]] interface - unit/port unit - Unit identifier. (Range: 1-8) port - Port number.
  • Page 869 Chapter 27 | OAM Commands show efm oam This command displays counters for various OAM PDU message types. counters interface Syntax show efm oam counters interface [interface-list] interface-list - unit/port unit - Unit identifier. (Range: 1-8) port - Port number or list of ports. To enter a list, separate nonconsecutive port identifiers with a comma and no spaces;...
  • Page 870 Chapter 27 | OAM Commands Example Console#show efm oam event-log interface 1/1 OAM event log of Eth 1/1: 00:24:07 2001/01/01 "Unit 1, Port 1: Dying Gasp at Remote" Console# This command can show OAM link status changes for link partner as shown in this example.
  • Page 871 Chapter 27 | OAM Commands show efm oam This command displays the results of an OAM remote loopback test. remote-loopback interface Syntax show efm oam remote-loopback interface [interface-list] interface-list - unit/port unit - Unit identifier. (Range: 1-8) port - Port number or list of ports. To enter a list, separate nonconsecutive port identifiers with a comma and no spaces;...
  • Page 872 Chapter 27 | OAM Commands Link Monitor (Errored Frame) : Enabled Link Monitor: Errored Frame Window (100msec) : 10 Errored Frame Threshold Console#show efm oam status interface 1/1 brief $ = local OAM in loopback * = remote OAM in loopback Port Admin Mode Remote...
  • Page 873: Table 171: Dns Commands

    Domain Name Service Commands These commands are used to configure Domain Naming System (DNS) services. Entries can be manually configured in the DNS domain name to IP address mapping table, default domain names configured, or one or more name servers specified to use for domain name to address translation.
  • Page 874 Chapter 28 | Domain Name Service Commands Command Mode Global Configuration Command Usage ◆ Domain names are added to the end of the list one at a time. ◆ When an incomplete host name is received by the DNS service on this switch, it will work through the domain list, appending each domain name in the list to the host name, and checking with the specified name servers for a match.
  • Page 875 Chapter 28 | Domain Name Service Commands ◆ If one or more name servers are configured, but DNS is not yet enabled and the switch receives a DHCP packet containing a DNS field with a list of DNS servers, then the switch will automatically enabled DNS host name-to-address translation.
  • Page 876 Chapter 28 | Domain Name Service Commands Console#show dns Domain Lookup Status: DNS Disabled Default Domain Name: sample.com Domain Name List: Name Server List: Console# Related Commands ip domain-list (873) ip name-server (877) ip domain-lookup (874) ip host This command creates a static entry in the DNS table that maps a host name to an IPv4 address.
  • Page 877 Chapter 28 | Domain Name Service Commands ip name-server This command specifies the address of one or more domain name servers to use for name-to-address resolution. Use the no form to remove a name server from this list. Syntax [no] ip name-server server-address1 [server-address2 … server-address6] server-address1 - IPv4 or IPv6 address of domain-name server.
  • Page 878 Chapter 28 | Domain Name Service Commands ipv6 host This command creates a static entry in the DNS table that maps a host name to an IPv6 address. Use the no form to remove an entry. Syntax [no] ipv6 host name ipv6-address name - Name of an IPv6 host.
  • Page 879 Chapter 28 | Domain Name Service Commands clear host This command deletes dynamic entries from the DNS table. Syntax clear host {name | *} name - Name of the host. (Range: 1-127 characters) * - Removes all entries. Default Setting None Command Mode Privileged Exec...
  • Page 880: Table 172: Show Dns Cache - Display Description

    Chapter 28 | Domain Name Service Commands show dns cache This command displays entries in the DNS cache. Command Mode Privileged Exec Example Console#show dns cache Flag Type IP Address Host ------- ------- ------- --------------- ------- -------- 4 Host 209.131.36.158 115 www-real.wa1.b.yahoo.com 4 CNAME POINTER TO:3...
  • Page 881: Table 173: Show Hosts - Display Description

    Chapter 28 | Domain Name Service Commands Table 173: show hosts - display description Field Description The entry number for each resource record. Flag The field displays “2” for a static entry, or “4” for a dynamic entry stored in the cache.
  • Page 882 Chapter 28 | Domain Name Service Commands – 882 –...
  • Page 883: Table 174: Dhcp Commands

    DHCP Commands These commands are used to configure Dynamic Host Configuration Protocol (DHCP) client, relay, and server functions. Any VLAN interface on this switch can be configured to automatically obtain an IP address through DHCP. This switch can also be configured to relay DHCP client configuration requests to a DHCP server on another network, or it can be configured to provide DHCP service directly to any client.
  • Page 884: Table 176: Options 60, 66 And 67 Statements

    Chapter 29 | DHCP Commands DHCP Client DHCP for IPv4 ip dhcp client class-id This command specifies the DCHP client vendor class identifier for the current interface. Use the no form to remove the class identifier from the DHCP packet. Syntax ip dhcp client class-id [text text | hex hex] no ip dhcp client class-id...
  • Page 885: Table 177: Options 55 And 124 Statements

    Chapter 29 | DHCP Commands DHCP Client Table 177: Options 55 and 124 Statements Statement Option Keyword Parameter dhcp-parameter-request-list a list of parameters, separated by ' , ' vendor-class-identifier a string indicating the vendor class identifier ◆ The server should reply with Option 66 attributes, including the TFTP server name and boot file name.
  • Page 886 Chapter 29 | DHCP Commands DHCP Client Example In the following example, the device is reassigned the same address. Console(config)#interface vlan 1 Console(config-if)#ip address dhcp Console(config-if)#exit Console#ip dhcp restart client Console#show ip interface VLAN 1 is Administrative Up - Link Up Address is 00-E0-00-00-00-01 Index: 1001, MTU: 1500 Address Mode is DHCP...
  • Page 887 Chapter 29 | DHCP Commands DHCP Client ◆ If the rapid commit option has been enabled on the switch with this command, and on the DHCPv6 server, message exchange can be reduced from the normal four step process to a two-step exchange of only solicit and reply messages. Example Console(config)#ipv6 dhcp client rapid-commit vlan 2 Console(config)#...
  • Page 888: Table 178: Dhcp Relay Option 82 Commands

    Chapter 29 | DHCP Commands DHCP Relay List of known servers: Server address : FE80::250:FCFF:FEF9:A494 DUID : 0001-0001-48CFB0D5-F48F2A006801 Server address : FE80::250:FCFF:FEF9:A405 DUID : 0001-0001-38CF5AB0-F48F2A003917 Console# ELATED OMMANDS ipv6 address (925) DHCP R ELAY This section describes commands used to configure the switch to relay DHCP requests from local hosts to a remote DHCP server.
  • Page 889 Chapter 29 | DHCP Commands DHCP Relay Usage Guidelines ◆ DHCP relay service applies to DHCP client requests received on the specified VLAN. ◆ This command is used to configure DHCP relay for host devices attached to the switch. If DHCP relay service is enabled, and this switch sees a DHCP client request, it inserts its own IP address into the request so that the DHCP server will know the subnet where the client is located.
  • Page 890 Chapter 29 | DHCP Commands DHCP Relay request, it allocates a free IP address for the DHCP client from its defined scope for the DHCP client’s subnet, and sends a DHCP response back to the DHCP relay agent (i.e., this switch). This switch then broadcasts the DHCP response received from the server to the client.
  • Page 891 Chapter 29 | DHCP Commands DHCP Relay DHCPv6 request broadcast, it inserts its own IP address into the request so the DHCPv6 server will know the subnet where the client is located. Then, the switch forwards the packet to the next relay agent or DHCPv6 server on another network.
  • Page 892: Table 179: Dhcp Server Commands

    Chapter 29 | DHCP Commands DHCP Server DHCP Server This section describes commands used to configure client address pools for the DHCP service. Table 179: DHCP Server Commands Command Function Mode ip dhcp excluded-address Specifies IP addresses that a DHCP server should not assign to DHCP clients ip dhcp pool Configures a DHCP address pool on a DHCP Server...
  • Page 893 Chapter 29 | DHCP Commands DHCP Server ip dhcp This command specifies IP addresses that the DHCP server should not assign to DHCP clients. Use the no form to remove the excluded IP addresses. excluded-address Syntax [no] ip dhcp excluded-address low-address [high-address] low-address - An excluded IP address, or the first IP address in an excluded address range.
  • Page 894 Chapter 29 | DHCP Commands DHCP Server Example Console(config)#ip dhcp pool R&D Console(config-dhcp)# Related Commands network (901) host (898) service dhcp This command enables the DHCP server on this switch. Use the no form to disable the DHCP server. Syntax [no] service dhcp Default Setting Enabled...
  • Page 895 Chapter 29 | DHCP Commands DHCP Server Example Console(config-dhcp)#bootfile wme.bat Console(config-dhcp)# Related Commands next-server (902) client-identifier This command specifies the client identifier of a DHCP client. Use the no form to remove the client identifier. Syntax client-identifier {text text | hex hex} no client-identifier text - A text string.
  • Page 896 Chapter 29 | DHCP Commands DHCP Server default-router This command specifies default routers for a DHCP pool. Use the no form to remove the default routers. Syntax default-router address1 [address2] no default-router address1 - Specifies the IP address of the primary router. address2 - Specifies the IP address of an alternate router.
  • Page 897 Chapter 29 | DHCP Commands DHCP Server ◆ Servers are listed in order of preference (starting with address1 as the most preferred server). Example Console(config-dhcp)#dns-server 10.1.1.253 192.168.3.19 Console(config-dhcp)# domain-name This command specifies the domain name for a DHCP client. Use the no form to remove the domain name.
  • Page 898 Chapter 29 | DHCP Commands DHCP Server Command Mode DHCP Pool Configuration Command Usage This command identifies a DHCP or BOOTP client to bind to an address specified in host command. BOOTP clients cannot transmit a client identifier. To bind an address to a BOOTP client, you must associate a hardware address with the host entry.
  • Page 899 Chapter 29 | DHCP Commands DHCP Server ◆ When searching for a manual binding, the switch compares the client identifier for DHCP clients, and then compares the hardware address for DHCP or BOOTP clients. ◆ If no manual binding has been specified for a host entry with the client- identifier hardware-address...
  • Page 900 Chapter 29 | DHCP Commands DHCP Server Example The following example leases an address to clients using this pool for 7 days. Console(config-dhcp)#lease 7 Console(config-dhcp)# netbios-name-server This command configures NetBIOS Windows Internet Naming Service (WINS) name servers that are available to Microsoft DHCP clients. Use the no form to remove the NetBIOS name server list.
  • Page 901 Chapter 29 | DHCP Commands DHCP Server netbios-node-type This command configures the NetBIOS node type for Microsoft DHCP clients. Use the no form to remove the NetBIOS node type. Syntax netbios-node-type type no netbios-node-type type - Specifies the NetBIOS node type: broadcast hybrid (recommended) mixed...
  • Page 902 Chapter 29 | DHCP Commands DHCP Server the request was not forwarded by a relay server), the switch searches for a network pool matching the interface through which the client request was received. It then searches for a manually configured host address that falls within the matching network pool.
  • Page 903 Chapter 29 | DHCP Commands DHCP Server clear ip dhcp binding This command deletes an automatic address binding from the DHCP server database. Syntax clear ip dhcp binding {address | * } address - The address of the binding to clear. * - Clears all automatic bindings.
  • Page 904 Chapter 29 | DHCP Commands DHCP Server show ip dhcp binding This command displays address bindings on the DHCP server. Syntax show ip dhcp binding [address] address - Specifies the IP address of the DHCP client for which bindings will be displayed.
  • Page 905 Chapter 29 | DHCP Commands DHCP Server Default router : 0.0.0.0 0.0.0.0 DNS server : 0.0.0.0 0.0.0.0 Domain name Hardware type : None Hardware address : 00-00-00-00-00-00 Lease time : infinite Netbios name server : 0.0.0.0 0.0.0.0 Netbios node type : Hybrid Next server : 0.0.0.0...
  • Page 906 Chapter 29 | DHCP Commands DHCP Server – 906 –...
  • Page 907: Table 180: Ip Interface Commands

    IP Interface Commands An IP Version 4 and Version 6 address may be used for management access to the switch over the network. Both IPv4 or IPv6 addresses can be used simultaneously to access the switch. You can manually configure a specific IPv4 or IPv6 address or direct the switch to obtain an IPv4 address from a BOOTP or DHCP server when it is powered on.
  • Page 908: Table 182: Basic Ip Configuration Commands

    Chapter 30 | IP Interface Commands IPv4 Interface Basic IPv4 Configuration This section describes commands used to configure IP addresses for VLAN interfaces on the switch. Table 182: Basic IP Configuration Commands Command Function Mode ip address Sets the IP address for the current interface ip default-gateway Defines the default gateway through which this switch can reach other subnetworks...
  • Page 909 Chapter 30 | IP Interface Commands IPv4 Interface Command Usage ◆ If this router is directly connected to end node devices (or connected to end nodes via shared media) that will be assigned to a specific subnet, then you must create a router interface for each VLAN that will support routing. The router interface consists of an IP address and subnet mask.
  • Page 910 Chapter 30 | IP Interface Commands IPv4 Interface Example In the following example, the device is assigned an address in VLAN 1. Console(config)#interface vlan 1 Console(config-if)#ip address 192.168.1.5 255.255.255.0 Console(config-if)# This example assigns an IP address to VLAN 2 using a classless network mask. Console(config)#interface vlan 2 Console(config-if)#ip address 10.2.2.1/24 Console(config-if)#...
  • Page 911 Chapter 30 | IP Interface Commands IPv4 Interface after the % delimiter. For example, FE80::7272%1 identifies VLAN 1 as the interface. Example The following example defines a default gateway for this device: Console(config)#ip default-gateway 192.168.0.1 Console(config)#end Console#show ip route Codes: C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2...
  • Page 912 Chapter 30 | IP Interface Commands IPv4 Interface show ip traffic This command displays statistics for IP, ICMP, UDP, TCP and ARP protocols. Command Mode Privileged Exec Example Console#show ip traffic IP Statistics: IP received 7845 total received header errors unknown protocols address errors discards...
  • Page 913 Chapter 30 | IP Interface Commands IPv4 Interface input errors 9897 output Console# traceroute This command shows the route packets take to the specified destination. Syntax traceroute host host - IP address or alias of the host. Default Setting None Command Mode Privileged Exec Command Usage...
  • Page 914 Chapter 30 | IP Interface Commands IPv4 Interface Example Console#traceroute 192.168.0.1 Press "ESC" to abort. Traceroute to 192.168.0.99, 30 hops max, timeout is 3 seconds Hop Packet 1 Packet 2 Packet 3 IP Address --- -------- -------- -------- --------------- 20 ms <10 ms <10 ms 192.168.0.99 Trace completed.
  • Page 915: Table 183: Address Resolution Protocol Commands

    Chapter 30 | IP Interface Commands IPv4 Interface ◆ When pinging a host name, be sure the DNS server has been defined (page 877) and host name-to-address translation enabled (page 874). If necessary, local devices can also be specified in the DNS static host table (page 876).
  • Page 916 Chapter 30 | IP Interface Commands IPv4 Interface Default Setting No default entries Command Mode Global Configuration Command Usage ◆ The ARP cache is used to map 32-bit IP addresses into 48-bit hardware (i.e., Media Access Control) addresses. This cache includes entries for hosts and other routers on local network interfaces defined on this router.
  • Page 917 Chapter 30 | IP Interface Commands IPv4 Interface Command Usage ◆ When a ARP entry expires, it is deleted from the cache and an ARP request packet is sent to re-establish the MAC address. ◆ The aging time determines how long dynamic entries remain in the cache. If the timeout is too short, the router may tie up resources by repeating ARP requests for addresses recently flushed from the table.
  • Page 918 Chapter 30 | IP Interface Commands IPv4 Interface clear arp-cache This command deletes all dynamic entries from the Address Resolution Protocol (ARP) cache. Command Mode Privileged Exec Example This example clears all dynamic entries in the ARP cache. Console#clear arp-cache This operation will delete all the dynamic entries in ARP Cache.
  • Page 919: Table 184: Udp Helper Commands

    Chapter 30 | IP Interface Commands IPv4 Interface UDP Helper User Datagram Protocol (UDP) Helper allows host applications to forward UDP broadcast packets from this switch to another part of the network. This section Configuration describes the commands used to configure UDP Helper. Table 184: UDP Helper Commands Command Function...
  • Page 920 Chapter 30 | IP Interface Commands IPv4 Interface Example This example enables forwarding for DHCPv6 UDP packets. Console(config)#ip forward-protocol udp 547 Console(config)# ip helper This command enables UDP helper globally on the switch. Use the no form to disable this feature. Syntax [no] ip helper Default Setting...
  • Page 921 Chapter 30 | IP Interface Commands IPv4 Interface ip helper-address This command specifies the application server or subnet (indicated by a directed broadcast address) to which designated UDP broadcast packets are forwarded. Use the no form to remove a UDP helper address. Syntax [no] ip helper-address ip-address ip-address - Host address or directed broadcast address to which UDP...
  • Page 922: Table 185: Ipv6 Configuration Commands

    Chapter 30 | IP Interface Commands IPv6 Interface Example This example indicates that designated UDP broadcast packets are to be forwarded to the directed broadcast address of 192.168.2.255. Console(config)#interface vlan 1 Console(config-if)#ip helper-address 192.168.2.255 Console(config-if)# show ip helper This command displays configuration settings for UDP helper. Command Mode Privileged Exec Command Usage...
  • Page 923 Chapter 30 | IP Interface Commands IPv6 Interface (Continued) Table 185: IPv6 Configuration Commands Command Function Mode ipv6 enable Enables IPv6 on an interface that has not been configured with an explicit IPv6 address ipv6 mtu Sets the size of the maximum transmission unit (MTU) for IPv6 packets sent on an interface show ipv6 interface Displays the usability and configured settings for IPv6...
  • Page 924 Chapter 30 | IP Interface Commands IPv6 Interface (Continued) Table 185: IPv6 Configuration Commands Command Function Mode show ipv6 nd raguard Displays the configuration setting for RA Guard show ipv6 neighbors Displays information in the IPv6 neighbor discovery cache PE Interface Address Configuration and Utilities ipv6 default-gateway This command sets an IPv6 default gateway to use for destinations with no known...
  • Page 925 Chapter 30 | IP Interface Commands IPv6 Interface Related Commands show ipv6 route (983) ip default-gateway (910) ipv6 address This command configures an IPv6 global unicast address and enables IPv6 on an interface. Use the no form without any arguments to remove all IPv6 addresses from the interface, or use the no form with a specific IPv6 address to remove that address from the interface.
  • Page 926 Chapter 30 | IP Interface Commands IPv6 Interface Console#show ipv6 interface VLAN 1 is up IPv6 is enabled Link-local address: fe80::7272:cfff:fe83:3466%1/64 Global unicast address(es): 2001:db8:2222:7272::72/96, subnet is 2001:db8:2222:7272::/96 Joined group address(es): ff02::1:ff00:72 ff02::1:ff83:3466 ff02::1 IPv6 link MTU is 1500 bytes ND DAD is enabled, number of DAD attempts: 3.
  • Page 927 Chapter 30 | IP Interface Commands IPv6 Interface colon may be used in the address to indicate the appropriate number of zeros required to fill the undefined fields. ◆ If a link local address has not yet been assigned to this interface, this command will dynamically generate a global unicast address and a link-local address for this interface.
  • Page 928 Chapter 30 | IP Interface Commands IPv6 Interface IPv6 link MTU is 1500 bytes ND DAD is enabled, number of DAD attempts: 3. ND retransmit interval is 1000 milliseconds ND advertised retransmit interval is 0 milliseconds ND reachable time is 30000 milliseconds ND advertised reachable time is 0 milliseconds ND advertised router lifetime is 1800 seconds Console#...
  • Page 929 Chapter 30 | IP Interface Commands IPv6 Interface Example This example assigns a link-local address of FE80::269:3EF9:FE19:6779 to VLAN 1. Note that a prefix in the range of FE80~FEBF is required for link-local addresses, and the first 16-bit group in the host address is padded with a zero in the form 0269. Console(config)#interface vlan 1 Console(config-if)#ipv6 address FE80::269:3EF9:FE19:6779 link-local Console(config-if)#end...
  • Page 930 Chapter 30 | IP Interface Commands IPv6 Interface address to modified EUI-64 format (see page 926). This address type makes the switch accessible over IPv6 for all devices attached to the same local subnet. ◆ If a duplicate address is detected on the local segment, this interface will be disabled and a warning message displayed on the console.
  • Page 931 Chapter 30 | IP Interface Commands IPv6 Interface Default Setting 1500 bytes Command Mode Interface Configuration (VLAN) Command Usage ◆ If a non-default value is configured, an MTU option is included in the router advertisements sent from this device. ◆ The maximum value set by this command cannot exceed the MTU of the physical interface, which is currently fixed at 1500 bytes.
  • Page 932 Chapter 30 | IP Interface Commands IPv6 Interface show ipv6 interface This command displays the usability and configured settings for IPv6 interfaces. Syntax show ipv6 interface [brief [vlan vlan-id [ipv6-prefix/prefix-length]]] brief - Displays a brief summary of IPv6 operational status and the addresses configured for each interface.
  • Page 933: Table 186: Show Ipv6 Interface - Display Description

    Chapter 30 | IP Interface Commands IPv6 Interface Table 186: show ipv6 interface - display description Field Description VLAN A VLAN is marked “up” if the switch can send and receive packets on this interface, “down” if a line signal is not present, or “administratively down” if the interface has been disabled by the administrator.
  • Page 934: Table 187: Show Ipv6 Mtu - Display Description

    Chapter 30 | IP Interface Commands IPv6 Interface Related Commands show ip interface (911) show ipv6 mtu This command displays the maximum transmission unit (MTU) cache for destinations that have returned an ICMP packet-too-big message along with an acceptable MTU to this switch. Command Mode Normal Exec, Privileged Exec Example...
  • Page 935 Chapter 30 | IP Interface Commands IPv6 Interface truncated packets discards delivers reassembly request datagrams reassembly succeeded reassembly failed IPv6 sent forwards datagrams requests discards no routes generated fragments fragment succeeded fragment failed ICMPv6 Statistics: ICMPv6 received input errors destination unreachable messages packet too big messages time exceeded messages parameter problem message...
  • Page 936: Table 188: Show Ipv6 Traffic - Display Description

    Chapter 30 | IP Interface Commands IPv6 Interface Table 188: show ipv6 traffic - display description Field Description IPv6 Statistics IPv6 received total received The total number of input datagrams received by the interface, including those received in error. header errors The number of input datagrams discarded due to errors in their IPv6 headers, including version number mismatch, other format errors, hop count exceeded, IPv6 options, etc.
  • Page 937 Chapter 30 | IP Interface Commands IPv6 Interface (Continued) Table 188: show ipv6 traffic - display description Field Description IPv6 sent forwards datagrams The number of output datagrams which this entity received and forwarded to their final destinations. In entities which do not act as IPv6 routers, this counter will include only those packets which were Source- Routed via this entity, and the Source-Route processing was successful.
  • Page 938 Chapter 30 | IP Interface Commands IPv6 Interface (Continued) Table 188: show ipv6 traffic - display description Field Description neighbor solicit messages The number of ICMP Neighbor Solicit messages received by the interface. neighbor advertisement The number of ICMP Neighbor Advertisement messages received by messages the interface.
  • Page 939 Chapter 30 | IP Interface Commands IPv6 Interface (Continued) Table 188: show ipv6 traffic - display description Field Description UDP Statistics input The total number of UDP datagrams delivered to UDP users. no port errors The total number of received UDP datagrams for which there was no application at the destination port.
  • Page 940 Chapter 30 | IP Interface Commands IPv6 Interface Default Setting count: 5 size: 32 bytes Command Mode Privileged Exec Command Usage ◆ Use the ping6 command to see if another site on the network can be reached, or to evaluate delays over the path. ◆...
  • Page 941 Chapter 30 | IP Interface Commands IPv6 Interface host-name - A host name string which can be resolved into an IPv6 address through a domain name server. failure-count - The maximum number of failures before which the trace route is terminated. (Range: 1-255) Default Setting Maximum failures: 5 Command Mode...
  • Page 942 Chapter 30 | IP Interface Commands IPv6 Interface Neighbor Discovery ipv6 hop-limit This command configures the maximum number of hops used in router advertisements that are originated by this router. Use the no form to restore the default setting. Syntax ipv6 hop-limit hops no ipv6 hop-limit hops - The maximum number of hops in router advertisements and all IPv6...
  • Page 943 Chapter 30 | IP Interface Commands IPv6 Interface Default Setting None Command Mode Global Configuration Command Usage ◆ Address Resolution Protocol (ARP) has been replaced in IPv6 with the Neighbor Discovery Protocol (NDP). The ipv6 neighbor command is similar to the mac- address-table static command that is implemented using ARP.
  • Page 944 Chapter 30 | IP Interface Commands IPv6 Interface ipv6 nd dad attempts This command configures the number of consecutive neighbor solicitation messages sent on an interface during duplicate address detection. Use the no form to restore the default setting. Syntax ipv6 nd dad attempts count no ipv6 nd dad attempts count - The number of neighbor solicitation messages sent to determine...
  • Page 945 Chapter 30 | IP Interface Commands IPv6 Interface Example The following configures five neighbor solicitation attempts for addresses configured on VLAN 1. The show ipv6 interface command indicates that the duplicate address detection process is still on-going. Console(config)#interface vlan 1 Console(config-if)#ipv6 nd dad attempts 5 Console(config-if)#end Console#show ipv6 interface...
  • Page 946 Chapter 30 | IP Interface Commands IPv6 Interface ◆ ipv6 nd other-config-flag command is used to tell hosts that they should use stateless address autoconfiguration to get IPv6 address (based on the IPv6 prefixes found in router advertisements) and stateful autoconfiguration to get other non-address parameters (such as DNS server addresses) from DHCPv6 servers.
  • Page 947 Chapter 30 | IP Interface Commands IPv6 Interface Example The following tells hosts to use stateful autoconfiguration to obtain other non- address information from a DHCPv6 server: Console(config)#interface vlan 1 Console(config)#ipv6 nd other-config-flag Console(config)# ipv6 nd ns-interval This command configures the interval between transmitting IPv6 neighbor solicitation messages on an interface.
  • Page 948 Chapter 30 | IP Interface Commands IPv6 Interface ff01::1/16 ff02::1/16 ff02::1:ff00:79/104 ff02::1:ff90:0/104 IPv6 link MTU is 1500 bytes. ND DAD is enabled, number of DAD attempts: 5. ND retransmit interval is 1000 milliseconds ND advertised retransmit interval is 0 milliseconds ND reachable time is 30000 milliseconds ND advertised reachable time is 0 milliseconds ND advertised router lifetime is 1800 seconds...
  • Page 949 Chapter 30 | IP Interface Commands IPv6 Interface ipv6 nd This command configures the amount of time that a remote IPv6 node is considered reachable after some reachability confirmation event has occurred. Use reachable-time the no form to restore the default setting. Syntax ipv6 nd reachable-time milliseconds no ipv6 nd reachable-time...
  • Page 950 Chapter 30 | IP Interface Commands IPv6 Interface no ipv6 nd prefix ipv6-address/prefix-length ipv6-address - An IPv6 address including the network prefix and host address bits. prefix-length - A decimal value indicating how many contiguous bits (from the left) of the address comprise the prefix (i.e., the network portion of the address).
  • Page 951 Chapter 30 | IP Interface Commands IPv6 Interface Example The following configures a network prefix with a valid lifetime of 1000 seconds, and a preferred lifetime of 900 seconds: Console(config)#interface vlan 1 Console(config)#ipv6 nd prefix 2011:0DBF::/35 1000 900 Console(config)# ipv6 nd ra interval This command configures the interval between the transmission of IPv6 router advertisements on an interface.
  • Page 952 Chapter 30 | IP Interface Commands IPv6 Interface ipv6 nd ra lifetime This command configures the router lifetime value used in IPv6 router advertisements sent from an interface. Use the no form to restore the default setting. Syntax ipv6 nd ra lifetime lifetime no ipv6 nd ra lifetime lifetime - Router lifetime.
  • Page 953 Chapter 30 | IP Interface Commands IPv6 Interface Default Setting medium Command Usage Default router preference may be used to prioritize routers which provide equivalent, but not equal-cost, routing, and policy dictates that hosts should prefer one of the routers. Example The following sets the default router preference to high: Console(config)#interface vlan 1...
  • Page 954 Chapter 30 | IP Interface Commands IPv6 Interface clear ipv6 neighbors This command deletes all dynamic entries in the IPv6 neighbor discovery cache. Command Mode Privileged Exec Example The following deletes all dynamic entries in the IPv6 neighbor cache: Console#clear ipv6 neighbors Console# show ipv6 nd raguard This command displays the configuration setting for RA Guard.
  • Page 955: Table 189: Show Ipv6 Neighbors - Display Description

    Chapter 30 | IP Interface Commands IPv6 Interface Default Setting All IPv6 neighbor discovery cache entries are displayed. Command Mode Privileged Exec Example The following shows all known IPv6 neighbors for this switch: Console#show ipv6 neighbors State: I1 - Incomplete, I2 - Invalid, R - Reachable, S - Stale, D - Delay, P1 - Probe, P2 - Permanent, U - Unknown IPv6 Address Link-layer Addr...
  • Page 956: Table 190: Nd Snooping Commands

    Chapter 30 | IP Interface Commands ND Snooping Related Commands show mac-address-table (519) ND Snooping Neighbor Discover (ND) Snooping maintains an IPv6 prefix table and user address binding table. These tables can be used for stateless address auto-configuration or for address filtering by IPv6 Source Guard. ND snooping maintains a binding table in the process of neighbor discovery.
  • Page 957 Chapter 30 | IP Interface Commands ND Snooping (Continued) Table 190: ND Snooping Commands Command Function Mode show ipv6 nd snooping Shows configuration settings for ND snooping show ipv6 nd snooping Shows entries in the binding table binding show ipv6 nd snooping prefix Show entries in the prefix table ipv6 nd snooping This command enables ND snooping globally or on a specified VLAN or range of...
  • Page 958 Chapter 30 | IP Interface Commands ND Snooping If an NS message is received on an untrusted interface, and the address ■ prefix does not match any entry in the prefix table, it drops the packet. If the message does match an entry in the prefix table, it adds an entry to ■...
  • Page 959 Chapter 30 | IP Interface Commands ND Snooping Example Console(config)#ipv6 nd snooping auto-detect Console(config)# ipv6 nd snooping This command sets the number of times the auto-detection process sends an NS auto-detect message to determine if a dynamic user binding is still valid. Use the no form to restore the default setting.
  • Page 960 Chapter 30 | IP Interface Commands ND Snooping Command Mode Global Configuration Command Usage The timeout after which the switch will delete a dynamic user binding if no RA message is received is set to the retransmit count (see the ipv6 nd snooping auto- detect retransmit count command) x the retransmit interval.
  • Page 961 Chapter 30 | IP Interface Commands ND Snooping ipv6 nd snooping This command sets the maximum number of address entries in the dynamic user binding table which can be bound to a port. Use the no form to restore the default max-binding setting.
  • Page 962 Chapter 30 | IP Interface Commands ND Snooping Example Console(config)#interface ethernet 1/1 Console(config-if)#ipv6 nd snooping trust Console(config-if)# clear ipv6 nd This command clears all entries in the dynamic user address binding table. snooping binding Syntax clear ipv6 nd snooping binding Command Mode Privileged Exec Example...
  • Page 963 Chapter 30 | IP Interface Commands ND Snooping Command Mode Privileged Exec Example Console#show ipv6 nd snooping Global ND Snooping status: enabled ND Snooping auto-detection: disabled ND Snooping auto-detection retransmit count: 3 ND Snooping auto-detection retransmit interval: 1 (second) ND Snooping is configured on the following VLANs: VLAN Interface Trusted...
  • Page 964 Chapter 30 | IP Interface Commands ND Snooping Prefix Len Valid-Time Expire VLAN Interface -------------------------------------- --- ---------- ---------- ---- --------- 2001:b000:: 2592000 1 Eth 1/1 2001:: 2 Eth 1/2 Console# – 964 –...
  • Page 965: Table 191: Vrrp Commands

    VRRP Commands Virtual Router Redundancy Protocol (VRRP) use a virtual IP address to support a primary router and multiple backup routers. The backup routers can be configured to take over the workload if the master router fails, or can also be configured to share the traffic load.
  • Page 966 Chapter 31 | VRRP Commands vrrp authentication This command specifies the key used to authenticate VRRP packets received from other routers. Use the no form to prevent authentication. Syntax vrrp group authentication key no vrrp group authentication group - Identifies the virtual router group. (Range: 1-255) The maximum number or groups which can be defined is 64.
  • Page 967 Chapter 31 | VRRP Commands Command Mode Interface (VLAN) Command Usage ◆ The interfaces of all routers participating in a virtual router group must be within the same IP subnet. ◆ If the IP address assigned to the virtual router with this command is already configured as the primary address on this interface, this router is considered the Owner, and will assume the role of the Master virtual router in the group.
  • Page 968 Chapter 31 | VRRP Commands Command Usage ◆ If preempt is enabled, and this backup router has a priority higher than the current acting master, it will take over as the new master. However, note that if the original master (i.e., the owner of the VRRP IP address) comes back on line, it will always resume control as the master.
  • Page 969 Chapter 31 | VRRP Commands ◆ If two or more routers are configured with the same VRRP priority, the router with the highest IP address is elected as the new master router if the current master fails. ◆ If the backup preempt function is enabled with the vrrp preempt command, and a backup router with a priority higher than the current acting master...
  • Page 970 Chapter 31 | VRRP Commands ◆ VRRP advertisements are sent to the multicast address 224.0.0.18. Using a multicast address reduces the amount of traffic that has to processed by network devices that are not part of the designated VRRP group. ◆...
  • Page 971: Table 192: Show Vrrp - Display Description

    Chapter 31 | VRRP Commands Authentication SimpleText Authentication Key bluebird Master Router 192.168.1.6 Master Priority Master Advertisement Interval 5 sec Master Down Interval Console# Table 192: show vrrp - display description Field Description State VRRP role of this interface (master or backup) Virtual IP address Virtual address that identifies this VRRP group Virtual MAC address Virtual MAC address derived from the owner of the virtual IP address...
  • Page 972 Chapter 31 | VRRP Commands (Continued) Table 193: show vrrp brief - display description Field Description Virtual Addr Virtual address that identifies this VRRP group Interval Interval at which the master virtual router advertises its role as the master Preempt Shows whether or not a higher priority router can preempt the current acting master Priority...
  • Page 973: Table 194: Show Vrrp Interface Counters - Display Description

    Chapter 31 | VRRP Commands show vrrp interface This command displays counters for VRRP protocol events and errors that have occurred for the specified group and interface. counters show vrrp group interface vlan interface counters group - Identifies a VRRP group. (Range: 1-255) interface - Identifier of configured VLAN interface.
  • Page 974 Chapter 31 | VRRP Commands Table 194: show vrrp interface counters - display description Parameter Description Received Error Address Number of packets received for which the address list does not List VRRP Packets match the locally configured list for the virtual router. Received Invalid Number of packets received with an unknown authentication type.
  • Page 975: Table 1: Ip Routing Commands

    IP Routing Commands After network interfaces are configured for the switch, the paths used to send traffic between different interfaces must be set. If routing is enabled on the switch, traffic will automatically be forwarded between all of the local subnetworks. However, to forward traffic to devices on other subnetworks, either configure fixed paths with static routing commands, or enable a dynamic routing protocol that exchanges information with other routers on the network to automatically...
  • Page 976 Chapter 50 | IP Routing Commands Global Routing Configuration (Continued) Table 2: Global Routing Configuration Commands Command Function Mode show ip route Displays specified entries in the routing table show ip route database Displays static or dynamically learned entries in the routing table show ip route summary Displays summary information for the routing table...
  • Page 977 Chapter 50 | IP Routing Commands Global Routing Configuration ◆ If an administrative distance is defined for a static route, and the same destination can be reached through a dynamic route at a lower administration distance, then the dynamic route will be used. ◆...
  • Page 978: Table 3: Show Ip Host-Route - Display Description

    Chapter 50 | IP Routing Commands Global Routing Configuration show ip host-route This command displays the interface associated with known routes. OMMAND Privileged Exec XAMPLE Console#show ip host-route IP Address MAC Address VLAN Port --------------- ----------------- ---- ------- 192.168.0.99 00-E0-29-94-34-64 1 1/1 192.168.1.250 00-00-30-01-01-01...
  • Page 979 Chapter 50 | IP Routing Commands Global Routing Configuration Command Usage ◆ The FIB contains information required to forward IP traffic. It contains the interface identifier and next hop information for each reachable destination network prefix based on the IP routing table. When routing or topology changes occur in the network, the routing table is updated, and those changes are immediately reflected in the FIB.
  • Page 980 Chapter 50 | IP Routing Commands Global Routing Configuration Example Console#show ip route database Codes: C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area >...
  • Page 981 Chapter 50 | IP Routing Commands Global Routing Configuration discards no routes generated fragments fragment succeeded fragment failed ICMP Statistics: ICMP received input errors destination unreachable messages time exceeded messages parameter problem message echo request messages echo reply messages redirect messages timestamp request messages timestamp reply messages source quench messages...
  • Page 982 Chapter 50 | IP Routing Commands Global Routing Configuration destination-ipv6-address – The IPv6 address of a destination network, subnetwork, or host. This must be a full IPv6 address including the network prefix and host address bits. prefix-length - A decimal value indicating how many contiguous bits (from the left) of the address comprise the prefix (i.e., the network portion of the address).
  • Page 983 Chapter 50 | IP Routing Commands Global Routing Configuration Example This example forwards all traffic for subnet 2001::/64 to the next hop router 2001:DB8:2222:7272::254, using the default metric of 1. Console(config)#ipv6 route 2001::/64 2001:DB8:2222:7272::254 Console(config)# Related Commands show ip route summary (980) show ipv6 route This command displays information in the Forwarding Information Base (FIB).
  • Page 984: Table 4: Routing Information Protocol Commands

    Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) within a forwarding information base entry are a network prefix, a router port identifier, and next hop information. ◆ This command only displays routes which are currently accessible for forwarding. The router must be able to directly reach the next hop, so the VLAN interface associated with any dynamic or static route entry must be up.
  • Page 985 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) (Continued) Table 4: Routing Information Protocol Commands Command Function Mode version Specifies the RIP version to use on all network interfaces (if not already specified with a receive version or send version command) ip rip authentication mode Specifies the type of authentication used for RIP2 packets...
  • Page 986 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) default-information This command generates a default external route into the local RIP autonomous system. Use the no form to disable this feature. originate Syntax [no] default-information originate Default Setting Disabled Command Mode Router Configuration Command Usage...
  • Page 987 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) ◆ The default metric must be used to resolve the problem of redistributing external routes with incompatible metrics. ◆ It is advisable to use a low metric when redistributing routes from another protocol into RIP.
  • Page 988 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) Command Usage ◆ Administrative distance is used by the routers to select the preferred path when there are two or more different routes to the same destination from two different routing protocols. A smaller administrative distance indicates a more reliable protocol.
  • Page 989 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) Default Setting No neighbors are defined. Command Mode Router Configuration Command Usage ◆ This command can be used to configure a static neighbor (specifically for point- to-point links) with which this router will exchange routing information, rather than relying on broadcast or multicast messages generated by the RIP protocol.
  • Page 990 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) ◆ Subnet addresses are interpreted as class A, B or C, based on the first field in the specified address. In other words, if a subnet address nnn.xxx.xxx.xxx is entered, the first field (nnn) determines the class: 0 - 127 is class A, and only the first field in the network address is used.
  • Page 991 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) redistribute This command imports external routing information from other routing domains (that is, directly connected routes, protocols, or static routes) into the autonomous system. Use the no form to disable this feature. Syntax [no] redistribute (bgp | connected | ospf | static} [metric metric-value] bgp - External routes will be imported from the Border Gateway Protocol...
  • Page 992 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) Example This example redistributes routes learned from OSPF and sets the metric for all external routes imported from OSPF to a value of 3. Console(config-router)#redistribute ospf metric 3 Console(config-router)# This example redistributes static routes and sets the metric for all of these routes to a value of 3.
  • Page 993 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) set to infinite) and advertised as unreachable. However, packets are still forwarded on this route. ◆ After the timeout interval expires, the router waits for an interval specified by the garbage-collection timer before removing this entry from the routing table. This timer allows neighbors to become aware of an invalid route prior to it being purged by this device.
  • Page 994 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) ◆ Any configured interface settings take precedence over the global settings. Example This example sets the global version for RIP to send and receive version 2 packets. Console(config-router)#version 2 Console(config-router)# Related Commands ip rip receive version (996) ip rip send version (997)
  • Page 995 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) Example This example sets the authentication mode to plain text. Console(config)#interface vlan 1 Console(config-if)#ip rip authentication mode text Console(config-if)# Related Commands ip rip authentication string (995) ip rip authentication This command specifies an authentication key for RIPv2 packets. Use the no form to string delete the authentication key.
  • Page 996 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) ip rip receive version This command specifies a RIP version to receive on an interface. Use the no form to restore the default value. Syntax ip rip receive version {1 | 2} no ip rip receive version 1 - Accepts only RIPv1 packets.
  • Page 997 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) Command Mode Interface Configuration (VLAN) Default Setting Enabled Command Usage Use the no form of this command if it is not required to add any dynamic entries to the routing table for an interface. For example, when only static routes are to be allowed for a specific interface.
  • Page 998 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) normally required by RIPv2. (Using this mode allows older RIPv2 routers which only receive RIP broadcast messages to receive all of the information provided by RIPv2, including subnet mask, next hop and authentication information.) Example This example sets the interface version for VLAN 1 to send RIPv1 packets.
  • Page 999 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) ip rip split-horizon This command enables split-horizon or poison-reverse (a variation) on an interface. Use the no form to disable this function. Syntax ip rip split-horizon [poisoned] no rip ip split-horizon poisoned - Enables poison-reverse on the current interface.
  • Page 1000 Chapter 50 | IP Routing Commands Routing Information Protocol (RIP) ospf - Deletes all entries learned through the Open Shortest Path First routing protocol. rip - Deletes all entries learned through the Routing Information Protocol. static - Deletes all static entries. Default Setting None Command Mode...

Table of Contents