EN
Cisco Systems logo
Official user manual

Cisco Systems 4500

1504 pages·15.3 MB·Switch·PDF·ENDEFRITNLJA
Cisco Systems 4500
Table of Contents 88 sections Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide · Contents · Preface · Product Overview · … ShowHide
Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1 of the Cisco Systems 4500 user manual — Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide
Page 1 · click to enlarge
Page 1
Cisco Systems 4500 — Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide diagram (page 1)
Fig. 1 · Catalyst 4500 Series Switch Cisco IOS Software Confi…

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

Release 15.0(2)SG

Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000

800 553-NETS (6387) Fax408 527-0883
Customer Order NumberDOC-OL23818=1 Customer Order Number: OL-23818-01
Page 2 of the Cisco Systems 4500 user manual — Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide
Page 2 · click to enlarge
Page 2

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.

THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.

The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.

NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.

IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

CCDE, CCENT, CCSI, Cisco Eos, Cisco Explorer, Cisco HealthPresence, Cisco IronPort, the Cisco logo, Cisco Nurse Connect, Cisco Pulse, Cisco SensorBase, Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R)

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide Copyright © 1999–2011 Cisco Systems, Inc. All rights reserved.

Page 3 of the Cisco Systems 4500 user manual — Table of Contents
Page 3 · Contents
Contents

Contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 4 of the Cisco Systems 4500 user manual — Contents
Page 4 · click to enlarge
Page 4

Resilient Ethernet Protocol 1-7 SmartPort Macros 1-7 Spanning Tree Protocol 1-8 Stateful Switchover 1-8 SVI Autostate 1-9 User-Based Rate Limiting 1-9 Unidirectional Ethernet 1-9 Unidirectional Link Detection 1-9 VLANs 1-10 Virtual Switch System Client 1-10 Y.1731 (AIS and RDI) 1-10

Layer 3 Software Features 1-11

Cisco Express Forwarding 1-11 EIGRP Stub Routing 1-12 Enhanced Object Tracking 1-12 GLBP 1-12 HSRP 1-12

SSO Aware HSRP 1-13 IP Routing Protocols 1-13

BGP 1-13 EIGRP 1-14 IS-IS 1-14 OSPF 1-14 RIP 1-15 In Service Software Upgrade 1-15 IPv6 1-15 Multicast Services 1-15 NSF with SSO 1-17 OSPF for Routed Access 1-17 Policy-Based Routing 1-17 Unidirectional Link Routing 1-17 VRF-lite 1-18 Virtual Router Redundancy Protocol 1-18

Cisco Call Home 1-19 Cisco Energy Wise 1-19 Cisco IOS IP Service Level Agreements 1-19 Cisco Network Assistant 1-20 Dynamic Host Control Protocol 1-20 Embedded CiscoView 1-20

Contents · Management Features 1-18

Page 5 of the Cisco Systems 4500 user manual — C H A P T E R 2 Command-Line Interfaces 2-1
Page 5 · click to enlarge
Page 5

Embedded Event Manager 1-20 Ethernet Management Port 1-21 FAT File Management System on Supervisor Engine 6-E and 6L-E 1-21 Forced 10/100 Autonegotiation 1-21 Intelligent Power Management 1-21 MAC Address Notification 1-21 MAC Notify MIB 1-21 NetFlow-lite 1-22 Secure Shell 1-22 Simple Network Management Protocol 1-22 SPAN and RSPAN 1-22 Web Content Coordination Protocol 1-23 XML-PI 1-23

802.1X Identity-Based Network Security 1-24 Cisco TrustSec SGT Exchange Protocol (SXP) IPv4 1-25 Dynamic ARP Inspection 1-26 Dynamic Host Configuration Protocol Snooping 1-26 Flood Blocking 1-26 Hardware-Based Control Plane Policing 1-26 IP Source Guard for Static Hosts 1-27 IP Source Guard 1-27 Local Authentication, RADIUS, and TACACS+ Authentication 1-27 Network Admission Control 1-27 Network Security with ACLs 1-28 Port Security 1-28 PPPoE Intermediate Agent 1-29 Storm Control 1-29 uRPF Strict Mode 1-29 Utilities 1-30

Layer 2 Traceroute 1-30 Time Domain Reflectometry 1-30 Debugging Features 1-30 Web-based Authentication 1-30

C H A P T E R 2 Command-Line Interfaces 2-1

Accessing the Switch CLI 2-2

Accessing the CLI Using the EIA/TIA-232 Console Interface 2-2 Accessing the CLI Through Telnet 2-2

Contents · Security Features 1-23

Page 6 of the Cisco Systems 4500 user manual — Contents
Page 6 · click to enlarge
Page 6

Performing Command-Line Processing 2-3

Performing History Substitution 2-4

About Cisco IOS Command Modes 2-4

Getting a List of Commands and Syntax 2-5

Virtual Console for Standby Supervisor Engine 2-6

ROMMON Command-Line Interface 2-7

Archiving Crashfiles Information 2-8

Displaying a Crash Dump 2-8

C H A P T E R 3 Configuring the Switch for the First Time 3-1

Default Switch Configuration 3-1

Configuring DHCP-Based Autoconfiguration 3-2

About DHCP-Based Autoconfiguration 3-2 DHCP Client Request Process 3-3 Configuring the DHCP Server 3-4 Configuring the TFTP Server 3-4 Configuring the DNS Server 3-5 Configuring the Relay Device 3-5 Obtaining Configuration Files 3-6 Example Configuration 3-7

Configuring the Switch 3-8

Using Configuration Mode to Configure Your Switch 3-9 Verifying the Running Configuration Settings 3-9 Saving the Running Configuration Settings to Your Start-Up File 3-10 Reviewing the Configuration in NVRAM 3-10 Configuring a Default Gateway 3-11 Configuring a Static Route 3-11

Controlling Access to Privileged EXEC Commands 3-13

Setting or Changing a Static enable Password 3-13 Using the enable password and enable secret Commands 3-14 Setting or Changing a Privileged Password 3-14 Controlling Switch Access with TACACS+ 3-15

Understanding TACACS+ 3-15 TACACS+ Operation 3-17 Configuring TACACS+ 3-17 Displaying the TACACS+ Configuration 3-22 Encrypting Passwords 3-22 Configuring Multiple Privilege Levels 3-23

Contents

Page 7 of the Cisco Systems 4500 user manual — C H A P T E R 4 Administering the Switch 4-1
Page 7 · click to enlarge
Page 7

Setting the Privilege Level for a Command 3-23 Changing the Default Privilege Level for Lines 3-23 Logging In to a Privilege Level 3-24 Exiting a Privilege Level 3-24 Displaying the Password, Access Level, and Privilege Level Configuration 3-24

Recovering a Lost Enable Password 3-25

Modifying the Supervisor Engine Startup Configuration 3-25

Understanding the Supervisor Engine Boot Configuration 3-25

Understanding the ROM Monitor 3-26 Configuring the Software Configuration Register 3-26

Modifying the Boot Field and Using the boot Command 3-27 Modifying the Boot Field 3-28 Verifying the Configuration Register Setting 3-29 Specifying the Startup System Image 3-30

Flash Memory Features 3-31 Security Precautions 3-31 Configuring Flash Memory 3-31 Controlling Environment Variables 3-31

Resetting a Switch to Factory Default Settings 3-32

C H A P T E R 4 Administering the Switch 4-1

Managing the System Time and Date 4-1

System Clock 4-2 Understanding Network Time Protocol 4-2 Configuring NTP 4-3

Default NTP Configuration 4-4 Configuring NTP Authentication 4-4 Configuring NTP Associations 4-6 Configuring NTP Broadcast Service 4-7 Configuring NTP Access Restrictions 4-8 Configuring the Source IP Address for NTP Packets 4-10 Displaying the NTP Configuration 4-11 Configuring Time and Date Manually 4-11

Setting the System Clock 4-11 Displaying the Time and Date Configuration 4-12 Configuring the Time Zone 4-12 Configuring Summer Time (Daylight Saving Time) 4-13

Configuring a System Name and Prompt 4-14

Configuring a System Name 4-15

Contents

Page 8 of the Cisco Systems 4500 user manual — Contents
Page 8 · click to enlarge
Page 8

Default DNS Configuration 4-16 Setting Up DNS 4-16 Displaying the DNS Configuration 4-17

Creating a Banner 4-17

Default Banner Configuration 4-18 Configuring a Message-of-the-Day Login Banner 4-18 Configuring a Login Banner 4-19

Managing the MAC Address Table 4-19

Building the Address Table 4-20 MAC Addresses and VLANs 4-20 Default MAC Address Table Configuration 4-21 Changing the Address Aging Time 4-21 Removing Dynamic Address Entries 4-22 Configuring MAC Change Notification Traps 4-22 Configuring MAC Move Notification Traps 4-24 Configuring MAC Threshold Notification Traps 4-26 Adding and Removing Static Address Entries 4-27 Configuring Unicast MAC Address Filtering 4-28 Disabling MAC Address Learning on a VLAN 4-30

Configuring Disable MAC Address Learning 4-30 Usage Guidelines 4-31 Deployment Scenarios 4-31 Feature Compatibility 4-33 Feature Incompatibility 4-34 Partial Feature Incompatibility 4-34 Displaying Address Table Entries 4-35

Managing the ARP Table 4-35

Configuring Embedded CiscoView Support 4-35

Understanding Embedded CiscoView 4-36 Installing and Configuring Embedded CiscoView 4-36 Displaying Embedded CiscoView Information 4-39

C H A P T E R 5 Configuring the Cisco IOS In-Service Software Upgrade Process 5-1

Prerequisites to Performing ISSU 5-2

Stateful Switchover Overview 5-3 NSF Overview 5-5 ISSU Process Overview 5-6

Contents · Understanding DNS 4-15 · About ISSU 5-3

Page 9 of the Cisco Systems 4500 user manual — C H A P T E R 6 Configuring Interfaces 6-1
Page 9 · click to enlarge
Page 9
Performing an ISSU Upgrade2 Methods 5-11 Changeversion Process 5-12

Changeversion: Quick Option 5-12 Scheduled Changeversion: “in” and “at” Options 5-12 Changeversion Deployment Scenario 5-13 Aborting an In-Progress Changeversion Procedure 5-13 Guidelines for Performing ISSU 5-13 Versioning Capability in Cisco IOS Software to Support ISSU 5-13

Compatibility Matrix 5-14 SNMP Support for ISSU 5-15 Compatibility Verification Using Cisco Feature Navigator 5-15

Performing the ISSU Process 5-15

Verifying the ISSU Software Installation 5-16 Verifying Redundancy Mode Before Beginning the ISSU Process 5-16 Verifying the ISSU State Before Beginning the ISSU Process 5-17 Loading New Cisco IOS Software on the Standby Supervisor Engine 5-18 Switching to the Standby Supervisor Engine 5-21 Stopping the ISSU Rollback Timer (Optional) 5-23 Loading New Cisco IOS Software on the New Standby Supervisor Engine 5-24 Using changeversion to Automate an ISSU Upgrade 5-26 Aborting a Software Upgrade During ISSU 5-31 Configuring the Rollback Timer to Safeguard Against Upgrade Issues 5-32 Displaying ISSU Compatibility Matrix Information 5-34 Displaying ISSU Compatibility Matrix Information 5-37

C H A P T E R 6 Configuring Interfaces 6-1

About Interface Configuration 6-2

Using the interface Command 6-2

Configuring a Range of Interfaces 6-4

Using the Ethernet Management Port 6-6

Understanding the Ethernet Management Port 6-6

Fa1 Interface and mgmtVrf 6-7 SSO Model 6-9 ISSU Model 6-9 Supported Features on the Ethernet Management Port 6-9 Configuring the Ethernet Management Port 6-10

Defining and Using Interface-Range Macros 6-10

Deploying SFP+ in X2 Ports 6-11

Contents · Related Documents 5-39

Page 10 of the Cisco Systems 4500 user manual — Contents
Page 10 · click to enlarge
Page 10

Deploying 10-Gigabit Ethernet and Gigabit Ethernet SFP Ports on Supervisor Engine V-10GE 6-12

Deploying 10-Gigabit Ethernet or Gigabit Ethernet Ports on Supervisor Engine 6-E, Supervisor Engine 6L-E and WS-X4606-X2-E 6-13

Port Numbering TwinGig Convertors 6-13 Limitations on Using a TwinGig Convertor 6-14 Selecting X2/TwinGig Convertor Mode 6-14

Invoking Shared-Backplane Uplink Mode on Supervisor Engine 6-E 6-16

Digital Optical Monitoring Transceiver Support 6-16

Configuring Optional Interface Features 6-17

Configuring Ethernet Interface Speed and Duplex Mode 6-17

Speed and Duplex Mode Configuration Guidelines 6-17 Setting the Interface Speed 6-18 Setting the Interface Duplex Mode 6-19 Displaying the Interface Speed and Duplex Mode Configuration 6-19 Adding a Description for an Interface 6-20 Configuring Flow Control 6-20 Configuring Jumbo Frame Support 6-23

Ports and Modules That Support Jumbo Frames 6-23 Jumbo Frame Support 6-23 Configuring MTU Sizes 6-25 Interacting with Baby Giants 6-26 Configuring the Port Debounce Timer 6-26 Configuring Auto-MDIX on a Port 6-27

Displaying the Interface Auto-MDIX Configuration 6-29

Understanding Online Insertion and Removal 6-30

Monitoring and Maintaining the Interface 6-30

Monitoring Interface and Controller Status 6-30 Clearing and Resetting the Interface 6-31 Shutting Down and Restarting an Interface 6-31 Configuring Interface Link Status and Trunk Status Events 6-32

Configuring Link Status Event Notification for an Interface 6-33 Global Settings 6-33 Configuring a Switch Global Link Status Logging Event 6-33 Examples 6-33 Resetting the Interface to the Default Configuration 6-34

C H A P T E R 7 Checking Port Status and Connectivity 7-1

Checking Module Status 7-1

Contents

Page 11 of the Cisco Systems 4500 user manual — Contents
Page 11 · click to enlarge
Page 11

Checking Interfaces Status 7-2

Displaying MAC Addresses 7-3

Checking Cable Status Using Time Domain Reflectometer 7-3

Overview 7-3 Running the TDR Test 7-4 TDR Guidelines 7-5

Changing the Logout Timer 7-6

Monitoring User Sessions 7-6

Understanding How Ping Works 7-7 Running Ping 7-8

Using IP Traceroute 7-8

Understanding How IP Traceroute Works 7-8 Running IP Traceroute 7-9

Using Layer 2 Traceroute 7-9

Layer 2 Traceroute Usage Guidelines 7-10 Running Layer 2 Traceroute 7-11

Enabling ICMP Protocol Unreachable Messages 7-12 Enabling ICMP Redirect Messages 7-12 Enabling ICMP Mask Reply Messages 7-13

C H A P T E R 8 Configuring Supervisor Engine Redundancy Using RPR and SSO 8-1

About Supervisor Engine Redundancy 8-2

Overview 8-2 RPR Operation 8-3 SSO Operation 8-3

About Supervisor Engine Redundancy Synchronization 8-4

RPR Supervisor Engine Configuration Synchronization 8-5 SSO Supervisor Engine Configuration Synchronization 8-5

Supervisor Engine Redundancy Guidelines and Restrictions 8-5

Configuring Supervisor Engine Redundancy 8-8

Configuring Redundancy 8-8 Virtual Console for Standby Supervisor Engine 8-10 Synchronizing the Supervisor Engine Configurations 8-11

Performing a Manual Switchover 8-13

Performing a Software Upgrade 8-13

Show 4 more labels / short text on this page
Contents · Using Telnet 7-5 · Using Ping 7-7 · Configuring ICMP 7-11
Page 12 of the Cisco Systems 4500 user manual — Contents
Page 12 · click to enlarge
Page 12

Manipulating Bootflash on the Redundant Supervisor Engine 8-15

C H A P T E R 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy 9-1

About NSF with SSO Supervisor Engine Redundancy 9-1

About Cisco IOS NSF-Aware and NSF-Capable Support 9-2 NSF with SSO Supervisor Engine Redundancy Overview 9-4 SSO Operation 9-4 NSF Operation 9-5 Cisco Express Forwarding 9-5 Routing Protocols 9-5

BGP Operation 9-6 OSPF Operation 9-7 IS-IS Operation 9-7 EIGRP Operation 9-8 NSF Guidelines and Restrictions 9-9

Configuring NSF with SSO Supervisor Engine Redundancy 9-10

Configuring SSO 9-10 Configuring CEF NSF 9-11 Verifying CEF NSF 9-11 Configuring BGP NSF 9-12 Verifying BGP NSF 9-12 Configuring OSPF NSF 9-13 Verifying OSPF NSF 9-13 Configuring IS-IS NSF 9-14 Verifying IS-IS NSF 9-15 Configuring EIGRP NSF 9-17 Verifying EIGRP NSF 9-17

C H A P T E R 10 Environmental Monitoring and Power Management 10-1

About Environmental Monitoring 10-1

Using CLI Commands to Monitor your Environment 10-2 Displaying Environment Conditions 10-2

Conditions on Supervisor Engines II-Plus to V-10GE 10-2 Conditions on Supervisor Engine 6-E and Supervisor Engine 6L-E 10-3 Emergency Actions 10-3 System Alarms 10-4

Power Management for the Catalyst 4500 Series Switches 10-6

Supported Power Supplies 10-7

Contents · Power Management 10-6

Page 13 of the Cisco Systems 4500 user manual — Contents
Page 13 · click to enlarge
Page 13

Power Management Modes for the Catalyst 4500 Switch 10-8 Selecting a Power Management Mode 10-8 Power Management Limitations in Catalyst 4500 Series Switches 10-9 Available Power for Catalyst 4500 Series Switches Power Supplies 10-13 Special Considerations for the 4200 W AC and 6000 W AC Power Supplies 10-14 Combined Mode Power Resiliency 10-16 Special Considerations for the 1400 W DC Power Supply 10-18 Special Considerations for the 1400 W DC SP Triple Input Power Supply 10-19 Insufficient Inline Power Handling for Supervisor Engine II-TS 10-19 Powering Down a Module 10-21 Power Management for the Catalyst 4948 Switches 10-22

Power Management Modes for the Catalyst 4948 Switch 10-22

IEEE 802.3az Energy Efficient Ethernet 10-22

Determining EEE Capability 10-23 Enabling EEE 10-23 Determining EEE Status 10-23

C H A P T E R 11 Configuring Power over Ethernet 11-1

About Power over Ethernet 11-1

Power Management Modes 11-3

Intelligent Power Management 11-4

Configuring Power Consumption for Powered Devices on an Interface 11-5

Displaying the Operational Status for an Interface 11-6

Displaying all PoE Detection and Removal Events 11-7

Displaying the PoE Consumed by a Module 11-8

PoE Policing and Monitoring 11-12

PoE Policing Modes 11-12 Configuring Power Policing on an Interface 11-13 Displaying Power Policing on an Interface 11-14 Configuring Errdisable Recovery 11-14

Enhanced Power PoE Support on the E-Series Chassis 11-15

C H A P T E R 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant 12-1

About Network Assistant 12-2

Community Overview 12-2 Clustering Overview 12-2

Contents · Hardware Requirements 11-2

Page 14 of the Cisco Systems 4500 user manual — Contents
Page 14 · click to enlarge
Page 14

Network Assistant-Related Parameters and Their Defaults 12-3

Network Assistant CLI Commands 12-3

Configuring Your Switch for Network Assistant 12-4

(Minimum) Required Configuration 12-4 (Additional) Configuration Required to Use Community 12-5 (Additional) Configuration Required to Use Clustering 12-5

Managing a Network Using Community 12-6

Candidate and Member Requirements 12-7 Automatic Discovery of Candidates and Members 12-7 Community Names 12-8 Hostnames 12-8 Passwords 12-8 Communication Protocols 12-8 Access Modes in Network Assistant 12-9 Community Information 12-9 Adding Devices 12-9

Converting a Cluster into a Community 12-10

Managing a Network Using Cluster 12-11

Understanding Switch Clusters 12-11

Cluster Command Switch Requirements 12-11 Network Assistant and VTY 12-12 Candidate Switch and Cluster Member Switch Requirements 12-12 Using the CLI to Manage Switch Clusters 12-13

Configuring Network Assistant in Community or Cluster Mode 12-13

Configuring Network Assistant on a Networked Switch in Community Mode 12-13 Configuring Network Assistant in a Networked Switch in Cluster Mode 12-17

C H A P T E R 13 Configuring VLANs, VTP, and VMPS 13-1

About VLANs 13-1 VLAN Configuration Guidelines and Restrictions 13-3

VLAN Ranges 13-3 Configurable Normal-Range VLAN Parameters 13-4 VLAN Default Configuration 13-4 Configuring VLANs 13-5

Configuring VLANs in Global Configuration Mode 13-6 Assigning a Layer 2 LAN Interface to a VLAN 13-7

VLAN Trunking Protocol 13-7

Contents · VLANs 13-1 · About VTP 13-8

Page 15 of the Cisco Systems 4500 user manual — Contents
Page 15 · click to enlarge
Page 15

Understanding the VTP Domain 13-8 Understanding VTP Modes 13-9 Understanding VTP Advertisements 13-9 Understanding VTP Versions 13-9 Understanding VTP Pruning 13-11 VTP Configuration Guidelines and Restrictions 13-12 VTP Default Configuration 13-13 Configuring VTP 13-14

Configuring VTP Global Parameters 13-14 Configuring the VTP Mode 13-16 Starting a Takeover 13-19 Displaying VTP Statistics 13-19 Displaying VTP Devices in a Domain 13-20

VLAN Membership Policy Server 13-20

Understanding the VMPS Server 13-21 Security Modes for VMPS Server 13-22 Fallback VLAN 13-23 Illegal VMPS Client Requests 13-23 Overview of VMPS Clients 13-23

Understanding Dynamic VLAN Membership 13-23 Default VMPS Client Configuration 13-24 Configuring a Switch as a VMPS Client 13-24 Administering and Monitoring the VMPS 13-28 Troubleshooting Dynamic Port VLAN Membership 13-29 Dynamic Port VLAN Membership Configuration Example 13-29 VMPS Database Configuration File Example 13-32

C H A P T E R 14 Configuring IP Unnumbered Interface 14-1

About IP Unnumbered Interface Support 14-1

IP Unnumbered Interface Support with DHCP Server and Relay Agent 14-2 DHCP Option 82 14-2 IP Unnumbered Interface with Connected Host Polling 14-3

IP Unnumbered Configuration Guidelines and Restrictions 14-3

Configuring IP Unnumbered Interface Support with DHCP Server 14-4

Configuring IP Unnumbered Interface Support on LAN and VLAN Interfaces 14-4 Configuring IP Unnumbered Interface Support on a Range of Ethernet VLANs 14-5

Configuring IP Unnumbered Interface Support with Connected Host Polling 14-5

Displaying IP Unnumbered Interface Settings 14-6

Contents · About VMPS 13-21

Page 16 of the Cisco Systems 4500 user manual — C H A P T E R 16 Configuring SmartPort Macros 16-1
Page 16 · click to enlarge
Page 16

Troubleshooting IP Unnumbered Interface 14-7

C H A P T E R 15 Configuring Layer 2 Ethernet Interfaces 15-1

About Layer 2 Ethernet Switching 15-1

Layer 2 Ethernet Switching 15-2

Switching Frames Between Segments 15-2 Building the MAC Address Table 15-2 VLAN Trunks 15-3

Encapsulation Types 15-3 Layer 2 Interface Modes 15-4

Default Layer 2 Ethernet Interface Configuration 15-4

Layer 2 Interface Configuration Guidelines and Restrictions 15-5

Configuring Ethernet Interfaces for Layer 2 Switching 15-5

Configuring an Ethernet Interface as a Layer 2 Trunk 15-6 Configuring an Interface as a Layer 2 Access Port 15-8 Clearing Layer 2 Configuration 15-9

C H A P T E R 17 Configuring Auto SmartPort Macros 17-1

About Auto SmartPorts 17-1

Configuring Auto SmartPorts 17-2

Enabling Auto SmartPorts 17-3 Auto SmartPorts Default Configuration 17-3 Auto SmartPorts Configuration Guidelines 17-4 Configuring Auto SmartPorts Built-in Macro Parameters 17-6 Configuring User-Defined Event Triggers 17-7

802.1X-Based Event Trigger 17-7 MAC Address-Based Event Trigger 17-8 Configuring Mapping Between User-Defined Triggers and Built-in Macros 17-9 Configuring Auto SmartPorts User-Defined Macros 17-9

Displaying Auto SmartPorts 17-13

C H A P T E R 16 Configuring SmartPort Macros 16-1

About SmartPort Macros and Static SmartPort 16-1

Configuring SmartPort Macros 16-2

Passing Parameters Through the Macro 16-3

Macro Parameter Help 16-3 Default SmartPort Macro Configuration 16-4

Contents · Related Documents 14-8

Page 17 of the Cisco Systems 4500 user manual — Contents
Page 17 · click to enlarge
Page 17

cisco-global 16-4 cisco-desktop 16-4 cisco-phone 16-5 cisco-router 16-5 cisco-switch 16-5 SmartPort Macro Configuration Guidelines 16-6 Creating SmartPort Macros 16-8 Applying SmartPort Macros 16-9

cisco-global 16-10 cisco-desktop 16-11 cisco-phone 16-11 cisco-switch 16-12 cisco-router 16-13

Displaying SmartPort Macros 16-14

Configuring Static SmartPort Macros 16-14

Default Static SmartPort Configuration 16-14 Static SmartPort Configuration Guidelines 16-15 Applying Static SmartPort Macros 16-15

C H A P T E R 18 Configuring STP and MST 18-1

Understanding the Bridge ID 18-2

Bridge Priority Value 18-2 Extended System ID 18-3 STP MAC Address Allocation 18-3 Bridge Protocol Data Units 18-3 Election of the Root Bridge 18-4 STP Timers 18-4 Creating the STP Topology 18-5 STP Port States 18-5 MAC Address Allocation 18-6 STP and IEEE 802.1Q Trunks 18-6 Per-VLAN Rapid Spanning Tree 18-6

Default STP Configuration 18-7

Enabling STP 18-8 Enabling the Extended System ID 18-9 Configuring the Root Bridge 18-10 Configuring a Secondary Root Switch 18-12

Contents · About STP 18-1 · Configuring STP 18-7

Page 18 of the Cisco Systems 4500 user manual — Contents
Page 18 · click to enlarge
Page 18

Configuring STP Port Priority 18-13 Configuring STP Port Cost 18-15 Configuring the Bridge Priority of a VLAN 18-17 Configuring the Hello Time 18-17 Configuring the Maximum Aging Time for a VLAN 18-18 Configuring the Forward-Delay Time for a VLAN 18-19 Disabling Spanning Tree Protocol 18-20 Enabling Per-VLAN Rapid Spanning Tree 18-20

Specifying the Link Type 18-21 Restarting Protocol Migration 18-21

IEEE 802.1s MST 18-22 IEEE 802.1w RSTP 18-23

RSTP Port Roles 18-24 RSTP Port States 18-24 MST-to-SST Interoperability 18-24 Common Spanning Tree 18-25 MST Instances 18-26 MST Configuration Parameters 18-26 MST Regions 18-26

MST Region Overview 18-26 Boundary Ports 18-27 IST Master 18-27 Edge Ports 18-27 Link Type 18-28 Message Age and Hop Count 18-28 MST-to-PVST+ Interoperability 18-28

MST Configuration Restrictions and Guidelines 18-29

Enabling MST 18-29 Configuring MST Instance Parameters 18-31 Configuring MST Instance Port Parameters 18-32 Restarting Protocol Migration 18-33 Displaying MST Configurations 18-33

C H A P T E R 19 Configuring Flex Links and MAC Address-Table Move Update 19-1

About Flex Links 19-1

Flex Links 19-2 VLAN Flex Links Load Balancing and Support 19-2

Contents · About MST 18-22 · Configuring MST 18-29

Page 19 of the Cisco Systems 4500 user manual — Contents
Page 19 · click to enlarge
Page 19

Flex Links Failover Actions 19-3

MAC Address-Table Move Update 19-4

Configuring Flex Links 19-5

Default Configuration 19-5 Configuration Guidelines 19-6 Configuring Flex Links 19-6 Configuring VLAN Load Balancing on Flex Links 19-8

Configuring MAC Address-Table Move Update 19-10

Default Configuration 19-10 Configuration Guidelines 19-10 Configuring the MAC Address-Table Move Update Feature 19-10

Configuring a Switch to Send MAC Address-Table Move Updates 19-10 Configuring a Switch to Receive MAC Address-Table Move Updates 19-12

Monitoring Flex Links and the MAC Address-Table Move Update 19-12

C H A P T E R 20 Configuring Resilient Ethernet Protocol 20-1

Link Integrity 20-4 Fast Convergence 20-4 VLAN Load Balancing 20-4 Spanning Tree Interaction 20-6 REP Ports 20-6

Default REP Configuration 20-7 REP Configuration Guidelines 20-7 Configuring the REP Administrative VLAN 20-8 Configuring REP Interfaces 20-9 Setting Manual Preemption for VLAN Load Balancing 20-13 Configuring SNMP Traps for REP 20-14

C H A P T E R 21 Configuring Optional STP Features 21-1

About Root Guard 21-2

Enabling Root Guard 21-2

About Loop Guard 21-3

Enabling Loop Guard 21-5

About EtherChannel Guard 21-6

Show 4 more labels / short text on this page
Contents · About REP 20-1 · Configuring REP 20-7 · Monitoring REP 20-14
Page 20 of the Cisco Systems 4500 user manual — Contents
Page 20 · click to enlarge
Page 20

Enabling EtherChannel Guard (Optional) 21-6

About BPDU Guard 21-8

Enabling BPDU Guard 21-9

About PortFast BPDU Filtering 21-9

Enabling PortFast BPDU Filtering 21-10

C H A P T E R 22 Configuring EtherChannel and Link State Tracking 22-1

Port Channel Interfaces 22-2 Configuring EtherChannels 22-3

EtherChannel Configuration Overview 22-3 Manual EtherChannel Configuration 22-3 PAgP EtherChannel Configuration 22-3 IEEE 802.3ad LACP EtherChannel Configuration 22-4 Load Balancing 22-5

EtherChannel Configuration Guidelines and Restrictions 22-5

Configuring Layer 3 EtherChannels 22-6

Creating Port Channel Logical Interfaces 22-7 Configuring Physical Interfaces as Layer 3 EtherChannels 22-7 Configuring Layer 2 EtherChannels 22-10 Configuring LACP Standalone or Independent Mode 22-12 Configuring the LACP System Priority and System ID 22-13 Configuring EtherChannel Load Balancing 22-14 Removing an Interface from an EtherChannel 22-15 Removing an EtherChannel 22-15

Displaying EtherChannel to a Virtual Switch System 22-16

Understanding VSS Client 22-16

Virtual Switch System 22-16 Dual-Active Scenarios 22-16 Dual-Active Detection Using Enhanced PAgP 22-16 Displaying EtherChannel Links to VSS 22-18

Show 9 more labels / short text on this page
Contents · About PortFast 21-7 · Enabling PortFast 21-7 · About UplinkFast 21-11 · Enabling UplinkFast 21-12 · About BackboneFast 21-14 · Enabling BackboneFast 21-16 · About EtherChannel 22-2 · Configuring EtherChannel 22-6
Page 21 of the Cisco Systems 4500 user manual — Contents
Page 21 · click to enlarge
Page 21

Understanding Link-State Tracking 22-18

Configuring Link-State Tracking 22-21

Default Link-State Tracking Configuration 22-21 Link-State Tracking Configuration Guidelines 22-21 Configuring Link-State Tracking 22-21 Displaying Link-State Tracking Status 22-22

C H A P T E R 23 Configuring IGMP Snooping and Filtering 23-1

About IGMP Snooping 23-1

Immediate-Leave Processing 23-3 IGMP Configurable-Leave Timer 23-4 IGMP Snooping Querier 23-4 Explicit Host Tracking 23-4

Configuring IGMP Snooping 23-5

Default IGMP Snooping Configuration 23-5 Enabling IGMP Snooping Globally 23-6 Enabling IGMP Snooping on a VLAN 23-6 Configuring Learning Methods 23-7

Configuring PIM/DVMRP Learning 23-7 Configuring CGMP Learning 23-7 Configuring a Static Connection to a Multicast Router 23-8 Enabling IGMP Immediate-Leave Processing 23-8 Configuring the IGMP Leave Timer 23-9 Configuring IGMP Snooping Querier 23-10 Configuring Explicit Host Tracking 23-11 Configuring a Host Statically 23-11 Suppressing Multicast Flooding 23-12

IGMP Snooping Interface Configuration 23-12 IGMP Snooping Switch Configuration 23-13

Displaying IGMP Snooping Information 23-14

Displaying Querier Information 23-15 Displaying IGMP Host Membership Information 23-15 Displaying Group Information 23-16 Displaying Multicast Router Interfaces 23-17 Displaying MAC Address Multicast Entries 23-18 Displaying IGMP Snooping Information on a VLAN Interface 23-18 Displaying IGMP Snooping Querier Information 23-19

Configuring IGMP Filtering 23-20

Default IGMP Filtering Configuration 23-20

Contents

Page 22 of the Cisco Systems 4500 user manual — Contents
Page 22 · click to enlarge
Page 22

Configuring IGMP Profiles 23-21 Applying IGMP Profiles 23-22 Setting the Maximum Number of IGMP Groups 23-23

Displaying IGMP Filtering Configuration 23-24

C H A P T E R 24 Configuring IPv6 MLD Snooping 24-1

About MLD Snooping 24-1

MLD Messages 24-2 MLD Queries 24-3 Multicast Client Aging 24-3 Multicast Router Discovery 24-3 MLD Reports 24-4 MLD Done Messages and Immediate-Leave 24-4 Topology Change Notification Processing 24-4

Configuring IPv6 MLD Snooping 24-5

Default MLD Snooping Configuration 24-5 MLD Snooping Configuration Guidelines 24-6 Enabling or Disabling MLD Snooping 24-6 Configuring a Static Multicast Group 24-7 Configuring a Multicast Router Port 24-7 Enabling MLD Immediate Leave 24-8 Configuring MLD Snooping Queries 24-9 Disabling MLD Listener Message Suppression 24-10

Displaying MLD Snooping Information 24-11

C H A P T E R 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling 25-1

About 802.1Q Tunneling 25-2

Configuring 802.1Q Tunneling 25-3

802.1Q Tunneling Configuration Guidelines 25-3 Native VLANs 25-4 System MTU 25-5 802.1Q Tunneling and Other Features 25-5 Configuring an 802.1Q Tunneling Port 25-6

About VLAN Mapping 25-7

Deployment Example 25-7 Mapping Customer VLANs to Service-Provider VLANs 25-9

Configuring VLAN Mapping 25-9

Default VLAN Mapping Configuration 25-9 VLAN Mapping Configuration Guidelines 25-10

Contents

Page 23 of the Cisco Systems 4500 user manual — C H A P T E R 28 Configuring UDLD 28-1
Page 23 · click to enlarge
Page 23

Configuring VLAN Mapping 25-11

One-to-One Mapping 25-11 Traditional Q-in-Q on a Trunk Port 25-12 Selective Q-in-Q on a Trunk Port 25-12

About Layer 2 Protocol Tunneling 25-13

Configuring Layer 2 Protocol Tunneling 25-15

Default Layer 2 Protocol Tunneling Configuration 25-16 Layer 2 Protocol Tunneling Configuration Guidelines 25-16 Configuring Layer 2 Tunneling 25-17

Monitoring and Maintaining Tunneling Status 25-19

C H A P T E R 26 Configuring CDP 26-1

Enabling CDP Globally 26-2 Displaying the CDP Global Configuration 26-2 Enabling CDP on an Interface 26-3 Displaying the CDP Interface Configuration 26-3 Monitoring and Maintaining CDP 26-3

C H A P T E R 27 Configuring LLDP, LLDP-MED, and Location Service 27-1

About LLDP, LLDP-MED, and Location Service 27-1

LLDP 27-1 LLDP-MED 27-2 Location Service 27-3

Configuring LLDP and LLDP-MED, and Location Service 27-4

Default LLDP Configuration 27-4 Configuring LLDP Characteristics 27-5 Disabling and Enabling LLDP Globally 27-6 Disabling and Enabling LLDP on an Interface 27-7 Configuring LLDP-MED TLVs 27-8 Configuring Network-Policy Profile 27-9 Configuring LLDP Power Negotiation 27-10 Configuring Location TLV and Location Service 27-11

Monitoring and Maintaining LLDP, LLDP-MED, and Location Service 27-13

C H A P T E R 28 Configuring UDLD 28-1

Show 4 more labels / short text on this page
Contents · About CDP 26-1 · Configuring CDP 26-2 · About UDLD 28-1
Page 24 of the Cisco Systems 4500 user manual — C H A P T E R 29 Configuring Unidirectional Ethernet 29-1
Page 24 · click to enlarge
Page 24

UDLD Topology 28-2 Fast UDLD Topology 28-2 Operation Modes 28-3 Default States for UDLD 28-3

Default UDLD Configuration 28-4

Configuring UDLD on the Switch 28-4

Fast UDLD Guidelines and Restrictions 28-4 Enabling UDLD Globally 28-5 Enabling UDLD on Individual Interfaces 28-6 Disabling UDLD on Individual Interfaces 28-7 Disabling UDLD on a Fiber-Optic Interface 28-7 Configuring a UDLD Probe Message Interval Globally 28-8 Configuring a Fast UDLD Probe Message Interval per Interface 28-8 Resetting Disabled LAN Interfaces 28-8

Displaying UDLD Link Status 28-9

C H A P T E R 29 Configuring Unidirectional Ethernet 29-1

About Unidirectional Ethernet 29-1

Configuring Unidirectional Ethernet 29-2

C H A P T E R 30 Configuring Layer 3 Interfaces 30-1

About Layer 3 Interfaces 30-1

Logical Layer 3 VLAN Interfaces 30-2 Physical Layer 3 Interfaces 30-2 Understanding SVI Autostate Exclude 30-3 Understanding Layer 3 Interface Counters 30-3

Configuring Logical Layer 3 VLAN Interfaces 30-6

Configuring VLANs as Layer 3 Interfaces 30-7

Configuring SVI Autostate Exclude 30-7 Configuring IP MTU Sizes 30-9 Configuring Layer 3 Interface Counters 30-10

Configuring Physical Layer 3 Interfaces 30-12

Configuring EIGRP Stub Routing 30-13

About EIGRP Stub Routing 30-13 Configuring EIGRP Stub Routing 30-14

Dual-Homed Remote Topology 30-15 EIGRP Stub Routing Configuration Tasks 30-18

Contents · Configuration Guidelines 30-5

Page 25 of the Cisco Systems 4500 user manual — Contents
Page 25 · click to enlarge
Page 25

Monitoring and Maintaining EIGRP 30-19 EIGRP Configuration Examples 30-19

Route Summarization Example 30-19 Route Authentication Example 30-20 Stub Routing Example 30-20

C H A P T E R 31 Configuring Cisco Express Forwarding 31-1

CEF Features 31-1 Forwarding Information Base 31-2 Adjacency Tables 31-2

Adjacency Discovery 31-2 Adjacency Resolution 31-2 Adjacency Types That Require Special Handling 31-3 Unresolved Adjacency 31-3

Catalyst 4500 Series Switch Implementation of CEF 31-3

Hardware and Software Switching 31-4

Hardware Switching 31-5 Software Switching 31-5 Load Balancing 31-6 Software Interfaces 31-6

CEF Configuration Restrictions 31-6

Enabling CEF 31-6 Configuring Load Balancing for CEF 31-7

Configuring Per-Destination Load Balancing 31-7 Configuring Load Sharing Hash Function 31-7 Viewing CEF Information 31-8

Monitoring and Maintaining CEF 31-8

Displaying IP Statistics 31-8

C H A P T E R 32 Configuring Unicast Reverse Path Forwarding 32-1

About Unicast Reverse Path Forwarding 32-2

How Unicast RPF Works 32-2 Implementing Unicast RPF 32-4

Security Policy and Unicast RPF 32-5 Where to Use Unicast RPF 32-5 Routing Table Requirements 32-7 Where Not to Use Unicast RPF 32-7

Contents · About CEF 31-1 · Configuring CEF 31-6

Page 26 of the Cisco Systems 4500 user manual — C H A P T E R 33 Configuring IP Multicast 33-1
Page 26 · click to enlarge
Page 26

Unicast RPF with BOOTP and DHCP 32-8 Restrictions 32-8 Limitation 32-8 Related Features and Technologies 32-8 Prerequisites to Configuring Unicast RPF 32-9

Unicast RPF Configuration Tasks 32-9

Configuring Unicast RPF 32-9 Verifying Unicast RPF 32-10

Monitoring and Maintaining Unicast RPF 32-11

Unicast RPF Configuration ExampleInbound and Outbound Filters 32-12

C H A P T E R 33 Configuring IP Multicast 33-1

About IP Multicast 33-1

IP Multicast Protocols 33-2

Internet Group Management Protocol 33-3 Protocol-Independent Multicast 33-3 Rendezvous Point (RP) 33-4 IGMP Snooping 33-4 IP Multicast Implementation on the Catalyst 4500 Series Switch 33-5

CEF, MFIB, and Layer 2 Forwarding 33-5 IP Multicast Tables 33-7 Hardware and Software Forwarding 33-9 Non-Reverse Path Forwarding Traffic 33-10 Multicast Fast Drop 33-11 Multicast Forwarding Information Base 33-12 S/M, 224/4 33-13 Restrictions on Using Bidirectional PIM 33-13

Configuring IP Multicast Routing 33-13

Default Configuration in IP Multicast Routing 33-13 Enabling IP Multicast Routing 33-14 Enabling PIM on an Interface 33-14

Enabling Dense Mode 33-15 Enabling Sparse Mode 33-15 Enabling Sparse-Dense Mode 33-15 Enabling Bidirectional Mode 33-16 Enabling PIM-SSM Mapping 33-17 Configuring a Rendezvous Point 33-17

Configuring Auto-RP 33-17 Configuring a Single Static RP 33-20

Contents

Page 27 of the Cisco Systems 4500 user manual — C H A P T E R 35 Configuring Policy-Based Routing 35-1
Page 27 · click to enlarge
Page 27

Load Splitting of IP Multicast Traffic 33-22

Monitoring and Maintaining IP Multicast Routing 33-23

Displaying System and Network Statistics 33-23 Displaying the Multicast Routing Table 33-23 Displaying IP MFIB 33-26 Displaying Bidirectional PIM Information 33-27 Displaying PIM Statistics 33-27 Clearing Tables and Databases 33-28

PIM Dense Mode Example 33-28 PIM Sparse Mode Example 33-28 Bidirectional PIM Mode Example 33-29 Sparse Mode with a Single Static RP Example 33-29 Sparse Mode with Auto-RP: Example 33-30

C H A P T E R 34 Configuring ANCP Client 34-1

About ANCP Client 34-1

Enabling and Configuring ANCP Client 34-2

Identifying a Port with the ANCP Protocol 34-2

Example 1 34-3 Example 2 34-4 Identifying a Port with DHCP Option 82 34-4

ANCP Guidelines and Restrictions 34-5

C H A P T E R 35 Configuring Policy-Based Routing 35-1

About Policy-Based Routing 35-1

Understanding Route-Maps 35-2 PBR on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E 35-5 PBR Flow Switching 35-5 Using Policy-Based Routing 35-5

Policy-Based Routing Configuration Tasks 35-6

Enabling PBR 35-6 Enabling Local PBR 35-8 Unsupported Commands 35-8

Policy-Based Routing Configuration Examples 35-8

Equal Access 35-8 Differing Next Hops 35-9

Contents · Configuration Examples 33-28 · About PBR 35-2

Page 28 of the Cisco Systems 4500 user manual — C H A P T E R 36 Configuring VRF-lite 36-1
Page 28 · click to enlarge
Page 28

C H A P T E R 36 Configuring VRF-lite 36-1

Default VRF-lite Configuration 36-3

VRF-lite Configuration Guidelines 36-4

Configuring VRF-Aware Services 36-6

Configuring the User Interface for ARP 36-6 Configuring the User Interface for PING 36-6 Configuring the User Interface for SNMP 36-7 Configuring the User Interface for uRPF 36-7 Configuring the User Interface for Syslog 36-8 Configuring the User Interface for Traceroute 36-8 Configuring the User Interface for FTP and TFTP 36-8 Configuring the User Interface for Telnet and SSH 36-9 Configuring the User Interface for NTP 36-9

Configuring Per-VRF for TACACS+ Servers 36-9

Configuring Multicast VRFs 36-11

Configuring a VPN Routing Session 36-12

Configuring BGP PE to CE Routing Sessions 36-12

VRF-lite Configuration Example 36-13

Configuring Switch S8 36-14 Configuring Switch S20 36-15 Configuring Switch S11 36-16 Configuring the PE Switch S3 36-16

Displaying VRF-lite Status 36-17

C H A P T E R 37 Configuring Quality of Service 37-1

Prioritization 37-2 QoS Terminology 37-4 Basic QoS Model 37-6 Classification 37-6

Classification Based on QoS ACLs 37-9 Classification Based on Class Maps and Policy Maps 37-9 Policing and Marking 37-10

Internal DSCP Values 37-13

Show 5 more labels / short text on this page
Contents · Deny ACE 35-9 · About VRF-lite 36-2 · Configuring VRFs 36-5 · About QoS 37-2
Page 29 of the Cisco Systems 4500 user manual — Contents
Page 29 · click to enlarge
Page 29

Mapping Tables 37-14 Queueing and Scheduling 37-14

Active Queue Management 37-14 Sharing Link Bandwidth Among Transmit Queues 37-15 Strict Priority / Low Latency Queueing 37-15 Traffic Shaping 37-16 Packet Modification 37-16 Per-Port Per-VLAN QoS 37-16 QoS and Software Processed Packets 37-16

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE 37-17

Default QoS Configuration 37-18 Configuration Guidelines 37-19 Enabling QoS Globally 37-20 Enabling IP DSCP Rewrite 37-20 Configuring a Trusted Boundary to Ensure Port Security 37-21 Enabling Dynamic Buffer Limiting 37-22

Enabling DBL Globally 37-23 Selectively Enable DBL 37-23 Creating Named Aggregate Policers 37-26 Configuring a QoS Policy 37-28

Overview of QoS Policy Configuration 37-28 Configuring a Class Map (Optional) 37-29 Configuring a Policy Map 37-31 Attaching a Policy Map to an Interface 37-35 Configuring CoS Mutation 37-36 Configuring User-Based Rate-Limiting 37-37

Examples 37-38 Configuring Hierarchical Policers 37-41 Enabling Per-Port Per-VLAN QoS 37-43 Enabling or Disabling QoS on an Interface 37-46 Configuring VLAN-Based QoS on Layer 2 Interfaces 37-46 Configuring the Trust State of Interfaces 37-48 Configuring the CoS Value for an Interface 37-49 Configuring DSCP Values for an Interface 37-49 Configuring Transmit Queues 37-50

Mapping DSCP Values to Specific Transmit Queues 37-51 Allocating Bandwidth Among Transmit Queues 37-51 Configuring Traffic Shaping of Transmit Queues 37-52 Configuring a High Priority Transmit Queue 37-53 Configuring DSCP Maps 37-53

Contents

Page 30 of the Cisco Systems 4500 user manual — Contents
Page 30 · click to enlarge
Page 30

Configuring the CoS-to-DSCP Map 37-53 Configuring the Policed-DSCP Map 37-54 Configuring the DSCP-to-CoS Map 37-55

Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE 37-56 Generated Auto-QoS Configuration 37-57 Effects of Auto-QoS on the Configuration 37-58 Configuration Guidelines 37-58 Enabling Auto-QoS for VoIP 37-59 Displaying Auto-QoS Information 37-60 Auto-QoS Configuration Example 37-60

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E 37-63 MQC-Based QoS Configuration 37-63 MQC-Based QoS on the Supervisor Engine 6-E and 6L-E 37-64 Platform-Supported Classification Criteria and QoS Features 37-65 Platform Hardware Capabilities 37-66 Prerequisites for Applying a QoS Service Policy 37-66 Restrictions for Applying a QoS Service Policy 37-66 Classification 37-66

Classification Statistics 37-67 Policing 37-67

Implementing Policing 37-68 Platform Restrictions 37-68 Marking Network Traffic 37-69

Information about Marking Network Traffic 37-69 Marking Action Drivers 37-71 Traffic Marking Procedure Flowchart 37-72 Restrictions for Marking Network Traffic 37-72 Multi-attribute Marking Support 37-73 Hardware Capabilities for Marking 37-73 Configuring the Policy-Map Marking Action 37-73 Marking Statistics 37-75 Shaping, Sharing (Bandwidth), Priority Queuing, Queue-Limiting and DBL 37-75

Shaping 37-76 Sharing (Bandwidth) 37-78 Priority Queuing 37-80 Queue-limiting 37-82 Queue Allocation Failure 37-83 Active Queue Management by Using Dynamic Buffer Limiting 37-84

Contents

Page 31 of the Cisco Systems 4500 user manual — C H A P T E R 39 Configuring Private VLANs 39-1
Page 31 · click to enlarge
Page 31

Transmit Queue Statistics 37-85 Policy Associations 37-85 Software QoS 37-87 Configuring CoS Mutation 37-88 Configuring System Queue Limit 37-89

Configuring Auto-QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E 37-90

C H A P T E R 38 Configuring Voice Interfaces 38-1

About Voice Interfaces 38-1

Cisco IP Phone Voice Traffic 38-2 Cisco IP Phone Data Traffic 38-2

Configuring a Port to Connect to a Cisco 7960 IP Phone 38-3

Configuring Voice Ports for Voice and Data Traffic 38-3

Overriding the CoS Priority of Incoming Frames 38-5

C H A P T E R 39 Configuring Private VLANs 39-1

About Private VLANs 39-1

Purpose of a PVLAN 39-2 PVLAN Terminology 39-3 PVLANs across Multiple Switches 39-5

Standard Trunk Ports 39-5 Isolated PVLAN Trunk Ports 39-6 Promiscuous PVLAN Trunk Ports 39-7 PVLAN Modes Over Gigabit Etherchannel 39-8 Private-VLAN Interaction with Other Features 39-8

PVLANs and VLAN ACL/QoS 39-8 PVLANs and Unicast, Broadcast, and Multicast Traffic 39-9 PVLANs and SVIs 39-10 Per-Virtual Port Error-Disable on PVLANs 39-10

Basic PVLAN Configuration Procedure 39-12 Default Private-VLAN Configuration 39-12 PVLAN Configuration Guidelines and Restrictions 39-12 Configuring a VLAN as a PVLAN 39-15 Associating a Secondary VLAN with a Primary VLAN 39-16 Configuring a Layer 2 Interface as a PVLAN Promiscuous Port 39-17

Show 4 more labels / short text on this page
Contents · Configuring Power 38-5 · PVLAN Commands 39-10 · Configuring PVLANs 39-11
Page 32 of the Cisco Systems 4500 user manual — Contents
Page 32 · click to enlarge
Page 32

Configuring a Layer 2 Interface as a PVLAN Host Port 39-18 Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port 39-19 Configuring a Layer 2 Interface as a Promiscuous PVLAN Trunk Port 39-21 Permitting Routing of Secondary VLAN Ingress Traffic 39-23 Configuring PVLAN over EtherChannel 39-24

Configuring a Layer 2 EtherChannel 39-24 Configuring a Layer 2 Etherchannel as a PVLAN Promiscuous Port 39-24 Configuring a Layer 2 EtherChannel as a PVLAN Host Port 39-26 Configuring a Layer 2 EtherChannel as an Isolated PVLAN Trunk Port 39-27 Configuring a Layer 2 Etherchannel as a Promiscuous PVLAN Trunk Port 39-28

C H A P T E R 40 Configuring 802.1X Port-Based Authentication 40-1

About 802.1X Port-Based Authentication 40-1

Device Roles 40-2 802.1X and Network Access Control 40-3 Authentication Initiation and Message Exchange 40-4 Ports in Authorized and Unauthorized States 40-5 802.1X Host Mode 40-6 Single-Host Mode 40-7 Multiple-Hosts Mode 40-7 Multidomain Authentication Mode 40-7 Multiauthentication Mode 40-8 Pre-authentication Open Access 40-8 802.1X Violation Mode 40-8 Using MAC Move 40-9 Using MAC Replace 40-9 Using 802.1X with VLAN Assignment 40-10 Using 802.1X for Guest VLANs 40-11

Usage Guidelines for Using 802.1X Authentication with Guest VLANs 40-11 Usage Guidelines for Using 802.1X Authentication with Guest VLANs on Windows-XP Hosts 40-12 Using 802.1X with MAC Authentication Bypass 40-12

Feature Interaction 40-13 Using 802.1X with Web-Based Authentication 40-14 Using 802.1X with Inaccessible Authentication Bypass 40-14 Using 802.1X with Unidirectional Controlled Port 40-15

Unidirectional State 40-16 Bidirectional State 40-16 Using 802.1X with VLAN User Distribution 40-16

Contents · Deployment Example 40-17

Page 33 of the Cisco Systems 4500 user manual — Contents
Page 33 · click to enlarge
Page 33

Using 802.1X with Authentication Failed VLAN Assignment 40-17

Usage Guidelines for Using Authentication Failed VLAN Assignment 40-18 Using 802.1X with Port Security 40-19 Using 802.1X Authentication with ACL Assignments and Redirect URLs 40-20

Cisco Secure ACS and AV Pairs for URL-Redirect 40-20 ACLs 40-21 Using 802.1X with RADIUS-Provided Session Timeouts 40-21 Using 802.1X with Voice VLAN Ports 40-22 Using Multiple Domain Authentication and Multiple Authentication 40-22 802.1X Supplicant and Authenticator Switches with Network Edge Access Topology 40-24 Deployment 40-24 How 802.1X Fails on a Port 40-25 Supported Topologies 40-25

Configuring 802.1X Port-Based Authentication 40-26

Default 802.1X Configuration 40-27 802.1X Configuration Guidelines 40-28 Enabling 802.1X Authentication 40-28 Configuring Switch-to-RADIUS-Server Communication 40-32 Configuring Multiple Domain Authentication and Multiple Authorization 40-34 Configuring 802.1X Authentication with ACL Assignments and Redirect URLs 40-38

Downloadable ACL 40-38 URL-Redirect 40-40 Configuring a Downloadable Policy 40-43 Configuring 802.1X Authentication with Per-User ACL and Filter-ID ACL 40-44

Per-User ACL and Filter-ID ACL 40-44 Configuring a Per-User ACL and Filter-ID ACL 40-50 Configuring RADIUS-Provided Session Timeouts 40-51 Configuring MAC Move 40-53 Configuring MAC Replace 40-53 Configuring Violation Action 40-54 Configuring 802.1X with Guest VLANs 40-55 Configuring 802.1X with MAC Authentication Bypass 40-58 Configuring 802.1X with Inaccessible Authentication Bypass 40-60 Configuring 802.1X with Unidirectional Controlled Port 40-63 Configuring 802.1X with VLAN User Distribution 40-65

Configuring the Switch 40-65 ACS Configuration 40-67 Configuring 802.1X with Authentication Failed 40-68 Configuring 802.1X with Voice VLAN 40-70 Configuring 802.1X with VLAN Assignment 40-71

Contents

Page 34 of the Cisco Systems 4500 user manual — Contents
Page 34 · click to enlarge
Page 34

Cisco ACS Configuration for VLAN Assignment 40-72 Enabling Fallback Authentication 40-73 Enabling Periodic Reauthentication 40-78 Enabling Multiple Hosts 40-80 Changing the Quiet Period 40-81 Changing the Switch-to-Client Retransmission Time 40-82 Setting the Switch-to-Client Frame-Retransmission Number 40-83 Configuring an Authenticator and a Supplicant Switch with NEAT 40-85

Configuring Switch as an Authenticator 40-85 Cisco AV Pair Configuration 40-86 Configuring Switch as a Supplicant 40-89 Configuring NEAT with ASP 40-90 Configuration Guidelines 40-90 Manually Reauthenticating a Client Connected to a Port 40-91 Initializing the 802.1X Authentication State 40-91 Removing 802.1X Client Information 40-92 Resetting the 802.1X Configuration to the Default Values 40-92

Controlling Switch Access with RADIUS 40-92

Understanding RADIUS 40-93 RADIUS Operation 40-94 RADIUS Change of Authorization 40-94

Overview 40-95 Change-of-Authorization Requests 40-95 CoA Request Response Code 40-96 CoA Request Commands 40-97 Configuring RADIUS 40-100

Default RADIUS Configuration 40-100 Identifying the RADIUS Server Host 40-100 Configuring RADIUS Login Authentication 40-103 Defining AAA Server Groups 40-105 Configuring RADIUS Authorization for User Privileged Access and Network Services 40-107 Starting RADIUS Accounting 40-108 Configuring Settings for All RADIUS Servers 40-109 Configuring the Switch to Use Vendor-Specific RADIUS Attributes 40-109 Configuring the Switch for Vendor-Proprietary RADIUS Server Communication 40-111 Configuring CoA on the Switch 40-112 Monitoring and Troubleshooting CoA Functionality 40-113 Configuring RADIUS Server Load Balancing 40-113 Displaying the RADIUS Configuration 40-113

Displaying 802.1X Statistics and Status 40-113

Contents

Page 35 of the Cisco Systems 4500 user manual — C H A P T E R 42 Configuring Web-Based Authentication 42-1
Page 35 · click to enlarge
Page 35

Displaying Authentication Details 40-114

Determining the Authentication Methods Registered with the Auth Manager 40-114 Displaying the Auth Manager Summary for an Interface 40-114 Displaying the Summary of All Auth Manager Sessions on the Switch 40-114 Displaying a Summary of All Auth Manager Sessions on the Switch Authorized for a Specified Authentication Method 40-115 Verifying the Auth Manager Session for an Interface 40-115 Displaying MAB Details 40-117 EPM Logging 40-117

C H A P T E R 41 Configuring the PPPoE Intermediate Agent 41-1

About PPPoE Intermediate Agent 41-2 Enabling PPPoE IA on a Switch 41-2 Configuring the Access Node Identifier for PPPoE IA on a Switch 41-2 Configuring the Identifier String, Option, and Delimiter for PPPoE IA on an Switch 41-3 Configuring the Generic Error Message for PPPoE IA on an Switch 41-3 Enabling PPPoE IA on an Interface 41-4 Configuring the PPPoE IA Trust Setting on an Interface 41-4 Configuring PPPoE IA Rate Limiting Setting on an Interface 41-4 Configuring PPPoE IA Vendor-tag Stripping on an Interface 41-5 Configuring PPPoE IA Circuit-ID and Remote-ID on an Interface 41-5 Enabling PPPoE IA for a Specific VLAN on an Interface 41-5 Configuring PPPoE IA Circuit-ID and Remote-ID for a VLAN on an Interface 41-6

Displaying Configuration Parameters 41-6

Clearing Packet Counters 41-8

Debugging PPPoE Intermediate Agent 41-8

C H A P T E R 42 Configuring Web-Based Authentication 42-1

About Web-Based Authentication 42-1

Device Roles 42-2 Host Detection 42-2 Session Creation 42-3 Authentication Process 42-3 Customization of the Authentication Proxy Web Pages 42-4 Web-Based Authentication Interactions with Other Features 42-4

Show 5 more labels / short text on this page
Contents · Related Documents 41-2 · RFCs 41-2 · Troubleshooting Tips 41-9 · Port Security 42-4
Page 36 of the Cisco Systems 4500 user manual — C H A P T E R 43 Configuring Port Security 43-1
Page 36 · click to enlarge
Page 36

LAN Port IP 42-5 Gateway IP 42-5 ACLs 42-5 Context-Based Access Control 42-5 802.1X Authentication 42-5 EtherChannel 42-5 Switchover 42-5

Configuring Web-Based Authentication 42-6

Default Web-Based Authentication Configuration 42-6 Web-Based Authentication Configuration Guidelines and Restrictions 42-6 Web-Based Authentication Configuration Task List 42-7 Configuring the Authentication Rule and Interfaces 42-7 Configuring AAA Authentication 42-9 Configuring Switch-to-RADIUS-Server Communication 42-9 Configuring the HTTP Server 42-11

Customizing the Authentication Proxy Web Pages 42-11 Specifying a Redirection URL for Successful Login 42-13 Configuring the Web-Based Authentication Parameters 42-13 Removing Web-Based Authentication Cache Entries 42-14

Displaying Web-Based Authentication Status 42-14

C H A P T E R 43 Configuring Port Security 43-1

Port Security Commands 43-2

About Port Security 43-3

Secure MAC Addresses 43-4 Maximum Number of Secure MAC Addresses 43-4 Aging Secure MAC Addresses 43-5 Sticky Addresses on a Port 43-5 Violation Actions 43-6 Invalid Packet Handling 43-7

Configuring Port Security on Access Ports 43-7

Configuring Port Security on Access Ports 43-7 Examples of Port Security on Access Ports 43-10

Example 1: Setting Maximum Number of Secure Addresses 43-11 Example 2: Setting a Violation Mode 43-11 Example 3: Setting the Aging Timer 43-11 Example 4: Setting the Aging Timer Type 43-12 Example 5: Configuring a Secure MAC Address 43-12 Example 6: Configuring Sticky Port Security 43-13

Contents

Page 37 of the Cisco Systems 4500 user manual — Contents
Page 37 · click to enlarge
Page 37

Example 7: Setting a Rate Limit for Bad Packets 43-13 Example 8: Clearing Dynamic Secure MAC Addresses 43-14

Configuring Port Security on PVLAN Ports 43-14

Configuring Port Security on an Isolated Private VLAN Host Port 43-14 Example of Port Security on an Isolated Private VLAN Host Port 43-16 Configuring Port Security on a Private VLAN Promiscuous Port 43-16 Example of Port Security on a Private VLAN Promiscuous Port 43-17

Configuring Port Security on Trunk Ports 43-17

Configuring Trunk Port Security 43-17 Examples of Trunk Port Security 43-19

Example 1: Configuring a Maximum Limit of Secure MAC Addresses for All VLANs 43-19 Example 2: Configuring a Maximum Limit of Secure MAC Addresses for Specific VLANs 43-20 Example 3: Configuring Secure MAC Addresses in a VLAN Range 43-20 Trunk Port Security Configuration Guidelines and Restrictions 43-21

Port Mode Changes 43-22

Configuring Port Security on Voice Ports 43-22

Configuring Port Security on Voice Ports 43-23 Examples of Voice Port Security 43-25

Example 1: Configuring Maximum MAC Addresses for Voice and Data VLANs 43-25 Example 2: Configuring Sticky MAC Addresses for Voice and Data VLANs 43-26 Voice Port Security Configuration Guidelines and Restrictions 43-27

Displaying Port Security Settings 43-27

Examples of Security Settings 43-28

Example 1: Displaying Security Settings for the Entire Switch 43-28 Example 2: Displaying Security Settings for an Interface 43-29 Example 3: Displaying All Secure Addresses for the Entire Switch 43-29 Example 4: Displaying a Maximum Number of MAC Addresses on an Interface 43-30 Example 5: Displaying Security Settings on an Interface for a VLAN Range 43-30 Example 6: Displaying Secured MAC Addresses and Aging Information on an Interface 43-30 Example 7: Displaying Secured MAC Addresses for a VLAN Range on an Interface 43-31

Configuring Port Security with Other Features/Environments 43-31

DHCP and IP Source Guard 43-31 802.1X Authentication 43-32 Configuring Port Security in a Wireless Environment 43-32 Configuring Port Security over Layer 2 EtherChannel 43-33

Port Security Configuration Guidelines and Restrictions 43-33

C H A P T E R 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS 44-1

Configuring Control Plane Policing 44-1

Contents

Page 38 of the Cisco Systems 4500 user manual — Contents
Page 38 · click to enlarge
Page 38

About Control Plane Policing 44-2 General Guidelines for Control Plane Policing 44-3 Default Configuration 44-4 Configuring CoPP for Control Plane Traffic 44-4 Configuring CoPP for Data Plane and Management Plane Traffic 44-6 Control Plane Policing Configuration Guidelines and Restrictions 44-8

All supervisor engines 44-8 Do not apply to Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E 44-8

Configuring Layer 2 Control Packet QoS 44-11

Understanding Layer 2 Control Packet QoS 44-11 Default Configuration 44-11 Enabling Layer 2 Control Packet QoS 44-12 Disabling Layer 2 Control Packet QoS 44-13 Layer 2 Control Packet QoS Configuration Examples 44-14 Layer 2 Control Packet QoS Guidelines and Restrictions 44-16

Policing IPv6 Control Traffic 44-17

C H A P T E R 46 Configuring Dynamic ARP Inspection 46-1

About Dynamic ARP Inspection 46-1

ARP Cache Poisoning 46-2 Purpose of Dynamic ARP Inspection 46-2 Interface Trust State, Security Coverage and Network Configuration 46-3 Relative Priority of Static Bindings and DHCP Snooping Entries 46-4 Logging of Dropped Packets 46-4 Rate Limiting of ARP Packets 46-4 Port Channels Function 46-5

Configuring Dynamic ARP Inspection 46-5

Configuring Dynamic ARP Inspection in DHCP Environments 46-5 DAI Configuration Example 46-7

Switch A 46-7 Switch B 46-9 Configuring ARP ACLs for Non-DHCP Environments 46-11 Configuring the Log Buffer 46-14 Limiting the Rate of Incoming ARP Packets 46-16 Performing Validation Checks 46-19

Contents · Monitoring CoPP 44-9

Page 39 of the Cisco Systems 4500 user manual — Contents
Page 39 · click to enlarge
Page 39

C H A P T E R 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts 45-1

About DHCP Snooping 45-1

Trusted and Untrusted Sources 45-2 About the DHCP Snooping Database Agent 45-2 Option 82 Data Insertion 45-4

Configuring DHCP Snooping 45-6

Default Configuration for DHCP Snooping 45-7 Enabling DHCP Snooping 45-7 Enabling DHCP Snooping on the Aggregration Switch 45-9 Enabling DHCP Snooping and Option 82 45-10 Enabling DHCP Snooping on Private VLAN 45-12 Configuring DHCP Snooping on Private VLAN 45-12 Configuring DHCP Snooping with an Ethernet Channel Group 45-12 Enabling the DHCP Snooping Database Agent 45-13 Limiting the Rate of Incoming DHCP Packets 45-13 Configuration Examples for the Database Agent 45-15

Example 1: Enabling the Database Agent 45-15 Example 2: Reading Binding Entries from a TFTP File 45-17 Example 3: Adding Information to the DHCP Snooping Database 45-18

Displaying DHCP Snooping Information 45-18

Displaying a Binding Table 45-19 Displaying the DHCP Snooping Configuration 45-19

About IP Source Guard 45-19

Configuring IP Source Guard 45-20

Configuring IP Source Guard on Private VLANs 45-22

Displaying IP Source Guard Information 45-22

Displaying IP Source Binding Information 45-23

Configuring IP Source Guard for Static Hosts 45-24

About IP Source Guard for Static Hosts 45-24 Configuring IPSG for Static Hosts on a Layer 2 Access Port 45-25 IPSG for Static Hosts on a PVLAN Host Port 45-28

C H A P T E R 47 Configuring Network Security with ACLs 47-1

Overview 47-2 Supported Features That Use ACLs 47-3 Router ACLs 47-3 Port ACLs 47-4

Contents · About ACLs 47-2

Page 40 of the Cisco Systems 4500 user manual — Contents
Page 40 · click to enlarge
Page 40

Dynamic ACLs 47-5 VLAN Maps 47-5

Hardware and Software ACL Support 47-6

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor Engine V-10GE 47-7

TCAM Programming Algorithms 47-8 Changing the Programming Algorithm 47-9 Resizing the TCAM Regions 47-11 Troubleshooting High CPU Due to ACLs 47-12 Selecting Mode of Capturing Control Packets 47-13

Guidelines and Restrictions 47-14 Selecting Control Packet Capture 47-15

TCAM Programming and ACLs for Supervisor Engine 6-E and Supervisor Engine 6L-E 47-16

Layer 4 Operators in ACLs 47-16

Restrictions for Layer 4 Operations 47-16 Configuration Guidelines for Layer 4 Operations 47-17 How ACL Processing Impacts CPU 47-18

Configuring Unicast MAC Address Filtering 47-20

Configuring Named MAC Extended ACLs 47-20

Configuring EtherType Matching 47-22

Configuring Named IPv6 ACLs 47-23

Applying IPv6 ACLs to a Layer 3 Interface 47-24

Configuring VLAN Maps 47-24

VLAN Map Configuration Guidelines 47-25 Creating and Deleting VLAN Maps 47-26

Examples of ACLs and VLAN Maps 47-26 Applying a VLAN Map to a VLAN 47-29 Using VLAN Maps in Your Network 47-29

Denying Access to a Server on Another VLAN 47-31

Displaying VLAN Access Map Information 47-32

Using VLAN Maps with Router ACLs 47-32

Guidelines for Using Router ACLs and VLAN Maps on the Same VLAN 47-32 Examples of Router ACLs and VLAN Maps Applied to VLANs 47-33

ACLs and Switched Packets 47-33 ACLs and Routed Packets 47-34

Creating a PACL 47-35 PACL Configuration Guidelines 47-36

Contents · Configuring PACLs 47-35 · xxxviii

Page 41 of the Cisco Systems 4500 user manual — C H A P T E R 48 Support for IPv6 48-1
Page 41 · click to enlarge
Page 41

Removing the Requirement for a Port ACL 47-36

Configuration Restrictions 47-37 Debugging Considerations 47-37 Webauth Fallback 47-37 Configuring IPv4, IPv6, and MAC ACLs on a Layer 2 Interface 47-38 Using PACL with Access-Group Mode 47-39 Configuring Access-group Mode on Layer 2 Interface 47-39 Applying ACLs to a Layer 2 Interface 47-40 Displaying an ACL Configuration on a Layer 2 Interface 47-40

Using PACL with VLAN Maps and Router ACLs 47-41

Configuring RA Guard 47-43

Introduction 47-43 Deployment 47-44 Configuring RA Guard 47-45 Examples 47-45 Usage Guidelines 47-46

C H A P T E R 48 Support for IPv6 48-1

Finding Feature Information 48-1

IPv6 Addressing and Basic Connectivity 48-2 DHCP 48-3 Security 48-3 QoS 48-3 Management 48-4 Multicast 48-4 Static Routes 48-5 First-Hop Redundancy Protocols 48-5 Unicast Routing 48-5

RIP 48-5 OSPF 48-6 EIGRP 48-6 IS-IS 48-6 Multiprotocol BGP 48-6 Tunneling 48-7

IPv6 Default States 48-7

C H A P T E R 49 Port Unicast and Multicast Flood Blocking 49-1

About Flood Blocking 49-1

Contents · About IPv6 48-1

Page 42 of the Cisco Systems 4500 user manual — C H A P T E R 50 Configuring Storm Control 50-1
Page 42 · click to enlarge
Page 42

Configuring Port Blocking 49-1

Blocking Flooded Traffic on an Interface 49-2 Resuming Normal Forwarding on a Port 49-3

C H A P T E R 50 Configuring Storm Control 50-1

About Storm Control 50-1

Hardware-Based Storm Control Implementation 50-2 Software-Based Storm Control Implementation 50-3

Enabling Broadcast Storm Control 50-3

Enabling Multicast Storm Control 50-4

Enabling Multicast Suppression on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E 50-5 Enabling Multicast Suppression on the WS-X4515, WS-X4014, and WS-X4013+ Supervisor Engines 50-5 Enabling Multicast Suppression on All Other Supervisor Engines 50-6

Disabling Broadcast Storm Control 50-6

Disabling Multicast Storm Control 50-7

Displaying Storm Control 50-8

C H A P T E R 51 Configuring SPAN and RSPAN 51-1

About SPAN and RSPAN 51-1

SPAN and RSPAN Concepts and Terminology 51-3

SPAN Session 51-3 Traffic Types 51-3 Source Port 51-4 Destination Port 51-5 VLAN-Based SPAN 51-5 SPAN Traffic 51-6 SPAN and RSPAN Session Limits 51-6 Default SPAN and RSPAN Configuration 51-6

SPAN Configuration Guidelines and Restrictions 51-7 Configuring SPAN Sources 51-8 Configuring SPAN Destinations 51-9 Monitoring Source VLANs on a Trunk Interface 51-9 Configuration Scenario 51-10 Verifying a SPAN Configuration 51-10

CPU Port Sniffing 51-10

Contents · Configuring SPAN 51-7 · Encapsulation Configuration 51-12

Page 43 of the Cisco Systems 4500 user manual — Contents
Page 43 · click to enlarge
Page 43

Access List Filtering 51-13

ACL Configuration Guidelines 51-13 Configuring Access List Filtering 51-14

Packet Type Filtering 51-15

RSPAN Configuration Guidelines 51-16 Creating an RSPAN Session 51-17 Creating an RSPAN Destination Session 51-19 Creating an RSPAN Destination Session and Enabling Ingress Traffic 51-20 Removing Ports from an RSPAN Session 51-21 Specifying VLANs to Monitor 51-22 Specifying VLANs to Filter 51-23

Displaying SPAN and RSPAN Status 51-25

C H A P T E R 52 Configuring System Message Logging 52-1

About System Message Logging 52-1

Configuring System Message Logging 52-2

System Log Message Format 52-2 Default System Message Logging Configuration 52-3 Disabling Message Logging 52-4 Setting the Message Display Destination Device 52-5 Synchronizing Log Messages 52-6 Enabling and Disabling Timestamps on Log Messages 52-7 Enabling and Disabling Sequence Numbers in Log Messages (Optional) 52-7 Defining the Message Severity Level (Optional) 52-8 Limiting Syslog Messages Sent to the History Table and to SNMP (Optional) 52-9 Configuring UNIX Syslog Servers 52-10

Logging Messages to a UNIX Syslog Daemon 52-10 Configuring the UNIX System Logging Facility 52-11

Displaying the Logging Configuration 52-12

C H A P T E R 53 Onboard Failure Logging (OBFL) 53-1

Prerequisites for OBFL 53-1

Restrictions for OBFL 53-2

Information About OBFL 53-2

Overview of OBFL 53-2

Show 4 more labels / short text on this page
Contents · Ingress Packets 51-12 · Configuration Example 51-16 · Configuring RSPAN 51-16
Page 44 of the Cisco Systems 4500 user manual — C H A P T E R 55 Configuring NetFlow-lite 55-1
Page 44 · click to enlarge
Page 44

Information about Data Collected by OBFL 53-2

OBFL Data Overview 53-2 Temperature 53-3 Operational Uptime 53-4 Interrupts 53-7 Message Logging 53-8

Default Settings for OBFL 53-9

Configuration Examples for OBFL 53-10

Enabling OBFL Message Logging: Example 53-10 OBFL Message Log: Example 53-10 OBFL Component Uptime Report: Example 53-11 OBFL Report for a Specific Time: Example 53-11

C H A P T E R 54 Configuring SNMP 54-1

SNMP Versions 54-2 SNMP Manager Functions 54-3 SNMP Agent Functions 54-4 SNMP Community Strings 54-4 Using SNMP to Access MIB Variables 54-4 SNMP Notifications 54-5

Default SNMP Configuration 54-5 SNMP Configuration Guidelines 54-6 Disabling the SNMP Agent 54-7 Configuring Community Strings 54-7 Configuring SNMP Groups and Users 54-9 Configuring SNMP Notifications 54-11 Setting the Agent Contact and Location Information 54-14 Limiting TFTP Servers Used Through SNMP 54-15 SNMP Examples 54-15

Displaying SNMP Status 54-16

C H A P T E R 55 Configuring NetFlow-lite 55-1

About NetFlow Packet Sampling 55-2

System-wide Restrictions 55-2 Interface-level Restrictions 55-2

Show 5 more labels / short text on this page
Contents · Enabling OBFL 53-9 · About SNMP 54-1 · Configuring SNMP 54-5 · Feature Interaction 55-2
Page 45 of the Cisco Systems 4500 user manual — C H A P T E R 56 Configuring NetFlow 56-1
Page 45 · click to enlarge
Page 45

Configuring NetFlow Packet Sampling 55-2

Configuring Information about the External Collector 55-3

Example 55-3 Usage Guidelines 55-4 Configuring Sampling Parameters 55-4

Example 55-5 Usage Guidelines 55-5 Activating Sampling on an Interface or VLAN 55-5

Examples 55-6 Usage Guidelines 55-7

C H A P T E R 56 Configuring NetFlow 56-1

About NetFlow Statistics Collection 56-2

NDE Versions 56-2 Information Derived from Hardware 56-3 Information Derived from Software 56-4 Assigning the Input and Output Interface and AS Numbers 56-4

Assigning the Inferred Fields 56-4 Assigning the Output Interface and Output-Related Inferred Fields 56-4 Assigning the Input Interface and Input-Related Inferred Fields 56-4 Feature Interaction of NetFlow Statistics with UBRL and Microflow Policing 56-5 VLAN Statistics 56-5

Configuring NetFlow Statistics Collection 56-6

Checking for Required Hardware 56-6 Enabling NetFlow Statistics Collection 56-7 Configuring Switched/Bridged IP Flows 56-8 Exporting NetFlow Statistics 56-9 Managing NetFlow Statistics Collection 56-9 Configuring an Aggregation Cache 56-10

Verifying Aggregation Cache Configuration and Data Export 56-10 Configuring a NetFlow Minimum Prefix Mask for Router-Based Aggregation 56-11

Configuring the Minimum Mask of a Prefix Aggregation Scheme 56-11 Configuring the Minimum Mask of a Destination-Prefix Aggregation Scheme 56-11 Configuring the Minimum Mask of a Source-Prefix Aggregation Scheme 56-12 Monitoring and Maintaining Minimum Masks for Aggregation Schemes 56-12 Configuring NetFlow Aging Parameters 56-12

Show 4 more labels / short text on this page
Contents · Monitor-level Restrictions 55-2 · Display Commands 55-8 · Clear Commands 55-9
Page 46 of the Cisco Systems 4500 user manual — Contents
Page 46 · click to enlarge
Page 46

NetFlow Statistics Collection Configuration Example 56-13

NetFlow Configuration Examples 56-14

NetFlow Enabling Scheme Examples 56-14 NetFlow Aggregation Configuration Examples 56-14

Autonomous System Configuration 56-15 Destination Prefix Configuration 56-15 Prefix Configuration 56-15 Protocol Port Configuration 56-15 Source Prefix Configuration 56-16 NetFlow Minimum Prefix Mask Router-Based Aggregation Scheme Examples 56-16

Prefix Aggregation Scheme 56-16 Destination-Prefix Aggregation Scheme 56-16 Source-Prefix Aggregation Scheme 56-16

C H A P T E R 57 Configuring Ethernet OAM and CFM 57-1

About Ethernet CFM 57-2

Ethernet CFM and OAM Definitions 57-2 CFM Domain 57-2 Maintenance Associations and Maintenance Points 57-4 CFM Messages 57-5 Crosscheck Function and Static Remote MEPs 57-5 SNMP Traps and Fault Alarms 57-5 Configuration Error List 57-6 IP SLAs Support for CFM 57-6

Configuring Ethernet CFM 57-6

Ethernet CFM Default Configuration 57-7 Ethernet CFM Configuration Guidelines 57-7 Configuring the CFM Domain 57-8 Configuring Ethernet CFM Crosscheck 57-11 Configuring Static Remote MEP 57-13 Configuring a Port MEP 57-14 Configuring SNMP Traps 57-16 Configuring Fault Alarms 57-16 Configuring IP SLAs CFM Operation 57-18

Manually Configuring an IP SLAs CFM Probe or Jitter Operation 57-19 Configuring an IP SLAs Operation with Endpoint Discovery 57-21 Configuring CFM on C-VLAN (Inner VLAN) 57-24

Feature Support and Behavior 57-26 Platform Restrictions and Limitations 57-26

Contents

Page 47 of the Cisco Systems 4500 user manual — Contents
Page 47 · click to enlarge
Page 47

Understanding CFM ITU-T Y.1731 Fault Management 57-27

Y.1731 Terminology 57-27 Alarm Indication Signals 57-28 Ethernet Remote Defect Indication 57-28 Multicast Ethernet Loopback 57-29

Configuring Y.1731 Fault Management 57-29

Default Y.1731 Configuration 57-29 Configuring ETH-AIS 57-29 Using Multicast Ethernet Loopback 57-31

Managing and Displaying Ethernet CFM Information 57-31

About Ethernet OAM Protocol 57-33

OAM Features 57-34 OAM Messages 57-34

Enabling and Configuring Ethernet OAM 57-35

Ethernet OAM Default Configuration 57-35 Ethernet OAM Configuration Guidelines 57-35 Enabling Ethernet OAM on an Interface 57-36 Enabling Ethernet OAM Remote Loopback 57-37 Configuring Ethernet OAM Link Monitoring 57-38 Configuring Ethernet OAM Remote Failure Indications 57-42 Configuring Ethernet OAM Templates 57-45

Displaying Ethernet OAM Protocol Information 57-49

Ethernet CFM and Ethernet OAM Interaction 57-51

Configuring Ethernet OAM Interaction with CFM 57-51

Configuring the OAM Manager 57-52 Enabling Ethernet OAM 57-52 Example: Configuring Ethernet OAM and CFM 57-53

C H A P T E R 58 Configuring Y.1731 (AIS and RDI) 58-1

AIS and RDI Terminology 58-1

About Y.1731 58-2

Server MEP 58-2 Alarm Indication Signal 58-2 Ethernet Remote Defect Indication 58-3

Configuring Y.1731 58-4

Y.1731 Configuration Guidelines 58-4 Configuring AIS Parameters 58-5 Clearing MEP from the AIS Defect Condition 58-6 Clearing SMEP from the AIS Defect Condition 58-6

Contents

Page 48 of the Cisco Systems 4500 user manual — C H A P T E R 59 Configuring Call Home 59-1
Page 48 · click to enlarge
Page 48

Displaying Y.1731 Information 58-6

C H A P T E R 59 Configuring Call Home 59-1

About Call Home 59-2

Obtaining Smart Call Home 59-2

Configuring Call Home 59-3

Configuring Contact Information 59-4 Configuring Destination Profiles 59-5

Copying a Destination Profile 59-6 Subscribing to Alert Groups 59-6

Configuring Periodic Notification 59-8 Configuring Message Severity Threshold 59-8 Configuring Syslog Pattern Matching 59-9 Configuring General E-Mail Options 59-9 Enabling Call Home 59-10 Testing Call Home Communications 59-10

Sending a Call Home Test Message Manually 59-11 Sending a Call Home Alert Group Message Manually 59-11 Sending a Request for an Analysis and Report 59-12 Sending the Output of a Command 59-13 Configuring and Enabling Smart Call Home 59-13

Displaying Call Home Configuration Information 59-14

Call Home Default Settings 59-18

Alert Group Trigger Events and Commands 59-18

Syslog Alert Notification in Long-Text Format Example 59-25 Syslog Alert Notification in XML Format Example 59-28

C H A P T E R 60 Configuring Cisco IOS IP SLA Operations 60-1

Cisco IP SLA Commands 60-2

About Cisco IOS IP SLA 60-2

Using Cisco IOS IP SLAs to Measure Network Performance 60-3 IP SLAs Responder and IP SLAs Control Protocol 60-4 Response Time Computation for IP SLAs 60-5 IP SLAs Operation Scheduling 60-6 IP SLAs Operation Threshold Monitoring 60-6

Configuring IP SLAs Operations 60-7

IP SLA Default Configuration 60-7

Contents · Message Contents 59-21

Page 49 of the Cisco Systems 4500 user manual — C H A P T E R 63 ROM Monitor 63-1
Page 49 · click to enlarge
Page 49

IP SLA Configuration Guidelines 60-7 Configuring the IP SLAs Responder 60-8 Analyzing IP Service Levels by Using the UDP Jitter Operation 60-9 Analyzing IP Service Levels by Using the ICMP Echo Operation 60-11

Monitoring IP SLAs Operations 60-13

C H A P T E R 61 Configuring RMON 61-1

Default RMON Configuration 61-3 Configuring RMON Alarms and Events 61-3 Configuring RMON Collection on an Interface 61-5

Displaying RMON Status 61-6

C H A P T E R 62 Performing Diagnostics 62-1

Configuring Online Diagnostics 62-1

Configuring On-Demand Online Diagnostics 62-2 Scheduling Online Diagnostics 62-2 Performing Diagnostics 62-3

Starting and Stopping Online Diagnostic Tests 62-3 Displaying Online Diagnostic Tests and Test Results 62-4 Displaying Data Path Online Diagnostics Test Results 62-7 Line Card Online Diagnostics 62-8 Troubleshooting with Online Diagnostics 62-8 Power-On Self-Test Diagnostics 62-10

Overview of Power-On Self-Test Diagnostics 62-10 POST Result Example 62-11 Power-On Self-Test Results for Supervisor Engine V-10GE 62-15

POST on the Active Supervisor Engine 62-16 POST Results on an Active Supervisor Engine Example 62-16 POST on a Standby Supervisor Engine 62-18 Display of the POST on a Standby Supervisor Engine Example 62-19 Troubleshooting the Test Failures 62-21

C H A P T E R 63 ROM Monitor 63-1

Entering the ROM Monitor 63-1

ROM Monitor Commands 63-2

ROM Monitor Command Descriptions 63-3

Contents · About RMON 61-1 · Configuring RMON 61-3

Page 50 of the Cisco Systems 4500 user manual — C H A P T E R 65 Configuring MIB Support 65-1
Page 50 · click to enlarge
Page 50

Changing the Configuration Register Manually 63-3 Changing the Configuration Register Using Prompts 63-4

Exiting the ROM Monitor 63-6

C H A P T E R 64 Configuring WCCP Version 2 Services 64-1

Overview 64-2 Hardware Acceleration 64-2 Understanding WCCP Configuration 64-3 WCCP Features 64-4

HTTP and Non-HTTP Services Support 64-4 Multiple Routers Support 64-4 MD5 Security 64-4 Web Content Packet Return 64-5

Restrictions for WCCP 64-5

Configuring a Service Group Using WCCP 64-6

Specifying a Web Cache Service 64-8 Using Access Lists for a WCCP Service Group 64-8 Setting a Password for a Router and Cache Engines 64-9

Verifying and Monitoring WCCP Configuration Settings 64-9

WCCP Configuration Examples 64-10

Performing a General WCCP Configuration Example 64-10 Running a Web Cache Service Example 64-10 Running a Reverse Proxy Service Example 64-10 Running TCP-Promiscuous Service Example 64-11 Running Redirect Access-List Example 64-11 Using Access Lists Example 64-11 Setting a Password for a Switch and Content Engines Example 64-11 Verifying WCCP Settings Example 64-12

C H A P T E R 65 Configuring MIB Support 65-1

Determining MIB Support for Cisco IOS Releases 65-1

Using Cisco IOS MIB Tools 65-2

Show 7 more labels / short text on this page
Contents · Configuration Register 63-3 · Console Download 63-4 · Error Reporting 63-5 · Debug Commands 63-5 · About WCCP 64-1 · Configuring WCCP 64-6
Page 51 of the Cisco Systems 4500 user manual — Acronyms and Abbreviations A-1
Page 51 · click to enlarge
Page 51

Downloading and Compiling MIBs 65-2

Guidelines for Working with MIBs 65-3 Downloading MIBs 65-3 Compiling MIBs 65-4

Enabling SNMP Support 65-4

Acronyms and Abbreviations A-1

I N D E X

Contents

Page 52 of the Cisco Systems 4500 user manual — Contents
Page 52 · click to enlarge
Page 52

Contents

Page 53 of the Cisco Systems 4500 user manual — Chapter Title Description
Page 53 · click to enlarge
Page 53
Cisco Systems 4500 — Preface diagram (page 53)
Fig. 2 · Preface

Preface

This preface describes who should read this document, how it is organized, and its conventions. The preface also tells you how to obtain Cisco documents, as well as how to obtain technical assistance.

Audience

This guide is for experienced network administrators who are responsible for configuring and maintaining Catalyst 4500 series switches.

Organization

This guide is organized into the following chapters:

Chapter Title Description

Chapter 1 Product Overview Presents an overview of the Cisco IOS software for the Catalyst 4500 series switches.

Chapter 2 Command-Line Interfaces Describes how to use the CLI.

Chapter 3 Configuring the Switch for the First Time

Describes how to perform a baseline configuration of the switch.

Chapter 4 Administering the Switch Describes how to administer the switch.

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Describes how to configure ISSU on the switch.

Chapter 6 Configuring Interfaces Describes how to configure non-layer-specific features on Fast Ethernet, Gigabit Ethernet, and 10-Gigabit Ethernet interfaces.

Chapter 7 Checking Port Status and Connectivity

Describes how to check module and interface status.

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Describes how to configure RPR and SSO on the Catalyst 4507R and 4510R switches.

Page 54 of the Cisco Systems 4500 user manual — Chapter Title Description
Page 54 · click to enlarge
Page 54

Chapter Title Description

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

Describes how to configure supervisor engine redundancy using Cisco nonstop forwarding (NSF) with stateful switchover (SSO).

Chapter 10 Environmental Monitoring and Power Management

Describes how to configure power management and environmental monitoring features.

Chapter 11 Configuring Power over Ethernet Describes how to configure Power over Ethernet (PoE).

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Describes how to install and configure Network Assistant and Embedded CiscoView.

Chapter 13 Configuring VLANs, VTP, and VMPS

Describes how to configure VLANs, VTP, and VMPS.

Chapter 14 Configuring IP Unnumbered Interface

Describes how to configure IP Unnumbered support.

Chapter 15 Configuring Layer 2 Ethernet Interfaces

Describes how to configure interfaces to support Layer 2 features, including VLAN trunks.

Chapter 16 Configuring SmartPort Macros Describes how to configure SmartPort macros.

Chapter 17 Configuring Auto SmartPort Macros

Describes how to configure Auto SmartPort Macros

Chapter 18 Configuring STP and MST Describes how to configure the Spanning Tree Protocol (STP) and the Multiple Spanning Tree (MST) protocol and explains how they work.

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update

Describes how to how to configure Flex Links on a switch.

Chapter 20 Configuring Resilient Ethernet Protocol

Describes how to configure Resilient Ethernet Protocol (REP).

Chapter 21 Configuring Optional STP Features

Describes how to configure the spanning-tree PortFast, UplinkFast, BackboneFast, and other STP features

Chapter 22 Configuring EtherChannel and Link State Tracking

Describes how to configure Layer 2 and Layer 3 EtherChannel port bundles.

Chapter 23 Configuring IGMP Snooping and Filtering

Describes how to configure Internet Group Management Protocol (IGMP) snooping.

Chapter 24 Configuring IPv6 MLD Snooping Describes how to configure IPv6 MLD Snooping.

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Describes how to configure 802.1Q and Layer 2 protocol Tunneling.

Chapter 26 Configuring CDP Describes how to configure the Cisco Discovery Protocol (CDP).

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

Describes how to configure Link Layer Discovery Protocol (LLDP).

Chapter 28 Configuring UDLD Describes how to configure the UniDirectional Link Detection (UDLD) protocol.

Preface

Page 55 of the Cisco Systems 4500 user manual — Chapter Title Description
Page 55 · click to enlarge
Page 55

Chapter Title Description

Chapter 29 Configuring Unidirectional Ethernet

Describes how to configure unidirectional Ethernet.

Chapter 30 Configuring Layer 3 Interfaces Describes how to configure interfaces to support Layer 3 features.

Chapter 31 Configuring Cisco Express Forwarding

Describes how to configure Cisco Express Forwarding (CEF) for IP unicast traffic.

Chapter 32 Configuring Unicast Reverse Path Forwarding

Describes how to configure Unicast Reverse Path Forwarding.

Chapter 33 Configuring IP Multicast Describes how to configure IP Multicast Multilayer Switching (MMLS).

Chapter 34 Configuring ANCP Client Describes how to configure ANCP.

Chapter 35 Configuring Policy-Based Routing

Describes how to configure policy-based routing.

Chapter 36 Configuring VRF-lite Describes how to configure multiple VPN routing/forwarding (multi-VRF) instances in customer edge (CE) devices.

Chapter 37 Configuring Quality of Service Describes how to configure quality of service (QoS).

Chapter 38 Configuring Voice Interfaces Describes how to configure voice interfaces.

Chapter 39 Configuring Private VLANs Describes how to set up and modify private VLANs.

Chapter 40 Configuring 802.1X Port-Based Authentication

Describes how to conf.igure 802.1X port-based authentication.

Chapter 41 Configuring the PPPoE Intermediate Agent

Describes how to configure PPPoE Intermediate Agent.

Chapter 42 Configuring Web-Based Authentication

Describes how to configure web-based authentication.

Chapter 43 Configuring Port Security Describes how to configure port security and trunk port security.

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Describes how to protect your Catalyst 4500 series switch using control plane policing (CoPP).

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Describes how to configure DHCP snooping and IP Source Guard.

Chapter 46 Configuring Dynamic ARP Inspection

Describes how to configure Dynamic ARP Inspection.

Chapter 47 Configuring Network Security with ACLs

Describes how to configure ACLS, VACLs, and MACLs.

Chapter 48 Support for IPv6 Describes the support for IPv6 on the switch.

Chapter 49 Port Unicast and Multicast Flood Blocking

Describes how to configure unicast flood blocking.

Chapter 50 Configuring Storm Control Describes how to configure storm control suppression.

Preface

Page 56 of the Cisco Systems 4500 user manual — Convention Description
Page 56 · click to enlarge
Page 56

Chapter Title Description

Chapter 51 Configuring SPAN and RSPAN Describes how to configure the Switched Port Analyzer (SPAN).

Chapter 52 Configuring System Message Logging

Describes how to configure system message logging.

Chapter 53 Onboard Failure Logging (OBFL) Describes how to configure OBFL.

Chapter 54 Configuring SNMP Describes how to configure the Simple Network Management Protocol (SNMP).

Chapter 55 Configuring NetFlow-lite Describes how to configure NetFlow-lite.

Chapter 56 Configuring NetFlow Describes how to configure NetFlow.

Chapter 57 Configuring Ethernet OAM and CFM

Describes how to configure Ethernet OAM and CFM.

Chapter 58 Configuring Y.1731 (AIS and RDI)

Describes how to configure Y.1731.

Chapter 59 Configuring Call Home Describes how to configure Call Home.

Chapter 60 Configuring Cisco IOS IP SLA Operations

Describes how to configure Cisco IOS IP SLA operations.

Chapter 61 Configuring RMON Describes how to configure Remote Network Monitoring (RMON).

Chapter 62 Performing Diagnostics Describes vaious types of diagnostics on the Catalyst 4500 series switch.

Chapter 64 Configuring WCCP Version 2 Services

Describes how to configure the Catalyst 4500 series switches to redirect traffic to cache engines (web caches) using the Web Cache Communication Protocol (WCCP), and describes how to manage cache engine clusters (cache farms).

Chapter 63 ROM Monitor Describes the ROM Monitor.

Chapter 65 Configuring MIB Support Describes how to configure configure SNMP and MIB support.

Appendix A Acronyms and Abbreviations Defines acronyms and abbreviations used in this book.

Conventions

This document uses the following typographical conventions:

Convention Description

boldface font Commands, command options, and keywords are in boldface.

italic font Command arguments for which you supply values are in italics.

[ ] Command elements in square brackets are optional.

{ x | y | z } Alternative keywords in command lines are grouped in braces and separated by vertical bars.

Preface

Page 57 of the Cisco Systems 4500 user manual — Hardware Documents
Page 57 · click to enlarge
Page 57

Convention Description

[ x | y | z ] Optional alternative keywords are grouped in brackets and separated by vertical bars.

string A nonquoted set of characters. Do not use quotation marks around the string because the string will include the quotation marks.

screen font System displays are in screen font.

Information you must enter verbatim is in boldface screen font.

italic screen font Arguments for which you supply values are in italic screen font.

This pointer highlights an important line of text in an example.

^ Represents the key labeled Control—for example, the key combination ^D in a screen display means hold down the Control key while you press the D key.

< > Nonprinting characters such as passwords are in angle brackets.

Related Documentation

Refer to the following documents for additional Catalyst 4500 series information:

  • Catalyst 4500 Series Switch Documentation Home

http://www.cisco.com/en/US/products/hw/switches/ps4324/tsd_products_support_series_home.ht mll

  • Catalyst 4900 Series Switch Documentation Home

http://www.cisco.com/en/US/products/ps6021/index.html

  • Cisco ME 4900 Series Ethernet Switches Documentation Home

http://www.cisco.com/en/US/products/ps7009/tsd_products_support_series_home.html

Hardware Documents

Installation guides and notes including specifications and relevant safety information are available at the following URLs:

Preface · boldface screen font

Page 58 of the Cisco Systems 4500 user manual — Software Documentation
Page 58 · click to enlarge
Page 58
  • Catalyst 4500 Series Switches Installation Guide

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/hardware/installation/guide/78-14409 -08/4500inst.html

  • Catalyst 4500 E-series Switches Installation Guide

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/hardware/catalyst4500e/installation/g uide/Eseries.html

  • For information about individual switching modules and supervisors, refer to the Catalyst 4500 Series Module Installation Guide at:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/hardware/configuration/notes/OL_25 315.html

  • Regulatory Compliance and Safety Information for the Catalyst 4500 Series Switches

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/hardware/regulatory/compliance/78_ 13233.html

  • Installation notes for specific supervisor engines or for accessory hardware are available at:

http://www.cisco.com/en/US/products/hw/switches/ps4324/prod_installation_guides_list.html

  • Catalyst 4900 and 4900M hardware installation information is available at:

http://www.cisco.com/en/US/products/ps6021/prod_installation_guides_list.html

  • Cisco ME 4900 Series Ethernet Switches installation information is available at:

http://www.cisco.com/en/US/products/ps7009/prod_installation_guides_list.html

Software Documentation

Software release notes, configuration guides, command references, and system message guides are available at the following URLs:

  • Catalyst 4500 release notes are available at:

http://www.cisco.com/en/US/products/hw/switches/ps4324/prod_release_notes_list.html

  • Catalyst 4900 release notes are available at:

http://www.cisco.com/en/US/products/ps6021/prod_release_notes_list.html

  • Cisco ME4900 4900 Series Ethernet Switch release notes are available at:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/release/note/OL_11511.html

Software documents for the Catalyst 4500 Classic, Catalyst 4500 E-Series, Catalyst 4900, and Cisco ME 4900 Series Ethernet Switches are available at the following URLs:

  • Catalyst 4500 Series Software Configuration Guide

http://www.cisco.com/en/US/products/hw/switches/ps4324/products_installation_and_configurati on_guides_list.html

  • Catalyst 4500 Series Software Command Reference

http://www.cisco.com/en/US/products/hw/switches/ps4324/prod_command_reference_list.html

  • Catalyst 4500 Series Software System Message Guide

http://www.cisco.com/en/US/products/hw/switches/ps4324/products_system_message_guides_list.html

Preface

Page 59 of the Cisco Systems 4500 user manual — License Issues
Page 59 · click to enlarge
Page 59

Cisco IOS Documentation

Platform- independent Cisco IOS documentation may also apply to the Catalyst 4500 and 4900 switches. These documents are available at the following URLs:

  • Cisco IOS configuration guides, Release 12.x

http://www.cisco.com/en/US/products/ps6350/products_installation_and_configuration_guides_list.html

  • Cisco IOS command references, Release 12.x

http://www.cisco.com/en/US/products/ps6350/prod_command_reference_list.html

You can also use the Command Lookup Tool at:

http://tools.cisco.com/Support/CLILookup/cltSearchAction.do

  • Cisco IOS system messages, version 12.x

http://www.cisco.com/en/US/products/ps6350/products_system_message_guides_list.html

You can also use the Error Message Decoder tool at:

http://www.cisco.com/pcgi-bin/Support/Errordecoder/index.cgi

Commands in Task Tables

Commands listed in task tables show only the relevant information for completing the task and not all available options for the command. For a complete description of a command, refer to the command in the Catalyst 4500 Series Switch Cisco IOS Command Reference.

Notices

The following notices pertain to this software license.

OpenSSL/Open SSL Project

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).

This product includes cryptographic software written by Eric Young (eay@cryptsoft.com).

This product includes software written by Tim Hudson (tjh@cryptsoft.com).

License Issues

The OpenSSL toolkit stays under a dual license; that is, both the conditions of the OpenSSL License and the original SSLeay license apply to the toolkit. See below for the actual license texts. Actually both licenses are BSD-style Open Source licenses. In case of any license issues related to OpenSSL please contact openssl-core@openssl.org.

OpenSSL License: Copyright © 1998-2007 The OpenSSL Project. All rights reserved.

Preface

Page 60 of the Cisco Systems 4500 user manual — Preface
Page 60 · click to enlarge
Page 60

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software must display the following acknowledgment: “This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit ( http://www.openssl.org/ )”.
4. The names “OpenSSL Toolkit” and “OpenSSL Project” must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact openssl-core@openssl.org.
5. Products derived from this software may not be called “OpenSSL” nor may “OpenSSL” appear in their names without prior written permission of the OpenSSL Project.
6. Redistributions of any form whatsoever must retain the following acknowledgment:

“This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)”.

THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT “AS IS”' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This product includes cryptographic software written by Eric Young (eay@cryptsoft.com). This product includes software written by Tim Hudson (tjh@cryptsoft.com).

Original SSLeay License: Copyright © 1995-1998 Eric Young (eay@cryptsoft.com). All rights reserved.

This package is an SSL implementation written by Eric Young (eay@cryptsoft.com).

The implementation was written so as to conform with Netscapes SSL.

This library is free for commercial and non-commercial use as long as the following conditions are adhered to. The following conditions apply to all code found in this distribution, be it the RC4, RSA, lhash, DES, etc., code; not just the SSL code. The SSL documentation included with this distribution is covered by the same copyright terms except that the holder is Tim Hudson (tjh@cryptsoft.com).

Copyright remains Eric Young’s, and as such any Copyright notices in the code are not to be removed. If this package is used in a product, Eric Young should be given attribution as the author of the parts of the library used. This can be in the form of a textual message at program startup or in documentation (online or textual) provided with the package.

Preface

Page 61 of the Cisco Systems 4500 user manual — Obtaining Documentation and Submitting a Service Request
Page 61 · click to enlarge
Page 61

Obtaining Documentation and Submitting a Service Request

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software must display the following acknowledgement:

“This product includes cryptographic software written by Eric Young (eay@cryptsoft.com)”.

The word ‘cryptographic’ can be left out if the routines from the library being used are not cryptography-related.

4. If you include any Windows specific code (or a derivative thereof) from the apps directory (application code) you must include an acknowledgement: “This product includes software written by Tim Hudson (tjh@cryptsoft.com)”.

THIS SOFTWARE IS PROVIDED BY ERIC YOUNG “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The license and distribution terms for any publicly available version or derivative of this code cannot be changed, that is, this code cannot be copied and put under another distribution license [including the GNU Public License].

Obtaining Documentation and Submitting a Service Request

For information on obtaining documentation, submitting a service request, and gathering additional information, see the monthly What’s New in Cisco Product Documentation, which also lists all new and revised Cisco technical documentation, at:

http://www.cisco.com/en/US/docs/general/whatsnew/whatsnew.html

Subscribe to the What’s New in Cisco Product Documentation as a Really Simple Syndication (RSS) feed and set content to be delivered directly to your desktop using a reader application. The RSS feeds are a free service and Cisco currently supports RSS Version 2.0.

Preface

Page 62 of the Cisco Systems 4500 user manual — Preface
Page 62 · click to enlarge
Page 62

Preface Obtaining Documentation and Submitting a Service Request

Page 63 of the Cisco Systems 4500 user manual — Layer 2 Software Features
Page 63 · click to enlarge
Page 63

C H A P T E R

Product Overview

This chapter provides an overview of Catalyst 4500 series switches and includes the following major sections:

  • Layer 2 Software Features, page 1-1
  • Layer 3 Software Features, page 1-11
  • Management Features, page 1-18
  • Security Features, page 1-23

Layer 2 Software Features

The following subsections describe the key Layer 2 switching software features on the Catalyst 4500 series switch:

  • 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling, page 1-2
  • Auto SmartPort Macros, page 1-2
  • Cisco Discovery Protocol, page 1-3
  • Cisco Group Management Protocol (CGMP) server, page 1-3
  • EtherChannel Bundles, page 1-3
  • Ethernet CFM, page 1-3
  • Ethernet OAM Protocol, page 1-3
  • Flex Links and MAC Address-Table Move Update, page 1-4
  • Internet Group Management Protocol (IGMP) Snooping, page 1-4
  • IPv6 Multicast Listen Discovery (MLD) and Multicast Listen Discovery snooping, page 1-4
  • Jumbo Frames, page 1-5
  • Link Aggregation Control Protocol, page 1-5
Page 64 of the Cisco Systems 4500 user manual — Auto SmartPort Macros
Page 64 · click to enlarge
Page 64

Chapter 1 Product Overview Layer 2 Software Features

  • Link Layer Discovery Protocol, page 1-5
  • Link State Tracking, page 1-6
  • Location Service, page 1-6
  • Multiple Spanning Tree, page 1-6
  • Per-VLAN Rapid Spanning Tree, page 1-6
  • Quality of Service, page 1-6
  • Resilient Ethernet Protocol, page 1-7
  • SmartPort Macros, page 1-7
  • Spanning Tree Protocol, page 1-8
  • Stateful Switchover, page 1-8
  • SVI Autostate, page 1-9
  • User-Based Rate Limiting, page 1-9
  • Unidirectional Ethernet, page 1-9
  • Unidirectional Link Detection, page 1-9
  • VLANs, page 1-10
  • Virtual Switch System Client, page 1-10
  • Y.1731 (AIS and RDI), page 1-10

802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

802.1Q tunneling is a Q-in-Q technique that expands the VLAN space by retagging the tagged packets that enter the service provider infrastructure. 802.1Q tunneling allows service providers to assign a VLAN to each customer without losing the original customer VLAN IDs inside the tunnel. All data traffic that enters the tunnel is encapsulated with the tunnel VLAN ID. Layer 2 Protocol Tunneling is a similar technique for all Layer 2 control traffic.

To map customer VLANs to service-provider VLANs, you can configure VLAN mapping (or VLAN ID translation) on trunk ports connected to a customer network. Packets entering the port are mapped to a service provider VLAN (S-VLAN) based on the port number and the original customer VLAN-ID (C-VLAN) of the packet.

For information on configuring 802.1Q tunneling and VLAN Mapping, see Chapter 25, “Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling.”

Auto SmartPort Macros

Auto SmartPort macros dynamically configure ports based on the device type detected on the port. When the switch detects a new device on a port it applies the appropriate Auto SmartPorts macro. When a link-down event occurs on the port, the switch removes the macro. For example, when you connect a Cisco IP phone to a port, Auto SmartPorts automatically applies the IP phone macro. The IP phone macro enables quality of service (QoS), security features, and a dedicated voice VLAN to ensure proper treatment of delay-sensitive voice traffic.

For information on configuring uto SmartPort macros, see Chapter 17, “Configuring Auto SmartPort Macros.”

Page 65 of the Cisco Systems 4500 user manual — Ethernet OAM Protocol
Page 65 · click to enlarge
Page 65

Chapter 1 Product Overview

Layer 2 Software Features

Cisco Discovery Protocol

The Cisco Discovery Protocol (CDP) is a device-discovery protocol that is both media- and protocol-independent. CDP is available on all Cisco products, including routers, switches, bridges, and access servers. Using CDP, a device can advertise its existence to other devices and receive information about other devices on the same LAN. CDP enables Cisco switches and routers to exchange information, such as their MAC addresses, IP addresses, and outgoing interfaces. CDP runs over the data-link layer only, allowing two systems that support different network-layer protocols to learn about each other. Each device configured for CDP sends periodic messages to a multicast address. Each device advertises at least one address at which it can receive Simple Network Management Protocol (SNMP) messages.

For information on configuring CDP, see Chapter 26, “Configuring CDP.”

Cisco Group Management Protocol (CGMP) server

CGMP server manages multicast traffic. Multicast traffic is forwarded only to ports with attached hosts that request the multicast traffic.

EtherChannel Bundles

EtherChannel port bundles allow you to create high-bandwidth connections between two switches by grouping multiple ports into a single logical transmission path.

For information on configuring EtherChannel, see Chapter 22, “Configuring EtherChannel and Link State Tracking.”

Ethernet CFM

Ethernet CFM is an end-to-end per-service-instance (per-VLAN) Ethernet layer OAM protocol that includes proactive connectivity monitoring, fault verification, and fault isolation. End-to-end can be provider-edge-to provider-edge (PE-to-PE) device or customer-edge-to-customer-edge (CE-to-CE) device. Ethernet CFM, as specified by IEEE 802.1ag, is the standard for Layer 2 ping, Layer 2 traceroute, and end-to-end connectivity check of the Ethernet network.

For information about CFM, see Chapter 57, “Configuring Ethernet OAM and CFM.”.

Ethernet OAM Protocol

Ethernet Operations, Administration, and Maintenance (OAM) is a protocol for installing, monitoring, and troubleshooting Ethernet networks to increase management capability within the context of the overall Ethernet infrastructure. You can implement Ethernet OAM on any full-duplex, point-to-point, or emulated point-to-point Ethernet link for a network or part of a network (specified interfaces).

For information about OAM, see Chapter 57, “Configuring Ethernet OAM and CFM.”

Page 66 of the Cisco Systems 4500 user manual — IPv6 Multicast Listen Discovery (MLD) and Multicast Listen Discovery snooping
Page 66 · click to enlarge
Page 66

Chapter 1 Product Overview Layer 2 Software Features

Flex Links and MAC Address-Table Move Update

Flex Links are a pair of Layer 2 interfaces (switch ports or port channels) where one interface is configured to act as a backup to the other. The feature provides an alternative solution to the Spanning Tree Protocol (STP). Flex Links are typically configured in service provider or enterprise networks where customers do not want to run STP on the switch.

MAC Address-Table Move Update allows a switch to provide rapid bidirectional convergence when a primary (forwarding) link goes down and the standby link begins forwarding traffic.

For information about Flex Links and MAC Address-Table Move Update, see Chapter 19, “Configuring Flex Links and MAC Address-Table Move Update.”

Internet Group Management Protocol (IGMP) Snooping

IGMP snooping manages multicast traffic. The switch software examines IP multicast packets and forwards packets based on their content. Multicast traffic is forwarded only to ports with attached hosts that request multicast traffic.

Support for IGMPv3 provides constrained flooding of multicast traffic in the presence of IGMPv3 hosts or routers. IGMPv3 snooping listens to IGMPv3 query and membership report messages to maintain host-to-multicast group associations. It enables a switch to propagate multicast data only to ports that need it. IGMPv3 snooping is fully interoperable with IGMPv1 and IGMPv2.

Explicit Host Tracking (EHT) is an extension to IGMPv3 snooping. EHT enables immediate leave operations on a per-port basis. EHT can be used to track per host membership information or to gather statistics about all IGMPv3 group members.

The IGMP Snooping Querier is a Layer 2 feature required to support IGMP snooping in a VLAN where PIM and IGMP are not configured because the multicast traffic does not require routing.

With SSO support, Stateful IGMP Snooping propagates the IGMP data learned by the active supervisor engine to the redundant supervisor engine so that when a switchover occurs, the newly active supervisor engine is aware of the multicast group membership, which alleviates a disruption to multicast traffic during a switchover.

For information on configuring IGMP snooping, see Chapter 23, “Configuring IGMP Snooping and Filtering.”

IPv6 Multicast Listen Discovery (MLD) and Multicast Listen Discovery snooping

MLD is a protocol used by IPv6 multicast devices to discover the presence of multicast listeners (nodes that want to receive IPv6 multicast packets) on its directly attached links and to discover which multicast packets are of interest to neighboring nodes. MLD snooping is supported in two different versions: MLD v1 and MLD v2. Network switches use MLD snooping to limit the flood of multicast traffic, causing IPv6 multicast data to be selectively forwarded to a list of ports that want to receive the data, instead of being flooded to all ports in a VLAN. This lessens the load on devices in the network, minimizing unnecessary bandwidth on links, enabling efficient distribution of IPv6 multicast data.

For information on configuring multicast services, see Chapter 24, “Configuring IPv6 MLD Snooping.”

Page 67 of the Cisco Systems 4500 user manual — Link Layer Discovery Protocol
Page 67 · click to enlarge
Page 67

Chapter 1 Product Overview

Layer 2 Software Features

Jumbo Frames

The jumbo frames feature allows the switch to forward packets as large as 9216 bytes (larger than the IEEE Ethernet MTU), rather than declare those frames “oversize” and discard them. This feature is typically used for large data transfers. The jumbo frames feature can be configured on a per-port basis on Layer 2 and Layer 3 interfaces. The feature is supported only on the following hardware:

  • WS-X4306-GB: all ports
  • WS-X4232-GB-RJ: ports 1-2
  • WS-X4418-GB: ports 1-2
  • WS-X4412-2GB-TX: ports 13-14
  • WS-4648-RJ45V-E
  • WS-X4648+RJ45V+E
  • WS-X4706-10GE linecards
  • on supervisor engine uplink ports

For information on Jumbo Frames, see Chapter 6, “Configuring Interfaces.”

Link Aggregation Control Protocol

LACP supports the automatic creation of EtherChannels by exchanging LACP packets between LAN ports. LACP packets are exchanged only between ports in passive and active modes. The protocol "learns" the capabilities of LAN port groups dynamically and informs the other LAN ports. After LACP identifies correctly matched Ethernet links, it facilitates grouping the links into an EtherChannel. Then the EtherChannel is added to the spanning tree as a single bridge port.

Link Layer Discovery Protocol

To support non-Cisco devices and to allow for interoperability between other devices, the switch supports the IEEE 802.1AB LLDP. Link Layer Discovery Protocol (LLDP) is a neighbor discovery protocol that is used for network devices to advertise information about themselves to other devices on the network. This protocol runs over the data-link layer, which allows two systems running different network layer protocols to learn about each other.

LLDP supports a set of attributes that it uses to discover neighbor devices. These attributes contain type, length, and value descriptions and are referred to as TLVs. LLDP supported devices can use TLVs to receive and send information to their neighbors. Details such as configuration information, device capabilities, and device identity can be advertised using this protocol.

For information on configuring LLDP, see Chapter 27, “Configuring LLDP, LLDP-MED, and Location Service.”

Page 68 of the Cisco Systems 4500 user manual — Quality of Service
Page 68 · click to enlarge
Page 68

Chapter 1 Product Overview Layer 2 Software Features

Link State Tracking

Link-state tracking, also known as trunk failover, is a feature that binds the link state of multiple interfaces. For example, link-state tracking provides redundancy in the network when used with server NIC adapter teaming. When server network adapters are configured in a primary or secondary relationship known as teaming, if the link is lost on the primary interface, connectivity is transparently changed to the secondary interface.

For information on configuring Link State Tracking, see Chapter 22, “Configuring EtherChannel and Link State Tracking.”

Location Service

The location service feature allows the switch to provide location and attachment tracking information for its connected devices to a Cisco Mobility Services Engine (MSE). The tracked device can be a wireless endpoint, a wired endpoint, or a wired switch or controller. The switch informs device link up and link down events through encrypted Network Mobility Services Protocol (NMSP) location and attachment notifications to the MSE.

For information on configuring LLDP, see Chapter 27, “Configuring LLDP, LLDP-MED, and Location Service.”

Multiple Spanning Tree

IEEE 802.1s Multiple Spanning Tree (MST) allows for multiple spanning tree instances within a single 802.1Q or Inter-Switch Link (ISL) VLAN trunk. MST extends the IEEE 802.1w Rapid Spanning Tree (RST) algorithm to multiple spanning trees. This extension provides both rapid convergence and load balancing within a VLAN environment.

MST allows you to build multiple spanning trees over trunks. You can group and associate VLANs to spanning tree instances. Each instance can have a topology independent of other spanning tree instances. This new architecture provides multiple forwarding paths for data traffic and enables load balancing. Network fault tolerance is improved because a failure in one instance (forwarding path) does not affect other instances (forwarding paths).

For information on configuring MST, see Chapter 18, “Configuring STP and MST.”

Per-VLAN Rapid Spanning Tree

Per-VLAN Rapid Spanning Tree (PVRST+) is the implementation of 802.1w on a per-VLAN basis. It is the same as PVST+ with respect to STP mode and runs RSTP protocol based on 802.1w.

For information on configuring PVRST+, see Chapter 18, “Configuring STP and MST.”

Quality of Service

Page 69 of the Cisco Systems 4500 user manual — SmartPort Macros
Page 69 · click to enlarge
Page 69

Chapter 1 Product Overview

Layer 2 Software Features

The quality of service (QoS) feature prevents congestion by selecting network traffic and prioritizing it according to its relative importance. Implementing QoS in your network makes network performance more predictable and bandwidth use more effective.

The Catalyst 4500 series switch supports the following QoS features:

  • Classification and marking
  • Ingress and egress policing, including per-port per-VLAN policing
  • Sharing and shaping

Catalyst 4500 series switch supports trusted boundary, which uses the Cisco Discovery Protocol (CDP) to detect the presence of a Cisco IP phone (such as the Cisco IP Phone 7910, 7935, 7940, and 7960) on a switch port. If the telephone is not detected, the trusted boundary feature disables the trusted setting on the switch port and prevents misuse of a high-priority queue.

The Catalyst 4500 series switch also supports QoS Automation (Auto QoS), which simplifies the deployment of existing QoS features through automatic configuration.

Cisco Modular QoS command-line-interface (Supervisor Engine 6-E and 6L-E)

Cisco Modular QoS CLI (MQC) is the framework that implements Cisco IOS software QoS. MQC allows the user to define a traffic class, create a traffic policy (containing the QoS feature to be applied to the traffic class), and attach the traffic policy to an interface. MQC is a cross-Cisco baseline that provides a consistent syntax and behavior of QoS features across multiple product families. Cisco IOS Software Release 12.2(40)SG complies to MQC for configuration of QoS features on the Supervisor Engine 6-E. MQC enables rapid deployment of new features and technology innovations and facilitates the management of network performance with respect to bandwidth, delay, jitter, and packet loss, enhancing the performance of mission-critical business applications. The rich and advanced QoS features that are supported as part of the Supervisor Engine 6-E and 6L-E are enabled using Cisco MQC.

The Two-Rate Three-Color Policing feature (also termed Hierarchical QoS) limits the input or output transmission rate of a class of traffic based on user-defined criteria and marks or colors packets by setting the applicable differentiated services code point (DSCP) values. This feature is often configured on the interfaces at the edge of a network to limit the rate of traffic entering or leaving the network. Using this feature, traffic that conforms to user-defined criteria can be sent through the interfaces, while traffic that exceeds or violates these criteria is sent out with a decreased priority setting or even dropped.

For information on QoS and Auto QoS, see Chapter 37, “Configuring Quality of Service.”

Resilient Ethernet Protocol

Resilient Ethernet Protocol (REP) is a Cisco proprietary protocol that provides an alternative to Spanning Tree Protocol (STP) to control network loops, handle link failures, and improve convergence time. REP controls a group of ports connected in a segment, ensures that the segment does not create any bridging loops, and responds to link failures within the segment. REP provides a basis for constructing more complex networks and supports VLAN load balancing.

For information on REP, see Chapter 20, “Configuring Resilient Ethernet Protocol.”

SmartPort Macros

SmartPort macros provide a convenient way to save and share common configurations. You can use SmartPort macros to enable features and settings based on the location of a switch in the network and for mass configuration deployments across the network.

Page 70 of the Cisco Systems 4500 user manual — Stateful Switchover
Page 70 · click to enlarge
Page 70

Chapter 1 Product Overview Layer 2 Software Features

For information on configuring SmartPort macros, see Chapter 16, “Configuring SmartPort Macros.”

Spanning Tree Protocol

The Spanning Tree Protocol (STP) allows you to create fault-tolerant internetworks that ensure an active, loop-free data path between all nodes in the network. STP uses an algorithm to calculate the best loop-free path throughout a switched network.

For information on configuring STP, see Chapter 18, “Configuring STP and MST.”

The Catalyst 4500 series switch supports the following STP enhancements:

  • Spanning tree PortFast—PortFast allows a port with a directly attached host to transition to the forwarding state directly, bypassing the listening and learning states.
  • Spanning tree UplinkFast—UplinkFast provides fast convergence after a spanning-tree topology change and achieves load balancing between redundant links using uplink groups. Uplink groups provide an alternate path in case the currently forwarding link fails. UplinkFast is designed to decrease spanning-tree convergence time for switches that experience a direct link failure.
  • Spanning tree BackboneFast—BackboneFast reduces the time needed for the spanning tree to converge after a topology change caused by an indirect link failure. BackboneFast decreases spanning-tree convergence time for any switch that experiences an indirect link failure.
  • Spanning tree root guard—Root guard forces a port to become a designated port so that no switch on the other end of the link can become a root switch.

For information on the STP enhancements, see Chapter 21, “Configuring Optional STP Features.”

Stateful Switchover

Stateful switchover (SSO) enables you to propagate configuration and state information from the active to the redundant supervisor engine so that sub-second interruptions in Layer 2 traffic occur when the active supervisor engine switches over to the redundant supervisor engine.

  • Stateful IGMP Snooping

This feature propagates the IGMP data learned by the active supervisor engine to the redundant supervisor engine so that when a switchover occurs, the newly active supervisor engine is aware of the multicast group membership, which alleviates a disruption to multicast traffic during a switchover.

  • Stateful DHCP Snooping

This feature propagates the DHCP-snooped data from the active supervisor engine to the redundant supervisor engine so that when a switchover occurs, the newly active supervisor engine is aware of the DHCP data that was already snooped, and the security benefits continue uninterrupted.

For information about SSO, see Chapter 9, “Configuring Cisco NSF with SSO Supervisor Engine Redundancy.”

Page 71 of the Cisco Systems 4500 user manual — Unidirectional Link Detection
Page 71 · click to enlarge
Page 71

Chapter 1 Product Overview

Layer 2 Software Features

SVI Autostate

When an SVI has multiple ports on a VLAN, normally the SVI will go down when all the ports in the VLAN go down. You can design your network so that some ports are not counted in the calculation of SVI “going up or down.” SVI Autostate provides a knob to mark a port so that it is not counted in the SVI “going up and down” calculation and applies to all VLANs that are enabled on that port.

User-Based Rate Limiting

User-Based Rate Limiting (UBRL) enables you to adopt microflow policing to dynamically learn traffic flows and rate limit each unique flow to an individual rate. UBRL is available only on the Supervisor Engine V-10GE with the built-in NetFlow support.

For information about UBRL, see the “Configuring User-Based Rate-Limiting” section on page 37-37.

Unidirectional Ethernet

Unidirectional Ethernet uses only one strand of fiber for either transmitting or receiving one-way traffic for the Gigaport, instead of two strands of fiber for a full-duplex Gigaport Ethernet.

For information about Unidirectional Ethernet, see Chapter 29, “Configuring Unidirectional Ethernet.”

Unidirectional Link Detection

The Unidirectional Link Detection (UDLD) protocol allows devices connected through fiber-optic or copper Ethernet cables to monitor the physical configuration of the cables and detect a unidirectional link.

With standard UDLD, the time to detect a unidirectional link can vary from a few seconds to several minutes depending on how the timers are configured. Link status messages are exchanged every couple of seconds. With Fast UDLD, you can detect unidirectional links in under one second (this also depends on how the timers are configured). Link status messages are exchanged every couple of hundred milliseconds.

For information about UDLD and Fast UDLD, see Chapter 28, “Configuring UDLD.”

Page 72 of the Cisco Systems 4500 user manual — Y.1731 (AIS and RDI)
Page 72 · click to enlarge
Page 72

Chapter 1 Product Overview Layer 2 Software Features

VLANs

A VLAN configures switches and routers according to logical, rather than physical, topologies. Using VLANs, you can combine any collection of LAN segments within an internetwork into an autonomous user group, such that the segments appear as a single LAN in the network. VLANs logically segment the network into different broadcast domains so that packets are switched only between ports within the VLAN. Typically, a VLAN corresponds to a particular subnet, although not necessarily.

For more information about VLANs, VTP, and Dynamic VLAN Membership, see Chapter 13, “Configuring VLANs, VTP, and VMPS.”

The following VLAN-related features also are supported:

  • VLAN Trunking Protocol (VTP)—VTP maintains VLAN naming consistency and connectivity between all devices in the VTP management domain. You can have redundancy in a domain by using multiple VTP servers, through which you can maintain and modify the global VLAN information. Only a few VTP servers are required in a large network.
  • Private VLANs—Private VLANs are sets of ports that have the features of normal VLANs and also provide some Layer 2 isolation from other ports on the switch.

For information about private VLANs, see Chapter 39, “Configuring Private VLANs.”

  • Private VLAN Trunk Ports—Private VLAN trunk ports allow a secondary port on a private VLAN to carry multiple secondary VLANs.
  • Private VLAN Promiscuous Trunk Ports—Private VLAN promiscuous trunk extends the promiscuous port to a 802.1Q trunk port, carrying multiple primary VLANs (hence multiple subnets). Private VLAN promiscuous trunk is typically used to offer different services or content on different primary VLANs to isolated subscribers. Secondary VLANs can not be carried over the private VLAN promiscuous trunk.
  • Dynamic VLAN Membership—Dynamic VLAN Membership allows you to assign switch ports to VLANs dynamically, based on the source Media Access Control (MAC) address of the device connected to the port. When you move a host from a port on one switch in the network to a port on another switch in the network, that switch dynamically assigns the new port to the proper VLAN for that host. With the VMPS Client feature, you can convert a dynamic access port to a VMPS client. VMPS clients can use VQP queries to communicate with the VMPS server to obtain a VLAN assignment for the port based on the MAC address of the host attached to that port.

Virtual Switch System Client

Catalyst 4500 series switches support enhanced PAgP. If a Catalyst 4500 series switch is connected to a Catalyst 6500 series Virtual Switch System (VSS) by using a PAgP EtherChannel, the Catalyst 4500 series switch will automatically serve as a VSS client, using enhanced PAgP on this EtherChannel for dual-active detection. This VSS client feature has no impact on the performance of Catalyst 4500 series switches and does not require any user configuration.

For information on VSS, see Chapter 22, “Configuring EtherChannel and Link State Tracking.”

Y.1731 (AIS and RDI)

Y.1731 ETH-AIS (Ethernet Alarm Indication Signal function) and ETH-RDI (Ethernet Remote Defect Indication function) provides fault and performance management for service providers in large networks.

Page 73 of the Cisco Systems 4500 user manual — Cisco Express Forwarding
Page 73 · click to enlarge
Page 73

Chapter 1 Product Overview

Layer 3 Software Features

ETH-AIS suppresses alarms following detection of defect conditions at the server (sub) layer. Due to independent restoration capabilities provided within the Spanning Tree Protocol (STP) environments, ETH-AIS is not expected to be applied in the STP environments. In this case, AIS is configurable, and you can enable and disable AIS in STP environment or not.

ETH-RDI can be used by a MEP to communicate to its peer MEPs that a defect condition has been encountered. ETH-RDI is used only when ETH-CC transmission is enabled.

For information about Y.1731, see Chapter 58, “Configuring Y.1731 (AIS and RDI).”

Layer 3 Software Features

A Layer 3 switch is a high-performance switch that has been optimized for a campus LAN or an intranet, and it provides both wirespeed Ethernet routing and switching services. Layer 3 switching improves network performance with two software functions: route processing and intelligent network services.

Compared to conventional software-based switches, Layer 3 switches process more packets faster by using application-specific integrated circuit (ASIC) hardware instead of microprocessor-based engines.

The following sections describe the key Layer 3 switching software features on the Catalyst 4500 series switch:

  • Cisco Express Forwarding, page 1-11
  • EIGRP Stub Routing, page 1-12
  • Enhanced Object Tracking, page 1-12
  • GLBP, page 1-12
  • HSRP, page 1-12
  • In Service Software Upgrade, page 1-15
  • IP Routing Protocols, page 1-13
  • IPv6, page 1-15
  • Multicast Services, page 1-15
  • NSF with SSO, page 1-17
  • OSPF for Routed Access, page 1-17
  • Policy-Based Routing, page 1-17
  • Unidirectional Link Routing, page 1-17
  • VRF-lite, page 1-18
  • Virtual Router Redundancy Protocol, page 1-18

Cisco Express Forwarding

Cisco Express Forwarding (CEF) is an advanced Layer 3 IP-switching technology. CEF optimizes network performance and scalability in networks with large and dynamic traffic patterns, such as the Internet, and on networks that use intensive web-based applications or interactive sessions. Although you can use CEF in any part of a network, it is designed for high-performance, highly resilient Layer 3 IP-backbone switching.

For information on configuring CEF, see Chapter 31, “Configuring Cisco Express Forwarding.”

Page 74 of the Cisco Systems 4500 user manual — HSRP
Page 74 · click to enlarge
Page 74

Chapter 1 Product Overview Layer 3 Software Features

EIGRP Stub Routing

The EIGRP stub routing feature, available in all images, reduces resource utilization by moving routed traffic closer to the end user.

The IP base image contains only EIGRP stub routing. The IP services image contains complete EIGRP routing.

In a network using EIGRP stub routing, the only route for IP traffic to follow to the user is through a switch that is configured with EIGRP stub routing. The switch sends the routed traffic to interfaces that are configured as user interfaces or are connected to other devices.

For information on configuring EIGRP Stub Routing, see Chapter 30, “Configuring Layer 3 Interfaces.”

Enhanced Object Tracking

Before the introduction of the Enhanced Object Tracking feature, the Hot Standby Router Protocol (HSRP) had a simple tracking mechanism that allowed you to track the interface line-protocol state only. If the line-protocol state of the interface went down, the HSRP priority of the router was reduced, allowing another HSRP router with a higher priority to become active.

The Enhanced Object Tracking (EOT) feature separates the tracking mechanism from HSRP and creates a separate standalone tracking process that can be used by other Cisco IOS processes as well as HSRP. This feature allows tracking of other objects in addition to the interface line-protocol state.

A client process, such as HSRP, Virtual Router Redundancy Protocol (VRRP), or Gateway Load Balancing Protocol (GLBP), can now register its interest in tracking objects and then be notified when the tracked object changes state.

For details on EOT, refer to this URL:

http://www.cisco.com/en/US/docs/ios/ipapp/configuration/guide/ipapp_eot.html

GLBP

The Gateway Load Balancing Protocol (GLBP) feature provides automatic router backup for IP hosts configured with a single default gateway on a LAN. Multiple first hop routers on the LAN combine to offer a single virtual first hop IP router while sharing the IP packet forwarding load. GLBP devices share packet-forwarding responsibilities, optimizing resource usage, thereby reducing costs. Other routers on the LAN may act as redundant GLBP routers that will become active if any of the existing forwarding routers fail. This improves the resiliency of the network and reduces administrative burden.

For details on GLBP, refer to this URL:

http://www.cisco.com/en/US/docs/ios/ipapp/configuration/guide/ipapp_glbp_ps6350_TSD_Products_ Configuration_Guide_Chapter.html

HSRP

The Hot Standby Router Protocol (HSRP) provides high network availability by routing IP traffic from hosts on Ethernet networks without relying on the availability of any single Layer 3 switch. This feature is particularly useful for hosts that do not support a router discovery protocol and do not have the functionality to switch to a new router when their selected router reloads or loses power.

For information on configuring HSRP, refer to the following URL:

Page 75 of the Cisco Systems 4500 user manual — BGP Route-Map Continue
Page 75 · click to enlarge
Page 75

Chapter 1 Product Overview

Layer 3 Software Features

http://www.cisco.com/en/US/docs/ios/ipapp/configuration/guide/ipapp_hsrp_ps6350_TSD_Products_ Configuration_Guide_Chapter.html

SSO Aware HSRP

SSO Aware HSRP offers continuous data packet forwarding during a supervisor engine switchover without a path change to the standby HSRP router. During supervisor engine switchover, NSF with SSO continues forwarding data packets along known routes using the HSRP virtual IP address. When both supervisor engines fail on the active HSRP router, the standby HSRP router takes over as the active HSRP router. It further extends reliability and availability offered by the NSF with SSO to Layer 3. SSO aware HSRP is available for Supervisor Engine IV, V, and V-10GE on Catalyst 4507R and 4510R chassis with supervisor redundancy.

IP Routing Protocols

The following routing protocols are supported on the Catalyst 4500 series switch:

  • BGP, page 1-13
  • EIGRP, page 1-14
  • IS-IS, page 1-14
  • OSPF, page 1-14
  • RIP, page 1-15

BGP

The Border Gateway Protocol (BGP) is an exterior gateway protocol that allows you to set up an interdomain routing system to automatically guarantee the loop-free exchange of routing information between autonomous systems. In BGP, each route consists of a network number, a list of autonomous systems that information has passed through (called the autonomous system path), and a list of other path attributes.

The Catalyst 4500 series switch supports BGP version 4, including classless interdomain routing (CIDR). CIDR lets you reduce the size of your routing tables by creating aggregate routes, resulting in supernets. CIDR eliminates the concept of network classes within BGP and supports the advertising of IP prefixes. CIDR routes can be carried by OSPF, EIGRP, and RIP.

BGP Route-Map Continue

The BGP Route-Map Continue feature introduces the continue clause to the BGP route-map configuration. The continue clause provides more programmable policy configuration and route filtering. It introduces the capability to execute additional entries in a route map after an entry is executed with successful match and set clauses. Continue clauses allow configuring and organizing more modular policy definitions to reduce the number of policy configurations that are repeated within the same route map.

For details on BGP, refer to this URL:

http://www.cisco.com/en/US/docs/ios/12_4t/ip_route/configuration/guide/t_brbbas.html

Page 76 of the Cisco Systems 4500 user manual — OSPF
Page 76 · click to enlarge
Page 76

Chapter 1 Product Overview Layer 3 Software Features

EIGRP

The Enhanced Interior Gateway Routing Protocol (EIGRP) is a version of IGRP that combines the advantages of link-state protocols with distance-vector protocols. EIGRP incorporates the Diffusing Update Algorithm (DUAL). EIGRP includes fast convergence, variable-length subnet masks, partially bounded updates, and multiple network-layer support. When a network topology change occurs, EIGRP checks its topology table for a suitable new route to the destination. If such a route exists in the table, EIGRP updates the routing table instantly. You can use the fast convergence and partial updates that EIGRP provides to route Internetwork Packet Exchange (IPX) packets.

EIGRP saves bandwidth by sending routing updates only when routing information changes. The updates contain information only about the link that changed, not the entire routing table. EIGRP also takes into consideration the available bandwidth when determining the rate at which it transmits updates.

For details on EIGRP, refer to this URL:

http://www.cisco.com/en/US/products/ps6630/products_ios_protocol_option_home.html

IS-IS

The Intermediate System-to-Intermediate System Protocol (IS-IS Protocol) uses a link-state routing algorithm. It closely follows the Open Shortest Path First (OSPF) routing protocol used within the TCP/IP environment. The operation of ISO IS-IS Protocol requires each router to maintain a full topology map of the network (that is, which intermediate systems and end systems are connected to which other intermediate systems and end systems). Periodically, the router runs an algorithm over its map to calculate the shortest path to all possible destinations.

The IS-IS Protocol uses a two-level hierarchy. Intermediate Systems (or routers) are classified as Level 1 and Level 2. Level 1 intermediate systems deal with a single routing area. Traffic is relayed only within that area. Any other internetwork traffic is sent to the nearest Level 2 intermediate systems, which also acts as a Level 1 intermediate systems. Level 2 intermediate systems move traffic between different routing areas within the same domain.

An IS-IS with multi-area support allows multiple Level 1 areas within in a single intermediate system, thus allowing an intermediate system to be in multiple areas. A single Level 2 area is used as backbone for inter-area traffic.

For details on IS-IS, refer to this URL:

http://www.cisco.com/en/US/products/ps6632/products_ios_protocol_option_home.html

OSPF

The Open Shortest Path First (OSPF) protocol is a standards-based IP routing protocol designed to overcome the limitations of RIP. Because OSPF is a link-state routing protocol, it sends link-state advertisements (LSAs) to all other routers within the same hierarchical area. Information on the attached

Page 77 of the Cisco Systems 4500 user manual — Multicast Services
Page 77 · click to enlarge
Page 77

Chapter 1 Product Overview

Layer 3 Software Features

interfaces and their metrics is used in OSPF LSAs. As routers accumulate link-state information, they use the shortest path first (SPF) algorithm to calculate the shortest path to each node. Additional OSPF features include equal-cost multipath routing and routing based on the upper-layer type of service (ToS) requests.

OSPF uses the concept of an area, which is a group of contiguous OSPF networks and hosts. OSPF areas are logical subdivisions of OSPF autonomous systems in which the internal topology is hidden from routers outside the area. Areas allow an additional level of hierarchy different from that provided by IP network classes, and they can be used to aggregate routing information and mask the details of a network. These features make OSPF particularly scalable for large networks.

For details on OSPF, refer to this URL:

http://www.cisco.com/en/US/tech/tk365/tk480/tsd_technology_support_sub-protocol_home.html

RIP

The Routing Information Protocol (RIP) is a distance-vector, intradomain routing protocol. RIP works well in small, homogeneous networks. In large, complex internetworks it has many limitations, such as a maximum hop count of 15, lack of support for variable-length subnet masks (VLSMs), inefficient use of bandwidth, and slow convergence. RIP II does support VLSMs.

For details on RIP, refer to this URL:

http://www.cisco.com/en/US/tech/tk365/tk554/tsd_technology_support_sub-protocol_home.html

In Service Software Upgrade

SSO requires the same version of Cisco IOS on both the active and standby supervisor engines. Because of version mismatch during an upgrade or downgrade of the Cisco IOS software, a Catalyst 4500 series switch is forced into operating in RPR mode. In this mode, after the switchover you can observe link-flaps and a disruption in service. This issue is solved by the In-Service Software Upgrade (ISSU) feature that enables you to operate in SSO/NSF mode while performing software upgrade or downgrade.

ISSU allows an upgrade or downgrade of the Catalyst IOS images at different release levels on the both the active and standby supervisor engines by utilizing the Version Transformation Framework between the stateful components running on each supervisor engine.

For details, refer to Chapter 5, “Configuring the Cisco IOS In-Service Software Upgrade Process.”

IPv6

IPv6 provides services such as end-to-end security, quality of service (QoS), and globally unique addresses. The IPv6 address space reduces the need for private addresses and Network Address Translation (NAT) processing by border routers at network edges.

For more information about IPv6 services supported on the Catalyst 4500 series switch, see Chapter 48, “Support for IPv6.”

Multicast Services

Multicast services save bandwidth by forcing the network to replicate packets only when necessary and by allowing hosts to join and leave groups dynamically. The following multicast services are supported:

Page 78 of the Cisco Systems 4500 user manual — Product Overview
Page 78 · click to enlarge
Page 78

Chapter 1 Product Overview Layer 3 Software Features

  • ANCP Client —ANCP Multicast enables you to control multicast traffic on a Catalyst 4500 switch using either ANCP (rather than IGMP) or direct static configuration on the CLI.
  • Cisco Group Management Protocol (CGMP) server—CGMP server manages multicast traffic. Multicast traffic is forwarded only to ports with attached hosts that request the multicast traffic.
  • Internet Group Management Protocol (IGMP) snooping—IGMP snooping manages multicast traffic. The switch software examines IP multicast packets and forwards packets based on their content. Multicast traffic is forwarded only to ports with attached hosts that request multicast traffic.

Support for IGMPv3 provides constrained flooding of multicast traffic in the presence of IGMPv3 hosts or routers. IGMPv3 snooping listens to IGMPv3 query and membership report messages to maintain host-to-multicast group associations. It enables a switch to propagate multicast data only to ports that need it. IGMPv3 snooping is fully interoperable with IGMPv1 and IGMPv2.

Explicit Host Tracking (EHT) is an extension to IGMPv3 snooping. EHT enables immediate leave operations on a per-port basis. EHT can be used to track per host membership information or to gather statistics about all IGMPv3 group members.

The IGMP Snooping Querier is a Layer 2 feature required to support IGMP snooping in a VLAN where PIM and IGMP are not configured because the multicast traffic does not require routing.

For information on configuring IGMP snooping, see Chapter 23, “Configuring IGMP Snooping and Filtering.”

  • IPv6 Multicast Listen Discovery (MLD) and Multicast Listen Discovery snooping—MLD is a protocol used by IPv6 multicast devices to discover the presence of multicast listeners (nodes that want to receive IPv6 multicast packets) on its directly attached links and to discover which multicast packets are of interest to neighboring nodes. MLD snooping is supported in two different versions: MLD v1 and MLD v2. Network switches use MLD snooping to limit the flood of multicast traffic, causing IPv6 multicast data to be selectively forwarded to a list of ports that want to receive the data, instead of being flooded to all ports in a VLAN. This lessens the load on devices in the network, minimizing unnecessary bandwidth on links, enabling efficient distribution of IPv6 multicast data.

For information on configuring multicast services, see Chapter 24, “Configuring IPv6 MLD Snooping.”

  • Protocol Independent Multicast (PIM)—PIM is protocol-independent because it can leverage whichever unicast routing protocol is used to populate the unicast routing table, including EIGRP, OSPF, BGP, or static route. PIM also uses a unicast routing table to perform the Reverse Path Forwarding (RPF) check function instead of building a completely independent multicast routing table.

For information on PIM-SSM mapping, see the URL:

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/15.1SY/config_guide/sup720/ude _udlr.html

  • IP Multicast Load Splitting (Equal Cost Multipath (ECMP) Using S, G and Next Hop)— IP Multicast Load Splitting introduces more flexible support for ECMP multicast load splitting by adding support for load splitting based on source and group address and on source, group, and next-hop address. This feature allows multicast traffic from devices that send many streams to groups or that broadcast many channels, such as IPTV servers or MPEG video servers, to be more effectively load shared across equal-cost paths.

For information on configuring multicast services, see Chapter 33, “Configuring IP Multicast.”

Page 79 of the Cisco Systems 4500 user manual — Unidirectional Link Routing
Page 79 · click to enlarge
Page 79

Chapter 1 Product Overview

Layer 3 Software Features

NSF with SSO

Non-Stop Forwarding with Stateful Switchover (NSF/SSO) offers continuous data packet forwarding in a Layer 3 routing environment during supervisor engine switchover. During supervisor engine switchover, NSF/SSO continues forwarding data packets along known routes while the routing protocol information is recovered and validated, avoiding unnecessary route flaps and network instability. With NSF/SSO, IP phone calls do not drop. NSF/SSO is supported for OSPF, BGP, EIGRP, IS-IS, and Cisco Express Forwarding (CEF). NSF/SSO is typically deployed in the most critical parts of an enterprise or service provider network, such as Layer 3 aggregation/core or a resilient Layer 3 wiring closet design. It is an essential component of single chassis deployment for critical applications. NSF/SSO is available for all shipping supervisor engines on Catalyst 4507R and 4510R chassis with supervisor redundancy.

For information on NSF with SSO, see Chapter 9, “Configuring Cisco NSF with SSO Supervisor Engine Redundancy.”

OSPF for Routed Access

OSPF for Routed Access is designed specifically to enable customers to extend Layer 3 routing capabilities to the access or wiring closet.

With the typical topology (hub and spoke) in a campus environment, where the wiring closets (spokes) are connected to the distribution switch (hub) forwarding all nonlocal traffic to the distribution layer, the wiring closet switch does not need to hold a complete routing table. Ideally, the distribution switch sends a default route to the wiring closet switch to reach inter-area and external routes (OSPF stub or totally stub area configuration).

Refer to the following link for more details:

http://www.cisco.com/en/US/docs/solutions/Enterprise/Campus/routed-ex.html

With Cisco IOS Release 12.2(53)SG, the IP Base image supports OSPF for routed access. The Enterprise Services image is required if you need multiple OSPFv2 and OSPFv3 instances without route restrictions. Enterprise Services also is required to enable the VRF-lite feature.

Policy-Based Routing

Traditional IP forwarding decisions are based purely on the destination IP address of the packet being forwarded. Policy-Based Routing (PBR) enables forwarding based upon other information associated with a packet, such as the source interface, IP source address, Layer 4 ports, and so on. This feature allows network managers more flexibility in how they configure and design their networks.

For more information on policy-based routing, see Chapter 35, “Configuring Policy-Based Routing.”

Unidirectional Link Routing

Unidirectional link routing (UDLR) provides a way to forward multicast packets over a physical unidirectional interface (such as a satellite link of high bandwidth) to stub networks that have a back channel.

Page 80 of the Cisco Systems 4500 user manual — Management Features
Page 80 · click to enlarge
Page 80

Chapter 1 Product Overview Management Features

For information on configuring unidirectional link routing, refer to the chapter “Configuring Unidirectional Link Routing” in the Cisco IP and IP Routing Configuration Guide.

VRF-lite

VPN routing and forwarding (VRF-lite) is an extension of IP routing that provides multiple routing instances. Along with BGP, it enables the creation of a Layer 3 VPN service by keeping separate IP routing and forwarding tables for each VPN customer. VRF-lite uses input interfaces to distinguish routes for different VPNs. It forms virtual packet-forwarding tables by associating one or more Layer 3 interfaces with each VRF, allowing the creation of multiple Layer 3 VPNs on a single switch. Interfaces in a VRF could be either physical, such as an Ethernet port, or logical, such as a VLAN switch virtual interface (SVI). However, interfaces cannot belong to more than one VRF at any time.

For information on VRF-lite, see Chapter 36, “Configuring VRF-lite.”

Virtual Router Redundancy Protocol

Virtual Router Redundancy Protocol (VRRP) is a standard based first-hop redundancy protocol. With VRRP, a group of routers function as one virtual router by sharing one virtual IP address and one virtual MAC address. The master router performs packet forwarding, while the backup routers stay idle. VRRP is typically used in the multivendor first-hop gateway redundancy deployment.

For details on VRRP, refer to this URL:

http://www.cisco.com/en/US/docs/ios/ipapp/configuration/guide/ipapp_vrrp_ps6441_TSD_Products_ Configuration_Guide_Chapter.html

Management Features

The Catalyst 4500 series switch offers network management and control using the CLI or through alternative access methods, such as SNMP. The switch software supports these network management features:

  • Cisco Call Home, page 1-19
  • Cisco Energy Wise, page 1-19
  • Cisco IOS IP Service Level Agreements, page 1-19
  • Cisco Network Assistant, page 1-20
  • Dynamic Host Control Protocol, page 1-20
  • Embedded Event Manager, page 1-20
  • Ethernet Management Port, page 1-21
  • FAT File Management System on Supervisor Engine 6-E and 6L-E, page 1-21
  • Forced 10/100 Autonegotiation, page 1-21
  • Intelligent Power Management, page 1-21
  • MAC Address Notification, page 1-21
  • MAC Notify MIB, page 1-21
  • NetFlow-lite, page 1-22
Page 81 of the Cisco Systems 4500 user manual — Cisco IOS IP Service Level Agreements
Page 81 · click to enlarge
Page 81

Chapter 1 Product Overview

  • Secure Shell, page 1-22
  • Simple Network Management Protocol, page 1-22
  • SPAN and RSPAN, page 1-22
  • Web Content Coordination Protocol, page 1-23
  • XML-PI, page 1-23

Cisco Call Home

Call Home provides e-mail-based and web-based notification of critical system events. A versatile range of message formats are available for optimal compatibility with pager services, standard e-mail, or XML-based automated parsing applications. Common uses of this feature may include direct paging of a network support engineer, e-mail notification to a Network Operations Center, XML delivery to a support website, and utilization of Cisco Smart Call Home services for direct case generation with the Cisco Systems Technical Assistance Center (TAC).

The Call Home feature can deliver alert messages containing information on configuration, diagnostics, environmental conditions, inventory, and syslog events.

For more information on Call Home, see Chapter 59, “Configuring Call Home.”

Cisco Energy Wise

Cisco EnergyWise is an energy-management technology added onto Cisco switching solutions to help you measure, report, and reduce energy consumption across your entire infrastructure. With EnergyWise’s management interface, network management applications can communicate with endpoints and each other, using the network as the unifying fabric.

Refer to the following link for more details:

http://www.cisco.com/en/US/docs/switches/lan/energywise/phase2/ios/configuration/guide/ew_v2.htm l

Cisco IOS IP Service Level Agreements

Cisco IOS IP Service Level Agreements (SLAs) allows Cisco customers to analyze IP service levels for IP applications and services by using active traffic monitoring—the generation of traffic in a continuous, reliable, and predictable manner—for measuring network performance. With Cisco IOS IP SLAs, service provider customers can measure and provide service level agreements, and enterprise customers can verify service levels, verify outsourced service level agreements, and understand network performance. Cisco IOS IP SLAs can perform network assessments, verify quality of service (QoS), ease the deployment of new services, and assist with network troubleshooting.

For more information on IP SLA, see Chapter 60, “Configuring Cisco IOS IP SLA Operations.”

Management Features

Page 82 of the Cisco Systems 4500 user manual — Embedded Event Manager
Page 82 · click to enlarge
Page 82

Chapter 1 Product Overview Management Features

Cisco Network Assistant

Cisco Network Assistant manages standalone devices, clusters of devices, or federations of devices from anywhere in your intranet. Using its graphical user interface, you can perform multiple configuration tasks without having to remember command-line interface commands. Embedded CiscoView is a device management application that can be embedded on the switch flash and provides dynamic status, monitoring, and configuration information for your switch.

For more information on Cisco Network Assistant, see Chapter 12, “Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant.”

Dynamic Host Control Protocol

The Catalyst 4500 series switch uses DHCP in the following ways:

  • Dynamic Host Control Protocol server—The Cisco IOS DHCP server feature is a full DHCP server implementation that assigns and manages IP addresses from specified address pools within the router to DHCP clients. If the Cisco IOS DHCP server cannot satisfy a DHCP request from its own database, it can forward the request to one or more secondary DHCP servers defined by the network administrator.
  • Dynamic Host Control Protocol autoconfiguration—With this feature your switch (the DHCP client) is automatically configured at startup with IP address information and a configuration file.

For DHCP server configuration information, refer to the chapter, “Configuring DHCP,” in the Cisco IOS IP and IP Routing Configuration Guide at the following URL:

http://www.cisco.com/en/US/docs/ios/ipaddr/configuration/guide/iad_dhcp_rdmp_ps6350_TSD_P roducts_Configuration_Guide_Chapter.html

Embedded CiscoView

A web-based toos to configure the Catalyst 4500 series switch. Embedded CiscoView is a device management application that can be embedded on the switch flash and provides dynamic status, monitoring, and configuration information for your switch.

For more information on Embedded CiscoView, see Chapter 4, “Administering the Switch.”

Embedded Event Manager

Embedded Event Manager (EEM) is a distributed and customized approach to event detection and recovery offered directly in a Cisco IOS device. EEM offers the ability to monitor events and take informational, corrective, or any desired EEM action when the monitored events occur or when a threshold is reached. An EEM policy is an entity that defines an event and the actions to be taken when that event occurs.

For information on EEM, see the URL: http://www.cisco.com/en/US/products/ps6815/products_ios_protocol_group_home.html

Page 83 of the Cisco Systems 4500 user manual — MAC Notify MIB
Page 83 · click to enlarge
Page 83

Chapter 1 Product Overview

Ethernet Management Port

The Ethernet management port, also referred to as the Fa1 or fastethernet1 port, is a Layer 3 host port to which you can connect a PC. You can use the Ethernet management port instead of the switch console port for network management. When managing a switch stack, connect the PC to the Ethernet management port on a Catalyst 4500 series switch.

For more information on Ethernet management port, see the “Using the Ethernet Management Port” section in Chapter 6, “Configuring Interfaces.”

FAT File Management System on Supervisor Engine 6-E and 6L-E

The FAT file system is widely used to manage files on devices disks and flash. The support of the FAT file system allows you to easily remove, add, and/or transfer images to and from the flash.

Forced 10/100 Autonegotiation

This feature allows you to configure a port to limit the speed at which it will autonegotiate to a speed lower than the physically maximum speed. This method of reducing the throughput incurs much less overhead than using an ACL.

Intelligent Power Management

Working with powered devices (PDs) from Cisco, this feature uses power negotiation to refine the power consumption of an 802.3af-compliant PD beyond the granularity of power consumption provided by the 802.3af class. Power negotiation also enables the backward compatibility of newer PDs with older modules that do not support either 802.3af or high-power levels as required by IEEE standard.

For more information on Intelligent Power Management, see the “Intelligent Power Management” section in Chapter 11, “Configuring Power over Ethernet.”

MAC Address Notification

MAC address notification monitors the MAC addresses that are learned by, aged out, or removed from the Catalyst 4500 series switch. Notifications are sent out or retrieved by using the CISCO-MAC-NOTIFICATION MIB. It is typically used by a central network management application to collect such MAC address notification events for host moves. User-configurable MAC table utilization thresholds can be defined to notify any potential DoS or man-in-the-middle attack.

For information on MAC Address Notification, see Chapter 4, “Administering the Switch.”

MAC Notify MIB

The MAC Notify MIB feature monitors network performance, utilization, and security conditions enabling a network administrator to track the MAC addresses that are learned or removed on the switch forwarding the Ethernet frames.

Management Features

Page 84 of the Cisco Systems 4500 user manual — SPAN and RSPAN
Page 84 · click to enlarge
Page 84

Chapter 1 Product Overview Management Features

NetFlow-lite

The Netflow-lite feature is based on ingress packet sampling at a monitoring point that can be an interface on the switch. By exporting NetFlow sampled packets, it provides visibility into traffic that is switched through the device. The rate at which input packets are sampled is configurable and a wide range of sampling rates are supported. Each sampled packet is exported as a separate NetFlow data record in the data path. Netflow V9 and V10(IPFIX) export formats are supported.

For more information on NetFlow statistics, see Chapter 55, “Configuring NetFlow-lite.”

Secure Shell

Secure Shell (SSH) is a program that enables you to log into another computer over a network, to execute commands remotely, and to move files from one machine to another. The switch may not initiate SSH connections: SSH will be limited to providing a remote login session to the switch and will only function as a server.

Simple Network Management Protocol

Simple Network Management Protocol (SNMP) facilitates the exchange of management information between network devices. The Catalyst 4500 series switch supports these SNMP types and enhancements:

  • SNMP—A full Internet standard
  • SNMP v2—Community-based administrative framework for version 2 of SNMP
  • SNMP v3—Security framework with three levels: noAuthNoPriv, authNoPriv, and authPriv (available only on a crypto image, such as cat4000-i5k91s-mz)
  • SNMP trap message enhancements—Additional information with certain SNMP trap messages, including spanning-tree topology change notifications and configuration change notifications

For more information on SNMP, see Chapter 54, “Configuring SNMP.”

SPAN and RSPAN

Switched Port Analyzer (SPAN) allows you to monitor traffic on any port for analysis by a network analyzer or Remote Monitoring (RMON) probe. You also can do the following:

  • Configure ACLs on SPAN sessions.
  • Allow incoming traffic on SPAN destination ports to be switched normally.
  • Explicitly configure the encapsulation type of packets that are spanned out of a destination port.
  • Restrict ingress sniffing depending on whether the packet is unicast, multicast, or broadcast, and depending on whether the packet is valid.
  • Mirror packets sent to or from the CPU out of a SPAN destination port for troubleshooting purposes.

For information on SPAN, see Chapter 51, “Configuring SPAN and RSPAN.”

Page 85 of the Cisco Systems 4500 user manual — Security Features
Page 85 · click to enlarge
Page 85

Chapter 1 Product Overview

Remote SPAN (RSPAN) is an extension of SPAN, where source ports and destination ports are distributed across multiple switches, allowing remote monitoring of multiple switches across the network. The traffic for each RSPAN session is carried over a user-specified RSPAN VLAN that is dedicated for that RSPAN session on all participating switches.

For information on RSPAN, see Chapter 51, “Configuring SPAN and RSPAN.”

Web Content Coordination Protocol

Web Content Communication Protocol (WCCP) Version 2 Layer 2 redirection enables Catalyst 4500 series switches to transparently redirect content requests to the directly connected content engines by using a Layer 2 and MAC address rewrite. The WCCPv2 Layer 2 redirection is accelerated in the switching hardware, and is more efficient than Layer 3 redirection using Generic Routing Encapsulation (GRE). The content engines in a cache cluster transparently store frequently accessed content, and then fulfills successive requests for the same content, eliminating repetitive transmissions of identical content from the original content servers. It supports the transparent redirection of HTTP and non-HTTP traffic with ports or dynamic services, such as Web caching, HTTPS caching, File Transfer Protocol (FTP) caching, proxy caching, media caching, and streaming services. WCCPv2 Layer 2 redirection is typically deployed for transparent caching at network edge, such as regional or branch sites. WCCPv2 Layer 2 redirection cannot be enabled on the same input interface with PBR or VRF-lite. ACL-based classification for Layer 2 redirection is not supported.

For information on WCCP, see Chapter 64, “Configuring WCCP Version 2 Services.”

XML-PI

eXtensible Markup Language Programmatic Interface (XML-PI) Release 1.0 leverages the Network Configuration Protocol (NETCONF). It provides new data models that collect running configurations and show command output down to the keyword level without requiring the technologies or external XML-to-command line interface (CLI) gateways. XML-PI allows you to develop XML-based network management applications to control any number of network devices simultaneously.

Refer to the following link for more details:

http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_xmlpi_v1.html

Security Features

The Catalyst 4500 series switch offers network management and control through the CLI or through alternative access methods, such as SNMP. The switch software supports these security features:

  • 802.1X Identity-Based Network Security, page 1-24
  • Cisco TrustSec SGT Exchange Protocol (SXP) IPv4, page 1-25
  • Dynamic ARP Inspection, page 1-26
  • Dynamic Host Configuration Protocol Snooping, page 1-26
  • Flood Blocking, page 1-26

Security Features

Page 86 of the Cisco Systems 4500 user manual — 802.1X Identity-Based Network Security
Page 86 · click to enlarge
Page 86

Chapter 1 Product Overview Security Features

  • Hardware-Based Control Plane Policing, page 1-26
  • IP Source Guard for Static Hosts, page 1-27
  • IP Source Guard, page 1-27
  • Local Authentication, RADIUS, and TACACS+ Authentication, page 1-27
  • Network Admission Control, page 1-27
  • Network Security with ACLs, page 1-28
  • Port Security, page 1-28
  • PPPoE Intermediate Agent, page 1-29
  • Storm Control, page 1-29
  • uRPF Strict Mode, page 1-29
  • Utilities, page 1-30
  • Web-based Authentication, page 1-30

802.1X Identity-Based Network Security

This security feature consists of the following:

  • 802.1X Authentication for Guest VLANs—Allows you to use VLAN assignment to limit network access for certain users.
  • 802.1X Authentication Failed Open Assignment—Allows you to configure a switch to handle the case when a device fails to authenticate itself correctly through 802.1X (for example, not providing the correct password).
  • 802.1X Authentication with ACL Assignment—Downloads per-host policies such as ACLs and redirect URLs to the switch from the RADIUS server during 802.1X or MAB authentication of the host.
  • 802.1X Authentication with Per-User ACL and Filter-ID ACL—Allows ACL policy enforcement using a third-party AAA server.
  • 802.1X Convergence—Provides consistency between the switching business units in 802.1X configuration and implementation.
  • 802.1X Protocol—Provides a means for a host that is connected to a switch port to be authenticated before it is given access to the switch services.
  • 802.1X RADIUS accounting—Allows you to track the use of network devices.
  • 802.1X Supplicant and Authenticator Switches with Network Edge Access Topology (NEAT)—Extends identity to areas outside the wiring closet (such as conference rooms). NEAT is designed for deployment scenarios where a switch acting as 802.1X authenticator to end-hosts (PC or Cisco IP-phones) is placed in an unsecured location (outside wiring closet); the authenticator switch cannot always be trusted.
  • 802.1X with Authentication Failed VLAN Assignment—Allows you to provide access for authentication failed users on a per-port basis. Authentication failed users are end hosts that are 802.1X-capable but do not have valid credentials in an authentication server or end hosts that do not give any username and password combination in the authentication pop-up window on the user side.
Page 87 of the Cisco Systems 4500 user manual — Cisco TrustSec SGT Exchange Protocol (SXP) IPv4
Page 87 · click to enlarge
Page 87

Chapter 1 Product Overview

  • 802.1X with Inaccessible Authentication Bypass—Applies when the AAA servers are unreachable or nonresponsive. In this situation, 802.1X user authentication typically fails with the port closed, and the user is denied access. Inaccessible Authentication Bypass provides a configurable alternative on the Catalyst 4500 series switch to grant a critical port network access in a locally specified VLAN.
  • 802.1X with Port Security—Allows port security on an 802.1X port in either singleor multiple-host mode. When you enable port security and 802.1X on a port, 802.1X authenticates the port, and port security manages the number of MAC addresses allowed on that port, including that of the client .
  • 802.1X with MAC Authentication Bypass—Provides network access to agentless devices without 802.1X supplicant capabilities, such as printers. Upon detecting a new MAC address on a switch port, the Catalyst 4500 series switch will proxy an 802.1X authentication request based on the device’s MAC address.
  • 802.1X with RADIUS-Provided Session Timeouts—Allows you to specify whether a switch uses a locally configured or a RADIUS-provided reauthentication timeout.
  • 802.1X with Unidirectional Controlled Port—Allows the Wake-on-LAN (WoL) magic packets to reach a workstation attached to an unauthorized 802.1X switch port. Unidirectional Controlled Port is typically used to send operating systems or software updates from a central server to workstations at night.
  • 802.1X with Violation Mode—This feature allows you to configure 802.1X security violation behavior as either shutdown, restrict, or replace mode, based on the response to the violation.
  • 802.1X with VLAN assignment—This feature allows you to enable non-802.1X-capable hosts to access networks that use 802.1X authentication.
  • 802.1X with VLAN user distribution—An alternative to dynamically assigning a VLAN ID or a VLAN name, this feature assign a VLAN Group name. It enables you to distribute users belonging to the same group (and characterized by a common VLAN Group name) across multiple VLANs. Ordinarily, you do this to avoid creating an overly large broadcast domain.
  • 802.1X with Voice VLAN—This feature allows you to use 802.1X security on a port while enabling it to be used by both Cisco IP phones and devices with 802.1X supplicant support.
  • Multi-Domain Authentication—This feature allows both a data device and a voice device, such as an IP phone (Cisco or non-Cisco), to authenticate on the same switch port, which is divided into a data domain and a voice domain.
  • RADIUS Change of Authorization—This feature employs Change of Authorization (CoA) extensions defined in RFC 5176 in a push model to allow for the dynamic reconfiguring of sessions from external authentication, authorization, and accounting (AAA) or policy servers.

For more information on 802.1X identity-based network security, see Chapter 40, “Configuring 802.1X Port-Based Authentication.”

Cisco TrustSec SGT Exchange Protocol (SXP) IPv4

TrustSec Security Group Tag Exchange Protocol (SXP) IPv4 is a solution migration protocol developed to provide a mechanism for legacy switches (not tag capable) to participate in a TrustSec network. The IPv4 to SGT binding is communicated out of band to the SXP peer. The SXP peer will populate a local binding table. If the peer is an egress switch it will use these bindings to do SGACL enforcement. If the peer is configured as a distribution SXP switch to improve scaling, then the binding table updates will be provided to the egress switch by the distribution switch.

For more information, refer to the following URLs:

Security Features

Page 88 of the Cisco Systems 4500 user manual — Hardware-Based Control Plane Policing
Page 88 · click to enlarge
Page 88

Chapter 1 Product Overview Security Features

http://www.cisco.com/en/US/docs/switches/lan/trustsec/configuration/guide/trustsec.html

Dynamic ARP Inspection

Dynamic ARP Inspection (DAI) intercepts all ARP requests, replies on untrusted ports, and verifies each intercepted packet for valid IP to MAC bindings. Dynamic ARP Inspection helps to prevent attacks on a network by not relaying invalid ARP replies out to other ports in the same VLAN. Denied ARP packets are logged by the switch for auditing.

For more information on dynamic ARP inspection, see Chapter 46, “Configuring Dynamic ARP Inspection.”

Dynamic Host Configuration Protocol Snooping

Dynamic Host Configuration Protocol (DHCP) Snooping is a security feature that is a component of a DHCP server. DHCP snooping provides security by intercepting untrusted DHCP messages and by building and maintaining a DHCP snooping binding table. An untrusted message is a message that is received from outside the network or firewall that can cause traffic attacks within your network.

DHCP snooping acts like a firewall between untrusted hosts and DHCP servers. It also provides a way to differentiate between untrusted interfaces connected to the end-user and trusted interfaces connected to the DHCP server or another switch.

With SSO support, DHCP Snooping propagates the DHCP-snooped data from the active supervisor engine to the redundant supervisor engine so that when a switchover occurs, the newly active supervisor engine is aware of the DHCP data that was already snooped, and the security benefits continue uninterrupted.

For DHCP server configuration information, refer to the chapter, “Configuring DHCP,” in the Cisco IOS IP and IP Routing Configuration Guide at the following URL:

http://www.cisco.com/en/US/docs/ios/ipaddr/configuration/guide/iad_dhcp_rdmp_ps6350_TSD_Produ cts_Configuration_Guide_Chapter.html

For information on configuring DHCP snooping, see Chapter 45, “Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts.”

Flood Blocking

Flood blocking enables users to disable the flooding of unicast and multicast packets on a per-port basis. Occasionally, unknown unicast or multicast traffic from an unprotected port is flooded to a protected port because a MAC address has timed out or has not been learned by the switch.

For information on flood blocking, see Chapter 49, “Port Unicast and Multicast Flood Blocking.”

Hardware-Based Control Plane Policing

Control Plane Policing provides a unified solution to limit the rate of CPU bound control plane traffic in hardware. It enables users to install system wide control plane ACLs to protect the CPU by limiting rates or filtering out malicious DoS attacks. Control plane policing ensures the network stability, availability and packet forwarding, and prevents network outages such as loss of protocol updates despite an attack or heavy load on the switch. Hardware-based control plane policing is available for all

Page 89 of the Cisco Systems 4500 user manual — Network Admission Control
Page 89 · click to enlarge
Page 89

Chapter 1 Product Overview

Catalyst 4500 supervisor engines. It supports various Layer 2 and Layer 3 control protocols, such as CDP, EAPOL, STP, DTP, VTP, ICMP, CGMP, IGMP, DHCP, RIPv2, OSPF, PIM, TELNET, SNMP, HTTP, and packets destined to 224.0.0.* multicast link local addresses. Predefined system policies or user-configurable policies can be applied to those control protocols.

Through Layer 2 Control Packet QoS, you can police control packets arriving on a physical port or VLAN; it enables you to apply QoS on Layer 2 control packets

For information on control plane policing and Layer 2 control packet QoS, see Chapter 44, “Configuring Control Plane Policing and Layer 2 Control Packet QoS.”

IP Source Guard for Static Hosts

This feature allows you to secure the IP address learned from static hosts by using ARP packets and then bind that IP address to a given MAC address using the device tracking database, allowing entries to survive through link down events.

IP Source Guard (IPSG) for static hosts allows multiple bindings per-port per-MAC address for both DHCP and static hosts, in both device tracking database and DHCP snooping binding database. The feature allows you to take action when a limit is exceeded.

For information on configuring IPSG for static hosts, see Chapter 45, “Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts.”

IP Source Guard

Similar to DHCP snooping, this feature is enabled on an untrusted Layer 2 port that is configured for DHCP snooping. Initially all IP traffic on the port is blocked except for the DHCP packets, which are captured by the DHCP snooping process. When a client receives a valid IP address from the DHCP server, a PVACL is installed on the port, which restricts the client IP traffic only to clients with assigned IP addresses, so any IP traffic with source IP addresses other than those assigned by the DHCP server will be filtered out. This filtering prevents a malicious host from attacking a network by hijacking neighbor host's IP address.

For information on configuring IP Source Guard, see Chapter 45, “Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts.”

Local Authentication, RADIUS, and TACACS+ Authentication

Local Authentication, Remote Authentication Dial-In User Service (RADIUS), and Terminal Access Controller Access Control System Plus (TACACS+) authentication methods control access to the switch. For additional information, refer to the following URL:

http://www.cisco.com/en/US/docs/ios/sec_user_services/configuration/guide/sec_cfg_authentifcn_ps635 0_TSD_Products_Configuration_Guide_Chapter.html

Network Admission Control

Network Admission Control consists of two features:

  • NAC Layer 2 IP validation

Security Features

Page 90 of the Cisco Systems 4500 user manual — Port Security
Page 90 · click to enlarge
Page 90

Chapter 1 Product Overview Security Features

NAC Layer 2 IP is an integral part of Cisco Network Admission Control. It offers the first line of defense for infected hosts (PCs and other devices attached to a LAN port) attempting to connect to the corporate network. NAC Layer 2 IP on the Cisco Catalyst 4500 series switch performs posture validation at the Layer 2 edge of the network for non-802.1x-enabled host devices. Host device posture validation includes antivirus state and OS patch levels. Depending on the corporate access policy and host device posture, a host may be unconditionally admitted, admitted with restricted access, or quarantined to prevent the spread of viruses across the network.

For more information on Layer 2 IP validation, see the URL: http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4 1/configuration/guide/nac_conf.html

  • NAC Layer 2 802.1X authentication

The Cisco Catalyst 4500 series switch extends NAC support to 802.1x-enabled devices. Like NAC Layer 2 IP, the NAC Layer 2 802.1x feature determines the level of network access based on endpoint information.

For more information on 802.1X identity-based network security, see Chapter 40, “Configuring 802.1X Port-Based Authentication.”

Network Security with ACLs

An access control list (ACL) filters network traffic by controlling whether routed packets are forwarded or blocked at the router interfaces. The Catalyst 4500 series switch examines each packet to determine whether to forward or drop the packet based on the criteria you specified within the access lists.

MAC access control lists (MACLs) and VLAN access control lists (VACLs) are supported. VACLs are also known as VLAN maps in Cisco IOS.

The following security features are supported:

  • MAC address filtering, which enables you to block unicast traffic for a MAC address on a VLAN interface.
  • Port ACLs, which enable you to apply ACLs to Layer 2 interfaces on a switch for inbound traffic.

For information on ACLs, MACLs, VLAN maps, MAC address filtering, and Port ACLs, see Chapter 47, “Configuring Network Security with ACLs.”

Port Security

Port security restricts traffic on a port based upon the MAC address of the workstation that accesses the port. Trunk port security extends this feature to trunks, including private VLAN isolated trunks, on a per-VLAN basis.

Sticky port security extends port security by saving the dynamically learned MAC addresses in the running configuration to survive port link down and switch reset. It enables a network administrator to restrict the MAC addresses allowed or the maximum number of MAC addresses on each port.

Voice VLAN sticky port security further extends the sticky port security to the voice-over-IP deployment. Voice VLAN sticky port security locks a port and blocks access from a station with a MAC address different from the IP phone and the workstation behind the IP phone.

For information on port security, see Chapter 43, “Configuring Port Security.”

Page 91 of the Cisco Systems 4500 user manual — uRPF Strict Mode
Page 91 · click to enlarge
Page 91

Chapter 1 Product Overview

PPPoE Intermediate Agent

PPPoE Intermediate Agent (PPPoE IA) is placed between a subscriber and BRAS to help the service provider BRAS distinguish between end hosts connected over Ethernet to an access switch. On the access switch, PPPoE IA enables Subscriber Line Identification by appropriately tagging Ethernet frames of different users. (The tag contains specific information such as which subscriber is connected to the switch and VLAN.) PPPoE IA acts as mini-security firewall between host and BRAS by intercepting all PPPoE Active Discovery (PAD) messages on a per-port per-VLAN basis. It provides specific security feature such as verifying the intercepted PAD message from untrusted port, performing per-port PAD message rate limiting, inserting and removing VSA tags into and from PAD messages, respectively.

For information on PPPoE IA, see Chapter 41, “Configuring the PPPoE Intermediate Agent.”

Storm Control

Broadcast suppression is used to prevent LANs from being disrupted by a broadcast storm on one or more switch ports. A LAN broadcast storm occurs when broadcast packets flood the LAN, creating excessive traffic and degrading network performance. Errors in the protocol-stack implementation or in the network configuration can cause a broadcast storm. Multicast and broadcast suppression measures how much broadcast traffic is passing through a port and compares the broadcast traffic with some configurable threshold value within a specific time interval. If the amount of broadcast traffic reaches the threshold during this interval, broadcast frames are dropped, and optionally the port is shut down.

Cisco IOS Software Release 12.2(40)SG allows suppression of broadcast and multicast traffic on a per-port basis. (Supervisor Engine 6-E and Supervisor Engine 6L-E only)

For information on configuring broadcast suppression, see Chapter 50, “Configuring Storm Control.”

uRPF Strict Mode

The uRPF feature mitigates problems caused by the introduction of malformed or forged (spoofed) IP source addresses into a network by discarding IP packets that lack a verifiable IP source address. uRPF deflects denial-of-service (DoS) and distributed denial-of-service (DDoS) attacks by forwarding only packets that have source addresses that are valid and consistent with the IP routing table. This helps to protect the network of the customer, the ISP, and the rest of the Internet. When using uRPF in strict mode, the packet must be received on the interface that the router uses to forward the return packet. uRPF strict mode is supported for both IPv4 and IPv6 prefixes.

For information on configuring broadcast suppression, see Chapter 32, “Configuring Unicast Reverse Path Forwarding.”

Security Features

Page 92 of the Cisco Systems 4500 user manual — Web-based Authentication
Page 92 · click to enlarge
Page 92

Chapter 1 Product Overview Security Features

Utilities

Supported utilities include the following:

Layer 2 Traceroute

Layer 2 traceroute allows the switch to identify the physical path that a packet takes from a source device to a destination device. Layer 2 traceroute supports only unicast source and destination MAC addresses.

For information about Layer 2 Traceroute, see Chapter 7, “Checking Port Status and Connectivity.”

Time Domain Reflectometry

Time Domain Reflectometry (TDR) is a technology used for diagnosing the state and reliability of cables. TDR can detect open, shorted, or terminated cable states. The calculation of the distance to the failure point is also supported.

For information about TDR, see Chapter 7, “Checking Port Status and Connectivity.”

Debugging Features

The Catalyst 4500 series switch has several commands to help you debug your initial setup. These commands are included in the following command groups:

  • platform
  • debug platform

For more information, refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference.

Web-based Authentication

The web-based authentication feature, known as Web Authentication Proxy, enables you to authenticate end users on host systems that do not run the IEEE 802.1X supplicant. When you initiate an HTTP session, this feature intercepts ingress HTTP packets from the host and sends an HTML login page to your. You key in the credentials, which the web-based authentication feature sends to the AAA server for authentication. If authentication succeeds, web-based authentication sends a Login-Successful HTML page to the host and applies the access policies returned by the AAA server.

For information on configuring web-based authentication, see Chapter 42, “Configuring Web-Based Authentication.”

Page 93 of the Cisco Systems 4500 user manual — C H A P T E R
Page 93 · click to enlarge
Page 93

C H A P T E R

Command-Line Interfaces

This chapter describes the CLIs you use to configure the Catalyst 4500 series switch. This chapter includes the following major sections:

  • Accessing the Switch CLI, page 2-2
  • Performing Command-Line Processing, page 2-3
  • Performing History Substitution, page 2-4
  • About Cisco IOS Command Modes, page 2-4
  • Getting a List of Commands and Syntax, page 2-5
  • ROMMON Command-Line Interface, page 2-7
  • Archiving Crashfiles Information, page 2-8
  • Displaying a Crash Dump, page 2-8

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

The following command changes only apply to Supervisor Engines 6-E and 6L-E:

  • The verify and squeeze commands are not supported in the FAT file system.
  • The rename command is supported in the FAT file system.

For Supervisor Engine 6-E and Supervisor Engine 6L-E the rename command has been added for bootflash and slot0. For all other supervisor engines, the rename command is supported for NVRAM devices only.

  • The fsck command is supported for the slot0 device. It is not supported in the file systems on supervisor engines other than Supervisor Engine 6-E and 6L-E.
Page 94 of the Cisco Systems 4500 user manual — Accessing the CLI Through Telnet
Page 94 · click to enlarge
Page 94

Chapter 2 Command-Line Interfaces Accessing the Switch CLI

Accessing the Switch CLI

The following sections describe how to access the switch CLI:

  • Accessing the CLI Using the EIA/TIA-232 Console Interface, page 2-2
  • Accessing the CLI Through Telnet, page 2-2

Accessing the CLI Using the EIA/TIA-232 Console Interface

Perform the initial switch configuration over a connection to the EIA/TIA-232 console interface. Refer to the Catalyst 4500 Series Switch Module Installation Guide for console interface cable connection procedures.

To access the switch through the console interface, perform this task:

Step 1 Switch> enable From the user EXEC prompt (>), enter enable to change to enable mode (also known as privileged mode or privileged EXEC mode).

Step 2 Passwordpassword

At the password prompt, enter the system password. The prompt (#) appears, indicating that you have accessed the CLI in enabled mode.

Step 3 Switch# quit When you are finished executing the task command, exit the session.

After accessing the switch through the EIA/TIA-232 interface, you see this display:

Press Return for Console prompt

Switch> enable Password:< > Switch#

Accessing the CLI Through Telnet

The switch supports up to eight simultaneous Telnet sessions. Telnet sessions disconnect automatically after remaining idle for the period specified by the exec-timeout command.

Switch#

Page 95 of the Cisco Systems 4500 user manual — Keystrokes Result
Page 95 · click to enlarge
Page 95

Chapter 2 Command-Line Interfaces

To make a Telnet connection to the switch, perform this task:

Step 1 telnet {hostname | ip_addr} From the remote host, enter the telnet command and the name or IP address of the switch you want to access.

Step 2 Passwordpassword

At the prompt, enter the password for the CLI. If no password has been configured, press Return.

Step 3 Enter the necessary commands to complete your desired tasks.

Step 4 Switch# quit When finished, exit the Telnet session.

This example shows how to open a Telnet session to the switch:

unix_host% telnet Switch_1 Trying 172.20.52.40... Connected to 172.20.52.40. Escape character is '^]'. User Access Verification Password:< > Switch_1> enable Password: Switch_1#

Performing Command-Line Processing

Switch commands are not case sensitive. You can abbreviate commands and parameters if the abbreviations contain enough letters to be different from any other currently available commands or parameters.

You can scroll through the last 20 commands stored in the history buffer and enter or edit a command at the prompt. Table 2-1 lists the keyboard shortcuts for entering and editing switch commands.

Table 2-1 Keyboard Shortcuts

Keystrokes Result

Press Ctrl-B or press the Left Arrow key1

Moves the cursor back one character.

Press Ctrl-F or press the Right Arrow key1

Moves the cursor forward one character.

Press Ctrl-A Moves the cursor to the beginning of the command line.

Press Ctrl-E Moves the cursor to the end of the command line.

Press Esc-B Moves the cursor back one word.

Press Esc-F Moves the cursor forward one word.

1. The Arrow keys function only on ANSI-compatible terminals, such as VT100s.

Performing Command-Line Processing · Switch#

Page 96 of the Cisco Systems 4500 user manual — About Cisco IOS Command Modes
Page 96 · click to enlarge
Page 96

Chapter 2 Command-Line Interfaces Performing History Substitution

Performing History Substitution

The history buffer stores the last 20 command lines you entered. History substitution enables you to access these command lines without retyping them. Table 2-2 lists the history substitution commands.

Table 2-2 History Substitution Commands

Ctrl-P or the Up Arrow key1

Recalls commands in the history buffer, beginning with the most recent command. Repeat the key sequence to recall older commands successively.

Ctrl-N or the Down Arrow key1 Returns to more recent commands in the history buffer after commands have been recalled with Ctrl-P or the Up Arrow key. Repeat the key sequence to recall more recent commands.

Switch# show history Lists the last several commands you have entered in EXEC mode.

1. The Arrow keys function only on ANSI-compatible terminals such as VT100s.

About Cisco IOS Command Modes

The Cisco IOS user interface has many different modes: user EXEC, privileged EXEC (enable), global configuration, interface, subinterface, and protocol-specific. The commands available to you depend on which mode you are in. To get a list of the commands in a given mode, enter a question mark (?) at the system prompt. See the “Getting a List of Commands and Syntax” section on page 2-5 for more information.

When you start a session on the switch, you begin in user mode, also called user EXEC mode. Only a small subset of commands are available in EXEC mode. To have access to all commands, you must enter privileged EXEC mode, also called enable mode. To access the privileged EXEC mode, you must enter a password. When you are in the privileged EXEC mode, you can enter any EXEC command or access global configuration mode. Most EXEC commands are one-time commands, such as show commands, which display the current configuration status, and clear commands, which reset counters or interfaces. The EXEC commands are not saved when the switch is rebooted.

The configuration modes allow you to make changes to the running configuration. If you save the configuration, these commands are stored when you reboot the switch. You must start in global configuration mode. From global configuration mode, you can enter interface configuration mode, subinterface configuration mode, and a variety of protocol-specific modes.

Page 97 of the Cisco Systems 4500 user manual — Getting a List of Commands and Syntax
Page 97 · click to enlarge
Page 97

Chapter 2 Command-Line Interfaces

Getting a List of Commands and Syntax

You use a separate mode called ROMMON when the switch cannot boot up properly. For example, the switch might enter ROMMON mode if it does not find a valid system image when it is booting, or if its configuration file is corrupted. For more information, see the “ROMMON Command-Line Interface” section on page 2-7.

Table 2-3 lists and describes frequently used Cisco IOS modes.

Table 2-3 Frequently Used Cisco IOS Command Modes

Mode What You Use It For How to Access Prompt

User EXEC To connect to remote devices, change terminal settings on a temporary basis, perform basic tests, and display system information.

Log in. Switch>

Privileged EXEC (enable) To set operating parameters. The privileged command set includes the commands in user EXEC mode, as well as the configure command. Use the configure command to access the other command modes.

From user EXEC mode, enter the enable command and the enable password (if a password has been configured).

Global configuration To configure features that affect the system as a whole, such as the system time or switch name.

From privileged EXEC mode, enter the configure terminal command.

Interface configuration To enable or modify the operation of a 10-Gigabit Ethernet, Gigabit Ethernet, or Fast Ethernet interface with interface commands.

From global configuration mode, enter the interface type location command.

Console configuration To configure the console interface; from the directly connected console or the virtual terminal; used with Telnet.

From global configuration mode, enter the line console 0 command.

The Cisco IOS command interpreter, called the EXEC, interprets and runs the commands you enter. You can abbreviate commands and keywords by entering just enough characters to make the command unique from other commands. For example, you can abbreviate the show command to sh and the configure terminal command to config t.

When you type exit, the switch backs out one level. To exit configuration mode completely and return to privileged EXEC mode, press Ctrl-Z.

Getting a List of Commands and Syntax

In any command mode, you can get a list of available commands by entering a question mark (?).

To obtain a list of commands that begin with a particular character sequence, enter those characters followed by the question mark (?). Do not include a space before the question mark. This form of help is called word help, because it completes a word for you.

Show 5 more labels / short text on this page
Switch# · Switch(config)# · Switch(config-if)# · Switch(config-line)# · Switch> ?
Page 98 of the Cisco Systems 4500 user manual — Virtual Console for Standby Supervisor Engine
Page 98 · click to enlarge
Page 98

Chapter 2 Command-Line Interfaces Getting a List of Commands and Syntax

To list keywords or arguments, enter a question mark in place of a keyword or argument. Include a space before the question mark. This form of help is called command syntax help, because it reminds you which keywords or arguments are applicable based on the command, keywords, and arguments you have already entered.

Switch# configure ? memory Configure from NV memory network Configure from a TFTP network host overwrite-network Overwrite NV memory from TFTP network host terminal Configure from the terminal

To redisplay a command you previously entered, press the Up Arrow key or Ctrl-P. You can continue to press the Up Arrow key to see the last 20 commands you entered.

Type exit to return to the previous mode. Press Ctrl-Z or enter the end command in any mode to immediately return to privileged EXEC mode.

Virtual Console for Standby Supervisor Engine

Catalyst 4500 series switches can be configured with 2 supervisor engines to provide redundancy. When the switch is powered, one of the supervisor engines becomes active and remains active until a switchover occurs. The other supervisor engine remains in standby mode.

Each supervisor engine has its own console port. Access to the standby supervisor engine is possible only through the console port of the standby supervisor engine. You must connect to the standby console to access, monitor or debug the standby supervisor.

Virtual Console for Standby Supervisor Engine enables you to access the standby console from the active supervisor engine without requiring a physical connection to the standby console. It uses IPC over EOBC to communicate with the standby supervisor engine and thus emulate the standby console on the active supervisor engine. Only one active standby console session is active at any time.

The virtual console for standby supervisor engine enables users who are logged onto the active supervisor engine to remotely execute show commands on the standby supervisor engine and view the results on the active supervisor engine. Virtual console is available only from the active supervisor engine.

You can access the standby virtual console from the active supervisor engine with the attach module, session module, or remote login commands on the active supervisor engine. You must be in privilege EXEC mode (level 15) to run these commands to access the standby console.

Once you enter the standby virtual console, the terminal prompt automatically changes to hostname-standby-console#, where hostname is the configured name of the switch. The prompt is restored back to the original prompt when you exit the virtual console.

You exit the virtual console with the exit or quit commands. When the inactivity period of the terminal on the active supervisor engine where you logged in exceeds the configured idle time, you are automatically logged out of the terminal on the active supervisor engine. In this case, the virtual console session is also terminated. Virtual console session is also automatically terminated when the standby is rebooted. After the standby boots up, you need to create another virtual console session.

Page 99 of the Cisco Systems 4500 user manual — ROMMON Command-Line Interface
Page 99 · click to enlarge
Page 99

Chapter 2 Command-Line Interfaces

To log in to the standby supervisor engine using a virtual console, enter the following command:

Switch# session module 2 Connecting to standby virtual console Type "exit" or "quit" to end this session Switch-standby-console# exit

If the standby console is not enabled, the following message appears:

Switch-standby-console# Standby console disabled. Valid commands are: exit, logout

Virtual session into the standby console is N/A with RPR:

Switch# session module 2 IPC server port name IFConsoleServer:2 not registered on standby. Secondary cannot be accessed by virtual console

The following limitations apply to the standby virtual console:

  • All commands on the virtual console run to completion. It does not provide the auto-more feature; it behaves as if the terminal length 0 command has been executed. It is also noninteractive. A executing command cannot be interrupted or aborted by any key sequence on the active supervisor engine. If a command produces considerable output, the virtual console displays it on the supervisor screen.
  • The virtual console is noninteractive. Because the virtual console does not detect the interactive nature of a command, any command that requires user interaction causes the virtual console to wait until the RPC timer aborts the command.
  • The virtual console timer is set to 60 seconds. The virtual console returns to its prompt after 60 seconds. During this time, you cannot abort the command from the keyboard. You must wait for the timer to expire before you continue.
  • You cannot use virtual console to view debug and syslog messages that are being displayed on the standby supervisor engine. The virtual console only displays the output of commands that are executed from the virtual console. Other information that is displayed on the real standby console does not appear on the virtual console.

ROMMON Command-Line Interface

ROMMON is a ROM-based program that is involved at power-up or reset, or when a fatal exception error occurs. The switch enters ROMMON mode if the switch does not find a valid software image, if the NVRAM configuration is corrupted, or if the configuration register is set to enter ROMMON mode. From the ROMMON mode, you can load a software image manually from flash memory, from a network server file, or from bootflash.

You can also enter ROMMON mode by restarting the switch and pressing Ctrl-C during the first five seconds of startup.

ROMMON Command-Line Interface

Page 100 of the Cisco Systems 4500 user manual — Displaying a Crash Dump
Page 100 · click to enlarge
Page 100

Chapter 2 Command-Line Interfaces Archiving Crashfiles Information

When you enter ROMMON mode, the prompt changes to rommon 1>. Use the ? command to see the available ROMMON commands.

For more information about the ROMMON commands, refer to the Cisco IOS Command Reference.

Archiving Crashfiles Information

This feature allows you to archive crashinfo files (otherwise overwritten if another system reset were to happen first to the bootflash). Having access to archived crashinfo data greatly assists in troubleshooting.

To archive crashinfo files, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# exception crashinfo file bootflash: name

Enables archiving crashinfo files to bootflash. The files are stored in bootflash with the name specified concatenated with the date.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Displaying a Crash Dump

A crash dump provides the following information:

  • Malloc or free traces
  • Chuck alloc/free traces
  • Process block dump
  • Register memory dump
  • Current proc stack partial decode
  • Interrupt level stack
  • Last 128 memory block dump

To display a crash dump, do the following:

Switch# show platform crashdump

Current Time9/6/2010 15:47:21
Last Power Failure09/06/2010 15:03:28 Last Reload Status: 00002000 Last Software Reset State: 00000000
Crashdump version1
Last crash09/06/2010 06:21:58
Build12.2(20100723:074204) ENTSERVICES buildversion addr: 14847D24
Page 101 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 101 · click to enlarge
Page 101

Chapter 2 Command-Line Interfaces

Displaying a Crash Dump

========= Context ====================== pc=10999E70 lr=10999E34 msr=02029230 vector=00000600 cr=20004022 ctr=108EC3EC xer=00000000 r0=10999E34 r1=2421F930 r2=0000001E r3=234BBFD8 r4=0000000A r5=00000000 r6=2421F918 r7=00000000 r8=00000000 r9=00000000 r10=14850000 r11=234BBFD4 r12=EB93A100 r13=B4E9F3F3 r14=10CD0984 r15=00000000 r16=156CA504 r17=156CA504 r18=00000001 r19=00000000 r20=00000000 r21=00000000 r22=00000000 r23=00000000 r24=00000000 r25=00000000 r26=00000000 r27=00000000 r28=15870804 r29=00000000 r30=14850000 r31=00000000 dec=00083695 tbu=00000002 tbl=2A7D42DA dar=80210020 dsisr=80210020 hid0=80004000

Traceback10999E70 11B430B8 10C84444 10C83338 11BE0C5C 10C93874 10C93D78 10C94140 10C992EC 10CD155C 1099BCFC 10992CEC

========= Stack frames ====================== Frame 1: pc=11B430B8 stack=2421F940 Frame 2: pc=10C84444 stack=2421F948 Frame 3: pc=10C83338 stack=2421F9B0 Frame 4: pc=11BE0C5C stack=2421F9E8 Frame 5: pc=10C93874 stack=2421FA00 Frame 6: pc=10C93D78 stack=2421FA18 Frame 7: pc=10C94140 stack=2421FA48 Frame 8: pc=10C992EC stack=2421FA58 Frame 9: pc=10CD155C stack=2421FA70 Frame 10: pc=1099BCFC stack=2421FB08 Frame 11: pc=10992CEC stack=2421FB10

========= Pushed stack ====================== 2421F930: 2421F940 10999E34 2421F940 15868B74 2421F940: 2421F948 11B430B8 2421F9B0 10C84444 2421F950: 2421F978 00000000 00000000 00000000 2421F960: 00000000 2421F9C0 00000000 240CC3C8 2421F970: 2421F990 11AE7394 00000006 FFFFFFFF 2421F980: 00000000 00000000 00000000 14BE0000 2421F990: 00000000 2421F9A0: 00000001 00000000 15868B74 15868B74 2421F9B0: 2421F9E8 10C83338 00000000 00000000 2421F9C0: 00000071 15868B74 156CA328 13794ACD 2421F9D0: 00000000 00000001 00000000 1511A790 2421F9E0: 2366B680 15868B74 2421FA00 11BE0C5C 2421F9F0: 156CA328 156CA328 2366B680 15868B74 2421FA00: 2421FA18 10C93874 2421FA20 00000000 2421FA10: 00000000 2366B628 2421FA48 10C93D78 2421FA20: 2421FA58 10C95370 00000000 11BB0A98 2421FA30: 00000000 00000000 15868B74 00000000 2421FA40: 00000000 15868B74 2421FA58 10C94140 2421FA50: 00000003 15868B74 2421FA70 10C992EC 2421FA60: 00000000 00000000 00000000 156CA328 2421FA70: 2421FB08 10CD155C 0DFFFFFF FFFFFFFF 2421FA80: FFFFFFFF 2421FA90: FFFFFFFF 2421FAA0: FFFFFFFF 2421FAB0: 00000001 FFFFFFFF FFFFFFFF FFFFFFFF 2421FAC0: FFFFFFFF 00000000 00000000 00000000 2421FAD0: 00000000 2421FAE0: 00000000

Page 102 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 102 · click to enlarge
Page 102

Chapter 2 Command-Line Interfaces Displaying a Crash Dump

2421FAF000000000 00000000 00000000 00000000 2421FB00: 00000000 00000000 2421FB10 1099BCFC 2421FB10: 00000000 10992CEC FFFFFFFF

========= Popped stack ====================== 2421F730: E8000800 151B1AB0 2421F748 132BBFA8 2421F740: 000E8000 151B1AB0 2421F760 132BC0D0 2421F750: 000E8000 00009B0A E8000800 151B1AB0 2421F760: 2421F778 132BC2A0 E8000800 00009B0A 2421F770: 00000800 153B1B7C 2421F790 123FAF28 2421F780: 2421F790 00000000 0000000A 151B17E4 2421F790: 2421F798 123FB2BC 2421F7B0 11C12A90 2421F7A0: 00009B0A 11C12880 0000000A 146C0000 2421F7B0: 2421F7C0 11BA7384 00000000 146B0000 2421F7C0: 2421F7D0 11AD3144 0000000A 0000000A 2421F7D0: 2421F7D8 11C10390 2421F7E0 11BB0424 2421F7E0: 2421F7F0 11BB04E4 2433FCD4 FFFFFFFE 2421F7F0: 2421F800 107CF880 7FFFFFFF FFFFFFFE 2421F800: 2421F8A8 107CCDF0 20637261 73686475 2421F810: 6D700000 00000000 2421F840 00000000 2421F820: 2421F8B0 00000000 0000004A 002E8A00 2421F830: 39760000 0000004A 00000000 2433FCF0 2421F840: 2421F848 2433FCF0 00000000 11A12ACC 2421F850: 13CD617C 10C7DAAC 00000000 2421F8AC 2421F860: 10CD0984 00000000 156CA504 156CA504 2421F870: 00000001 00000000 00000000 00000000 2421F880: 00000000 2421F890: 00000000 00000000 15870804 00000000 2421F8A0: 14850000 FFFFFFFE 2421F930 107CFC7C 2421F8B0: 2421F8C8 14BB1760 00000002 00000000 2421F8C0: 2421F930 14620E40 24330AB4 0000004A 2421F8D0: 00000000 00000000 2421F8E8 10C1FD9C 2421F8E0: 2421F8F8 00000000 00000000 00000000 2421F8F0: 15868B74 15868B74 2421F910 117CF5C0 2421F900: 2421F968 1586A45C 2421F920 15868B74 2421F910: 2421F918 00000000 14850000 00000000 2421F920: 2421F930 10999978 2421F930 00000000

========= Malloc and Free Traces=====================

MallocFree Trace: ixmallocfree=0x2C ptr=0x151A40D8 151A3F78: 2366B628 11AF1144 2366B628 11AF1348 2366B66C 60000024 2447A940 11AF1350 151A3F98: 2447A940 30000018 2447A940 11AF1110 2366B628 4000000E 2366B628 11AF1144 151A3FB8: 2366B628 11AF1348 2366B66C 60000024 2447A940 11AF1350 2447A940 30000018 151A3FD8: 2447A940 11AF1110 2366B628 4000000E 2366B628 11AF1144 2366B628 11AF1348 151A3FF8: 2366B66C 60000024 2447A940 11AF1350 2447A940 30000018 2447A940 11AF1110 151A4018: 2366B628 4000000E 2366B628 11AF1144 2366B628 11AF1348 2366B66C 60000024 151A4038: 2447A940 11AF1350 22FAC944 119F6CC0 22FACF4C 6000005E 2433FCD4 40000046 151A4058: 2433FCD4 11A31DD4 2433FCD4 11A32370 2433FD88 6000005E 2447A940 30000018 151A4078: 2447A940 107D7294 2366B628 40000018 2366B628 10C9533C 2366B680 3000001A 151A4098: 2366B680 10C9536C 2433FCD4 4000000E 2433FCD4 10C7DAAC 2433FCD4 10C7DB90 151A40B8: 2433FD18 60000096 2433FCD4 4000000E 2433FCD4 10E28604 2433FCD4 10E287BC 151A40D8: 2433FD18 60000096 2366B66C 60000024 2447A940 11AF1350 2447A940 30000018 151A40F8: 2447A940 11AF1110 2366B628 4000000E 2366B628 11AF1144 2366B628 11AF1348 151A4118: 2366B66C 60000024 2447A940 11AF1350 2447A940 30000018 2447A940 11AF1110 151A4138: 2366B628 4000000E 2366B628 11AF1144 2366B628 11AF1348 2366B66C 60000024 151A4158: 2447A940 11AF1350 2447A940 30000018 2447A940 11AF1110 2366B628 4000000E

========= Chunk Malloc and Chunk Free Traces=====================

151A3B78238928B8 11A32D70 11A34618 238928B8 11A3187C 11A34618 151A3B60: 15866F0C 10C7FF20 10C7F104 1586FBF0 10C7FE38 10C7F17C
Page 103 of the Cisco Systems 4500 user manual — 151A3B48: 1586D760 10C7FE38 10C7F17C 1586FF98 10C7FE38 10C7F17C
Page 103 · click to enlarge
Page 103

Chapter 2 Command-Line Interfaces

Displaying a Crash Dump

151A3B48: 1586D760 10C7FE38 10C7F17C 1586FF98 10C7FE38 10C7F17C

151A3B30: 1586D760 10C84B24 10C7F17C 1586D760 10C7FE38 10C7F17C 151A3B18: 1586FF98 10C84B24 10C7F17C 1586FF98 10C7FE38 10C7F17C 151A3B00: 1586D760 10C84B24 10C7F17C 1586D760 10C7FE38 10C7F17C 151A3AE8: 1586FF98 10C84B24 10C7F17C 1586FF98 10C7FE38 10C7F17C 151A3AD0: 1586D760 10C84B24 10C7F17C 1586FBF0 10C84B24 10C7F17C 151A3AB8: 1586FBF0 10C7FE38 10C7F17C 1586D760 10C7FE38 10C7F17C 151A3AA0: 1586FBF0 10C84B24 10C7F17C 1586FBF0 10C7FE38 10C7F17C 151A3A88: 15870340 10C7FE38 10C7F17C 1586FBF0 10C84B24 10C7F17C 151A3A70: 1586D760 10C84B24 10C7F17C 1586D760 10C7FE38 10C7F17C 151A3A58: 1586FBF0 10C7FE38 10C7F17C 1586D760 10C84B24 10C7F17C 151A3A40: 1586D760 10C7FE38 10C7F17C 1586FBF0 10C84B24 10C7F17C 151A3A28: 1586FBF0 10C7FE38 10C7F17C 1586D760 10C84B24 10C7F17C 151A3A10: 15870340 10C84B24 10C7F17C 15870340 10C7FE38 10C7F17C 151A39F8: 1586D760 10C7FE38 10C7F17C 15870340 10C84B24 10C7F17C 151A39E0: 15870340 10C7FE38 10C7F17C 1586D760 10C84B24 10C7F17C 151A39C8: 1586D760 10C7FE38 10C7F17C 15870340 10C84B24 10C7F17C 151A39B0: 15870340 10C7FE38 10C7F17C 1586D760 10C84B24 10C7F17C 151A3998: 1586D760 10C7FE38 10C7F17C 15870340 10C84B24 10C7F17C 151A3980: 15870340 10C7FE38 10C7F17C 1586D760 10C84B24 10C7F17C 151A3968: 1586D760 10C7FE38 10C7F17C 15870340 10C84B24 10C7F17C 151A3950: 15870340 10C7FE38 10C7F17C 1586D3B8 10C7FE38 10C7F17C 151A3938: 15870340 10C84B24 10C7F17C 1586D760 10C84B24 10C7F17C 151A3920: 1586D760 10C7FE38 10C7F17C 151A3C14: 15870340 10C7FE38 10C7F17C 1586D760 10C84B24 10C7F17C 151A3BFC: 1586D3B8 10C84B24 10C7F17C 1586D3B8 10C7FE38 10C7F17C 151A3BE4: 1586D760 10C7FE38 10C7F17C 1586D3B8 10C84B24 10C7F17C 151A3BCC: 15870340 10C84B24 10C7F17C 15870340 10C7FE38 10C7F17C 151A3BB4: 1586D3B8 10C7FE38 10C7F17C 15870340 10C84B24 10C7F17C 151A3B9C: 1586D760 10C84B24 10C7F17C 1586D760 10C7FE38 10C7F17C 151A3B84: 15870340 10C7FE38 10C7F17C

========= Process Level Info ==================

Current Process Block (at 0x24330AB4)

24330A8C: AB1234CD 710000 24330AB4 13DF55F0 11A2F280 24330D48 24330A5C 8000014A 24330AAC: 1 10530DC4 242110BC 1582AAAC 156CA328 10CD0984 0 156CA504 24330ACC: 156CA504 6 FFFFFFFF 1 2421FA78 13D2A3E0 FF 0 24330AEC: 1 13D2A3E0 2421FA78 24330AB4 14BE0000 156CA328 107D4240 40004024 24330B0C: 11A3C6A4 2029230 10100 24330B2C: 0 1000000 71 0 0 24330B4C: 0 25610 2350 320BC 0 24330B6C: 0 2035F 0 156CA328 0 2210B 0 2210B 24330B8C: 0 13 0 13D42FC4 4 1 15E 1 24330BAC: 0 0 0 EA60 EA60 156CA328 0 0 24330BCC: 0 24330AB4 151A5708 0 24330BEC: 0 0 149A2408 0 0 0 420A 0 24330C0C: 0 0 24330BEC 0 0 0 4290 24330AB4 24330C2C: 0 24330BEC 24330AB4 0 0 24330C4C: 142D2 0 0 0 24330BEC 24330AB4 0 0 24330C6C: 242D2 0 24325EB4 24330C8C: 0 24330CAC: 0 24325F14 24330C9C 24325EBC 0 151A6450 0 0 24330CCC: 0 0 0 FFFFFFF FFFFFFF 0 0 0 24330CEC: 0 23EFC15C 0 0 24330D0C: 32 0 24330D2C: 0 BEEFCAFE 0

Partial decode of process block

Pid 113Process "Exec" stack 0x242110BC savedsp 0x1582AAAC
Page 104 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 104 · click to enlarge
Page 104

Chapter 2 Command-Line Interfaces Displaying a Crash Dump

Flags: analyze crashblock on_old_queue Status 0x00000000 Orig_ra 0x00000000 Routine 0x00000000 Signal 0 Caller_pc 0x00000000 Callee_pc 0x00000000 Dbg_events 0x00000000 State 0 Totmalloc 153104 Totfree 9040 Totgetbuf 0 Totretbuf 0 Edisms 0x0 Eparm 0x156CA328 Elapsed 0x0 Ncalls 0x13 Ngiveups 0x0 Priority_q 4 Ticks_5s 1 Cpu_5sec 0 Cpu_1min 0 Cpu_5min 0 Stacksize 0xEA60 Lowstack 0xEA60 Ttyptr 0x156CA328 Mem_holding 0x320BC Thrash_count 0 Wakeup_reasons 0x0FFFFFFF Default_wakeup_reasons 0x0FFFFFFF Direct_wakeup_major 0x00000000 Direct_wakeup_minor 0x00000000

Regs R14-R31, CR, PC, MSR at last suspend; R3 from proc creation, PC unused: R3 : 156CA328 R14: 10CD0984 R15: 00000000 R16: 156CA504 R17: 156CA504 R18: 00000006 R19: FFFFFFFF R20: 00000001 R21: 2421FA78 R22: 13D2A3E0 R23: 000000FF R24: 00000000 R25: 00000001 R26: 13D2A3E0 R27: 2421FA78 R28: 24330AB4 R29: 14BE0000 R30: 156CA328 R31: 107D4240 CR: 40004024 PC : 11A3C6A4 MSR: 02029230

Current Process Stack (0x714 bytes used, out of 0xEA60 available)

Current SP = 0x2421F930, saved SP = 0x1582AAAC

2421F71C: 1A 2421F918 0 FFFFFFFF 151B1AB0 E8000800 151B1AB0 2421F748 2421F73C: 132BBFA8 E8000 151B1AB0 2421F760 132BC0D0 E8000 9B0A E8000800 2421F75C: 151B1AB0 2421F778 132BC2A0 E8000800 9B0A 800 153B1B7C 2421F790 2421F77C: 123FAF28 2421F790 0 A 151B17E4 2421F798 123FB2BC 2421F7B0 2421F79C: 11C12A90 9B0A 11C12880 A 146C0000 2421F7C0 11BA7384 0 2421F7BC: 146B0000 2421F7D0 11AD3144 A A 2421F7D8 11C10390 2421F7E0 2421F7DC: 11BB0424 2421F7F0 11BB04E4 2433FCD4 FFFFFFFE 2421F800 107CF880 7FFFFFFF 2421F7FC: FFFFFFFE 2421F8A8 107CCDF0 20637261 73686475 6D700000 0 2421F840 2421F81C: 0 2421F8B0 0 4A 2E8A00 39760000 4A 0 2421F83C: 2433FCF0 2421F848 2433FCF0 0 11A12ACC 13CD617C 10C7DAAC 0 2421F85C: 2421F8AC 10CD0984 0 156CA504 156CA504 1 0 0 2421F87C: 0 15870804 2421F89C: 0 14850000 FFFFFFFE 2421F930 107CFC7C 2421F8C8 14BB1760 2 2421F8BC: 0 2421F930 14620E40 24330AB4 4A 0 0 2421F8E8 2421F8DC: 10C1FD9C 2421F8F8 0 0 0 15868B74 15868B74 2421F910 2421F8FC: 117CF5C0 2421F968 1586A45C 2421F920 15868B74 2421F918 0 14850000 2421F91C: 0 2421F930 10999978 2421F930 0 2421F940 10999E34 2421F940 2421F93C: 15868B74 2421F948 11B430B8 2421F9B0 10C84444 2421F978 0 0 2421F95C: 0 0 2421F9C0 0 240CC3C8 2421F990 11AE7394 6 2421F97C: FFFFFFFF 0 0 0 14BE0000 2421F99C: 0 1 0 15868B74 15868B74 2421F9E8 10C83338 0 2421F9BC: 0 71 15868B74 156CA328 13794ACD 0 1 0 2421F9DC: 1511A790 2366B680 15868B74 2421FA00 11BE0C5C 156CA328 156CA328 2366B680 2421F9FC: 15868B74 2421FA18 10C93874 2421FA20 0 0 2366B628 2421FA48 2421FA1C: 10C93D78 2421FA58 10C95370 0 11BB0A98 0 0 15868B74 2421FA3C: 0 0 15868B74 2421FA58 10C94140 3 15868B74 2421FA70 2421FA5C: 10C992EC 0 0 0 156CA328 2421FB08 10CD155C DFFFFFF 2421FA7C: FFFFFFFF 2421FA9C: FFFFFFFF 1 FFFFFFFF FFFFFFFF 2421FABC: FFFFFFFF FFFFFFFF 0 2421FADC: 0 2421FAFC: 0 0 0 2421FB10 1099BCFC 0 10992CEC FFFFFFFF

========= Interrupt Level Stack Dump ==========

Level 1 Interrupt stack (0x0 bytes used, out of 0x2328 available)

intstacks[1]base 0x156DB3D8 stack 0x156DD6F8 routine 0x0 count 0x0 size 0x2328 low 0x2328 desc 0x156BE7D0
Page 105 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 105 · click to enlarge
Page 105

Chapter 2 Command-Line Interfaces

Displaying a Crash Dump

Level 2 Interrupt stack (0x3F8 bytes used, out of 0x2328 available)

intstacks[2]base 0x156D90B0 stack 0x156DB3D0 routine 0x0 count 0x2 size 0x2328 low 0x2328 desc 0x156C0C78

156DAFE0: 156DAFE8 FFFFFFFF 156DB020 119E1374 0 B6B8 0 B6F4 156DB000: 156DB020 16035650 156DB0E0 0 2DAE 4 1 16031964 156DB020: 156DB028 119E15BC 156DB050 119E1670 0 B6B8 0 1E3 156DB040: 2DAE 1603191C 156DB050 1603190C 156DB0D0 11BB458C FFFFFFFF FFFFFFFF 156DB060: 0 1E3 16002438 1603191C 1CCB58E0 64 0 2DAE 156DB080: 0 B6B8 FFFFFFFF FFFFFFFF FFFFFFFF 137B49A8 1603560C 160355D0 156DB0A0: 14BABC00 B9DE8DC0 156DB128 0 1C703D84 17F1C788 0 11 156DB0C0: 0 156DB138 160355D0 156DB128 156DB100 11EBBCDC 0 11 156DB0E0: 1CCB58E0 64 156DB110 2DAE 14BAC400 156DB220 17B7B610 0 156DB100: 90040008 151B1AB0 0 151B1AB0 156DB120 132BBFA8 90040 122C3E40 156DB120: 156DB138 132BC0D0 1CCB58E0 0 0 151B1AB0 156DB150 132BCC08 156DB140: 0 156DB240 156DB158 10 156DB1C0 15 156DB170 129ADCC4 156DB160: 156DB170 11 156DB1E0 16 156DB3B0 122BF51C FFFFFFFF FFFFFFFF 156DB180: FFFFFFFF 156DB1A0: FFFFFFFF 156DB1C0: 0 2000000 0 7FFFFFFF 0 0 FFFFFFFF FFFFFFFF 156DB1E0: 0 20001FF 0 7FFFFFFF 0 0 FFFFFFFF FFFFFFFF 156DB200: 10100 1F4 1F4 77359400 3 2 16 3D 156DB220: 294 294 294 0 0 2 2 1 156DB240: 80000 0 0 FF 0 0 FFFFFFFF FFFFFFFF 156DB260: 0 1EB 0 1FF 0 0 FFFFFFFF FFFFFFFF 156DB280: FFFFFFFF 156DB2A0: FFFFFFFF 156DB2C0: FFFFFFFF 156DB2E0: 0 FFFFF FFFFFFFF 156DB300: FFFFFFFF 156DB320: FFFFFFFF 156DB340: FFFFFFFF 156DB360: 15FFFFFF 10 FFFFFFFF FFFFFFFF FFFFFFFF 156DB380: FFFFFFFF 0 14BE0000 146CF310 156DB3A0: 146D0000 14620E80 4 1C7061FC 156DB3C0 132DE01C FFFFFFFF 2 156DB3C0: 156DB3C8 132DDD84 14BAE470 11C0DCD0 FFFFFFFF FFFFFFFF

Level 3 Interrupt stack (0x350 bytes used, out of 0x2328 available)

intstacks[3]base 0x156D6D88 stack 0x156D90A8 routine 0x0 count 0x995 size 0x2328 low 0x2328 desc 0x156BE924

156D8D60: 156D8D68 FFFFFFFF 156D8DA0 119E1374 0 21EEB 0 21EE4 156D8D80: 0 1 1 160BA724 0 0 156D8DA0 160BA85C 156D8DA0: 156D8DD8 119E1E40 156D8DB0 1 1603560C 156D8F38 160029D8 16035650 156D8DC0: 1 4 0 22030 156D8DD8 160A5670 156D8DF8 119E1F74 156D8DE0: 156D8DF8 4 156D8E08 160BA85C 156D8E08 4 4 160BA85C 156D8E00: 156D8E08 160BA724 156D8E38 11A312A8 156D8E30 119DF688 156D8E30 16035650 156D8E20: 0 16002CA8 156D8E50 16002F78 156D8E50 119DFBD8 0 8E12 156D8E40: 0 156D8F38 156D8E50 1603148C 156D8ED0 11BB458C 156D8E60 1603148C 156D8E60: 0 8E12 16002CA8 156D8F38 1C6FF080 64 0 0 156D8E80: 156D8E90 156D8EE0 156D8E90 1C6FEF9C 156D8ED0 13B40000 14370000 14BC97D0 156D8EA0: 156D8F28 2980A1B9 156D8ED0 84D7317 0 0 1C6FEFAC 0 156D8EC0: 84D7317 1C6FEED4 0 153B1DA4 156D8ED8 11EBBCDC 156D8EE0 11C0C254 156D8EE0: 156D8EF8 132F05E0 2 2980A460 156D8EF8 84D7317 156D8F00 132EFB10 156D8F00: 156D8F18 132B19FC 84D7317 1C6FEED4 0 84D7317 156D8F90 132B1EEC 156D8F20: 0 84D6D76 1C6FF080 64 0 0 0 8E12 156D8F40: 16002CA8 156D8F38 14BE0000 13FD0000 138A0000 160BA4B0 160BA4B0 160BA4B0 156D8F60: 14BABC00 2980A1B9 137C0000 13F50000 14BAC400 0 14BE0000 0 156D8F80: 84D7317 1C6FEED4 0 84D7317 156D8FA8 132B2448 156D8FA0 156D8FB8 156D8FA0: 156D8FA8 11BBE798 156D9030 132B0C9C 156D8FB8 11BBE798 0 7530 156D8FC0: 0 2EE0 0 1 FFFFFFFF FFFFFFFF 4B354370 754D616E

Page 106 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 106 · click to enlarge
Page 106

Chapter 2 Command-Line Interfaces Displaying a Crash Dump

156D8FE0: 20526576 69657700 156D9000: 0 0 1ADBEEF 1896AD90 156D9030 0 0 146CF310 156D9020: 146D0000 14620EA0 D 1893E4BC 156D9038 134D23A4 156D9058 12023A6C 156D9040: 0 1B1DDC40 156D9050 40 D 1B1DDC40 156D9080 11ED3534 156D9060: 40 132D6244 0 14620EA0 146D0000 14620EA0 D 22D85610 156D9080: 156D9088 133C43C8 156D9098 132DE01C FFFFFFFF 3 156D90A0 132DDE4C 156D90A0: 14BAE470 11C0DCD0 FFFFFFFF FFFFFFFF

Level 4 Interrupt stack (0x348 bytes used, out of 0x2328 available)

intstacks[4]base 0x156D4A60 stack 0x156D6D80 routine 0x0 count 0x8376 size 0x2328 low 0x2328 desc 0x156BEA78

156D6A40: 156D6A48 FFFFFFFF 156D6A80 119E1374 0 21E4B 0 21E48 156D6A60: FFFFFFFF 1 1 160BA724 0 0 156D6A80 160BA85C 156D6A80: 156D6AB8 119E1E40 FFFFFFFF 1 1603560C 156D6C18 16002938 16035650 156D6AA0: 1 4 0 21F90 156D6AB8 160A5670 156D6AD8 119E1F74 156D6AC0: 156D6AD8 4 4 160BA85C 156D6AD8 160BA724 156D6B08 11A312A8 156D6AE0: 156D6B00 119DF688 156D6BC0 16035650 0 156C504C 1 160BA724 156D6B00: 156D6B08 156C8B5C 156D6B30 11A31B54 156D6B30 119DFBD8 0 8DCE 156D6B20: 0 1603129C 156D6B30 1603128C 156D6BB0 11BB458C FFFFFFFF FFFFFFFF 156D6B40: 0 8DCE 160028E8 1603129C 1BB124AC 64 0 0 156D6B60: 0 1A68C FFFFFFFF FFFFFFFF FFFFFFFF 13B40000 14370000 14BC97D0 156D6B80: 156D6C08 28E47C74 156D6BB0 84B1B7D 0 0 1BB123D8 0 156D6BA0: 84B1B7D 1BB12300 0 153B1DA4 156D6BB8 11EBBCDC 156D6BC0 11C0C254 156D6BC0: 156D6BD8 132F05E0 2 28E47EC0 156D6BD8 84B1B7D 156D6BE0 132EFB10 156D6BE0: 156D6BF8 132B19FC 84B1B7D 1BB12300 0 84B1B7D 156D6C70 132B1EEC 156D6C00: FFFFFFFF FFFFFFFF 1BB124AC 64 0 0 0 8DCE 156D6C20: 160028E8 1603129C 14BE0000 160BA4D8 13860000 13FA0000 160BA428 160BA4B0 156D6C40: 14BABC00 28E47C74 137C0000 13F50000 14BAC400 0 14BE0000 0 156D6C60: 84B1B7D 1BB12300 0 84B1B7D 156D6C88 132B2448 156D6C80 156D6C98 156D6C80: 156D6C88 11BBE798 156D6D10 132B0C9C A0000 14800000 0 1770 156D6CA0: 0 BB8 156D6CD0 1 14BAC400 0 14BE0000 146CF310 156D6CC0: 146D0000 151B1AB0 156D6CF0 151B1AB0 156D6CE0 0 156D6D10 146CF310 156D6CE0: 2029230 14620EC0 156D6D20 153B1DA4 156D6CF8 151B1AB0 3012000 11C0C254 156D6D00: 156D6D18 132F05E0 3012020 153B1C8C 156D6D30 11C0FE70 156D6D20 153B1C8C 156D6D20: 156D6D40 11C0FE28 156D6D38 153B1C8C 3012040 153B1C8C 156D6D48 11C100CC 156D6D40: 156D6D50 11C10348 14BE0000 146C62B4 156D6D78 11BB0A10 FFFFFF 1CCAFCB8 156D6D60: 156D6D70 146CF310 146D0000 14620EC0 2A 4 14BAE470 11C0DCD0 156D6D80: FFFFFFFF FFFFFFFF

Level 5 Interrupt stack (0x170 bytes used, out of 0x2328 available)

intstacks[5]base 0x156D2738 stack 0x156D4A58 routine 0x0 count 0x8843 size 0x2328 low 0x2328 desc 0x156BEBCC

156D48F0: 156D4918 FFFFFFFF 14BAC400 0 14BE0000 13B50000 0 151B1AB0 156D4910: A0000060 151B1AB0 156D4928 132BBFA8 A0000 151B1AB0 156D4940 132BC0D0 156D4930: A0000 14C00000 A0000060 151B1AB0 156D4958 132BC42C A0000060 14C00000 156D4950: 60 189A84E0 156D4970 12405FD8 156D4970 1 1 1B1AD9E0 156D4970: 156D4978 124067F8 156D4998 11CB7020 156D49A8 14C00000 FFFFFFFF 0 156D4990: 14BE0000 13B50000 2 1B5A1068 2029230 153B1DA4 156D49D0 1BB11BE0 156D49B0: 156D49B8 0 14BE0000 13B50000 3 14380000 1B1AD9E0 153B1DA4 156D49D0: 156D49D8 132EFB10 156D49E0 11C0C254 156D49F8 132F05E0 2 2A7A9FE0 156D49F0: 2029230 153B1DA4 156D4A00 132EFB10 156D4A18 11CB7200 3 14380000 156D4A10: 14380000 153B1DA4 156D4A20 1338A684 156D4A48 132F0B04 2 2A7A9F6F 156D4A30: FFFFFFFF 146CF310 146D0000 14620EE0 0 5 156D4A50 11BAE8C0 156D4A50: 14BAE470 11C0DCD0 FFFFFFFF FFFFFFFF

Level 6 Interrupt stack (0x0 bytes used, out of 0x2328 available)

intstacks[6]base 0x156D0410 stack 0x156D2730 routine 0x0 count 0x0 size 0x2328 low 0x2328 desc 0x156BED20
Page 107 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 107 · click to enlarge
Page 107

Chapter 2 Command-Line Interfaces

Displaying a Crash Dump

Level 7 Interrupt stack (0x0 bytes used, out of 0x2328 available)

intstacks[7]base 0x156CE0E8 stack 0x156D0408 routine 0x0 count 0x0 size 0x2328 low 0x2328 desc 0x156BEE74

Level 8 Interrupt stack (base 0x0, size 0x0) is invalid

Level 9 Interrupt stack (base 0x0, size 0x0) is invalid

========= Register Memory Dump ================

Reg00(PC ): 10999E70 Reg01(MSR): 2029230 [Not RAM Addr] Reg02(CR ): 20004022 Reg03(LR ): 10999E34 Reg04(CTR): 108EC3EC Reg05(XER): 0 [Not RAM Addr] Reg06(DAR): 0 [Not RAM Addr] Reg07(DSISR): 0 [Not RAM Addr] Reg08(DEC): 83695 [Not RAM Addr] Reg09(TBU): 2 [Not RAM Addr] Reg10(TBL): 2A7D42DA Reg11(IMMR): 0 [Not RAM Addr] Reg12(R0 ): 10999E34 Reg13(R1 ): 2421F930 Reg14(R2 ): 1E [Not RAM Addr] Reg15(R3 ): 234BBFD8 [In malloc Block 0x234BBB54] [Last malloc Block 0x234BBB10] Reg16(R4 ): A [Not RAM Addr] Reg17(R5 ): 0 [Not RAM Addr] Reg18(R6 ): 2421F918 Reg19(R7 ): 0 [Not RAM Addr] Reg20(R8 ): 0 [Not RAM Addr] Reg21(R9 ): 0 [Not RAM Addr] Reg22(R10): 14850000 Reg23(R11): 234BBFD4 Reg24(R12): EB93A100 [Not RAM Addr] Reg25(R13): B4E9F3F3 [Not RAM Addr] Reg26(R14): 10CD0984 Reg27(R15): 0 [Not RAM Addr] Reg28(R16): 156CA504 [In malloc Block 0x156CA2F0] Reg29(R17): 156CA504 Reg30(R18): 1 [Not RAM Addr] Reg31(R19): 0 [Not RAM Addr] Reg32(R20): 0 [Not RAM Addr] Reg33(R21): 0 [Not RAM Addr] Reg34(R22): 0 [Not RAM Addr] Reg35(R23): 0 [Not RAM Addr] Reg36(R24): 0 [Not RAM Addr] Reg37(R25): 0 [Not RAM Addr] Reg38(R26): 0 [Not RAM Addr] Reg39(R27): 0 [Not RAM Addr] Reg40(R28): 15870804 [In malloc Block 0x158707DC] [Last malloc Block 0x15870790] Reg41(R29): 0 [Not RAM Addr] Reg42(R30): 14850000 Reg43(R31): 0 [Not RAM Addr]

block0 ptr=2421F8D0 is_malloc=0 length=0x260

2421F890: 0 0 15870804 0 14850000 FFFFFFFE 2421F930 107CFC7C 2421F8B0: 2421F8C8 14BB1760 2 0 2421F930 14620E40 24330AB4 4A

buffer check=0 sched_hc=0x0

Page 108 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 108 · click to enlarge
Page 108

Chapter 2 Command-Line Interfaces Displaying a Crash Dump

2421F8D0: 0 0 2421F8E8 10C1FD9C 2421F8F8 0 0 0 2421F8F0: 15868B74 15868B74 2421F910 117CF5C0 2421F968 1586A45C 2421F920 15868B74 2421F910: 2421F918 0 14850000 0 2421F930 10999978 2421F930 0 2421F930: 2421F940 10999E34 2421F940 15868B74 2421F948 11B430B8 2421F9B0 10C84444 2421F950: 2421F978 0 2421F9C0 0 240CC3C8 2421F970: 2421F990 11AE7394 6 FFFFFFFF 0 0 0 14BE0000 2421F990: 0 1 0 15868B74 15868B74 2421F9B0: 2421F9E8 10C83338 0 0 71 15868B74 156CA328 13794ACD 2421F9D0: 0 1 0 1511A790 2366B680 15868B74 2421FA00 11BE0C5C 2421F9F0: 156CA328 156CA328 2366B680 15868B74 2421FA18 10C93874 2421FA20 0 2421FA10: 0 2366B628 2421FA48 10C93D78 2421FA58 10C95370 0 11BB0A98 2421FA30: 0 0 15868B74 0 0 15868B74 2421FA58 10C94140 2421FA50: 3 15868B74 2421FA70 10C992EC 0 0 0 156CA328 2421FA70: 2421FB08 10CD155C DFFFFFF FFFFFFFF 2421FA90: FFFFFFFF 2421FAB0: 1 FFFFFFFF 0 0 0 2421FAD0: 0 2421FAF0: 0 2421FB10 1099BCFC 2421FB10: 0 10992CEC FFFFFFFF FD0110DF AB1234CD 0 0 1378AC50

block1 ptr=10999E34 is_malloc=0 length=0x13C

10999DF4: 3D2014BE 8009845C 2F800000 419E0010 3D2014BE 806983C4 4800000C 3D201485 10999E14: 80698C20 4927268D 38000000 3D2014BE 90098484 3D201485 90098CAC 4BFFFAB9 10999E34: 2F9F0000 419E0038 3D2014BE 80098498 2F800000 40BE0028 3860FFFE 3C8013CD 10999E54: 3884617C 4BE35D99 2F9F0003 409D0008 3BE00003 1C7F03E8 4909658D 7FE10808 10999E74: 38000000 3D201445 900900E4 80010014 7C0803A6 83E1000C 38210010 4E800020 10999E94: 9421FFF8 7C0802A6 9001000C 7C862378 38832010 38602000 3CA013CD 38A56198 10999EB4: 482E2201 8001000C 7C0803A6 38210008 4E800020 7C681B78 7C6A1B78 39200000 10999ED4: 89630000 2F8B0000 419E0078 380BFF9F 2B800005 40BD0010 380BFFD0 2B800009 10999EF4: 419D0060 552B2036 880A0000 7C000774 2F800039 419D0014 7D2B0214 3929FFD0 10999F14: 394A0001 48000018 892A0000 7D290774 7D2B4A14 3929FFA9 394A0001 896A0000 10999F34: 2F8B0000 419E001C 380BFF9F 2B800005 40BDFFB4 380BFFD0 2B800009 409DFFA8 10999F54: 38600000 7F8A4000 4D9E0020 91250000 91440000 38600001 4E800020

block2 ptr=20004020 is_malloc=0 length=0x100

20003FE0: ADBEEF 0 0 0 BEEF 0 7ADBEEF 1F724E78 20004000: 12800 0 1ADBEEF 12216BE8 1BE7FE60 BEEF 1BE7FE70 1813277C 20004020: 1BE7FE78 1253BA98 FE70 FFFFFFFF 3 0 FFFFFFFF FFFFFFFF 20004040: FFFFFFFF FFFFFFFF 10800 0 0 1FFFF 1BE7FF38 11F86C4C 20004060: 180AB988 1BE7FEF8 2027FEE8 FF84BEEF 3 0 0 0 20004080: BEEF 0 BEEF 0 200040A0: 0 ADBEEF 0 0 0 BEEF 0 7ADBEEF 200040C0: 1F724E78 12800 0 1ADBEEF 12216BE8 1BE7FE60 BEEF 1BE7FE70 200040E0: 1813277C 1BE7FE78 1253BA98 FE70 FFFFFFFF 3 0 FFFFFFFF 20004100: FFFFFFFF FFFFFFFF FFFFFFFF 10800 0 0 1FFFF 1BE7FF38

block3 ptr=108EC3EC is_malloc=0 length=0x100

108EC3AC: 7C0803A6 83E1000C 38210010 4E800020 9421FFF8 7C0802A6 9001000C 2C030000 108EC3CC: 40A2000C 4BFFF7F9 48000008 4BFFFB79 8001000C 7C0803A6 38210008 4E800020 108EC3EC: 9421FFF8 7C0802A6 9001000C 3D20149A 8009FB08 2F800000 41BE0028 4BFEF791 108EC40C: 3D201485 81299C1C 81290024 7D2903A6 38600000 4E800421 38600000 4BFF0EFD 108EC42C: 8001000C 7C0803A6 38210008 4E800020 9421FFF8 7C0802A6 9001000C 3D20149A 108EC44C: 8009FB08 2F800000 41BE0028 4BFEF741 3D201485 81299C1C 81290024 7D2903A6 108EC46C: 38600000 4E800421 38600000 4BFF0EAD 8001000C 7C0803A6 38210008 4E800020 108EC48C: 9421FFE8 7C0802A6 BF810008 9001001C 7C9C2378 38000000 7C7E1B79 418200B0 108EC4AC: 7FC3F378 492150A5 38000000 7C7D1B79 4182009C 3BE00000 7F9FE800 40BC008C 108EC4CC: 7C9EF8AE 3D201442 8069EDA4 7C840774 49214EFD 2F830000 409E0064 2F9C0000

block4 ptr=234BBB10 is_malloc=1 length=0x100

234BBAD0FFFE0000 0 13C9C0B0 107FD290 234BBB10 234BBA24 8000000E 1
Page 109 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 109 · click to enlarge
Page 109

Chapter 2 Command-Line Interfaces

Displaying a Crash Dump

234BBAF0: 0 23056294 23054D90 13597D4C 1 0 0 FD0110DF 234BBB10: AB1234CD FFFE0000 0 13D9A594 10027870 234BBB54 234BBAE0 8000000E 234BBB30: 1 0 1 4 0 234BBB50: FD0110DF AB1234CD FFFE0000 0 156CD7F4 119EB018 234BC350 234BBB24 234BBB70: 800003EA 1 119F6768 0 234466EC 234FFE84 0 156CD7B8 234BBB90: 64 77 C000C 0 234BBBB0: 30000 14BB1760 52656720 46756E63 74696F6E 20310000 234BBDB8 234BC34C 234BBBD0: 0 0 0 234BBDB8 234BBDC4 234BBDD0 234BBDDC 234BBDE8 234BBBF0: 234BBDF4 234BBE00 234BBE0C 234BBE18 234BBE24 234BBE30 234BBE3C 234BBE48

block5 ptr=15870790 is_malloc=1 length=0x14C

15870750: 0 15870770: 0 FD0110DF 15870790: AB1234CD FFFE0000 0 13D9A594 10CA1538 158707DC 1586B958 80000012 158707B0: 1 4928F581 0 1 23C0BED0 158707D0: 1449E540 F FD0110DF AB1234CD FFFE0000 0 13D2B910 10C89680 158707F0: 15870840 158707A4 8000001E 1 38210008 158711F0 13D40DB8 0 15870810: 13D3EC78 0 0 0 10CC65BC 7 144B0254 15870868 15870830: 158708AC 0 0 FD0110DF AB1234CD FFFE0000 0 13D2B91C 15870850: 10C896E8 15870884 158707F0 8000000E 1 7C09002E 158708F0 23F0FB18 15870870: 17 0 0 0 FD0110DF AB1234CD FFFE0000 0 15870890: 13D2B92C 10C8970C 158708C8 15870854 8000000E 1 7D6B4A14 15870980 158708B0: 15871160 8 0 0 0 FD0110DF AB1234CD FFFE0000 158708D0: 0 13D2BA48 10C8BE78

block6 ptr=15870790 is_malloc=1 length=0x100

15870750: 0 15870770: 0 FD0110DF 15870790: AB1234CD FFFE0000 0 13D9A594 10CA1538 158707DC 1586B958 80000012 158707B0: 1 4928F581 0 1 23C0BED0 158707D0: 1449E540 F FD0110DF AB1234CD FFFE0000 0 13D2B910 10C89680 158707F0: 15870840 158707A4 8000001E 1 38210008 158711F0 13D40DB8 0 15870810: 13D3EC78 0 0 0 10CC65BC 7 144B0254 15870868 15870830: 158708AC 0 0 FD0110DF AB1234CD FFFE0000 0 13D2B91C 15870850: 10C896E8 15870884 158707F0 8000000E 1 7C09002E 158708F0 23F0FB18 15870870: 17 0 0 0 FD0110DF AB1234CD FFFE0000 0

block7 ptr=240CC354 is_malloc=1 length=0x14C

240CC314: 2 240CC37C 0 2 0 240CC334: 0 FD0110DF 240CC354: AB1234CD CD0000 24031228 240CC1F0 1011D6CC 240CC3A0 240CC2F0 80000012 240CC374: 1 D0D0D0D 1 8 10B4FEE8 0 2 4 240CC394: 0 10B50054 FD0110DF AB1234CD FFFE0000 0 13D9A594 10C8D690 240CC3B4: 240CC404 240CC368 8000001E 1 10C7DB80 1 40 0 240CC3D4: 1 23553660 10C8D61C 0 240CC3F4: 0 0 0 FD0110DF AB1234CD CD0000 24031228 1362B664 240CC414: 10DF2B24 240CEA20 240CC3B4 800012FA 1 D0D0D0D 2416C8DC ABADCAFE 240CC434: C C 0 CD 80000000 240CC454: 0 240CC474: 0 240CC494: 0 0 0

block8 ptr=13794ACC is_malloc=0 length=0x100

13794A8C: 51522E2E 2E2E2E2E 5C2E5354 55565758 595A2E2E 2E2E2E2E 30313233 34353637 13794AAC: 38392E2E 2E2E2E2E 0 30313233 34353637 38396162 63646566 0 13794ACC: 202020 20202020 20202828 28282820 20202020 13794AEC: 20881010 10101010 10101010 10101010 10040404 4040404 4040410 10101010 13794B0C: 10104141 41414141 10101010 13794B2C: 10104242 42424242 2020202 10101010 13794B4C: 20000000 436F6D6D 756E6963 6174696F 6E206572 726F7220 6F6E2073 656E6400

Page 110 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 110 · click to enlarge
Page 110

Chapter 2 Command-Line Interfaces Displaying a Crash Dump

13794B6C: 546F6F20 6D616E79 206C696E 6B730000 426C6F63 6B206465 76696365 20726571 13794B8C: 75697265 64000000 41726720 6C697374 20746F6F 20626967 0 4E6F2073 13794BAC: 75636820 70726F63 65737300 4E6F7420 6F776E65 72000000 4E6F2073 75636820

Log buffer:

6:21:19 UTC Mon Sep 6 2010 CMD: 'alias exec cas clear auth sess' 06:21:19 UTC Mon Sep 6 2010 CMD: 'alias exec sas show auth sess' 06:21:19 UTC Mon Sep 6 2010 CMD: 'alias exec cpu show proc cpu | inc CPU' 06:21:19 UTC Mon Sep 6 2010 CMD: 'alias exec si show run int gi6/25' 06:21:19 UTC Mon Sep 6 2010 CMD: 'line con 0' 06:21:19 UTC Mon Sep 6 2010 CMD: ' exec-timeout 0 0' 06:21:19 UTC Mon Sep 6 2010 CMD: ' stopbits 1' 06:21:19 UTC Mon Sep 6 2010 CMD: ' speed 38400' 06:21:19 UTC Mon Sep 6 2010 CMD: 'line vty 0 4' 06:21:19 UTC Mon Sep 6 2010 CMD: 'scheduler runtime netinput 100' 06:21:19 UTC Mon Sep 6 2010 CMD: 'mac address-table static 0023.abf8.3303 vlan 1 interface GigabitEthernet6/15' 06:21:19 UTC Mon Sep 6 2010 CMD: 'end' 06:21:19 UTC Mon Sep 6 2010

*Sep 6 06:21:19.103: %SW_VLAN-6-VTP_DOMAIN_NAME_CHG: VTP domain name changed to campus1. *Sep 6 06:21:21.779: %SYS-5-CONFIG_I: Configured from memory by console *Sep 6 06:21:21.875: %SYS-5-RESTART: System restarted -- Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICES-M), Experimental Version 12.2(20100723:074204) [/../../../../ios/sys 179] Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Mon 06-Sep-10 22:11 by cisco *Sep 6 06:21:23.363: Slot 0 : delete *Sep 6 06:21:23.363: K5SuperportSetConfig: *Sep 6 06:21:23.363: num of Superports : 4, SuperportIds( 57, 57, 57, 57 ) *Sep 6 06:21:23.363: K5SuperportGroupMode XauiK5PortSpeedType 10G10 *Sep 6 06:21:23.363: K5SuperportConfig: *Sep 6 06:21:23.363: K5SuperportUsageState Populated, 4K5SuperportManagementProtocol VsiK5HeaderType K10 SCH Preamble, Max SubportId : 9 *Sep 6 06:21:23.363: num of subports : 1, SubportConfig: *Sep 6 06:21:23.363: SubportConfig( K5SubportId : 0, PimHwPhyportId : 240 ) *Sep 6 06:21:23.711: %C4K_JOB-4-OVERRUN: (Suppressed 1 times)Job Lj-poll ran 20941 microseconds (its runTimeMax was 2000) *Sep 6 06:21:23.711: Slot 0 : new *Sep 6 06:21:23.711: K5SuperportSetConfig: *Sep 6 06:21:23.711: num of Superports : 4, SuperportIds( 57, 57, 57, 57 ) *Sep 6 06:21:23.711: K5SuperportGroupMode XauiK5PortSpeedType 10G10 *Sep 6 06:21:23.711: K5SuperportConfig: *Sep 6 06:21:23.711: K5SuperportUsageState Populated, 3K5SuperportManagementProtocol VsiK5HeaderType K10 SCH Preamble, Max SubportId : 9 *Sep 6 06:21:23.711: num of subports : 2, SubportConfig: *Sep 6 06:21:23.711: SubportConfig( K5SubportId : 8, PimHwPhyportId : 242 ) *Sep 6 06:21:23.711: SubportConfig( K5SubportId : 9, PimHwPhyportId : 243 )CMD: 'en' 06:21:56 UTC Mon Sep 6 2010 CMD: 'plat' 06:21:57 UTC Mon Sep 6 2010 CMD: 'platform cr' 06:21:57 UTC Mon Sep 6 2010 CMD: 'platform crashdump d' 06:21:58 UTC Mon Sep 6 2010 CMD: 'platform crashdump ' 06:21:58 UTC Mon Sep 6 2010

Supervisor (WS-X45-SUP6-E) Board Specific Crash Data: MCSR: 0x0 L1CSR0: 0x10001 L1CSR1: 0x10001 SRR0: 0x10999e70 CSRR0: 0x0 MCSRR0: 0x0 MCAR: 0x0 ESR: 0x2000000 CISR0: 0x0 CISR1: 0x0 L2CTL: 0xa0000000 L2CAPTDATAHI: 0x0 L2CAPTDATALO: 0x0

Page 111 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 111 · click to enlarge
Page 111

Chapter 2 Command-Line Interfaces

Displaying a Crash Dump

L2CAPTECC: 0x0 L2ERRDET: 0x0 L2ERRDIS: 0x0 L2ERRATTR: 0x0 L2ERRADDRH: 0x0L2ERRADDRL: 0x0 L2_ERRCTL: 0x0 DDR_CAPTURE_DATA_HI: 0x0 DDR_CAPTURE_DATA_LO: 0x0 DDR_CAPTURE_ECC: 0x0 DDR_ERR_DETECT: 0x0 DDR_ERR_DISABLE: 0x0 DDR_ERR_INT_EN: 0x9 DDR_CAPTURE_ATTRIBUTES: 0x0 DDR_CAPTURE_ADDRESS: 0x0 DDR_CAPTURE_EXT_ADDRESS: 0x0 DDR_ERR_SBE: 0xff0000 PCI_ERR_DR: 0x0 PCI_ERR_ATTRIB: 0x0 PCI_ERR_ADDR: 0x0 PCI_ERR_EXT_ADDR: 0x0 PCI_ERR_DH: 0x0PCI_ERR_DL: 0x0 Machine Check Interrupt Count: 0 L1 Instruction Cache Parity Errors: 0 L1 Instruction Cache Parity Errors (CPU30): 0 L1 Data Cache Parity Errors: 0

Jawa Crash DataInterrupt Mask: 0xe180 Interrupt: 0x0

GalK5DriverMan( 0 ) SlotType( 3 ) State( GalK5DriverManStateReady ) SilentRollRegister( 0 ) GldMajorVersion( 0 ) CardRevision( 0 ) GldMinor( 1) Load Dynamic Driver( No )

GalK5DriverMan( 1 ) SlotType( 1 ) State( GalK5DriverManStateReady ) SilentRollRegister( 0 ) GldMajorVersion( 0 ) CardRevision( 0 ) GldMinor( 1) Load Dynamic Driver( No )

Switch#

Page 112 of the Cisco Systems 4500 user manual — Command-Line Interfaces
Page 112 · click to enlarge
Page 112

Chapter 2 Command-Line Interfaces Displaying a Crash Dump

Page 113 of the Cisco Systems 4500 user manual — Default Switch Configuration
Page 113 · click to enlarge
Page 113

C H A P T E R

Configuring the Switch for the First Time

This chapter describes how to initially configure a Catalyst 4500 series switch.

The information presented here supplements the administration information and procedures in this publication: Cisco IOS Configuration Fundamentals Command Reference, Release 12.2SR, at this URL: http://www.cisco.com/en/US/docs/ios/12_2/configfun/command/reference/frfabout.html

This chapter includes the following major sections:

  • Default Switch Configuration, page 3-1
  • Configuring DHCP-Based Autoconfiguration, page 3-2
  • Configuring the Switch, page 3-8
  • Controlling Access to Privileged EXEC Commands, page 3-13
  • Recovering a Lost Enable Password, page 3-25
  • Modifying the Supervisor Engine Startup Configuration, page 3-25
  • Resetting a Switch to Factory Default Settings, page 3-32

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Default Switch Configuration

This section describes the default configurations for the Catalyst 4500 series switch. Table 3-1 shows the default configuration settings for each feature.

Page 114 of the Cisco Systems 4500 user manual — About DHCP-Based Autoconfiguration
Page 114 · click to enlarge
Page 114

Chapter 3 Configuring the Switch for the First Time Configuring DHCP-Based Autoconfiguration

Table 3-1 Default Switch Configuration

Feature Default Settings

Administrative connection Normal mode

Global switch information No default value for system name, system contact, and location

System clock No value for system clock time

Passwords No passwords are configured for normal mode or enable mode (press the Return key)

Interfaces Enabled, with speed and flow control autonegotiated, and without IP addresses

Configuring DHCP-Based Autoconfiguration

These sections describe how to configure DHCP-based autoconfiguration:

  • About DHCP-Based Autoconfiguration, page 3-2
  • DHCP Client Request Process, page 3-3
  • Configuring the DHCP Server, page 3-4
  • Configuring the TFTP Server, page 3-4
  • Configuring the DNS Server, page 3-5
  • Configuring the Relay Device, page 3-5
  • Obtaining Configuration Files, page 3-6
  • Example Configuration, page 3-7

If your DHCP server is a Cisco device, or if you are configuring the switch as a DHCP server, refer to the “IP Addressing and Services” section in the Cisco IOS IP and IP Routing Configuration Guide for Cisco IOS Release 12.1 for additional information about configuring DHCP.

About DHCP-Based Autoconfiguration

DHCP provides configuration information to Internet hosts and internetworking devices. This protocol consists of two components: one component for delivering configuration parameters from a DHCP server to a device and another component that is a mechanism for allocating network addresses to devices. DHCP is built on a client-server model, in which designated DHCP servers allocate network addresses and deliver configuration parameters to dynamically configured devices. The switch can act as both a DHCP client and a DHCP server.

Switch prompt Switch>

Page 115 of the Cisco Systems 4500 user manual — DHCP Client Request Process
Page 115 · click to enlarge
Page 115

Chapter 3 Configuring the Switch for the First Time

With DHCP-based autoconfiguration, no DHCP client-side configuration is needed on your switch because your switch (the DHCP client) is automatically configured at startup with IP address information and a configuration file. However, you need to configure the DHCP server or the DHCP server feature on your switch for various lease options associated with IP addresses. If you are using DHCP to relay the configuration file location on the network, you might also need to configure a Trivial File Transfer Protocol (TFTP) server and a Domain Name System (DNS) server.

DHCP-based autoconfiguration replaces the BOOTP client functionality on your switch.

DHCP Client Request Process

At startup the switch automatically requests configuration information from a DHCP server if a configuration file is not present on the switch.

Figure 3-1 shows the sequence of messages that are exchanged between the DHCP client and the DHCP server.

Figure 3-1 DHCP Client and Server Message Exchange

The client, Switch A, broadcasts a DHCPDISCOVER message to locate a DHCP server. The DHCP server offers configuration parameters (such as an IP address, subnet mask, gateway IP address, DNS IP address, lease for the IP address, and so forth) to the client in a DHCPOFFER unicast message.

In a DHCPREQUEST broadcast message, the client returns a formal request for the offered configuration information to the DHCP server. The formal request is broadcast so that all other DHCP servers that received the DHCPDISCOVER broadcast message from the client can reclaim the IP addresses that they offered to the client.

The DHCP server confirms that the IP address has been allocated to the client by returning a DHCPACK unicast message to the client. With this message, the client and server are bound, and the client uses the configuration information that it received from the server. The amount of information the switch receives depends on how you configure the DHCP server. For more information, see the “Configuring the DHCP Server” section on page 3-4.

If the configuration parameters sent to the client in the DHCPOFFER unicast message are invalid (if configuration error exists), the client returns a DHCPDECLINE broadcast message to the DHCP server.

The DHCP server sends the client a DHCPNAK denial broadcast message, which means that the offered configuration parameters have not been assigned, that an error has occurred during the negotiation of the parameters, or that the client has been slow in responding to the DHCPOFFER message. (The DHCP server might have assigned the parameters to another client.)

A DHCP client might receive offers from multiple DHCP servers and can accept any of them; however, the client usually accepts the first offer it receives. The offer from the DHCP server is not a guarantee that the IP address will be allocated to the client; however, the server usually reserves the address until the client has had a chance to formally request the address.

Show 7 more labels / short text on this page
Configuring DHCP-Based Autoconfiguration · DHCPDISCOVER (broadcast) · Switch A · DHCPOFFER (unicast) · DHCP server · DHCPREQUEST (broadcast) · DHCPACK (unicast)
Page 116 of the Cisco Systems 4500 user manual — Configuring the TFTP Server
Page 116 · click to enlarge
Page 116

Chapter 3 Configuring the Switch for the First Time Configuring DHCP-Based Autoconfiguration

Configuring the DHCP Server

A switch can act as both the DHCP client and the DHCP server. By default, the Cisco IOS DHCP server and relay agent features are enabled on your switch.

You should configure the DHCP server, or the DHCP server feature running on your switch, with reserved leases that are bound to each switch by the switch hardware address.

If you want the switch to receive IP address information, you must configure the DHCP server with these lease options:

  • IP address of the client (required)
  • Subnet mask of the client (required)
  • DNS server IP address (optional)
  • Router IP address (required)

If you want the switch to receive the configuration file from a TFTP server, you must configure the DHCP server with these lease options:

  • TFTP server name or IP address (required)
  • Boot filename (the name of the configuration file that the client needs) (recommended)
  • Host name (optional)

Depending on the settings of the DHCP server or the DHCP server feature running on your switch, the switch can receive IP address information, the configuration file, or both.

If you do not configure the DHCP server, or the DHCP server feature running on your switch, with the lease options described earlier, the switch replies to client requests with only those parameters that are configured. If the IP address and subnet mask are not in the reply, the switch is not configured. If the router IP address or TFTP server name (or IP address) are not found, the switch might send broadcast, instead of unicast, TFTP requests. Unavailability of other lease options does not impact autoconfiguration.

The DHCP server, or the DHCP server feature running on your switch, can be on the same LAN or on a different LAN than the switch. If the DHCP server is running on a different LAN, you should configure a DHCP relay, which forwards broadcast traffic between two directly connected LANs. A router does not forward broadcast packets, but it forwards packets based on the destination IP address in the received packet. For more information on relay devices, see the “Configuring the Relay Device” section on page 3-5.

Configuring the TFTP Server

Based on the DHCP server configuration, the switch attempts to download one or more configuration files from the TFTP server. If you configured the DHCP server to respond to the switch with all the options required for IP connectivity to the TFTP server, and if you configured the DHCP server with a TFTP server name, address, and configuration filename, the switch attempts to download the specified configuration file from the specified TFTP server.

If you did not specify the configuration filename or the TFTP server name, or if the configuration file could not be downloaded, the switch attempts to download a configuration file using various combinations of filenames and TFTP server addresses. The files include the specified configuration

Page 117 of the Cisco Systems 4500 user manual — Configuring the Relay Device
Page 117 · click to enlarge
Page 117

Chapter 3 Configuring the Switch for the First Time

filename (if any) and the following files: network-confg, cisconet.cfg, hostname.confg, or hostname.cfg, where hostname is the current hostname of the switch and router-confg and ciscortr.cfg. The TFTP server addresses used include the specified TFTP server address (if any) and the broadcast address (255.255.255.255).

For the switch to successfully download a configuration file, the TFTP server must contain one or more configuration files in its base directory. The files can include the following:

  • The configuration file named in the DHCP reply (the actual switch configuration file).
  • The network-confg or the cisconet.cfg file (known as the default configuration files).
  • The router-confg or the ciscortr.cfg file. (These files contain commands common to all switches. Normally, if the DHCP and TFTP servers are properly configured, these files are not accessed.)

If you specify the TFTP server name in the DHCP server-lease database, you must also configure the TFTP server name-to-IP-address mapping in the DNS-server database.

If the TFTP server you plan to use is on a different LAN from the switch, or if you plan to access it with the switch through the broadcast address (which occurs if the DHCP server response does not contain all the required information described earlier), you must configure a relay to forward the TFTP packets to the TFTP server. For more information, see the “Configuring the Relay Device” section on page 3-5. The preferred solution is to configure either the DHCP server or the DHCP server feature running on your switch with all the required information.

Configuring the DNS Server

The DHCP server, or the DHCP server feature running on your switch, uses the DNS server to resolve the TFTP server name to an IP address. You must configure the TFTP server name-to-IP address map on the DNS server. The TFTP server contains the configuration files for the switch.

You can configure the IP addresses of the DNS servers in the lease database of the DHCP server where the DHCP replies retrieve them. You can enter up to two DNS server IP addresses in the lease database.

The DNS server can be on the same or on a different LAN as the switch. If it is on a different LAN, the switch must be able to access it through a router.

Configuring the Relay Device

You must configure a relay device to forward received broadcast packets to the destination host whenever a switch sends broadcast packets to which a host on a different LAN must respond. Examples of such broadcast packets are DHCP, DNS, and in some cases, TFTP packets.

If the relay device is a Cisco router, enable IP routing (ip routing global configuration command) and configure helper addresses (ip helper-address interface configuration command). For example, in Figure 3-2, configure the router interfaces as follows:

On interface 10.0.0.2:

router(config-if)# ip helper-address 20.0.0.2 router(config-if)# ip helper-address 20.0.0.3 router(config-if)# ip helper-address 20.0.0.4

On interface 20.0.0.1:

router(config-if)# ip helper-address 10.0.0.1

Configuring DHCP-Based Autoconfiguration

Page 118 of the Cisco Systems 4500 user manual — Obtaining Configuration Files
Page 118 · click to enlarge
Page 118

Chapter 3 Configuring the Switch for the First Time Configuring DHCP-Based Autoconfiguration

Figure 3-2 Relay Device Used in Autoconfiguration

20.0.0.1 10.0.0.2 10.0.0.1

20.0.0.2 20.0.0.3

20.0.0.4

DHCP server TFTP server DNS server

Obtaining Configuration Files

Depending on the availability of the IP address and the configuration filename in the DHCP reserved lease, the switch obtains its configuration information in these ways:

  • The IP address and the configuration filename are reserved for the switch and provided in the DHCP reply (one-file read method).

The switch receives its IP address, subnet mask, TFTP server address, and the configuration filename from either the DHCP server or the DHCP server feature running on your switch. The switch sends a unicast message to the TFTP server to retrieve the named configuration file from the base directory of the server, and upon receipt, completes its boot-up process.

  • The IP address and the configuration filename is reserved for the switch, but the TFTP server address is not provided in the DHCP reply (one-file read method).

The switch receives its IP address, subnet mask, and the configuration filename from either the DHCP server or the DHCP server feature running on your switch. The switch sends a broadcast message to a TFTP server to retrieve the named configuration file from the base directory of the server, and upon receipt, completes its boot-up process.

  • Only the IP address is reserved for the switch and provided in the DHCP reply. The configuration filename is not provided (two-file read method).

The switch receives its IP address, subnet mask, and the TFTP server address from either the DHCP server or the DHCP server feature running on your switch. The switch sends a unicast message to the TFTP server to retrieve the network-confg or cisconet.cfg default configuration file. (If the network-confg file cannot be read, the switch reads the cisconet.cfg file.)

The default configuration file contains the host names-to-IP-address mapping for the switch. The switch fills its host table with the information in the file and obtains its host name. If the host name is not found in the file, the switch uses the host name in the DHCP reply. If the host name is not specified in the DHCP reply, the switch uses the default Switch as its host name.

After obtaining its host name from the default configuration file or the DHCP reply, the switch reads the configuration file that has the same name as its host name (hostname-confg or hostname.cfg, depending on whether or not the network-confg file or the cisconet.cfg file was read earlier) from the TFTP server. If the cisconet.cfg file is read, the filename of the host is truncated to eight characters.

Switch (DHCP client) · Cisco router · (Relay)

Page 119 of the Cisco Systems 4500 user manual — Switch 1 Switch 2 Switch 3 Switch 4
Page 119 · click to enlarge
Page 119

Chapter 3 Configuring the Switch for the First Time

If the switch cannot read the network-confg, cisconet.cfg, or the hostname file, it reads the router-confg file. If the switch cannot read the router-confg file, it reads the ciscortr.cfg file.

Example Configuration

Figure 3-3 shows a network example for retrieving IP information using DHCP-based autoconfiguration.

Figure 3-3 DHCP-Based Autoconfiguration Network Example

Switch 1 00e0.9f1e.2001

Switch 2 00e0.9f1e.2002 Switch 3 00e0.9f1e.2003

Switch 4 00e0.9f1e.2004

10.0.0.10

10.0.0.1

10.0.0.2 10.0.0.3

DHCP server DNS server TFTP server

Table 3-2 shows the configuration of the reserved leases on either the DHCP server or the DHCP server feature running on your switch.

Table 3-2 DHCP Server Configuration

Switch 1 Switch 2 Switch 3 Switch 4

Binding key (hardware address)

00e0.9f1e.2001 00e0.9f1e.2002 00e0.9f1e.2003 00e0.9f1e.2004

IP address 10.0.0.21 10.0.0.22 10.0.0.23 10.0.0.24

Subnet mask 255.255.255.0

Router address 10.0.0.10

DNS server address 10.0.0.2

TFTP server name maritsu or 10.0.0.3 maritsu or 10.0.0.3 maritsu or 10.0.0.3 maritsu or 10.0.0.3

Boot filename (configuration file) (optional)

switch1-confg switch2-confg switch3-confg switch4-confg

Host name (optional) switch1 switch2 switch3 switch4

Configuring DHCP-Based Autoconfiguration · Cisco router · (maritsu)

Page 120 of the Cisco Systems 4500 user manual — Configuring the Switch
Page 120 · click to enlarge
Page 120

Chapter 3 Configuring the Switch for the First Time Configuring the Switch

DNS Server Configuration

The DNS server maps the TFTP server name maritsu to IP address 10.0.0.3.

TFTP Server Configuration (on UNIX)

The TFTP server base directory is set to /tftpserver/work/. This directory contains the network-confg file used in the two-file read method. This file contains the host name that you plan to assign to the switch based on its IP address. The base directory also contains a configuration file for each switch (switch1-confg, switch2-confg, and so forth) as shown in the following display:

prompt> cd /tftpserver/work/ prompt> ls network-confg switch1-confg switch2-confg switch3-confg switch4-confg prompt> cat network-confg ip host switch1 10.0.0.21 ip host switch2 10.0.0.22 ip host switch3 10.0.0.23 ip host switch4 10.0.0.24

DHCP Client Configuration

No configuration file is present on Switch 1 through Switch 4.

Configuration Explanation

In Figure 3-3, Switch 1 reads its configuration file as follows:

  • Switch 1 obtains its IP address 10.0.0.21 from the DHCP server.
  • If no configuration filename is given in the DHCP server reply, Switch 1 reads the network-confg file from the base directory of the TFTP server.
  • Switch 1 adds the contents of the network-confg file to its host table.
  • Switch 1 reads its host table by indexing its IP address 10.0.0.21 to its host name (switch1).
  • Switch 1 reads the configuration file that corresponds to its host name; for example, it reads switch1-confg from the TFTP server.

Switches 2 through 4 retrieve their configuration files and IP addresses in the same way.

Configuring the Switch

The following sections describe how to configure your switch:

  • Using Configuration Mode to Configure Your Switch, page 3-9
  • Verifying the Running Configuration Settings, page 3-9
  • Saving the Running Configuration Settings to Your Start-Up File, page 3-10
  • Reviewing the Configuration in NVRAM, page 3-10
  • Configuring a Default Gateway, page 3-11
  • Configuring a Static Route, page 3-11
Page 121 of the Cisco Systems 4500 user manual — Verifying the Running Configuration Settings
Page 121 · click to enlarge
Page 121

Chapter 3 Configuring the Switch for the First Time

Using Configuration Mode to Configure Your Switch

To configure your switch from configuration mode, follow these steps:

Step 1 Connect a console terminal to the console interface of your supervisor engine.

Step 2 After a few seconds, you see the user EXEC prompt (Switch>). Now, you may want to enter privileged EXEC mode, also known as enable mode. Type enable to enter enable mode:

The prompt changes to the enable prompt (#):

Step 3 At the enable prompt (#), enter the configure terminal command to enter global configuration mode:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#

Step 4 At the global configuration mode prompt, enter the interface type slot/interface command to enter interface configuration mode:

Switch(config)# interface fastethernet 5/1 Switch(config-if)#

Step 5 In either of these configuration modes, enter changes to the switch configuration.

Step 6 Enter the end command to exit configuration mode.

Step 7 Save your settings. See the “Saving the Running Configuration Settings to Your Start-Up File” section on page 3-10.

Your switch is now minimally configured and can boot with the configuration you entered. To see a list of the configuration commands, enter ? at the prompt or press the help key in configuration mode.

Verifying the Running Configuration Settings

To verify the configuration settings you entered or the changes you made, enter the show running-config command at the enable prompt (#), as shown in this example:

Switch# show running-config Building configuration... Current configuration: ! version 12.0 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Switch

Configuring the Switch · Switch> enable · Switch#

Page 122 of the Cisco Systems 4500 user manual — Reviewing the Configuration in NVRAM
Page 122 · click to enlarge
Page 122

Chapter 3 Configuring the Switch for the First Time Configuring the Switch

! line con 0 transport input none line vty 0 4 exec-timeout 0 0 password lab login transport input lat pad dsipcon mop telnet rlogin udptn nasi ! end Switch#

Saving the Running Configuration Settings to Your Start-Up File

To store the configuration, changes to the configuration, or changes to the startup configuration in NVRAM, enter the copy running-config startup-config command at the enable prompt (#), as follows:

Switch# copy running-config startup-config

Reviewing the Configuration in NVRAM

To display information stored in NVRAM, enter the show startup-config EXEC command.

The following example shows a typical system configuration:

Switch# show startup-config Using 1579 out of 491500 bytes, uncompressed size = 7372 bytes Uncompressed configuration from 1579 bytes to 7372 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption service compress-config ! hostname Switch ! ! ip subnet-zero ! interface GigabitEthernet1/1 no snmp trap link-status ! interface GigabitEthernet1/2 no snmp trap link-status !--More--

Page 123 of the Cisco Systems 4500 user manual — Configuring a Static Route
Page 123 · click to enlarge
Page 123

Chapter 3 Configuring the Switch for the First Time

! line con 0 exec-timeout 0 0 transport input none line vty 0 4 exec-timeout 0 0 password lab login transport input lat pad dsipcon mop telnet rlogin udptn nasi ! end

Configuring a Default Gateway

Configure a default gateway to send data to subnets other than its own when the switch is not configured with a routing protocol. The default gateway must be the IP address of an interface on a router that is directly connected to the switch.

To configure a default gateway, perform this task:

Step 1 Switch(config)# ip default-gateway IP-address Configures a default gateway.

Step 2 Switch# show ip route Verifies that the default gateway is correctly displayed in the IP routing table.

This example shows how to configure a default gateway and how to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip default-gateway 172.20.52.35 Switch(config)# end 3d17h: %SYS-5-CONFIG_I: Configured from console by console Switch# show ip route Default gateway is 172.20.52.35

Host Gateway Last Use Total Uses Interface ICMP redirect cache is empty Switch#

Configuring a Static Route

If your Telnet station or SNMP network management workstation is on a different network from your switch and a routing protocol has not been configured, you might need to add a static routing table entry for the network where your end station is located.

Configuring the Switch · Switch#

Page 124 of the Cisco Systems 4500 user manual — Configuring the Switch for the First Time
Page 124 · click to enlarge
Page 124

Chapter 3 Configuring the Switch for the First Time Configuring the Switch

To configure a static route, perform this task:

Step 1 Switch(config)# ip route dest_IP_address mask {forwarding_IP | vlan vlan_ID}

Configures a static route to the remote network.

Step 2 Switch# show running-config Verifies that the static route is displayed correctly.

This example shows how to use the ip route command to configure a static route to a workstation at IP address 171.10.5.10 on the switch with a subnet mask and IP address 172.20.3.35 of the forwarding router:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip route 171.10.5.10 255.255.255.255 172.20.3.35 Switch(config)# end Switch#

This example shows how to use the show running-config command to confirm the configuration of the static route:

Switch# show running-config Building configuration . ip default-gateway 172.20.52.35 ip classless ip route 171.10.5.10 255.255.255.255 172.20.3.35 no ip http server ! line con 0 transport input none line vty 0 4 exec-timeout 0 0 password lab login transport input lat pad dsipcon mop telnet rlogin udptn nasi ! end Switch#

This example shows how to use the ip route command to configure the static route IP address 171.20.5.3 with subnet mask and connected over VLAN 1 to a workstation on the switch:

Switch# configure terminal Switch(config)# ip route 171.20.5.3 255.255.255.255 vlan 1 Switch(config)# end Switch#

This example shows how to use the show running-config command to confirm the configuration of the static route:

Switch# show running-config Building configuration

Page 125 of the Cisco Systems 4500 user manual — Setting or Changing a Static enable Password
Page 125 · click to enlarge
Page 125

Chapter 3 Configuring the Switch for the First Time

Controlling Access to Privileged EXEC Commands

. ip default-gateway 172.20.52.35 ip classless ip route 171.20.5.3 255.255.255.255 Vlan1 no ip http server ! ! x25 host z ! line con 0 transport input none line vty 0 4 exec-timeout 0 0 password lab login transport input lat pad dsipcon mop telnet rlogin udptn nasi ! end

Controlling Access to Privileged EXEC Commands

The procedures in these sections let you control access to the system configuration file and privileged EXEC commands:

  • Setting or Changing a Static enable Password, page 3-13
  • Using the enable password and enable secret Commands, page 3-14
  • Setting or Changing a Privileged Password, page 3-14
  • Controlling Switch Access with TACACS+, page 3-15
  • Encrypting Passwords, page 3-22
  • Configuring Multiple Privilege Levels, page 3-23

Setting or Changing a Static enable Password

To set or change a static password that controls access to the enable mode, enter this command:

Switch(config)# enable password password Sets a new password or changes an existing password for the privileged EXEC mode.

This example shows how to configure an enable password as lab:

Switch# configure terminal Switch(config)# enable password lab Switch(config)#

For instructions on how to display the password or access level configuration, see the “Displaying the Password, Access Level, and Privilege Level Configuration” section on page 3-24.

Switch#

Page 126 of the Cisco Systems 4500 user manual — Setting or Changing a Privileged Password
Page 126 · click to enlarge
Page 126

Chapter 3 Configuring the Switch for the First Time Controlling Access to Privileged EXEC Commands

Using the enable password and enable secret Commands

To provide an additional layer of security, particularly for passwords that cross the network or that are stored on a TFTP server, use either the enable password or enable secret command. Both commands configure an encrypted password that you must enter to access the enable mode (the default) or any other privilege level that you specify.

We recommend that you use the enable secret command.

If you configure the enable secret command, it takes precedence over the enable password command; the two commands cannot be in effect simultaneously.

To configure the switch to require an enable password, enter one of these commands:

Switch(config)# enable password [level level] {password | encryption-type encrypted-password}

Establishes a password for the privileged EXEC mode.

Switch(config)# enable secret [level level] {password | encryption-type encrypted-password}

Specifies a secret password that is saved using a nonreversible encryption method. (If enable password and enable secret commands are both set, users must enter the enable secret password.)

When you enter either of these password commands with the level option, you define a password for a specific privilege level. After you specify the level and set a password, give the password only to users who need to have access at this level. Use the privilege level configuration command to specify commands accessible at various levels.

If you enable the service password-encryption command, the password you enter is encrypted. When you display the password with the more system:running-config command, the password displays the password in encrypted form.

If you specify an encryption type, you must provide an encrypted password—an encrypted password you copy from another Catalyst 4500 series switch configuration.

For information on how to display the password or access level configuration, see the “Displaying the Password, Access Level, and Privilege Level Configuration” section on page 3-24.

Setting or Changing a Privileged Password

To set or change a privileged password, enter this command:

Switch(config-line)# password password Sets a new password or changes an existing password for the privileged level.

Page 127 of the Cisco Systems 4500 user manual — Understanding TACACS+
Page 127 · click to enlarge
Page 127

Chapter 3 Configuring the Switch for the First Time

Controlling Access to Privileged EXEC Commands

For information on how to display the password or access level configuration, see the “Displaying the Password, Access Level, and Privilege Level Configuration” section on page 3-24.

Controlling Switch Access with TACACS+

This section describes how to enable and configure TACACS+, which provides detailed accounting information and flexible administrative control over authentication and authorization processes. TACACS+ is facilitated through authentication, authorization, accounting (AAA) and can be enabled only through AAA commands.

This section contains the following configuration information:

  • Understanding TACACS+, page 3-15
  • TACACS+ Operation, page 3-17
  • Configuring TACACS+, page 3-17
  • Displaying the TACACS+ Configuration, page 3-22

Understanding TACACS+

TACACS+ is a security application that provides centralized validation of users attempting to gain access to your switch. TACACS+ services are maintained in a database on a TACACS+ daemon typically running on a UNIX or Windows NT workstation. You should have access to and should configure a TACACS+ server before configuring TACACS+ features on your switch.

TACACS+ provides for separate and modular AAA facilities. TACACS+ allows for a single access control server (the TACACS+ daemon) to provide each service—authentication, authorization, and accounting—independently. Each service can be locked into its own database to take advantage of other services available on that server or on the network, depending on the capabilities of the daemon.

The goal of TACACS+ is to provide a method for managing multiple network access points from a single management service. Your switch can be a network access server along with other Cisco routers and access servers. A network access server provides connections to a single user, to a network or subnetwork, and to interconnected networks as shown in Figure 3-4.

Page 128 of the Cisco Systems 4500 user manual — (TACACS+
Page 128 · click to enlarge
Page 128

Chapter 3 Configuring the Switch for the First Time Controlling Access to Privileged EXEC Commands

Figure 3-4 Typical TACACS+ Network Configuration

(TACACS+

171.20.10.7

(TACACS+

171.20.10.8

Configure the switches with the

TACACS+ server addresses. Set an authentication key

(also configure the same key on the TACACS+ servers). Enable AAA. Create a login authentication method list. Apply the list to the terminal lines. Create an authorization and accounting

method list as required.

TACACS+ administered through the AAA security services can provide these services:

  • Authentication—Provides complete control of authentication through login and password dialog, challenge and response, and messaging support.

The authentication facility can conduct a dialog with the user (such as, after a username and password are provided, to challenge a user with several questions such as home address, mother’s maiden name, service type, and social security number). The TACACS+ authentication service can also send messages to user screens. For example, a message could notify users that their passwords must be changed because of the company’s password aging policy.

  • Authorization—Provides strict control over user capabilities for the duration of the user’s session, including but not limited to setting autocommands, access control, session duration, or protocol support. You can also enforce restrictions on the commands a user can execute with the TACACS+ authorization feature.
  • Accounting—Collects and sends information used for billing, auditing, and reporting to the TACACS+ daemon. Network managers can use the accounting facility to track user activity for a security audit or to provide information for user billing. Accounting records include user identities, start and stop times, executed commands (such as PPP), number of packets, and number of bytes.

The TACACS+ protocol provides authentication between the switch and the TACACS+ daemon, and it ensures confidentiality because all protocol exchanges between the switch and the TACACS+ daemon are encrypted.

You need a system running the TACACS+ daemon software to use TACACS+ on your switch.

Show 8 more labels / short text on this page
UNIX workstation · Catalyst 6500 · server 1) · series switch · UNIX workstation · server 2) · Workstations · Workstations
Page 129 of the Cisco Systems 4500 user manual — Configuring TACACS+
Page 129 · click to enlarge
Page 129

Chapter 3 Configuring the Switch for the First Time

Controlling Access to Privileged EXEC Commands

TACACS+ Operation

When a user attempts a simple ASCII login by authenticating to a switch using TACACS+, this process occurs:

1. When the connection is established, the switch contacts the TACACS+ daemon to obtain a username prompt, which is then displayed to the user. The user enters a username, and the switch then contacts the TACACS+ daemon to obtain a password prompt. The switch displays the password prompt to the user, the user enters a password, and the password is then sent to the TACACS+ daemon.

TACACS+ allows a conversation between the daemon and the user until the daemon receives enough information to authenticate the user. The daemon prompts for a username and password combination, but can include other items such as the user’s mother’s maiden name.

2. The switch eventually receives one of these responses from the TACACS+ daemon:
  • ACCEPT—The user is authenticated and service can begin. If the switch is configured to require authorization, authorization begins at this time.
  • REJECT—The user is not authenticated. The user can be denied access or is prompted to retry the login sequence, depending on the TACACS+ daemon.
  • ERROR—An error occurred at some time during authentication with the daemon or in the network connection between the daemon and the switch. If an ERROR response is received, the switch typically tries to use an alternative method for authenticating the user.
  • CONTINUE—The user is prompted for additional authentication information.

After authentication, the user undergoes an additional authorization phase if authorization has been enabled on the switch. Users must first successfully complete TACACS+ authentication before proceeding to TACACS+ authorization.

3. If TACACS+ authorization is required, the TACACS+ daemon is again contacted, and it returns an ACCEPT or REJECT authorization response. If an ACCEPT response is returned, the response contains data in the form of attributes that direct the EXEC or NETWORK session for that user and the services that the user can access:
  • Telnet, Secure Shell (SSH), rlogin, or privileged EXEC services
  • Connection parameters, including the host or client IP address, access list, and user timeouts

Configuring TACACS+

This section describes how to configure your switch to support TACACS+. At a minimum, you must identify the host or hosts maintaining the TACACS+ daemon and define the method lists for TACACS+ authentication. You can optionally define method lists for TACACS+ authorization and accounting. A method list defines the sequence and methods used to authenticate, to authorize, or to keep accounts on a user. Use method lists to designate one or more security protocols, ensuring a backup system if the initial method fails. The software uses the first method listed to authenticate, to authorize, or to keep accounts on users; if that method does not respond, the software selects the next method in the list. This process continues until there is successful communication with a listed method or the method list is exhausted.

This section contains the following configuration information:

  • Default TACACS+ Configuration, page 3-18
  • Identifying the TACACS+ Server Host and Setting the Authentication Key, page 3-18
  • Configuring TACACS+ Login Authentication, page 3-19
Page 130 of the Cisco Systems 4500 user manual — Identifying the TACACS+ Server Host and Setting the Authentication Key
Page 130 · click to enlarge
Page 130

Chapter 3 Configuring the Switch for the First Time Controlling Access to Privileged EXEC Commands

  • Configuring TACACS+ Authorization for Privileged EXEC Access and Network Services, page 3-21
  • Starting TACACS+ Accounting, page 3-21

Default TACACS+ Configuration

TACACS+ and AAA are disabled by default.

To prevent a lapse in security, you cannot configure TACACS+ through a network management application. When enabled, TACACS+ can authenticate users accessing the switch through the CLI.

Identifying the TACACS+ Server Host and Setting the Authentication Key

You can configure the switch to use a single server or AAA server groups in order to group existing server hosts for authentication. You can group servers to select a subset of the configured server hosts and use them for a particular service. The server group is used with a global server-host list and contains the list of IP addresses of the selected server hosts.

To identify the IP host or host maintaining TACACS+ server and optionally set the encryption key, perform this task, beginning in privileged EXEC mode:

Step 1 configure terminal Enters global configuration mode.

Step 2 tacacs-server host hostname [port integer] [timeout integer] [key string]

Identifies the IP host or hosts maintaining a TACACS+ server. Enter this command multiple times to create a list of preferred hosts. The software searches for hosts in the order in which you specify them.

  • For hostname , specify the name or IP address of the host.
  • (Optional) For port integer , specify a server port number. The default is port 49. The range is 1 to 65535.
  • (Optional) For timeout integer , specify a time in seconds the switch waits for a response from the daemon before it times out and declares an error. The default is 5 seconds. The range is 1 to 1000 seconds.
  • (Optional) For key string , specify the encryption key for encrypting and decrypting all traffic between the switch and the TACACS+ daemon. You must configure the same key on the TACACS+ daemon for encryption to succeed.

Step 3 aaa new-model Enables AAA.

Step 4 aaa group server tacacs+ group-name (Optional) Defines the AAA server-group with a group name.

This command puts the switch in a server group subconfiguration mode.

Step 5 server ip-address (Optional) Associates a particular TACACS+ server with the defined server group. Repeat this step for each TACACS+ server in the AAA server group.

Each server in the group must be previously defined in Step 2.

Step 6 end Returns to privileged EXEC mode.

Page 131 of the Cisco Systems 4500 user manual — Configuring TACACS+ Login Authentication
Page 131 · click to enlarge
Page 131

Chapter 3 Configuring the Switch for the First Time

Controlling Access to Privileged EXEC Commands

Step 7 show tacacs Verifies your entries.

Step 8 copy running-config startup-config (Optional) Saves your entries in the configuration file.

To remove the specified TACACS+ server name or address, use the no tacacs-server host hostname global configuration command. To remove a server group from the configuration list, use the no aaa group server tacacs+ group-name global configuration command. To remove the IP address of a TACACS+ server, use the no server ip-address server group subconfiguration command.

Configuring TACACS+ Login Authentication

To configure AAA authentication, define a named list of authentication methods and then apply that list to various ports. The method list defines the types of authentication you intend to perform and the sequence in which you intend to perform them; you must apply the list to a specific port before you can perform any of the defined authentication methods. The only exception is the default method list (which, by coincidence, is named default). The default method list is automatically applied to all ports except those that have a named method list explicitly defined. A defined method list overrides the default method list.

A method list describes the sequence and authentication methods that must be queried to authenticate a user. You can designate one or more security protocols for authentication, ensuring a backup system for authentication in case the initial method fails. The software uses the first method listed to authenticate users; if that method fails to respond, the software selects the next authentication method in the method list. This process continues until there is successful communication with a listed authentication method or until all defined methods are exhausted. If authentication fails at any point in this cycle—meaning that the security server or local username database responds by denying the user access—the authentication process stops, and no other authentication methods are attempted.

To configure login authentication, perform this task, beginning in privileged EXEC mode:

Step 1 configure terminal Enters global configuration mode.

Step 2 aaa new-model Enables AAA.

Page 132 of the Cisco Systems 4500 user manual — Configuring the Switch for the First Time
Page 132 · click to enlarge
Page 132

Chapter 3 Configuring the Switch for the First Time Controlling Access to Privileged EXEC Commands

Step 3 aaa authentication login {default | list-name} method1 [method2...]

Creates a login authentication method list.

  • To create a default list that is used when a named list is not specified in the login authentication command, use the default keyword followed by the methods that you plan to use in default situations. The default method list is automatically applied to all ports.
  • For list-name , specify a character string to name the list you are creating.
  • For method1... , specify the actual method the authentication algorithm tries. The additional methods of authentication are used only if the previous method returns an error, not if it fails.

Select one of these methods:

  • enable —Use the enable password for authentication. Before you can use this authentication method, you must define an enable password by using the enable password global configuration command.
  • group tacacs+ —Uses TACACS+ authentication. Before you can use this authentication method, you must configure the TACACS+ server. For more information, see the “Identifying the TACACS+ Server Host and Setting the Authentication Key” section on page 3-18 .
  • line —Use the line password for authentication. Before you can use this authentication method, you must define a line password. Use the password password line configuration command.
  • local —Use the local username database for authentication. You must enter username information in the database. Use the username password global configuration command.
  • local-case —Use a case-sensitive local username database for authentication. You must enter username information in the database by using the username name password global configuration command.
  • none —Do not use any authentication for login.

Step 4 line [console | tty | vty] line-number [ending-line-number]

Enters line configuration mode, and configures the lines to which you want to apply the authentication list.

Step 5 login authentication {default | list-name}

Applies the authentication list to a line or set of lines.

  • If you specify default , use the default list created with the aaa authentication login command.
  • For list-name , specify the list created with the aaa authentication login command.

Step 6 end Returns to privileged EXEC mode.

Step 7 show running-config Verifies your entries.

Step 8 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 133 of the Cisco Systems 4500 user manual — Starting TACACS+ Accounting
Page 133 · click to enlarge
Page 133

Chapter 3 Configuring the Switch for the First Time

Controlling Access to Privileged EXEC Commands

To disable AAA, use the no aaa new-model global configuration command. To disable AAA authentication, use the no aaa authentication login {default | list-name} method1 [method2...] global configuration command. To either disable TACACS+ authentication for logins or to return to the default value, use the no login authentication {default | list-name} line configuration command.

Configuring TACACS+ Authorization for Privileged EXEC Access and Network Services

AAA authorization limits the services available to a user. When AAA authorization is enabled, the switch uses information retrieved from the user’s profile, which is located either in the local user database or on the security server, to configure the user’s session. The user is granted access to a requested service only if the information in the user profile allows it.

To set parameters that restrict a user’s network access to privileged EXEC mode, use the aaa authorization global configuration command with the tacacs+ keyword.

The aaa authorization exec tacacs+ local command sets these authorization parameters:

  • Use TACACS+ for privileged EXEC access authorization if authentication was performed by using TACACS+.
  • Use the local database if authentication was not performed by using TACACS+.

To specify TACACS+ authorization for privileged EXEC access and network services, perform this task, beginning in privileged EXEC mode:

Step 1 configure terminal Enters global configuration mode.

Step 2 aaa authorization network tacacs+ Configures the switch for user TACACS+ authorization for all network-related service requests.

Step 3 aaa authorization exec tacacs+ Configures the switch for user TACACS+ authorization if the user has privileged EXEC access.

The exec keyword might return user profile information (such as autocommand information).

Step 4 end Returns to privileged EXEC mode.

Step 5 show running-config Verifies your entries.

Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.

To disable authorization, use the no aaa authorization {network | exec} method1 global configuration command.

Starting TACACS+ Accounting

The AAA accounting feature tracks the services that users are accessing and the amount of network resources that they are consuming. When AAA accounting is enabled, the switch reports user activity to the TACACS+ security server in the form of accounting records. Each accounting record contains accounting attribute-value (AV) pairs and is stored on the security server. This data can then be analyzed for network management, client billing, or auditing.

Page 134 of the Cisco Systems 4500 user manual — Encrypting Passwords
Page 134 · click to enlarge
Page 134

Chapter 3 Configuring the Switch for the First Time Controlling Access to Privileged EXEC Commands

To enable TACACS+ accounting for each Cisco IOS privilege level and for network services, perform this task, beginning in privileged EXEC mode:

Step 1 configure terminal Enters global configuration mode.

Step 2 aaa accounting network start-stop tacacs+

Enables TACACS+ accounting for all network-related service requests.

Step 3 aaa accounting exec start-stop tacacs+

Enables TACACS+ accounting to send a start-record accounting notice at the beginning of a privileged EXEC process and a stop-record at the end.

Step 4 end Returns to privileged EXEC mode.

Step 5 show running-config Verifies your entries.

Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.

To disable accounting, use the no aaa accounting {network | exec} {start-stop} method1... global configuration command.

Displaying the TACACS+ Configuration

To display TACACS+ server statistics, use the show tacacs privileged EXEC command.

Encrypting Passwords

Because protocol analyzers can examine packets (and read passwords), you can increase access security by configuring the Cisco IOS software to encrypt passwords. Encryption prevents the password from being readable in the configuration file.

To configure the Cisco IOS software to encrypt passwords, enter this command:

Switch(config)# service password-encryption Encrypts a password.

Encryption occurs when the current configuration is written or when a password is configured. Password encryption is applied to all passwords, including authentication key passwords, the privileged command password, console and virtual terminal line access passwords, and Border Gateway Protocol (BGP) neighbor passwords. The service password-encryption command keeps unauthorized individuals from viewing your password in your configuration file.

Although you cannot recover a lost encrypted password (that is, you cannot get the original password back), you can regain control of the switch after having lost or forgotten the encrypted password. See the “Recovering a Lost Enable Password” section on page 3-25 for more information.

Page 135 of the Cisco Systems 4500 user manual — Changing the Default Privilege Level for Lines
Page 135 · click to enlarge
Page 135

Chapter 3 Configuring the Switch for the First Time

Controlling Access to Privileged EXEC Commands

For information on how to display the password or access level configuration, see the “Displaying the Password, Access Level, and Privilege Level Configuration” section on page 3-24.

Configuring Multiple Privilege Levels

By default, Cisco IOS software has two modes of password security: user EXEC mode and privileged EXEC mode. You can configure up to 16 hierarchical levels of commands for each mode. By configuring multiple passwords, you can allow different sets of users to have access to specified commands.

For example, if you want many users to have access to the clear line command, you can assign it level 2 security and distribute the level 2 password to more users.. If you want more restricted access to the configure command, you can assign it level 3 security and distribute that password to fewer users.

The procedures in the following sections describe how to configure additional levels of security:

  • Setting the Privilege Level for a Command, page 3-23
  • Changing the Default Privilege Level for Lines, page 3-23
  • Logging In to a Privilege Level, page 3-24
  • Exiting a Privilege Level, page 3-24
  • Displaying the Password, Access Level, and Privilege Level Configuration, page 3-24

Setting the Privilege Level for a Command

To set the privilege level for a command, perform this task:

Step 1 Switch(config)# privilege mode level level command

Sets the privilege level for a command.

Step 2 Switch(config)# enable password level level [encryption-type] password

Specifies the enable password for a privilege level.

For information on how to display the password or access level configuration, see the “Displaying the Password, Access Level, and Privilege Level Configuration” section on page 3-24.

Changing the Default Privilege Level for Lines

To change the default privilege level for a given line or a group of lines, perform this task:

Switch(config-line)# privilege level level Changes the default privilege level for the line.

For information on how to display the password or access level configuration, see the “Displaying the Password, Access Level, and Privilege Level Configuration” section on page 3-24.

Page 136 of the Cisco Systems 4500 user manual — Displaying the Password, Access Level, and Privilege Level Configuration
Page 136 · click to enlarge
Page 136

Chapter 3 Configuring the Switch for the First Time Controlling Access to Privileged EXEC Commands

Logging In to a Privilege Level

To log in at a specified privilege level, enter this command:

Switch# enable level Logs in to a specified privilege level.

Exiting a Privilege Level

To exit to a specified privilege level, enter this command:

Switch# disable level Exits to a specified privilege level.

Displaying the Password, Access Level, and Privilege Level Configuration

To display detailed password information, perform this task:

Step 1 Switch# show running-config Displays the password and access level configuration.

Step 2 Switch# show privilege Shows the privilege level configuration.

This example shows how to display the password and access level configuration:

Switch# show running-config Building configuration...

Current configuration: ! version 12.0 service timestamps debug datetime localtime service timestamps log datetime localtime no service password-encryption ! hostname Switch ! boot system flash sup-bootflash enable password lab !

This example shows how to display the privilege level configuration:

Switch# show privilege Current privilege level is 15 Switch#

Page 137 of the Cisco Systems 4500 user manual — Understanding the Supervisor Engine Boot Configuration
Page 137 · click to enlarge
Page 137

Chapter 3 Configuring the Switch for the First Time

Recovering a Lost Enable Password

Recovering a Lost Enable Password

To recover a lost enable password, follow these steps:

Step 1 Connect to the console interface.

Step 2 Stop the boot sequence and enter ROM monitor by pressing Ctrl-C during the first 5 seconds of bootup.

Step 3 Configure the switch to boot-up without reading the configuration memory (NVRAM).

Step 4 Reboot the system.

Step 5 Access enable mode (this can be done without a password if a password has not been configured).

Step 6 View or change the password, or erase the configuration.

Step 7 Reconfigure the switch to boot-up and read the NVRAM as it normally does.

Step 8 Reboot the system.

Modifying the Supervisor Engine Startup Configuration

These sections describe how the startup configuration on the supervisor engine works and how to modify the BOOT variable and the configuration register:

  • Understanding the Supervisor Engine Boot Configuration, page 3-25
  • Configuring the Software Configuration Register, page 3-26
  • Specifying the Startup System Image, page 3-30
  • Controlling Environment Variables, page 3-31

Understanding the Supervisor Engine Boot Configuration

The supervisor engine boot process involves two software images: ROM monitor and supervisor engine software. When the switch is booted or reset, the ROMMON code is executed. Depending on the NVRAM configuration, the supervisor engine either stays in ROMMON mode or loads the supervisor engine software.

Two user-configurable parameters determine how the switch boots: the configuration register and the BOOT environment variable. The configuration register is described in the “Modifying the Boot Field and Using the boot Command” section on page 3-27. The BOOT environment variable is described in the “Specifying the Startup System Image” section on page 3-30.

Page 138 of the Cisco Systems 4500 user manual — Configuring the Software Configuration Register
Page 138 · click to enlarge
Page 138

Chapter 3 Configuring the Switch for the First Time Modifying the Supervisor Engine Startup Configuration

Understanding the ROM Monitor

The ROM monitor (ROMMON) is invoked at switch bootup, reset, or when a fatal exception occurs. The switch enters ROMMON mode if the switch does not find a valid software image, if the NVRAM configuration is corrupted, or if the configuration register is set to enter ROMMON mode. From ROMMON mode, you can manually load a software image from bootflash or a flash disk, or you can boot up from the management interface. ROMMON mode loads a primary image from which you can configure a secondary image to boot up from a specified source either locally or through the network using the BOOTLDR environment variable. This variable is described in the “Switch#” section on page 3-32.

You can also enter ROMMON mode by restarting the switch and then pressing Ctrl-C during the first five seconds of startup. If you are connected through a terminal server, you can escape to the Telnet prompt and enter the send break command to enter ROMMON mode.

The ROM monitor has these features:

  • Power-on confidence test
  • Hardware initialization
  • Boot capability (manual bootup and autoboot)
  • File system (read-only while in ROMMON)

Configuring the Software Configuration Register

The switch uses a 16-bit software configuration register, which allows you to set specific system parameters. Settings for the software configuration register are preconfigured in NVRAM.

Here are some reasons why you might want to change the software configuration register settings:

  • To select a boot source and default boot filename
  • To control broadcast addresses
  • To set the console terminal baud rate
  • To load operating software from flash memory
  • To recover a lost password
  • To manually boot the system using the boot command at the bootstrap program prompt
  • To force an automatic bootup from the system bootstrap software (boot image) or from a default system image in onboard flash memory, and read any boot system commands that are stored in the configuration file in NVRAM

Table 3-3 lists the meaning of each of the software configuration memory bits. Table 3-4 defines the boot field.

Page 139 of the Cisco Systems 4500 user manual — Modifying the Boot Field and Using the boot Command
Page 139 · click to enlarge
Page 139

Chapter 3 Configuring the Switch for the First Time

Modifying the Supervisor Engine Startup Configuration

Table 3-3 Software Configuration Register Bits

Bit Number 1

Hexadecimal Meaning

00 to 03 0x0000 to 0x000F Boot field (see Table 3-4)

05 0x0020 Bit two of console line speed

06 0x0040 Causes system software to ignore NVRAM contents

07 0x0080 OEM2 bit enabled

10 0x0400 IP broadcast with all zeros

11 to 12 0x0800 to 0x1000 Bits one and zero of Console line speed (default is 9600 baud)

13 0x2000 Loads ROM monitor after netboot fails

14 0x4000 IP broadcasts do not have network numbers

1. The factory default value for the configuration register is 0x2101. This value is a combination of the following: binary bit 13, bit 8 = 0x0100 and binary bits 00 through 03 = 0x0001. See Table 3-4 .
2. OEM = original equipment manufacturer.

Table 3-4 Explanation of Boot Field (Configuration Register Bits 00 to 03)

Boot Field Meaning

00 Stays at the system bootstrap prompt (does not autoboot).

01 Boots the first file in onboard flash memory.

02 to 0F Autoboots using image(s) specified by the BOOT environment variable. If more than one image is specified, the switch attempts to boot the first image specified in the BOOT variable. As long as the switch can successfully boot from this image, the same image is used on a reboot. If the switch fails to boot from the image specified in the BOOT variable, the switch tries to boot from the next image listed in the BOOT variable. If the end of the BOOT variable is reached without the switch booting successfully, the switch attempts the boot from the beginning of the BOOT variable. The autoboot continues until the switch successfully boots from one of the images specified in the BOOT variable.

Modifying the Boot Field and Using the boot Command

The configuration register boot field determines whether the switch loads an operating system image and, if so, where it obtains this system image. The following sections describe how to use and set the configuration register boot field and the procedures you must perform to modify the configuration register boot field. In ROMMON, to modify the configuration register and change boot settings, use the the confreg command.

Bits 0 through 3 of the software configuration register contain the boot field.

04 0x0010 Unused · 08 0x0100 Unused · 09 0x0200 Unused

Page 140 of the Cisco Systems 4500 user manual — Modifying the Boot Field
Page 140 · click to enlarge
Page 140

Chapter 3 Configuring the Switch for the First Time Modifying the Supervisor Engine Startup Configuration

When the boot field is set to either 00 or 01 (0-0-0-0 or 0-0-0-1), the system ignores any boot instructions in the system configuration file and the following occurs:

  • When the boot field is set to 00, you must boot up the operating system manually by entering the boot command at the system bootstrap or ROMMON prompt.
  • When the boot field is set to 01, the system boots the first image in the bootflash single in-line memory module (SIMM).
  • When the entire boot field equals a value between 0-0-1-0 and 1-1-1-1, the switch loads the system image specified by boot system commands in the startup configuration file.

You can enter the boot command only or enter the command and include additional boot instructions, such as the name of a file stored in flash memory, or a file that you specify for booting from a network server. If you use the boot command without specifying a file or any other boot instructions, the system boots from the default flash image (the first image in onboard flash memory). Otherwise, you can instruct the system to boot up from a specific flash image (using the boot system flash filename command).

You can also use the boot command to boot up images stored in the compact flash cards located in slot 0 on the supervisor engine.

Modifying the Boot Field

Modify the boot field from the software configuration register. To modify the software configuration register boot field, perform this task:

Step 1 Switch# show version Determines the current configuration register setting.

Step 2 Switch# configure terminal Enters configuration mode, and specify the terminal option.

Step 3 Switch(config)# config-register value Modifies the existing configuration register setting to reflect the way you want the switch to load a system image.

Step 4 Switch(config)# end Exits configuration mode.

Step 5 Switch# reload Reboots the switch to make your changes take effect.

To modify the configuration register while the switch is running Cisco IOS software, follow these steps:

Step 1 Enter the enable command and your password to enter privileged level, as follows:

Switch> enable PasswordSwitch#
Page 141 of the Cisco Systems 4500 user manual — Verifying the Configuration Register Setting
Page 141 · click to enlarge
Page 141

Chapter 3 Configuring the Switch for the First Time

Modifying the Supervisor Engine Startup Configuration

Step 2 Enter the configure terminal command at the EXEC mode prompt (#), as follows:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#

Step 3 Configure the configuration register to 0x102 as follows:

Set the contents of the configuration register by specifying the value command variable, where value is a hexadecimal number preceded by 0x (see Table 3-3 on page 3-27).

Step 4 Enter the end command to exit configuration mode. The new value settings are saved to memory; however, the new settings do not take effect until the system is rebooted.

Step 5 Enter the show version EXEC command to display the configuration register value currently in effect; it is be used at the next reload. The value is displayed on the last line of the screen display, as shown in this sample output:

Configuration register is 0x141 (will be 0x102 at next reload)

Step 6 Save your settings.

See the “Saving the Running Configuration Settings to Your Start-Up File” section on page 3-10. Note that configuration register changes take effect only after the system reloads, such as when you enter a reload command from the console.

Step 7 Reboot the system. The new configuration register value takes effect with the next system boot up.

Verifying the Configuration Register Setting

Enter the show version EXEC command to verify the current configuration register setting. In ROMMON mode, enter the show version command to verify the configuration register setting.

To verify the configuration register setting for the switch, perform this task:

Switch# show version Displays the configuration register setting.

In this example, the show version command indicates that the current configuration register is set so that the switch does not automatically load an operating system image. Instead, it enters ROMMON mode and waits for you to enter ROM monitor commands.

Supervisor Engine 6-E and Supervisor Engine 6L-E

Switch# show version Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICES-M), Version 15.0(2)SG2-2.189, C ISCO INTERNAL USE ONLY DEVTEST VERSION , synced to FLOGSBU8_122_56_SG_268 Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Thu 19-Jan-12 00:55 by gsbuprod Image text-base: 0x10000000, data-base: 0x136E0D6C

ROM12.2(44r)SG(0.146) Darkside Revision 4, Jawa Revision 20, Tatooine Revision 141, Forerunner Revision 1.79

Switch uptime is 3 minutes

Switch(config)# config-register 0x102

Page 142 of the Cisco Systems 4500 user manual — Specifying the Startup System Image
Page 142 · click to enlarge
Page 142

Chapter 3 Configuring the Switch for the First Time Modifying the Supervisor Engine Startup Configuration

System returned to ROM by reload System image file is "tftp://172.25.60.31/auto/gsg-sw/interim/young/newest_image/ios/dev/cat4500e-entservi ces-mz" Last reload reason: Reload command

cisco WS-C4503-E (MPC8548) processor (revision 6) with 1048576K bytes of memory. Processor board ID SPE120301X8 MPC8548 CPU at 1.33GHz, Supervisor 6-E Last reset from Reload 1 Virtual Ethernet interface 52 Gigabit Ethernet interfaces 2 Ten Gigabit Ethernet interfaces 511K bytes of non-volatile configuration memory.

Switch# show version Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 15.0(2)SG2-2.189, CISCO INTERNAL USE ONLY DEVTEST VERSION , synced to FLOGSBU8_122_56_SG_268 Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Thu 19-Jan-12 03:49 by gsbuprod Image text-base: 0x10000000, data-base: 0x125A52DC

ROM12.2(31r)SGA4 Pod Revision 0, Force Revision 31, Gill Revision 19

Switch uptime is 1 minute System returned to ROM by reload System image file is "tftp://172.25.60.31/auto/gsg-sw/interim/young/newest_image/ios/dev/cat4500-entservices-mz "

cisco WS-C4948-10GE (MPC8540) processor (revision 5) with 262144K bytes of memory. Processor board ID FOX095107K6 MPC8540 CPU at 667Mhz, Fixed Module Last reset from Reload 1 Virtual Ethernet interface 48 Gigabit Ethernet interfaces 2 Ten Gigabit Ethernet interfaces 511K bytes of non-volatile configuration memory. Configuration register is 0x860

Specifying the Startup System Image

You can enter multiple boot commands in the startup configuration file or in the BOOT environment variable to provide backup methods for loading a system image.

The BOOT environment variable is also described in the “Specify the Startup System Image in the Configuration File” section in the “Loading and Maintaining System Images and Microcode” chapter of the Cisco IOS Configuration Fundamentals Configuration Guide.

Use the following sections to configure your switch to boot from flash memory. Flash memory can be either single in-line memory modules (SIMMs) or flash disks. Check the appropriate hardware installation and maintenance guide for information about types of flash memory.

Supervisor Engine 4948-10GE

Page 143 of the Cisco Systems 4500 user manual — Controlling Environment Variables
Page 143 · click to enlarge
Page 143

Chapter 3 Configuring the Switch for the First Time

Modifying the Supervisor Engine Startup Configuration

Flash Memory Features

Flash memory allows you to do the following:

  • Remotely load multiple system software images through TFTP or RCP transfers (one transfer for each file loaded)
  • Boot a switch manually or automatically from a system software image stored in flash memory (you can also boot directly from ROM)
  • Copy the system image to flash memory using TFTP
  • Boot the system from flash memory either automatically or manually
  • Copy the flash memory image to a network server using TFTP or RCP

For more information on flash memory, see this URL:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/hardware/configuration/notes/OL_2788.h tml

Security Precautions

Configuring Flash Memory

To configure your switch to boot from flash memory, perform the following procedure. Refer to the appropriate hardware installation and maintenance publication for complete instructions on installing the hardware.

Step 1 Copy a system image to flash memory using TFTP or other protocols. Refer to the “Cisco IOS File Management” and “Loading and Maintaining System Images” chapters in the Cisco IOS Configuration Fundamentals Configuration Guide, Release 12.2, at the following URL: http://www.cisco.com/en/US/docs/ios/fundamentals/configuration/guide/12_2sr/cf_12_2sr_book.html

Step 2 Configure the system to boot automatically from the desired file in flash memory.

You might need to change the configuration register value. See the “Modifying the Boot Field and Using the boot Command” section on page 3-27, for more information on modifying the configuration register.

Step 3 Save your configurations.

Step 4 Power cycle and reboot your system to verify that all is working as expected.

Controlling Environment Variables

Although the ROM monitor controls environment variables, you can create, modify, or view them with certain commands. To create or modify the BOOT and BOOTLDR variables, use the boot system and boot bootldr global configuration commands, respectively. Refer to the “Specify the Startup System

Page 144 of the Cisco Systems 4500 user manual — Resetting a Switch to Factory Default Settings
Page 144 · click to enlarge
Page 144

Chapter 3 Configuring the Switch for the First Time Resetting a Switch to Factory Default Settings

Image in the Configuration File” section in the “Loading and Maintaining System Images and Microcode” chapter of the Configuration Fundamentals Configuration Guide for details on setting the BOOT environment variable.

Note When you use the boot system and boot bootldr global configuration commands, you affect only the running configuration. To save the configuration for future use, you must save the environment variable settings to your startup configuration, which places the information under ROM monitor control. Enter the copy system:running-config nvram:startup-config command to save the environment variables from your running configuration to your startup configuration.

You can view the contents of the BOOT and BOOTLDR variables using the show bootvar command. This command displays the settings for these variables as they exist in the startup configuration and in the running configuration if a running configuration setting differs from a startup configuration setting. This example shows how to check the BOOT and BOOTLDR variables on the switch:

Switch# show bootvar BOOTLDR variable = bootflash:cat4000-is-mz,1; Configuration register is 0x0 Switch#

Resetting a Switch to Factory Default Settings

Manufacturing and repair centers can use the erase /all non-default command to do the following:

  • Clear the nonvolatile configurations and states of the local supervisor engine (NVRAM and flashes).
  • Set the factory default parameters on the Catalyst 4500 series switch before it is ready to ship to a customer.

For example, entering this command can generate the following output:

Switch# erase /all non-default Erase and format operation will destroy all data in non-volatile storage. Continue? [confirm] Formatting bootflash: ... Format of bootflash complete Erasing nvram: Erasing cat4000_flash: Clearing crashinfo:data Clearing the last power failure timestamp Clearing all ROMMON variables Setting default ROMMON variables: ConfigReg=0x2101 PS1=rommon ! > EnableAutoConfig=1 Setting vtp mode to transparent %WARNING! Please reboot the system for the changes to take effect Switch# 00:01:48: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram Switch#

If the Catalyst 4500 series switch is accessible to a TFTP server, you can copy an image to the bootflash memory with the TFTP command:

Switch# copy tftp://192.20.3.123/tftpboot/abc/cat4500-entservices-mz.bin bootflash:

Page 145 of the Cisco Systems 4500 user manual — Configuring the Switch for the First Time
Page 145 · click to enlarge
Page 145

Chapter 3 Configuring the Switch for the First Time

Resetting a Switch to Factory Default Settings

When the copying is completed, you can reboot the just-copied Catalyst 4500 series switch image to the image stored in the bootflash memory with the reload command:

System configuration has been modified. Save? [yes/no]: no Proceed with reload? [confirm]

00:06:17: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

To see details about the default parameters set by the erase /all non-default command, see the usage guidelines for the erase command in the Catalyst 4500 Series Switch Cisco IOS Command Reference.

Switch# reload

Page 146 of the Cisco Systems 4500 user manual — Configuring the Switch for the First Time
Page 146 · click to enlarge
Page 146

Chapter 3 Configuring the Switch for the First Time Resetting a Switch to Factory Default Settings

Page 147 of the Cisco Systems 4500 user manual — Managing the System Time and Date
Page 147 · click to enlarge
Page 147

C H A P T E R

Administering the Switch

This chapter describes how to perform one-time operations to administer the Catalyst 4500 Series switch.

This chapter also describes how to install and configure the Embedded CiscoView network management system to provide a graphical representation of a Catalyst 4500 series switch and to provide a GUI-based management and configuration interface.

This chapter includes the following major sections:

  • Managing the System Time and Date, page 4-1
  • Configuring a System Name and Prompt, page 4-14
  • Creating a Banner, page 4-17
  • Managing the MAC Address Table, page 4-19
  • Managing the ARP Table, page 4-35
  • Configuring Embedded CiscoView Support, page 4-35

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Managing the System Time and Date

You can configure the system time and date on your switch manually or automatically by using Network Time Protocol (NTP).

These sections contain this configuration information:

  • System Clock, page 4-2
  • Understanding Network Time Protocol, page 4-2
Page 148 of the Cisco Systems 4500 user manual — Understanding Network Time Protocol
Page 148 · click to enlarge
Page 148

Chapter 4 Administering the Switch Managing the System Time and Date

  • Configuring NTP, page 4-3
  • Configuring Time and Date Manually, page 4-11

System Clock

The core of the time service is the system clock, which monitors the date and time. This clock starts when the system starts.

The system clock can provide time to these services:

  • User show commands
  • Logging and debugging messages

The system clock keeps track of time internally based on Universal Time Coordinated (UTC), also known as Greenwich Mean Time (GMT). You can configure information about the local time zone and summer time (daylight saving time) so that the time is correct for the local time zone.

The system clock keeps track of whether the time is authoritative or not (whether it was set by a time source considered to be authoritative). If it is not authoritative, the time is available only for display purposes and is not redistributed. For configuration information, see the “Configuring Time and Date Manually” section on page 4-11.

Understanding Network Time Protocol

The NTP is designed to synchronize a network of devices. NTP runs over User Datagram Protocol (UDP), which runs over IP. NTP is documented in RFC 1305.

An NTP network usually gets its time from an authoritative time source, such as a radio clock or an atomic clock attached to a time server. NTP then distributes this time across the network. NTP is extremely efficient; no more than one packet per minute is necessary to synchronize two devices to within a millisecond of one another.

NTP uses the concept of a stratum to describe how many NTP hops away a device is from an authoritative time source. A stratum 1 time server has a radio or atomic clock directly attached, a stratum 2 time server receives its time through NTP from a stratum 1 time server, and so on. A device running NTP automatically chooses as its time source the device with the lowest stratum number with which it communicates through NTP. This strategy effectively builds a self-organizing tree of NTP speakers.

NTP avoids synchronizing to a device whose time might not have been synchronized. NTP also compares the time reported by several devices and does not synchronize to a device whose time is significantly different than the others, even if its stratum is lower.

The communications between devices running NTP (known as associations) are usually statically configured; each device is given the IP address of all devices with which it should associate. Accurate timekeeping is possible by exchanging NTP messages between each pair of devices with an association. However, in a LAN environment, NTP can be configured to use IP broadcast messages instead. This alternative reduces configuration complexity because each device can be configured to send or receive broadcast messages; however, information flow is one-way only.

The time kept on a device is a critical resource; you should use the security features of NTP to avoid the accidental or malicious setting of an incorrect time. Two mechanisms are available: an access list-based restriction scheme and an encrypted authentication mechanism.

Page 149 of the Cisco Systems 4500 user manual — Configuring NTP
Page 149 · click to enlarge
Page 149

Chapter 4 Administering the Switch

Managing the System Time and Date

Cisco’s implementation of NTP does not support stratum 1 service; it is not possible to connect to a radio or atomic clock. We recommend that the time service for your network be derived from the public NTP servers available on the IP Internet.

Figure 4-1 shows a typical network example using NTP. Switch A is the NTP master, with Switches B, C, and D configured in NTP server mode, in server association with Switch A. Switch E is configured as an NTP peer to the upstream and downstream switches, Switch B and Switch F, respectively.

Figure 4-1 Typical NTP Network Configuration

Switch C Switch D

If the network is isolated from the Internet, Cisco’s implementation of NTP allows a device to act as if it is synchronized through NTP, when it is not. Other devices then synchronize to that device through NTP.

NTP time overrides the time set by any other method.

Several manufacturers include NTP software for their host systems, and a public version for systems running UNIX and its various derivatives is also available. This software allows host systems to be synchronized as well.

Configuring NTP

These sections contain this configuration information:

  • Default NTP Configuration, page 4-4
  • Configuring NTP Authentication, page 4-4
Show 8 more labels / short text on this page
Switch A · Local workgroup · servers · Switch B · Switch E · Workstations · Switch F · Workstations
Page 150 of the Cisco Systems 4500 user manual — Configuring NTP Authentication
Page 150 · click to enlarge
Page 150

Chapter 4 Administering the Switch Managing the System Time and Date

  • Configuring NTP Associations, page 4-6
  • Configuring NTP Broadcast Service, page 4-7
  • Configuring NTP Access Restrictions, page 4-8
  • Configuring the Source IP Address for NTP Packets, page 4-10
  • Displaying the NTP Configuration, page 4-11

Default NTP Configuration

Table 4-1 shows the default NTP configuration.

Table 4-1 Default NTP Configuration

Feature Default Setting

NTP authentication Disabled. No authentication key is specified.

NTP peer or server associations None configured.

NTP broadcast service Disabled; no interface sends or receives NTP broadcast packets.

NTP access restrictions No access control is specified.

NTP packet source IP address The source address is set by the outgoing interface.

NTP is enabled on all interfaces by default. All interfaces receive NTP packets.

Configuring NTP Authentication

This procedure must be coordinated with the administrator of the NTP server; the information you configure in this procedure must be matched by the servers used by the switch to synchronize its time to the NTP server.

To authenticate the associations (communications between devices running NTP that provide for accurate timekeeping) with other devices for security purposes, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 ntp authenticate Enables the NTP authentication feature, which is disabled by default.

Step 3 ntp authentication-key number md5 value Defines the authentication keys. By default, none are defined.

  • For number , specify a key number. The range is 1 to 4294967295.
  • md5 specifies that message authentication support is provided by using the message digest algorithm 5 (MD5).
  • For value , enter an arbitrary string of up to eight characters for the key.

The switch does not synchronize to a device unless both have one of these authentication keys, and the key number is specified by the ntp trusted-key key-number command.

Page 151 of the Cisco Systems 4500 user manual — Administering the Switch
Page 151 · click to enlarge
Page 151

Chapter 4 Administering the Switch

Managing the System Time and Date

Step 4 ntp trusted-key key-number Specifies one or more key numbers (defined in Step 3) that a peer NTP device must provide in its NTP packets for this switch to synchronize to it.

By default, no trusted keys are defined.

For key-number, specify the key defined in Step 3.

This command provides protection against accidentally synchronizing the switch to a device that is not trusted.

Step 5 end Returns to privileged EXEC mode.

Step 6 show running-config Verifies your entries.

Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.

To disable NTP authentication, use the no ntp authenticate global configuration command. To remove an authentication key, use the no ntp authentication-key number global configuration command. To disable authentication of the identity of a device, use the no ntp trusted-key key-number global configuration command.

This example shows how to configure the switch to synchronize only to devices providing authentication key 42 in the device’s NTP packets:

Switch# configure terminal Switch(config)# ntp authenticate Switch(config)# ntp authentication-key 42 md5 aNiceKey Switch(config)# ntp trusted-key 42 Switch(config)# end Switch#

Page 152 of the Cisco Systems 4500 user manual — Configuring NTP Associations
Page 152 · click to enlarge
Page 152

Chapter 4 Administering the Switch Managing the System Time and Date

Configuring NTP Associations

An NTP association can be a peer association (this switch can either synchronize to the other device or allow the other device to synchronize to it), or it can be a server association (meaning that only this switch synchronizes to the other device, and not the other way around).

To form an NTP association with another device, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 ntp peer ip-address [version number] [key keyid] [source interface] [prefer] or ntp server ip-address [version number] [key keyid] [source interface] [prefer]

Configures the switch system clock to synchronize a peer or to be synchronized by a peer (peer association).

Configures the switch system clock to be synchronized by a time server (server association).

No peer or server associations are defined by default.

  • For ip-address in a peer association, specify either the IP address of the peer providing, or being provided, the clock synchronization. For a server association, specify the IP address of the time server providing the clock synchronization.
  • (Optional) For number , specify the NTP version number. The range is 1 to 3. By default, Version 3 is selected.
  • (Optional) For keyid , enter the authentication key defined by entering the ntp authentication-key global configuration command.
  • (Optional) For interface , specify the interface from which to pick the IP source address. By default, the source IP address is taken from the outgoing interface.
  • (Optional) Enter the prefer keyword to make this peer or server the preferred one that provides synchronization. This keyword reduces switching back and forth between peers and servers.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

You need to configure only one end of an association; the other device can automatically establish the association. If you are using the default NTP version (Version 3) and NTP synchronization does not occur, try using NTP Version 2. Many NTP servers on the Internet run Version 2.

To remove a peer or server association, use the no ntp peer ip-address or the no ntp server ip-address global configuration command.

This example shows how to configure the switch to synchronize its system clock with the clock of the peer at IP address 172.16.22.44 using NTP Version 2:

Switch# configure terminal Switch(config)# ntp server 172.16.22.44 version 2 Switch(config)# end Switch#

or

Page 153 of the Cisco Systems 4500 user manual — Configuring NTP Broadcast Service
Page 153 · click to enlarge
Page 153

Chapter 4 Administering the Switch

Managing the System Time and Date

Configuring NTP Broadcast Service

The communications between devices running NTP (known as associations) are usually statically configured; each device is given the IP addresses of all devices with which it should form associations. Accurate timekeeping is possible by exchanging NTP messages between each pair of devices with an association. However, in a LAN environment, NTP can be configured to use IP broadcast messages instead. This alternative reduces configuration complexity because each device can be configured to send or receive broadcast messages. However, the information flow is one-way only.

The switch can send or receive NTP broadcast packets on an interface-by-interface basis if there is an NTP broadcast server, such as a router, broadcasting time information on the network. The switch can send NTP broadcast packets to a peer so that the peer can synchronize to it. The switch can also receive NTP broadcast packets to synchronize its own clock. This section provides procedures for both sending and receiving NTP broadcast packets.

To configure the switch to send NTP broadcast packets to peers so that they can synchronize their clock to the switch, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 interface interface-id Specifies the interface to send NTP broadcast packets, and enter interface configuration mode.

Step 3 ntp broadcast [version number] [key keyid] [destination-address]

Enables the interface to send NTP broadcast packets to a peer.

By default, this feature is disabled on all interfaces.

  • (Optional) For number , specify the NTP version number. The range is 1 to 3. If you do not specify a version, Version 3 is used.
  • (Optional) For keyid , specify the authentication key to use when sending packets to the peer.
  • (Optional) For destination-address , specify the IP address of the peer that is synchronizing its clock to this switch.

Step 4 end Returns to privileged EXEC mode.

Step 5 show running-config Verifies your entries.

Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.

To disable the interface from sending NTP broadcast packets, use the no ntp broadcast interface configuration command.

This example shows how to configure a port to send NTP Version 2 packets:

Switch# configure terminal Switch(config)# interface gigabitethernet0/1 Switch(config-if)# ntp broadcast version 2 Switch(config-if)# end Switch#

Page 154 of the Cisco Systems 4500 user manual — Configuring NTP Access Restrictions
Page 154 · click to enlarge
Page 154

Chapter 4 Administering the Switch Managing the System Time and Date

To configure the switch to receive NTP broadcast packets from connected peers, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 interface interface-id Specifies the interface to receive NTP broadcast packets, and enter interface configuration mode.

Step 3 ntp broadcast client Enables the interface to receive NTP broadcast packets.

By default, no interfaces receive NTP broadcast packets.

Step 4 exit Returns to global configuration mode.

Step 5 ntp broadcastdelay microseconds (Optional) Changes the estimated round-trip delay between the switch and the NTP broadcast server.

The default is 3000 microseconds; the range is 1 to 999999.

Step 6 end Returns to privileged EXEC mode.

Step 7 show running-config Verifies your entries.

Step 8 copy running-config startup-config (Optional) Saves your entries in the configuration file.

To disable an interface from receiving NTP broadcast packets, use the no ntp broadcast client interface configuration command. To change the estimated round-trip delay to the default, use the no ntp broadcastdelay global configuration command.

This example shows how to configure a port to receive NTP broadcast packets:

Switch# configure terminal Switch(config)# interface gigabitethernet0/1 Switch(config-if)# ntp broadcast client Switch(config-if)# end Switch#

Configuring NTP Access Restrictions

You can control NTP access on two levels as described in these sections:

  • Creating an Access Group and Assigning a Basic IP Access List, page 4-9
  • Disabling NTP Services on a Specific Interface, page 4-10
Page 155 of the Cisco Systems 4500 user manual — Creating an Access Group and Assigning a Basic IP Access List
Page 155 · click to enlarge
Page 155

Chapter 4 Administering the Switch

Managing the System Time and Date

Creating an Access Group and Assigning a Basic IP Access List

To control access to NTP services by using access lists, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 ntp access-group {query-only | serve-only | serve | peer} access-list-number

Creates an access group, and apply a basic IP access list.

The keywords have these meanings:

  • query-only —Allows only NTP control queries.
  • serve-only —Allows only time requests.
  • serve —Allows time requests and NTP control queries, but does not allow the switch to synchronize to the remote device.
  • peer —Allows time requests and NTP control queries and allows the switch to synchronize to the remote device.

For access-list-number, enter a standard IP access list number from 1 to 99.

Step 3 access-list access-list-number permit source [source-wildcard]

Creates the access list.

  • For access-list-number , enter the number specified in Step 2.
  • Enter the permit keyword to permit access if the conditions are matched.
  • For source , enter the IP address of the device that is permitted access to the switch.
  • (Optional) For source-wildcard , enter the wildcard bits to be applied to the source.

Step 4 end Returns to privileged EXEC mode.

Step 5 show running-config Verifies your entries.

Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.

The access group keywords are scanned in this order, from least restrictive to most restrictive:

1. peer —Allows time requests and NTP control queries and allows the switch to synchronize itself to a device whose address passes the access list criteria.
2. serve —Allows time requests and NTP control queries, but does not allow the switch to synchronize itself to a device whose address passes the access list criteria.
3. serve-only —Allows only time requests from a device whose address passes the access list criteria.
4. query-only —Allows only NTP control queries from a device whose address passes the access list criteria.

If the source IP address matches the access lists for more than one access type, the first type is granted. If no access groups are specified, all access types are granted to all devices. If any access groups are specified, only the specified access types are granted.

Page 156 of the Cisco Systems 4500 user manual — Configuring the Source IP Address for NTP Packets
Page 156 · click to enlarge
Page 156

Chapter 4 Administering the Switch Managing the System Time and Date

To remove access control to the switch NTP services, use the no ntp access-group {query-only | serve-only | serve | peer} global configuration command.

This example shows how to configure the switch to allow itself to synchronize to a peer from access list 99. However, the switch restricts access to allow only time requests from access list 42:

Switch# configure terminal Switch(config)# ntp access-group peer 99 Switch(config)# ntp access-group serve-only 42 Switch(config)# access-list 99 permit 172.20.130.5 Switch(config)# access list 42 permit 172.20.130.6 Switch(config)# end Switch#

Disabling NTP Services on a Specific Interface

NTP services are enabled on all interfaces by default.

To disable NTP packets from being received on an interface, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 interface interface-id Enters interface configuration mode, and specify the interface to disable.

Step 3 ntp disable Disables NTP packets from being received on the interface.

By default, all interfaces receive NTP packets.

To reenable receipt of NTP packets on an interface, use the no ntp disable interface configuration command.

Step 4 end Returns to privileged EXEC mode.

Step 5 show running-config Verifies your entries.

Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Configuring the Source IP Address for NTP Packets

When the switch sends an NTP packet, the source IP address is normally set to the address of the interface through which the NTP packet is sent. To use a particular source IP address for all NTP packets, use the ntp source global configuration command. The address is taken from the specified interface. This command is useful if the address on an interface cannot be used as the destination for reply packets.

To configure a specific interface from which the IP source address is to be taken, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 ntp source type number Specifies the interface type and number from which the IP source address is taken.

By default, the source address is set by the outgoing interface.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 157 of the Cisco Systems 4500 user manual — Setting the System Clock
Page 157 · click to enlarge
Page 157

Chapter 4 Administering the Switch

Managing the System Time and Date

The specified interface is used for the source address for all packets sent to all destinations. If a source address is to be used for a specific association, use the source keyword in the ntp peer or ntp server global configuration command as described in the “Configuring NTP Associations” section on page 4-6.

Displaying the NTP Configuration

Use the following privileged EXEC commands to display NTP information:

  • show ntp associations [ detail ]
  • show ntp status

For detailed information about the fields in these displays, see the Cisco IOS Configuration Fundamentals Command Reference, Release 12.3.

Configuring Time and Date Manually

If no other source of time is available, you can manually configure the time and date after the system is restarted. The time remains accurate until the next system restart. We recommend that you use manual configuration only as a last resort. If you have an outside source to which the switch can synchronize, you do not need to manually set the system clock.

These sections contain this configuration information:

  • Setting the System Clock, page 4-11
  • Displaying the Time and Date Configuration, page 4-12
  • Configuring the Time Zone, page 4-12
  • Configuring Summer Time (Daylight Saving Time), page 4-13

Setting the System Clock

If you have an outside source on the network that provides time services, such as an NTP server, you do not need to manually set the system clock.

To set the system clock, perform this task:

Step 1 clock set hh:mm:ss day month year or clock set hh:mm:ss month day year

Manually sets the system clock using one of these formats.

  • For hh : mm : ss , specify the time in hours (24-hour format), minutes, and seconds. The time specified is relative to the configured time zone.
  • For day , specify the day by date in the month.
  • For month , specify the month by name.
  • For year , specify the year (no abbreviation).

This example shows how to manually set the system clock to 1:32 p.m. on July 23, 2001:

Switch# clock set 13:32:00 23 July 2001

Page 158 of the Cisco Systems 4500 user manual — Configuring the Time Zone
Page 158 · click to enlarge
Page 158

Chapter 4 Administering the Switch Managing the System Time and Date

Displaying the Time and Date Configuration

To display the time and date configuration, use the show clock [detail] privileged EXEC command.

The system clock keeps an authoritative flag that shows whether the time is authoritative (believed to be accurate). If the system clock was set by a timing source such as NTP, the flag is set. If the time is not authoritative, it is used only for display purposes. Until the clock is authoritative and the authoritative flag is set, the flag prevents peers from synchronizing to the clock when the peers’ time is invalid.

The symbol that precedes the show clock display has this meaning:

  • *—Time is not authoritative.
  • (blank)—Time is authoritative.
  • .—Time is authoritative, but NTP is not synchronized.

Configuring the Time Zone

To manually configure the time zone, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 clock timezone zone hours-offset [minutes-offset]

Sets the time zone.

To set the time to UTC, use the no clock timezone global configuration command.

The switch keeps internal time in universal time coordinated (UTC), so this command is used only for display purposes and when the time is manually set.

  • For zone , enter the name of the time zone to be displayed when standard time is in effect. The default is UTC.
  • For hours-offset , enter the hours offset from UTC.
  • (Optional) For minutes-offset , enter the minutes offset from UTC.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

The minutes-offset variable in the clock timezone global configuration command is available for those cases where a local time zone is a percentage of an hour different from UTC. For example, the time zone for some sections of Atlantic Canada (AST) is UTC-3.5, where the 3 means 3 hours and .5 means 50 percent. The necessary command is clock timezone AST -3 30.

Page 159 of the Cisco Systems 4500 user manual — Configuring Summer Time (Daylight Saving Time)
Page 159 · click to enlarge
Page 159

Chapter 4 Administering the Switch

Managing the System Time and Date

Configuring Summer Time (Daylight Saving Time)

To configure summer time (daylight saving time) in areas where it starts and ends on a particular day of the week each year, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 clock summer-time zone recurring [week day month hh:mm week day month hh:mm [offset]]

Configures summer time to start and end on the specified days every year.

Summer time is disabled by default. If you specify clock summer-time zone recurring without parameters, the summer time rules default to the United States rules.

  • For zone , specify the name of the time zone (for example, PDT) to be displayed when summer time is in effect.
  • (Optional) For week , specify the week of the month (1 to 5 or last ).
  • (Optional) For day , specify the day of the week (Sunday, Monday...).
  • (Optional) For month , specify the month (January, February...).
  • (Optional) For hh : mm , specify the time (24-hour format) in hours and minutes.
  • (Optional) For offset , specify the number of minutes to add during summer time. The default is 60.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

The first part of the clock summer-time global configuration command specifies when summer time begins, and the second part specifies when it ends. All times are relative to the local time zone. The start time is relative to standard time. The end time is relative to summer time. If the starting month is after the ending month, the system assumes that you are in the southern hemisphere.

This example shows how to specify that summer time starts on the first Sunday in April at 02:00 and ends on the last Sunday in October at 02:00:

Switch# configure terminal Switch(config)# clock summer-time PDT recurring 1 Sunday April 2:00 last Sunday October 2:00 Switch(config)# end Switch#

Page 160 of the Cisco Systems 4500 user manual — Configuring a System Name and Prompt
Page 160 · click to enlarge
Page 160

Chapter 4 Administering the Switch Configuring a System Name and Prompt

If summer time in your area does not follow a recurring pattern (configure the exact date and time of the next summer time events), perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 clock summer-time zone date [month date year hh:mm month date year hh:mm [offset]] or clock summer-time zone date [date month year hh:mm date month year hh:mm [offset]]

Configures summer time to start on the first date and end on the second date.

To disable summer time, use the no clock summer-time global configuration command.

Summer time is disabled by default.

  • For zone , specify the name of the time zone (for example, PDT) to be displayed when summer time is in effect.
  • (Optional) For week , specify the week of the month (1 to 5 or last ).
  • (Optional) For day , specify the day of the week (Sunday, Monday...).
  • (Optional) For month , specify the month (January, February...).
  • (Optional) For hh : mm , specify the time (24-hour format) in hours and minutes.
  • (Optional) For offset , specify the number of minutes to add during summer time. The default is 60.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

The first part of the clock summer-time global configuration command specifies when summer time begins, and the second part specifies when it ends. All times are relative to the local time zone. The start time is relative to standard time. The end time is relative to summer time. If the starting month is after the ending month, the system assumes that you are in the southern hemisphere.

To disable summer time, use the no clock summer-time global configuration command.

This example shows how to set summer time to start on October 12, 2000, at 02:00, and end on April 26, 2001, at 02:00:

Switch# configure terminal Switch(config)# clock summer-time pdt date 12 October 2000 2:00 26 April 2001 2:00 Switch#

Configuring a System Name and Prompt

You configure the system name on the switch to identify it. By default, the system name and prompt are Switch.

If you have not configured a system prompt, the first 20 characters of the system name are used as the system prompt. A greater-than symbol [>] is appended. The prompt is updated whenever the system name changes.

Page 161 of the Cisco Systems 4500 user manual — Understanding DNS
Page 161 · click to enlarge
Page 161

Chapter 4 Administering the Switch

Configuring a System Name and Prompt

For complete syntax and usage information for the commands used in this section, see the Cisco IOS Configuration Fundamentals Command Reference, Release 12.3 and the Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols, Release 12.3.

These sections contain this configuration information:

  • Configuring a System Name, page 4-15
  • Understanding DNS, page 4-15

Configuring a System Name

To manually configure a system name, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 hostname name Manually configures a system name.

The default setting is switch.

The name must follow the rules for ARPANET hostnames. They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphens. Names can be up to 63 characters.

To return to the default hostname, use the no hostname global configuration command.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config

(Optional) Saves your entries in the configuration file.

When you set the system name, it is also used as the system prompt.

Understanding DNS

The DNS protocol controls the Domain Name System (DNS), a distributed database with which you can map hostnames to IP addresses. When you configure DNS on your switch, you can substitute the hostname for the IP address with all IP commands, such as ping, telnet, connect, and related Telnet support operations.

IP defines a hierarchical naming scheme that allows a device to be identified by its location or domain. Domain names are pieced together with periods (.) as the delimiting characters. For example, Cisco Systems is a commercial organization that IP identifies by a com domain name, so its domain name is cisco.com. A specific device in this domain, for example, the File Transfer Protocol (FTP) system is identified as ftp.cisco.com.

To keep track of domain names, IP has defined the concept of a domain name server, which holds a cache (or database) of names mapped to IP addresses. To map domain names to IP addresses, you must first identify the hostnames, specify the name server that is present on your network, and enable the DNS.

Page 162 of the Cisco Systems 4500 user manual — Setting Up DNS
Page 162 · click to enlarge
Page 162

Chapter 4 Administering the Switch Configuring a System Name and Prompt

These sections contain this configuration information:

  • Default DNS Configuration, page 4-16
  • Setting Up DNS, page 4-16
  • Displaying the DNS Configuration, page 4-17

Default DNS Configuration

Table 4-2 shows the default DNS configuration.

Table 4-2 Default DNS Configuration

Feature Default Setting

DNS enable state Enabled.

DNS default domain name None configured.

DNS servers No name server addresses are configured.

Setting Up DNS

To set up your switch to use the DNS, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 ip domain-name name Defines a default domain name that the software uses to complete unqualified hostnames (names without a dotted-decimal domain name).

To remove a domain name, use the no ip domain-name name global configuration command.

Do not include the initial period that separates an unqualified name from the domain name.

At boot time, no domain name is configured; however, if the switch configuration comes from a BOOTP or Dynamic Host Configuration Protocol (DHCP) server, then the default domain name might be set by the BOOTP or DHCP server (if the servers were configured with this information).

Step 3 ip name-server server-address1 [server-address2 ... server-address6]

Specifies the address of one or more name servers to use for name and address resolution.

To remove a name server address, use the no ip name-server server-address global configuration command.

You can specify up to six name servers. Separate each server address with a space. The first server specified is the primary server. The switch sends DNS queries to the primary server first. If that query fails, the backup servers are queried.

Page 163 of the Cisco Systems 4500 user manual — Creating a Banner
Page 163 · click to enlarge
Page 163

Chapter 4 Administering the Switch

Step 4 ip domain-lookup (Optional) Enables DNS-based hostname-to-address translation on your switch. This feature is enabled by default.

To disable DNS on the switch, use the no ip domain-lookup global configuration command.

If your network devices require connectivity with devices in networks for which you do not control name assignment, you can dynamically assign device names that uniquely identify your devices by using the global Internet naming scheme (DNS).

Step 5 end Returns to privileged EXEC mode.

Step 6 show running-config Verifies your entries.

Step 7 copy running-config startup-config

(Optional) Saves your entries in the configuration file.

If you use the switch IP address as its hostname, the IP address is used and no DNS query occurs. If you configure a hostname that contains no periods (.), a period followed by the default domain name is appended to the hostname before the DNS query is made to map the name to an IP address. The default domain name is the value set by the ip domain-name global configuration command. If there is a period (.) in the hostname, the Cisco IOS software looks up the IP address without appending any default domain name to the hostname.

Displaying the DNS Configuration

To display the DNS configuration information, use the show running-config privileged EXEC command.

Creating a Banner

You can configure a message-of-the-day (MOTD) and a login banner. The MOTD banner displays on all connected terminals at login and is useful for sending messages that affect all network users (such as impending system shutdowns).

The login banner also displays on all connected terminals. It appears after the MOTD banner and before the login prompts.

The contain this configuration information:

  • Default Banner Configuration, page 4-18
  • Configuring a Message-of-the-Day Login Banner, page 4-18
  • Configuring a Login Banner, page 4-19

Creating a Banner

Page 164 of the Cisco Systems 4500 user manual — Configuring a Message-of-the-Day Login Banner
Page 164 · click to enlarge
Page 164

Chapter 4 Administering the Switch Creating a Banner

Default Banner Configuration

The MOTD and login banners are not configured.

Configuring a Message-of-the-Day Login Banner

You can create a single or multiline message banner that appears on the screen when someone logs in to the switch.

To configure a MOTD login banner, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 banner motd c message c Specifies the message of the day.

To delete the MOTD banner, use the no banner motd global configuration command.

For c, enter the delimiting character of your choice, for example, a pound sign (#), and press the Return key. The delimiting character signifies the beginning and end of the banner text. Characters after the ending delimiter are discarded.

For message, enter a banner message up to 255 characters. You cannot use the delimiting character in the message.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to configure a MOTD banner for the switch by using the pound sign (#) symbol as the beginning and ending delimiter:

Switch(config)# banner motd # it is a secure site. Only authorized users are allowed. For access, contact technical support. # Switch(config)#

This example shows the banner that appears from the previous configuration:

Unix> telnet 172.2.5.4 Trying 172.2.5.4... Connected to 172.2.5.4. Escape character is '^]'.

it is a secure site. Only authorized users are allowed. For access, contact technical support.

Password:

User Access Verification

Page 165 of the Cisco Systems 4500 user manual — Managing the MAC Address Table
Page 165 · click to enlarge
Page 165

Chapter 4 Administering the Switch

Managing the MAC Address Table

Configuring a Login Banner

You can configure a login banner to be displayed on all connected terminals. This banner appears after the MOTD banner and before the login prompt.

To configure a login banner, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 banner login c message c Specifies the login message.

To delete the login banner, use the no banner login global configuration command.

For c, enter the delimiting character of your choice, for example, a pound sign (#), and press the Return key. The delimiting character signifies the beginning and end of the banner text. Characters after the ending delimiter are discarded.

For message, enter a login message up to 255 characters. You cannot use the delimiting character in the message.

Step 3 end Returns to privileged EXEC mode.

Step 4 show running-config Verifies your entries.

Step 5 copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to configure a login banner for the switch by using the dollar sign ($) symbol as the beginning and ending delimiter:

Switch# configuration terminal Switch(config)# banner login $ Access for authorized users only. Please enter your username and password. $ Switch(config)# end Switch#

Managing the MAC Address Table

The MAC address table contains address information that the switch uses to forward traffic between ports. All MAC addresses in the address table are associated with one or more ports. The address table includes these types of addresses:

  • Dynamic address—A source MAC address that the switch learns and then ages when it is not in use.
  • Static address—A manually entered unicast address that does not age and that is not lost when the switch resets.

The address table lists the destination MAC address, the associated VLAN ID, and port number associated with the address and the type (static or dynamic).

Page 166 of the Cisco Systems 4500 user manual — MAC Addresses and VLANs
Page 166 · click to enlarge
Page 166

Chapter 4 Administering the Switch Managing the MAC Address Table

These sections contain this configuration information:

  • Building the Address Table, page 4-20
  • MAC Addresses and VLANs, page 4-20
  • Default MAC Address Table Configuration, page 4-21
  • Changing the Address Aging Time, page 4-21
  • Removing Dynamic Address Entries, page 4-22
  • Configuring MAC Change Notification Traps, page 4-22
  • Configuring MAC Move Notification Traps, page 4-24
  • Configuring MAC Threshold Notification Traps, page 4-26
  • Adding and Removing Static Address Entries, page 4-27
  • Configuring Unicast MAC Address Filtering, page 4-28
  • Disabling MAC Address Learning on a VLAN, page 4-30
  • Displaying Address Table Entries, page 4-35

Building the Address Table

With multiple MAC addresses supported on all ports, you can connect any port on the switch to individual workstations, repeaters, switches, routers, or other network devices. The switch provides dynamic addressing by learning the source address of packets it receives on each port and adding the address and its associated port number to the address table. As stations are added or removed from the network, the switch updates the address table, adding new dynamic addresses and aging out those that are not in use.

The aging interval is globally configured. However, the switch maintains an address table for each VLAN, and STP can accelerate the aging interval on a per-VLAN basis.

The switch sends packets between any combination of ports, based on the destination address of the received packet. Using the MAC address table, the switch forwards the packet only to the port associated with the destination address. If the destination address is on the port that sent the packet, the packet is filtered and not forwarded. The switch always uses the store-and-forward method: complete packets are stored and checked for errors before transmission.

MAC Addresses and VLANs

All addresses are associated with a VLAN. An address can exist in more than one VLAN and have different destinations in each. Unicast addresses, for example, could be forwarded to port 1 in VLAN 1 and ports 9, 10, and 1 in VLAN 5.

Each VLAN maintains its own logical address table. A known address in one VLAN is unknown in another until it is learned or statically associated with a port in the other VLAN.

Page 167 of the Cisco Systems 4500 user manual — Changing the Address Aging Time
Page 167 · click to enlarge
Page 167

Chapter 4 Administering the Switch

Managing the MAC Address Table

When PVLANs are configured, address learning depends on the type of MAC address:

  • Dynamic MAC addresses learned in one VLAN of a PVLAN are replicated in the associated VLANs. For example, a MAC address learned in a private-VLAN secondary VLAN is replicated in the primary VLAN.
  • Static MAC addresses configured in a primary or secondary VLAN are not replicated in the associated VLANs. When you configure a static MAC address in a PVLAN primary or secondary VLAN, you should also configure the same static MAC address in all associated VLANs.

For more information about PVLANs, see Chapter 39, “Configuring Private VLANs.”

Default MAC Address Table Configuration

Table 4-3 shows the default MAC address table configuration.

Table 4-3 Default MAC Address Table Configuration

Feature Default Setting

Aging time 300 seconds

Dynamic addresses Automatically learned

Static addresses None configured

Changing the Address Aging Time

Dynamic addresses are source MAC addresses that the switch learns and then ages when they are not in use. You can change the aging time setting for all VLANs or for a specified VLAN.

Setting too short an aging time can cause addresses to be prematurely removed from the table. When the switch receives a packet for an unknown destination, it floods the packet to all ports in the same VLAN as the receiving port. This unnecessary flooding can impact performance. Setting too long an aging time can cause the address table to be filled with unused addresses, which prevents new addresses from being learned. Flooding results, which can impact switch performance.

To configure the dynamic address table aging time, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 mac address-table aging-time [0 | 10-1000000] [vlan vlan-id] Sets the length of time that a dynamic entry remains in the MAC address table after the entry is used or updated.

To return to the default value, use the no mac address-table aging-time global configuration command.

The range is 10 to 1000000 seconds. The default is 300. You can also enter 0, which disables aging. Static address entries are never aged or removed from the table.

For vlan-id, valid IDs are 1 to 4094.

Step 3 end Returns to privileged EXEC mode.

Page 168 of the Cisco Systems 4500 user manual — Configuring MAC Change Notification Traps
Page 168 · click to enlarge
Page 168

Chapter 4 Administering the Switch Managing the MAC Address Table

Step 4 show mac address-table aging-time Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Removing Dynamic Address Entries

To remove all dynamic entries, use the clear mac address-table dynamic command in EXEC mode. You can also remove a specific MAC address (clear mac address-table dynamic address mac-address), remove all addresses on the specified physical port or port channel (clear mac address-table dynamic interface interface-id), or remove all addresses on a specified VLAN (clear mac address-table dynamic vlan vlan-id).

To verify that dynamic entries have been removed, use the show mac address-table dynamic privileged EXEC command.

Configuring MAC Change Notification Traps

MAC change notification allows you to track users on a network by storing the MAC change activity on the switch. Whenever the switch learns or removes a MAC address, an SNMP notification can be generated and sent to the network management system. If you have many users entering and exiting the network, you can set a trap interval time to bundle the notification traps and reduce network traffic. The MAC notification history table stores the MAC address activity for each hardware port for which the trap is enabled. MAC address notifications are generated for dynamic and static MAC addresses; events are not generated for self addresses or multicast addresses.

To send MAC change notification traps to an NMS host, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 snmp-server host host-addr [traps|informs] {version {1|2c|3}} [auth | noauth | priv] community-string [udp-port port] [notification-type]

Specifies the recipient of the trap message.

  • For host-addr , specify the name or address of the NMS.
  • Specify traps (the default) to send SNMP traps to the host. Specify informs to send SNMP informs to the host.
  • Specify the SNMP version to support. Version 1, the default, is not available with informs.
  • For community-string, specify the string to send with the notification operation. Though you can set this string by using the snmp-server host command, we recommend that you define this string by using the snmp-server community command before using the snmp-server host command.
  • For notification-type , use the mac-notification keyword.
Page 169 of the Cisco Systems 4500 user manual — Administering the Switch
Page 169 · click to enlarge
Page 169

Chapter 4 Administering the Switch

Managing the MAC Address Table

Step 3 snmp-server enable traps mac-notification change Enables the switch to send MAC change traps to the NMS.

To disable the switch from sending MAC change notification traps, use the no snmp-server enable traps mac-notification change global configuration command.

Step 4 mac address-table notification change Enables the MAC address change notification feature.

Step 5 mac address-table notification change [interval value] | [history-size value]

Enters the trap interval time and the history table size.

  • (Optional) For interval value, specify the notification trap interval in seconds between each set of traps that are generated to the NMS. The range is 0 to 2147483647 seconds; the default is 1 second.
  • (Optional) For history-size value , specify the maximum number of entries in the MAC notification history table. The range is 0 to 500; the default is 1.

To disable the MAC change notification feature, use the no mac address-table notification change global configuration command.

Step 6 interface interface-id Enters interface configuration mode, and specifies the interface on which to enable the SNMP MAC change notification trap.

Step 7 snmp trap mac-notification change {added | removed} Enables the MAC change notification trap.

  • Enable the MAC change notification trap whenever a MAC address is added on this interface.
  • Enable the MAC change notification trap whenever a MAC address is removed from this interface.

To disable the MAC change notification traps on a specific interface, use the no snmp trap mac-notification change {added | removed} interface configuration command.

Step 8 end Returns to privileged EXEC mode.

Step 9 show mac address-table notification change interface show running-config

Verifies your entries.

Step 10 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 170 of the Cisco Systems 4500 user manual — Configuring MAC Move Notification Traps
Page 170 · click to enlarge
Page 170

Chapter 4 Administering the Switch Managing the MAC Address Table

This example shows how to specify 172.69.59.93 as the network management system, enable the switch to send MAC change notification traps to the network management system, enable the MAC change notification feature, set the interval time to 60 seconds, set the history-size to 100 entries, and enable traps whenever a MAC address is added on the specified port:

Switch# configure terminal Switch(config)# snmp-server host 172.69.59.93 private mac-notification Switch(config)# snmp-server enable traps mac-notification change Switch(config)# mac address-table notification change Switch(config)# mac address-table notification change interval 60 Switch(config)# mac address-table notification change history-size 100 Switch(config)# interface fastethernet0/2 Switch(config-if)# snmp trap mac-notification change added Switch(config-if)# end Switch# show mac address-table notification change interface MAC Notification Feature is Enabled on the switch MAC Notification Flags For All Ethernet Interfaces : Interface MAC Added Trap MAC Removed Trap GigabitEthernet1/1 Enabled Enabled GigabitEthernet1/2 Enabled Enabled GigabitEthernet1/3 Enabled Enabled GigabitEthernet1/4 Enabled Enabled GigabitEthernet1/5 Enabled Enabled GigabitEthernet1/6 Enabled Enabled GigabitEthernet1/7 Enabled Enabled GigabitEthernet1/8 Enabled Enabled GigabitEthernet1/9 Enabled Enabled GigabitEthernet1/10 Enabled Enabled GigabitEthernet1/11 Enabled Enabled GigabitEthernet1/12 Enabled Enabled

Configuring MAC Move Notification Traps

When you configure MAC move notification, an SNMP notification is generated and sent to the network management system whenever a MAC address moves from one port to another within the same VLAN.

Switch#

Page 171 of the Cisco Systems 4500 user manual — Administering the Switch
Page 171 · click to enlarge
Page 171

Chapter 4 Administering the Switch

Managing the MAC Address Table

To configure MAC move notification, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 snmp-server host host-addr [traps|informs] {version {1|2c|3}} [auth | noauth | priv] community-string [udp-port port] [notification-type]

Specifies the recipient of the trap message.

  • For host-addr , specify the name or address of the NMS.
  • Specify traps (the default) to send SNMP traps to the host. Specify informs to send SNMP informs to the host.
  • Specify the SNMP version to support. Version 1, the default, is not available with informs.
  • For community-string, specify the string to send with the notification operation. Though you can set this string by using the snmp-server host command, we recommend that you define this string by using the snmp-server community command before using the snmp-server host command.
  • For notification-type , use the mac-notification keyword.

Step 3 snmp-server enable traps mac-notification move Enables the switch to send MAC move notification traps to the NMS.

To disable the switch from sending MAC notification traps, use the no snmp-server enable traps mac-notification move global configuration command.

Step 4 mac address-table notification mac-move Enables the MAC-move notification feature.

To disable this feature, use the no mac-address-table notification mac-move global configuration command.

Step 5 end Returns to privileged EXEC mode.

Step 6 show mac address-table notification mac-move show running-config

Displays the MAC-move notification status.

Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to specify 172.69.59.93 as the network management system, enable the switch to send MAC move notification traps to the NMS, enable the MAC move notification feature, and enable traps whenever a MAC address moves from one port to another:

Switch# configure terminal Switch(config)# snmp-server host 171.69.59.93 private mac-notification Switch(config)# snmp-server enable traps mac-notification move Switch(config)# mac address-table notification mac-move Switch(config)# end Switch# show mac address-table notification mac-move MAC Move Notification: Enabled

Page 172 of the Cisco Systems 4500 user manual — Configuring MAC Threshold Notification Traps
Page 172 · click to enlarge
Page 172

Chapter 4 Administering the Switch Managing the MAC Address Table

Configuring MAC Threshold Notification Traps

When you configure MAC threshold notification, an SNMP notification is generated and sent to the network management system when a MAC address table (MAT) threshold limit is reached or exceeded.

To configure MAC address threshold notification, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 snmp-server host host-addr [traps|informs] {version {1|2c|3}} [auth | noauth | priv] community-string [udp-port port] [notification-type]

Specifies the recipient of the trap message.

  • For host-addr , specify the name or address of the NMS.
  • Specify traps (the default) to send SNMP traps to the host. Specify informs to send SNMP informs to the host.
  • Specify the SNMP version to support. Version 1, the default, is not available with informs.
  • For community-string, specify the string to send with the notification operation. Though you can set this string by using the snmp-server host command, we recommend that you define this string by using the snmp-server community command before using the snmp-server host command.
  • For notification-type , use the mac-notification keyword.

Step 3 snmp-server enable traps mac-notification threshold Enables the switch to send MAC threshold notification traps to the NMS.

To disable the switch from sending MAC threshold notification traps, use the no snmp-server enable traps mac-notification threshold global configuration command.

Step 4 mac address-table notification threshold Enables the MAC address threshold notification feature.

To disable this feature, use the no address-table notification threshold global configuration command.

Step 5 mac address-table notification threshold [limit percentage] | [interval time]

Enters the threshold value for the MAT usage monitoring.

  • (Optional) For limit percentage, specify the percentage of the MAT utilization; valid values are from 1 to 100 percent. Default is 50 percent.
  • (Optional) For interval time, specify the time between notifications; valid values are greater than or equal to 120 seconds. Default is 120 seconds.
Page 173 of the Cisco Systems 4500 user manual — Adding and Removing Static Address Entries
Page 173 · click to enlarge
Page 173

Chapter 4 Administering the Switch

Managing the MAC Address Table

Step 6 end Returns to privileged EXEC mode.

Step 7 show mac address-table notification threshold show running-config

Displays the MAC utilization threshold notification status.

Step 8 copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to specify 172.69.59.93 as the network management system, enable the MAC threshold notification feature, enable the switch to send MAC threshold notification traps to the NMS, set the interval to 123 seconds, and set the limit to 78 percent:

Switch# configure terminal Switch(config)# snmp-server host 171.69.59.93 private mac-notification Switch(config)# snmp-server enable traps mac-notification threshold Switch(config)# mac address-table notification threshold Switch(config)# mac address-table notification threshold interval 123 Switch(config)# mac address-table notification threshold limit 78 Switch(config)# end Switch# show mac-address-table notification threshold Status limit Interval + + enabled 78 123 Switch#

Adding and Removing Static Address Entries

A static address has these characteristics:

  • It is manually entered in the address table and must be manually removed.
  • It can be a unicast or multicast address.
  • It does not age and is retained when the switch restarts.

You can add and remove static addresses and define the forwarding behavior for them. The forwarding behavior defines how a port that receives a packet forwards it to another port for transmission. Because all ports are associated with at least one VLAN, the switch acquires the VLAN ID for the address from the ports that you specify. You can specify a different list of destination ports for each source port.

A packet with a static address that arrives on a VLAN where it has not been statically entered is flooded to all ports and not learned.

You add a static address to the address table by specifying the destination MAC unicast address and the VLAN from which it is received. Packets received with this destination address are forwarded to the interface specified with the interface-id option.

When you configure a static MAC address in a private-VLAN primary or secondary VLAN, you should also configure the same static MAC address in all associated VLANs. Static MAC addresses configured in a private-VLAN primary or secondary VLAN are not replicated in the associated VLAN. For more information about PVLANs, see Chapter 39, “Configuring Private VLANs.”

Page 174 of the Cisco Systems 4500 user manual — Configuring Unicast MAC Address Filtering
Page 174 · click to enlarge
Page 174

Chapter 4 Administering the Switch Managing the MAC Address Table

To add a static address, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 mac address-table static mac-addr vlan vlan-id interface interface-id

Adds a static address to the MAC address table.

  • For mac-addr , specify the destination MAC unicast address to add to the address table. Packets with this destination address received in the specified VLAN are forwarded to the specified interface.
  • For vlan-id , specify the VLAN for which the packet with the specified MAC address is received. Valid VLAN IDs are 1 to 4094.
  • For interface-id , specify the interface to which the received packet is forwarded. Valid interfaces include physical ports or port channels.

You can specify static multicast addresses for multiple interface IDs. However, you cannot assign static unicast MAC address to multiple interfaces with the same MAC address and VLAN ID.

To remove static entries from the address table, use the no mac address-table static mac-addr vlan vlan-id [interface interface-id] global configuration command.

Step 3 end Returns to privileged EXEC mode.

Step 4 show mac address-table static Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to add the static address c2f3.220a.12f4 to the MAC address table. When a packet is received in VLAN 4 with this MAC address as its destination address, the packet is forwarded to the specified port:

Switch# configure terminal Switch(config)# mac address-table static c2f3.220a.12f4 vlan 4 interface gigabitethernet0/1 Switch(config)# end Switch#

Configuring Unicast MAC Address Filtering

When unicast MAC address filtering is enabled, the switch drops packets with specific source or destination MAC addresses. This feature is disabled by default and only supports unicast static addresses.

When using unicast address filtering, consider these guidelines:

  • Multicast MAC addresses, broadcast MAC addresses, and router MAC addresses are not supported. If you specify one of these addresses when entering the mac address-table static vlan drop global configuration command, one of these messages appears:

% Only unicast addresses can be configured to be dropped

% CPU destined address cannot be configured as drop address

  • Packets that are forwarded to the CPU are also not supported.
Page 175 of the Cisco Systems 4500 user manual — Administering the Switch
Page 175 · click to enlarge
Page 175

Chapter 4 Administering the Switch

Managing the MAC Address Table

  • If you add a unicast MAC address as a static address and configure unicast MAC address filtering, the switch either adds the MAC address as a static address or drops packets with that MAC address, depending on which command was entered last. The second command that you entered overrides the first command.

For example, if you enter the mac address-table static vlan interface global configuration command followed by the mac address-table static vlan drop command, the switch drops packets with the specified MAC address as a source or destination.

If you enter the mac address-table static vlan drop global configuration command followed by the mac address-table static vlan interface command, the switch adds the MAC address as a static address.

You enable unicast MAC address filtering and configure the switch to drop packets with a specific address by specifying the source or destination unicast MAC address and the VLAN from which it is received.

To configure the switch to drop a source or destination unicast static address, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 mac address-table static mac-addr vlan vlan-id drop

Enables unicast MAC address filtering and configure the switch to drop a packet with the specified source or destination unicast static address.

  • For mac-addr , specify a source or destination unicast MAC address. Packets with this MAC address are dropped.
  • For vlan-id , specify the VLAN for which the packet with the specified MAC address is received. Valid VLAN IDs are 1 to 4094.

To disable unicast MAC address filtering, use the no mac address-table static vlan global configuration command.

Step 3 end Returns to privileged EXEC mode.

Step 4 show mac address-table static Verifies your entries.

Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to enable unicast MAC address filtering and to configure the switch to drop packets that have a source or destination address of c2f3.220a.12f4. When a packet is received in VLAN 4 with this MAC address as its source or destination, the packet is dropped:

Switch# configure terminal Switch(config)# mac address-table static c2f3.220a.12f4 vlan 4 drop Switch(config)# end Switch#

Page 176 of the Cisco Systems 4500 user manual — Configuring Disable MAC Address Learning
Page 176 · click to enlarge
Page 176

Chapter 4 Administering the Switch Managing the MAC Address Table

Disabling MAC Address Learning on a VLAN

By default, MAC address learning is enabled on all VLANs on the switch. By controlling which VLANs can learn MAC addresses, you can manage the available MAC address table space. By disabling learning on a VLAN, you can conserve the MAC address table space because all the MAC addresses seen on this VLAN are not learned.

Before disabling MAC address learning, you should understand the network topology and features deployed. Many Layer 2 features use MAC addresses and may not work properly if learning is disabled. Because disabling learning causes flooding of packets, you need to understand the impact of flooding on the network.

These sections contain this information:

  • Deployment Scenarios, page 4-31
  • Configuring Disable MAC Address Learning, page 4-30
  • Usage Guidelines, page 4-31
  • Deployment Scenarios, page 4-31
  • Feature Compatibility, page 4-33
  • Feature Incompatibility, page 4-34

Configuring Disable MAC Address Learning

To disable MAC address learning on a VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no mac address-table learning vlan vlan-id range

Disables MAC address learning on the specified VLAN or VLANs. You can specify a single VLAN ID or a range of VLAN IDs separated by a hyphen or comma. Valid VLAN IDs are 1 to 4094.

You can reenable MAC address learning on a VLAN by entering the mac address-table learning vlan global configuration command.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show mac address-table learning [vlan vlan-id range]

Displays the MAC address learning status of all VLANs or a specified VLAN.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to disable learning on any VLAN or range of VLANs:

Switch# configure terminal Switch(config)# no mac address-table learning vlan 9-16 Switch(config)# end Switch#

Switch# show mac address-table learning Learning disabled on vlans: 9-11,13-16

Switch# show mac address-table learning vlan 10-15 Learning disabled on vlans: 10-11,13-15

Page 177 of the Cisco Systems 4500 user manual — Metro (Point to Point Links)
Page 177 · click to enlarge
Page 177

Chapter 4 Administering the Switch

Managing the MAC Address Table

Usage Guidelines

When disabling MAC address learning on a VLAN, consider these guidelines:

  • If learning is disabled on a VLAN with an SVI interface, it floods every IP packet in the Layer 2 domain. Because this flooding may be undesirable, you should disable MAC address learning on a SVI VLAN carefully.
  • If you provide a VLAN range that includes reserved VLAN (such as 1000-1006), the command is accepted and disable learning is enabled for all VLANs except for 1002-005 (that is, 1000-1001,1006). However, if you specify an invalid range (such as 1-5000), the command fails and disable learning is not enabled on any of the VLANs.
  • Both RSPAN and the MAC learning disable feature share a hardware restriction on Supervisor Engines II, IV, and V. If the combination of VLANs configured with RSPAN and learning disable exceeds four, hardware MAC table resources are consumed to emulate learning disable on the additional VLANs. High CPU occur when these resources are exhausted.
  • With PVLANs, you need to disable learning on the primary VLAN and all secondary VLANs associated with that primary VLANs. Otherwise, you encounter traffic flooding in one direction and unicast flooding in the other direction.
  • To disable MAC address learning on a VLAN, consider the flooding implications.

Deployment Scenarios

This section includes these deployment scanrios:

  • Metro (Point to Point Links), page 4-31
  • Network Load Balancers, page 4-32
  • Layer 2 Firewall or Cache, page 4-33

Metro (Point to Point Links)

In this topology, you have two ports on a VLAN; traffic enters one and must exit the other. On a point-to-point link in metro networks, numerous MAC addresses are on these types of ports by disabling learning on the VLAN to which these two ports belong, many entries in the MAC address table space can be saved. Because there is only one egress port for the traffic, you can flood the packet and avoid having to learn all the MAC addresses seen on this port. This process saves considerable space in the MAC address table.

To obtain source learning, packets are bridged as Layer 2 flood packets. Replicated packets use a distinct dedicated bandwidth. Regardless of the number of ports in a flood set, a flood packet always consumes replication packet bandwidth, which consumes some multicast and broadcast packet-processing bandwidth (Figure 4-2).

Page 178 of the Cisco Systems 4500 user manual — Administering the Switch
Page 178 · click to enlarge
Page 178

Chapter 4 Administering the Switch Managing the MAC Address Table

Cisco Systems 4500 — Administering the Switch diagram (page 178)
Fig. 3 · Administering the Switch

In this topology, you have two devices, one active and one standby. To perform load balancing, both devices must receive all packets. You could place both devices on the same VLAN. If learning can be disabled on this VLAN, the packet is flooded and both devices receive all traffic destined to any MAC address on the VLAN. You also can assign a multicast MAC address to both load balancers to ensure that all packets reach them. (Figure 4-3).

Figure 4-3 Disabling MAC Address Learning: Network Load Balancers

Page 179 of the Cisco Systems 4500 user manual — Feature Compatibility
Page 179 · click to enlarge
Page 179

Chapter 4 Administering the Switch

Managing the MAC Address Table

Layer 2 Firewall or Cache

In this topology, a rewritten Layer 3 packet is routed back to a Layer 2 firewall (or cache) before exiting. When the packet reenters the switch from the firewall, it possesses the switch’s MAC address because the packet was previously routed. If the ingress port is a switch port, the switch learns the router’s MAC address. For a routed port or SVI, however, the switch does not learn the address. Source misses are generated continuously for all arriving data packets and the switch shows a very high CPU utilization.

By disabling learning on the VLAN that the firewall or cache egress is connected to, you will routinely suppress the source miss and do not observe high CPU utilization (Figure 4-4).

Figure 4-4 Disabling MAC Address Learning: Layer 2 Firewall/Cache

Gi 3/1 VLAN 10

Gi 3/2 VLAN 10

Feature Compatibility

The following features are compatible with disabling MAC address learning on a VLAN:

  • EtherChannel—The learning disable feature has no impact on EtherChannel provided that the MAC learning state is either disabled or enabled for a VLAN on EtherChannel ports.
  • Switch Virtual Interface (SVI, Layer 3 on a VLAN)— The learning disable feature has no impact on SVI. Although disabling MAC address learning on a SVI VLAN causes flooding, it does not impact any Layer 3 feature.
  • REP—The learning disable feature has no impact on REP provided that the MAC learning state is either disabled or enabled for an active VLAN on a port where REP is running.
  • Unicast, Multicast, and Broadcast—When you enable learning on a VLAN, learning is disabled on all types of traffic.
  • DAI, ESMP, and IGMP snooping— These features do not interact with the learning disable feature.
  • Control packets— Control packets arrive at the CPU even if learning is disabled.
  • RSPAN— Learning on a VLAN and on an RSPAN are compatible.
  • VLAN translation—To disable learning on a VLAN that is being translated, you must disable learning on the translated VLAN.
Show 4 more labels / short text on this page
Load balancer 1 · Web server 1 · Load balancer 2 · Web server 1
Page 180 of the Cisco Systems 4500 user manual — Partial Feature Incompatibility
Page 180 · click to enlarge
Page 180

Chapter 4 Administering the Switch Managing the MAC Address Table

Feature Incompatibility

The following features are incompatible with disabling MAC address learning and do not work properly when the feature is enabled:

  • 802.1X—The 802.1X class of features does not work when learning is disabled because some of these features require source miss, which is ignored.
  • Port security— Port security VLANs requires learning to be enabled. To secure MAC addresses, packets must first arrive at the CPU. However, if you disable learning on a VLAN, SA suppression ensures that packets do not operate this way.
  • Unicast flood blocking— When unicast flood blocking is enabled on a port, it is removed from the VLAN flood set. If learning is disabled on the same VLAN, the host connected to that port do not receive traffic.
  • DHCP snooping—To send the packet out the correct port once a DHCP request has been resolved, DHCP snooping must learn the MAC address. If you disable learning, the switch do not know on which port to exit the packet; the two features are incompatible.
  • Broadcast storm control— This feature does not interact with the learning disable feature.
  • Flooding of packets in a VLAN domain in which learning is disabled through PVL.

Partial Feature Incompatibility

Although the following features are partially incompatible with disabling MAC address learning, they still retain a large portion of their functionality:

  • FlexLink—FlexLink functions and upstream convergence is not impacted. However, downstream fast convergence uses a MAC table to send dummy multicast packets for each learned MAC address upstream to expedite downstream convergence. This situation does not happen if you enabled learning disable. FlexLink downstream convergence occurs naturally, but it is slower if learning is enabled on that VLAN.
  • PVLAN—To observe correct behavior, you must disable learning on the primary VLAN and all secondary VLANs associated with the primary VLAN.
  • Spanning Tree (STP)—Except for the UplinkFast feature, per-VLAN spanning tree functionality is not impacted. To achieve faster downstream convergence, UplinkFast forwards dummy multicast packets using learned MAC addresses. This action is not possible unless MAC learning is enabled.
Page 181 of the Cisco Systems 4500 user manual — Configuring Embedded CiscoView Support
Page 181 · click to enlarge
Page 181

Chapter 4 Administering the Switch

Managing the ARP Table

Displaying Address Table Entries

You can display the MAC address table by using one or more of the privileged EXEC commands described in Table 4-4.

Table 4-4 Commands for Displaying the MAC Address Table

Command Description

show ip igmp snooping groups Displays the Layer 2 multicast entries for all VLANs or the specified VLAN.

show mac address-table address Displays MAC address table information for the specified MAC address.

show mac address-table aging-time Displays the aging time in all VLANs or the specified VLAN.

show mac address-table count Displays the number of addresses present in all VLANs or the specified VLAN.

show mac address-table dynamic Displays only dynamic MAC address table entries.

show mac address-table interface Displays the MAC address table information for the specified interface.

show mac address-table notification Displays the MAC notification parameters and history table.

show mac address-table static Displays only static MAC address table entries.

show mac address-table vlan Displays the MAC address table information for the specified VLAN.

Managing the ARP Table

To communicate with a device (over Ethernet, for example), the software first must learn the 48-bit MAC address or the local data link address of that device. The process of learning the local data link address from an IP address is called address resolution.

The Address Resolution Protocol (ARP) associates a host IP address with the corresponding media or MAC addresses and the VLAN ID. Using an IP address, ARP finds the associated MAC address. When a MAC address is found, the IP-MAC address association is stored in an ARP cache for rapid retrieval and the IP datagram is encapsulated in a link-layer frame and sent over the network. Encapsulation of IP datagrams and ARP requests and replies on IEEE 802 networks other than Ethernet is specified by the Subnetwork Access Protocol (SNAP). By default, standard Ethernet-style ARP encapsulation (represented by the arpa keyword) is enabled on the IP interface.

ARP entries added manually to the table do not age and must be manually removed.

For CLI procedures, see the Cisco IOS Release 12.3 documentation on Cisco.com.

Configuring Embedded CiscoView Support

The Catalyst 4500 series switch supports CiscoView web-based administration using the Catalyst Web Interface (CWI) tool. CiscoView is a device management application that can be embedded on the switch flash and provides dynamic status, monitoring, and configuration information for your switch. CiscoView displays a physical view of your switch chassis with color-coded modules and ports and monitoring capabilities that display the switch status, performance, and other statistics. Configuration capabilities allow comprehensive changes to devices, if the required security privileges have been granted. The configuration and monitoring capabilities for the Catalyst 4500 series of switches mirror those available in CiscoView in all server-based CiscoWorks solutions, including CiscoWorks LAN Management Solution (LMS) and CiscoWorks Routed WAN Management Solution (RWAN).

Page 182 of the Cisco Systems 4500 user manual — Installing and Configuring Embedded CiscoView
Page 182 · click to enlarge
Page 182

Chapter 4 Administering the Switch Configuring Embedded CiscoView Support

These sections describe the Embedded CiscoView support available with Cisco IOS Release 12.1(20)EW and later releases:

  • Understanding Embedded CiscoView, page 4-36
  • Installing and Configuring Embedded CiscoView, page 4-36
  • Displaying Embedded CiscoView Information, page 4-39

Understanding Embedded CiscoView

The Embedded CiscoView network management system is a web-based interface that uses HTTP and SNMP to provide a graphical representation of the switch and to provide a GUI-based management and configuration interface.

Installing and Configuring Embedded CiscoView

To install and configure Embedded CiscoView, perform this task:

Step 1 Switch# dir device_name Displays the contents of the device.

If you are installing Embedded CiscoView for the first time, or if the CiscoView directory is empty, skip to Step 5.

Step 2 Switch# delete device_name:cv/* Removes existing files from the CiscoView directory.

Step 3 Switch# squeeze device_name: Recovers the space in the file system.

Step 4 Switch# copy tftp bootflash Copies the tar file to bootflash.

Step 5 Switch# archive tar /xtract tftp:// ip address of tftp server/ciscoview.tar device_name:cv

Extracts the CiscoView files from the tar file on the TFTP server to the CiscoView directory.

Step 6 Switch# dir device_name: Displays the contents of the device.

In a redundant configuration, repeat Step 1 through Step 6 for the file system on the redundant supervisor engine.

Step 7 Switch# configure terminal Enters global configuration mode.

Step 8 Switch(config)# ip http server Enables the HTTP web server.

Step 9 Switch(config)# snmp-server community string ro Configures the SNMP password for read-only operation.

Step 10 Switch(config)# snmp-server community string rw Configures the SNMP password for read/write operation.

Page 183 of the Cisco Systems 4500 user manual — Administering the Switch
Page 183 · click to enlarge
Page 183

Chapter 4 Administering the Switch

Configuring Embedded CiscoView Support

The following example shows how to install and configure Embedded CiscoView on your switch:

Switch# dir Directory of bootflash:/ Directory of bootflash:/ 1 -rw- 9572396 Dec 30 2002 01:05:01 +00:00 cat4000-i9k2s-mz.121-19.EW 2 -rw- 9604192 Jan 3 2003 07:46:49 +00:00 cat4000-i5k2s-mz.121-19.EW 3 -rw- 1985024 Jan 21 2003 03:31:20 +00:00 Cat4000IOS.v4-0.tar 4 -rw- 1910127 Jan 23 2003 04:23:39 +00:00 cv/Cat4000IOS-4.0.sgz 5 -rw- 7258 Jan 23 2003 04:23:46 +00:00 cv/Cat4000IOS-4.0_ace.html 6 -rw- 405 Jan 23 2003 04:23:46 +00:00 cv/Cat4000IOS-4.0_error.html 7 -rw- 2738 Jan 23 2003 04:23:46 +00:00 cv/Cat4000IOS-4.0_install.html 8 -rw- 20450 Jan 23 2003 04:23:46 +00:00 cv/Cat4000IOS-4.0_jks.jar 9 -rw- 20743 Jan 23 2003 04:23:46 +00:00 cv/Cat4000IOS-4.0_nos.jar 10 -rw- 12383 Jan 23 2003 04:23:46 +00:00 cv/applet.html 11 -rw- 529 Jan 23 2003 04:23:46 +00:00 cv/cisco.x509 12 -rw- 2523 Jan 23 2003 04:23:46 +00:00 cv/identitydb.obj 13 -rw- 1173 Mar 19 2003 05:50:26 +00:00 post-2003.03.19.05.50.07-passed.txt

32578556 bytes total (38199688 bytes free) Switch# Switch# del cv/* Delete filename [cv/*]? Delete bootflash:cv/Cat4000IOS-4.0.sgz? [confirm]y Delete bootflash:cv/Cat4000IOS-4.0_ace.html? [confirm]y Delete bootflash:cv/Cat4000IOS-4.0_error.html? [confirm]y Delete bootflash:cv/Cat4000IOS-4.0_install.html? [confirm]y Delete bootflash:cv/Cat4000IOS-4.0_jks.jar? [confirm]y Delete bootflash:cv/Cat4000IOS-4.0_nos.jar? [confirm]y Delete bootflash:cv/applet.html? [confirm]y Delete bootflash:cv/cisco.x509? [confirm]y Delete bootflash:cv/identitydb.obj? [confirm]y Switch#

Switch# squeeze bootflash: All deleted files will be removed. Continue? [confirm]y Squeeze operation may take a while. Continue? [confirm]y Squeeze of bootflash complete Switch# Switch# copy tftp bootflash Address or name of remote host []? 10.5.5.5 Source filename []? Cat4000IOS.v5-1.tar Destination filename [Cat4000IOS.v5-1.tar]? Accessing tftp://10.5.5.5/Cat4000IOS.v5-1.tar... Loading Cat4000IOS.v5-1.tar from 10.5.5.5 (via FastEthernet2/1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 2031616 bytes]

2031616 bytes copied in 11.388 secs (178400 bytes/sec) Switch# Switch# dir Directory of bootflash:/

Directory of bootflash:/ 1 -rw- 9572396 Dec 30 2002 01:05:01 +00:00 cat4000-i9k2s-mz.121-19.EW 2 -rw- 9604192 Jan 3 2003 07:46:49 +00:00 cat4000-i5k2s-mz.121-19.EW 3 -rw- 1985024 Jan 21 2003 03:31:20 +00:00 Cat4000IOS.v4-0.tar 4 -rw- 1173 Mar 19 2003 05:50:26 +00:00 post-2003.03.19.05.50.07-passed.txt 5 -rw- 2031616 Mar 26 2003 05:33:12 +00:00 Cat4000IOS.v5-1.tar

32578556 bytes total (38199688 bytes free)

Page 184 of the Cisco Systems 4500 user manual — Administering the Switch
Page 184 · click to enlarge
Page 184

Chapter 4 Administering the Switch Configuring Embedded CiscoView Support

Switch# Switch# archive tar /xtract Cat4000IOS.v5-1.tar /cv extracting Cat4000IOS-5.1.sgz (1956591 bytes) extracting Cat4000IOS-5.1_ace.html (7263 bytes) extracting Cat4000IOS-5.1_error.html (410 bytes) extracting Cat4000IOS-5.1_install.html (2743 bytes) extracting Cat4000IOS-5.1_jks.jar (20450 bytes) extracting Cat4000IOS-5.1_nos.jar (20782 bytes) extracting applet.html (12388 bytes) extracting cisco.x509 (529 bytes) extracting identitydb.obj (2523 bytes) Switch# Switch# dir

Directory of bootflash:/ 1 -rw- 9572396 Dec 30 2002 01:05:01 +00:00 cat4000-i9k2s-mz.121-19.EW 2 -rw- 9604192 Jan 3 2003 07:46:49 +00:00 cat4000-i5k2s-mz.121-19.EW 3 -rw- 1985024 Jan 21 2003 03:31:20 +00:00 Cat4000IOS.v4-0.tar 4 -rw- 1173 Mar 19 2003 05:50:26 +00:00 post-2003.03.19.05.50.07-passed.txt 5 -rw- 2031616 Mar 26 2003 05:33:12 +00:00 Cat4000IOS.v5-1.tar 6 -rw- 1956591 Mar 26 2003 05:36:11 +00:00 cv/Cat4000IOS-5.1.sgz 7 -rw- 7263 Mar 26 2003 05:36:19 +00:00 cv/Cat4000IOS-5.1_ace.html 8 -rw- 410 Mar 26 2003 05:36:19 +00:00 cv/Cat4000IOS-5.1_error.html 9 -rw- 2743 Mar 26 2003 05:36:19 +00:00 cv/Cat4000IOS-5.1_install.html 10 -rw- 20450 Mar 26 2003 05:36:19 +00:00 cv/Cat4000IOS-5.1_jks.jar 11 -rw- 20782 Mar 26 2003 05:36:19 +00:00 cv/Cat4000IOS-5.1_nos.jar 12 -rw- 12388 Mar 26 2003 05:36:19 +00:00 cv/applet.html 13 -rw- 529 Mar 26 2003 05:36:19 +00:00 cv/cisco.x509 14 -rw- 2523 Mar 26 2003 05:36:19 +00:00 cv/identitydb.obj

32578556 bytes total (7358284 bytes free)

Switch# Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip http server Switch(config)# snmp-server community public ro Switch(config)# snmp-server community public rw Switch(config)# exit Switch# wr Building configuration... Compressed configuration from 2735 bytes to 1169 bytes[OK] Switch# show ciscoview ? package ADP Package Details version ADP version | Output modifiers

Page 185 of the Cisco Systems 4500 user manual — Displaying Embedded CiscoView Information
Page 185 · click to enlarge
Page 185

Chapter 4 Administering the Switch

Configuring Embedded CiscoView Support

For more information about web access to the switch, refer to the “Using the Cisco Web Browser” chapter in the Cisco IOS Configuration Fundamentals Configuration Guide at this URL: http://www.cisco.com/en/US/docs/ios/fundamentals/configuration/guide/12_4t/cf_12_4t_book.html

Displaying Embedded CiscoView Information

To display the Embedded CiscoView information, enter the following commands:

Switch# show ciscoview package Displays information about the Embedded CiscoView files.

Switch# show ciscoview version Displays the Embedded CiscoView version.

The following example shows how to display the Embedded CiscoView file and version information:

Switch# show ciscoview package File source: CVFILE SIZE(in bytes) Cat4000IOS-5.1.sgz 1956591 Cat4000IOS-5.1_ace.html 7263 Cat4000IOS-5.1_error.html 410 Cat4000IOS-5.1_install.html 2743 Cat4000IOS-5.1_jks.jar 20450 Cat4000IOS-5.1_nos.jar 20782 applet.html 12388 cisco.x509 529 identitydb.obj 2523

Switch# show ciscoview version Engine Version: 5.3.4 ADP Device: Cat4000IOS ADP Version: 5.1 ADK: 49 Switch#

Page 186 of the Cisco Systems 4500 user manual — Administering the Switch
Page 186 · click to enlarge
Page 186

Chapter 4 Administering the Switch Configuring Embedded CiscoView Support

Page 187 of the Cisco Systems 4500 user manual — C H A P T E R
Page 187 · click to enlarge
Page 187

C H A P T E R

Configuring the Cisco IOS In-Service Software Upgrade Process

Operating on redundant systems, the In-Service Software Upgrade (ISSU) process allows Cisco IOS software to be updated or otherwise modified while packet forwarding continues. In most networks, planned software upgrades are a significant cause of downtime. ISSU allows Cisco IOS software to be modified while packet forwarding continues. This increases network availability and reduces downtime caused by planned software upgrades. This document provides information about ISSU concepts and describes the steps taken to perform ISSU in a system.

This section includes these topics:

  • Prerequisites to Performing ISSU, page 5-2
  • About ISSU, page 5-3
  • Performing the ISSU Process, page 5-15
  • Related Documents, page 5-39

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 188 of the Cisco Systems 4500 user manual — Prerequisites to Performing ISSU
Page 188 · click to enlarge
Page 188

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Prerequisites to Performing ISSU

Prerequisites to Performing ISSU

Before performing ISSU, you need to meet these prerequisites:

  • Image type of the existing and target image must match. For example, you cannot upgrade from an IP Base image to an Enterprise Services image (and vice versa) without experiencing several minutes of traffic loss.
  • The active and the standby supervisor engines must have the same supervisor engine hardware (same model, same memory, NFL daughter card and so on).
  • The new and old Cisco IOS software images must be loaded into the file systems (bootflash or compact flash) of both the active and the standby supervisor engines before you begin the ISSU process.

The old image should be available either in bootflash or compact flash and the system should have been booted from one of these locations because the boot variable should not be changed before the ISSU process unfolds.

  • Stateful Switchover (SSO) must be configured and the standby supervisor engine should be in standby hot state.

These commands indicate whether SSO is enabled: show module, show running-config, show redundancy state.

If you do not have SSO enabled, see the Stateful Switchover document for further information on how to enable and configure SSO.

  • Nonstop Forwarding (NSF) must be configured and working properly. If you do not have NSF enabled, see the Cisco Nonstop Forwarding document for further information on how to enable and configure NSF.
  • Before you perform ISSU, ensure that the system is configured for redundancy mode SSO and that the file system for both the active and the standby supervisor engines contains the new ISSU-compatible image. The current Cisco IOS version running in the system must also support ISSU.

You can enter various commands on the Catalyst 4500 series switch or the ISSU application on Cisco Feature Navigator are to determine supervisor engine versioning and Cisco IOS compatibility.

  • If you enter the no ip routing command, ISSU falls back from SSO to RPR mode, resulting in traffic loss.
  • Autoboot is turned on and the current booted image matches the one specified in the BOOT environmental variable. For details on how to configure and verify these, please refer to " Modifying the Boot Field and Using the boot Command, page 3-27 .
  • If you enter the no ip routing command, ISSU falls back from SSO to RPR mode, resulting in traffic loss.
Page 189 of the Cisco Systems 4500 user manual — Stateful Switchover Overview
Page 189 · click to enlarge
Page 189

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

About ISSU

Before you perform ISSU, you should understand the following concepts:

  • Stateful Switchover Overview, page 5-3
  • NSF Overview, page 5-5
  • ISSU Process Overview, page 5-6
  • Performing an ISSU Upgrade: 2 Methods, page 5-11
  • Changeversion Process, page 5-12
  • Guidelines for Performing ISSU, page 5-13
  • Versioning Capability in Cisco IOS Software to Support ISSU, page 5-13
  • SNMP Support for ISSU, page 5-15
  • Compatibility Verification Using Cisco Feature Navigator, page 5-15

Stateful Switchover Overview

Development of the SSO feature is an incremental step within an overall program to improve the availability of networks constructed with Cisco IOS switches.

In specific Cisco networking devices that support dual supervisor engines, SSO takes advantage of supervisor engine redundancy to increase network availability. SSO achieves this by establishing one of the supervisor engines as the active processor while the other supervisor engine is designated as the standby processor. Following an initial synchronization between the two supervisor engines, SSO dynamically synchronizes supervisor engine state information between them in real-time.

A switchover from the active to the standby processor occurs when the active supervisor engine fails or is removed from the networking device.

Cisco NSF is used with SSO. Cisco NSF allows the forwarding of data packets to continue along known routes while the routing protocol information is being restored following a switchover. With Cisco NSF, peer networking devices do not experience routing flaps, which reduce loss of service outages for customers.

Figure 5-1 illustrates how SSO is typically deployed in service provider networks. In this example, Cisco NSF with SSO is enabled at the access layer (edge) of the service provider network. A fault at this point could result in loss of service for enterprise customers requiring access to the service provider network.

For Cisco NSF protocols that require neighboring devices to participate in Cisco NSF, Cisco NSF-aware software images must be installed on those neighboring distribution layer devices. Depending on your objectives, you may decide to deploy Cisco NSF and SSO features at the core layer of your network. Doing this can help reduce the time to restore network capacity and service for certain failures, which leads to additional availability.

About ISSU

Page 190 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 190 · click to enlarge
Page 190

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process About ISSU

Figure 5-1 Cisco NSF with SSO Network Deployment: Service Provider Networks

Cisco NSF with SSO features may provide some benefit, but usually

Service provider access layer

Primary deployment position for Cisco NSF with SSO capable-routers

Additional levels of availability may be gained by deploying Cisco NSF with SSO at other points in the network where a single point of failure exists. Figure 5-2 illustrates an optional deployment strategy that applies Cisco NSF with SSO at the enterprise network access layer. In this example, each access point in the enterprise network represents another single point of failure in the network design. In the event of a switchover or a planned software upgrade, enterprise customer sessions continue uninterrupted through the network in this example.

Show 10 more labels / short text on this page
Service provider · core layer · not required · Service provider · Good position for · distribution · NSF-aware · layer · routers · Customers
Page 191 of the Cisco Systems 4500 user manual — NSF Overview
Page 191 · click to enlarge
Page 191

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Figure 5-2 Cisco NSF with SSO Network Deployment: Enterprise Networks

Cisco NSF with SSO features may provide some benefit, but usually

Service provider access layer

Primary deployment position for Cisco NSF with SSO-capable routers

Secondary deployment position for Cisco NSF

NSF Overview

Cisco NSF works with the SSO feature in Cisco IOS software. SSO is a prerequisite of Cisco NSF. NSF works with SSO to minimize the amount of time a network is unavailable to its users following a switchover. The main objective of Cisco NSF is to continue forwarding IP packets following a supervisor engine switchover.

Usually, when a networking device restarts, all routing peers of that device detect that the device went down and then came back up. This transition results in what is called a routing flap, which could spread across multiple routing domains. Routing flaps caused by routing restarts create routing instabilities, which are detrimental to the overall network performance. Cisco NSF helps to suppress routing flaps in SSO-enabled devices, thus reducing network instability.

Cisco NSF allows for the forwarding of data packets to continue along known routes while the routing protocol information is being restored following a switchover. With Cisco NSF, peer networking devices do not experience routing flaps. Data traffic is forwarded while the standby supervisor engine assumes control from the failed active supervisor engine during a switchover. The ability of physical links to remain up through a switchover and to be kept current with the Forwarding Information Base (FIB) on the active supervisor engine is key to Cisco NSF operation.

Show 24 more labels / short text on this page
About ISSU · Service provider · core layer · not required · Service provider · Good position for · distribution · NSF-aware · layer · routers · Enterprise · access · with SSO-capable · layer · or -aware routers · Enterprise distribution · Good position for · NSF-aware · layer · routers · Enterprise · SSO may provide · core layer · some benefit
Page 192 of the Cisco Systems 4500 user manual — ISSU Process Overview
Page 192 · click to enlarge
Page 192

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process About ISSU

ISSU Process Overview

The ISSU process allows you to perform a Cisco IOS software upgrade or downgrade while the system continues to forward packets. (For an illustration of the commands used during the ISSU process, refer to Figure 5-8 on page 5-11.) Cisco IOS ISSU takes advantage of the Cisco IOS high availability infrastructure—Cisco NSF with SSO and hardware redundancy—and eliminates downtime associated with software upgrades or version changes by allowing changes while the system remains in service (see Figure 5-3).

SSO and NSF mode support configuration and runtime state synchronization from the active to the standby supervisor engine. For this process to happen, the images on both the active and the standby supervisor engines must be the same. When images on active and standby supervisor engines are different ISSU allows the two supervisor engines to be kept in synchronization even when these two versions of Cisco IOS support different sets of features and commands.

Figure 5-3 High Availability Features and Hardware Redundancy in the ISSU Process

Show 11 more labels / short text on this page
Control · plane · Active Supervisor · Standby Supervisor · Management · plane Management · Engine NSF/SSO · plane · Engine · Line cards · Data plane
Page 193 of the Cisco Systems 4500 user manual — NSF/SSO
Page 193 · click to enlarge
Page 193

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

An ISSU-capable switch consists of two supervisor engines (active and standby) and one or more line cards. Before initiating the ISSU process, copy the Cisco IOS software into the file systems of both supervisor engines (see Figure 5-4).

Figure 5-4 Install/Copy New Version of Cisco IOS Software on Both Supervisor Engines

of Cisco IOS on active and standby

12.x(y)S Cisco IOS

12.x(y)S

12.x(y)S Cisco IOS

12.x(y)S Cisco IOS

12.x(z)S Cisco IOS

12.x(z)S Cisco IOS

12.x(z)S

12.x(z)S Standby Supervisor

NSF/SSO

Show 10 more labels / short text on this page
About ISSU · Install new version · Supervisor Engines · Cisco IOS · Cisco IOS · Cisco IOS · Active Supervisor · Engine · Engine · Line cards
Page 194 of the Cisco Systems 4500 user manual — NSF/SSO
Page 194 · click to enlarge
Page 194

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process About ISSU

After you have copied the Cisco IOS software to both file systems, load the new version of Cisco IOS software onto the standby supervisor engine (see Figure 5-5).

Figure 5-5 Load New Version of Cisco IOS Software on the Standby Supervisor Engine

12.x(y)S Cisco IOS

12.x(y)S

12.x(y)S Cisco IOS

12.x(z)S Cisco IOS

12.x(z)S

12.x(z)S Standby Supervisor

NSF/SSO

Show 10 more labels / short text on this page
Load new version · of Cisco IOS · on standby · Cisco IOS · Cisco IOS · Cisco IOS · Active Supervisor · Engine · Engine · Line cards
Page 195 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 195 · click to enlarge
Page 195

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

After a switchover (NSF or SSO, not RPR), the standby supervisor engine takes over as the new active supervisor engine (see Figure 5-6).

Figure 5-6 Switch Over to Standby Supervisor Engine

12.x(y)S Cisco IOS

12.x(y)S Cisco IOS

12.x(y)S

12.x(z)S

Show 13 more labels / short text on this page
About ISSU · Run new version · of Cisco IOS · on standby · Cisco IOS · Cisco IOS · New Active Supervisor · Old Active Supervisor · NSF/SSO Switchover · NSF/SSO Switchover · Engine · Engine · Line cards
Page 196 of the Cisco Systems 4500 user manual — NSF/SSO
Page 196 · click to enlarge
Page 196

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process About ISSU

The former active supervisor engine is loaded with an old Cisco IOS image so that if the new active supervisor engine experiences problems, you can abort and conduct a switchover to the former active, which is already running the old image. Next, the former active supervisor engine is loaded with the new version of Cisco IOS software and becomes the new standby supervisor engine (see Figure 5-7).

Figure 5-7 Load New Standby Supervisor Engine with New Cisco IOS Software

Standby is reset and

reloaded with new software

12.x(y)S Cisco IOS

12.x(y)S Cisco IOS

12.x(z)S

12.x(z)S

NSF/SSO

Figure 5-8 shows the steps during the ISSU process.

Show 7 more labels / short text on this page
Cisco IOS · Cisco IOS · Standby Supervisor · Active Supervisor · Engine · Engine · Line cards
Page 197 of the Cisco Systems 4500 user manual — Performing an ISSU Upgrade: 2 Methods
Page 197 · click to enlarge
Page 197

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Figure 5-8 Steps During the ISSU Process

* This command is optional.

Performing an ISSU Upgrade: 2 Methods

There are two ways to perform an ISSU upgrade: manually, with four commands; or automatically, with one command.

The normal ISSU upgrade process involves issuing four separate ISSU exec commands (issu loadversion, issu runversion, issu acceptversion, issue commitversion) along with additional show command invocations to evaluate the success of each command before proceeding. Although the ISSU process is complicated, you should not expect disruption of service. The use of multiple ISSU commands dictates an additional level of care to ensure no service disruption. However, in some scenarios, this upgrade procedure might be cumbersome and of minimal value. A typical example is during a network upgrade that involves performing an ISSU upgrade on a large number of Catalyst 4500 switches. In these cases, we recommend that you first perform the normal (four command) ISSU upgrade procedure on one switch (possibly in a lab environment) to verify successful upgrade. Then, use a single issu changeversion command to perform an automatic ISSU on the rest of the Catalyst 4500 switches in the network.

Show 31 more labels / short text on this page
About ISSU · 1 Standby · Old · Active · Loadversion · Loadversion · Old · Active · 2 Standby · New · Abortversion · New · Standby · Active · New · Abortversion · Old · Switchover 4 · Commitversion Runversion · Commitversion · Runversion · Active · Active · New · New · Standby · Standby · Old · Old · *Acceptversion · Commitversion Commitversion
Page 198 of the Cisco Systems 4500 user manual — Scheduled Changeversion: “in” and “at” Options
Page 198 · click to enlarge
Page 198

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process About ISSU

Changeversion Process

The issu changeversion command launches a single-step complete ISSU upgrade cycle. It performs the logic for all four of the standard commands (issu loadversion, issu runversion, issu acceptversion, and issu commitversion) without user intervention, streamlining the upgrade through a single CLI step.

Additionally, issu changeversion allows the upgrade process to be scheduled for a future time. This enables you to stage a number of systems to perform upgrades sequentially when a potential disruption would be least harmful.

After the standby supervisor engine initializes and the system reaches a terminal state (RPR/SSO), the upgrade process is complete and the BOOT variable is permanently written with the new IOS software software image. Hence, a reset on any RP will keep the system booting the new software image. Console and syslog messages will be generated to notify anyone monitoring the upgrade that the state transition has occurred.

Similar to the normal ISSU upgrade procedure, the in-progress upgrade procedure initiated by the issu changeversion command can be aborted with the issu abortversion command. If the system detects any problems or detects an unhealthy system during an upgrade, the upgrade might be automatically aborted.

When the issu runversion command is entered during the four step manual upgrade process, if any incompatible ISSU clients exist, the upgrade process reports them and their side effects, and allows the user to abort the upgrade. While performing a single-step upgrade process, when the process reaches the runversion state, it will either automatically continue with the upgrade provided the base clients are compatible, or automatically abort because of client incompatibility. If the user wants to continue the upgrade procedure in RPR mode, the user must use the normal ISSU command set and specify the force option when entering the issu loadversion command.

Changeversion: Quick Option

The issu changeversion command provides an optional quick command option that can reduce the time required to perform the automatic ISSU upgrade. When the quick command option is applied, the ISSU upgrade state transition differs from that described previously. With this option, the software logic up the loadversion stage remains the same as previously described, and the logic that performs runversion and commitversion is combined. This logic skips the step in the upgrade procedure that loads the old software version on the new standby (old active) supervisor, reducing the time required for the automatic ISSU upgrade by about a third.

Scheduled Changeversion: “in” and “at” Options

issu changeversion provides in and at command options that enable you to schedule a future automatic ISSU upgrade.

The at command option schedules an automatic ISSU upgrade to begin at a specific time. This option specifies an exact time (hh:mm, 24 hour format) in the next 24 hours at which the upgrade will occur.

The in command option schedules an automatic ISSU upgrade to begin after a certain amount of time has elapsed. This option specifies the number of hours and minutes (hh:mm format) that must elapse before an upgrade will occur, with a maximum value of 99:59.

Page 199 of the Cisco Systems 4500 user manual — Versioning Capability in Cisco IOS Software to Support ISSU
Page 199 · click to enlarge
Page 199

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Changeversion Deployment Scenario

The typical issu changeversion command usage scenario is for experienced users with a large installed base. These users typically validate a new image using a topology and configuration similar to their production network. The validation process should be done using both the existing multi-command process and the new issu changeversion command process. Once users certify an IOS software image and want to roll it out broadly, they can use the single command process to perform an efficient upgrade of their network.

Aborting an In-Progress Changeversion Procedure

The issu changeversion command functionality is designed to perform an ISSU software upgrade without user intervention. However, status messages are displayed to the console as the upgrade transitions through the various states. If any anomalies are noticed during the automatic upgrade, perhaps with peers or other parts of the network, you can use the issu abortversion command to manually abort the upgrade at any point in the process prior to the commitversion operation.

Guidelines for Performing ISSU

Be aware of the following guidelines while performing the ISSU process:

  • Even with ISSU, it is recommended that upgrades be performed during a maintenance window.
  • The new features should not be enabled (if they require change of configuration) during the ISSU process.
  • In a downgrade scenario, if any feature is not available in the downgrade revision of the Cisco IOS software handle, that feature should be disabled prior to initiating the ISSU process.

Versioning Capability in Cisco IOS Software to Support ISSU

Before the introduction of ISSU, the SSO mode of operation required each supervisor engine to be running the same versions of Cisco IOS software.

The system entered SSO mode only if the versions running on the both supervisor engines were the same. If not, the redundancy mode changes to RPR. With ISSU capability, the implementation allows two different but compatible release levels of Cisco IOS images to interoperate in SSO mode and enables software upgrades while packet forwarding continues. Version checking done before ISSU capability was introduced is no longer sufficient to allow the system to determine the operating mode.

About ISSU

Page 200 of the Cisco Systems 4500 user manual — Compatibility Matrix
Page 200 · click to enlarge
Page 200

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process About ISSU

ISSU requires additional information to determine compatibility between software versions. A compatibility matrix is defined, containing information about other images relative to the one in question. This compatibility matrix represents the compatibility of two software versions, one running on the active and the other on the standby supervisor engine, and to allow the system to determine the highest operating mode it can achieve. Incompatible versions cannot progress to SSO operational mode.

Compatibility Matrix

You can perform the ISSU process when the Cisco IOS software on both the active and the standby supervisor engine is capable of ISSU and the old and new images are compatible. The compatibility matrix information stores the compatibility among releases as follows:

  • Compatible—The base-level system infrastructure and all optional HA-aware subsystems are compatible. An in-service upgrade or downgrade between these versions succeeds with minimal service impact. The matrix entry designates the images to be compatible (C).
  • Base-level compatible—One or more of the optional HA-aware subsystems is not compatible. An in-service upgrade or downgrade between these versions succeeds; however, some subsystems cannot always maintain state during the transition from the old to the new version of Cisco IOS. The matrix entry designates the images to be base-level compatible (B).

However, you should be able to perform an ISSU upgrade without any functionality loss even if the matrix entry is B. The downgrade may experience some functionality loss if the newer image had additional functionality.

  • Incompatible—A core set of system infrastructure exists in Cisco IOS that must be able to interoperate in a stateful manner for SSO to function correctly. If any of these required features or subsystems is not interoperable, then the two versions of the Cisco IOS software images are declared to be incompatible. An in-service upgrade or downgrade between these versions is not possible. The matrix entry designates the images to be incompatible (I). The system operates in RPR mode during the period when the versions of Cisco IOS at the active and standby supervisor engines are incompatible.

If you attempt to perform ISSU with a peer that does not support ISSU, the system automatically uses RPR instead.

The compatibility matrix represents the compatibility relationship a Cisco IOS software image has with all of the other Cisco IOS software versions within the designated support window (for example, all of those software versions the image “knows” about) and is populated and released with every image. The matrix stores compatibility information between its own release and prior releases. It is always the newest release that contains the latest information about compatibility with existing releases in the field. The compatibility matrix is available within the Cisco IOS software image and on Cisco.com so that users can determine in advance whether an upgrade can be done using the ISSU process.

To display the compatibility matrix data between two software versions on a given system, enter the show issu comp-matrix stored command.

Page 201 of the Cisco Systems 4500 user manual — Performing the ISSU Process
Page 201 · click to enlarge
Page 201

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

SNMP Support for ISSU

SNMP for SSO provides a mechanism for synchronizing the SNMP configurations and the MIBs that support SSO from the active supervisor engine to the standby supervisor engine, assuming that both supervisor engines are running the same version of Cisco IOS software. This assumption is not valid for ISSU.

With ISSU, an SNMP client can handle transformations for the MIBs across two different versions of Cisco IOS, if needed. An SNMP client handles transformation for all MIBs and handles the transmit and receive functionality across the active and standby supervisor engines. During SNMP, a MIB is completely synchronized from the active supervisor engine to the standby supervisor engine only if the versions of the MIB on both Cisco IOS releases are the same.

Compatibility Verification Using Cisco Feature Navigator

The ISSU application on Cisco Feature Navigator allows you to:

  • Select an ISSU-capable image
  • Identify which images are compatible with that image
  • Compare two images and understand the compatibility level of the images (that is, compatible, base-level compatible, and incompatible)
  • Compare two images and see the client compatibility for each ISSU client
  • Provide links to release notes for the image

Performing the ISSU Process

Unlike SSO, which is a mode of operation for the device and a prerequisite for performing ISSU, the ISSU process is a series of steps performed while the switch is in operation. The steps result in an upgrade to a new or modified Cisco IOS software, and have a minimal impact to traffic.

This section includes the following topics:

  • Verifying the ISSU Software Installation, page 5-16
  • Loading New Cisco IOS Software on the Standby Supervisor Engine, page 5-18 (required)
  • Switching to the Standby Supervisor Engine, page 5-21 (required)
  • Stopping the ISSU Rollback Timer (Optional), page 5-23 (optional)
  • Loading New Cisco IOS Software on the New Standby Supervisor Engine, page 5-24
  • Aborting a Software Upgrade During ISSU, page 5-31
  • Configuring the Rollback Timer to Safeguard Against Upgrade Issues, page 5-32
  • Displaying ISSU Compatibility Matrix Information, page 5-34
Page 202 of the Cisco Systems 4500 user manual — Verifying Redundancy Mode Before Beginning the ISSU Process
Page 202 · click to enlarge
Page 202

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Verifying the ISSU Software Installation

During the ISSU process, five valid states exist: disabled, init, load version, run version, and system reset. Use the show issu state command to obtain the current ISSU state:

  • Disabled state—The state for the standby supervisor engine while this engine is resetting.
  • Init state—The initial state is two supervisor engines, one active and one standby, before the ISSU process is started. It is also the final state after the ISSU process completes.
  • Load version (LV) state—The standby supervisor engine is loaded with the new version of Cisco IOS software.
  • Run version (RV) state—The issu runversion command forces the switchover of the supervisor engines. The newly active supervisor engine now runs the new Cisco IOS software image.
  • System reset (SR) state—This state occurs either when you enter the issu abortversion command before the Init state is reached, or if the rollback timer expires before you execute the issu acceptversion command.

You can verify the ISSU software installation by entering show commands, as follows:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# show issu state [detail] Displays the state of the during the ISSU process.

Step 3 Switch# show redundancy Displays current or historical status, mode, and related redundancy information about the device.

This example shows how to display the state and the current status of the supervisor engine during the ISSU process:

Switch> enable Switch# show issu state Switch# show redundancy

Verifying Redundancy Mode Before Beginning the ISSU Process

Before you begin the ISSU process, verify the redundancy mode for the system and be sure to configure NSF and SSO.

The following example displays verification that the system is in SSO mode, that slot 1 is the active supervisor engine, and that slot 2 is the standby supervisor engine. Both supervisor engines are running the same Cisco IOS software image.

Switch# show redundancy states my state = 13 -ACTIVE peer state = 8 -STANDBY HOT Mode = Duplex Unit = Primary Unit ID = 1

Redundancy Mode (Operational) = Stateful Switchover Redundancy Mode (Configured) = Stateful Switchover Redundancy State = Stateful Switchover

Page 203 of the Cisco Systems 4500 user manual — Verifying the ISSU State Before Beginning the ISSU Process
Page 203 · click to enlarge
Page 203

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

Maintenance Mode = Disabled Manual Swact = enabled Communications = Up

client count = 39 client_notification_TMR = 240000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 0 keep_alive threshold = 18 RF debug mask = 0x0

Switch# show redundancy Redundant System Information : Available system uptime = 1 minute Switchovers system experienced = 0 Standby failures = 0 Last switchover reason = none

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information : Active Location = slot 1 Current Software state = ACTIVE Uptime in current state = 0 minutes Image Version = Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 12.2(31)SGA, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Tue 05-Sep-06 16:16 by sanjdas BOOT = bootflash:old_image,1; Configuration register = 0x822

Peer Processor Information : Standby Location = slot 2 Current Software state = STANDBY HOT Uptime in current state = 1 minute Image Version = Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 12.2(31)SGA, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Tue 05-Sep-06 16:16 by sanjdas BOOT = bootflash:old_image,1; Configuration register = 0x822

Verifying the ISSU State Before Beginning the ISSU Process

Ensure that the active and standby supervisor engines are up and in ISSU Init state and that the boot variables are set and pointing to valid files.

The following example displays the ISSU state before the process begins:

Switch# show issu state detail Slot = 1 RP State = Active

Page 204 of the Cisco Systems 4500 user manual — Prerequisites
Page 204 · click to enlarge
Page 204

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

ISSU State = Init Boot Variable = bootflash:old_image,1; Operating Mode = Stateful Switchover Primary Version = N/A Secondary Version = N/A Current Version = bootflash:old_image

Slot = 2 RP State = Standby ISSU State = Init Boot Variable = bootflash:old_image,1; Operating Mode = Stateful Switchover Primary Version = N/A Secondary Version = N/A Current Version = bootflash:old_image

The new version of the Cisco IOS software must be present on both of the supervisor engines. The directory information displayed for each of the supervisor engines (or supervisor engines) shows that the new version is present.

Switch# dir bootflashDirectory of bootflash:/

5 -rwx 13636500 Sep 6 2006 09:32:33 +00:00 old_image 6 -rwx 13636500 Sep 6 2006 09:34:07 +00:00 new_image

61341696 bytes total (1111388 bytes free)

Switch# dir slavebootflashDirectory of slavebootflash:/

4 -rwx 13636500 Sep 6 2006 09:40:10 +00:00 old_image 5 -rwx 13636500 Sep 6 2006 09:42:13 +00:00 new_image

61341696 bytes total (1116224 bytes free)

Loading New Cisco IOS Software on the Standby Supervisor Engine

This task describes how to use ISSU to load a new version of Cisco IOS software to the standby supervisor engine.

Prerequisites

  • Ensure that the new version of Cisco IOS software image is already present in the file system of both the active and standby supervisor engines. Also ensure that appropriate boot parameters (BOOT string and config-register) are set for the standby supervisor engine.
  • Optionally, perform additional tests and commands to determine the current state of peers and interfaces for later comparison.
Page 205 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 205 · click to enlarge
Page 205

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

  • Ensure the system (both active and standby supervisor engines) is in SSO redundancy mode. If the system is in RPR mode rather than SSO mode, you can still upgrade the system using the ISSU CLI commands, but the system experiences extended packet loss during the upgrade.

Refer to the Stateful Switchover document for more details on how to configure SSO mode on supervisor engines.

  • For ISSU to function, the image names on the active and standby supervisor engines must match.

Perform this task at the active supervisor engine:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# issu loadversion active-slot active-image-new standby-slot standby-image-new [forced]

Starts the ISSU process and (optionally) overrides the automatic rollback when the new Cisco IOS software version is detected to be incompatible.

It may take several seconds after the issu loadversion command is entered for Cisco IOS software to load onto the standby supervisor engine and for the standby supervisor engine to transition to SSO mode. This causes the standby supervisor engine to reload with the new image.

If you use the forced option, the standby supervisor engine is booted with the new image. After the image is loaded on the standby supervisor engine, if the image is incompatible, the system is forced to the RPR mode. Otherwise the system continues in the SSO mode.

Step 3 Switch# show issu state [detail] Displays the state of the during the ISSU process. At this point in the ISSU process, use this command to check that the standby supervisor engine is loaded and is in SSO mode.

It may take several seconds after entering the issu loadversion command for Cisco IOS software to load onto the standby supervisor engine and the standby supervisor engine to transition to SSO mode. If you enter the show issu state command too quickly, you may not see the information you need.

Step 4 Switch# show redundancy [states] Displays redundancy facility state information.

This example shows how to start the ISSU process, boot the standby supervisor engine in the Standby Hot state, and load the standby supervisor engine slot (2) with the new image:

Switch> enable Switch# issu loadversion 1 bootflash:new_image 2 slavebootflash:new_image Switch# show issu state detail Slot = 1 RP State = Active ISSU State = Load Version Boot Variable = bootflash:old_image,12 Operating Mode = Stateful Switchover Primary Version = bootflash:old_image Secondary Version = bootflash:new_image Current Version = bootflash:old_image

Page 206 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 206 · click to enlarge
Page 206

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Slot = 2 RP State = Standby ISSU State = Load Version Boot Variable = bootflash:new_image,12;bootflash:old_image,12 Operating Mode = Stateful Switchover Primary Version = bootflash:old_image Secondary Version = bootflash:new_image Current Version = bootflash:new_image

Switch# show redundancy states my state = 13 -ACTIVE peer state = 8 -STANDBY HOT Mode = Duplex Unit = Primary Unit ID = 1

Redundancy Mode (Operational) = Stateful Switchover Redundancy Mode (Configured) = Stateful Switchover Redundancy State = Stateful Switchover Maintenance Mode = Disabled Manual Swact = enabled Communications = Up

client count = 39 client_notification_TMR = 240000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 1 keep_alive threshold = 18 RF debug mask = 0x0

The following example shows how the forced option places the system in RPR mode:

Switch> enable Switch# issu loadversion 1 bootflash:new_image 2 slavebootflash:new_image forced Switch# show issu state detail Slot = 1 RP State = Active ISSU State = Load Version Boot Variable = bootflash:old_image,12 Operating Mode = RPR Primary Version = bootflash:old_image Secondary Version = bootflash:new_image Current Version = bootflash:old_image

Slot = 2 RP State = Standby ISSU State = Load Version Boot Variable = bootflash:new_image,12;bootflash:old_image,12 Operating Mode = RPR Primary Version = bootflash:old_image Secondary Version = bootflash:new_image Current Version = bootflash:new_image

Page 207 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 207 · click to enlarge
Page 207

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

The following example shows the redundancy mode as RPR:

Switch# show redundancy states my state = 13 -ACTIVE peer state = 4 -STANDBY COLD Mode = Duplex Unit = Primary Unit ID = 1

Redundancy Mode (Operational) = RPR Redundancy Mode (Configured) = Stateful Switchover Redundancy State = RPR Maintenance Mode = Disabled Manual Swact = enabled Communications = Up

client count = 39 client_notification_TMR = 240000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 1 keep_alive threshold = 18 RF debug mask = 0x0

Switching to the Standby Supervisor Engine

This task describes how to switchover to the standby supervisor engine, which is running the new Cisco IOS software image.

Perform this task at the active supervisor engine:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# issu runversion standby-slot [standby-image-new]

Forces a switchover from the active to the standby supervisor engine and reloads the former active (current standby) supervisor engines with the old image.

When you enter the issu runversion command, an SSO switchover is performed, and NSF procedures are invoked if configured.

Step 3 Switch# show issu state [detail] Displays the state of the during the ISSU process. At this point in the ISSU process, use this command to check that a switchover occurs to slot 2.

Step 4 Switch# show redundancy [states] Displays redundancy facility state information.

This example shows how to cause a switchover to the former standby supervisor engine (slot 2), reset the former active supervisor engine and reload it with the old image so it becomes the standby supervisor engine:

Switch> enable Switch# issu runversion 2 slavebootflash:new_image This command will reload the Active unit. Proceed ? [confirm]

Page 208 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 208 · click to enlarge
Page 208

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

A switchover occurs at this point. At the new active supervisor engine, after old active supervisor engine comes up as the standby engine, do the following:

Switch# show issu state detail Slot = 2 RP State = Active ISSU State = Run Version Boot Variable = bootflash:new_image,12;bootflash:old_image,12 Operating Mode = Stateful Switchover Primary Version = bootflash:new_image Secondary Version = bootflash:old_image Current Version = bootflash:new_image

Slot = 1 RP State = Standby ISSU State = Run Version Boot Variable = bootflash:old_image,12 Operating Mode = Stateful Switchover Primary Version = bootflash:new_image Secondary Version = bootflash:old_image Current Version = bootflash:old_image

Switch# show redundancy states my state = 13 -ACTIVE peer state = 8 -STANDBY HOT Mode = Duplex Unit = Secondary Unit ID = 2

Redundancy Mode (Operational) = Stateful Switchover Redundancy Mode (Configured) = Stateful Switchover Redundancy State = Stateful Switchover Maintenance Mode = Disabled Manual Swact = enabled Communications = Up

client count = 39 client_notification_TMR = 240000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 1 keep_alive threshold = 18 RF debug mask = 0x0

Once runversion command completes, the new active supervisor engine is running the new version of software and the previously active supervisor engine now becomes the standby supervisor engine. The standby is reset and reloaded, but remains on the previous version of software and come back online in standbyhot status. The following example shows how to verify these conditions:

Switch# show redundancy Redundant System Information : Available system uptime = 23 minutes Switchovers system experienced = 1 Standby failures = 0 Last switchover reason = user forced

Page 209 of the Cisco Systems 4500 user manual — Stopping the ISSU Rollback Timer (Optional)
Page 209 · click to enlarge
Page 209

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information : Active Location = slot 2 Current Software state = ACTIVE Uptime in current state = 11 minutes Image Version = Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 12.2(31)SGA, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Tue 05-Sep-06 16:16 by sanjdas BOOT = bootflash:new_image,12;bootflash:old_image,12 Configuration register = 0x822

Peer Processor Information : Standby Location = slot 1 Current Software state = STANDBY HOT Uptime in current state = 4 minutes Image Version = Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 12.2(31)SGA, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Tue 05-Sep-06 16:16 by sanjdas BOOT = bootflash:old_image,12 Configuration register = 0x822

Stopping the ISSU Rollback Timer (Optional)

This optional task describes how to stop the rollback timer.

If you do not run the following procedure before the rollback timer “timeout,” the system automatically aborts the ISSU process and reverts to the original Cisco IOS software version. By default the rollback timer is 45 minutes.

Use the following information to decide what action you should take:

  • If you want to retain your switch in this state for an extended period, you need to stop the rollback timer (then validate and run the acceptversion command directly).
  • If you want to proceed to the following step (running “commitversion”) within the rollback timer window of 45 minutes, you do not need to stop the rollback timer.
Page 210 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 210 · click to enlarge
Page 210

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# issu acceptversion active-slot [active-image-new]

Halts the rollback timer and ensures the new Cisco IOS ISSU process is not automatically aborted during the ISSU process.

Enter the issu acceptversion command within the time period specified by the rollback timer to acknowledge that the supervisor engine has achieved connectivity to the outside world; otherwise, the ISSU process is terminated, and the system reverts to the previous version of Cisco IOS software by switching to the standby supervisor engine.

Step 3 Switch# show issu rollback-timer Displays the amount of time left before an automatic rollback occurs.

This example displays the timer before you stop it. In the following example, the Automatic Rollback Time information indicates the amount of time remaining before an automatic rollback occurs.

Switch> enable Switch# show issu rollback-timer Rollback Process State = In progress Configured Rollback Time = 45:00 Automatic Rollback Time = 38:30

Switch# issu acceptversion 2 bootflash:new_image % Rollback timer stopped. Please issue the commitversion command. Switch# show issu rollback-timer Rollback Process State = Not in progress Configured Rollback Time = 45:00

Loading New Cisco IOS Software on the New Standby Supervisor Engine

This task explains how to load new version of Cisco IOS software to the new standby supervisor engine.

Perform this task at the active supervisor engine:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# issu commitversion standby-slot-number [standby-image-new]

Allows the new Cisco IOS software image to be loaded into the standby supervisor engine.

Step 3 Switch# show redundancy [states] Displays redundancy facility state information.

Step 4 Switch# show issu state [detail] Displays the state of the during the ISSU process. At this point in the ISSU process, use this command to check that a switchover occurs to slot 2.

Page 211 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 211 · click to enlarge
Page 211

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

This example shows how to reset and reload the current standby supervisor engine (slot 1) with the new Cisco IOS software version. After entering the commitversion command, the standby supervisor engine boots in the Standby Hot state.

Switch> enable Switch# issu commitversion 1 slavebootflash:new_image

Wait till standby supervisor is reloaded with the new image. Then apply the following:

Switch# show redundancy states 00:17:12: %RF-5-RF_TERMINAL_STATE: Terminal state reached for (SSO) my state = 13 -ACTIVE peer state = 8 -STANDBY HOT Mode = Duplex Unit = Secondary Unit ID = 2

Redundancy Mode (Operational) = Stateful Switchover Redundancy Mode (Configured) = Stateful Switchover Redundancy State = Stateful Switchover Maintenance Mode = Disabled Manual Swact = enabled Communications = Up

client count = 39 client_notification_TMR = 240000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 0 keep_alive threshold = 18 RF debug mask = 0x0

Switch# show redundancy Redundant System Information : Available system uptime = 41 minutes Switchovers system experienced = 1 Standby failures = 1 Last switchover reason = user forced

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information : Active Location = slot 2 Current Software state = ACTIVE Uptime in current state = 29 minutes Image Version = Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 12.2(31)SGA, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Tue 05-Sep-06 16:16 by sanjdas BOOT = bootflash:new_image,12;bootflash:old_image,1; Configuration register = 0x822

Peer Processor Information : Standby Location = slot 1 Current Software state = STANDBY HOT Uptime in current state = 12 minutes

Page 212 of the Cisco Systems 4500 user manual — Prerequisites
Page 212 · click to enlarge
Page 212

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Image Version = Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICES-M), Version 12.2(31)SGA, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Tue 05-Sep-06 16:16 by sanjdas BOOT = bootflash:new_image,12;bootflash:old_image,1; Configuration register = 0x822

Switch# show issu state detail Slot = 2 RP State = Active ISSU State = Init Boot Variable = bootflash:new_image,12;bootflash:old_image,1; Operating Mode = Stateful Switchover Primary Version = N/A Secondary Version = N/A Current Version = bootflash:new_image

Slot = 1 RP State = Standby ISSU State = Init Boot Variable = bootflash:new_image,12;bootflash:old_image,1; Operating Mode = Stateful Switchover Primary Version = N/A Secondary Version = N/A Current Version = bootflash:new_image

The ISSU process has been completed. At this stage, any further Cisco IOS software version upgrade or downgrade requires that a new ISSU process be invoked.

Using changeversion to Automate an ISSU Upgrade

This task describes how to use the issu changeversion command to perform a one step ISSU upgrade.

Prerequisites

  • Ensure that the new version of Cisco IOS software image is already present in the file system of both the active and standby supervisor engines. Also ensure that appropriate boot parameters (BOOT string and config-register) are set for the active and standby supervisor engines
  • Optionally, perform additional tests and commands to determine the current state of peers and interfaces for later comparison.
  • Ensure the system (both active and standby supervisor engines) is in SSO redundancy mode. If the system is in RPR mode, you can still upgrade the system using the ISSU CLI commands, but the system will experience extended packet loss during the upgrade.'

Refer to the Stateful Switchover document for more details on how to configure SSO mode on supervisor engines (refer to Chapter 8, “Configuring Supervisor Engine Redundancy Using RPR and SSO”).

  • For ISSU to function, the IOS XE software image file names on the active and standby supervisor engines must match.
Page 213 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 213 · click to enlarge
Page 213

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

Perform the following steps at the active supervisor engine:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 Switch# issu changeversion [active-slot active-image-new]] [standby-slot [standby-image-new]] [at hh:mm | in hh:mm] [quick]

Initiates a single-step complete upgrade process cycle. Performs the logic of the four standard commands (issu loadversion, issu runversion, issu acceptversion, and issu commitversion) without user intervention.

active-slot—Defines the active slot number.

new-image—Specifies IOS XE image URL to be upgraded to.

standby-slot—Defines the standby slot number.

standby-image—Specifies the standby IOS XE image URL.

at hh:mm—Schedules an ISSU upgrade to begin in the future. Provides an exact time (hh:mm, 24 hour format) in the next 24 hours when the upgrade will occur.

in hh:mm—Schedules an ISSU upgrade to begin in the future. Provides the number of hours and minutes (hh:mm format) that will elapse before an upgrade will occur (99:59 max).

quick—Upon switchover, boots the standby supervisor engine with the new, rather than old, image for faster upgrade.

Step 3 Switch# show issu state [detail] Displays the state of the during the ISSU process. At this point in the ISSU process, use this command to check that the standby supervisor engine is loaded and is in SSO mode.

Step 4 Switch# show redundancy [states] Displays redundancy facility state information.

This example shows how to initiate an ISSU upgrade process using the issu changeversion command on slot number 5, the slot for the current active supervisor engine. The show issu state detail and show redundancy command output is included to show the supervisor state before and after the upgrade procedure.

Switch> enable Switch# show issu state detail Slot = 5 RP State = Active ISSU State = Init Operating Mode = Stateful Switchover Current Image = bootflash:x.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Page 214 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 214 · click to enlarge
Page 214

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Slot = 6 RP State = Standby ISSU State = Init Operating Mode = Stateful Switchover Current Image = bootflash:x.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Switch# show redundancy Redundant System Information :

Available system uptime = 12 minutes Switchovers system experienced = 0 Standby failures = 0 Last switchover reason = none

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information : Active Location = slot 5 Current Software state = ACTIVE Uptime in current state = 9 minutes Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.00.00.1.68 CISCO UNIVERSAL DEVELOPMENT K10 IOSD TEST VERSION Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Sun 29-Aug-10 03:57 by gsbuprod Configuration register = 0x2920

Peer Processor Information : Standby Location = slot 6 Current Software state = STANDBY HOT Uptime in current state = 2 minutes Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.00.00.1.68 CISCO UNIVERSAL DEVELOPMENT K10 IOSD TEST VERSION Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Sun 29-Aug-10 03:57 by gsbuprod Configuration register = 0x2920

Switch# issu changeversion bootflash:y.bin % 'issu changeversion' is now executing 'issu loadversion' % issu loadversion executed successfully, Standby is being reloaded

% changeversion finished executing loadversion, waiting for standby to reload and reach SSO ...

*Feb 25 20:41:00.479: %INSTALLER-7-ISSU_OP_SUCC: issu changeversion is now executing 'issu runversion'

Page 215 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 215 · click to enlarge
Page 215

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

*Feb 25 20:41:03.639: %INSTALLER-7-ISSU_OP_SUCC: issu changeversion successfully executed 'issu runversion'

Look at the console of "new" ACTIVE supervisor engine.

*Feb 25 20:47:39.859: %RF-5-RF_TERMINAL_STATE: Terminal state reached for (SSO) *Feb 25 20:47:39.971: %INSTALLER-7-ISSU_OP_SUCC: issu changeversion is now executing 'issu commitversion'

*Feb 25 20:54:16.092: %HA_CONFIG_SYNC-6-BULK_CFGSYNC_SUCCEED: Bulk Sync succeeded *Feb 25 20:54:16.094: %RF-5-RF_TERMINAL_STATE: Terminal state reached for (SSO) Switch#

Switch# show issu state detail

Slot = 6 RP State = Active ISSU State = Init Operating Mode = Stateful Switchover Current Image = bootflash:y.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Slot = 5 RP State = Standby ISSU State = Init Operating Mode = Stateful Switchover Current Image = bootflash:y.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Switch# show redundancy Redundant System Information :

Available system uptime = 12 minutes Switchovers system experienced = 0 Standby failures = 0 Last switchover reason = none

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information------------------------------ Active Location = slot 6
Page 216 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 216 · click to enlarge
Page 216

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Current Software state = ACTIVE Uptime in current state = 9 minutes Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.00.00.1.68 CISCO UNIVERSAL DEVELOPMENT K10 IOSD TEST VERSION Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Sun 29-Aug-10 03:57 by gsbuprod Configuration register = 0x2920

Peer Processor Information : Standby Location = slot 5 Current Software state = STANDBY HOT Uptime in current state = 2 minutes Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.00.00.1.68 CISCO UNIVERSAL DEVELOPMENT K10 IOSD TEST VERSION Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Sun 29-Aug-10 03:57 by gsbuprod Configuration register = 0x2920

This example shows how to use issu changeversion with the at command option to schedule an ISSU upgrade procedure to automatically start at the specified time. This example specifies that the ISSU upgrade should be started at 16:30 (24 hour format). The show issu state detail and show redundancy command output is included to show the supervisor state before and after the issu changeversion command was entered.

Switch> enable Switch# show issu state detail Slot = 5 RP State = Active ISSU State = Init Operating Mode = Stateful Switchover Current Image = bootflash:x.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Slot = 6 RP State = Standby ISSU State = Init Operating Mode = Stateful Switchover Current Image = bootflash:x.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Switch# show redundancy Redundant System Information :

Available system uptime = 12 minutes Switchovers system experienced = 0 Standby failures = 0 Last switchover reason = none

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information------------------------------ Active Location = slot 5
Page 217 of the Cisco Systems 4500 user manual — Aborting a Software Upgrade During ISSU
Page 217 · click to enlarge
Page 217

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

Current Software state = ACTIVE Uptime in current state = 9 minutes Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.00.00.1.68 CISCO UNIVERSAL DEVELOPMENT K10 IOSD TEST VERSION Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Sun 29-Aug-10 03:57 by gsbuprod Configuration register = 0x2920

Peer Processor Information : Standby Location = slot 6 Current Software state = STANDBY HOT Uptime in current state = 2 minutes Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.00.00.1.68 CISCO UNIVERSAL DEVELOPMENT K10 IOSD TEST VERSION Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Sun 29-Aug-10 03:57 by gsbuprod Configuration register = 0x2920

Switch# issu changeversion 5 bootflash:y.bin 6 slavebootflash:y at 16:30 % 'issu changeversion' was executed at [ Apr 12 16:27:43 ]. % The planned ISSU changeversion is to occur in (hh:mm:ss) [ 00:03:00 ] at [ Apr 12 16:30:43 ]. % Current system time: [ Apr 12 16:27:43 ] % Planned upgrade image: bootflash:y.bin % To cancel the planned upgrade, please execute 'issu abortversion'

Switch# show issu state detail Slot = 5 RP State = Active ISSU State = Init Changeversion = TRUE Operating Mode = Stateful Switchover Current Image = bootflash:x.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Slot = 6 RP State = Standby ISSU State = Init Changeversion = TRUE Operating Mode = Stateful Switchover Current Image = bootflash:x.bin Pre-ISSU (Original) Image = N/A Post-ISSU (Targeted) Image = N/A

Aborting a Software Upgrade During ISSU

You can abort the ISSU process at any stage manually (prior to entering the issu commitversion command) by entering the issu abortversion command. The ISSU process also aborts on its own if the software detects a failure.

Page 218 of the Cisco Systems 4500 user manual — Configuring the Rollback Timer to Safeguard Against Upgrade Issues
Page 218 · click to enlarge
Page 218

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

If you abort the process after you enter the issu loadversion command, the standby supervisor engine is reset and reloaded with the original software.

If the process is aborted after you enter either the issu runversion or issu acceptversion command, then a second switchover is performed to the new standby supervisor engine that is still running the original software version. The supervisor engine that had been running the new software is reset and reloaded with the original software version.

The following task describes how to abort the ISSU process before you complete the ISSU process with the issu commitversion command.

Perform the following task on the active supervisor engine:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# issu abortversion active slot [active-image-new]

Cancels the ISSU upgrade or downgrade process in progress and restores the router to its state before the process had started.

This example shows how to abort the ISSU process on slot number 2, the slot for the current active supervisor engine:

Switch> enable Switch# issu abortversion 2

Configuring the Rollback Timer to Safeguard Against Upgrade Issues

Cisco IOS software maintains an ISSU rollback timer, to safeguard against an upgrade that may leave the new active supervisor engine in a state in which communication with the standby supervisor engine is severed.

You may want to configure the rollback timer to fewer than 45 minutes (the default) so that the user need not wait in case the new software is not committed or the connection to the switch was lost while it was in runversion mode. A user may want to configure the rollback timer to more than 45 minutes in order to have enough time to verify the operation of the new Cisco IOS software before committing the new image.

Once you are satisfied that the ISSU process has been successful and you want to remain in the current state, you must indicate acceptance by entering the issu acceptversion command, which stops the rollback timer. Entering the issu acceptversion command is extremely important in advancing the ISSU process.

Page 219 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 219 · click to enlarge
Page 219

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

Entering the issu commitversion command at this stage is equal to entering both the issu acceptversion and the issu commitversion commands. Use the issu commitversion command if you do not intend to run in the current state now and are satisfied with the new software version.

Perform this task to configure the rollback timer:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# issu set rollback-timer hh::mm::ss

Configures the rollback timer value.

Step 4 Switch(config)# exit Returns the user to privileged EXEC mode.

Step 5 Switch# show issu rollback-timer Displays the current setting of the ISSU rollback timer.

This example shows how to set the rollback timer to 3600 seconds:

Switch> enable Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# issu set rollback-timer 3600 % Rollback timer value set to [ 3600 ] seconds

Switch# show issu rollback-timer Rollback Process State = Not in progress Configured Rollback Time = 60:00

The rollback timer cannot be set in LV state, as the following example illustrates:

Switch# show issu state detail Slot = 1 RP State = Active ISSU State = Load Version Boot Variable = bootflash:old_image,12 Operating Mode = RPR Primary Version = bootflash:old_image Secondary Version = bootflash:new_image Current Version = bootflash:old_image

Slot = 2 RP State = Standby ISSU State = Load Version Boot Variable = bootflash:new_image,12;bootflash:old_image,12 Operating Mode = RPR Primary Version = bootflash:old_image Secondary Version = bootflash:new_image Current Version = bootflash:new_image

Switch# show issu rollback-timer Rollback Process State = Not in progress Configured Rollback Time = 60:00

Switch(config)# exit

Page 220 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 220 · click to enlarge
Page 220

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# issu set rollback-timer 20 % ISSU state should be [ init ] to set the rollback timer

Displaying ISSU Compatibility Matrix Information

The ISSU compatibility matrix contains information about other software images about the version in question. This compatibility matrix represents the compatibility of the two software versions, one running on the active and the other on the standby supervisor engine, and the matrix allows the system to determine the highest operating mode it can achieve. This information helps the user identify whether to use ISSU.

Perform this task to display information about the ISSU compatibility matrix:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# show issu comp-matrix {negotiated | stored | xml}

Displays information regarding the ISSU compatibility matrix.

  • negotiated —Displays negotiated compatibility matrix information.
  • stored —Displays negotiated compatibility matrix information .
  • xml —Displays negotiated compatibility matrix information in XML format.

This example shows how to display negotiated information regarding the compatibility matrix:

Switch> enable Switch# show issu comp-matrix negotiated

CardTypeWS-C4507R(112), Uid: 2, Image Ver: 12.2(31)SGA Image Name: cat4500-ENTSERVICES-M

Cid Eid Sid pSid pUid Compatibility ======================================================= 2 1 262151 3 1 COMPATIBLE 3 1 262160 5 1 COMPATIBLE 4 1 262163 9 1 COMPATIBLE 5 1 262186 25 1 COMPATIBLE 7 1 262156 10 1 COMPATIBLE 8 1 262148 7 1 COMPATIBLE 9 1 262155 1 1 COMPATIBLE 10 1 262158 2 1 COMPATIBLE 11 1 262172 6 1 COMPATIBLE 100 1 262166 13 1 COMPATIBLE 110 113 262159 14 1 COMPATIBLE 200 1 262167 24 1 COMPATIBLE 2002 1 - - - UNAVAILABLE 2003 1 262185 23 1 COMPATIBLE 2004 1 262175 16 1 COMPATIBLE 2008 1 262147 26 1 COMPATIBLE 2008 1 262168 27 1 COMPATIBLE

Page 221 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 221 · click to enlarge
Page 221

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

2010 1 262171 32 1 COMPATIBLE 2012 1 262180 31 1 COMPATIBLE 2021 1 262170 41 1 COMPATIBLE 2022 1 262152 42 1 COMPATIBLE 2023 1 - - - UNAVAILABLE 2024 1 - - - UNAVAILABLE 2025 1 - - - UNAVAILABLE 2026 1 - - - UNAVAILABLE 2027 1 - - - UNAVAILABLE 2028 1 - - - UNAVAILABLE 2054 1 262169 8 1 COMPATIBLE 2058 1 262154 29 1 COMPATIBLE 2059 1 262179 30 1 COMPATIBLE 2067 1 262153 12 1 COMPATIBLE 2068 1 196638 40 1 COMPATIBLE 2070 1 262145 21 1 COMPATIBLE 2071 1 262178 11 1 COMPATIBLE 2072 1 262162 28 1 COMPATIBLE 2073 1 262177 33 1 COMPATIBLE 2077 1 262165 35 1 COMPATIBLE 2078 1 196637 34 1 COMPATIBLE 2079 1 262176 36 1 COMPATIBLE 2081 1 262150 37 1 COMPATIBLE 2082 1 262161 39 1 COMPATIBLE 2083 1 262184 20 1 COMPATIBLE 2084 1 262183 38 1 COMPATIBLE 4001 101 262181 17 1 COMPATIBLE 4002 201 262164 18 1 COMPATIBLE 4003 301 262182 19 1 COMPATIBLE 4004 401 262146 22 1 COMPATIBLE 4005 1 262149 4 1 COMPATIBLE

Message group summary: Cid Eid GrpId Sid pSid pUid Nego Result ============================================================= 2 1 1 262151 3 1 Y 3 1 1 262160 5 1 Y 4 1 1 262163 9 1 Y 5 1 1 262186 25 1 Y 7 1 1 262156 10 1 Y 8 1 1 262148 7 1 Y 9 1 1 262155 1 1 Y 10 1 1 262158 2 1 Y 11 1 1 262172 6 1 Y 100 1 1 262166 13 1 Y 110 113 115 262159 14 1 Y 200 1 1 262167 24 1 Y 2002 1 2 - - - N - did not negotiate 2003 1 1 262185 23 1 Y 2004 1 1 262175 16 1 Y 2008 1 1 262147 26 1 Y 2008 1 2 262168 27 1 Y 2010 1 1 262171 32 1 Y 2012 1 1 262180 31 1 Y 2021 1 1 262170 41 1 Y 2022 1 1 262152 42 1 Y 2023 1 1 - - - N - did not negotiate 2024 1 1 - - - N - did not negotiate 2025 1 1 - - - N - did not negotiate 2026 1 1 - - - N - did not negotiate 2027 1 1 - - - N - did not negotiate 2028 1 1 - - - N - did not negotiate 2054 1 1 262169 8 1 Y 2058 1 1 262154 29 1 Y

Page 222 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 222 · click to enlarge
Page 222

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

2059 1 1 262179 30 1 Y 2067 1 1 262153 12 1 Y 2068 1 1 196638 40 1 Y 2070 1 1 262145 21 1 Y 2071 1 1 262178 11 1 Y 2072 1 1 262162 28 1 Y 2073 1 1 262177 33 1 Y 2077 1 1 262165 35 1 Y 2078 1 1 196637 34 1 Y 2079 1 1 262176 36 1 Y 2081 1 1 262150 37 1 Y 2082 1 1 262161 39 1 Y 2083 1 1 262184 20 1 Y 2084 1 1 262183 38 1 Y 4001 101 1 262181 17 1 Y 4002 201 1 262164 18 1 Y 4003 301 1 262182 19 1 Y 4004 401 1 262146 22 1 Y 4005 1 1 262149 4 1 Y

List of Clients: Cid Client Name Base/Non-Base ================================================ 2 ISSU Proto client Base 3 ISSU RF Base 4 ISSU CF client Base 5 ISSU Network RF client Base 7 ISSU CONFIG SYNC Base 8 ISSU ifIndex sync Base 9 ISSU IPC client Base 10 ISSU IPC Server client Base 11 ISSU Red Mode Client Base 100 ISSU rfs client Base 110 ISSU ifs client Base 200 ISSU Event Manager clientBase 2002 CEF Push ISSU client Base 2003 ISSU XDR client Base 2004 ISSU SNMP client Non-Base 2008 ISSU Tableid Client Base 2010 ARP HA Base 2012 ISSU HSRP Client Non-Base 2021 XDR Int Priority ISSU cliBase 2022 XDR Proc Priority ISSU clBase 2023 FIB HWIDB ISSU client Base 2024 FIB IDB ISSU client Base 2025 FIB HW subblock ISSU clieBase 2026 FIB SW subblock ISSU clieBase 2027 Adjacency ISSU client Base 2028 FIB IPV4 ISSU client Base 2054 ISSU process client Base 2058 ISIS ISSU RTR client Non-Base 2059 ISIS ISSU UPD client Non-Base 2067 ISSU PM Client Base 2068 ISSU PAGP_SWITCH Client Non-Base 2070 ISSU Port Security clientNon-Base 2071 ISSU Switch VLAN client Non-Base 2072 ISSU dot1x client Non-Base 2073 ISSU STP Non-Base 2077 ISSU STP MSTP Non-Base 2078 ISSU STP IEEE Non-Base 2079 ISSU STP RSTP Non-Base 2081 ISSU DHCP Snooping clientNon-Base 2082 ISSU IP Host client Non-Base 2083 ISSU Inline Power client Non-Base

Page 223 of the Cisco Systems 4500 user manual — Displaying ISSU Compatibility Matrix Information
Page 223 · click to enlarge
Page 223

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

Performing the ISSU Process

2084 ISSU IGMP Snooping clientNon-Base 4001 ISSU C4K Chassis client Base 4002 ISSU C4K Port client Base 4003 ISSU C4K Rkios client Base 4004 ISSU C4K HostMan client Base 4005 ISSU C4k GaliosRedundancyBase

This example shows how to display stored information regarding the compatibility matrix:

Switch# show issu comp-matrix stored Number of Matrices in Table = 1 (1) Matrix for cat4500-ENTSERVICES-M(112) - cat4500-ENTSERVICES-M(112) ========================================== Start Flag (0xDEADBABE)

My Image ver: 12.2(53)SG Peer Version Compatibility 12.2(31)SGA5 Base(2) 12.2(44)SG Base(2) 12.2(31)SGA6 Base(2) 12.2(31)SGA7 Base(2) 12.2(46)SG Base(2) 12.2(44)SG1 Base(2) 12.2(31)SGA8 Base(2) 12.2(50)SG Dynamic(0) 12.2(31)SGA9 Base(2) 12.2(50)SG1 Dynamic(0) 12.2(50)SG2 Dynamic(0) 12.2(52)SG Dynamic(0) 12.2(31)SGA10 Base(2) 12.2(50)SG3 Dynamic(0) 12.2(53)SG Comp(3)

Dynamic(0) was introduced in Cisco IOS Release 12.2(50)SG with the Dynamic Image Version Compatibility (DIVC) feature. With DIVC, Dynamic(0) is stored instead of Incomp(1), Base(2), or Comp(3). Compatibility is determined during runtime when two different DIVC-capable images are running in the active and standby supervisor engines during ISSU.

For Catalyst 4500 switches, a value of Dynamic(0) in the stored compatibility-matrix normally results in Base(2) or Comp(3) upon rollback negotiation between the two images. You never observe Incomp(1) as long as the other image name is present in the stored compatibility matrix.

Displaying ISSU Compatibility Matrix Information

The ISSU compatibility matrix contains information about other IOS XE software releases and the version in question. This compatibility matrix represents the compatibility of the two software versions, one running on the active and the other on the standby supervisor engine, and the matrix allows the system to determine the highest operating mode it can achieve. This information helps the user identify whether to use ISSU.

This task shows how to display information about the ISSU compatibility matrix:

Page 224 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 224 · click to enlarge
Page 224

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Performing the ISSU Process

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode. Enter your password if prompted.

Step 2 Switch# show issu comp-matrix {negotiated | stored | xml}

Displays information regarding the ISSU compatibility matrix.

  • negotiated —Displays negotiated compatibility matrix information.
  • stored —Displays negotiated compatibility matrix information .
  • xml —Displays negotiated compatibility matrix information in XML format.

Step 3 Switch# show package compatibility Displays information regarding all client compatibility in the system.

This example shows how to display negotiated information regarding the compatibility matrix:

Switch> enable Switch# show issu comp-matrix negotiated

CardTypeWS-C4507R-E(182), Uid: 4, Image Ver: 03.00.00.1.68 Image Name: cat4500e-UNIVERSALK9-M

Cid Eid Sid pSid pUid Compatibility ======================================================= 2 1 131078 3 3 COMPATIBLE 3 1 131100 5 3 COMPATIBLE 4 1 131123 9 3 COMPATIBLE

Message group summary: Cid Eid GrpId Sid pSid pUid Nego Result ============================================================= 2 1 1 131078 3 3 Y 3 1 1 131100 5 3 Y 4 1 1 131123 9 3 Y

List of Clients: Cid Client Name Base/Non-Base ================================================ 2 ISSU Proto client Base 3 ISSU RF Base 4 ISSU CF client Base

Page 225 of the Cisco Systems 4500 user manual — Related Topic Document Title
Page 225 · click to enlarge
Page 225

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process

This example shows how to display stored information regarding the compatibility matrix:

Switch# show issu comp-matrix stored Number of Matrices in Table = 1

(1) Matrix for cat4500e-ENTSERVICESK9-M(182) - cat4500ex-ENTSERVICESK9-M(182) ========================================== Start Flag (0xDEADBABE)

My Image ver03.01.00.SG Peer Version Compatibility ------------ ------------- 03.01.00.SG Comp(3) Switch#

With Dynamic Image Version Compatibility (DIVC) , Dynamic(0) is stored instead of Incomp(1), Base(2), or Comp(3). Compatibility is determined during runtime when two different DIVC-capable images are running in the active and standby supervisor engines during ISSU.

For Catalyst 4500 switches, a value of Dynamic(0) in the stored compatibility-matrix normally results in Base(2) or Comp(3) upon run-time negotiation between the two software images. You never observe Incomp(1) as long as the other image name is present in the stored compatibility matrix.

This example shows how to display negotiated information regarding non-IOSd clients:

Switch# show package compatibility PackageName PeerPackageName ModuleName Compatibility rp_base rp_base aaa COMPATIBLE rp_base rp_base aaacommon COMPATIBLE rp_base rp_base access_policy COMPATIBLE rp_base rp_base app_sess COMPATIBLE rp_base rp_base app_sess_ios COMPATIBLE rp_base rp_base auth_mgr COMPATIBLE

Related Documents

Related Topic Document Title

Performing ISSU Cisco IOS SoftwareGuide to Performing In Service Software Upgrades

Information about Cisco Nonstop Forwarding Cisco Nonstop Forwarding

http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsnsf20s html

Information about Stateful Switchover Stateful Switchover

http://www.cisco.com/en/US/docs/ios/12_0s/feature/guide/sso120s html

ISSU and MPLS clients ISSU MPLS Clients

Related Documents

Page 226 of the Cisco Systems 4500 user manual — Configuring the Cisco IOS In-Service Software Upgrade Process
Page 226 · click to enlarge
Page 226

Chapter 5 Configuring the Cisco IOS In-Service Software Upgrade Process Related Documents

Page 227 of the Cisco Systems 4500 user manual — C H A P T E R
Page 227 · click to enlarge
Page 227

C H A P T E R

Configuring Interfaces

This chapter describes how to configure interfaces for the Catalyst 4500 series switches. It also provides guidelines, procedures, and configuration examples.

This chapter includes the following major sections:

  • About Interface Configuration, page 6-2
  • Using the interface Command, page 6-2
  • Configuring a Range of Interfaces, page 6-4
  • Using the Ethernet Management Port, page 6-6
  • Defining and Using Interface-Range Macros, page 6-10
  • Deploying SFP+ in X2 Ports, page 6-11
  • Deploying 10-Gigabit Ethernet and Gigabit Ethernet SFP Ports on Supervisor Engine V-10GE, page 6-12
  • Deploying 10-Gigabit Ethernet or Gigabit Ethernet Ports on Supervisor Engine 6-E, Supervisor Engine 6L-E and WS-X4606-X2-E, page 6-13
  • Invoking Shared-Backplane Uplink Mode on Supervisor Engine 6-E, page 6-16
  • Digital Optical Monitoring Transceiver Support, page 6-16
  • Configuring Optional Interface Features, page 6-17
  • Understanding Online Insertion and Removal, page 6-30
  • Monitoring and Maintaining the Interface, page 6-30

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 228 of the Cisco Systems 4500 user manual — Using the interface Command
Page 228 · click to enlarge
Page 228

Chapter 6 Configuring Interfaces About Interface Configuration

About Interface Configuration

By default, all interfaces are enabled. The 10/100-Mbps Ethernet interfaces autonegotiate connection speed and duplex. The 10/100/1000-Mbps Ethernet interfaces negotiate speed, duplex, and flow control. The 1000-Mbps Ethernet interfaces negotiate flow control only. Autonegotiation automatically selects the fastest speed possible on that port for the given pair. If a speed is explicitly stated for an interface, that interface defaults to half duplex unless it is explicitly set for full duplex.

Many features are enabled on a per-interface basis. When you enter the interface command, you must specify the following:

  • Interface type:

– Fast Ethernet (use the fastethernet keyword)

– Gigabit Ethernet (use the gigabitethernet keyword)

– 10-Gigabit Ethernet (use the tengigabitethernet keyword)

  • Slot number—The slot in which the interface module is installed. Slots are numbered starting with 1, from top to bottom.
  • Interface number — The interface number on the module. The interface numbers always begin with 1. When you are facing the front of the switch, the interfaces are numbered from left to right.

You can identify interfaces by physically checking the slot/interface location on the switch. You can also use the Cisco IOS show commands to display information about a specific interface or all the interfaces.

Using the interface Command

These general instructions apply to all interface configuration processes:

Step 1 At the privileged EXEC prompt, enter the configure terminal command to enter global configuration mode:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#

Step 2 In global configuration mode, enter the interface command. Identify the interface type and the number of the connector on the interface card. The following example shows how to select Fast Ethernet, slot 5, interface 1:

Switch(config)# interface fastethernet 5/1 Switch(config-if)#

Step 3 Interface numbers are assigned at the factory at the time of installation or when modules are added to a system. Enter the show interfaces EXEC command to see a list of all interfaces installed on your switch. A report is provided for each interface that your switch supports, as shown in this display:

Switch(config-if)#Ctrl-Z Switch#show interfaces Vlan1 is up, line protocol is down Hardware is Ethernet SVI, address is 0004.dd46.7aff (bia 0004.dd46.7aff) MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output never, output hang never

Page 229 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 229 · click to enlarge
Page 229

Chapter 6 Configuring Interfaces

Using the interface Command

Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 interface resets 0 output buffer failures, 0 output buffers swapped out GigabitEthernet1/1 is up, line protocol is down Hardware is Gigabit Ethernet Port, address is 0004.dd46.7700 (bia 0004.dd46.7700) MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Auto-duplex, Auto-speed ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out GigabitEthernet1/2 is up, line protocol is down Hardware is Gigabit Ethernet Port, address is 0004.dd46.7701 (bia 0004.dd46.7701) MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Auto-duplex, Auto-speed ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out --More--

Page 230 of the Cisco Systems 4500 user manual — Configuring a Range of Interfaces
Page 230 · click to enlarge
Page 230

Chapter 6 Configuring Interfaces Configuring a Range of Interfaces

Step 4 To begin configuring Fast Ethernet interface 5/5, as shown in the following example, enter the interface keyword, interface type, slot number, and interface number in global configuration mode:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/5 Switch(config-if)#

Step 5 Follow each interface command with the interface configuration commands your particular interface requires. The commands you enter define the protocols and applications that run on the interface. The commands are collected and applied to the interface command until you enter another interface command or press Ctrl-Z to exit interface configuration mode and return to privileged EXEC mode.

Step 6 After you configure an interface, check its status by using the EXEC show commands listed in the “Monitoring and Maintaining the Interface” section on page 6-30.

Configuring a Range of Interfaces

The interface-range configuration mode allows you to configure multiple interfaces with the same configuration parameters. When you enter the interface-range configuration mode, all command parameters you enter are attributed to all interfaces within that range until you exit interface-range configuration mode.

To configure a range of interfaces with the same configuration, enter this command:

Switch(config)# interface range {vlan vlan_ID - vlan_ID} | {{fastethernet | gigabitethernet | tengigabitethernet | macro macro_name} slot/interface - interface} [, {vlan vlan_ID - vlan_ID} {{fastethernet | gigabitethernet | tengigabitethernet | macro macro_name} slot/interface - interface}]

Selects the range of interfaces to be configured. Note the following:

  • You are required to enter a space before the dash.
  • You can enter up to five comma-separated ranges.
  • You are not required to enter spaces before or after the comma.
Page 231 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 231 · click to enlarge
Page 231

Chapter 6 Configuring Interfaces

Configuring a Range of Interfaces

This example shows how to reenable all Fast Ethernet interfaces 5/1 to 5/5:

Switch(config)# interface range fastethernet 5/1 - 5 Switch(config-if-range)# no shutdown Switch(config-if-range)# *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/1, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/2, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/3, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/4, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 3, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 4, changed state to up Switch(config-if)#

This example shows how to use a comma to add different interface type strings to the range to reenable all Fast Ethernet interfaces ranging from 5/1 to 5/5 and both Gigabit Ethernet interfaces 1/1 and 1/2:

Switch(config-if)# interface range fastethernet 5/1 - 5, gigabitethernet 1/1 - 2 Switch(config-if)# no shutdown Switch(config-if)# *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/2, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/3, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/4, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/5, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet1/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet1/2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 5, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 3, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 4, changed state to up Switch(config-if)#

Note If you enter multiple configuration commands while you are in interface-range configuration mode, each command is run as it is entered (they are not batched together and run after you exit interface-range configuration mode). If you exit interface-range configuration mode while the commands are being run, some commands might not be run on all interfaces in the range. Wait until the command prompt is displayed before exiting interface-range configuration mode.

Page 232 of the Cisco Systems 4500 user manual — Understanding the Ethernet Management Port
Page 232 · click to enlarge
Page 232

Chapter 6 Configuring Interfaces Using the Ethernet Management Port

Using the Ethernet Management Port

This section has this information:

  • Understanding the Ethernet Management Port, page 6-6
  • Supported Features on the Ethernet Management Port, page 6-9
  • Configuring the Ethernet Management Port, page 6-10

Understanding the Ethernet Management Port

The Ethernet management port, also referred to as the Fa1 or fastethernet1 port, is a Layer 3 host port to which you can connect a PC. Use the Ethernet management port instead of the switch console port for network management. When managing a switch, connect the PC to the Ethernet management port on a Catalyst 4500 series switch. (Figure 6-1).

Figure 6-1 Connecting a Switch to a PC

By default, the Ethernet management port is enabled. The switch cannot route packets from the Ethernet management port to a network port, and from the network port to the Ethernet port. To obtain these, the Fa1 interface is automatically placed in a separate routing domain (or VRF domain), called mgmtVrf. (You observe the ip Vrf forwarding mgmtVrf line in the running configuration when you boot up.) For details, read the “Fa1 Interface and mgmtVrf” section on page 6-7.

Even though the Ethernet management port does not support routing, you might need to enable routing protocols on the port. As illustrated in Figure 6-2, you must enable routing protocols on the Ethernet management port when the PC is multiple hops away from the switch and the packets must pass through multiple Layer 3 devices to reach the PC.

Show 5 more labels / short text on this page
Ethernet management port · Switch PC · Network ports · Network · cloud
Page 233 of the Cisco Systems 4500 user manual — Fa1 Interface and mgmtVrf
Page 233 · click to enlarge
Page 233

Chapter 6 Configuring Interfaces

Using the Ethernet Management Port

Figure 6-2 Network with Routing Protocols Enabled

The specific implementation of Ethernet management port depends on the redundancy model you are applying.

For details on configuring SSO and ISSU, refer to Chapter 8, “Configuring Supervisor Engine Redundancy Using RPR and SSO” and Chapter 5, “Configuring the Cisco IOS In-Service Software Upgrade Process”.

Fa1 Interface and mgmtVrf

All features that use fa1 now need to be VRF-aware.

On bootup the fa1 port assumes the following default configuration:

! interface FastEthernet1 ip vrf forwarding mgmtVrf speed auto duplex auto

Switch# show ip vrf Name Default RD Interfaces mgmtVrf Fa1

Because the management port is placed in mgmtVrf, you should be aware of the VRF aware commands required for the following tasks:

  • Ping, page 6-8
  • TraceRoute, page 6-8
Show 9 more labels / short text on this page
Ethernet management port · Switch PC · Out-of-bound · network · Network ports · Network · cloud · ip unicast-routing · ip vrf mgmtVrf
Page 234 of the Cisco Systems 4500 user manual — TFTP
Page 234 · click to enlarge
Page 234

Chapter 6 Configuring Interfaces Using the Ethernet Management Port

  • Telnet, page 6-8
  • TFTP, page 6-8
  • FTP, page 6-9
  • SSH, page 6-9

Ping

If you want to ping an IP address that is reachable through an fa1 port, enter the following command:

Switch# ping vrf mgmtVrf ip address For example:

Switch# ping vrf mgmtVrf 20.20.20.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 20.20.20.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

TraceRoute

Switch# traceroute vrf mgmtVrf ip address

For example:

Eg: Switch# traceroute vrf mgmtVrf 20.20.20.1 Type escape sequence to abort. Tracing the route to 20.20.20.1 1 20.20.20.1 0 msec 0 msec *

Telnet

If you want to Telnet to a remote switch through the Fa1 port, enter the following command:

Switch# telnet word /vrf mgmtVrf word IP address or hostname of a remote system

Following is an example illustrating how to use this command:

Switch# telnet 20.20.20.1 /vrf mgmtVrf Trying 20.20.20.1 ... Open User Access Verification Password: switch> en Password: switch#

TFTP

If you want to use Fa1 port for TFTP operation, configure the Fa1 port as the source interface for TFTP as follows:

Switch(config)# ip tftp source-interface fastEthernet1

Page 235 of the Cisco Systems 4500 user manual — Supported Features on the Ethernet Management Port
Page 235 · click to enlarge
Page 235

Chapter 6 Configuring Interfaces

Using the Ethernet Management Port

FTP

If you want to use an Fa1 port for an FTP operation, configure the Fa1 port as the source interface for FTP as follows:

Switch(config)# ip ftp source-interface fastEthernet1

SSH

If you want initiate SSH from your switch through the Fa1 port, enter the following command:

Switch# ssh –l login name -vrf mgmtVrf ip address

For example:

Switch# ssh –l xyz -vrf mgmtVrf 20.20.20.1

SSO Model

On a redundant chassis, management port behavior differs from that of a standard Ethernet port in that each supervisor engine possesses a management port, and only the port on the active supervisor engine is enabled. The management port on the standby supervisor engine is always disabled; it cannot switch any kind of traffic.

When a switchover occurs, the management port of the standby supervisor engine (now, active) is enabled and can be used to switch traffic, while the management port on the “old” active supervisor engine is disabled.

ISSU Model

In SSO mode, the running configurations on the active and standby supervisor engines must match. You cannot enable the management port on a redundant chassis if one of the two supervisor engines is running an Cisco IOS image prior to Cisco IOS Release 12.2(50)SG (wherein a management port is not supported).

When you perform an ISSU upgrade or downgrade between Cisco IOS Release 12.2(50)SG and a software image prior to Cisco IOS Release 12.2(50)SG, we automatically disable the management port. The port configuration is restored when both software images running on the supervisor engines are at least Cisco IOS Release 12.2(50)SG. A warning message is also displayed.

Supported Features on the Ethernet Management Port

The Ethernet management port supports these features:

  • Express setup
  • Network Assistant
  • Telnet with passwords
  • TFTP
Page 236 of the Cisco Systems 4500 user manual — Defining and Using Interface-Range Macros
Page 236 · click to enlarge
Page 236

Chapter 6 Configuring Interfaces Defining and Using Interface-Range Macros

  • Secure Shell (SSH)
  • DHCP-based autoconfiguration
  • SNMP (only the ENTITY-MIB and the IF-MIB)
  • IP ping
  • Interface features

– Speed—10 Mb/s, 100 Mb/s, 1000Mb/s, and autonegotiation

– Duplex mode—Full, half, and autonegotiation

  • Cisco Discovery Protocol (CDP) (only on WS-C4900M and WS-C4948)
  • IPv4 access control lists (ACLs)
  • Routing protocols (only on WS-C4900M and WS-C4948)
  • AAA

Configuring the Ethernet Management Port

To specify the Ethernet management port, enter fastethernet1.

To disable the port, use the shutdown interface configuration command. To enable the port, use the no shutdown interface configuration command.

To determine the link status to the PC, you can monitor the LED for the Ethernet management port:

  • The LED is green (on) when the link is active.
  • The LED is off when the link is down.
  • The LED is amber when there is a POST failure.

To display the link status, use the show interfaces fastethernet 1 privileged EXEC command.

Defining and Using Interface-Range Macros

You can define an interface-range macro to automatically select a range of interfaces for configuration. Before using the macro keyword in the interface-range macro command string, you must define the macro.

– Loopback detection

Page 237 of the Cisco Systems 4500 user manual — Deploying SFP+ in X2 Ports
Page 237 · click to enlarge
Page 237

Chapter 6 Configuring Interfaces

Deploying SFP+ in X2 Ports

To define an interface-range macro, enter this command:

This example shows how to define an interface-range macro named enet_list to select Fast Ethernet

Switch(config)# define interface-range macro_name {vlan vlan_ID - vlan_ID} | {{fastethernet | gigabitethernet} slot/interface - interface} [, {vlan vlan_ID - vlan_ID} {{fastethernet | gigabitethernet} slot/interface - interface}]

Defines the interface-range macro and saves it in the running configuration file.

interfaces 5/1 through 5/4:

Switch(config)# define interface-range enet_list fastethernet 5/1 - 4

To show the defined interface-range macro configuration, enter this command:

Switch# show running-config Shows the defined interface-range macro configuration.

This example shows how to display the defined interface-range macro named enet_list:

Switch# show running-config | include define define interface-range enet_list FastEthernet5/1 - 4 Switch#

To use an interface-range macro in the interface range command, enter this command:

Switch(config)# interface range macro name

Selects the interface range to be configured using the values saved in a named interface-range macro.

This example shows how to change to the interface-range configuration mode using the interface-range macro enet_list:

Switch(config)# interface range macro enet_list Switch(config-if)#

Deploying SFP+ in X2 Ports

Page 238 of the Cisco Systems 4500 user manual — Deploying 10-Gigabit Ethernet and Gigabit Ethernet SFP Ports on Supervisor Engine V-10GE
Page 238 · click to enlarge
Page 238

Chapter 6 Configuring Interfaces Deploying 10-Gigabit Ethernet and Gigabit Ethernet SFP Ports on Supervisor Engine V-10GE

To use an SFP+ in an X2 port to obtain 10-Gigabit Ethernet bandwidth, the Catalyst 4500 series switch supports OneX Convertor modules. When you plug a OneX Convertor module into an X2 port, it converts the X2 port into an SFP+ port into which you can plug in an SFP+. An SFP+ in a OneX Convertor module provides the same functionality as an X2 and maintains the same port numbering.

The output for the show idprom tengigabitethernet slot/interface command displays the contents of both the SFP+ and the OneX Convertor module SEEPROMs when an SFP+ in a OneX Convertor module is plugged into an X2 port.

Deploying 10-Gigabit Ethernet and Gigabit Ethernet SFP Ports on Supervisor Engine V-10GE

Prior to Cisco IOS Release 12.2(25)SG, the Cisco Catalyst 4500 Supervisor Engine V-10GE allowed you to enable either the dual wire-speed 10-Gigabit Ethernet ports or four alternatively wired Gigabit Ethernet SFP uplink ports.

Beginning with Cisco IOS Release 12.2(25)SG, you could simultaneously deploy the dual 10-Gigabit Ethernet ports and the four Gigabit Ethernet SFP ports on the Catalyst 4503, Catalyst 4506, and Catalyst 4507R chassis.

When you deploy a Catalyst 4510R chassis, one of the following configurations is supported:

  • Dual 10-Gigabit Ethernet ports (X2 optics) only.
  • Four Gigabit Ethernet ports (SFP optics) only.
  • Both the dual 10-Gigabit Ethernet and the four Gigabit Ethernet ports. The tenth slot (Flex-Slot) only supports a 2-port gigabit interface converter (GBIC) line card (WS-X4302-GB) when in this mode.
  • You cannot place a line card with a backplane traffic capacity exceeding 6 Gbps in slots 8, 9, and 10 of a Catalyst 4510R-E chassis when used with a Supervisor Engine 6-E or Supervisor Engine 6L-E.

To select the 10-Gigabit Ethernet or the Gigabit Ethernet SFP uplink port, perform this task:

Step 1 Switch# configure terminal Establishes global configuration mode.

Step 2 Switch(config)# hw-module uplink select [all | gigabitethernet | tengigabitethernet]

Selects the port type to enable.

Page 239 of the Cisco Systems 4500 user manual — SFP 13 14 15 16 17 18
Page 239 · click to enlarge
Page 239

Chapter 6 Configuring Interfaces

Deploying 10-Gigabit Ethernet or Gigabit Ethernet Ports on Supervisor Engine 6-E, Supervisor Engine 6L-E and

with the new uplink mode into flash memory, the uplink mode must be changed to the new uplink mode through the command interface before the system is power cycled. This ensures that the system comes up in the new uplink mode.

The following example shows how to enable both 10-Gigabit Ethernet and Gigabit Ethernet SFP uplink ports on a Catalyst 4510R series switch:

Switch# configure terminal Switch(config)# hw-module uplink select all Warning: This configuration mode will place slot 10 in flex slot mode

Deploying 10-Gigabit Ethernet or Gigabit Ethernet Ports on Supervisor Engine 6-E, Supervisor Engine 6L-E and WS-X4606-X2-E

To increase the flexibility of X2 ports on the Supervisor Engine 6-E, Supervisor Engine 6L-E, and WS-X4606-X2-E, the Catalyst 4500 series switch as well as Catalyst 4900M and Catalyst 4948E support TwinGig Convertor modules. When you plug a TwinGig Convertor module into an X2 hole, it converts a single X2 hole (capable of holding one pluggable X2 optic) into two SFP holes (capable of holding two pluggable SFP optics). This enables you to have 10-Gigabit ports and 1-Gigabit ports on the same line card. It also allows you to use Gigabit ports, and then switch to a 10-Gigabit port, when needed.

This section includes these topics:

  • Port Numbering TwinGig Convertors, page 6-13
  • Limitations on Using a TwinGig Convertor, page 6-14
  • Selecting X2/TwinGig Convertor Mode, page 6-14

Port Numbering TwinGig Convertors

When a TwinGig Convertor is enabled or disabled, the number and type of ports on the line card change dynamically. The terminology must reflect this behavior. In Cisco IOS, 10-Gigabit ports are named 10-Gigabit and 1-Gigabit ports are named Gigabit. Starting with Cisco IOS Release 12.2(40)SG, to avoid having two ports named 10-Gigabit1/1 and Gigabit1/1, the 10-Gigabit and 1-Gigabit port numbers are independent. For example, for a WS-X4606-X2-E module with six X2 holes, the X2 ports are named 10-Gigabit slot-num/<1-6>, and the SFP ports are named Gigabit slot-num/<7-18>.

Figure 6-3 Faceplate for WS-X4606-10GE

2 3 4 X2

7 8 9 10 11 12

SFP 13 14 15 16 17 18

SFP Status

Page 240 of the Cisco Systems 4500 user manual — Selecting X2/TwinGig Convertor Mode
Page 240 · click to enlarge
Page 240

Chapter 6 Configuring Interfaces Deploying 10-Gigabit Ethernet or Gigabit Ethernet Ports on Supervisor Engine 6-E, Supervisor Engine 6L-E and

In Cisco IOS, ports 1 through 18 always exist. This means that you can apply configurations on them and they display in the CLI output. However, only the X2 or the SFP ports can be active at any particular time. For example, if an X2 is plugged into the second hole, the X2 port 2 is active and SFP ports 9 and 10 are inactive. If a TwinGig Convertor is plugged into the second hole, the X2 port 2 is inactive, and the SFP ports 9 and 10 are active. The inactive ports are treated analogously to the inactive ports on Supervisor Engines IV and V-10GE, where at no time are all of the uplinks connected to the switching ASICs.

Note When using both TwinGig and X2 transceivers on the WS-X4606-X2-E module, place ports 1-3 in one group and ports 4-6 in another. (The mode selected with the show hw-module module port-group command determines the behavior. See “Selecting X2/TwinGig Convertor Mode”.) Mixing within a port group does not work. For example, you cannot have an X2 in port 1 and a TwinGig in port 2 and expect both of them to function.

Limitations on Using a TwinGig Convertor

Supervisor Engine 6-E, Supervisor Engine 6L-E, and Catalyst 4900M connect ports to the switching engine through a stub ASIC. This stub ASIC imposes some limitations on the ports: Gigabit and 10-Gigabit ports cannot be mixed on a single stub ASIC; they must either be all 10-Gigabit Ethernet (X2), or all Gigabit (TwinGig Converter and SFP). The faceplates of X2 modules show this stub port grouping, either with actual physical grouping with a box drawn around a grouping.

Selecting X2/TwinGig Convertor Mode

The default configuration mode is X2. If you plan to deploy 10-Gigabit Ethernet interfaces, you do not need to configure anything. However, if you want to deploy Gigabit interfaces (that is, use TwinGig Convertors), you must configure the associated port-group:

To determine how the X2 holes on a module are grouped, enter the show hw-module module m port-group p command.

If you configure a 10-Gigabit Ethernet port as 1-Gigabit port, an output similar to the following appears:

Switch# show hw-module module 5 port-group Module Port-group Active Inactive 5 1 Gi5/3-6 Te5/1-2

If the port is set to the default, 10-Gigabit Ethernet mode, an output similar to the following appears:

Switch# show hw-module module 6 port-group Module Port-group Active Inactive 6 1 Te6/1-2 Gi6/3-6

Switch# show int status mod 1

Port Name Status Vlan Duplex Speed Type

Page 241 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 241 · click to enlarge
Page 241

Chapter 6 Configuring Interfaces

Deploying 10-Gigabit Ethernet or Gigabit Ethernet Ports on Supervisor Engine 6-E, Supervisor Engine 6L-E and

Te1/1 notconnect 1 full 10G 10GBase-LR Te1/2 connected 1 full 10G 10GBase-LR Te1/3 notconnect 1 full 10G No X2 Te1/4 notconnect 1 full 10G No X2 Te1/5 notconnect 1 full 10G No X2 Te1/6 notconnect 1 full 10G No X2 Gi1/7 inactive 1 full 1000 No Gbic Gi1/8 inactive 1 full 1000 No Gbic Gi1/9 inactive 1 full 1000 No Gbic Gi1/10 inactive 1 full 1000 No Gbic Gi1/11 inactive 1 full 1000 No Gbic Gi1/12 inactive 1 full 1000 No Gbic Gi1/13 inactive 1 full 1000 No Gbic Gi1/14 inactive 1 full 1000 No Gbic Gi1/15 inactive 1 full 1000 No Gbic Gi1/16 inactive 1 full 1000 No Gbic Gi1/17 inactive 1 full 1000 No Gbic Gi1/18 inactive 1 full 1000 No Gbic Switch#

  • To configure the modes of operation for each X2 port group in which you want to deploy Gigabit, enter the hw-module module m port-group p select gigabitethernet command. This configuration is preserved across power cycles and reloads.

To deploy Gigabit Ethernet interfaces using the TwinGig Convertor, perform this task:

Step 1 Switch# configure terminal Establishes global configuration mode.

Step 2 Switch(config)# hw-module module m port-group p select [gigabitethernet | tengigabitethernet]

Selects the mode of operation for each X2 port-group.

Default is 10-Gigabit Ethernet (x2).

Step 3 Switch(config)# exit Exits configuration mode.

Step 4 Switch# show int status mod n Verifies the setting.

This example shows how to select Gigabit Ethernet interfaces on a WS-X4606-X2-E using the TwinGig Convertor:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# hw-module module 1 port-group 1 select gigabitethernet Switch(config)# exit Switch# show int status mod 1 Port Name Status Vlan Duplex Speed Type Te1/1 inactive 1 full 10G No X2 Te1/2 inactive 1 full 10G No X2 Te1/3 inactive 1 full 10G No X2 Te1/4 notconnect 1 full 10G No X2 Te1/5 notconnect 1 full 10G No X2 Te1/6 notconnect 1 full 10G No X2 Gi1/7 notconnect 1 full 1000 No Gbic Gi1/8 notconnect 1 full 1000 No Gbic Gi1/9 notconnect 1 full 1000 No Gbic Gi1/10 notconnect 1 full 1000 No Gbic Gi1/11 notconnect 1 full 1000 No Gbic Gi1/12 notconnect 1 full 1000 No Gbic

Page 242 of the Cisco Systems 4500 user manual — Digital Optical Monitoring Transceiver Support
Page 242 · click to enlarge
Page 242

Chapter 6 Configuring Interfaces Invoking Shared-Backplane Uplink Mode on Supervisor Engine 6-E

Gi1/13 inactive 1 full 1000 No Gbic Gi1/14 inactive 1 full 1000 No Gbic Gi1/15 inactive 1 full 1000 No Gbic Gi1/16 inactive 1 full 1000 No Gbic Gi1/17 inactive 1 full 1000 No Gbic Gi1/18 inactive 1 full 1000 No GbicI

Invoking Shared-Backplane Uplink Mode on Supervisor Engine 6-E

This feature enables you to use all four 10-Gigabit Ethernet ports on the supervisor engines as blocking ports when in redundant mode.

Prior to Cisco IOS Release 12.2(40)SG, Catalyst 4500 Supervisor Engine V-10GE allowed you to enable either the dual wire-speed 10-Gigabit Ethernet ports or four TwinGig convertor based Gigabit Ethernet SFP uplink ports when operating in redundant mode. Beginning with Cisco IOS Release 12.2(40)SG, you could deploy all four 10-Gigabit Ethernet ports, two blocking ports on an active supervisor engine and two blocking ports on the standby supervisor engine, or all eight Gigabit Ethernet SFP ports, four on the active supervisor and four on the standby supervisor engine. This capability is supported on all Catalyst 4500 and 4500E series chassis.

To enable shared-backplane mode, enter this command:

Switch(config)# hw-mod uplink mode shared-backplane

A reload of the active supervisor engine is required to apply the new configuration.

To disable shared-backplane mode, enter this command:

Switch(config)# no hw-mod uplink mode shared-backplane

A reload of the active supervisor engine is required to apply the new configuration.

Digital Optical Monitoring Transceiver Support

Command line interface (CLI) commands (show inventory, show idprom interface) are used on transceivers to obtain serial number, model name, inventory information.

The following commands are specific to the transceivers that support the DOM capability:

  • Displays current values and thresholds for all sensor on a particular interface transceiver:

show interfaces int-name transceiver [detail] [threshold]

  • Enables or disables the entSensorThresholdNotification for all sensors in all the transceivers:

snmp-server enable trap transceiver

  • Enables or disables transceiver monitoring:

transceiver type all · monitoring

Page 243 of the Cisco Systems 4500 user manual — Speed and Duplex Mode Configuration Guidelines
Page 243 · click to enlarge
Page 243

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

Configuring Optional Interface Features

The following sections describe optional procedures:

  • Configuring Ethernet Interface Speed and Duplex Mode, page 6-17
  • Configuring Flow Control, page 6-20
  • Configuring Jumbo Frame Support, page 6-23
  • Interacting with Baby Giants, page 6-26
  • Configuring the Port Debounce Timer, page 6-26
  • Configuring Auto-MDIX on a Port, page 6-27

Configuring Ethernet Interface Speed and Duplex Mode

Topics include:

  • Speed and Duplex Mode Configuration Guidelines, page 6-17
  • Setting the Interface Speed, page 6-18
  • Setting the Interface Duplex Mode, page 6-19
  • Displaying the Interface Speed and Duplex Mode Configuration, page 6-19
  • Adding a Description for an Interface, page 6-20

Speed and Duplex Mode Configuration Guidelines

You can configure the interface speed and duplex mode parameters to auto and allow the Catalyst 4500 series switch to negotiate the interface speed and duplex mode between interfaces. If you decide to configure the interface speed and duplex commands manually, consider the following:

  • If you enter the no speed command, the switch automatically configures both interface speed and duplex to auto .
  • When you set the interface speed to 1000 (Mbps) or auto 1000 , the duplex mode is full duplex. You cannot change the duplex mode.
Page 244 of the Cisco Systems 4500 user manual — Setting the Interface Speed
Page 244 · click to enlarge
Page 244

Chapter 6 Configuring Interfaces Configuring Optional Interface Features

  • If the interface speed is set to 10 or 100 , the duplex mode is set to half duplex by default unless you explicitly configure it.

Setting the Interface Speed

If you set the interface speed to auto on a 10/100-Mbps Ethernet interface, speed and duplex are autonegotiated. The forced 10/100 autonegotiation feature allows you to limit interface speed auto negotiation up to 100 Mbps on a 10/100/1000BASE-T port.

To set the port speed for a 10/100-Mbps Ethernet interface, perform this task:

Step 1 Switch(config)# interface fastethernet slot/interface Specifies the interface to be configured.

Step 2 Switch(config-if)# speed [10 | 100 | auto [10 | 100]] Sets the interface speed of the interface.

This example shows how to set the interface speed to 100 Mbps on the Fast Ethernet interface 5/4:

Switch(config)# interface fastethernet 5/4 Switch(config-if)# speed 100

This example shows how to allow Fast Ethernet interface 5/4 to autonegotiate the speed and duplex mode:

Switch(config)# interface fastethernet 5/4 Switch(config-if)# speed auto

This example shows how to limit the interface speed to 10 and 100 Mbps on the Gigabit Ethernet interface 1/1 in auto-negotiation mode:

Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# speed auto 10 100

This example shows how to limit speed negotiation to 100 Mbps on the Gigabit Ethernet interface 1/1:

Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# speed auto 100

To turn off the port speed autonegotiation for Gigabit Ethernet interface 1/1, perform this task:

Step 1 Switch(config)# interface gigabitethernet1/1 Specifies the interface to be configured.

Step 2 Switch(config-if)# speed nonegotiate Disables autonegotiation on the interface.

Page 245 of the Cisco Systems 4500 user manual — Displaying the Interface Speed and Duplex Mode Configuration
Page 245 · click to enlarge
Page 245

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

To restore autonegotiation, enter the no speed nonegotiate command in the interface configuration mode.

Setting the Interface Duplex Mode

To set the duplex mode of a Fast Ethernet interface, perform this task:

Step 1 Switch(config)# interface fastethernet slot/interface

Specifies the interface to be configured.

Step 2 Switch(config-if)# duplex [auto | full | half] Sets the duplex mode of the interface.

This example shows how to set the interface duplex mode to full on Fast Ethernet interface 5/4:

Switch(config)# interface fastethernet 5/4 Switch(config-if)# duplex full

Displaying the Interface Speed and Duplex Mode Configuration

To display the interface speed and duplex mode configuration for an interface, enter this command:

Switch# show interfaces [fastethernet | gigabitethernet | tengigabitethernet] slot/interface

Displays the interface speed and duplex mode configuration.

This example shows how to display the interface speed and duplex mode of Fast Ethernet interface 6/1:

Switch# show interface fastethernet 6/1 FastEthernet6/1 is up, line protocol is up Hardware is Fast Ethernet Port, address is 0050.547a.dee0 (bia 0050.547a.dee0) MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:54, output never, output hang never Last clearing of "show interface" counters never Input queue: 50/2000/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 50 packets input, 11300 bytes, 0 no buffer Received 50 broadcasts, 0 runts, 0 giants, 0 throttles

Page 246 of the Cisco Systems 4500 user manual — Configuring Flow Control
Page 246 · click to enlarge
Page 246

Chapter 6 Configuring Interfaces Configuring Optional Interface Features

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 1456 packets output, 111609 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 1 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Switch#

Adding a Description for an Interface

You can add a description about an interface to help you remember its function. The description appears in the output of the following commands: show configuration, show running-config, and show interfaces.

To add a description for an interface, enter the following command:

Switch(config-if)# description string Adds a description for an interface.

This example shows how to add a description on Fast Ethernet interface 5/5:

Switch(config)# interface fastethernet 5/5 Switch(config-if)# description Channel-group to "Marketing"

Configuring Flow Control

Gigabit Ethernet ports use flow control to slow down the transmission of incoming packets. If a buffer on a Gigabit Ethernet port runs out of space, the port transmits a special packet that requests remote ports to delay sending packets for a period of time. The port can also receive this special packet from its link partner for the same purpose. This special packet is called a pause frame.

The default settings for Gigabit Ethernet interfaces are as follows:

  • Sending pause frames is off—Non-oversubscribed Gigabit Ethernet interfaces.
  • Receiving pause frames is desired—Non-oversubscribed Gigabit Ethernet interfaces.
  • Sending pause frames is on—Oversubscribed Gigabit Ethernet interfaces.
  • Receiving pause frames is desired—Oversubscribed Gigabit Ethernet interfaces

The default settings for 10-Gigabit Ethernet interfaces are as follows:

  • Sending pause frames is off.
  • Receiving pause frames is on.
Page 247 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 247 · click to enlarge
Page 247

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

To configure flow control, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for flowcontrol.

Step 3 Switch(config-if)# flowcontrol {receive | send} {off | on | desired}

Configures a Gigabit Ethernet port to send or receive pause frames.

Step 4 Switch(config-if)# end Returns to configuration mode.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

This example shows how to configure flow control on an oversubscribed Gigabit Ethernet port 7/5:

Switch# configure terminal Switch(config)# interface g7/5 Switch(config-if)# flowcontrol send on Switch(config-if)# end Switch)# show interfaces gigabitEthernet 7/5 capabilities GigabitEthernet7/5 Model: WS-X4548-GB-RJ45-RJ-45 Type: 10/100/1000-TX Speed: 10,100,1000,auto Duplex: half,full,auto Trunk encap. type: 802.1Q,ISL Trunk mode: on,off,desirable,nonegotiate Channel: yes Broadcast suppression: percentage(0-100), hw Flowcontrol: rx-(off,on,desired),tx-(off,on,desired) VLAN Membership: static, dynamic Fast Start: yes Queuing: rx-(N/A), tx-(1p3q1t, Sharing/Shaping) CoS rewrite: yes ToS rewrite: yes Inline power: no SPAN: source/destination UDLD: yes Link Debounce: no Link Debounce Time: no Port Security: yes Dot1x: yes Maximum MTU: 1552 bytes (Baby Giants) Multiple Media Types: no Diagnostic Monitoring: N/A

Switch)# show flowcontrol interface GigabitEthernet 7/5 Port Send FlowControl Receive FlowControl RxPause TxPause admin oper admin oper Gi7/5 on off desired off 0 0

This example shows the output of the show interfaces and show flowcontrol commands on an non-oversubscribed Gigabit Ethernet port 5/5:

Switch# show interfaces gigabitEthernet 5/5 capabilities GigabitEthernet5/5 Model: WS-X4306-GB-Gbic Type: No Gbic Speed: 1000

Page 248 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 248 · click to enlarge
Page 248

Chapter 6 Configuring Interfaces Configuring Optional Interface Features

Duplex: full Trunk encap. type: 802.1Q,ISL Trunk mode: on,off,desirable,nonegotiate Channel: yes Broadcast suppression: percentage(0-100), hw Flowcontrol: rx-(off,on,desired),tx-(off,on,desired) VLAN Membership: static, dynamic Fast Start: yes Queuing: rx-(N/A), tx-(1p3q1t, Sharing/Shaping) CoS rewrite: yes ToS rewrite: yes Inline power: no SPAN: source/destination UDLD: yes Link Debounce: no Link Debounce Time: no Port Security: yes Dot1x: yes Maximum MTU: 9198 bytes (Jumbo Frames) Multiple Media Types: no Diagnostic Monitoring: N/A

Switch# show flowcontrol interface gigabitEthernet 5/5 Port Send FlowControl Receive FlowControl RxPause TxPause admin oper admin oper Gi5/5 off off desired off 0 0

This example shows the output of the show interfaces and show flowcontrol commands on an unsupported Fast Ethernet port 3/5:

Switch# show interfaces fa3/5 capabilities FastEthernet3/5 Model: WS-X4148-RJ-45 Type: 10/100BaseTX Speed: 10,100,auto Duplex: half,full,auto Trunk encap. type: 802.1Q,ISL Trunk mode: on,off,desirable,nonegotiate Channel: yes Broadcast suppression: percentage(0-100), sw Flowcontrol: rx-(none),tx-(none) VLAN Membership: static, dynamic Fast Start: yes Queuing: rx-(N/A), tx-(1p3q1t, Shaping) CoS rewrite: yes ToS rewrite: yes Inline power: no SPAN: source/destination UDLD: yes Link Debounce: no Link Debounce Time: no Port Security: yes Dot1x: yes Maximum MTU: 1552 bytes (Baby Giants) Multiple Media Types: no Diagnostic Monitoring: N/A

Switch# show flowcontrol interface fa3/5 Port Send FlowControl Receive FlowControl RxPause TxPause admin oper admin oper Fa3/5 Unsupp. Unsupp. Unsupp. Unsupp. 0 0

Page 249 of the Cisco Systems 4500 user manual — Maximum Transmission Units
Page 249 · click to enlarge
Page 249

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

Configuring Jumbo Frame Support

These sections describe jumbo frame support:

  • Ports and Modules That Support Jumbo Frames, page 6-23
  • Jumbo Frame Support, page 6-23
  • Configuring MTU Sizes, page 6-25

Ports and Modules That Support Jumbo Frames

The following ports and modules support jumbo frames:

  • Supervisor uplink ports
  • WS-X4306-GB: all ports
  • WS-X4232-GB-RJ: ports 1-2
  • WS-X4418-GB: ports 1-2
  • WS-X4412-2GB-TX: ports 13-14
  • WS-X4506-GB-T
  • WS-X4606-X2-E
  • WS-X4648-RJ45-E
  • WS-X4648-RJ45V+E
  • WS-X4648-RJ45V-E

Jumbo Frame Support

These sections describe jumbo frame support:

  • Maximum Transmission Units, page 6-23
  • Jumbo Frame Support Overview, page 6-24
  • Ethernet Ports, page 6-24
  • VLAN Interfaces, page 6-25

Maximum Transmission Units

The Catalyst 4500 series switch allows you to configure a maximum of 32 different maximum transmission unit (MTU) sizes systemwide. This means that the maximum number of different MTU sizes that you can configure with the system mtu, mtu, ip mtu, and ipv6 mtu command on all Layer 2 and Layer 3 interfaces combined is 32.

Also, the system stores the IPv4 and IPv6 MTU sizes configured on an interface separately. For every system mtu command or per interface mtu command, two separate MTU values are stored, one for IPv4 and one for IPv6. This further reduces the number of slots available (out of 32). However, only a single MTU value is stored for each ip mtu and ipv6 mtu commands.

If the new MTU value you are configuring is already present in the system (that is, configured on some other interface), then no new slot(s) are allocated to store it again.

Page 250 of the Cisco Systems 4500 user manual — Ethernet Ports
Page 250 · click to enlarge
Page 250

Chapter 6 Configuring Interfaces Configuring Optional Interface Features

If the maximum limit of 32 is reached and an attempt is made to configure a new MTU size on a new interface, the system only allows configuration to proceed if the new MTU size has previously been configured on some interface. Otherwise, an error message is displayed and the default MTU size is assigned to the interface being configured.

Jumbo Frame Support Overview

A jumbo frame is a frame larger than the default Ethernet size. Enable jumbo frame support by configuring a larger-than-default MTU size on a port or interface.

Catalyst 4500 series switch Ethernet LAN ports configured with a nondefault MTU size accept frames containing packets with a size between 1500 and 9216 bytes (including Ethernet payload, header and trailer). (The maximum MTU size for a Catalyst 4948 series switch is 9198 bytes (not including header and trailer.)) With a nondefault MTU size configured, the packet size of ingress frames is checked. If the packet is larger than the configured MTU, it is dropped.

For traffic that needs to be routed, the MTU of the egress port is checked. If the MTU is smaller than the packet size, the packet is forwarded to the CPU. If the “do not fragment bit” is not set, it is fragmented. Otherwise, the packet is dropped.

The Catalyst 4500 series switch does not compare the packet size with the MTU at the egress port, but jumbo frames are dropped in ports that do not support them. The frames can be transmitted in ports that do support jumbo frames, even though the MTU is not configured to jumbo size.

Ethernet Ports

These sections describe configuring nondefault MTU sizes on Ethernet ports:

  • Ethernet Port Overview, page 6-24
  • Layer 3 and Layer 2 EtherChannels, page 6-25

Ethernet Port Overview Starting with Cisco IOS Release 12.2(25)EW, configuring a nondefault MTU size on certain Ethernet ports limits the size of ingress packets. The MTU does not impact the egress packets.

With releases prior to Cisco IOS Release 12.1(13)EW, you could configure the MTU size only on Gigabit Ethernet.

Page 251 of the Cisco Systems 4500 user manual — Configuring MTU Sizes
Page 251 · click to enlarge
Page 251

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

Layer 3 and Layer 2 EtherChannels Starting with Release Cisco IOS Release 12.2(25)EW, you can configure all the interfaces in an EtherChannel provided that they have the same MTU. Changing the MTU of an EtherChannel changes the MTU of all member ports. If the MTU of a member port cannot be changed to the new value, that port is suspended (administratively shut down). A port cannot join an EtherChannel if the port has a different MTU. If a member port of an EtherChannel changes MTU, the member port is suspended.

VLAN Interfaces

If switch ports reside in the same VLAN, either configure all of the switch ports to handle jumbo frames and support the same MTU size, or configure none of them. However, such uniformity of MTU size in the same VLAN is not enforced.

When a VLAN has switch ports with different MTU size, packets received from a port with a larger MTU might be dropped when they are forwarded to a port with a smaller MTU.

If the switch ports in a VLAN have jumbo frames enabled, the corresponding SVI can have jumbo frames enabled. The MTU of an SVI should always be smaller than the smallest MTU among all the switch ports in the VLAN, but this condition is not enforced.

The MTU of a packet is not checked on the ingress side for an SVI; it is checked on the egress side of an SVI. If the MTU of a packet is larger than the MTU of the egress SVI, the packet is sent to the CPU for fragmentation processing. If the “do not fragment” bit is not set, the packet is fragmented. Otherwise, the packet is dropped.

Configuring MTU Sizes

To configure the MTU size, perform this task:

Step 1 Switch(config)# interface {{vlan vlan_ID} | {{type1 slot/port} | {port-channel port_channel_number} slot/port}}

Selects the interface to configure.

Step 2 Switch(config-if)# mtu mtu_size Configures the MTU size.

Switch(config-if)# no mtu Reverts to the default MTU size (1500 bytes).

Step 3 Switch(config-if)# end Exits configuration interface mode.

Step 4 Switch(config)# end Exits configuration mode.

Step 5 Switch# show running-config interface [{fastethernet | gigabitethernet} slot/port]

Verifies the running configuration.

1. type = fastethernet , gigabitethernet , or tengigabitethernet

Note When you remove a line card, and then reinsert the card, some or all of the MTU values configured on the ports of that line card may be unconfigured. This occurs if the systemwide limit of 32 different MTUs is reached while the card is removed. Upon reinserting the line card, the system attempts to reapply the MTU configuration on the ports. If this attempt fails, the MTU values are set to the default.

Page 252 of the Cisco Systems 4500 user manual — Configuring the Port Debounce Timer
Page 252 · click to enlarge
Page 252

Chapter 6 Configuring Interfaces Configuring Optional Interface Features

This example shows how to configure the MTU size on Gigabit Ethernet port 1/1:

switch# conf terminal switch(config)# interface gi1/1 switch(config-if)# mtu 9198 switch(config-if)# end switch(config)# end switch# show interface gigabitethernet 1/2 GigabitEthernet1/2 is administratively down, line protocol is down Hardware is C6k 1000Mb 802.3, address is 0030.9629.9f88 (bia 0030.9629.9f88) MTU 9216 bytes, BW 1000000 Kbit, DLY 10 usec, switch#

For details on how to configure IP MTU size, refer to “Configuring IP MTU Sizes” section on page 30-9.

Interacting with Baby Giants

The baby giants feature, introduced in Cisco IOS Release 12.1(12c)EW, uses the global command system mtu size to set the global baby giant MTU. This feature also allows certain interfaces to support Ethernet payload size of up to 1552 bytes.

Both the system mtu command and the per-interface mtu command can operate on interfaces that can support jumbo frames, but the per-interface mtu command takes precedence.

For example, before setting the per-interface MTU for interface gi1/1, you enter the system mtu 1550 command to change the MTU for gi1/1 to 1550 bytes. You enter the per-interface mtu command to change the MTU for gi1/1 to 9198 bytes. If you change the baby giant MTU to 1540 bytes with the command system mtu 1540, the MTU for gi1/1 remains unchanged at 9198 bytes.

Configuring the Port Debounce Timer

The port debounce timer suppresses notification of short link-down events. Link-down events that are shorter than the port debounce timer are not notified to Layer 2 or Layer 3 protocols, decreasing traffic loss due to network reconfiguration. You can configure the port debounce timer separately on each LAN port.

To configure the debounce timer on a port, perform this task:

Step 1 Switch(config)# interface tengigabitethernet slot/port

Selects the port to configure.

Page 253 of the Cisco Systems 4500 user manual — Configuring Auto-MDIX on a Port
Page 253 · click to enlarge
Page 253

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

Step 2 Switch(config-if)# link debounce [time debounce_time]

Configures the debounce timer.

By default, debounce is disabled.

Switch(config-if)# no link debounce Reverts to the default setting.

Step 3 Switch# show interfaces debounce Verifies the configuration.

When configuring the debounce timer on a port, you can increase the port debounce timer value between 10 milliseconds and 5000 milliseconds on the 10-Gigabit Ethernet ports.

This example shows how to enable the port debounce timer on 10-Gigabit Ethernet port 2/1 and to accept the default value (10 ms):

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface tenGigabitEthernet 2/1 Switch(config-if)# link debounce Warning: Enabling debounce feature causes link down detection to be delayed Switch(config-if)# exit

This example shows how to enable the port debounce timer of 5000 ms on 10-Gigabit Ethernet port 2/2 and to verify the setting:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface tenGigabitEthernet 2/2 Switch(config-if)# link debounce time 5000 Warning: Enabling debounce feature causes link down detection to be delayed Switch(config-if)# end Switch# Switch# show interfaces debounce | include enable Te2/1 enable 10 Te2/2 enable 5000 Switch#

Configuring Auto-MDIX on a Port

When automatic medium-dependent-interface crossover (auto-MDIX) is enabled on an port, the port automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately. When connecting switches without the auto-MDIX feature, you must use straight-through cables to connect to devices such as servers, workstations, or routers and crossover cables to connect to other switches or repeaters. With auto-MDIX enabled, use either type of cable to connect to other devices; the interface automatically corrects for any incorrect cabling. For more information about cabling requirements, see the hardware installation guide.

Auto-MDIX is enabled by default. When you enable auto-MDIX, you must also set the speed on the port to auto so that for the feature to operate correctly. auto-MDIX is supported on copper media ports. It is not supported on fiber media ports.

Page 254 of the Cisco Systems 4500 user manual — Local Side auto-MDIX Remote Side auto-MDIX With Correct Cabling With Incorrect Cabling
Page 254 · click to enlarge
Page 254

Chapter 6 Configuring Interfaces Configuring Optional Interface Features

Table 6-1 shows the link states that results from auto-MDIX settings and correct and incorrect cabling.

Table 6-1 Link Conditions and auto-MDIX Settings

Local Side auto-MDIX Remote Side auto-MDIX With Correct Cabling With Incorrect Cabling

On On Link up Link up

On Off Link up Link up

Off On Link up Link up

Off Off Link up Link down

To configure auto-MDIX on a port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode for the physical interface to be configured.

Step 3 Switch(config-if)# speed auto Configures the port to autonegotiate speed with the connected device.

Step 4 Switch(config-if)# mdix auto Enables auto-MDIX on the port.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show interfaces interface-id

Verifies the configuration of the auto-MDIX feature on the interface.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable auto-MDIX, use the no mdix auto interface configuration command.

This example shows how to enable auto-MDIX on a port:

Switch# configure terminal Switch(config)# interface fastethernet 6/5 Switch(config-if)# speed auto Switch(config-if)# mdix auto

Page 255 of the Cisco Systems 4500 user manual — Auto-MDIX Setting and Operational State on an Interface Description
Page 255 · click to enlarge
Page 255

Chapter 6 Configuring Interfaces

Configuring Optional Interface Features

Displaying the Interface Auto-MDIX Configuration

To display the interface speed and duplex mode configuration for an interface, perform this task:

Step 1 Switch> enable Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2 Switch# show interfaces type slot/interface Displays the interface auto-MDIX configuration setting and operational state.

Depending on how the speed auto and the mdix auto commands are configured on a supported line card interface, the show interfaces command displays the following possible auto-MDIX statuses:

Table 6-2 shows the auto-MDIX setting and operational state and the status of auto-MDIX.

Table 6-2 Auto-MDIX and Operational State

Auto-MDIX Setting and Operational State on an Interface Description

Auto-MDIX on (operational: on) Auto-MDIX is enabled and is fully functioning.

Auto-MDIX on (operational: off) Auto-MDIX is enabled on this interface but it is not functioning. To allow auto-MDIX feature to function properly, you must also set the interface speed to be autonegotiated.

Auto-MDIX off Auto-MDIX has been disabled with the no mdix auto command.

This example show s how to display the auto-MDIX configuration setting and its operational state on Fast Ethernet interface 6/1:

Switch# show interfaces fastethernet 6/1 FastEthernet6/1 is up, line protocol is up (connected) Hardware is Fast Ethernet Port, address is 0001.64fe.e5d0 (bia 0001.64fe.e5d0) MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s, link type is auto, media type is 10/100BaseTX input flow-control is unsupported output flow-control is unsupported Auto-MDIX on (operational: on) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:16, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 511 packets input, 74464 bytes, 0 no buffer Received 511 broadcasts (511 multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

Switch(config-if)# end

Page 256 of the Cisco Systems 4500 user manual — Monitoring Interface and Controller Status
Page 256 · click to enlarge
Page 256

Chapter 6 Configuring Interfaces Understanding Online Insertion and Removal

0 input packets with dribble condition detected 3552 packets output, 269088 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 1 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Switch#

Understanding Online Insertion and Removal

The online insertion and removal (OIR) feature supported on the Catalyst 4500 series switch allows you to remove and replace modules while the system is online. You can shut down the module before removal and restart it after insertion without causing other software or interfaces to shut down.

You do not need to enter a command to notify the software that you are going to remove or install a module. The system notifies the supervisor engine that a module has been removed or installed and scans the system for a configuration change. The newly installed module is initialized, and each interface type is verified against the system configuration; then the system runs diagnostics on the new interface. There is no disruption to normal operation during module insertion or removal.

If you remove a module and then replace it, or insert a different module of the same type into the same slot, no change to the system configuration is needed. An interface of a type that has been configured previously is brought online immediately. If you remove a module and insert a module of a different type, the interface(s) on that module is administratively up with the default configuration for that module.

Monitoring and Maintaining the Interface

The following sections describe how to monitor and maintain the interfaces:

  • Monitoring Interface and Controller Status, page 6-30
  • Clearing and Resetting the Interface, page 6-31
  • Shutting Down and Restarting an Interface, page 6-31
  • Configuring Interface Link Status and Trunk Status Events, page 6-32
  • Resetting the Interface to the Default Configuration, page 6-34

Monitoring Interface and Controller Status

The Cisco IOS software for the Catalyst 4500 series switch contains commands that you can enter at the EXEC prompt to display information about the interface, including the version of the software and the hardware, the controller status, and statistics about the interfaces. The following table lists some of the interface monitoring commands. (You can display the full list of show commands by entering the show ? command at the EXEC prompt.) These commands are fully described in the Interface Command Reference.

Page 257 of the Cisco Systems 4500 user manual — Shutting Down and Restarting an Interface
Page 257 · click to enlarge
Page 257

Chapter 6 Configuring Interfaces

Monitoring and Maintaining the Interface

To display information about the interface, enter one of the following commands:

Switch# show interfaces [type slot/interface]

Displays the status and configuration of all interfaces or of a specific interface.

Switch# show running-config Displays the configuration currently running in RAM.

Switch# show protocols [type slot/interface]

Displays the global (system-wide) and interface-specific status of any configured protocol.

Switch# show version Displays the hardware configuration, software version, the names and sources of configuration files, and the boot images.

This example shows how to display the status of Fast Ethernet interface 5/5:

Switch# show protocols fastethernet 5/5 FastEthernet5/5 is up, line protocol is up Switch#

Clearing and Resetting the Interface

To clear the interface counters shown with the show interfaces command, enter this command:

Switch# clear counters {type slot/interface} Clears interface counters.

This example shows how to clear and reset the counters on Fast Ethernet interface 5/5:

Switch# clear counters fastethernet 5/5 Clear "show interface" counters on this interface [confirm] y Switch# *Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet5/5 by vty1 (171.69.115.10) Switch#

The clear counters command (without any arguments) clears all the current interface counters from all interfaces.

Shutting Down and Restarting an Interface

You can disable an interface, which disables all functions on the specified interface and marks the interface as unavailable on all monitoring command displays. This information is communicated to other network servers through all dynamic routing protocols. The interface is not mentioned in any routing updates.

Page 258 of the Cisco Systems 4500 user manual — Configuring Interface Link Status and Trunk Status Events
Page 258 · click to enlarge
Page 258

Chapter 6 Configuring Interfaces Monitoring and Maintaining the Interface

To shut down an interface and then restart it, perform this task:

Step 1 Switch(config)# interface {vlan vlan_ID} | {{fastethernet | gigabitethernet | tengigabitethernet} slot/port} | {port-channel port_channel_number}

Specifies the interface to be configured.

Step 2 Switch(config-if)# shutdown Shuts down the interface.

Step 3 Switch(config-if)# no shutdown Reenables the interface.

This example shows how to shut down Fast Ethernet interface 5/5:

Switch(config)# interface fastethernet 5/5 Switch(config-if)# shutdown Switch(config-if)# *Sep 30 08:33:47: %LINK-5-CHANGED: Interface FastEthernet5/5, changed state to a administratively down Switch(config-if)#

This example shows how to reenable Fast Ethernet interface 5/5:

Switch(config-if)# no shutdown Switch(config-if)# *Sep 30 08:36:00: %LINK-3-UPDOWN: Interface FastEthernet5/5, changed state to up Switch(config-if)#

To verify whether an interface is disabled, enter the EXEC show interfaces command. An interface that has been shut down appears as “administratively down.”

Configuring Interface Link Status and Trunk Status Events

You can configure interface link status and trunk status events. On the Catalyst 4500 series switch, the following interface logging event notifications are supported both globally and per interface:

  • Enable or disable notification on the interface whenever its data link status is changed.
  • Enable or disable notification on the trunk interface whenever its trunking status is changed.

Use the [no] logging event link-status use-global command to enable or disable the interface link status event. Use the [no] logging event trunk-status use-global command to enable or disable the interface trunk status event.

Each interface link status logging event can be configured in one of the following states:

  • logging event link-status— Link status logging event is enabled explicitly on the interface regardless of the switch global setting.
  • no logging event link-status— Link status logging event is disabled explicitly on the interface regardless of the switch global setting.
  • logging event link-status use-global— Default link status logging event configuration on the interface; its configuration should follow the switch global link status logging event setting.

The interface trunk status logging event can be configured in the same configuration states.

Page 259 of the Cisco Systems 4500 user manual — Examples
Page 259 · click to enlarge
Page 259

Chapter 6 Configuring Interfaces

Monitoring and Maintaining the Interface

Configuring Link Status Event Notification for an Interface

To enable or disable a link status logging event, enter one of the following commands:

Switch(config-if)# logging event link-status

Enables interface link status logging.

Switch(config-if)# no logging event link-status

Disables interface link status logging.

Switch(config-if)# logging event link-status use-global

Specifies the global default setting for interface link status logging.

Global Settings

You can also provide a global configuration for the corresponding logging event. A global configuration provides default logging settings for all interfaces. The [no] logging event link-status global command lets you enable or disable the interface link status logging for the entire switch. The [no] logging event trunk-status global command lets you enable disable interface trunk status logging for the entire switch.

Each interface link status logging event, if not configured at the interface level, uses the following global logging event setting:

  • logging event link-status global —Link status logging event is enabled, if not configured on the interface.
  • no logging event link-status global —Link status logging event is disabled, if not configured on the interface.

The interface trunk status logging event has similar global configurations.

Configuring a Switch Global Link Status Logging Event

To enable or disable the global link status logging event, enter one of the following commands:

Switch(config-if)# logging event link-status global

Enables global link status logging.

Switch(config-if)# no logging event link-status global

Disables global link status logging.

Examples

The following example displays a summary of the operating states for the interface logging event using different combinations of global and interface logging settings:

global setting interface setting actual logging state on on on off on on on off on default(use-global) on off default(use-global) off

Page 260 of the Cisco Systems 4500 user manual — Resetting the Interface to the Default Configuration
Page 260 · click to enlarge
Page 260

Chapter 6 Configuring Interfaces Monitoring and Maintaining the Interface

The following example displays the configuration and logging message output for link status and trunk status logging events:

// // The global link status and trunk status logging events are enabled. // Switch# show running | include logging show running | include logging logging event link-status global logging event trunk-status global Switch#

// // The interface link status and trunk status logging settings // are set to default values, which follow regardless of the global // setting. // Switch# show running interface g1/4 Building configuration...

Current configuration97 bytes ! interface GigabitEthernet1/4 switchport trunk encapsulation dot1q switchport mode trunk end Switch#

// // The trunk status logging messages for the interface are // displayed whenever the interface trunking status is changed. // Here we change the other end node's trunking encapsulation // from dot1q to isl. // 3d00h: %DTP-5-ILGLCFG: Illegal config(on,isl--on,dot1q) on Gi1/4 3d00h: %DTP-5-ILGLCFG: Illegal config(on,isl--on,dot1q) on Gi1/4 3d00h: %DTP-5-ILGLCFG: Illegal config(on,isl--on,dot1q) on Gi1/4

// // The link and trunk status logging message for the interface // are displayed whenever the interface link status is changed. // Here we do a "shut" and "no shut" on the other end link node. // 3d00h: %DTP-5-NONTRUNKPORTON: Port Gi1/4 has become non-trunk 3d00h: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/4, changed state to down 3d00h: %LINK-3-UPDOWN: Interface GigabitEthernet1/4, changed state to down 3d00h: %LINK-3-UPDOWN: Interface GigabitEthernet1/4, changed state to up 3d00h: %DTP-5-TRUNKPORTON: Port Gi1/4 has become dot1q trunk 3d00h: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/4, changed state to up

Resetting the Interface to the Default Configuration

If you have configured a interface with many command lines and you want to clear all the configuration on that interface, use the default interface global configuration command, as follows:

Switch(config)# default interface fastEthernet 3/5 Interface FastEthernet3/5 set to default configuration

Page 261 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 261 · click to enlarge
Page 261

Chapter 6 Configuring Interfaces

Monitoring and Maintaining the Interface

This command clears all the configurations and shut down the interface:

Switch# show run interface fastethernet 3/5 Building configuration...

Current configuration58 bytes ! interface FastEthernet3/5 no ip address shutdown end
Page 262 of the Cisco Systems 4500 user manual — Configuring Interfaces
Page 262 · click to enlarge
Page 262

Chapter 6 Configuring Interfaces Monitoring and Maintaining the Interface

Page 263 of the Cisco Systems 4500 user manual — Checking Module Status
Page 263 · click to enlarge
Page 263

C H A P T E R

Checking Port Status and Connectivity

This chapter describes how to check switch port status and connectivity on the Catalyst 4500 series switch.

This chapter includes the following major sections:

  • Checking Module Status, page 7-1
  • Checking Interfaces Status, page 7-2
  • Displaying MAC Addresses, page 7-3
  • Checking Cable Status Using Time Domain Reflectometer, page 7-3
  • Using Telnet, page 7-5
  • Changing the Logout Timer, page 7-6
  • Monitoring User Sessions, page 7-6
  • Using Ping, page 7-7
  • Using IP Traceroute, page 7-8
  • Using Layer 2 Traceroute, page 7-9
  • Configuring ICMP, page 7-11

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Checking Module Status

The Catalyst 4500 series switch is a multimodule system. You can see which modules are installed, as well as the MAC address ranges and version numbers for each module, by entering the show module command. Use the mod_num argument to specify a particular module number and display detailed information on that module.

Page 264 of the Cisco Systems 4500 user manual — Checking Interfaces Status
Page 264 · click to enlarge
Page 264

Chapter 7 Checking Port Status and Connectivity Checking Interfaces Status

This example shows how to check module status for all modules on your switch:

Switch# show module all

Mod Ports Card Type Model Serial No. + 1 2 1000BaseX (GBIC) Supervisor Module WS-X4014 JAB012345AB 5 24 10/100/1000BaseTX (RJ45) WS-X4424-GB-RJ45 JAB045304EY 6 48 10/100BaseTX (RJ45) WS-X4148 JAB023402QK

M MAC addresses Hw Fw Sw Stat --+ +---+ + + 1 0004.dd46.9f00 to 0004.dd46.a2ff 0.0 12.1(10r)EW(1.21) 12.1(10)EW(1) Ok 5 0050.3e7e.1d70 to 0050.3e7e.1d87 0.0 Ok 6 0050.0f10.2370 to 0050.0f10.239f 1.0 Ok Switch#

Checking Interfaces Status

You can view summary or detailed information on the switch ports using the show interfaces status command. To see summary information on all ports on the switch, enter the show interfaces status command with no arguments. Specify a particular module number to see information on the ports on that module only. Enter both the module number and the port number to see detailed information about the specified port.

To apply configuration commands to a particular port, you must specify the appropriate logical module. For more information, see the “Checking Module Status” section on page 7-1.

This example shows how to display the status of all interfaces on a Catalyst 4500 series switch, including transceivers. Output of this command displays “Unapproved GBIC” for non-Cisco transceivers:

Switch# show interfaces status

Port Name Status Vlan Duplex Speed Type Gi1/1 notconnect 1 auto auto No Gbic Gi1/2 notconnect 1 auto auto No Gbic Gi5/1 notconnect 1 auto auto 10/100/1000-TX Gi5/2 notconnect 1 auto auto 10/100/1000-TX Gi5/3 notconnect 1 auto auto 10/100/1000-TX Gi5/4 notconnect 1 auto auto 10/100/1000-TX Fa6/1 connected 1 a-full a-100 10/100BaseTX Fa6/2 connected 2 a-full a-100 10/100BaseTX Fa6/3 notconnect 1 auto auto 10/100BaseTX Fa6/4 notconnect 1 auto auto 10/100BaseTX

This example shows how to display the status of interfaces in error-disabled state:

Switch# show interfaces status err-disabled Port Name Status Reason Fa9/4 err-disabled link-flap informational error message when the timer expires on a cause 5d04h:%PM-SP-4-ERR_RECOVER:Attempting to recover from link-flap err-disable state on Fa9/4 Switch#

Switch#

Page 265 of the Cisco Systems 4500 user manual — Overview
Page 265 · click to enlarge
Page 265

Chapter 7 Checking Port Status and Connectivity

Displaying MAC Addresses

In addition to displaying the MAC address range for a module using the show module command, you can display the MAC address table information of a specific MAC address or a specific interface in the switch using the show mac-address-table address and show mac-address-table interface commands.

This example shows how to display MAC address table information for a specific MAC address:

Switch# show mac-address-table address 0050.3e8d.6400 vlan mac address type protocol qos ports +---+ 200 0050.3e8d.6400 static assigned -- Switch 100 0050.3e8d.6400 static assigned -- Switch 5 0050.3e8d.6400 static assigned -- Switch 4 0050.3e8d.6400 static ipx -- Switch 1 0050.3e8d.6400 static ipx -- Switch 1 0050.3e8d.6400 static assigned -- Switch 4 0050.3e8d.6400 static assigned -- Switch 5 0050.3e8d.6400 static ipx -- Switch 100 0050.3e8d.6400 static ipx -- Switch 200 0050.3e8d.6400 static ipx -- Switch 100 0050.3e8d.6400 static other -- Switch 200 0050.3e8d.6400 static other -- Switch 5 0050.3e8d.6400 static other -- Switch 4 0050.3e8d.6400 static ip -- Switch 1 0050.3e8d.6400 static ip -- Route 1 0050.3e8d.6400 static other -- Switch 4 0050.3e8d.6400 static other -- Switch 5 0050.3e8d.6400 static ip -- Switch 200 0050.3e8d.6400 static ip -- Switch 100 0050.3e8d.6400 static ip -- Switch Switch#

This example shows how to display MAC address table information for a specific interface:

Switch# show mac-address-table interface gigabit 1/1 Multicast Entries vlan mac address type ports + + + 1 ffff.ffff.ffff system Switch,Gi6/1,Gi6/2,Gi6/9,Gi1/1 Switch#

Checking Cable Status Using Time Domain Reflectometer

The Time Domain Reflectometer (TDR) feature allows you to determine if cable is OPEN or SHORT when it is at fault.

Overview

With TDR, you can check the status of copper cables on the 48-port 10/100/1000 BASE-T modules for the Catalyst 4500 series switch. TDR detects a cable fault by sending a signal through the cable and reading the signal that is reflected back. All or part of the signal can be reflected back either by cable defects or by the end of the cable.

Displaying MAC Addresses

Page 266 of the Cisco Systems 4500 user manual — Running the TDR Test
Page 266 · click to enlarge
Page 266

Chapter 7 Checking Port Status and Connectivity Checking Cable Status Using Time Domain Reflectometer

Note Four pairs of standard category 5 cable exist. Each pair can assume one of the following states: open (not connected), broken, shorted, or terminated. The TDR test detects all four states and displays the first three as “Fault” conditions, and displays the fourth as “Terminated.” Although the CLI output is shown, the cable length is displayed only if the state is “Faulty.”

TDR feature is supported on the following modules:

WS-X4524-GB-RJ45V

WS-X4548-GB-RJ45

WS-X4548-GB-RJ45V

WS-X4548-GB-RJ45V+

WS-X4548-RJ45V+

WS-X4908-10GB-R (only functions on WS-C4900M chassis)

WS-C4948-10GE (not supported on Supervisor Engine 6-E and later)

TDR detects a cable fault by sending a signal along its wires and depending on the reflected signal it can determine roughly where a cable fault could be. The variations on how TDR signal is reflected back determine the results on TDR. On cat4k products, we only support cable fault types: OPEN or SHORT. We do display Terminated status in case cable is proper terminated and this is done for illustrative purpose.

Running the TDR Test

To start the TDR test, perform this task:

Step 1 Switch# test cable-diagnostics tdr {interface {interface interface-number}}

Starts the TDR test.

Step 2 Switch# show cable-diagnostics tdr {interface {interface interface-number}}

Displays the TDR test counter information.

This example shows how to start the TDR test on port 1 on module 2:

Switch# test cable-diagnostics tdr int gi2/1 Switch#

This example shows the message that displays when the TDR test is not supported on a module:

Switch# test cable-diagnostics tdr int gi2/1 00:03:15:%C4K_IOSDIAGMAN-4-TESTNOTSUPPORTEDONMODULE: Online cable diag tdr test is not supported on this module Switch#

This example shows how to display TDR test results for a port:

Switch# show cable-diagnostics tdr interface gi4/13 Interface Speed Local pair Cable length Remote channel Status Gi4/13 0Mbps 1-2 102 +-2m Unknown Fault 3-6 100 +-2m Unknown Fault 4-5 102 +-2m Unknown Fault 7-8 102 +-2m Unknown Fault

Page 267 of the Cisco Systems 4500 user manual — Using Telnet
Page 267 · click to enlarge
Page 267

Chapter 7 Checking Port Status and Connectivity

TDR Guidelines

The following guidelines apply to the use of TDR:

  • If you connect a port undergoing a TDR test to an Auto-MDIX enabled port, the TDR result might be invalid. In those instances, the port on the WS-X4148-RJ45V should be administratively down before the start of the TDR test.
  • If you connect a port undergoing a TDR test to a 100BASE-T port such as that on the WS-X4148-RJ45V, the unused pairs (4-5 and 7-8) is reported as faulty because the remote end does not terminate these pairs.
  • Do not change the port configuration while the TDR test is running.
  • Due to cable characteristics, you should run the TDR test multiple times to get accurate results.
  • Do not change port status (for example, remove the cable at the near or far end) because the results might be inaccurate.
  • TDR works best if the test cable is disconnected from the remote port. Otherwise, it might be difficult for you to interpret results correctly.
  • TDR operates across four wires. Depending on the cable conditions, the status might show one pair is OPEN or SHORT while all other wire pairs display as faulty. This operaton is acceptable because you should declare a cable faulty provided one pair of wires is found to be OPEN or SHORT.
  • TDR intent is to determine how poorlya cable is functioning rather than to locate a faulty cable.
  • When TDR locates a faulty cable, you should still use an offline cable diagnosis tool to better diagnose the problem.
  • TDR results might differ between runs on different Catalyst 4500 modules because of the resolution difference of TDR implementations. When this occurs, you should refer to offline cable diagnosis tool.

Using Telnet

You can access the switch command-line interface (CLI) using Telnet. In addition, Telnet allows you to access other devices in the network. You can have up to eight simultaneous Telnet sessions.

Before you can open a Telnet session to the switch, you must first set the IP address (and in some cases the default gateway) for the switch. For information about setting the IP address and default gateway, see Chapter 3, “Configuring the Switch for the First Time.”

To establish a Telnet connection to another device on the network from the switch, enter this command:

Using Telnet

Page 268 of the Cisco Systems 4500 user manual — Monitoring User Sessions
Page 268 · click to enlarge
Page 268

Chapter 7 Checking Port Status and Connectivity Changing the Logout Timer

Switch# telnet host [port] Opens a Telnet session to a remote host.

This example shows how to establish a Telnet connection from the switch to the remote host named labsparc:

Switch# telnet labsparc Trying 172.16.10.3... Connected to labsparc. Escape character is '^]'.

UNIX(r) System V Release 4.0 (labsparc)

login:

Changing the Logout Timer

The logout timer automatically disconnects a user from the switch when the user is idle for longer than the specified time. To set the logout timer, enter this command:

Switch# logoutwarning number Changes the logout timer value (a timeout value of 0 prevents idle sessions from being disconnected automatically).

Use the no keyword to return to the default value.

Monitoring User Sessions

You can display the currently active user sessions on the switch using the show users command. The command output lists all active console port and Telnet sessions on the switch.

To display the active user sessions on the switch, enter this command:

Switch# show users [all] Displays the currently active user sessions on the switch.

This example shows the output of the show users command when local authentication is enabled for console and Telnet sessions (the asterisk [*] indicates the current session):

Switch# show users Line User Host(s) Idle Location * 0 con 0 idle 00:00:00

Interface User Mode Idle Peer Address

Switch# show users all Line User Host(s) Idle Location * 0 con 0 idle 00:00:00 1 vty 0 00:00:00

Page 269 of the Cisco Systems 4500 user manual — Understanding How Ping Works
Page 269 · click to enlarge
Page 269

Chapter 7 Checking Port Status and Connectivity

2 vty 1 00:00:00 3 vty 2 00:00:00 4 vty 3 00:00:00 5 vty 4 00:00:00

Interface User Mode Idle Peer Address Switch#

To disconnect an active user session, enter this command:

Switch# disconnect {console | ip_addr} Disconnects an active user session on the switch.

This example shows how to disconnect an active console port session and an active Telnet session:

Switch> disconnect console Console session disconnected. Console> (enable) disconnect tim-nt.bigcorp.com Telnet session from tim-nt.bigcorp.com disconnected. (1) Switch# show users Session User Location telnet jake jake-mac.bigcorp.com * telnet suzy suzy-pc.bigcorp.com Switch#

Using Ping

These sections describe how to use IP ping:

  • Understanding How Ping Works, page 7-7
  • Running Ping, page 7-8

Understanding How Ping Works

The ping command allows you to verify connectivity to remote hosts. If you attempt to ping a host in a different IP subnetwork, you must define a static route to the network or configure a router to route between those subnets.

The ping command is configurable from normal executive and privileged EXEC mode. Ping returns one of the following responses:

  • Normal response—The normal response ( hostname is alive) occurs in 1 to 10 seconds, depending on network traffic.
  • Destination does not respond—If the host does not respond, a No Answer message is returned.
  • Unknown host—If the host does not exist, an Unknown Host message is returned.
  • Destination unreachable—If the default gateway cannot reach the specified network, a Destination Unreachable message is returned.
  • Network or host unreachable—If there is no entry in the route table for the host or network, a Network or Host Unreachable message is returned.

To stop a ping in progress, press Ctrl-C.

Using Ping

Page 270 of the Cisco Systems 4500 user manual — Understanding How IP Traceroute Works
Page 270 · click to enlarge
Page 270

Chapter 7 Checking Port Status and Connectivity Using IP Traceroute

Running Ping

To ping another device on the network from the switch, enter this command in normal executive and privileged EXEC mode:

Switch# ping host Checks connectivity to a remote host.

This example shows how to ping a remote host from normal executive mode:

Switch# ping labsparc labsparc is alive Switch> ping 72.16.10.3 12.16.10.3 is alive Switch#

This example shows how to use a ping command in privileged EXEC mode to specify the number of packets, the packet size, and the timeout period:

Switch# ping Target IP Address []: 12.20.5.19 Number of Packets [5]: 10 Datagram Size [56]: 100 Timeout in seconds [2]: 10 Source IP Address [12.20.2.18]: 12.20.2.18!!!!!!!!!!

12.20.2.19 PING Statistics 10 packets transmitted, 10 packets received, 0% packet loss round-trip (ms) min/avg/max = 1/1/1 Switch

Using IP Traceroute

These sections describe how to use IP traceroute feature:

  • Understanding How IP Traceroute Works, page 7-8
  • Running IP Traceroute, page 7-9

Understanding How IP Traceroute Works

IP traceroute allows you to identify the path that packets take through the network on a hop-by-hop basis. The command output displays all network layer (Layer 3) devices, such as routers, that the traffic passes through on the way to the destination.

Layer 2 switches can participate as the source or destination of the trace command but does not appear as a hop in the trace command output.

The trace command uses the time to live (TTL) field in the IP header to cause routers and servers to generate specific return messages. Traceroute starts by sending a User Datagram Protocol (UDP) datagram to the destination host with the TTL field set to 1. If a router finds a TTL value of 1 or 0, it

Page 271 of the Cisco Systems 4500 user manual — Using Layer 2 Traceroute
Page 271 · click to enlarge
Page 271

Chapter 7 Checking Port Status and Connectivity

Using Layer 2 Traceroute

drops the datagram and sends back an Internet Control Message Protocol (ICMP) Time-Exceeded message to the sender. Traceroute determines the address of the first hop by examining the source address field of the ICMP Time-Exceeded message.

To identify the next hop, traceroute sends a UDP packet with a TTL value of 2. The first router decrements the TTL field by 1 and sends the datagram to the next router. The second router sees a TTL value of 1, discards the datagram, and returns the Time-Exceeded message to the source. This process continues until the TTL is incremented to a value large enough for the datagram to reach the destination host or until the maximum TTL is reached.

To determine when a datagram reaches its destination, traceroute sets the UDP destination port in the datagram to a very large value that the destination host is unlikely to be using. When a host receives a datagram with an unrecognized port number, it sends an ICMP Port Unreachable error message to the source. The Port Unreachable error message indicates to traceroute that the destination has been reached.

Running IP Traceroute

To trace the path that packets take through the network, enter this command in EXEC or privileged EXEC mode:

Switch# trace [protocol] [destination] Runs IP traceroute to trace the path that packets take through the network.

This example shows how to use the trace command to display the route a packet takes through the network to reach its destination:

Switch# trace ip ABA.NYC.mil Type escape sequence to abort. Tracing the route to ABA.NYC.mil (26.0.0.73) 1 DEBRIS.CISCO.COM (192.180.1.6) 1000 msec 8 msec 4 msec 2 BARRNET-GW.CISCO.COM (192.180.16.2) 8 msec 8 msec 8 msec 3 EXTERNAL-A-GATEWAY.STANFORD.EDU (192.42.110.225) 8 msec 4 msec 4 msec 4 BB2.SU.BARRNET.NET (192.200.254.6) 8 msec 8 msec 8 msec 5 SU.ARC.BARRNET.NET (192.200.3.8) 12 msec 12 msec 8 msec 6 MOFFETT-FLD-MB.in.MIL (192.52.195.1) 216 msec 120 msec 132 msec 7 ABA.NYC.mil (26.0.0.73) 412 msec 628 msec 664 msec Switch#

Using Layer 2 Traceroute

The Layer 2 traceroute feature allows the switch to identify the physical path that a packet takes from a source device to a destination device. Layer 2 traceroute supports only unicast source and destination MAC addresses. It determines the path by using the MAC address tables of the switches in the path. When the switch detects a device in the path that does not support Layer 2 traceroute, the switch continues to send Layer 2 trace queries and lets them time out.

If you want the switch to trace the path from a host on a source device to a host on a destination device, the switch can identify only the path from the source device to the destination device. It cannot identify the path that a packet takes from source host to the source device or from the destination device to the destination host.

Page 272 of the Cisco Systems 4500 user manual — Layer 2 Traceroute Usage Guidelines
Page 272 · click to enlarge
Page 272

Chapter 7 Checking Port Status and Connectivity Using Layer 2 Traceroute

These sections describe how to use the Layer 2 traceroute feature:

  • Layer 2 Traceroute Usage Guidelines, page 7-10
  • Running Layer 2 Traceroute, page 7-11

Layer 2 Traceroute Usage Guidelines

These are the Layer 2 traceroute usage guidelines:

  • CDP must be enabled on all the devices in the network. For Layer 2 traceroute to function properly, do not disable CDP.

If any devices in the physical path are transparent to CDP, the switch cannot identify the path through these devices.

  • All switches in the physical path must have IP connectivity. When a switch is reachable from another switch, you can test connectivity by using the ping command in privileged EXEC mode.
  • The maximum number of hops identified in the path is ten.
  • You can enter the traceroute mac or the traceroute mac ip command in privileged EXEC mode on a switch that is not in the physical path from the source device to the destination device. All switches in the path must be reachable from this switch.
  • The traceroute mac command output shows the Layer 2 path only when the specified source and destination MAC addresses belong to the same VLAN. If you specify source and destination MAC addresses that belong to different VLANs, the Layer 2 path is not identified, and an error message appears.
  • If you specify a multicast source or destination MAC address, the path is not identified, and an error message appears.
  • If the source or destination MAC address belongs to multiple VLANs, you must specify the VLAN to which both the source and destination MAC addresses belong. If the VLAN is not specified, the path is not identified, and an error message appears.
  • The traceroute mac ip command output shows the Layer 2 path when the specified source and destination IP addresses belong to the same subnet. When you specify the IP addresses, the switch uses Address Resolution Protocol (ARP) to associate the IP address with the corresponding MAC address and the VLAN ID.

– If an ARP entry exists for the specified IP address, the switch uses the associated MAC address and identifies the physical path.

– If an ARP entry does not exist, the switch sends an ARP query and tries to resolve the IP address. If the IP address is not resolved, the path is not identified, and an error message appears.

  • When multiple devices are attached to one port through hubs (for example, multiple CDP neighbors are detected on a port), the Layer 2 traceroute feature is not supported. When more than one CDP neighbor is detected on a port, the Layer 2 path is not identified, and an error message appears.
  • This feature is not supported in Token Ring VLANs.
Page 273 of the Cisco Systems 4500 user manual — Configuring ICMP
Page 273 · click to enlarge
Page 273

Chapter 7 Checking Port Status and Connectivity

Running Layer 2 Traceroute

To display the physical path that a packet takes from a source device to a destination device, enter either one of these commands:

Switch# traceroute mac {source-mac-address} {destination-mac-address}

Runs Layer 2 traceroute to trace the path that packets take through the network.

Switch# traceroute mac ip {source-mac-address} {destination-mac-address}

Runs IP traceroute to trace the path that packets take through the network.

These examples show how to use the traceroute mac and traceroute mac ip commands to display the physical path a packet takes through the network to reach its destination:

Switch# traceroute mac 0000.0201.0601 0000.0201.0201

Source 0000.0201.0601 found on con6[WS-C2950G-24-EI] (2.2.6.6) con6 (2.2.6.6) :Fa0/1 => Fa0/3 con5 (2.2.5.5 ) : Fa0/3 => Gi0/1 con1 (2.2.1.1 ) : Gi0/1 => Gi0/2 con2 (2.2.2.2 ) : Gi0/2 => Fa0/1 Destination 0000.0201.0201 found on con2[WS-C3550-24] (2.2.2.2) Layer 2 trace completed Switch#

Switch# traceroute mac ip 2.2.66.66 2.2.22.22 detail Translating IP to mac 2.2.66.66 => 0000.0201.0601 2.2.22.22 => 0000.0201.0201

Source 0000.0201.0601 found on con6[WS-C2950G-24-EI] (2.2.6.6) con6 / WS-C2950G-24-EI / 2.2.6.6 : Fa0/1 [auto, auto] => Fa0/3 [auto, auto] con5 / WS-C2950G-24-EI / 2.2.5.5 : Fa0/3 [auto, auto] => Gi0/1 [auto, auto] con1 / WS-C3550-12G / 2.2.1.1 : Gi0/1 [auto, auto] => Gi0/2 [auto, auto] con2 / WS-C3550-24 / 2.2.2.2 : Gi0/2 [auto, auto] => Fa0/1 [auto, auto] Destination 0000.0201.0201 found on con2[WS-C3550-24] (2.2.2.2) Layer 2 trace completed. Switch#

Configuring ICMP

Internet Control Message Protocol (ICMP) provides many services that control and manage IP connections. ICMP messages are sent by routers or access servers to hosts or other routers when a problem is discovered with the Internet header. For detailed information on ICMP, refer to RFC 792.

Configuring ICMP · or

Page 274 of the Cisco Systems 4500 user manual — Enabling ICMP Redirect Messages
Page 274 · click to enlarge
Page 274

Chapter 7 Checking Port Status and Connectivity Configuring ICMP

Enabling ICMP Protocol Unreachable Messages

If the Cisco IOS software receives a nonbroadcast packet that uses an unknown protocol, it sends an ICMP Protocol Unreachable message back to the source.

Similarly, if the software receives a packet that it is unable to deliver to the ultimate destination because it knows of no route to the destination address, it sends an ICMP Host Unreachable message to the source. This feature is enabled by default.

To enable the generation of ICMP Protocol Unreachable and Host Unreachable messages, enter the following command in interface configuration mode:

Switch (config-if)# [no] ip unreachables Enables ICMP destination unreachable messages.

Use the no keyword to disable the ICMP destination unreachable messages.

To limit the rate that Internet Control Message Protocol (ICMP) destination unreachable messages are generated, enter the following command:

Switch (config)# [no] ip icmp rate-limit unreachable [df] milliseconds

Limits the rate that ICMP destination messages are generated.

Use the no keyword to remove the rate limit and reduce the CPU usage.

Enabling ICMP Redirect Messages

Data routes are sometimes less than optimal. For example, it is possible for the router to be forced to resend a packet through the same interface on which it was received. If this occurs, the Cisco IOS software sends an ICMP Redirect message to the originator of the packet telling the originator that the router is on a subnet directly connected to the receiving device, and that it must forward the packet to another system on the same subnet. The software sends an ICMP Redirect message to the packet's originator because the originating host presumably could have sent that packet to the next hop without involving this device at all. The Redirect message instructs the sender to remove the receiving device from the route and substitute a specified device representing a more direct path. This feature is enabled by default.

However, when Hot Standby Router Protocol (HSRP) is configured on an interface, ICMP Redirect messages are disabled (by default) for the interface. For more information on HSRP, refer to the following URL: http://www.cisco.com/en/US/docs/ios/ipapp/configuration/guide/ipapp_hsrp_ps6350_TSD_Products_Confi guration_Guide_Chapter.html

Page 275 of the Cisco Systems 4500 user manual — Enabling ICMP Mask Reply Messages
Page 275 · click to enlarge
Page 275

Chapter 7 Checking Port Status and Connectivity

To enable the sending of ICMP Redirect messages if the Cisco IOS software is forced to resend a packet through the same interface on which it was received, enter the following command in interface configuration mode:

Switch (config-if)# [no] ip redirects Enables ICMP Redirect messages.

Use the no keyword to disable the ICMP Redirect messages and reduce CPU usage.

Enabling ICMP Mask Reply Messages

Occasionally, network devices must know the subnet mask for a particular subnetwork in the internetwork. To obtain this information, devices can send ICMP Mask Request messages. These messages are responded to by ICMP Mask Reply messages from devices that have the requested information. The Cisco IOS software can respond to ICMP Mask Request messages if the ICMP Mask Reply function is enabled.

To have the Cisco IOS software respond to ICMP mask requests by sending ICMP Mask Reply messages, enter the following command:

Switch (config-if)# [no] ip mask-reply Enables response to ICMP destination mask requests.

Use the no keyword to disable this functionality.

Configuring ICMP

Page 276 of the Cisco Systems 4500 user manual — Checking Port Status and Connectivity
Page 276 · click to enlarge
Page 276

Chapter 7 Checking Port Status and Connectivity Configuring ICMP

Page 277 of the Cisco Systems 4500 user manual — C H A P T E R
Page 277 · click to enlarge
Page 277

C H A P T E R

Configuring Supervisor Engine Redundancy Using RPR and SSO

Catalyst 4500 series switches allow a redundant supervisor engine to take over if the active supervisor engine fails. In software, supervisor engine redundancy is enabled by running the redundant supervisor engine in route processor redundancy (RPR) or stateful switchover (SSO) operating mode.

This chapter describes how to configure supervisor engine redundancy on the Catalyst 4507R and Catalyst 4510R switches.

This chapter contains these major sections:

  • About Supervisor Engine Redundancy, page 8-2
  • About Supervisor Engine Redundancy Synchronization, page 8-4
  • Supervisor Engine Redundancy Guidelines and Restrictions, page 8-5
  • Configuring Supervisor Engine Redundancy, page 8-8
  • Performing a Manual Switchover, page 8-13
  • Performing a Software Upgrade, page 8-13
  • Manipulating Bootflash on the Redundant Supervisor Engine, page 8-15

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 278 of the Cisco Systems 4500 user manual — Chassis (Product Number) Supported Supervisor Engines
Page 278 · click to enlarge
Page 278

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO About Supervisor Engine Redundancy

About Supervisor Engine Redundancy

These sections describe supervisor engine redundancy:

  • Overview, page 8-2
  • RPR Operation, page 8-3
  • SSO Operation, page 8-3

Overview

With supervisor engine redundancy enabled, if the active supervisor engine fails or if a manual switchover is performed, the redundant supervisor engine becomes the active supervisor engine. The redundant supervisor engine has been automatically initialized with the startup configuration of the active supervisor engine, shortening the switchover time (30 seconds or longer in RPR mode, depending on the configuration; subsecond in SSO mode).

In addition to the reduced switchover time, supervisor engine redundancy supports the following:

  • Online insertion and removal (OIR) of the redundant supervisor engine.

Supervisor engine redundancy allows OIR of the redundant supervisor engine for maintenance. When the redundant supervisor engine is inserted, the active supervisor engine detects its presence, and the redundant supervisor engine boots into a partially-initialized state in RPR mode and a fully-initialized state in SSO mode.

  • Software upgrade. See the “Performing a Software Upgrade” section on page 8-13 .

To minimize down time during software changes on the supervisor engine, load the new image on the redundant supervisor engine, and conduct a switchover.

When power is first applied to a switch, the supervisor engine that boots first becomes the active supervisor engine and remains active until a switchover occurs.

A switchover occurs when one or more of the following events take place:

  • The active supervisor engine fails (due to either hardware or software function) or is removed.
  • A user forces a switchover.
  • A user reloads the active supervisor engine.

Table 8-1 provides information about chassis and supervisor engine support for redundancy.

Table 8-1 Chassis and Supervisor Support

Chassis (Product Number) Supported Supervisor Engines

Supports redundant Supervisor Engine II-Plus (WS-X4013+), redundant Supervisor Engine II-Plus (WS-X4013+GE), Supervisor Engine IV (WS-X4515), redundant Supervisor Engine V (WS-X4516), and redundant Supervisor Engine V (WS-X4516-10GE).

Supports redundant Supervisor Engine V (WS-X4516) and redundant Supervisor Engine V (WS-X4516-10GE).

Catalyst 4507R (WS-C4507R) · Catalyst 4510R (WS-C4510R)

Page 279 of the Cisco Systems 4500 user manual — SSO Operation
Page 279 · click to enlarge
Page 279

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

About Supervisor Engine Redundancy

RPR Operation

RPR is supported in Cisco IOS Release 12.2(12c)EW and later releases. When a redundant supervisor engine runs in RPR mode, it starts up in a partially-initialized state and is synchronized with the persistent configuration of the active supervisor engine.

The redundant supervisor engine pauses the startup sequence after basic system initialization, and in the event that the active supervisor engine fails, the redundant supervisor engine becomes the new active supervisor engine.

In a supervisor engine switchover, traffic is disrupted because in the RPR mode all of the physical ports restart since there is no state maintained between supervisor engines relating to module types and statuses. When the redundant supervisor engine completes its initialization, it reads hardware information directly from the module.

SSO Operation

SSO is supported in Cisco IOS Release 12.2(20)EWA and later releases. When a redundant supervisor engine runs in SSO mode, the redundant supervisor engine starts up in a fully-initialized state and synchronizes with the persistent configuration and the running configuration of the active supervisor engine. It subsequently maintains the state on the protocols listed below, and all changes in hardware and software states for features that support stateful switchover are kept in synchronization. Consequently, it offers zero interruption to Layer 2 sessions in a redundant supervisor engine configuration.

Because the redundant supervisor engine recognizes the hardware link status of every link, ports that were active before the switchover remain active, including the uplink ports. However, because uplink ports are physically on the supervisor engine, they will be disconnected if the supervisor engine is removed.

If the active supervisor engine fails, the redundant supervisor engine become active. This newly active supervisor engine uses existing Layer 2 switching information to continue forwarding traffic. Layer 3 forwarding is delayed until the routing tables have been repopulated in the newly active supervisor engine.

SSO supports stateful switchover of the following Layer 2 features. The state of these features is preserved between both the active and redundant supervisor engines:

  • 802.3
  • 802.3u
  • 802.3x (Flow Control)
  • 802.3ab (GE)
  • 802.3z (Gigabit Ethernet including CWDM)
  • 802.3ad (LACP)
  • 802.1p (Layer 2 QoS)
  • 802.1q
  • 802.1X (Authentication)
Page 280 of the Cisco Systems 4500 user manual — About Supervisor Engine Redundancy Synchronization
Page 280 · click to enlarge
Page 280

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO About Supervisor Engine Redundancy Synchronization

  • 802.1D (Spanning Tree Protocol)
  • 802.3af (Inline power)
  • PAgP
  • VTP
  • Dynamic ARP Inspection
  • DHCP snooping
  • IP source guard
  • IGMP snooping (versions 1 and 2)
  • DTP (802.1q and ISL)
  • MST
  • PVST+
  • Rapid-PVST
  • PortFast/UplinkFast/BackboneFast
  • BPDU guard and filtering
  • Voice VLAN
  • Port security
  • Unicast MAC filtering
  • ACL (VACLS, PACLS, RACLS)
  • QoS (DBL)
  • Multicast storm control/broadcast storm control

SSO is compatible with the following list of features. However, the protocol database for these features is not synchronized between the redundant and active supervisor engines:

  • 802.1Q tunneling with Layer 2 Protocol Tunneling (L2PT)
  • Baby giants
  • Jumbo frame support
  • CDP
  • Flood blocking
  • UDLD
  • SPAN/RSPAN
  • NetFlow

The following features are learned on the redundant supervisor engine if the SSO feature is enabled:

  • All Layer 3 protocols on Catalyst 4500 series switches (Switch Virtual Interfaces)

About Supervisor Engine Redundancy Synchronization

During normal operation, the persistent configuration (RPR and SSO) and the running configuration (SSO only) are synchronized by default between the two supervisor engines. In a switchover, the new active supervisor engine uses the current configuration.

Page 281 of the Cisco Systems 4500 user manual — Supervisor Engine Redundancy Guidelines and Restrictions
Page 281 · click to enlarge
Page 281

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Supervisor Engine Redundancy Guidelines and Restrictions

These sections describe supervisor engine redundancy synchronization:

  • RPR Supervisor Engine Configuration Synchronization, page 8-5
  • SSO Supervisor Engine Configuration Synchronization, page 8-5

RPR Supervisor Engine Configuration Synchronization

Because the redundant supervisor engine is only partially initialized in RPR mode, it interacts with the active supervisor engine only to receive configuration changes at startup and upon saving the configuration changes.

When a redundant supervisor engine is running in RPR mode, the following events trigger synchronization of the configuration information:

  • When the redundant supervisor engine boots, the auto-sync command synchronizes the persistent configuration. This command is enabled by default. For details, refer to “Synchronizing the Supervisor Engine Configurations” section on page 8-11 .
  • When the active supervisor engine detects the redundant supervisor engine, the configuration information is synchronized from the active supervisor engine to the redundant supervisor engine. This synchronization overwrites any existing startup configuration file on the redundant supervisor engine.
  • When you make changes to the configuration, you must use the write command to save and synchronize the startup configuration of the redundant supervisor engine.

SSO Supervisor Engine Configuration Synchronization

When a redundant supervisor engine runs in SSO mode, the following events trigger synchronization of the configuration information:

  • When the active supervisor detects the redundant supervisor engine, synchronization of the persistent and running configuration takes place, allowing the redundant supervisor engine to arrive at a fully-initiated state.
  • When real-time changes occur, the active supervisor engine synchronizes the running-config and (or) the persistent configuration (if necessary) with the redundant supervisor engine.
  • When you change the configuration, you must use the write command to allow the active supervisor engine to save and synchronize the startup configuration of the redundant supervisor engine.

Supervisor Engine Redundancy Guidelines and Restrictions

The following guidelines and restrictions apply to supervisor engine redundancy:

  • If SSO mode cannot be established between the active and standby supervisor engines because of an incompatibility in the configuration file, a mismatched command list (MCL) is generated at the active supervisor engine and a reload into RPR mode is forced for the standby supervisor engine. Subsequent attempts to establish SSO, after removing the offending configuration and rebooting the standby supervisor engine with the exact same image, might cause the
Page 282 of the Cisco Systems 4500 user manual — Configuring Supervisor Engine Redundancy Using RPR and SSO
Page 282 · click to enlarge
Page 282

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO Supervisor Engine Redundancy Guidelines and Restrictions

C4K_REDUNDANCY-2-IOS_VERSION_CHECK_FAIL and ISSU-3-PEER_IMAGE_INCOMPATIBLE messages to appear because the peer image is listed as incompatible. If the configuration problem can be corrected, you can clear the peer image from the incompatible list with the redundancy config-sync ignore mismatched-commands EXEC command while the peer is in a standby cold (RPR) state. This action allows the standy supervisor engine to boot in standby hot (SSO) state when it reloads.

Here are the steps:

Step 1 Clear the offending configuration (that caused an MCL) while the standby supervisor engine is in standby cold (RPR) state.

Step 2 Enter the redundancy config-sync ignore mismatched-commands EXEC command at the active standby supervisor engine.

Step 3 Perform write memory.

Step 4 Reload the standy supervisor engine with the redundancy reload peer command.

  • If you configure Supervisor Engine V-10GE to use both Gigabit Ethernet and 10-Gigabit Ethernet uplinks without WS-X4302-GB in slot 10, module 10 is disabled and you cannot rollback the configuration to use gigabit ports.

Enter the following commands to recover:

config t hw-module uplink select tengigabitethernet // This sets the switch back to default mode! ctrl z wr me redundancy reload shelf // The switch will reload with all 10 modules working ok

config t hw-module uplink select gigabitethernet // This sets the switch to the desired link ! ctrl z wr me redundancy reload shelf // The switch reloads with module 10 active with the gigabit ethernet port(s) ON and the ten gigabit ethernet port(s) Off

  • RPR requires Cisco IOS Release 12.1(12c)EW, Release 12.1(19)E or later releases. SSO requires Cisco IOS Release 12.2(20)EWA or later releases.
  • The Catalyst 4507R switch and the 4510R switch are the only Catalyst 4500 series switches that support supervisor engine redundancy.
  • The Catalyst 4510R series switch only supports the WS-X4516 and WS-X4516-10GE supervisor engines. The Catalyst 4507R series switch supports supervisor engines WS-X4013+, WS-X4013+10GE, WS-X4515, WS-X4516, and WS-X4516-10GE.
  • In Cisco IOS Release 12.2(25)SG and later releases on a Catalyst 4507R series switch, 10-Gigabit Ethernet and Gigabit Ethernet uplinks are concurrently usable on the Supervisor Engine V-10GE (WS-X4516-10GE) and the Supervisor Engine II+10GE (WS-4013+10GE). In Cisco IOS releases earlier than 12.2(25)SG, you need to use the hw-module uplink select configuration command to select either the 10-Gigabit Ethernet or Gigabit Ethernet uplinks.

//The switch reloads

Page 283 of the Cisco Systems 4500 user manual — Configuring Supervisor Engine Redundancy Using RPR and SSO
Page 283 · click to enlarge
Page 283

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Supervisor Engine Redundancy Guidelines and Restrictions

  • In Cisco IOS Release 12.2(25)SG and later releases, when using a Supervisor Engine V-10GE (WS-X4516-10GE) on a Catalyst 4510R series switch, you can select to use both the 10-Gigabit Ethernet and Gigabit Ethernet uplinks concurrently, but only with a WS-X4302-GB in slot 10. If either the 10-Gigabit Ethernet or Gigabit Ethernet uplinks are selected, then any line card is allowe d in slot 10. To select the uplinks, use the hw-module uplink select configuration command. In Cisco IOS releases earlier than 12.2(25)SG, you cannot use the 10-Gigabit Ethernet and Gigabit Ethernet uplinks concurrently.
  • When you select 10-Gigabit Ethernet uplinks on WS-X4516-10GE and WS-X4013+10GE Supervisor Engines in RPR or SSO mode, only TenGigabitEthernet 1/1 and 2/1 interfaces are available. Similarly, when you select Gigabit Ethernet uplinks, only GigabitEthernet 1/3, 1/4, 2/3, and 2/4 interfaces are available. When you select to use both uplinks concurrently, TenGigabitEthernet 1/1 and 2/1 interfaces and GigabitEthernet 1/3, 1/4, 2/3, and 2/4 interfaces are available.
  • Redundancy requires both supervisor engines in the chassis to have the same components (model, memory, NFL daughter card), and to use the same Cisco IOS software image.
  • When you use the WS-X4013+ and WS-X4515 supervisor engines in RPR or SSO mode, only the Gig1/1 and Gig2/1 Gigabit Ethernet interfaces are available, but the Gig1/2 and Gig2/2 uplink ports are unavailable.
  • When the WS-X4516 active and redundant supervisor engines are installed in the same chassis, the four uplink ports (Gig1/1, Gig2/1, Gig 1/2, and Gig2/2) are available.
  • The active and redundant supervisor engines in the chassis must be in slots 1 and 2.
  • Each supervisor engine in the chassis must have its own flash device and console port connections to operate the switch on its own.
  • Each supervisor engine must have a unique console connection. Do not connect a Y cable to the console ports.
  • Supervisor engine redundancy does not provide supervisor engine load balancing.
  • The Cisco Express Forwarding (CEF) table is cleared on a switchover. As a result, routed traffic is interrupted until route tables reconverge. This reconvergence time is minimal because the SSO feature reduces the supervisor engine redundancy switchover time from 30+ seconds to subsecond, so Layer 3 also has a faster failover time if the switch is configured for SSO.
  • Static IP routes are maintained across a switchover because they are configured from entries in the configuration file.
  • Information about Layer 3 dynamic states that is maintained on the active supervisor engine is not synchronized to the redundant supervisor engine and is lost on switchover.
  • Starting with Cisco IOS Release 12.2, if an unsupported condition is detected (such as when the active supervisor engine is running Cisco IOS Release 12.2(20)EW and the redundant supervisor engine is running Cisco IOS Release 12.1(20)EW), the redundant supervisor engine is reset multiple times and then placed in ROMMON mode. It is important to follow the procedures outlined in the “Performing a Software Upgrade” section on page 8-13 .
  • If you are running (or upgrading to) Cisco IOS Release 12.2(20)EWA or Cisco IOS Release 12.2(25)EW and are using a single supervisor engine in a redundant chassis (Catalyst 4507R or Catalyst 4510R series switch), and you intend to use routed ports, do one of the following:

– Use SVIs instead of routed ports.

– Change the redundancy mode from SSO to RPR.

Page 284 of the Cisco Systems 4500 user manual — Configuring Redundancy
Page 284 · click to enlarge
Page 284

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO Configuring Supervisor Engine Redundancy

  • Configuration changes made to the redundant supervisor engine through SNMP synchronization and SNMP set operations in SSO mode are not synchronized to the redundant supervisor engine. Even though you can still perform SNMP set operations in SSO mode, you might experience unexpected behavior.

After you configure the switch through SNMP in SSO mode, copy the running-config file to the startup-config file on the active supervisor engine to trigger synchronization of the startup-config file on the redundant supervisor engine. Reload the redundant supervisor engine so that the new configuration is applied on the redundant supervisor engine.

  • You cannot perform configuration changes during the startup (bulk) synchronization. If you attempt to make configuration changes during this process, the following message is generated:

Config mode locked out till standby initializes

  • If configuration changes occur at the same time as a supervisor engine switchover, these configuration changes are lost.
  • If you remove a line card from a redundant switch and initiate an SSO switchover, and then reinsert the line card, all interfaces are shutdown. The rest of the original line card configuration is preserved.

This situation only occurs if a switch had reached SSO before you removed the line card.

Configuring Supervisor Engine Redundancy

These sections describe how to configure supervisor engine redundancy:

  • Configuring Redundancy, page 8-8
  • Virtual Console for Standby Supervisor Engine, page 8-10
  • Synchronizing the Supervisor Engine Configurations, page 8-11

Configuring Redundancy

To configure redundancy, perform this task:

Step 1 Switch(config)# redundancy Enters redundancy configuration mode.

Step 2 Switch(config-red)# mode {sso | rpr} Configures SSO or RPR. When this command is entered, the redundant supervisor engine is reloaded and begins to work in SSO or RPR mode.

Step 3 Switch# show running-config Verifies that SSO or RPR is enabled.

Step 4 Switch# show redundancy [clients | counters | history | states]

Displays the redundancy information (counter, state, and so on) for the active and redundant supervisor engines.

When configuring redundancy, note the following:

  • The sso keyword is supported in Cisco IOS Release 12.2(20)EWA and later releases.
  • The rpr keyword is supported in Cisco IOS Release 12.1(12c)EW and later releases.
Page 285 of the Cisco Systems 4500 user manual — Configuring Supervisor Engine Redundancy Using RPR and SSO
Page 285 · click to enlarge
Page 285

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Configuring Supervisor Engine Redundancy

This example shows how to configure the system for SSO and display the redundancy facility information:

Switch> enable Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# redundancy Switch(config-red)# mode sso Switch(config-red)# end Switch# show redundancy Redundant System Information : Available system uptime = 2 days, 2 hours, 39 minutes Switchovers system experienced = 0 Standby failures = 0 Last switchover reason = none

Hardware Mode = Duplex Configured Redundancy Mode = Stateful Switchover Operating Redundancy Mode = Stateful Switchover Maintenance Mode = Disabled Communications = Up

Current Processor Information : Active Location = slot 1 Current Software state = ACTIVE Uptime in current state = 2 days, 2 hours, 39 minutes Image Version = Cisco Internetwork Operating System Software IOS (tm) Catalyst 4000 L3 Switch Software (cat4000-I5S-M), Version 12.2(20)EWA(3 .92), CISCO INTERNAL USE ONLY ENHANCED PRODUCTION VERSION Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Wed 14-Jul-04 04:42 by esi BOOT = bootflash:cat4000-i5s-mz.122_20_EWA_392,1 Configuration register = 0x2002

Peer Processor Information : Standby Location = slot 2 Current Software state = STANDBY HOT Uptime in current state = 2 days, 2 hours, 39 minutes Image Version = Cisco Internetwork Operating System Software IOS (tm) Catalyst 4000 L3 Switch Software (cat4000-I5S-M), Version 12.2(20)EWA(3 .92), CISCO INTERNAL USE ONLY ENHANCED PRODUCTION VERSION Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Wed 14-Jul-04 0 BOOT = bootflash:cat4000-i5s-mz.122_20_EWA_392,1 Configuration register = 0x2002

This example shows how to display redundancy facility state information:

Switch# show redundancy states my state = 13 -ACTIVE peer state = 8 -STANDBY HOT Mode = Duplex Unit = Primary Unit ID = 2

Redundancy Mode (Operational) = Stateful Switchover Redundancy Mode (Configured) = Stateful Switchover Redundancy State = Stateful Switchover Maintenance Mode = Disabled

Switch#

Page 286 of the Cisco Systems 4500 user manual — Virtual Console for Standby Supervisor Engine
Page 286 · click to enlarge
Page 286

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO Configuring Supervisor Engine Redundancy

Manual Swact = enabled Communications = Up

client count = 21 client_notification_TMR = 240000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 0 keep_alive threshold = 18 RF debug mask = 0x0 Switch#

This example shows how to change the system configuration from RPR to SSO mode:

Switch(config)# redundancy Switch(config-red)# mode Switch(config-red)# mode sso Changing to sso mode will reset the standby. Do you want to continue?[confirm] Switch(config-red)# end Switch# *Aug 1 13:11:16: %C4K_REDUNDANCY-3-COMMUNICATION: Communication with the peer Supervisor has been lost *Aug 1 13:11:16: %C4K_REDUNDANCY-3-SIMPLEX_MODE: The peer Supervisor has been lost

This example shows how to change the system configuration from SSO to RPR mode:

Switch(config)# redundancy Switch(config-red)# mode rpr Changing to rpr mode will reset the standby. Do you want to continue?[confirm] Switch(config-red)# end *Aug 1 13:11:16: %C4K_REDUNDANCY-3-COMMUNICATION: Communication with the peer Supervisor has been lost *Aug 1 13:11:16: %C4K_REDUNDANCY-3-SIMPLEX_MODE: The peer Supervisor has been lost

Virtual Console for Standby Supervisor Engine

Catalyst 4500 series switches can be configured with two supervisor engines to provide redundancy. When the switch is powered, one of the supervisor engines becomes active and remains active until a switchover occurs. The other supervisor engine remains in standby mode.

Each supervisor engine has its own console port. Access to the standby supervisor engine is possible only through the console port of the standby supervisor engine. You must connect to the standby console to access, monitor or debug the standby supervisor.

The virtual console for a standby supervisor Engine enables you to access the standby console from the active supervisor engine without requiring a physical connection to the standby console. It uses IPC over EOBC to communicate with the standby supervisor engine, which emulates the standby console on the active supervisor engine. Only one active standby console session is active at any time.

The virtual console for the standby supervisor engine allows users who are logged onto the active supervisor engine to remotely execute show commands on the standby supervisor engine and view the results on the active supervisor engine. Virtual console is available only from the active supervisor engine.

You can access the standby virtual console from the active supervisor engine with the attach module, session module, or remote login commands on the active supervisor engine. You must be in privilege EXEC mode (level 15) to run these commands to access the standby console.

Once you enter the standby virtual console, the terminal prompt automatically changes to hostname-standby-console where hostname is the configured name of the switch. The prompt is restored back to the original prompt when you exit the virtual console.

Page 287 of the Cisco Systems 4500 user manual — Synchronizing the Supervisor Engine Configurations
Page 287 · click to enlarge
Page 287

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Configuring Supervisor Engine Redundancy

You exit the virtual console with the exit or quit commands. When the inactivity period of the terminal on the active supervisor engine where you logged in exceeds the configured idle time, you are automatically logged out of the terminal on the active supervisor engine. In such a case, the virtual console session is also terminated. Virtual console session is also automatically terminated when the standby is rebooted. After the standby boots up, you need to create another virtual console session.

To log in to the standby supervisor engine using a virtual console, enter the following command:

Switch# session module 2 Connecting to standby virtual console Type "exit" or "quit" to end this session

If the standby console is not enabled, the following message appears:

Switch-standby-console# Standby console disabled. Valid commands are: exit, logout

The following limitations apply to the standby virtual console:

  • All commands on the virtual console run to completion. It does not provide the auto-more feature; it functions as if the terminal length 0 command has been executed. It is also noninteractive. You cannot interupt or abort an executing command by any key sequence on the active supervisor engine. If a command produces considerable output, the virtual console displays it on the supervisor engine screen.
  • The virtual console is noninteractive. Because the virtual console does not detect the interactive nature of a command, any command that requires user interaction causes the virtual console to wait until the RPC timer aborts the command.

The virtual console timer is set to 60 seconds. The virtual console returns to its prompt after 60 seconds. During this time, you cannot abort the command from the key board. You must wait for the timer to expire before you continue.

  • You cannot use virtual console to view debug and syslog messages that are being displayed on the standby supervisor engine. The virtual console only displays the output of commands that are executed from the virtual console. Other information that is displayed on the real standby console does not appear on the virtual console.

Synchronizing the Supervisor Engine Configurations

To manually synchronize the configurations used by the two supervisor engines, perform this task on the active supervisor engine:

Step 1 Switch(config)# redundancy Enters redundancy configuration mode.

Step 2 Switch(config-red)# main-cpu Enters main-cpu configuration submode.

Step 3 Switch(config-r-mc)# auto-sync {startup-config | config-register | bootvar | standard}

Synchronizes the configuration elements.

Switch-standby-console# exit Switch#

Page 288 of the Cisco Systems 4500 user manual — Configuring Supervisor Engine Redundancy Using RPR and SSO
Page 288 · click to enlarge
Page 288

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO Configuring Supervisor Engine Redundancy

Step 4 Switch(config-r-mc)# end Returns to privileged EXEC mode.

Step 5 Switch# copy running-config startup-config Synchronizes the running configuration in dynamic random-access memory (DRAM) to the startup configuration file in NVRAM.

This example shows how to reenable the default automatic synchronization feature using the auto-sync standard command to synchronize the startup-config and config-register configuration of the active supervisor engine with the redundant supervisor engine. Updates for the boot variables are automatic and cannot be disabled.

Switch(config)# redundancy Switch(config-red)# main-cpu Switch(config-r-mc)# auto-sync standard Switch(config-r-mc)# end Switch# copy running-config startup-config

This example shows how to disable default automatic synchronization and allow only automatic synchronization of the config-registers of the active supervisor engine to the redundant supervisor engine, while disallowing synchronization of the startup configuration:

Switch(config)# redundancy Switch(config-red)# main-cpu Switch(config-r-mc)# no auto-sync standard Switch(config-r-mc)# auto-sync config-register Switch(config-r-mc)# end

Page 289 of the Cisco Systems 4500 user manual — Performing a Software Upgrade
Page 289 · click to enlarge
Page 289

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Performing a Manual Switchover

Performing a Manual Switchover

This section describes how to perform a manual switchover (from the active supervisor engine to the redundant supervisor engine) for test purposes. We recommend that you perform a manual switchover prior to deploying SSO in your production environment.

To perform a manual switchover, perform this task on the active supervisor engine:

Step 1 Switch# show redundancy Verifies that the peer state is in the standby hot state.

See the example of the show redundancy states command on page 6-10.

Step 2 Switch# redundancy force-switchover Launches switchover from the active supervisor engine to the redundant supervisor engine.

If the state of the redundant supervisor engine is not standby hot, this command does not execute.

Be aware of these usage guidelines:

  • To force a switchover, the redundant supervisor engine must be in a standby hot state. You can verify the state with the show redundancy command. If the state is not standby hot, the redundancy force-switchover command does not execute.
  • Use the redundancy force-switchover command, rather than the reload command, to initiate a switchover. The redundancy force-switchover command first verifies that the redundant supervisor engine is in the correct state. If you enter the reload command and the status is not standby hot, the reload command resets the current supervisor engine only.

After an initial switchover, there might be occasions when you want to make the supervisor engine in slot 1 of the chassis the active supervisor engine. If the image on supervisor engine 1 is the one you intend to run on both supervisor engines, it is not necessary to reboot the image on the supervisor engine in slot 1 to make it redundant. Instead, you can force another switchover. However, if you want a newer version of the image to run on both supervisor engines, follow the steps under “Performing a Software Upgrade” on page 13. Use the show module command to see which slot contains the active supervisor engine, and force another switchover if necessary.

Performing a Software Upgrade

The software upgrade procedure supported by supervisor engine redundancy allows you to reload the Cisco IOS software image on the redundant supervisor engine, and once complete, reload the active supervisor engine once.

The software upgrade procedure supported by supervisor engine redundancy allows you to reload the Cisco IOS software image on the redundant supervisor engine, and once complete, reloads the active supervisor engine once.

Page 290 of the Cisco Systems 4500 user manual — Configuring Supervisor Engine Redundancy Using RPR and SSO
Page 290 · click to enlarge
Page 290

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO Performing a Software Upgrade

The following scenario is not supported: An active supervisor engine running Cisco IOS Release 12.1(x)E, and a standby supervisor engine running Cisclo IOS Release 12.2(x)S. The standby supervisor engine resets repeatedly.

If you are trying to upgrade redudant supervisor engines from Cisco IOS Release 12.1(x)E to 12.2(x)S, this requires a full system reboot.

To perform a software upgrade, perform this task:

Step 1 Switch# copy source_devicesource_filename slot0: target_filename

Copies the new Cisco IOS software image to bootflash on the supervisor engine.

Or:

Switch# copy source_devicesource_filename bootflash: target_filename
Step 2 Switch# copy source_devicesource_filename slaveslot0: target_filename

Copies the new image to a slave device (such as slavebootflash and slaveslot0).

Or:

Switch# copy source_devicesource_filename slavebootflash: target_filename

Step 3 Switch# config terminal Switch(config)# config-register 0x2 Switch(config)# boot system flash device:file_name

Configures the supervisor engines to boot the new image. If your system was configured to autoboot an earlier image, enter the following command string to boot the new image instead: no boot system flash device:old_file_name

Step 4 Switch(config)# redundancy Enters redundancy configuration mode.

Step 5 Switch(config-red)# main-cpu Enters main-cpu configuration submode.

Step 6 Switch(config-r-mc)# auto-syn standard Synchronizes the configuration elements.

Step 7 Switch(config-r-mc)# end Returns to privileged EXEC mode.

Step 8 Switch# copy running-config start-config Saves the configuration.

Step 9 Switch# redundancy reload peer Reloads the redundant supervisor engine and brings it back online (using the new release of the Cisco IOS software).

Step 10 Switch# redundancy force-switchover Conducts a manual switchover to the redundant supervisor engine. The redundant supervisor engine becomes the new active supervisor engine using the new Cisco IOS software image.

The old active supervisor engine reboots with the new image and becomes the redundant supervisor engine.

This example shows how to perform a software upgrade:

Switch# config terminal Switch(config)# config-register 0x2 Switch(config)# boot system flash slot0:cat4000-i5s-mz.122-20.EWA

Page 291 of the Cisco Systems 4500 user manual — Manipulating Bootflash on the Redundant Supervisor Engine
Page 291 · click to enlarge
Page 291

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO

Manipulating Bootflash on the Redundant Supervisor Engine

Switch(config)# redundancy Switch(config-red)# main-cpu Switch(config-r-mc)# auto-syn standard Switch(config-r-mc)# end Switch# copy running-config start-config Switch# redundancy reload peer Switch# redundancy force-switchover Switch#

This example illustrates how to verify that the running configuration on the active supervisor engine has successfully synchronized with the redundant supervisor engine:

Switch# config terminal Switch(config)# redundancy Switch(config-red)# main-cpu Switch(config-r-mc)# auto-sync standard 4d01h: %C4K_REDUNDANCY-5-CONFIGSYNC: The bootvar has been successfully synchronized to the standby supervisor 4d01h: %C4K_REDUNDANCY-5-CONFIGSYNC: The config-reg has been successfully synchronized to the standby supervisor 4d01h: %C4K_REDUNDANCY-5-CONFIGSYNC: The startup-config has been successfully synchronized to the standby supervisor 4d01h: %C4K_REDUNDANCY-5-CONFIGSYNC: The private-config has been successfully synchronized to the standby supervisor

The example above shows that the boot variable, the config-register, and the startup configuration from the active supervisor engine have successfully synchronized to the redundant supervisor engine.

Manipulating Bootflash on the Redundant Supervisor Engine

To manipulate the redundant supervisor engine bootflash, perform one or more of the following commands:

Switch# dir slaveslot0target_filename

Lists the contents of the slot0: device on the redundant supervisor engine.

or Switch# dir slavebootflashtarget_filename

Lists the contents of the bootflash: device on the redundant supervisor engine.

Switch# delete slaveslot0target_filename

Deletes specific files from the slot0: device on the redundant supervisor engine.

or Switch# delete slave bootflashtarget_filename

Deletes specific files from the bootflash: device on the redundant supervisor engine.

Switch# squeeze slaveslot0or Switch# squeeze slavebootflash:

Squeezes the slot0: device on the redundant supervisor engine.

Squeezes the bootflash: device on the redundant supervisor engine.

Page 292 of the Cisco Systems 4500 user manual — Configuring Supervisor Engine Redundancy Using RPR and SSO
Page 292 · click to enlarge
Page 292

Chapter 8 Configuring Supervisor Engine Redundancy Using RPR and SSO Manipulating Bootflash on the Redundant Supervisor Engine

Switch# format slaveslot0or Switch# format slavebootflash:

Formats the slot0: device on the redundant supervisor engine.

Formats the bootflash: device on the redundant supervisor engine.

Switch# copy source_devicesource_filename slaveslot0: target_filename

Copies a file from the active supervisor engine to the slot0: device on the redundant supervisor engine.

or Switch# copy source_devicesource_filename slavebootflash: target_filename

Copies a file to the bootflash: device on a redundant supervisor engine.

Page 293 of the Cisco Systems 4500 user manual — About NSF with SSO Supervisor Engine Redundancy
Page 293 · click to enlarge
Page 293

C H A P T E R

Configuring Cisco NSF with SSO Supervisor Engine Redundancy

This chapter describes how to configure supervisor engine redundancy using Cisco nonstop forwarding (NSF) with stateful switchover (SSO).

This chapter consists of these sections:

  • About NSF with SSO Supervisor Engine Redundancy, page 9-1
  • Configuring NSF with SSO Supervisor Engine Redundancy, page 9-10

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About NSF with SSO Supervisor Engine Redundancy

These sections describe supervisor engine redundancy using NSF with SSO:

  • About Cisco IOS NSF-Aware and NSF-Capable Support, page 9-2
  • NSF with SSO Supervisor Engine Redundancy Overview, page 9-4
  • SSO Operation, page 9-4
  • NSF Operation, page 9-5
  • Cisco Express Forwarding, page 9-5
Page 294 of the Cisco Systems 4500 user manual — About Cisco IOS NSF-Aware and NSF-Capable Support
Page 294 · click to enlarge
Page 294

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy About NSF with SSO Supervisor Engine Redundancy

  • Routing Protocols, page 9-5
  • NSF Guidelines and Restrictions, page 9-9

About Cisco IOS NSF-Aware and NSF-Capable Support

Cisco IOS Nonstop Forwarding (NSF) has two primary components:

  • NSF-awareness—If neighboring router devices detect that an NSF router can still forward packets when a supervisor engine switchover happens, this capability is referred to as NSF-awareness. Cisco IOS enhancements to the Layer 3 routing protocols (OSPF, BGP, EIGRP and IS-IS) are designed to prevent route-flapping so that the CEF routing table does not time out or the NSF router does not drop routes. An NSF-aware router helps to send routing protocol information to the neighboring NSF router.
  • NSF-capability—NSF works with SSO to minimize the amount of time that a Layer 3 network is unavailable following a supervisor engine switchover by continuing to forward IP packets. Reconvergence of Layer 3 routing protocols (BGP, EIGRP, OSPF v2, and IS-IS) is transparent to the user and happens automatically in the background. The routing protocols recover routing information from neighbor devices and rebuild the Cisco Express Forwarding (CEF) table.

A typical topology for NSF and NSF-aware routers is given below.

Figure 9-1 Topology for NSF and NSF-Capable Switches

Show 5 more labels / short text on this page
Catalyst 6500 NSF · Si · Si Si · Catalyst 4500 NSF-Capable · Catalyst 4500 NSF-Capable
Page 295 of the Cisco Systems 4500 user manual — NSF-Capable Supervisor Engine Switch Support
Page 295 · click to enlarge
Page 295

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

About NSF with SSO Supervisor Engine Redundancy

Table 9-1 lists the supervisor engines and Catalyst 4500 series switches that support NSF-awareness:

Table 9-1 NSF-Aware Supervisor Engines

NSF-Aware Supervisor Engine Switch Support

Supervisor Engine II-Plus (WS-X4013) Catalyst 4507R series switch, Catalyst 4506 series switch, and Catalyst 4503 series switch

Supervisor Engine II-Plus+TS (WS-X4013+TS) Catalyst 4507R series switch, Catalyst 4506 series switch, and Catalyst 4503 series switch

Supervisor Engine II-Plus+10GE (WS-X4013+10GE)

Catalyst 4507R series switch, Catalyst 4506 series switch, and Catalyst 4503 series switch

Supervisor Engine IV (WS-X4515) Catalyst 4507R series switch, Catalyst 4506 series switch, and Catalyst 4503 series switch

Supervisor Engine V (WS-X4516) Catalyst 4507R series switch and Catalyst 4510R series switch

Supervisor Engine V-10GE (WS-X4516-10GE) Catalyst 4506 series switch, Catalyst 4507R series switch, and Catalyst 4510R series switch

Fixed Switchs (WS-C4948 and WS-C4948-10GE)

Catalyst 4948 and 4948-10GE switches

Starting with Cisco IOS Release 12.2(20)EWA, the Catalyst 4500 series switch supported NSF-awareness for the EIGRP, IS-IS, OSPF, and BGP protocols. Starting with Cisco IOS Release 12.2(31)SG, the Catalyst 4500 series switch supported NSF-awareness for the EIGRP-stub in IP Base image for all supervisor engines. NSF-awareness is turned on by default for EIGRP-stub, EIGRP, IS-IS, and OSPF protocols. You need to turn BGP on manually.

If the supervisor engine is configured for BGP (with the graceful-restart command), EIGRP, OSPF, or IS-IS routing protocols, routing updates are automatically sent during the supervisor engine switchover of a neighboring NSF-capable switch (typically a Catalyst 6500 series switch).

Starting with Cisco IOS Release 12.2(31)SG, the Catalyst 4500 series switch supports NSF-capability. Table 9-2 lists the supervisor engines and Catalyst 4500 series switches that support NSF-capable.

Table 9-2 NSF-Capable Supervisor Engines

NSF-Capable Supervisor Engine Switch Support

Supervisor Engine IV (WS-X4515) Catalyst 4507R series switch

Supervisor Engine V (WS-X4516) Catalyst 4507R series switch and Catalyst 4510R series switch

Supervisor Engine V-10GE (WS-X4516-10GE) Catalyst 4507R series switch and Catalyst 4510R series switch

Supervisor Engine 6-E (WS-X45-Sup6-E) Catalyst 4500 E-series switch Supervisor Engine 6-E

Supervisor Engine 6L-E (WS-X45-Sup6L-E) Catalyst 4500 E-series switch Supervisor Engine 6L-E

Page 296 of the Cisco Systems 4500 user manual — SSO Operation
Page 296 · click to enlarge
Page 296

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy About NSF with SSO Supervisor Engine Redundancy

NSF with SSO Supervisor Engine Redundancy Overview

Catalyst 4500 series switches support fault resistance by allowing a redundant supervisor engine to take over if the primary supervisor engine fails. NSF works with SSO to minimize the amount of time a network is unavailable to its users following a switchover.

NSF provides these benefits:

  • Improved network availability

NSF continues forwarding network traffic and application state information so that user session information is maintained after a switchover.

  • Overall network stability

Network stability may be improved with the reduction in the number of route flaps, which were created when routers in the network failed and lost their routing tables.

  • Neighboring routers do not detect a link flap

Because the interfaces remain up during a switchover, neighboring routers do not detect a link flap (the link does not go down and come back up).

  • Prevents routing flaps

Because SSO continues forwarding network traffic during a switchover, routing flaps are avoided.

  • Maintains user sessions established prior to the switchover

Catalyst 4500 series switches also support route processor redundancy (RPR). For information about these redundancy modes, see Chapter 8, “Configuring Supervisor Engine Redundancy Using RPR and SSO.”

SSO Operation

SSO establishes one of the supervisor engines as active while the other supervisor engine is designated as standby, and then SSO synchronizes information between them. A switchover from the active to the redundant supervisor engine occurs when the active supervisor engine fails, or is removed from the switch, or is manually shut down for maintenance.

In networking devices running SSO, both supervisor engines must be running the same Cisco IOS software version and ROMMON version so that the redundant supervisor engine is always ready to assume control following a fault on the active supervisor engine. SSO switchover also preserves FIB and adjacency entries and can forward Layer 3 traffic after a switchover. Configuration information and data structures are synchronized from the active to the redundant supervisor engine at startup and whenever changes to the active supervisor engine configuration occur. Following an initial synchronization between the two supervisor engines, SSO maintains state information between them, including forwarding information.

During switchover, system control and routing protocol execution is transferred from the active supervisor engine to the redundant supervisor engine.

Page 297 of the Cisco Systems 4500 user manual — Routing Protocols
Page 297 · click to enlarge
Page 297

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

About NSF with SSO Supervisor Engine Redundancy

NSF Operation

NSF always runs with SSO and provides redundancy for Layer 3 traffic. NSF is supported by the BGP, OSPF, IS-IS, and EIGRP routing protocols and is supported by Cisco Express Forwarding (CEF) for forwarding. The routing protocols have been enhanced with NSF-capability and awareness, which means that routers running these protocols can detect a switchover and take the necessary actions to continue forwarding network traffic and to recover route information from the peer devices. The IS-IS protocol can be configured to use state information that has been synchronized between the active and the redundant supervisor engine to recover route information following a switchover instead of information received from peer devices.

A networking device is NSF-aware if it is running NSF-compatible software. A device is NSF-capable if it has been configured to support NSF; it rebuilds routing information from NSF-aware or NSF-capable neighbors.

Each protocol depends on CEF to continue forwarding packets during switchover while the routing protocols rebuild the Routing Information Base (RIB) tables. After the routing protocols have converged, CEF updates the FIB table and removes stale route entries. CEF then updates the line cards with the new FIB information.

Cisco Express Forwarding

A key element of NSF is packet forwarding. In a Cisco networking device, packet forwarding is provided by Cisco Express Forwarding (CEF). CEF maintains the FIB and uses the FIB information that was current at the time of the switchover to continue forwarding packets during a switchover. This feature reduces traffic interruption during the switchover.

During normal NSF operation, CEF on the active supervisor engine synchronizes its current FIB and adjacency databases with the FIB and adjacency databases on the redundant supervisor engine. Upon switchover of the active supervisor engine, the redundant supervisor engine initially has FIB and adjacency databases that are mirror images of those that were current on the active supervisor engine. For platforms with forwarding engines, CEF keeps the forwarding engine on the redundant supervisor engine current with changes that are sent to it by CEF on the active supervisor engine. The forwarding engine can continue forwarding after a switchover as soon as the interfaces and a data path are available.

As the routing protocols start to repopulate the RIB on a prefix-by-prefix basis, the updates cause prefix-by-prefix updates to CEF, which it uses to update the FIB and adjacency databases. Existing and new entries receive the new version (“epoch”) number, indicating that they have been refreshed. The forwarding information is updated on the forwarding engine during convergence. The supervisor engine signals when the RIB has converged. The software removes all FIB and adjacency entries that have an epoch older than the current switchover epoch. The FIB now represents the newest routing protocol forwarding information.

Routing Protocols

The routing protocols run only on the active supervisor engine, and they receive routing updates from their neighbor routers. Routing protocols do not run on the standby supervisor engine. Following a switchover, the routing protocols request that the NSF-aware neighbor devices send state information to

Page 298 of the Cisco Systems 4500 user manual — BGP Operation
Page 298 · click to enlarge
Page 298

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy About NSF with SSO Supervisor Engine Redundancy

help rebuild the routing tables. Alternately, the IS-IS protocol can be configured to synchronize state information from the active to the redundant supervisor engine to help rebuild the routing table on the NSF-capable device in environments where neighbor devices are not NSF-aware. NSF supports the BGP, OSPF, IS-IS, and EIGRP protocols.

BGP Operation

When an NSF-capable router begins a BGP session with a BGP peer, it sends an OPEN message to the peer. Included in the message is a statement that the NSF-capable device has “graceful” restart capability. Graceful restart is the mechanism by which BGP routing peers avoid a routing flap following a switchover. If the BGP peer has received this capability, it is aware that the device sending the message is NSF-capable. Both the NSF-capable router and its BGP peers need to exchange the graceful restart capability in their OPEN messages at the time of session establishment. If both peers do not exchange the graceful restart capability, the session will not be capable of a graceful restart.

If the BGP session is lost during the supervisor engine switchover, the NSF-aware BGP peer marks all the routes associated with the NSF-capable router as stale; however, it continues to use these routes to make forwarding decisions for a set period of time. This functionality prevents packets from being lost while the newly active supervisor engine is waiting for convergence of the routing information with the BGP peers.

After a supervisor engine switchover occurs, the NSF-capable router reestablishes the session with the BGP peer. In establishing the new session, it sends a new graceful restart message that identifies the NSF-capable router as having restarted.

At this point, the routing information is exchanged between the two BGP peers. After this exchange is complete, the NSF-capable device uses the routing information to update the RIB and the FIB with the new forwarding information. The NSF-aware device uses the network information to remove stale routes from its BGP table; the BGP protocol then is fully converged.

If a BGP peer does not support the graceful restart capability, it ignores the graceful restart capability in an OPEN message but establishes a BGP session with the NSF-capable device. This function allows interoperability with non-NSF-aware BGP peers (and without NSF functionality), but the BGP session with non-NSF-aware BGP peers is not capable of a graceful restart.

Note BGP support in NSF requires that neighbor networking devices be NSF-aware; that is, the devices must have the graceful restart capability and advertise that capability in their OPEN message during session establishment. If an NSF-capable router discovers that a particular BGP neighbor does not have graceful restart capability, it does not establish an NSF-capable session with that neighbor. All other neighbors that have graceful restart capability continue to have NSF-capable sessions with this NSF-capable networking device.

Page 299 of the Cisco Systems 4500 user manual — IS-IS Operation
Page 299 · click to enlarge
Page 299

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

About NSF with SSO Supervisor Engine Redundancy

OSPF Operation

When an OSPF NSF-capable router performs a supervisor engine switchover, it must perform the following tasks in order to resynchronize its link state database with its OSPF neighbors:

  • Relearn the available OSPF neighbors on the network without causing a reset of the neighbor relationship
  • Reacquire the contents of the link state database for the network

As quickly as possible after a supervisor engine switchover, the NSF-capable router sends an OSPF NSF signal to neighboring NSF-aware devices. Neighbor networking devices recognize this signal as an indicator that the neighbor relationship with this router should not be reset. As the NSF-capable router receives signals from other routers on the network, it can begin to rebuild its neighbor list.

After neighbor relationships are reestablished, the NSF-capable router begins to resynchronize its database with all of its NSF-aware neighbors. At this point, the routing information is exchanged between the OSPF neighbors. Once this exchange is complete, the NSF-capable device uses the routing information to remove stale routes, update the RIB, and update the FIB with the new forwarding information. The OSPF protocols are then fully converged.

IS-IS Operation

When an IS-IS NSF-capable router performs a supervisor engine switchover, it must perform the following tasks in order to resynchronize its link state database with its IS-IS neighbors:

  • Relearn the available IS-IS neighbors on the network without causing a reset of the neighbor relationship
  • Reacquire the contents of the link state database for the network

The IS-IS NSF feature offers two options when you configure NSF:

  • Internet Engineering Task Force (IETF) IS-IS
  • Cisco IS-IS

If neighbor routers on a network segment are running a software version that supports the IETF Internet draft for router restartability, they assist an IETF NSF router that is restarting. With IETF, neighbor routers provide adjacency and link-state information to help rebuild the routing information following a switchover. A benefit of IETF IS-IS configuration is operation between peer devices based on a proposed standard.

If the neighbor routers on a network segment are not NSF-aware, you must use the Cisco configuration option. The Cisco IS-IS configuration transfers both protocol adjacency and link-state information from the active to the redundant supervisor engine. An advantage of Cisco configuration is that it does not rely on NSF-aware neighbors.

Page 300 of the Cisco Systems 4500 user manual — EIGRP Operation
Page 300 · click to enlarge
Page 300

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy About NSF with SSO Supervisor Engine Redundancy

IETF IS-IS Configuration

As quickly as possible after a supervisor engine switchover, the NSF-capable router sends IS-IS NSF restart requests to neighboring NSF-aware devices using the IETF IS-IS configuration. Neighbor networking devices recognize this restart request as an indicator that the neighbor relationship with this router should not be reset, but that they should initiate database resynchronization with the restarting router. As the restarting router receives restart request responses from routers on the network, it can begin to rebuild its neighbor list.

After this exchange is complete, the NSF-capable device uses the link-state information to remove stale routes, update the RIB, and update the FIB with the new forwarding information; IS-IS is then fully converged.

The switchover from one supervisor engine to the other happens within seconds. IS-IS reestablishes its routing table and resynchronizes with the network within a few additional seconds. At this point, IS-IS waits for a specified interval before it attempts a second NSF restart. During this time, the new redundant supervisor engine boots up and synchronizes its configuration with the active supervisor engine. The IS-IS NSF operation waits for a specified interval to ensure that connections are stable before attempting another restart of IS-IS NSF. This functionality prevents IS-IS from attempting back-to-back NSF restarts with stale information.

Cisco IS-IS Configuration

Using the Cisco configuration option, full adjacency and LSP information is saved, or checkpointed, to the redundant supervisor engine. Following a switchover, the newly active supervisor engine maintains its adjacencies using the check-pointed data, and can quickly rebuild its routing tables.

Note Following a switchover, Cisco IS-IS NSF has complete neighbor adjacency and LSP information; however, it must wait for all interfaces to come on line that had adjacencies prior to the switchover. If an interface does not come on line within the allocated interface wait time, the routes learned from these neighbor devices are not considered in routing table recalculation. IS-IS NSF provides a command to extend the wait time for interfaces that, for whatever reason, do not come on line in a timely fashion.

The switchover from one supervisor engine to the other happens within seconds. IS-IS reestablishes its routing table and resynchronizes with the network within a few additional seconds. At this point, IS-IS waits for a specified interval before it attempts a second NSF restart. During this time, the new redundant supervisor engine boots up and synchronizes its configuration with the active supervisor engine. After this synchronization is completed, IS-IS adjacency and LSP data is check-pointed to the redundant supervisor engine; however, a new NSF restart is not attempted by IS-IS until the interval time expires. This functionality prevents IS-IS from attempting back-to-back NSF restarts.

EIGRP Operation

When an EIGRP NSF-capable router initially re-boots after an NSF restart, it has no neighbor and its topology table is empty. The router is notified by the redundant (now active) supervisor engine when it needs to bring up the interfaces, reacquire neighbors, and rebuild the topology and routing tables. The restarting router and its peers must accomplish these tasks without interrupting the data traffic directed toward the restarting router. EIGRP peer routers maintain the routes learned from the restarting router and continue forwarding traffic through the NSF restart process.

To prevent an adjacency reset by the neighbors, the restarting router uses a new Restart (RS) bit in the EIGRP packet header to indicate a restart. The RS bit is set in the hello packets and in the initial INIT update packets during the NSF restart period. The RS bit in the hello packets allows the neighbors to be

Page 301 of the Cisco Systems 4500 user manual — NSF Guidelines and Restrictions
Page 301 · click to enlarge
Page 301

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

About NSF with SSO Supervisor Engine Redundancy

quickly notified of the NSF restart. Without seeing the RS bit, the neighbor can only detect an adjacency reset by receiving an INIT update or by the expiration of the hello hold timer. Without the RS bit, a neighbor does not know if the adjacency reset should be handled using NSF or the normal startup method.

When the neighbor receives the restart indication, either by receiving the hello packet or the INIT packet, it recognizes the restarting peer in its peer list and maintains the adjacency with the restarting router. The neighbor then sends it topology table to the restarting router with the RS bit set in the first update packet indicating that it is NSF-aware and is helping out the restarting router. The neighbor does not set the RS bit in their hello packets, unless it is also a NSF restarting neighbor.

If at least one of the peer routers is NSF-aware, the restarting router then receives updates and rebuilds its database. The restarting router must then find out if it had converged so that it can notify the routing information base (RIB). Each NSF-aware router is required to send an end of table (EOT) marker in the last update packet to indicate the end of the table content. The restarting router knows it has converged when it receives the EOT marker. The restarting router can then begin sending updates.

An NSF-aware peer knows when the restarting router had converged when it receives an EOT indication from the restarting router. The peer then scans its topology table to search for the routes with the restarted neighbor as the source. The peer compares the route timestamp with the restart event timestamp to determine if the route is still available. The peer then goes active to find alternate paths for the routes that are no longer available through the restarted router.

When the restarting router has received all EOT indications from its neighbors or when the NSF converge timer expires, EIGRP notifies the RIB of convergence. EIGRP waits for the RIB convergence signal and then floods its topology table to all awaiting NSF-aware peers.

NSF Guidelines and Restrictions

NSF with SSO has these restrictions:

  • With aggressive protocol timers (such as, when the default exceeds the timer value), upon switchover, the protocol software running on the new active supervisor engine might not initialize in time to send "hello" packets to its neighboring switches or routers. If the protocol takes longer time to initialize because of other CPU-demanding tasks, then the protocol encounters state transitions and causes a loss in traffic on the order of seconds. We recommend that you do not configure aggressive timers in conjunction with SSO/NSF.
  • For NSF operation, you must have SSO configured on the device.
  • NSF with SSO supports IP Version 4 traffic and protocols only; NSF with SSO does not support IPv6 traffic.
  • The Virtual Redundancy Routing Protocols (VRRP) is not SSO-aware, meaning state information is not maintained between the active and standby supervisor engine during normal operation. VRRP and SSO can coexist but both features work independently. Traffic that relies on VRRP may switch to the VRRP standby in the event of a supervisor engine switchover.
  • All neighboring devices participating in BGP NSF must be NSF-capable and configured for BGP graceful restart.
  • OSPF NSF for virtual links is not supported.
Page 302 of the Cisco Systems 4500 user manual — Configuring SSO
Page 302 · click to enlarge
Page 302

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy Configuring NSF with SSO Supervisor Engine Redundancy

  • All OSPF networking devices on the same network segment must be NSF-aware (running an NSF software image).
  • For IETF IS-IS, all neighboring devices must be running an NSF-aware software image.

Configuring NSF with SSO Supervisor Engine Redundancy

The following sections describe the configuration tasks for the NSF feature:

  • Configuring SSO, page 9-10
  • Configuring CEF NSF, page 9-11
  • Verifying CEF NSF, page 9-11
  • Configuring BGP NSF, page 9-12
  • Verifying BGP NSF, page 9-12
  • Configuring OSPF NSF, page 9-13
  • Verifying OSPF NSF, page 9-13
  • Configuring IS-IS NSF, page 9-14
  • Verifying IS-IS NSF, page 9-15
  • Configuring EIGRP NSF, page 9-17
  • Verifying EIGRP NSF, page 9-17

Configuring SSO

You must configure SSO in order to use NSF with any supported protocol.

To configure SSO, perform this task:

Step 1 Switch(config)# redundancy Enters redundancy configuration mode.

Step 2 Switch(config-red)# mode sso Configures SSO. When this command is entered, the redundant supervisor engine is reloaded and begins to work in SSO mode.

Step 3 Switch(config-red)# end Returns to EXEC mode.

Step 4 Switch# show running-config Verifies that SSO is enabled.

Step 5 Switch# show redundancy states Displays the operating redundancy mode.

This example shows how to configure the system for SSO and display the redundancy state:

Switch> enable Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# redundancy

Page 303 of the Cisco Systems 4500 user manual — Verifying CEF NSF
Page 303 · click to enlarge
Page 303

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

Configuring NSF with SSO Supervisor Engine Redundancy

Switch(config-red)# mode sso Switch(config-red)# end Switch# show redundancy states my state = 13 -ACTIVE peer state = 8 -STANDBY HOT Mode = Duplex Unit = Primary Unit ID = 5

Redundancy Mode (Operational) = sso Redundancy Mode (Configured) = sso Split Mode = Disabled Manual Swact = Enabled Communications = Up

client count = 29 client_notification_TMR = 30000 milliseconds keep_alive TMR = 9000 milliseconds keep_alive count = 1 keep_alive threshold = 18 RF debug mask = 0x0 Switch#

Configuring CEF NSF

The CEF NSF feature operates by default while the networking device is running in SSO mode. No configuration is necessary.

Verifying CEF NSF

To verify that CEF is NSF-capable, enter the show cef state command:

Switch# show cef state

CEF Status [RP] CEF enabled/running dCEF enabled/running CEF switching enabled/running CEF default capabilities: Always FIB switching: yes Default CEF switching: yes Default dCEF switching: yes Update HWIDB counters: no Drop multicast packets: no . . . CEF NSF capable: yes IPC delayed func on SSO: no RRP state: I am standby RRP: no My logical slot: 0 RF PeerComm: no

Page 304 of the Cisco Systems 4500 user manual — Verifying BGP NSF
Page 304 · click to enlarge
Page 304

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy Configuring NSF with SSO Supervisor Engine Redundancy

Configuring BGP NSF

To configure BGP for NSF, perform this task (repeat this procedure on each of the BGP NSF peer devices):

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# router bgp as-number Enables a BGP routing process, which places the switch in switch configuration mode.

Step 3 Switch(config-router)# bgp graceful-restart Enables the BGP graceful restart capability, starting BGP NSF.

If you enter this command after the BGP session has been established, you must restart the session for the capability to be exchanged with the BGP neighbor.

Use this command on the restarting switch and all of its peers.

Verifying BGP NSF

To verify BGP NSF, you must check that BGP graceful restart is configured on the SSO-enabled networking device and on the neighbor devices. To verify, follow these steps:

Step 1 Verify that “bgp graceful-restart” appears in the BGP configuration of the SSO-enabled switch by entering the show running-config command:

. . . router bgp 120 . . . bgp graceful-restart neighbor 10.2.2.2 remote-as 300 . . .

Step 2 Repeat Step 1 on each of the BGP neighbors.

Switch# show running-config

Page 305 of the Cisco Systems 4500 user manual — Verifying OSPF NSF
Page 305 · click to enlarge
Page 305

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

Configuring NSF with SSO Supervisor Engine Redundancy

Step 3 On the SSO device and the neighbor device, verify that the graceful restart function is shown as both advertised and received, and confirm the address families that have the graceful restart capability. If no address families are listed, BGP NSF does not occur either:

Switch# show ip bgp neighbors x.x.x.x

BGP neighbor is 192.168.2.2, remote AS YY, external link BGP version 4, remote router ID 192.168.2.2 BGP state = Established, up for 00:01:18 Last read 00:00:17, hold time is 180, keepalive interval is 60 seconds Neighbor capabilities: Route refresh:advertised and received(new) Address family IPv4 Unicast:advertised and received Address famiiy IPv4 Multicast:advertised and received Graceful Restart Capabilty:advertised and received Remote Restart timer is 120 seconds Address families preserved by peer: IPv4 Unicast, IPv4 Multicast Received 1539 messages, 0 notifications, 0 in queue Sent 1544 messages, 0 notifications, 0 in queue Default minimum time between advertisement runs is 30 seconds

Configuring OSPF NSF

To configure OSPF NSF, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# router ospf processID Enables an OSPF routing process, which places the switch in router configuration mode.

Step 3 Switch(config-router)# nsf Enables NSF operations for OSPF.

Verifying OSPF NSF

To verify OSPF NSF, you must check that the NSF function is configured on the SSO-enabled networking device. To verify OSPF NSF, follow these steps:

Step 1 Verify that ‘nsf’ appears in the OSPF configuration of the SSO-enabled device by entering the show running-config command:

route ospf 120 log-adjacency-changes

Switch# show running-config

Page 306 of the Cisco Systems 4500 user manual — Configuring IS-IS NSF
Page 306 · click to enlarge
Page 306

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy Configuring NSF with SSO Supervisor Engine Redundancy

nsf network 192.168.20.0 0.0.0.255 area 0 network 192.168.30.0 0.0.0.255 area 1 network 192.168.40.0 0.0.0.255 area 2 . . .

Step 2 Enter the show ip ospf command to verify that NSF is enabled on the device:

Switch> show ip ospf

Routing Process "ospf 1" with ID 192.168.2.1 and Domain ID 0.0.0.1 Supports only single TOS(TOS0) routes Supports opaque LSA SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs Number of external LSA 0. Checksum Sum 0x0 Number of opaque AS LSA 0. Checksum Sum 0x0 Number of DCbitless external and opaque AS LSA 0 Number of DoNotAge external and opaque AS LSA 0 Number of areas in this router is 1. 1 normal 0 stub 0 nssa External flood list length 0 Non-Stop Forwarding enabled, last NSF restart 00:02:06 ago (took 44 secs) Area BACKBONE(0) Number of interfaces in this area is 1 (0 loopback) Area has no authentication SPF algorithm executed 3 times

Configuring IS-IS NSF

To configure IS-IS NSF, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# router isis [tag] Enables an IS-IS routing process, which places the switch in router configuration mode.

Step 3 Switch(config-router)# nsf [cisco | ietf] Enables NSF operation for IS-IS.

Enter the ietf keyword to enable IS-IS in a homogeneous network where adjacencies with networking devices supporting IETF draft-based restartability is guaranteed.

Enter the cisco keyword to run IS-IS in heterogeneous networks that might not have adjacencies with NSF-aware networking devices.

Step 4 Switch(config-router)# nsf interval [minutes] (Optional) Specifies the minimum time between NSF restart attempts. The default time between consecutive NSF restart attempts is 5 minutes.

Page 307 of the Cisco Systems 4500 user manual — Verifying IS-IS NSF
Page 307 · click to enlarge
Page 307

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

Configuring NSF with SSO Supervisor Engine Redundancy

Step 5 Switch(config-router)# nsf t3 {manual [seconds] | adjacency}

(Optional) Specifies the time IS-IS waits for the IS-IS database to synchronize before generating overloaded link-state information for itself and flooding that information out to its neighbors.

The t3 keyword applies only if you selected IETF operation. When you specify adjacency, the switch that is restarting obtains its wait time from neighboring devices.

Step 6 Switch(config-router)# nsf interface wait seconds (Optional) Specifies how long an IS-IS NSF restart waits for all interfaces with IS-IS adjacencies to come up before completing the restart. The default is 10 seconds.

Verifying IS-IS NSF

To verify IS-IS NSF, you must check that the NSF function is configured on the SSO-enabled networking device. To verify IS-IS NSF, follow these steps:

Step 1 Verify that “nsf” appears in the IS-IS configuration of the SSO-enabled device by entering the show running-config command. The display shows either the Cisco IS-IS or the IETF IS-IS configuration. The following display indicates that the device uses the Cisco implementation of IS-IS NSF:

Switch# show running-config router isis nsf cisco

Step 2 If the NSF configuration is set to cisco, enter the show isis nsf command to verify that NSF is enabled on the device. Using the Cisco configuration, the display output differs on the active and redundant RPs. The following display shows sample output for the Cisco configuration on the active RP. In this example, note the presence of “NSF restart enabled”:

Switch# show isis nsf

NSF is ENABLED, mode 'cisco'

RP is ACTIVE, standby ready, bulk sync complete NSF interval timer expired (NSF restart enabled) Checkpointing enabled, no errors Local state:ACTIVE, Peer state:STANDBY HOT, Mode:SSO

The following display shows sample output for the Cisco configuration on the standby RP. In this example, note the presence of “NSF restart enabled”:

Switch# show isis nsf

NSF enabled, mode 'cisco' RP is STANDBY, chkpt msg receive count:ADJ 2, LSP 7 NSF interval timer notification received (NSF restart enabled) Checkpointing enabled, no errors Local state:STANDBY HOT, Peer state:ACTIVE, Mode:SSO

Page 308 of the Cisco Systems 4500 user manual — Configuring Cisco NSF with SSO Supervisor Engine Redundancy
Page 308 · click to enlarge
Page 308

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy Configuring NSF with SSO Supervisor Engine Redundancy

Step 3 If the NSF configuration is set to ietf, enter the show isis nsf command to verify that NSF is enabled on the device. The following display shows sample output for the IETF IS-IS configuration on the networking device:

Switch# show isis nsf

NSF is ENABLED, mode IETF NSF pdb state:Inactive NSF L1 active interfaces:0 NSF L1 active LSPs:0 NSF interfaces awaiting L1 CSNP:0 Awaiting L1 LSPs: NSF L2 active interfaces:0 NSF L2 active LSPs:0 NSF interfaces awaiting L2 CSNP:0 Awaiting L2 LSPs: Interface:Serial3/0/2 NSF L1 Restart state:Running NSF p2p Restart retransmissions:0 Maximum L1 NSF Restart retransmissions:3 L1 NSF ACK requested:FALSE L1 NSF CSNP requested:FALSE NSF L2 Restart state:Running NSF p2p Restart retransmissions:0 Maximum L2 NSF Restart retransmissions:3 L2 NSF ACK requested:FALSE Interface:GigabitEthernet2/0/0 NSF L1 Restart state:Running NSF L1 Restart retransmissions:0 Maximum L1 NSF Restart retransmissions:3 L1 NSF ACK requested:FALSE L1 NSF CSNP requested:FALSE NSF L2 Restart state:Running NSF L2 Restart retransmissions:0 Maximum L2 NSF Restart retransmissions:3 L2 NSF ACK requested:FALSE L2 NSF CSNP requested:FALSE Interface:Loopback1 NSF L1 Restart state:Running NSF L1 Restart retransmissions:0 Maximum L1 NSF Restart retransmissions:3 L1 NSF ACK requested:FALSE L1 NSF CSNP requested:FALSE NSF L2 Restart state:Running NSF L2 Restart retransmissions:0 Maximum L2 NSF Restart retransmissions:3 L2 NSF ACK requested:FALSE L2 NSF CSNP requested:FALSE

Page 309 of the Cisco Systems 4500 user manual — Verifying EIGRP NSF
Page 309 · click to enlarge
Page 309

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy

Configuring NSF with SSO Supervisor Engine Redundancy

Configuring EIGRP NSF

To configure EIGRP NSF, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# router eigrp as-number Enables an EIGRP routing process, which places the switch in router configuration mode.

Step 3 Switch(config-router)# nsf Enables EIGRP NSF.

Use this command on the “restarting” switch and all of its peers.

Verifying EIGRP NSF

To verify EIGRP NSF, you must check that the NSF function is configured on the SSO-enabled networking device. To verify EIGRP NSF, follow these steps:

Step 1 Verify that “nsf” appears in the EIGRP configuration of the SSO-enabled device by entering the show running-config command:

Switch# show running-config. . router eigrp 100 auto-summary nsf .. . Step 2 Enter the show ip protocols command to verify that NSF is enabled on the device:

Switch# show ip protocols *** IP Routing is NSF aware *** Routing Protocol is "eigrp 100" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: eigrp 100 EIGRP NSF-aware route hold timer is 240s EIGRP NSF enabled NSF signal timer is 20s NSF converge timer is 120s Automatic network summarization is in effect Maximum path: 4 Routing for Networks: Routing Information Sources: Gateway Distance Last Update Distance: internal 90 external 170

Page 310 of the Cisco Systems 4500 user manual — Configuring Cisco NSF with SSO Supervisor Engine Redundancy
Page 310 · click to enlarge
Page 310

Chapter 9 Configuring Cisco NSF with SSO Supervisor Engine Redundancy Configuring NSF with SSO Supervisor Engine Redundancy

Page 311 of the Cisco Systems 4500 user manual — About Environmental Monitoring
Page 311 · click to enlarge
Page 311

C H A P T E R

Environmental Monitoring and Power Management

This chapter describes power management and environmental monitoring features in the Catalyst 4500 series switches. It provides guidelines, procedures, and configuration examples.

This chapter consists of the following major sections:

  • About Environmental Monitoring, page 10-1
  • Power Management, page 10-6
  • IEEE 802.3az Energy Efficient Ethernet, page 10-22

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Environmental Monitoring

This section contains the following subsections:

  • Using CLI Commands to Monitor your Environment, page 10-2
  • Displaying Environment Conditions, page 10-2
  • Emergency Actions, page 10-3
  • System Alarms, page 10-4
Page 312 of the Cisco Systems 4500 user manual — Conditions on Supervisor Engines II-Plus to V-10GE
Page 312 · click to enlarge
Page 312

Chapter 10 Environmental Monitoring and Power Management About Environmental Monitoring

Environmental monitoring of chassis components provides early warning indications of possible component failure. This warning helps you to ensure the safe and reliable operation of your system and avoid network interruptions.

This section describes how to monitor critical system components so that you can identify and rapidly correct hardware-related problems.

Using CLI Commands to Monitor your Environment

Use the show environment CLI command to monitor the system. This section gives a basic overview of the command and keywords you need.

Enter the show environment [alarm | status | temperature] command to display system status information. Keyword descriptions are listed in Table 10-1.

Table 10-1 show environment Keyword Descriptions

Keyword Purpose

alarm Displays environmental alarms for the system.

status Displays field-replaceable unit (FRU) operational status and power and power supply fan sensor information.

temperature Displays temperature of the chassis.

Displaying Environment Conditions

This section includes these topics:

  • Conditions on Supervisor Engines II-Plus to V-10GE, page 10-2
  • Conditions on Supervisor Engine 6-E and Supervisor Engine 6L-E, page 10-3

Conditions on Supervisor Engines II-Plus to V-10GE

The following example shows how to display the environment condition on Supervisor Engines II-Plus to V-10GEs. The output indicates that the power supplies differ. The switch uses only one power supply and disables the other.

Switch# show environment no alarm

Chassis Temperature = 35 degrees Celsius Chassis Over Temperature Threshold = 75 degrees Celsius Chassis Critical Temperature Threshold = 95 degrees Celsius

Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-2800AC AC 2800W good good good PS2 PWR-C45-1000AC AC 1000W err-disable good n.a.

*** Power Supplies of different types have been detected*** Switch#

Page 313 of the Cisco Systems 4500 user manual — Emergency Actions
Page 313 · click to enlarge
Page 313

Chapter 10 Environmental Monitoring and Power Management

Conditions on Supervisor Engine 6-E and Supervisor Engine 6L-E

Supervisor Engine 6-E, Supervisor Engine 6L-E, and its associated line cards support multiple temperature sensors per card. The environment condition output includes the temperature reading from each sensor and the temperature thresholds for each sensor. These line cards support three thresholds: warning, critical, and shutdown. (Supervisor Engines II-Plus to V-10GE support two threshold.)

The following example illustrates how to display the environment condition on a Supervisor Engine 6-E and Supervisor 6L-E. The thresholds appear within parentheses.

Switch# show environment no temperature alarms

Module Sensor Temperature Status + + + 2 air inlet 23C (51C,65C,68C) ok 2 air outlet 29C (69C,83C,86C) ok 5 air inlet 38C (51C,65C,68C) ok 5 air outlet 38C (69C,83C,86C) ok 6 air inlet 34C (51C,65C,68C) ok 6 air outlet 37C (69C,83C,86C) ok

Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-2800AC AC 2800W good good good PS2 none --

Power supplies needed by system1 Power supplies currently available : 1
Chassis TypeWS-C4510R-E
Power consumed by backplane40 Watts
Switch Bandwidth Utilization0%
Supervisor Led ColorGreen

Module 2 Status Led Color : Green Module 5 Status Led Color : Green Module 6 Status Led Color : Orange Module 10 Status Led Color : Green

FantrayGood
Power consumed by Fantray80 Watts

Emergency Actions

Chassis with Supervisor Engine 6-E and Supervisor 6L-E can power down a single card, providing a detailed response to over-temperature conditions on line cards. However, Supervisor Engine 6-E and Supervisor 6L-E cannot safely operate when the temperature of the supervisor itself exceeds the critical threshold. The supervisor engine turns off the chassis’ power supplies to protect itself from overheating. When this happens, you can recover the switch only by cycling the power on and off switches on the power supplies or by cycling the AC or DC inputs to the power supplies.

Critical and shutdown temperature emergencies trigger the same action. Table 10-2 lists temperature emergencies but does not distinguish between critical and shutdown emergencies.

About Environmental Monitoring

Page 314 of the Cisco Systems 4500 user manual — System Alarms
Page 314 · click to enlarge
Page 314

Chapter 10 Environmental Monitoring and Power Management About Environmental Monitoring

Table 10-2 Emergency and Action for Supervisor Engines 6-E and Supervisor Engine 6L-E

Case 1. Complete fan failure emergency. Power down the chassis.

Case 2. Temperature emergency on a line card.

Power down the line card.

Case 3. Temperature emergency on the standby supervisor engine.

Power down the standby supervisor engine.

Case 4. Temperature emergency on the active supervisor engine with the standby supervisor engine in the hot standby or cold standby redundancy state.

Reset the active supervisor engine.

Case 5. Temperature emergency on the active supervisor engine with no standby supervisor engine or with a standby supervisor engine that is not in hot standby or cold standby redundancy state.

Power down the chassis.

In Case 4, the standby supervisor engine takes over when the active engine resets itself. If the temperature emergency remains, the newly active supervisor engine resets the standby supervisor engine.

Case 5 applies to nonredundant chassis and to chassis with a standby supervisor engine that has been shutdown or which has not fully booted.

System Alarms

Any system has two types of alarms: major and minor. A major alarm indicates a critical problem that could lead to system shutdown. A minor alarm is informational—it alerts you to a problem that could become critical if corrective action is not taken.

Table 10-3 lists the possible environment alarms.

Table 10-3 Possible Environmental Alarms

A temperature sensor over its warning threshold minor

A temperature sensor over its critical threshold major

A temperature sensor over its shutdown threshold major

A partial fan failure minor

A complete fan failure major

Fan failure alarms are issued as soon as the fan failure condition is detected and are canceled when the fan failure condition clears. Temperature alarms are issued as soon as the temperature reaches the threshold temperature and are canceled when the temperature drops more than 5 degree C below the threshold. 5 degree C is a hysteresis value designed to prevent toggling alarms.

An LED on the supervisor engine indicates whether an alarm has been issued.

Page 315 of the Cisco Systems 4500 user manual — Alarm Type
Page 315 · click to enlarge
Page 315

Chapter 10 Environmental Monitoring and Power Management

When the system issues a major alarm, it starts a timer whose duration depends on the alarm. If the alarm is not canceled before the timer expires, the system takes emergency action to protect itself from the effects of overheating. The timer values and the emergency actions depend on the type of supervisor engine.

Table 10-4 describes the alarms on Supervisor Engines II-Plus to V-10GE.

Table 10-4 Alarms on Supervisor Engines II-Plus to V-10GE

Alarm Type

Supervisor LED Color Timeout Description and Action

Event

Chassis temperature exceeds the critical threshold.

Major Red 5 min Syslog message displays when the alarm is issued.

Line cards are put in reset when the timeout expires.

Supervisor fails power on self-test (POST).

Major Red — Syslog message is displayed.

The supervisor engine fails to come up.

Chassis fan tray fails. Major Red 4 min Syslog message displays when the alarm is issued.

Line cards are put in reset when the timeout expires.

Chassis temperature exceeds the warning threshold.

Minor Orange — Syslog message displays when the alarm is issued.

Chassis fan tray experiences partial failure.

Minor Orange — Syslog message displays when the alarm is issued.

Table 10-5 describes the alarms on Supervisor Engine 6-E and Supervisor 6L-E.

Table 10-5 Alarms on Supervisor Engine 6-E and Supervisor Engine 6L-E

Alarm Type

Supervisor LED Color Timeout Description and Action

Event

Card temperature exceeds the critical threshold.

Major Red 15 min Syslog message displays when the alarm is issued.

See Table 10-2 for the action on timeout.

Card temperature exceeds the shutdown threshold.

Major Red 30 sec Syslog message displays when the alarm is issued.

See Table 10-2 for the action on timeout.

Supervisor engine fails power-on self-test (POST).

Major Red — Syslog message displays.

Supervisor engine fails to come up.

About Environmental Monitoring

Page 316 of the Cisco Systems 4500 user manual — Power Management for the Catalyst 4500 Series Switches
Page 316 · click to enlarge
Page 316

Chapter 10 Environmental Monitoring and Power Management Power Management

Table 10-5 Alarms on Supervisor Engine 6-E and Supervisor Engine 6L-E (continued)

Alarm Type

Supervisor LED Color Timeout Description and Action

Event

Chassis fan tray fails. Major Red 30 sec Syslog message displays when the alarm is issued.

See Table 10-2 for the action on timeout.

Chassis temperature exceeds the warning threshold.

Minor Orange — Syslog message when the alarm is issued.

Chassis fan tray experiences partial failure.

Minor Orange — Syslog message when the alarm is issued.

Power Management

This section describes the power management feature in the Catalyst 4500 series switches. It includes the following topics:

  • Power Management for the Catalyst 4500 Series Switches, page 10-6
  • Powering Down a Module, page 10-21
  • Power Management for the Catalyst 4948 Switches, page 10-22

Power Management for the Catalyst 4500 Series Switches

This section includes the following subsections:

  • Supported Power Supplies, page 10-7
  • Power Management Modes for the Catalyst 4500 Switch, page 10-8
  • Selecting a Power Management Mode, page 10-8
  • Power Management Limitations in Catalyst 4500 Series Switches, page 10-9
  • Available Power for Catalyst 4500 Series Switches Power Supplies, page 10-13
  • Insufficient Inline Power Handling for Supervisor Engine II-TS, page 10-19
  • Combined Mode Power Resiliency, page 10-16
  • Special Considerations for the 1400 W DC Power Supply, page 10-18
  • Special Considerations for the 1400 W DC SP Triple Input Power Supply, page 10-19
  • Insufficient Inline Power Handling for Supervisor Engine II-TS, page 10-19
  • Power Management Modes for the Catalyst 4948 Switch, page 10-22
Page 317 of the Cisco Systems 4500 user manual — Supported Power Supplies
Page 317 · click to enlarge
Page 317

Chapter 10 Environmental Monitoring and Power Management

Supported Power Supplies

You can select from several different power supplies to ensure that you have enough power for the modules installed in your switch.

The Catalyst 4500 series switches support the following power supplies:

  • Fixed Wattage—These power supplies always deliver a fixed amount of PoE and system power.

– 1000 W AC—Supports up to 1050 W of system power. (Not recommended on the Catalyst 4510R switch, PoE not supported)

– 1400 W AC—Supports up to 1400 W system power. (PoE not supported)

– 2800 W AC—Supports up to 1400 W of system power and up to 1400 W of PoE.

  • Variable Wattage—These power supplies automatically adjust the wattage to accommodate PoE and system power requirements.

– 1300 W AC—Supports up to 1050 W of system power and 800 W of PoE, limited to a total of 1300 W.

– 1400 W DC—Supports up to 1400 W of system power and variable amounts of PoE, depending on the input feed to the power supply. See “Special Considerations for the 1400 W DC Power Supply” section on page 10-18 for more information.

– 1400 W DC Service Provider—Uses up to three lines (12.5 A, 15 A, 15 A) of DC input and delivers varying amounts of system power ranging from 400 W to 1400 W depending on the lines powered. See “Special Considerations for the 1400 W DC SP Triple Input Power Supply” section on page 10-19 for more information. (PoE not supported)

– 4200 W AC and 6000 W AC—Supports varying amounts of system power and PoE depending on the number of inputs powered and input voltage.

When you insert power supplies in your switch, use power supplies that are of the same wattage. Multi-input power supplies such as 1400 W DC triple-input, 4200 W AC, and 6000 W AC have additional restrictions. Read the sections on special considerations for these power supplies. If you mix power supplies, the switch uses the one with the higher wattage and ignores the other power supply. The power supply status displays as err-disable and the summary displays as all zeros (0) for wattage values in the output for the show power command.

Power Management

Page 318 of the Cisco Systems 4500 user manual — Selecting a Power Management Mode
Page 318 · click to enlarge
Page 318

Chapter 10 Environmental Monitoring and Power Management Power Management

The following example shows the output for the show power command for mixed power supplies:

Switch# show power Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-2800AC AC 2800W good good good PS2 PWR-C45-1000AC AC 1000W err-disable good n.a.

*** Power Supplies of different type have been detected***

Power supplies needed by system :1 Power supplies currently available :1

Power Summary Maximum (in Watts) Used Available System Power (12V) 328 1360 Inline Power (-50V) 0 1400 Backplane Power (3.3V) 10 40 Total Used 338 (not to exceed Total Maximum Available = 750) Switch#

Power Management Modes for the Catalyst 4500 Switch

The Catalyst 4500 series switches support two power management modes:

  • Redundant mode—Redundant mode uses one power supply as a primary power supply and the second power supply as a back-up. If the primary power supply fails, the second power supply immediately supports the switch without any disruption in the network. Both power supplies must be the same wattage. A single power supply must have enough power to support the switch configuration.
  • Combined mode—Combined mode uses the power from all installed power supplies to support the switch configuration power requirements. However, combined mode has no power redundancy. If a power supply fails, one or more modules might shut down.

Selecting a Power Management Mode

By default, a switch is set to redundant mode. In the show power command, if the power supplies needed by system is 1, the switch is in redundant mode; if the power supplies needed by system is 2, the switch is in combined mode.

Page 319 of the Cisco Systems 4500 user manual — Limitation 1
Page 319 · click to enlarge
Page 319

Chapter 10 Environmental Monitoring and Power Management

Your switch hardware configuration dictates which power supply or supplies you should use. For example, if your switch configuration requires more power than a single power supply provides, use the combined mode. In combined mode, however, the switch has no power redundancy. Consider the following possibilities:

  • The supervisor engine consumes 110 W, the fan boxes for the Catalyst 4503 switch consume 30 W each, the fan boxes for the Catalyst 4506 and Catalyst 4507 switches consume 50 W each, the backplane for the Catalyst 4503 and Catalyst 4506 switches consumes 10 W, and the backplane for the Catalyst 4507 switch consumes 40 W.
  • 1000 W can support a fully loaded Catalyst 4503 switch with no powered device support.
  • 1300 W can support a fully loaded Catalyst 4503 switch with Cisco powered devices.
  • Each PoE port on a WS-X4148-RJ45V module requires 6.3 W. Five fully loaded WS-X4148-RJ45V modules in a switch comprise 240 ports. This configuration requires 1512 W of PoE, plus 300 W for the modules.

Power Management Limitations in Catalyst 4500 Series Switches

Limitation 1

It is possible to configure a switch that requires more power than the power supplies provide. The two ways you could configure a switch to exceed the power capabilities are as follows:

  • The power requirements for the installed modules exceed the power provided by the power supplies.

If you insert a single power supply and then set the switch to combined mode, the switch displays this error message:

Insufficient power supplies present for specified configuration.

This error message also displays in the output for the show power command. This error message displays because, by definition, combined mode requires that two working power supplies be installed in your switch.

If the power requirements for the installed modules exceeds the power provided by the power supplies, the switch displays this error message:

Insufficient power available for the current chassis configuration.

This error message also appears in the show power command output.

If you attempt to insert additional modules into your switch and exceed the power supply, the switch immediately places the newly inserted module into reset mode, and the switch displays these error messages:

Module has been inserted Insufficient power supplies operating.

Additionally, if you power down a functioning switch and insert an additional module or change the module configuration so that the power requirements exceed the available power, one or more modules enter reset mode when you power on the switch again.

  • The power requirements for the PoE exceed the PoE provided by the power supplies.

If you have too many IP phones drawing power from the system, power to IP phones is cut, and some phones may be powered down to reduce the power requirements to match the power supplies.

In the first scenario (power requirements exceed the power supplied), the system attempts to resolve this power usage limitation by evaluating the type and number of modules installed. During the evaluation cycle, beginning from the bottom of the chassis, the system puts the modules that it is unable to support

Power Management

Page 320 of the Cisco Systems 4500 user manual — Limitation 2
Page 320 · click to enlarge
Page 320

Chapter 10 Environmental Monitoring and Power Management Power Management

(for lack of power) into reset mode. The supervisor engine and modules for which there is adequate power always remain enabled, with no disruption of network connectivity. Modules placed in reset mode still consume some power and can be removed from the chassis to further reduce power requirements. If you configure the chassis correctly, the system does not enter the evaluation cycle.

A module in reset mode continues to draw power as long as it is installed in the chassis; use the show power module command to determine how much power is required to bring the module online.

To compute the power requirements for your system and verify that your system has enough power, add the power consumed by the supervisor engine module(s), the fan box(es), and the installed modules (including PoE). For PoE, total the requirements for all the phones. See the “Powering Down a Module” section on page 10-21 for more information on the power consumption for the various components of your switch.

The 802.3af-compliant PoE modules can consume up to 20 W of PoE to power FPGAs and other hardware components on the module. Be sure to add at least 20 W to your PoE requirements for each 802.3af-compliant PoE module to ensure that the system has adequate power for the PDs connected to the switch.

On the WS-X4148-RJ45V PoE module, PoE consumption cannot be measured. For all PoE calculations, the PoE consumption on this module is presumed to be equal to its administrative PoE.

Use the show module command to verify which modules are active and which, if any, have been placed in reset.

The following example shows the show module command output for a system with inadequate power for all installed modules. The system does not have enough power for Module 5; the Status displays it as PwrDeny.

If the PoE that is consumed by the module is more than 50 W above the PoE you allocated using the power inline consumption default command, the Status displays as PwrOver. If the PoE consumed by the module is more than 50 W above the PoE module limit, the Status displays as PwrFault.

Switch# show module Mod Ports Card Type Model Serial No. + 1 2 1000BaseX (GBIC) Supervisor(active) WS-X4014 JAB054109GH 2 6 1000BaseX (GBIC) WS-X4306 00000110 3 18 1000BaseX (GBIC) WS-X4418 JAB025104WK 5 0 Not enough power for module WS-X4148-FX-MT 00000000000 6 48 10/100BaseTX (RJ45) WS-X4148 JAB023402RP

M MAC addresses Hw Fw Sw Status --+ +---+ + + 1 005c.9d1a.f9d0 to 005c.9d1a.f9df 0.5 12.1(11br)EW 12.1(20020313:00 Ok 2 0010.7bab.9920 to 0010.7bab.9925 0.2 Ok 3 0050.7356.2b36 to 0050.7356.2b47 1.0 Ok 5 0001.64fe.a930 to 0001.64fe.a95f 0.0 PwrDeny 6 0050.0f10.28b0 to 0050.0f10.28df 1.0 Ok Switch#

Limitation 2

Certain configurations on the Catalyst 4507R and Catalyst 4510R chassis exceeds the maximum amount of data power available. These configurations include the combination of the follow PIDs:

  • 7-slot configuration
  • Chassis: WS-C4507R-E, WS-C4510R-E
Page 321 of the Cisco Systems 4500 user manual — Configuring Redundant Mode on a Catalyst 4500 Series Switch
Page 321 · click to enlarge
Page 321

Chapter 10 Environmental Monitoring and Power Management

  • Dual supervisor engines: WS-X45-Sup6-E and WS-X45-Sup6L-E
  • One or more: WS-X4448-GB-RJ45 or WS-X4148-FX-MT

To maximize the 10/100/1000 port density of 7- and 10- slot chassis when using redundant Supervisor Engine 6-E and Supervisor Engine 6L-E, install WS-X4548-GB-RJ45 line cards instead of WS-X4448-GB-RJ45 line cards. If WS-X4448-GB-RJ45 line cards are required, two options are available:

  • Option 1

Only four line card slots can be used on the Catalyst 4507R and six line card slots on the Catalyst 4510R chassis.

  • Option 2

When all slots are required, only one WS-X4448-GB-RJ45 line card can be used.

To maximize the 100-BASE-FX port density of 7- and 10- slot chassis when using Supervisor Engine 6-E and Supervisor Engine 6L-E, install WS-4248-FE-SFP line cards with FX optics instead of WS-X4148-FX-MT line cards. If WS-X4148-FX-MT line cards are required, two options are available:

  • Option 1

Only four line card slots can be used on the Cat4507R and six line card slots on the Catalyst 4510R chassis.

  • Option 2

When all slots are required only one WS-X4448-GB-RJ45 line card can be used.

Configuring Redundant Mode on a Catalyst 4500 Series Switch

By default, the power supplies in a Catalyst 4500 series switch are set to operate in redundant mode. To effectively use redundant mode, follow these guidelines:

  • Use two power supplies of the same type.
  • If you have the power management mode set to redundant mode and only one power supply installed, your switch accepts the configuration but operates without redundancy.
  • For fixed power supplies, choose a power supply that is powerful enough to support the switch configuration.
  • For variable power supplies, choose a power supply that provides enough power so that the chassis and PoE requirements are less than the maximum available power. Variable power supplies automatically adjust the power resources at startup to accommodate the chassis and PoE requirements. Modules are brought up first, followed by IP phones.
  • The maximum available power for chassis and PoE for each power supply are listed in Table 10-6 on page 10-13 .

To configure redundant mode on your Catalyst 4500 series switch, perform this task:

Power Management

Page 322 of the Cisco Systems 4500 user manual — Configuring Combined Mode on a Catalyst 4500 Series Switch
Page 322 · click to enlarge
Page 322

Chapter 10 Environmental Monitoring and Power Management Power Management

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# power redundancy-mode redundant Sets the power management mode to redundant mode.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show power supplies Verifies the power redundancy mode for the switch.

The following example shows how to set the power management mode to redundant mode:

Switch (config)# power redundancy-mode redundant Switch (config)# end Switch#

The following example shows how to display the current power redundancy mode. The power supplies needed by system:1 indicates that the switch is in redundant mode.

Switch# show power supplies Power supplies needed by system:1 Switch#

An option in the combined mode provides a form of redundancy available with only the 4200 W AC and 6000 W AC power supplies. Refer to the section “Combined Mode Power Resiliency” on page 16.

Configuring Combined Mode on a Catalyst 4500 Series Switch

If your switch configuration requires more power than a single power supply can provide, set the power management mode to combined mode. Combined mode utilizes the available power for both power supplies; however, your switch has no power redundancy.

To effectively use combined mode, follow these guidelines:

  • Use power supplies of the same type and wattage (fixed or variable and AC or DC).
  • If you use power supplies with different types or wattages, the switch utilizes only one of the power supplies.
  • For variable power supplies, choose a power supply that provides enough power so that the chassis and PoE requirements are less than the maximum available power. Variable power supplies automatically adjust the power resources at startup to accommodate the chassis and PoE requirements.
  • If you have the power management mode set to combined mode and only one power supply installed, your switch accepts the configuration, but power is available from only one power supply.
  • When your switch is configured to combined mode, the total available power is not the mathematical sum of the individual power supplies. The power supplies have a predetermined current sharing ratio See Table 10-6 on page 10-13 for more information.
  • The maximum available power for chassis and PoE for each power supply are listed in Table 10-6 on page 10-13 .

To configure combined mode on your Catalyst 4500 series switch, perform this task:

Page 323 of the Cisco Systems 4500 user manual — Power Supply Redundant Mode (W) Combined Mode (W) Sharing Ratio
Page 323 · click to enlarge
Page 323

Chapter 10 Environmental Monitoring and Power Management

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# power redundancy-mode combined Sets the power management mode to combined mode.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show power supplies Verifies the power redundancy mode for the switch.

The following example shows how to set the power management mode to combined mode:

Switch(config)# power redundancy-mode combined Switch(config)# end Switch#

The following example shows how to display the current power redundancy mode. The power supplies needed by system: 2 indicates that the switch is in combined mode.

Switch# show power supplies Power supplies needed by system:2 Switch#

Available Power for Catalyst 4500 Series Switches Power Supplies

Table 10-6 lists the power available for use in the various Catalyst 4500 series switches power supplies. When your switch is configured to combined mode, the total available power in not the mathematical sum of the individual power supplies. The power supplies have a sharing ratio predetermined by the hardware. In combined mode, the total power available is P + (P * sharing-ratio), where P is the amount of power in the power supply.

Table 10-6 Available Power for Switch Power Supplies

Power Supply Redundant Mode (W) Combined Mode (W) Sharing Ratio

1000 W AC Chassis1 = 1050

1300 W AC Chassis (max) = 1050

Chassis (min) = 767

PoE (max) = 800

PoE (max) = 1333

Chassis + PoE + Backplane < 1300

Chassis (max) = 1667

PoE (min) = 533

Chassis + PoE + Backplane < 2200

1400 W DC Chassis (min) = 200

Chassis = 22674

Chassis (max) = 1360

PoE (max)2 = (DC Input3 - [Chassis (min) + Backplane] / 0.75) * 0.96

Show 9 more labels / short text on this page
Power Management · Chassis = 1667 · 2/3 · PoE = 0 · PoE = 0 · 2/3 · Chassis—2/3 · PoE5 · PoE—0
Page 324 of the Cisco Systems 4500 user manual — Power Supply Redundant Mode (W) Combined Mode (W) Sharing Ratio
Page 324 · click to enlarge
Page 324

Chapter 10 Environmental Monitoring and Power Management Power Management

Table 10-6 Available Power for Switch Power Supplies (continued)

Power Supply Redundant Mode (W) Combined Mode (W) Sharing Ratio

1400 W AC Chassis = 1360

PoE = 06

2800 W AC Chassis = 1360

1. Chassis power includes power for the supervisor engine(s), all line cards, and the fan tray.
2. The efficiency for the 1400 W DC power supply is 0.75, and 0.96 is applied to PoE.
3. DC input can vary for the 1400 W DC power supply and is configurable. For more information, see “Special Considerations for the 1400 W DC Power Supply” on page 18.
4. Not available for PoE.
5. Not available for PoE.
6. No voice power.
7. Data-only.
8. Inline power.

Special Considerations for the 4200 W AC and 6000 W AC Power Supplies

The 4200 W AC and 6000 W AC power supply has two inputs: each can be powered at 110 or 220 V.

The output of the show power command for the 4200 W AC and 6000 W AC power supplies are similar to that of 1400 W DC triple-input power supply (that is, the status of the submodules (multiple inputs) is displayed). With these two power supplies, you can distinguish submodule “failed” versus “off,” and the status of the submodules (good, bad, or off):

Switch# show power Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-4200ACV AC 4200W good good good PS1-1 220V good PS1-2 off PS2 PWR-C45-4200ACV AC 4200W bad/off good bad/off PS2-1 220V good PS2-2 220V bad

Power supplies needed by system1 Power supplies currently available : 2

Power Summary Maximum (in Watts) Used Available System Power (12V) 140 1360 Inline Power (-50V) 0 1850 Backplane Power (3.3V) 0 40 Total 140 (not to exceed Total Maximum Available = 2100) Switch#

As with other power supplies, the two power supplies must be of the same type (6000 W AC or 4200 W AC or 1400 W DC). Otherwise, the right power supply is put in err-disable state and the left one is selected. In addition, all the inputs to the chassis must be at the same voltage. In redundant mode, the inputs to the left and right power supplies must be identical. If the left and right power supplies are powered in redundant mode, the power values is based on the power supply with the higher output wattage.

Show 8 more labels / short text on this page
Chassis = 2473 · 9/11 · PoE = 0 · Chassis7—9/11 · Chassis = 2473 · PoE = 1400 · PoE = 2333 · PoE8—2/3
Page 325 of the Cisco Systems 4500 user manual — 220 V AC 1460 2500 2100
Page 325 · click to enlarge
Page 325

Chapter 10 Environmental Monitoring and Power Management

Note When the system is powered with a 4200 W or 6000 W power supply either in 110 V or 220 V combined mode operation, the available power is determined by the configuration of the system (the type of line cards, the number of line cards, number of ports consuming inline power, etc.) and does not reflect the absolute maximum power.

Table 10-7 illustrates how the 4200 W AC power supply is evaluated in redundant mode.

Table 10-7 Output Power in Redundant Mode for the 4200 W AC Power Supply

Total Power (W) 1

Power Supply 12 V (data) (W) -50V (PoE) (W)

110 V AC 660 922 1050

110 V AC + 110 V AC 1460 2000 2100

220 V AC 1460 2500 2100

220 V AC + 220 V AC 1960 5000 4200

1. Power supply outputs’ drawing should not exceed the total power.

In combined mode, all the inputs to the chassis must be at the same voltage.

Table 10-8 illustrates how the 4200 W AC power supply is evaluated in combined mode.

Table 10-8 Output Power in Conbined Mode for the 4200 W AC Power Supply

Power Supply 12 V (data) (W) -50 V (PoE) (W) Total Power (W)1

Both sides at 110 V AC 1188 1531 1700

Both sides at 110 V AC + 110 V AC 2448 3071 3570

One side at 110 V AC + 110 V AC, the other at 110 V AC

Both sides at 220 V AC 2448 3071 3570

Both sides at 220 V AC + 220 V AC 2448 6142 7070

Both sides at 220 V AC + 220 V AC, the other at 220 V AC

1. Power supply outputs’ drawing should not exceed the total power.

Table 10-9 illustrates how the 6000 W AC power supply is evaluated in redundant mode.

Power Management · 1818 2301 2660 · 2447 4607 5320

Page 326 of the Cisco Systems 4500 user manual — Combined Mode Power Resiliency
Page 326 · click to enlarge
Page 326

Chapter 10 Environmental Monitoring and Power Management Power Management

Table 10-9 Output Power in Redundant Mode for the 6000 W AC Power Supply

Total Power (W) 1

12 V (data) (W)

-50V (PoE) (W)

Power Supply

110 V AC 850 922 1050

110 V AC + 110 V AC 1700 1850 2100

220 V AC 2200 2400 3000

220 V AC + 220 V AC 2200 4800 6000

1. Power supply outputs’ drawing should not exceed the total power.

In combined mode, all the inputs to the chassis must be at the same voltage.

Table 10-10 illustrates how the 6000 W AC power supply is evaluated in combined mode.

Table 10-10 Combined Mode Output for the 6000 W AC Power Supply

Power Supply 12 V (data) (W) -50 V (PoE) (W) Total Power (W)1

Both sides at 110 V AC 1530 1531 1710

Both sides at 110 V AC + 110 V AC 3060 3071 3590

One side at 110 V AC + 110 V AC, the other at 110 V AC

Both sides at 220 V AC 3960 3984 5140

Both sides at 220 V AC + 220 V AC 3960 7968 10170

Both sides at 220 V AC + 220 V AC, the other at 220 V AC

1. Power supply outputs’ drawing should not exceed the total power.

Combined Mode Power Resiliency

Using the combined mode power resiliency feature, you can limit the power usage to a maximum of two or three (configurable) inputs.

With two 4200 W AC or 6000 W AC power supplies, a maximum of four inputs are available. This feature allows you to cap the power usage to that of two or three inputs. If one of the power supplies fails, no loss of power occurs because you have capped its usage to a smaller number of inputs.

To configure the combined mode resiliency feature, perform this task:

2295 2301 2680 · 2970 5976 7610

Page 327 of the Cisco Systems 4500 user manual — Environmental Monitoring and Power Management
Page 327 · click to enlarge
Page 327

Chapter 10 Environmental Monitoring and Power Management

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# power redundancy combined max inputs {2 | 3}

Limits the power usage to two or three inputs.

Step 3 Switch(config)# end Exits configuration mode.

If you have max inputs 3 configured with four “good” (220 V) inputs and you limit the user to 5500 W instead of 7600 W and one subunit fails or is powered off, you have three quality inputs providing 5500 W and the chassis is powered at the same rate as it was prior to the failure event:

Switch# configuration terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# power redundancy combined max inputs 3 Switch(config)# end Switch# 14:32:01: %SYS-5-CONFIG_I: Configured from console by console

Here is the output of the show power command prior to invoking this feature:

Switch# show power sh power Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-4200ACV AC 4200W good good good PS1-1 110V good PS1-2 110V good PS2 PWR-C45-4200ACV AC 4200W good good good PS2-1 110V good PS2-2 110V good

Power supplies needed by system1 Power supplies currently available : 2

Power Summary Maximum (in Watts) Used Available System Power (12V) 140 1360 Inline Power (-50V) 0 1850 Backplane Power (3.3V) 0 40 Total 140 (not to exceed Total Maximum Available = 2100)

Here is the output after invoking this feature. The combined mode was indicated before Power supplies needed = 2 in the output of the show power command, combined mode is now indicated by the phrase Power supplies needed by system : 2 Maximum Inputs = 3.

Switch# show power sh power Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-4200ACV AC 4200W good good good PS1-1 110V good

Power Management

Page 328 of the Cisco Systems 4500 user manual — Configuring the DC Input for a Power Supply
Page 328 · click to enlarge
Page 328

Chapter 10 Environmental Monitoring and Power Management Power Management

PS1-2 110V good PS2 PWR-C45-4200ACV AC 4200W good good good PS2-1 110V good PS2-2 110V good

Power supplies needed by system2 Maximum Inputs = 3 Power supplies currently available : 2

Power Summary Maximum (in Watts) Used Available System Power (12V) 140 2400 Inline Power (-50V) 0 2000 Backplane Power (3.3V) 0 40 Total 140 (not to exceed Total Maximum Available = 2728)

Special Considerations for the 1400 W DC Power Supply

Keep in mind the following guidelines when using a 1400 W DC power supply with your Catalyst 4500 series switch:

  • The 1400 W DC power supply works with a variety of DC sources. The DC input can vary from 300 W to 7500 W. Refer to the power supply documentation for additional information.
  • The supervisor engine cannot detect the DC source plugged into the 1400 W DC power supply. If you are using the 1400 W DC power supply, use the power dc input command to set the DC input power. For more information on this command, see the “Configuring the DC Input for a Power Supply” section on page 10-18 .
  • The software automatically adjusts between system power (for modules, backplane, and fans) and PoE. Although PoE is 96 percent efficient, system power has only 75 percent efficiency. For example, each 120 W of system power requires 160 W from the DC input. This requirement is reflected in the “ Power Used” column of the output for the show power available command.
  • The 1400 W DC power supply has a separate power on or off switch for PoE. The power supply fan status and main power supply status are tied together. If either of them fails, both the power supply and its fan report as bad/off. You should verify that the main power is on before turning on the power for the inline switch. In addition, you should verify that the power for the inline switch is off before turning off the main power.

Configuring the DC Input for a Power Supply

To configure the DC input power for the 1400 W DC power supply or a power shelf, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Switch#

Page 329 of the Cisco Systems 4500 user manual — Insufficient Inline Power Handling for Supervisor Engine II-TS
Page 329 · click to enlarge
Page 329

Chapter 10 Environmental Monitoring and Power Management

Step 2 Switch(config)# power dc input watts Sets the capacity of the DC input source.

Step 3 Switch(config)# end Exits configuration mode.

The same configuration is applied to both power slots. For example, if you set the dc power input to 1000 W, the switch expects 1000 W as the external DC source for both slot 1and slot 2 (if present).

The following example shows how to set the external DC power source to 1000 W:

Switch# configure terminal Switch (config)# power dc input 1000 Switch (config)# end Switch#

If you use the 1400 W DC SP power supply in combined mode, the inputs do not have to match.

Special Considerations for the 1400 W DC SP Triple Input Power Supply

Unlike the 1400 W DC power supply, the 1400 W DC SP power supply has submodules (multiple inputs) that can be powered on or off. With Cisco IOS Release 12.2(25)EW, the output of the show power command is modified to display the status of these submodules:

Switch# show power Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-1400DC DCSP1400W good good n.a. PS1-1 12.5A good PS1-2 15.0A bad PS1-3 15.0A off

PS2 none --

Keep in mind the following guidelines when using a 1400 W DC SP power supply with your Catalyst 4500 series switch:

  • When you use two 48 V power rails to drive two power supplies, you might use cross-wiring to connect the power supplies (to rails) to minimize the inrush current drawn during an initial power up. In this situation, you should configure the switch in combined mode before you take a rail down for maintenance.
  • Ordinarily, when configured for redundancy, two power supplies must be matched (have identical inputs). For example, you might provide power to inputs 1 and 3 on both PS1 and PS2. If power supplies are mismatched upon bootup, the right (second) power supply is in err-disable state.

In a matched redundant power supply configuration, if a power supply submodule fails, the other (good) power supply provides power to its full capability.

Insufficient Inline Power Handling for Supervisor Engine II-TS

When the Supervisor Engine II-TS is used with the 1400 W DC power supply (PWR-C45-1400DC), and only one 12.5 A input of the power supply is used, the supervisor engine’s power consumption may vary depending on the type of line card used and on whether a line card is inserted at slots 2 and 3. The power consumption varies between 155 W and 330 W, which also affects the maximum amount of available inline power through the supervisor engine (0 W to 175 W). Consequently, it is possible for the supervisor engine to deny inline power to a connected inline power device when one or more line cards are inserted into the chassis.

Power Management

Page 330 of the Cisco Systems 4500 user manual — Environmental Monitoring and Power Management
Page 330 · click to enlarge
Page 330

Chapter 10 Environmental Monitoring and Power Management Power Management

The output of the show power detail and show power module commands reveals the variable amount of power consumption attributable to the supervisor engine and summarizes the supervisor engine’s inline power.

Switch# show power detail show power detail Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-1400DC DCSP1400W good good n.a. PS1-1 12.5A good PS1-2 15.0A off PS1-3 15.0A off PS2 none --

Power supplies needed by system1 Power supplies currently available : 1

Power Summary Maximum (in Watts) Used Available System Power (12V) 360 360 Inline Power (-50V) 0 0 Backplane Power (3.3V) 0 40 Total 360 400

Module Inline Power Summary (Watts) (12V -> -48V on board conversion) Maximum Mod Used Available --- 1 5 25 ---

Watts Used of System Power (12V) Mod Model currently out of reset in reset 1 WS-X4013+TS 180 180 180 2 WS-X4506-GB-T 60 60 20 3 WS-X4424-GB-RJ45 90 90 50 -- Fan Tray 30 -- -- Total 360 330 250

Watts used of Chassis Inline Power (-50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 2 WS-X4506-GB-T 0 89 3 WS-X4424-GB-RJ45 - Total 0

Watts used of Module Inline Power (12V -> -50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 1 WS-X4013+TS 6 5 3 3 90

Page 331 of the Cisco Systems 4500 user manual — Powering Down a Module
Page 331 · click to enlarge
Page 331

Chapter 10 Environmental Monitoring and Power Management

Switch# show power module sh power module Watts Used of System Power (12V) Mod Model currently out of reset in reset 1 WS-X4013+TS 180 180 180 2 WS-X4506-GB-T 60 60 20 3 WS-X4424-GB-RJ45 90 90 50 -- Fan Tray 30 -- -- Total 360 330 250

Watts used of Chassis Inline Power (-50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 2 WS-X4506-GB-T 0 89 3 WS-X4424-GB-RJ45 - Total 0

Watts used of Module Inline Power (12V -> -50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 1 WS-X4013+TS 6 5 3 3 90

Powering Down a Module

If your system does not have enough power for all modules installed in the switch, you can power down a module, and place it in low-power mode. To power down a module, perform this task:

Switch(config)# no hw-module module num power Turns power down to the specified module by placing it in low power mode.

To power on a module that has been powered down, perform this task:

Switch(config)# hw-module module num power Turns power on to the specified module.

This example shows how to power down module 6:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# no hw-module module 6 power Switch(config)# end Switch#

Power Management · Switch#

Page 332 of the Cisco Systems 4500 user manual — IEEE 802.3az Energy Efficient Ethernet
Page 332 · click to enlarge
Page 332

Chapter 10 Environmental Monitoring and Power Management IEEE 802.3az Energy Efficient Ethernet

Power Management for the Catalyst 4948 Switches

You can select from AC or DC power supplies to ensure that you have enough power for your switch. The Catalyst 4948 switches support the following power supplies:

  • 300 W AC
  • 300 W DC

These power supplies are incompatible with Catalyst 4500 series switches. Because Power over Ethernet (PoE) is not supported on the Catalyst 4948 switch, you only need a limited wattage is needed. (For information on PoE, see Chapter 11, “Configuring Power over Ethernet.”) When you insert power supplies in your switch, the EEPROM on the power supplies can be read by the system software even if the supply is not powered on. You may mix AC and DC power supplies.

Power Management Modes for the Catalyst 4948 Switch

The Catalyst 4948 switches support the redundant power management mode. In this mode, if both power supplies are operating normally, each provides from 20/80 to 45/55 percent of the total system power requirements at all times. If one power supply fails, the other unit increases power to 100 percent of the total power requirement.

IEEE 802.3az Energy Efficient Ethernet

Energy Efficient Ethernet is an extension of the IEEE 802.3 standard that provides a mechanism and a standard for reducing energy usage without reducing the vital function of network interfaces. EEE defines the signaling necessary for energy savings during periods where no data is sent on the interface.

EEE defines support for physical layer devices (PHYs) to operate in Low Power Idle (LPI) mode. When enabled, EEE supports QUIET times during low link utilization allowing both sides of a link to disable portions of each PHY's operating circuitry and save power. This functionality is provided per port and is not enabled by default. To avoid issues with EEE functionality on any port during run-time, Cisco provides the power efficient-ethernet auto command to enable or disable EEE.

Because EEE function relies on Auto Negotiation pulse to determine whether to activate EEE, the port must initially enable auto negotiation. Furthermore, EEE is the correct action provided the speed is auto 100M, auto 1000M, or auto 100M and 1000M. 10M (either auto or forced mode) does not require EEE for power saving.

For more details, see the URL:

http://www.cisco.com/en/US/prod/collateral/switches/ps5718/ps4324/white_paper_c11-676336.pdf

Sections include:

  • Determining EEE Capability, page 10-23
  • Enabling EEE, page 10-23
  • Determining EEE Status, page 10-23
Page 333 of the Cisco Systems 4500 user manual — Determining EEE Status
Page 333 · click to enlarge
Page 333

Chapter 10 Environmental Monitoring and Power Management

IEEE 802.3az Energy Efficient Ethernet

Determining EEE Capability

To determine whether a line card supports EEE, use the show interface capabilities module module command, as follows:

Switch# show interface capabilities module 3 GigabitEthernet3/1 Model: WS-X4748-NGPOE+E-RJ-45 Type: 10/100/1000-TX Speed: 10,100,1000,auto Duplex: half,full,auto Auto-MDIX: yes EEE: yes ( 100-Tx and 1000-T auto mode )

Enabling EEE

To enable EEE on a given port, use the power efficient-ethernet auto command.

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# interface interface Enters interface configuration mode and specifies the port to be configured.

Step 3 Switch(config-if)# power efficient-ethernet auto Enables EEE.

Step 4 Switch(config-if)# exit Exits global configuration mode.

The following example shows how to enable EEE:

Switch# config t Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# power efficient-ethernet auto Switch(config-if)# exit

Determining EEE Status

To determine EEE status use the show platform software interface interface status command:

The following example determines EEE status:

Switch(config)# show platform software interface g2/1 status Switch Phyport Gi2/1 Software Status EEE: Disabled

EEE status can have the following values:

EEE: N/A—The port is not capable of EEE.

EEE: Disabled—The port EEE is disabled.

EEE: Disagreed—The port EEE is not set because a remote link partner might be incompatible with EEE; either it is not EEE capable, or it’s EEE setting is incompatible.

EEE: Operational—The port EEE is enabled and operating.

Page 334 of the Cisco Systems 4500 user manual — Environmental Monitoring and Power Management
Page 334 · click to enlarge
Page 334

Chapter 10 Environmental Monitoring and Power Management IEEE 802.3az Energy Efficient Ethernet

Page 335 of the Cisco Systems 4500 user manual — About Power over Ethernet
Page 335 · click to enlarge
Page 335

C H A P T E R

Configuring Power over Ethernet

This chapter describes how to configure Power over Ethernet (PoE) on the Catalyst 4500 series switch.

This chapter contains the following sections:

  • About Power over Ethernet, page 11-1
  • Power Management Modes, page 11-3
  • Configuring Power Consumption for Powered Devices on an Interface, page 11-5
  • Displaying the Operational Status for an Interface, page 11-6
  • Displaying all PoE Detection and Removal Events, page 11-7
  • Displaying the PoE Consumed by a Module, page 11-8
  • PoE Policing and Monitoring, page 11-12
  • Enhanced Power PoE Support on the E-Series Chassis, page 11-15

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Power over Ethernet

The Catalyst 4500 series switch provides Power over Ethernet (PoE) support for both Cisco Prestandard PoE and the IEEE 802.3af standard (ratified in 2003). PoE is supported by all Catalyst 4500 series chassis and requires a PoE module and power supply. The amount of PoE power available depends on

Page 336 of the Cisco Systems 4500 user manual — Switching Modules Power Supplies
Page 336 · click to enlarge
Page 336

Chapter 11 Configuring Power over Ethernet About Power over Ethernet

the PoE capabilities of individual power supplies. Support for PoE enables the system to power inline devices, such as IP phones, IP video phones, and wireless access points over standard copper cabling (Category 5, 5e, or 6 cabling).

In addition, with PoE, you do not need to provide wall power for each PoE enabled device. This eliminates the cost for additional electrical cabling that is otherwise necessary for connected devices. Moreover, PoE enables you to isolate critical devices on a single power system, enabling the entire system to be supported by UPS backup.

You typically deploy a Catalyst 4500 series switch in one of two deployment scenarios. The first scenario is data-only, which requires power to operate the switch and the associated modules. The second scenario supports data and PoE (also termed “inline power”) for deployments where the attached device derives power from the Ethernet port.

Catalyst 4500 series switches can sense if a powered device is connected to a PoE module. They can supply PoE to the powered device if there is no power on the circuit. (If there is power on the circuit, the switch does not supply it.) The powered device can also be connected to an AC power source and supply its own power to the voice circuit.

Hardware Requirements

To power a device using PoE, your chassis must use at least one of the power supplies listed in Table 11-1, and connect the device to at least one of the switching modules listed in Table 11-1.

Table 11-1 Hardware Requirements

Switching Modules Power Supplies

WS-X4148-RJ45V PWR-C45-1300ACV=

WS-X4224-RJ45V PWR-C45-1400DCV=

WS-X4248-RJ21V PWR-C45-2800ACV=

WS-X4248-RJ45V PWR-C45-4200ACV=

WS-X4506-GB-T PWR-C45-6000ACV=

WS-X4524-GB-RJ45V

WS-X4548-RJ45V+

WS-X4548-GB-RJ45V

WS-X4648-RJ45V-E

WS-X4648-RJ45V+E WS-X4748-RJ45V+E

WS-X4748-UPOE+E

Page 337 of the Cisco Systems 4500 user manual — Power Management Modes
Page 337 · click to enlarge
Page 337

Chapter 11 Configuring Power over Ethernet

Power Management Modes

If your switch has a module capable of providing PoE to end stations, you can set each interface on the module to automatically detect and apply PoE if the end station requires power.

The Catalyst 4500 series switch has three PoE modes:

  • auto —PoE interface. The supervisor engine directs the switching module to power up the interface only if the switching module discovers the phone and the switch has enough power. You can specify the maximum wattage that is allowed on the interface. If you do not specify a wattage, then the switch delivers no more than the hardware-supported maximum value. This mode has no effect if the interface is not capable of providing PoE.
  • static —High priority PoE interface. The supervisor engine preallocates power to the interface, even when nothing is connected, guaranteeing that power exists for the interface. You can specify the maximum wattage that is allowed on the interface. If you do not specify a wattage, then the switch preallocates the hardware-supported maximum value. If the switch does not have enough power for the allocation, the command fails. The supervisor engine directs the switching module to power up the interface only if the switching module discovers the powered device.
  • never —Data interface only The supervisor engine never powers up the interface, even if an unpowered phone is connected. This mode is only needed when you want to make sure power is never applied to a PoE-capable interface.

The switch can measure the actual PoE consumption for an 802.3af-compliant PoE module, and displays this in the show power module command.

PoE consumption cannot be measured on the WS-X4148-RJ45V PoE module. For all PoE calculations, the PoE consumption on this module is presumed to be equal to its administrative PoE.

For more information, see the “Displaying the PoE Consumed by a Module” section on page 11-8.

For most users, the default configuration of “auto” works well, providing plug-and-play capability. No further configuration is required. However, to make an interface higher priority or data only, or to specify a maximum wattage, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/port

Selects the interface to configure.

Step 2 Switch(config-if)# power inline {auto [max milli-watts] | never | static [max milli-watts]}

The auto keyword sets the interface to automatically detect and supply power to the powered device. it is the default configuration.

The static keyword sets the interface to higher priority than auto.

If necessary, use the max keyword to specify the maximum wattage allowed on the interface (4000 to 15400 milliwatts for most switching modules. As of Cisco IOS Release 12.2(44)SG, the WS-X4648-RJ45V+E can support up to 30 W available per-port and the WS-X4648-RJ45V-E supports up to 20 W. For more information, see “Enhanced Power PoE Support on the E-Series Chassis” on page 15).

Use the never keyword to disable detection and power for the PoE capable interface.

Power Management Modes

Page 338 of the Cisco Systems 4500 user manual — Intelligent Power Management
Page 338 · click to enlarge
Page 338

Chapter 11 Configuring Power over Ethernet Power Management Modes

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show power inline {fastethernet | gigabitethernet} slot/port

Displays the PoE state for the switch.

The following example shows how to set the Fast Ethernet interface 4/1 to automatically detect PoE and send power through that interface, and to verify the PoE configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 4/1 Switch(config-if)# power inline auto Switch(config-if)# end Switch# show power inline fastethernet 4/1 Available:677(w) Used:11(w) Remaining:666(w)

Interface Admin Oper Power(Watts) Device Class From PS To Device Fa4/1 auto on 11.2 10.0 Ieee PD 0

Interface AdminPowerMax AdminConsumption (Watts) (Watts) Fa4/1 15.4 10.0 Switch#

The following example shows how to configure an interface so that it never supplies power through the interface:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/2 Switch(config-if)# power inline never Switch(config-if)# end Switch#

Intelligent Power Management

All Catalyst 4500 PoE-capable modules use Intelligent Power Management to provide power on each interface. When a powered device (PD) is attached to a PoE-capable port, the port detects the PD and provision power accordingly. If a Cisco PD is used, the switch and PD negotiate power using CDP packets to determine the precise amount of power needed by the PD. If the PD is 802.3af compatible, the difference between what is mandated by the 802.3af class and what is actually needed by the PD is returned to the power budget for use by additional devices. In this way, power negotiation enables customers to stretch their power budget and use it more effectively.

Power negotiation also enables the interoperability of newer Cisco powered devices with older legacy PoE-capable ports from Cisco. Newer Cisco PDs do not consume more than what the switch port can provide.

Page 339 of the Cisco Systems 4500 user manual — Configuring Power Consumption for Powered Devices on an Interface
Page 339 · click to enlarge
Page 339

Chapter 11 Configuring Power over Ethernet

Configuring Power Consumption for Powered Devices on an Interface

Configuring Power Consumption for Powered Devices on an Interface

By default, when the switch detects a powered device on an interface, it assumes the powered device consumes the maximum the port can provide (7 W on a legacy PoE module and 15.4W on the IEEE PoE modules introduced in Cisco IOS Release 12.2(18)EW). When the switch receives a CDP packet from the powered device, the wattage automatically adjusts downward to the specific amount required by that device. Normally, this automatic adjustment works well, and no further configuration is required or recommended. However, you can specify the powered device's consumption for a particular interface to provide extra functionality from your switch. This behavior is useful when CDP is disabled or not available.

Note The inline power consumption command overrides the power allocated to the port through IEEE/Cisco phone discovery and CDP/LLDP power negotiation. To guarantee safe operation of the system, ensure that the value configured here is no less than the actual power requirement of the attached device. If the power drawn by the inline powered devices exceeds the capability of the power supply, it could trip the power supply.

To change the power consumption of a single powered device, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/port

Selects the interface to configure.

Step 2 Switch(config-if)# [no] power inline consumption milli-watts

Sets the PoE consumption (in milliwatts) of the powered device connected to a specific interface. The power consumption can range from 4000 to 15,400.

To reenable the automatic adjustment of consumption, either use the no keyword or specify 15,400 milliwatts.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show power inline consumption {fastethernet | gigabitethernet} slot/port

Displays the PoE consumption for the interface.

This example shows how to set the PoE consumption to 5000 milliwatts for interface gi 7/1 regardless what is mandated by the 802.3af class of the discovered device, or by any CDP packet received from the powered device. This example also verifies the PoE consumption on interface gi 7/1.

The following output displays the initial power consumption of the interface:

Switch# show power inline gi 7/1 Available:627(w) Used:267(w) Remaining:360(w) Interface Admin Oper Power(Watts) Device Class From PS To Device Gi7/1 auto on 7.9 7.0 IP Phone 7941 3

Page 340 of the Cisco Systems 4500 user manual — Displaying the Operational Status for an Interface
Page 340 · click to enlarge
Page 340

Chapter 11 Configuring Power over Ethernet Displaying the Operational Status for an Interface

Interface AdminPowerMax AdminConsumption (Watts) (Watts) Gi7/1 15.4 15.4

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gi 7/1 Switch(config-if)# power inline consumption 5000 Switch(config-if)# exit Switch(config)# exit

The following output displays the power consumption after entering the power inline consumption command on the interface:

Switch# show power inline gi 7/1 Available:627(w) Used:265(w) Remaining:362(w) Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi7/1 auto on 5.6 5.0 Ieee PD 3 Interface AdminPowerMax AdminConsumption (Watts) (Watts) Gi7/1 15.4 5.0

Displaying the Operational Status for an Interface

Each interface has an operational status which reflects the PoE status for an interface. The operational status for an interface is defined as one of the following:

  • on—Power is supplied by the port.
  • off—Power is not supplied by the port. If a powered device is connected to an interface with external power, the switch does not recognize the powered device. The “Device” column in the show power inline command displays as n/a.
  • Power-deny—The supervisor engine does not have enough power to allocate to the port, or the power that is configured for the port is less than the power required by the port; power is not being supplied by the port.
  • err-disable—The port is unable to provide power to the connected device that is configured in static mode.
  • faulty—The port failed diagnostics tests.

To view the operational status for an interface, use the show power inline command.

This example shows how to display the operational status for all interfaces on module 3:

Switch# show power inline module 3 Available:677(w) Used:117(w) Remaining:560(w)

Interface Admin Oper Power(Watts) Device Class From PS To Device

Page 341 of the Cisco Systems 4500 user manual — Displaying all PoE Detection and Removal Events
Page 341 · click to enlarge
Page 341

Chapter 11 Configuring Power over Ethernet

Displaying all PoE Detection and Removal Events

Fa3/1 auto on 17.3 15.4 Ieee PD 0 Fa3/2 auto on 4.5 4.0 Ieee PD 1 Fa3/3 auto on 7.1 6.3 Cisco IP Phone 7960 0 Fa3/4 auto on 7.1 6.3 Cisco IP Phone 7960 n/a Fa3/5 auto on 17.3 15.4 Ieee PD 0 Fa3/6 auto on 17.3 15.4 Ieee PD 0 Fa3/7 auto on 4.5 4.0 Ieee PD 1 Fa3/8 auto on 7.9 7.0 Ieee PD 2 Fa3/9 auto on 17.3 15.4 Ieee PD 3 Fa3/10 auto on 17.3 15.4 Ieee PD 4 Fa3/11 auto off 0 0 n/a n/a Fa3/12 auto off 0 0 n/a n/a Fa3/13 auto off 0 0 n/a n/a Fa3/14 auto off 0 0 n/a n/a Fa3/15 auto off 0 0 n/a n/a Fa3/16 auto off 0 0 n/a n/a Fa3/17 auto off 0 0 n/a n/a Fa3/18 auto off 0 0 n/a n/a

Totals10 on 117.5 104.6 Switch#

This example shows how to display the operational status for Fast Ethernet interface 4/1:

Switch# show power inline fa4/1 Available:677(w) Used:11(w) Remaining:666(w)

Interface Admin Oper Power(Watts) Device Class From PS To Device

Fa4/1 auto on 11.2 10.0 Ieee PD 0

Interface AdminPowerMax AdminConsumption (Watts) (Watts)

Fa4/1 15.4 10.0 Switch#

Displaying all PoE Detection and Removal Events

Starting with Cisco IOS Release 15.0(2)SG2, a Catalyst 4500 series switch can display all PoE detection and removal events.

To enable PoE event logging, you use the power inline logging global command:

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# power inline logging global Switch(config)# int gigabitEthernet 5/5 Switch(config-if)# shut Switch(config-if)# *Oct 17 12:02:48.407: %ILPOWER-5-IEEE_DISCONNECT: Interface Gi5/5: PD removed Switch(config-if)# no shut Switch(config-if)# *Oct 17 12:02:54.915: %ILPOWER-7-DETECT: Interface Gi5/5: Power Device detected: IEEE PD

Page 342 of the Cisco Systems 4500 user manual — Displaying the PoE Consumed by a Module
Page 342 · click to enlarge
Page 342

Chapter 11 Configuring Power over Ethernet Displaying the PoE Consumed by a Module

Displaying the PoE Consumed by a Module

A Catalyst 4500 series switch can measure the actual PoE consumption for an 802.3af-compliant PoE module. You can observe this consumption by using show power module and show power detail commands. For all PoE calculations, presume that the PoE consumption on the WS-X4148-RJ45V module equals its administrative PoE.

The 802.3af-compliant PoE modules can consume up to 20 W of PoE to power FPGAs and other hardware components on the module. To ensure that the system has sufficient power for the PDs connected to the switch, add at least 20 W to your PoE requirements for each 802.3af-compliant PoE module.

The following example uses the show power module command to display the PoE consumption for an 802.3af-compliant module:

Switch# show power module

Watts Used of System Power (12V) Mod Model currently out of reset in reset 1 WS-X4013+TS 330 330 330 2 WS-X4548-GB-RJ45V 60 60 20 3 WS-X4548-GB-RJ45V 60 60 20 -- Fan Tray 30 -- -- Total 480 450 370

Watts used of Chassis Inline Power (-50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 2 WS-X4548-GB-RJ45V 138 123 73 65 89 3 WS-X4548-GB-RJ45V 0 0 22 20 89 Total 138 123 95 85

Watts used of Module Inline Power (12V -> -50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 1 WS-X4013+TS 128 128 63 63 100

The Inline Power Oper column displays the amount of PoE consumed by the powered devices that are attached to the module, in addition to the PoE consumed by the FPGAs and other hardware components on the module.

The Inline Power Admin column displays only the amount of PoE allocated by the powered devices attached to the module.

Switch#

Page 343 of the Cisco Systems 4500 user manual — Configuring Power over Ethernet
Page 343 · click to enlarge
Page 343

Chapter 11 Configuring Power over Ethernet

Displaying the PoE Consumed by a Module

The following example uses the show power detail and show power inline commands to display the PoE consumption for an 802.3af-compliant module:

Switch# show power detail

Power Fan Inline Supply Model No Type Status Sensor Status PS1 PWR-C45-1300ACV AC 1300W good good good PS2 none --

Power supplies needed by system1 Power supplies currently available : 1

Power Summary Maximum (in Watts) Used Available System Power (12V) 480 1000 Inline Power (-50V) 138 800 Backplane Power (3.3V) 0 0 Total 618 (not to exceed Total Maximum Available = 1300)

Module Inline Power Summary (Watts) (12V -> -48V on board conversion) Maximum Mod Used Available --- 1 128 158 ---

Watts Used of System Power (12V) Mod Model currently out of reset in reset 1 WS-X4013+TS 330 330 330 2 WS-X4548-GB-RJ45V 60 60 20 3 WS-X4548-GB-RJ45V 60 60 20 -- Fan Tray 30 -- -- Total 480 450 370

Watts used of Chassis Inline Power (-50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 2 WS-X4548-GB-RJ45V 138 123 73 65 89 3 WS-X4548-GB-RJ45V 0 0 22 20 89 Total 138 123 95 85

Watts used of Module Inline Power (12V -> -50V) Inline Power Admin Inline Power Oper Mod Model PS Device PS Device Efficiency 1 WS-X4013+TS 128 128 64 64 100

Page 344 of the Cisco Systems 4500 user manual — Configuring Power over Ethernet
Page 344 · click to enlarge
Page 344

Chapter 11 Configuring Power over Ethernet Displaying the PoE Consumed by a Module

Switch# show power inline g1/1 Module 1 Inline Power Supply: Available:158(w) Used:128(w) Remaining:30(w)

Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi1/1 auto on 10.3 10.3 CNU Platform 3

Interface AdminPowerMax AdminConsumption (Watts) (Watts)

Gi1/1 15.4 15.4

switch# show power inline g2/1 Chassis Inline Power Supply: Available:800(w) Used:138(w) Remaining:662(w)

Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi2/1 auto on 11.5 10.2 CNU Platform n/a

Interface AdminPowerMax AdminConsumption (Watts) (Watts)

Gi2/1 15.4 15.4

Switch# show power inline module 1 Module 1 Inline Power Supply: Available:158(w) Used:128(w) Remaining:30(w)

Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi1/1 auto on 10.3 10.3 CNU Platform 3 Gi1/2 auto on 10.3 10.3 CNU Platform 3 Gi1/3 auto on 10.3 10.3 CNU Platform 3 Gi1/4 auto on 10.3 10.3 CNU Platform 3 Gi1/5 auto on 10.3 10.3 CNU Platform 3 Gi1/6 auto on 10.3 10.3 CNU Platform 3 Gi1/7 auto on 10.3 10.3 CNU Platform 3 Gi1/8 auto on 10.3 10.3 CNU Platform 3 Gi1/9 auto on 10.3 10.3 CNU Platform 3 Gi1/10 auto on 15.4 15.4 Cisco/Ieee PD 3 Gi1/11 auto on 10.3 10.3 CNU Platform 3 Gi1/12 auto on 10.3 10.3 CNU Platform 3

Totals12 on 128.2 128.2 switch#
Page 345 of the Cisco Systems 4500 user manual — Configuring Power over Ethernet
Page 345 · click to enlarge
Page 345

Chapter 11 Configuring Power over Ethernet

Displaying the PoE Consumed by a Module

switch# show power inline module 2 Chassis Inline Power Supply: Available:800(w) Used:138(w) Remaining:662(w) Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi2/1 auto on 11.5 10.2 CNU Platform n/a Gi2/2 auto on 11.5 10.2 CNU Platform n/a Gi2/3 auto on 11.5 10.2 CNU Platform n/a Gi2/4 auto on 11.5 10.2 CNU Platform n/a Gi2/5 auto off 0.0 0.0 n/a n/a Gi2/6 auto off 0.0 0.0 n/a n/a Gi2/7 auto off 0.0 0.0 n/a n/a Gi2/8 auto off 0.0 0.0 n/a n/a Gi2/9 auto on 11.5 10.2 CNU Platform 3 Gi2/10 auto on 11.5 10.2 CNU Platform n/a Gi2/11 auto on 11.5 10.2 CNU Platform n/a Gi2/12 auto on 11.5 10.2 CNU Platform n/a Gi2/13 auto on 11.5 10.2 CNU Platform 3 Gi2/14 auto on 11.5 10.2 CNU Platform 3 Gi2/15 auto on 11.5 10.2 CNU Platform 3 Gi2/16 auto on 11.5 10.2 CNU Platform 3 Gi2/17 auto off 0.0 0.0 n/a n/a Gi2/18 auto off 0.0 0.0 n/a n/a Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi2/19 auto off 0.0 0.0 n/a n/a Gi2/20 auto off 0.0 0.0 n/a n/a Gi2/21 auto off 0.0 0.0 n/a n/a Gi2/22 auto off 0.0 0.0 n/a n/a Gi2/23 auto off 0.0 0.0 n/a n/a Gi2/24 auto off 0.0 0.0 n/a n/a Gi2/25 auto off 0.0 0.0 n/a n/a Gi2/26 auto off 0.0 0.0 n/a n/a Gi2/27 auto off 0.0 0.0 n/a n/a Gi2/28 auto off 0.0 0.0 n/a n/a Gi2/29 auto off 0.0 0.0 n/a n/a Gi2/30 auto off 0.0 0.0 n/a n/a Gi2/31 auto off 0.0 0.0 n/a n/a Gi2/32 auto off 0.0 0.0 n/a n/a Gi2/33 auto off 0.0 0.0 n/a n/a Gi2/34 auto off 0.0 0.0 n/a n/a Gi2/35 auto off 0.0 0.0 n/a n/a Gi2/36 auto off 0.0 0.0 n/a n/a Gi2/37 auto off 0.0 0.0 n/a n/a Gi2/38 auto off 0.0 0.0 n/a n/a Gi2/39 auto off 0.0 0.0 n/a n/a Gi2/40 auto off 0.0 0.0 n/a n/a Interface Admin Oper Power(Watts) Device Class From PS To Device

Gi2/41 auto off 0.0 0.0 n/a n/a Gi2/42 auto off 0.0 0.0 n/a n/a Gi2/43 auto off 0.0 0.0 n/a n/a Gi2/44 auto off 0.0 0.0 n/a n/a

Page 346 of the Cisco Systems 4500 user manual — PoE Policing Modes
Page 346 · click to enlarge
Page 346

Chapter 11 Configuring Power over Ethernet PoE Policing and Monitoring

Gi2/45 auto off 0.0 0.0 n/a n/a Gi2/46 auto off 0.0 0.0 n/a n/a Gi2/47 auto off 0.0 0.0 n/a n/a Gi2/48 auto off 0.0 0.0 n/a n/a

Totals12 on 138.2 123.0 Switch#

PoE Policing and Monitoring

PoE policing protects a switch from faulty inline powered devices that may draw more current than they were designed for. When a device is connected to a port, a line card detects the type of device connected and allocates the appropriate amount of power. It sets a PoE policing threshold to a value 5 percent greater than the allocated power. If the device consumes more power than specified by the policing threshold for a more than 1 second, the port shuts down. Depending on the policing action configured, the port may then be error-disabled, or a message might be logged to the console and the port restarted.

PoE monitoring lets you display the true power consumption of inline powered devices attached to the switch, allowing you determine your actual power consumption.

This section includes these topics:

  • PoE Policing Modes, page 11-12
  • Configuring Power Policing on an Interface, page 11-13
  • Displaying Power Policing on an Interface, page 11-14
  • Configuring Errdisable Recovery, page 11-14

PoE Policing Modes

PoE policing comprises two modes, which determine the action to take on the interface after a port shuts down because of an inline-power policing violation:

  • Logging — An error message is logged to the console and the interface restarts; the device powers up.
  • Errdisable (Default) — In addition to logging an error message to the console, the interface is placed in an errdisable state so that the device attached to the port does not receive inline-power until you restart the port or configure an errdisable autorecovery mechanism.
Page 347 of the Cisco Systems 4500 user manual — Configuring Power Policing on an Interface
Page 347 · click to enlarge
Page 347

Chapter 11 Configuring Power over Ethernet

PoE Policing and Monitoring

Configuring Power Policing on an Interface

The default policing levels are determined by the discovery and power allocation methods (listed in order of priority):

  • Configured consumption values, in case any exist
  • CDP allocated values (for Cisco devices using CDP)
  • Allocated power from IEEE discovery (for devices using this mechanism)

To activate default PoE policing, enter the following:

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# int g2/1 Switch(config-if)# power inline police Switch(config-if)# end Switch# show power inline police g2/1 Available:800(w) Used:32(w) Remaining:768(w)

Interface Admin Oper Admin Oper Cutoff Oper State State Police Police Power Power Gi2/1 auto on errdisable ok 17.2 16.7

The default action for power policing is to set the port to errdisable; the power inline police command is equivalent to the power inline police action errdisable command, as the above example illustrates. The following example illustrates how to configure the logging policing action:

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# int g2/1 Switch(config-if)# power inline police action log Switch(config-if)# end Switch# show power inline police g2/1 Available:800(w) Used:32(w) Remaining:768(w)

Interface Admin Oper Admin Oper Cutoff Oper State State Police Police Power Power Gi2/1 auto on log ok 17.2 16.7

When a PD consumes more than its allocated power, the port shuts down and a warning message similar to the following appears on the console.

For the WS-X4648-GB-RJ45V, WS-X4648-GB-RJ45V+, and WS-X4748-UPOE+E:

*Sep 12 09:15:28.583: %C4K_ETHPORTMAN-3-INLINEPOWEROVERDRAWN: Inline powered device connected on port Gi3/25 exceeded its policed threshold.

For the WS-X4548-RJ45V+:

*Sep 26 09:23:21.355: %C4K_SWITCHMANAGER-3-INLINEPOWEROVERDRAWN: Inline powered device connected on port Gi2/1 exceeded its policed threshold.

For actions of Log type, the port restarts itself and the device reboots. In contrast, when the action is to set the port in an errdisable state, a log message similar to the following appears:

*Sep 26 09:30:20.463: %PM-4-ERR_DISABLE: inline-power error detected on Gi2/1, putting Gi2/1 in err-disable state

Switch# show power inline police g2/1 Available:800(w) Used:16(w) Remaining:784(w)

Page 348 of the Cisco Systems 4500 user manual — Configuring Errdisable Recovery
Page 348 · click to enlarge
Page 348

Chapter 11 Configuring Power over Ethernet PoE Policing and Monitoring

Interface Admin Oper Admin Oper Cutoff Oper State State Police Police Power Power Gi2/1 auto errdisable errdisable overdrawn 0.0 0.0

Displaying Power Policing on an Interface

You can display power policing on an interface, on a module, or for all the PoE-capable line cards in a chassis.

The following example shows output for the show power inline police command:

Switch# show power inline police Available:623(w) Used:6(w) Remaining:617(w)

Interface Admin Oper Admin Oper Cutoff Oper State State Police Police Power Power Gi2/1 auto off none n/a n/a 0.0 Gi2/2 auto on none n/a n/a 16.7 Gi2/3 auto off errdisable n/a 0.0 0.0 Gi2/4 auto on errdisable ok 16.6 11.4 Gi2/5 auto on log ok 16.6 11.2 Gi2/6 auto on errdisable overdrawn 0.0 0.0

The following table lists the interface and the status.

Interface Configuration State

Gi2/1 No PD connected, no policing configured.

Gi2/2 PD connected, no policing configured.

Gi2/3 No PD connected, policing configured (is enabled when PD is connected). Policing action is errdisable.

Gi2/4 PD connected, policing configured. Configured policing action is errdisable. Port is currently operating within policing limits.

Gi2/5 PD connected, policing configured. Configured policing action is log. Port is currently operating within policing limits.

Gi2/6 PD connected, policing configured. Configured policing action is errdisable. Port is currently in errdisable state as it has overdrawn its policed power level.

If you enter the show power inline command at the global level (show power inline police), the last line of the output under the Oper Power field displays the total of true inline power consumption of all devices connected to the switch.

Configuring Errdisable Recovery

By default, errdisable auto recovery for inline-power is disabled; when an interface is placed in an errdisable state because of an inline-power policing violation, it remains in that state. You must enter shut and then no shut on the affected interface to revive it.

Page 349 of the Cisco Systems 4500 user manual — 30 W 12.2(44)SG
Page 349 · click to enlarge
Page 349

Chapter 11 Configuring Power over Ethernet

Enhanced Power PoE Support on the E-Series Chassis

The errdisable autorecovery mechanism allows you to configure a timer for errdisable recovery so that when an interface enters errdisable state (after the timer expires), the interface returns from the errdisable state.

errdisable detection

By default, errdisable detection for inline-power is enabled, as the following example illustrates:

Switch# show errdisable detect ErrDisable Reason Detection Mode inline-power Enabled port

errdisable recovery

By default, errdisable recovery for inline-power is disabled. To enable errdisable recovery, enter the errdisable detect cause line-power command:

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# errdisable detect cause inline-power Switch(config)# end Switch# show errdisable recovery ErrDisable Reason Timer Status inline-power Enabled

Enhanced Power PoE Support on the E-Series Chassis

The WS-X4648-RJ45V-E, WS-X4648-RJ45V+E, and WS-X4548-RJ45V+ switching modules support IEEE 802.3af PoE as well as the Cisco proprietary Inline Power standard. With Cisco IOS Release 12.2(44)SG, the WS-X4648-RJ45V+E line card can also support the IEEE 802.3at standard with up to 30 W available per-port. The WS-X4648-RJ45V-E line card also supports up to 20 W. The WS-X4548-RJ45V+ switching module is supported with Cisco IOS Release 12.2(50)SG and can provide up to 30 W of inline power per-port. With Cisco IOS Release 15.0(2)SG, we support 60W on the WS-X4748-RJ45V+E linecard.

For these switching modules, the valid milliwatt ranges for the power inline command have been increased appropriately for the module, as the following table illustrates:

Line card Standard Max Power/Port Cisco IOS Release

WS-X4248-RJ45V IEEE 802.3af 15.4 W 12.2(18)EW

WS-X4548-RJ45V IEEE 802.3af 15.4 W 12.2(18)EW

WS-X4648-RJ45V-E IEEE 802.3af

20 W 12.2(44)SG

IEEE 802.3at

WS-X4648-RJ45V+E IEEE 802.3af

30 W 12.2(44)SG

IEEE 802.3at

Page 350 of the Cisco Systems 4500 user manual — 30 W 12.2(50)SG
Page 350 · click to enlarge
Page 350

Chapter 11 Configuring Power over Ethernet Enhanced Power PoE Support on the E-Series Chassis

Line card Standard Max Power/Port Cisco IOS Release

WS-X4548-RJ45V+ IEEE 802.3af

30 W 12.2(50)SG

IEEE 802.3at

WS-X4548-RJ45V+E IEEE 802.3af

30 W 12.2(50)SG

IEEE 802.3at

The default power inline configurations usually are sifficient; no additional configuration is required even for high power-consumption Cisco powered devices (for example, a Cisco AP1250 Wireless Access Point). When a high-power consumption device is attached to a port on a WS-X4648-RJ45V-E or WS-X4648-RJ45V+E line card, the switch and device negotiate power using CDP packets to automatically determine the extended amount of power needed by the device.

Depending on the deployment requirements and design, you specify a specific configuration with the power inline command.

The following example shows how to pre-allocate PoE allocation to 16500 mW for Gi 2/1, regardless of what is mandated either by the 802.3af class of the discovered device or by any CDP packet that is received from the powered device:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 2/1 Switch(config-if)# power inline static max 16500 Switch(config-if)# end Switch#

Page 351 of the Cisco Systems 4500 user manual — C H A P T E R
Page 351 · click to enlarge
Page 351

C H A P T E R

Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

This chapter describes how to install Network Assistant on the workstation and configure the Catalyst 4500 (or 4900) series switch to communicate with Network Assistant. (The term Catalyst 4500 series switch will be used to refer to both switch types in this chapter.) It also describes how to create communities and clusters, which are two technologies used by Network Assistant to manage a group of network devices, including the Catalyst 4500 series switch.

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

This chapter contains these topics:

  • About Network Assistant, page 12-2
  • Network Assistant-Related Parameters and Their Defaults, page 12-3
  • Network Assistant CLI Commands, page 12-3
  • Configuring Your Switch for Network Assistant, page 12-4
  • Managing a Network Using Community, page 12-6
  • Converting a Cluster into a Community, page 12-10
  • Managing a Network Using Cluster, page 12-11
  • Configuring Network Assistant in Community or Cluster Mode, page 12-13
Page 352 of the Cisco Systems 4500 user manual — Clustering Overview
Page 352 · click to enlarge
Page 352

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant About Network Assistant

About Network Assistant

Network Assistant is a free network management tool that allows you to configure and manage Catalyst 4500 series switches using a graphical user interface (GUI). Network Assistant works in both secure and unsecure environments. Network Assistant manages standalone devices or groups of devices or switches (in communities or clusters) from anywhere in your intranet. Using Network Assistant, you can perform multiple configuration tasks without having to remember commands.

Community Overview

A community is a device group that can contain up to 20 connected network devices. Network Assistant uses the Cisco Discovery Protocol (CDP) automatic discovery capability to find eligible network devices and to add them to a community. When a network device is added to a community, it becomes a member device. Network Assistant manages, configures, and monitors each member on an individual basis; therefore, each member must have an IP address assigned to it.

When you use communities, you need to have an HTTP server, and you need to configure an IP address on each switch.

Clustering Overview

A switch cluster is a set of up to 16 connected, cluster-capable Catalyst switches that are managed as a single entity. The switches in the cluster use the switch clustering technology so that you can configure and troubleshoot a group of different Catalyst 4500 series switch platforms through a single IP address.

Using switch clusters simplifies the management of multiple switches, regardless of their physical location and platform families.

In a switch cluster, one switch must be the cluster commander switch, and up to 15 other switches can be cluster member switches. The total number of switches in a cluster cannot exceed 16 switches. The cluster command switch is the single point of access used to configure, manage, and monitor the cluster member switches. Cluster members can belong to only one cluster at a time.

Page 353 of the Cisco Systems 4500 user manual — Command Functions
Page 353 · click to enlarge
Page 353

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Network Assistant-Related Parameters and Their Defaults

Network Assistant-Related Parameters and Their Defaults

Table 12-1 lists the Network Assistant-related configuration parameters on a Catalyst 4500 series switch.

Table 12-1 Network Assistant-Related Configuration on a Catalyst 4500 Series Switch

Parameters Default Value Recommended Value

IP address Depends on community or discovery option1

IP HTTP port number 80 Optional2

IP HTTPS port number 443 Optional3

IP HTTP server Disabled Enabled4

Cluster run Disabled Enabled5

1. You need to set an IP address in each switch for community device discovery and for the cluster commander.
2. Port number on the Network Assistant and the Catalyst 4500 series switch must match.
3. You can only change this value for a cluster of devices. Port number on the Network Assistant and on the Catalyst 4500 series switch must match. Value can be changed to any non-default number above 1024.
4. Required for Network Assistant to access the device.
5. Enabled only if you want to manage a cluster of devices.

Network Assistant CLI Commands

Table 12-2 describes the Network Assistant-related CLI commands.

Table 12-2 CLI Commands

Command Functions

[no] cluster enable Names the cluster.

[no] cluster run Enables clustering.

[no] ip http server Configures the HTTP on a switch.

[no] ip http port port_number Configures the HTTP port.

[no] ip domain-name domain_name Configures the domain on the switch.

[no] ip http secure-server Configures and enable HTTPS on a switch.

[no] ip http secure-port port_number

Configures the HTTPS port.

[no] ip http max-connections connection_number

Configures the maximum concurrent connections to the HTTP server.

Authentication Disabled Optional · User selectable

Page 354 of the Cisco Systems 4500 user manual — (Minimum) Required Configuration
Page 354 · click to enlarge
Page 354

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Configuring Your Switch for Network Assistant

Table 12-2 CLI Commands (continued)

Command Functions

[no] ip http timeout-policy idle idle_time life life_time requests requests

Configures the HTTPS port.

A idle value of 180 seconds is recommended.

A life value of 180 seconds is recommended.

The recommended maximum number of requests allowed is 25.

line vty Configures additional VTYs for use by Cisco Network Assistant.

show version Displays the Cisco IOS release.

show running-config Displays the switch configuration.

vtp domain Creates a VTP domain to manage VLANs.

vtp mode Sets the behavior for VTP management of the VLANs.

Configuring Your Switch for Network Assistant

This section includes the following topics:

  • (Minimum) Required Configuration, page 12-4
  • (Additional) Configuration Required to Use Community, page 12-5
  • (Additional) Configuration Required to Use Clustering, page 12-5

(Minimum) Required Configuration

If you use the default configuration, access the Catalyst 4500 series switch and enter the ip http server (for HTTP) or ip http secure-server (for HTTPS) global configuration command.

To configure the Catalyst 4500 series switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip http server

(HTTP only) Enables the HTTP server on the switch. By default, the HTTP server is disabled.

Enables the domain name on the switch to configure HTTPS.

Switch(config)# ip domain-name domain_name

Step 3 Switch(config)# ip http secure-server Enables the HTTPS server on the switch. By default, the HTTPS server is disabled.

Step 4 Switch(config)# ip http max-connections connection_number

Configures the maximum concurrent connections to the HTTP server.

A connection_number of 16 is recommended.

or

Page 355 of the Cisco Systems 4500 user manual — (Additional) Configuration Required to Use Clustering
Page 355 · click to enlarge
Page 355

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Configuring Your Switch for Network Assistant

Step 5 Switch(config)# ip http timeout-policy idle idle_time life life_time requests requests

Configures the HTTPS port.

The idle keyword specifies the maximum amount of time a connection can stay idle. A idle value of 180 seconds is recommended.

The life keyword specifies the maximum amount of time a connection can stay open since it was established. A life value of 180 seconds is recommended.

The requests keyword specifies the maximum amount of requests on a connection. The recommended maximum number of requests allowed is 25.

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies the configuration.

(Additional) Configuration Required to Use Community

If you plan to use community, define an IP address on each switch.

To configure a switch to use community, perform this task:

Step 1 Switch# configuration terminal Enters global configuration mode.

Step 2 Switch(config)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects an interface.

Step 3 Switch(config-if)# ip address ip_address address_mask

(Optional) Assigns an IP address to the Catalyst 4500 series.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies the configuration.

(Additional) Configuration Required to Use Clustering

If you plan to use clustering, enter the cluster run global configuration command on each device and enter the ip address interface configuration command on the cluster commander.

To configure a switch to use clustering, perform this task:

Page 356 of the Cisco Systems 4500 user manual — Managing a Network Using Community
Page 356 · click to enlarge
Page 356

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Managing a Network Using Community

Step 1 Switch# configuration terminal Enters global configuration mode.

Step 2 Switch(config)# cluster run Enables clustering.

Step 3 Switch(config)# cluster enable Names the cluster.

Step 4 Switch(config)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects an interface.

Step 5 Switch(config-if)# ip address ip_address address_mask

(Optional) Assigns an IP address to the Catalyst 4500 series switch cluster master.

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies the configuration.

Managing a Network Using Community

This section describes how to use communities to manage devices (including Catalyst 4500 series switches, routers, access points, and PIX firewalls) using the Network Assistant application.

Page 357 of the Cisco Systems 4500 user manual — Automatic Discovery of Candidates and Members
Page 357 · click to enlarge
Page 357

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Managing a Network Using Community

This section describes the guidelines and requirements you should understand before you create a community. This section contains the following topics:

  • Candidate and Member Requirements, page 12-7
  • Automatic Discovery of Candidates and Members, page 12-7
  • Community Names, page 12-8
  • Hostnames, page 12-8
  • Passwords, page 12-8
  • Access Modes in Network Assistant, page 12-9
  • Community Information, page 12-9
  • Adding Devices, page 12-9

Candidate and Member Requirements

Candidates are network devices that have IP addresses but are not part of a community. Members are network devices that are currently part of a community.

To join a community, a candidate must meet these requirements:

  • An IP address has been obtained.
  • Cisco Discovery Protocol (CDP) version 2 is enabled (the default) (if you want the device to be autodiscovered).
  • HTTP (or HTTPS) is enabled.

Automatic Discovery of Candidates and Members

Network Assistant forms a community using CDP to locate or discover all the available devices in the network. Beginning with the IP address for a starting device and the port numbers for HTTP (or HTTPS) protocols, Network Assistant uses CDP to compile a list of community candidates that neighbor the starting device. Network Assistant can discover candidate and member devices across multiple networks and VLANs as long as they have valid IP addresses.

See the “Candidate and Member Requirements” section on page 12-7 for a list of requirements that network devices must meet in order to be discovered.

Page 358 of the Cisco Systems 4500 user manual — Communication Protocols
Page 358 · click to enlarge
Page 358

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Managing a Network Using Community

Note PIX firewalls do not support the CDP, so they are not automatically shown as neighbors in the Topology view. They are shown only after you add them to a community with the Create Community or Modify Community window. To see a PIX firewall link to another community member, you must add the link manually by selecting ADD Link in the Topology popup menu.

You can edit the list of discovered devices to fit your needs and add them to the community. As each device is added to the community, its neighbors are discovered and added to the list of candidate devices. If Network Assistant fails to discover a device, you can add it manually through the IP management IP address.

Community Names

When you apply the community configuration information to the list of member devices, Network Assistant requests that you enter a name (or IP address) for the community. You need to assign a name to the community before you can manage it. Network Assistant saves the name to your PC.

The community name can consist of the characters 0 through 9, a through z and A through Z, with spaces allowed between the characters.

Hostnames

You do not need to assign a hostname to a starting device or a community member. However, we recommend that you do assign a hostname because Network Assistant does not assign one by default. If a discovered device does have a hostname, Network Assistant saves it to your PC as identifying information for that device along with its IP address, communication protocol, and designated protocol port.

Passwords

Although you do not need to assign a password to a device if it will become a community member, we recommend that you do so.

Community members can have different passwords.

Communication Protocols

Network Assistant uses the HTTP or HTTPS protocols to communicate with network devices. It attempts communication with HTTP or HTTPS when using CDP to discover candidate devices.

Page 359 of the Cisco Systems 4500 user manual — Adding Devices
Page 359 · click to enlarge
Page 359

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Managing a Network Using Community

Access Modes in Network Assistant

When Network Assistant is connected to a community or cluster, two access modes are available: read-write and read-only, depending on the password.

Community Information

Network Assistant saves all community configuration information and individual device information such as IP address, hostname, and communication protocol to your local PC. When Network Assistant connects to a community, it uses the locally saved data to rediscover the member devices.

If you attempt to use a different PC to manage an existing community, the member device information is not available. You need to create the community again and add the same member devices.

Adding Devices

You can add members to a community using these methods:

  • Use the Devices Found window on Network Assistant to add devices that you discovered to a new community.

– In the Devices Found window, select the candidate devices that you want to add.

To add more than one candidate, press Ctrl and make your choices, or press Shift and choose the first and last device in a range.

– Click Add.

  • Use the Modify Community window to add devices to an existing community.

– Choose Application > Communities to open the Communities window.

– In the Communities window, select the name of the community to which you want to add a device, and click Modify.

– To add a single device manually, enter the IP address for the desired device in the Modify Community window, and click Add.

– To discover candidate devices, enter the IP address for the starting device, and click Discover.

– Select a candidate device from the list, click Add, and click OK.

– To add more than one candidate, press Ctrl and make your choices, or press Shift and choose the first and last device in a range.

  • Add a device using the Topology view.

– If the Topology view is not displayed, choose View window> Topology from the feature bar.

– Right-click a candidate icon, and select Add to Community.

Candidates are cyan; members are green. To add more than one candidate, press Ctrl and left-click the candidates that you want to add.

When a community has 20 members, the Add to Community option is not available for that community. You must remove a member before adding a new one.

Page 360 of the Cisco Systems 4500 user manual — Converting a Cluster into a Community
Page 360 · click to enlarge
Page 360

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Converting a Cluster into a Community

Converting a Cluster into a Community

The Cluster Conversion wizard helps you convert a cluster into a community. When you complete the conversion, you can immediately manage the device group as a community. The benefits of managing a community is that the communication with the devices in a community is more secure (through multiple passwords and HTTPS) than in a cluster. Moreover, device availability is greater, and the range of devices that can be members is broader.

To launch the Cluster Conversion Wizard, follow these steps:

Step 1 Start Network Assistant and connect to an existing cluster through its commander IP address.

Step 2 In the feature bar, choose Configure > Cluster > Cluster Conversion Wizard.

You see the query “or you want to convert this cluster to a community?”

Step 3 Select Yes to proceed or No if you want to manually bring up the Cluster Conversion Wizard.

If you select Yes, the Welcome screen appears, providing information about clusters, communities, and their benefits.

A table appears listing the devices in the cluster starting with those that have no IP address and subnet mask. Be aware that all the devices in the cluster must have an IP address and subnet mask to be members of a community.

Step 4 In the IP Address column, enter an IP address for each device that does not have one.

Step 5 In the Subnet Mask column, click in the cell for each device that does not have a subnet mask and select one.

Step 6 Enter a name for the community.

Step 7 Click Finish to begin the conversion.

When the conversion completes, Network Assistant restarts and automatically connects to the newly created community.

Page 361 of the Cisco Systems 4500 user manual — Cluster Command Switch Requirements
Page 361 · click to enlarge
Page 361

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Managing a Network Using Cluster

Managing a Network Using Cluster

This section describes how to use clustering to create and manage Catalyst 4500 series switches using the standalone Network Assistant application or the command-line interface (CLI).

Use clustering to group the switches in your network. You must enter the cluster run command on each switch to be managed. The major advantage is that you can manage 16 devices with one IP address.

This section contains the following topics:

  • Understanding Switch Clusters, page 12-11
  • Using the CLI to Manage Switch Clusters, page 12-13

Understanding Switch Clusters

These sections describes these topics:

  • Cluster Command Switch Requirements, page 12-11
  • Network Assistant and VTY, page 12-12
  • Candidate Switch and Cluster Member Switch Requirements, page 12-12

Cluster Command Switch Requirements

A cluster command switch must meet these requirements:

  • Uses Cisco IOS Release 12.2(20)EWA or later.
  • Has an IP address.
  • Cisco Discovery Protocol (CDP) version 2 is enabled (the default).
  • Uses cluster-capable software and has clustering enabled.
  • IP HTTP (or HTTPS) server is enabled.
Page 362 of the Cisco Systems 4500 user manual — Candidate Switch and Cluster Member Switch Requirements
Page 362 · click to enlarge
Page 362

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Managing a Network Using Cluster

  • Has 16 VTY lines.
  • Is not a command or cluster member switch of another cluster.

Network Assistant and VTY

Network Assistant uses virtual terminal (VTY) lines to communicate with the cluster command device. Catalyst 4500 series switches have 5 VTY lines configured by default. Network Assistant can use an additional 8 lines. You should configure the maximum number of lines (or at least, 8 + 5 = 13) so that Network Assistant can communicate with the switch and not use VTY lines that might be needed for Telnet.

You can configure the Catalyst 4500 series switch to support an appropriate number of VTY lines with the line vty configuration command. For example, the line vty 6 15 command configures the switch to include 9 VTY lines.

Candidate Switch and Cluster Member Switch Requirements

Candidate switches are cluster-capable switches that are not part of a cluster. Cluster member switches are switches that are currently part of a switch cluster. Although not required, a candidate or cluster member switch can have its own IP address and password.

To join a cluster, a candidate switch must meet these requirements:

  • Running cluster-capable software and has clustering enabled.
  • Has CDP version 2 enabled.
  • Has HTTP server enabled.
  • Has 16 VTY lines.
  • Is not a command or cluster member switch of another cluster.
  • Is connected to the cluster command switch through at least one common VLAN.
Page 363 of the Cisco Systems 4500 user manual — Configuring Network Assistant on a Networked Switch in Community Mode
Page 363 · click to enlarge
Page 363

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Configuring Network Assistant in Community or Cluster Mode

We recommend that you configure the Catalyst 4500 candidate and cluster member switches with an SVI on the VLAN connection to the cluster command switch.

Using the CLI to Manage Switch Clusters

You can configure cluster member switches from the CLI by first logging in to the cluster command switch. Enter the rcommand user EXEC command and the cluster member switch number to start a Telnet session (through a console or Telnet connection) and to access the cluster member switch CLI. The command mode changes and the Cisco IOS commands operate as usual. Enter the exit privileged EXEC command on the cluster member switch to return to the command-switch CLI.

This example shows how to log in to member-switch 3 from the command-switch CLI:

If you do not know the member-switch number, enter the show cluster members privileged EXEC command on the cluster command switch. For more information about the rcommand command and all other cluster commands, refer to the Cisco IOS Command Reference.

The Telnet session accesses the member-switch CLI at the same privilege level as on the cluster command switch. The Cisco IOS commands will operate as usual. For instructions on configuring the switch for a Telnet session, see the “Accessing the CLI Through Telnet” section on page 2-2.

Configuring Network Assistant in Community or Cluster Mode

This section provides a detailed explanation of the CLI used to configure Network Assistant to work in a community or cluster. Network Assistant communicates with a Catalyst 4500 series switch by sending Cisco IOS commands over an HTTP (or HTTPS) connection.

This section includes the following topics:

  • Configuring Network Assistant on a Networked Switch in Community Mode, page 12-13
  • Configuring Network Assistant in a Networked Switch in Cluster Mode, page 12-17

Configuring Network Assistant on a Networked Switch in Community Mode

To configure Network Assistant on a networked switch in community mode, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# enable password name Enables password protection of configuration mode.

Step 3 Switch(config)# vtp domain name Creates a VTP domain to manage VLAN.

Step 4 Switch(config)# vlan vlan_id Creates a VLAN.

Step 5 Switch(config-vlan)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects the interface that connects to your CNA-enabled PC.

switch# rcommand 3

Page 364 of the Cisco Systems 4500 user manual — Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant
Page 364 · click to enlarge
Page 364

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Configuring Network Assistant in Community or Cluster Mode

Step 6 Switch(config-if)# switchport access vlan vlan_id

Enables the selected interface to be in the specified VLAN.

Step 7 Switch(config-if)# interface {vlan vlan_ID | slot/interface | Port-channel number}

Select the VLAN instance for configuration.

Step 8 Switch(config-if)# ip address ip_address Assigns an IP address to the SVI.

Step 9 Switch(config-if)# no shutdown Enables the interface.

Step 10 Switch(config-if)# ip http server Starts the HTTP server so that Network Assistant can talk to the switch.

Step 11 Switch(config)# ip domain-name domain_name Enables the domain name on the switch to configure HTTPS.

Step 12 Switch(config)# ip http secure-server Enables the HTTPS server on the switch. By default, the HTTPS server is disabled.

Step 13 Switch(config)# ip http max-connections connection_number

Configures the maximum concurrent connections to the HTTP server.

A connection_number of 16 is recommended.

Step 14 Switch(config)# ip http timeout-policy idle idle_time life life_time requests requests

Configures the HTTPS port.

The idle keyword specifies the maximum amount of time a connection can stay idle. A idle value of 180 seconds is recommended.

The life keyword specifies the maximum amount of time a connection can stay open since it was established. A life value of 180 seconds is recommended.

The requests keyword specifies the maximum number of requests on a connection. A requests value of 25 recommended.

Step 15 Switch(config-if)# ip http secure-server (Optional) Enables the switch to accept HTTPS connections from Network Assistant.

Step 16 Switch(config)# ip route a.b.c Establishes the route to the default router, usually supplied by the local Internet provider.

Step 17 Switch(config)# line con 0 Selects the console port to perform the configuration.

Step 18 Switch(config-line)# exec-timeout x y Configures an automatic session logout if no keyboard input or output is displayed on the terminal.

Step 19 Switch(config-line)# password password Specifies a password for the console port.

Step 20 Switch(config-line)# login Allows login to the console port.

Step 21 Switch(config-line)# line vty x y Creates additional VTY lines for CNA to access the switch.

Step 22 Switch(config-line)# password password Specifies a password for the switch.

Step 23 Switch(config-line)# login Allows login to the switch.

Step 24 Switch(config-line)# line vty x y Creates additional VTY lines for CNA to access the switch.

Step 25 Switch(config-line)# password password Specifies a password for the switch.

Step 26 Switch(config-line)# login Allows login to the switch.

Page 365 of the Cisco Systems 4500 user manual — Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant
Page 365 · click to enlarge
Page 365

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Configuring Network Assistant in Community or Cluster Mode

Step 27 Switch(config-line)# end Returns to privileged EXEC mode.

Step 28 Switch# show running-config Verifies the configuration.

This example shows how to configure Network Assistant on a networked switch in community mode: Switch# configure terminal Switch(config)# vtp domain cnadoc Changing VTP domain name from cisco to cnadoc Switch(config)# vlan 2 Switch(config-vlan)# exit Switch(config)# interface GigabitEthernet 2/1 Switch(config-if)# switchport access vlan 2 Switch(config-if)# exit Switch(config)# interface vlan 2 Switch(config-if)# ip address 123.123.123.1 255.255.255.0 Switch(config-if)# no shutdown Switch(config-if)# exit Switch(config)# ip http server Switch(config)# ip domain-name cisco.com Switch(config)# ip http secure-server Switch(config)# ip http max-connections 16 Switch(config)# ip http timeout-policy idle 180 life 180 requests 25 Switch(config)# ip route 0.0.0.0 0.0.0.0 123.123.123.2 Switch(config)# line con 0 Switch(config-line)# exec-timeout 0 0 Switch(config-line)# password keepout Switch(config-line)# login Switch(config-line)# line vty 5 15 Switch(config-line)# password keepout Switch(config-line)# login Switch(config-line)# line vty 5 15 Switch(config-line)# end Switch# show running-config Building configuration...

Current configuration : 1426 bytes ! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption service compress-config ! hostname Switch ! boot-start-marker boot-end-marker ! enable password cna ! no aaa new-model ip subnet-zero ip domain-name cisco.com! vtp domain cnadoc vtp mode transparent ! crypto pki trustpoint TP-self-signed-913087 enrollment selfsigned

Page 366 of the Cisco Systems 4500 user manual — Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant
Page 366 · click to enlarge
Page 366

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Configuring Network Assistant in Community or Cluster Mode

subject-name cn=IOS-Self-Signed-Certificate-913087 revocation-check none rsakeypair TP-self-signed-913087 !! crypto pki certificate chain TP-self-signed-913087 certificate self-signed 01 3082028E 308201F7 A0030201 02020101 300D0609 2A864886 F70D0101 04050030 52312B30 29060355 04031322 494F532D 53656C66 2D536967 6E65642D 43657274 69666963 6174652D 39313330 38373123 30210609 2A864886 F70D0109 02161456 61646572 2D343531 302E6369 73636F2E 636F6D30 1E170D30 36303432 30323332 3435305A 170D3230 30313031 30303030 30305A30 52312B30 29060355 04031322 494F532D 53656C66 2D536967 6E65642D 43657274 69666963 6174652D 39313330 38373123 30210609 2A864886 F70D0109 02161456 61646572 2D343531 302E6369 73636F2E 636F6D30 819F300D 06092A86 4886F70D 01010105 0003818D 00308189 02818100 F2C86FEA 49C37856 D1FA7CB2 9AFF748C DD443295 F6EC900A E83CDA8E FF8F9367 0A1E7A20 C0D3919F 0BAC2113 5EE37525 94CF24CF 7B313C01 BF177A73 494B1096 B4D24729 E087B39C E44ED9F3 FCCD04BB 4AD3C6BF 66E0902D E234D08F E6F6C001 BAC80854 D4668160 9299FC73 C14A33F3 51A17BF5 8C0BEA07 3AC03D84 889F2661 02030100 01A37430 72300F06 03551D13 0101FF04 05300301 01FF301F 0603551D 11041830 16821456 61646572 2D343531 302E6369 73636F2E 636F6D30 1F060355 1D230418 30168014 BB013B0D 00391D79 B628F2B3 74FC62B4 077AD908 301D0603 551D0E04 160414BB 013B0D00 391D79B6 28F2B374 FC62B407 7AD90830 0D06092A 864886F7 0D010104 05000381 81002963 26762EFA C52BA4B3 6E641A9D 742CE404 E45FECB1 B5BD2E74 6F682476 A7C3DAA5 94393AE3 AA103B6E 5974F81B 09DF16AE 7F9AE67C 5CB3D5B1 B945A5F3 36A8CC8C 8F142364 F849344D 5AE36410 51182EB9 24A9330B 3583E1A3 79151470 D304C157 3417E240 52BE2A91 FC7BBEDE 562BEDAD E6C46D9A F7FF3148 4CE9CEE1 5B17 quit ! ! ! power redundancy-mode redundant no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! vlan 2 ! interface GigabitEthernet1/1 switchport access vlan 2 ! interface GigabitEthernet1/2 ! interface GigabitEthernet1/3 ! interface GigabitEthernet1/4 ! interface GigabitEthernet1/5 ! interface GigabitEthernet1/6 ! interface GigabitEthernet1/7 ! interface GigabitEthernet1/8 ! interface GigabitEthernet1/9 ! interface GigabitEthernet1/10 ! interface GigabitEthernet1/11 ! interface GigabitEthernet1/12

Page 367 of the Cisco Systems 4500 user manual — Configuring Network Assistant in a Networked Switch in Cluster Mode
Page 367 · click to enlarge
Page 367

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Configuring Network Assistant in Community or Cluster Mode

! interface GigabitEthernet1/13 ! interface GigabitEthernet1/14 ! interface GigabitEthernet1/15 ! interface GigabitEthernet1/16 ! interface GigabitEthernet1/17 ! interface GigabitEthernet1/18 ! interface GigabitEthernet1/19 ! interface GigabitEthernet1/20 ! interface Vlan1 no ip address ! interface Vlan2 ip address 123.123.123.1 255.255.255.0 ! ip route 0.0.0.0 0.0.0.0 123.123.123.2 ip http server ip http secure-server ip http max-connections 16 ip http timeout-policy idle 180 life 180 requests 25 ! line con 0 password cna login stopbits 1 line vty 0 4 password cna login line vty 5 15 password cna login ! ! end

Configuring Network Assistant in a Networked Switch in Cluster Mode

To configure Network Assistant on a networked switch in cluster mode, perform this task on the switch:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# enable password name Enables password protection of configuration mode.

Step 3 Switch(config)# vtp domain name Creates a VTP domain to manage VLANs and names.

Step 4 Switch(config)# cluster run Launches the cluster on the cluster commander.

Step 5 Switch(config)# cluster enable cluster_name Makes the switch the cluster commander.

Step 6 Switch(config)# vlan vlan_id Creates a VLAN.

Switch#

Page 368 of the Cisco Systems 4500 user manual — Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant
Page 368 · click to enlarge
Page 368

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Configuring Network Assistant in Community or Cluster Mode

Step 7 Switch(config-vlan)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects the interface that connects to your CNA-enabled PC.

Step 8 Switch(config-if)# switchport access vlan vlan_id

Enables the physical port to be in the specified VLAN.

Step 9 Switch(config-if)# interface {vlan vlan_ID | slot/interface | Port-channel number}

Select the VLAN instance for configuration.

Step 10 Switch(config-if)# ip address ip_address Assigns an IP address to the SVI.

Step 11 Switch(config-if)# no shut Enables the interface.

Step 12 Switch(config-if)# ip http server Starts the HTTP server so that Network Assistant can talk to the switch.

Step 13 Switch(config)# ip http secure-server (Optional) Enables the switch to accept HTTPS connections from Network Assistant.

Step 14 Switch(config)# ip route a.b.c Establishes the route to the default router, usually supplied by the local Internet provider.

Step 15 Switch(config)# line con 0 Selects the console port to perform the configuration.

Step 16 Switch(config-line)# exec-timeout x y Configures an automatic session logout if no keyboard input or output is displayed on the terminal.

Step 17 Switch(config-line)# password password Specifies a password for the console port.

Step 18 Switch(config-line)# login Allows login to the console port.

Step 19 Switch(config-line)# line vty x y Creates additional VTY lines for CNA to access the switch.

Step 20 Switch(config-line)# password password Specifies a password for the switch.

Step 21 Switch(config-line)# login Allows login to the switch.

Step 22 Switch(config-line)# line vty x y Creates additional VTY lines for CNA to access the switch.

Step 23 Switch(config-line)# password password Specifies a password for the switch.

Step 24 Switch(config-line)# login Allows login to the switch.

Step 25 Switch(config-line)# end Returns to privileged EXEC mode.

Step 26 Switch# show running-config| include http Verifies that the HTTP server is enabled.

This example shows how to configure Network Assistant on a networked switch in cluster mode: Switch# configure terminal Switch(config)# vtp domain cnadoc Switch(config)# cluster run Switch(config)# cluster enable cnadoc Switch(config)# vlan 10 Switch(config-vlan)# interface GigabitEthernet 2/1 Switch(config-if)# switchport access vlan 10 Switch(config-if)# interface vlan10 Switch(config-if)# ip address aa.bb.cc.dd Switch(config-if)# no shut Switch(config-if)# ip http server Switch(config-if)# ip http secure-server Switch(config)# ip route 0.0.0.0 0.0.0.0 123.123.123.2

Page 369 of the Cisco Systems 4500 user manual — Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant
Page 369 · click to enlarge
Page 369

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant

Configuring Network Assistant in Community or Cluster Mode

Switch(config)# line con 0 Switch(config-line)# exec-timeout 0 0 Switch(config-line)# password keepout Switch(config-line)# login Switch(config-line)# line vty 5 15 Switch(config-line)# password keepout Switch(config-line)# login Switch(config-line)# line vty 5 15 Switch(config-line)# end Switch# show running-config Building configuration...

Current configuration : 1469 bytes ! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption service compress-config ! hostname Switch ! boot-start-marker boot-end-marker ! enable password cna ! no aaa new-model ip subnet-zero ! vtp domain cnadoc vtp mode transparent cluster run cluster enable cnadoccluster 0 ! power redundancy-mode redundant no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! vlan 2 ! interface GigabitEthernet1/1 switchport access vlan 2 ! interface GigabitEthernet1/2 ! interface GigabitEthernet1/3 ! interface GigabitEthernet1/4 ! interface GigabitEthernet1/5 ! interface GigabitEthernet1/6 ! interface GigabitEthernet1/7 !

Page 370 of the Cisco Systems 4500 user manual — Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant
Page 370 · click to enlarge
Page 370

Chapter 12 Configuring the Catalyst 4500 Series Switch with Cisco Network Assistant Configuring Network Assistant in Community or Cluster Mode

interface GigabitEthernet1/8 ! interface GigabitEthernet1/9 ! interface GigabitEthernet1/10 ! interface GigabitEthernet1/11 ! interface GigabitEthernet1/12 ! interface GigabitEthernet1/13 ! interface GigabitEthernet1/14 ! interface GigabitEthernet1/15 ! interface GigabitEthernet1/16 ! interface GigabitEthernet1/17 ! interface GigabitEthernet1/18 ! interface GigabitEthernet1/19 ! interface GigabitEthernet1/20 ! interface Vlan1 no ip address ! interface Vlan2 ip address 123.123.123.1 255.255.255.0 ! ip route 0.0.0.0 0.0.0.0 123.123.123.2 ip http server no ip http secure-server ! ! ! line con 0

Switch#

Page 371 of the Cisco Systems 4500 user manual — About VLANs
Page 371 · click to enlarge
Page 371

C H A P T E R

Configuring VLANs, VTP, and VMPS

This chapter describes VLANs on Catalyst 4500 series switches. It also describes how to enable the VLAN Trunking Protocol (VTP) and to configure the Catalyst 4500 series switch as a VMPS client.

This chapter includes the following major sections:

  • VLANs, page 13-1
  • VLAN Trunking Protocol, page 13-7
  • VLAN Membership Policy Server, page 13-20

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

VLANs

This section includes the following major subsections:

  • About VLANs, page 13-1
  • VLAN Configuration Guidelines and Restrictions, page 13-3
  • VLAN Default Configuration, page 13-4
  • Configuring VLANs, page 13-5

About VLANs

A VLAN is a group of devices on one or more LANs that are configured to communicate as if they were attached to the same wire, when in fact they are located on a number of different LAN segments. Because VLANs are based on logical instead of physical connections, they are extremely flexible.

Page 372 of the Cisco Systems 4500 user manual — VLAN
Page 372 · click to enlarge
Page 372

Chapter 13 Configuring VLANs, VTP, and VMPS VLANs

VLANs define broadcast domains in a Layer 2 network. A broadcast domain is the set of all devices that receives broadcast frames originating from any device within the set. Broadcast domains are typically bounded by switches because switches do not forward broadcast frames. Layer 2 switches create broadcast domains based on the configuration of the switch. Switches are multiport bridges that allow you to create multiple broadcast domains. Each broadcast domain is like a distinct virtual bridge within a switch.

You can define one or many virtual bridges within a switch. Each virtual bridge you create in the switch defines a new broadcast domain (VLAN). Traffic cannot pass directly to another VLAN (between broadcast domains) within the switch or between two switches. To interconnect two different VLANs, you must use switches or Layer 3 switches. See the “About Layer 3 Interfaces” section on page 30-1 for information on inter-VLAN routing on Catalyst 4500 series switches.

Figure 13-1 shows an example of three VLANs that create logically defined networks.

Figure 13-1 Sample VLANs

VLAN

VLAN

VLAN

VLANs are often associated with IP subnetworks. For example, all of the end stations in a particular IP subnet belong to the same VLAN. Traffic between VLANs must be routed. You must assign LAN interface VLAN membership on an interface-by-interface basis (termed interface-based or static VLAN membership).

You can set the following parameters when you create a VLAN in the management domain:

  • VLAN number
  • VLAN name
  • VLAN type
Show 8 more labels / short text on this page
Engineering · Marketing · Accounting · Cisco router · Floor 3 · Fast Ethernet · Floor 2 · Floor 1
Page 373 of the Cisco Systems 4500 user manual — VLAN Ranges
Page 373 · click to enlarge
Page 373

Chapter 13 Configuring VLANs, VTP, and VMPS

  • VLAN state (active or suspended)
  • Maximum transmission unit (MTU) for the VLAN
  • Security Association Identifier (SAID)
  • VLAN number to use when translating from one VLAN type to another

VLAN Configuration Guidelines and Restrictions

Follow these guidelines and restrictions when creating and modifying VLANs in your network:

  • Before creating a VLAN, put the Catalyst 4500 series switch in VTP server mode or VTP transparent mode. If the Catalyst 4500 series switch is a VTP server, you must define a VTP domain. For information on configuring VTP, see the “VLAN Trunking Protocol” section on page 13-7 .
  • You cannot use the end command in VLAN database mode.
  • You cannot use Ctrl-Z to exit VLAN database mode.
  • If a Catalyst 4948 switch running MSTP and configured with all possible VLANs (4094) is in the path of two HSRP peers with the timeout set below 500 ms, HSRP flaps.

Workarounds:

– Use fewer VLANs.

– Set the timers greater than 600 ms.

– Enter the no igmp snooping (globally) and access-list hardware capture mode VLAN commands

VLAN Ranges

With Cisco IOS Release 12.2(25)EWA and later, Catalyst 4500 series switches support 4096 VLANs in compliance with the IEEE 802.1Q standard. These VLANs are organized into three ranges: reserved, normal, and extended.

Some of these VLANs are propagated to other switches in the network when you use the VLAN Trunking Protocol (VTP). The extended-range VLANs are not propagated, so you must configure extended-range VLANs manually on each network device.

VLANs

Page 374 of the Cisco Systems 4500 user manual — VLAN Default Configuration
Page 374 · click to enlarge
Page 374

Chapter 13 Configuring VLANs, VTP, and VMPS VLANs

Table 13-1 describes the uses for VLAN ranges.

Table 13-1 VLAN Ranges

VLANs Range Usage

0, 4095 Reserved For system use only. You cannot see or use these VLANs. —

1 Normal Cisco default. You cannot delete this VLAN. Yes

2–1001 Normal Used for Ethernet VLANs; you can create, use, and delete these VLANs.

1002–1005 Normal Cisco defaults for FDDI and Token Ring. You cannot delete VLANs 1002–1005.

1006–4094 Extended For Ethernet VLANs only. When configuring extended-range VLANs, note the following:

  • Layer 3 ports and some software features require internal VLANs. Internal VLANs are allocated from 1006 and up. You cannot use a VLAN that has been allocated for such use. To display the VLANs used internally, enter the show vlan internal usage command.
  • Switches running Catalyst product family software do not support configuration of VLANs 1006–1024. If you configure VLANs 1006–1024, ensure that the VLANs do not extend to any switches running Catalyst product family software.
  • You must enable the extended system ID to use extended range VLANs.

Configurable Normal-Range VLAN Parameters

You can configure the following parameters for VLANs 2 through 1001:

  • VLAN name
  • VLAN type
  • VLAN state (active or suspended)
  • SAID
  • STP type for VLANs

VLAN Default Configuration

Table 13-2 shows the default VLAN configuration values.

Show 4 more labels / short text on this page
Propagated by VTP · Yes · Yes · No
Page 375 of the Cisco Systems 4500 user manual — Configuring VLANs
Page 375 · click to enlarge
Page 375

Chapter 13 Configuring VLANs, VTP, and VMPS

Table 13-2 Ethernet VLAN Defaults and Ranges

Parameter Default Valid Values

VLAN ID 1 1–4094

VLAN name VLANx, where x is a number assigned by the software.

802.10 SAID 100,001 1–4,294,967,294

MTU size 1500 1500–18,190

Translational bridge 1 1002 0–1005

Translational bridge 2 1003 0–1005

VLAN state active active; suspend; shutdown

Configuring VLANs

The following sections describe how to configure VLANs:

  • Configuring VLANs in Global Configuration Mode, page 13-6
  • Assigning a Layer 2 LAN Interface to a VLAN, page 13-7

VLANs · No range

Page 376 of the Cisco Systems 4500 user manual — Configuring VLANs in Global Configuration Mode
Page 376 · click to enlarge
Page 376

Chapter 13 Configuring VLANs, VTP, and VMPS VLANs

Configuring VLANs in Global Configuration Mode

If the switch is in VTP server or transparent mode (see the “VLAN Trunking Protocol” section on page 13-7), you can configure VLANs in global and VLAN configuration modes. When you configure VLANs in global and config-vlan configuration modes, the VLAN configuration is saved in the vlan.dat files, not the running-config or startup-config files. To display the VLAN configuration, enter the show vlan command.

If the switch is in VLAN transparent mode, use the copy running-config startup-config command to save the VLAN configuration to the startup-config file. After you save the running configuration as the startup configuration, the show running-config and show startup-config commands display the VLAN configuration.

You use the interface configuration command mode to define the port membership mode and add and remove ports from a VLAN. The results of these commands are written to the running-config file, and you can display the contents of the file by entering the show running-config command.

User-configured VLANs have unique IDs from 1 to 4094. To create a VLAN, enter the vlan command with an unused ID. To verify whether a particular ID is in use, enter the show vlan id ID command. To modify a VLAN, enter the vlan command for an existing VLAN.

See the “VLAN Default Configuration” section on page 13-4 for the list of default parameters that are assigned when you create a VLAN. If you do not use the media keyword when specifying the VLAN type, the VLAN is an Ethernet VLAN.

To create a VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vlan vlan_ID Switch(config-vlan)#

Adds an Ethernet VLAN.

Use the no keyword to delete a VLAN.

When the prompt shows Switch(config-vlan)#; you are in vlan-configuration mode. If you want to change any of the parameters for the newly created VLAN, use this mode.

Step 3 Switch(config-vlan)# end Returns to enable mode from vlan-configuration mode.

Step 4 Switch# show vlan [id | name] vlan_name

Verifies the VLAN configuration.

When you create or modify an Ethernet VLAN, note the following:

Page 377 of the Cisco Systems 4500 user manual — VLAN Trunking Protocol
Page 377 · click to enlarge
Page 377

Chapter 13 Configuring VLANs, VTP, and VMPS

  • Because Layer 3 ports and some software features require internal VLANs allocated from 1006 and up, configure extended-range VLANs starting with 4094 and work downward.
  • You can configure extended-range VLANs only in global configuration mode. You cannot configure extended-range VLANs in VLAN database mode.
  • Layer 3 ports and some software features use extended-range VLANs. If the VLAN you are trying to create or modify is being used by a Layer 3 port or a software feature, the switch displays a message and does not modify the VLAN configuration.
  • When you create VLANs with the VLAN configuration command, they are automatically added to the existing VTP domain; no action is required of the user.

This example shows how to create an Ethernet VLAN in global configuration mode and verify the configuration:

Switch# configure terminal Switch(config)# vlan 3 Switch(config-vlan)# end Switch# show vlan id 3 VLAN Name Status Ports 3 VLAN0003 active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 3 enet 100003 1500 - 0 0 Primary Secondary Type Interfaces Switch#

Assigning a Layer 2 LAN Interface to a VLAN

A VLAN created in a management domain remains unused until you assign one or more LAN interfaces to the VLAN.

To assign one or more LAN interfaces to a VLAN, complete the procedures in the “Configuring Ethernet Interfaces for Layer 2 Switching” section on page 15-5.

VLAN Trunking Protocol

This section describes the VLAN Trunking Protocol (VTP) on the Catalyst 4500 series switches, and includes the following major subsections:

  • About VTP, page 13-8
  • VTP Configuration Guidelines and Restrictions, page 13-12
  • VTP Default Configuration, page 13-13
  • Configuring VTP, page 13-14

VLAN Trunking Protocol

Page 378 of the Cisco Systems 4500 user manual — Understanding the VTP Domain
Page 378 · click to enlarge
Page 378

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Trunking Protocol

About VTP

VTP is a Layer 2 messaging protocol that maintains VLAN configuration consistency by managing the addition, deletion, and renaming of VLANs within a VTP domain. A VTP domain (also called a VLAN management domain) is made up of one or more network devices that share the same VTP domain name and that are interconnected with trunks. VTP minimizes misconfigurations and configuration inconsistencies that can result in a number of problems, such as duplicate VLAN names, incorrect VLAN-type specifications, and security violations.

Before you create VLANs, you must decide whether you want to use VTP in your network. With VTP, you can make configuration changes centrally on one or more network devices and have those changes automatically communicated to all the other network devices in the network. For details on configuring VLANs, see the “VLANs” section on page 13-1

These sections describe how VTP works:

  • Understanding the VTP Domain, page 13-8
  • Understanding VTP Modes, page 13-9
  • Understanding VTP Advertisements, page 13-9
  • Understanding VTP Versions, page 13-9
  • Understanding VTP Pruning, page 13-11

Understanding the VTP Domain

A VTP domain is made up of one or more interconnected network devices that share the same VTP domain name. A network device can be configured to be in only one VTP domain. You make global VLAN configuration changes for the domain using either the command-line interface (CLI) or Simple Network Management Protocol (SNMP).

By default, the Catalyst 4500 series switch is in VTP server mode and the domain is set to NULL until the switch receives an advertisement for a domain over a trunk link or you configure a management domain. You cannot create or modify VLANs on a VTP server until the management domain name is specified or learned.

If the switch receives a VTP advertisement over a trunk link, it inherits the management domain name and the VTP configuration revision number. The switch ignores advertisements with a different management domain name or an earlier configuration revision number.

If you configure the switch as VTP transparent, you can create and modify VLANs, but the changes affect only the individual switch.

When you make a change to the VLAN configuration on a VTP server, the change is propagated to all network devices in the VTP domain. VTP advertisements are transmitted out all Inter-Switch Link (ISL) and IEEE 802.1Q trunk connections.

VTP maps VLANs dynamically across multiple LAN types with unique names and internal index associations. Mapping eliminates unnecessary device administration for network administrators.

Page 379 of the Cisco Systems 4500 user manual — VTP Version 2
Page 379 · click to enlarge
Page 379

Chapter 13 Configuring VLANs, VTP, and VMPS

Understanding VTP Modes

You can configure a Catalyst 4500 series switch to operate in any one of these VTP modes:

  • Server—In VTP server mode, you can create, modify, and delete VLANs and specify other configuration parameters (such as VTP version and VTP pruning) for the entire VTP domain. VTP servers advertise their VLAN configuration to other network devices in the same VTP domain and synchronize their VLAN configuration with other network devices based on advertisements received over trunk links. VTP server is the default mode.
  • Client—VTP clients behave the same way as VTP servers, but you cannot create, change, or delete VLANs on a VTP client.
  • Transparent—VTP transparent network devices do not participate in VTP. A VTP transparent network device does not advertise its VLAN configuration and does not synchronize its VLAN configuration based on received advertisements. However, in VTP version 2, transparent network devices do forward VTP advertisements that they receive on their trunking LAN interfaces.
  • Off—In VTP off mode, a network device functions in the same manner as a VTP transparent device except that it does not forward VTP advertisements.

Understanding VTP Advertisements

Each network device in the VTP domain sends periodic advertisements out each trunking LAN interface to a reserved multicast address. VTP advertisements are received by neighboring network devices, which update their VTP and VLAN configurations as necessary.

The following global configuration information is distributed in VTP advertisements:

  • VLAN IDs (ISL and 802.1Q)
  • Emulated LAN names (for ATM LANE)
  • 802.10 SAID values (FDDI)
  • VTP domain name
  • VTP configuration revision number
  • VLAN configuration, including maximum transmission unit (MTU) size for each VLAN
  • Frame format

Understanding VTP Versions

VTP Version 2

If you use VTP in your network, you must decide whether to use VTP version 2 or version 3.

VLAN Trunking Protocol

Page 380 of the Cisco Systems 4500 user manual — VTP Version 3
Page 380 · click to enlarge
Page 380

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Trunking Protocol

VTP version 2 supports the following features, which are not supported in version 1:

  • Token Ring support—Supports Token Ring LAN switching and VLANs (TrBRF and TrCRF).
  • Unrecognized Type-Length-Value (TLV) support—A VTP server or client propagates configuration changes to its other trunks, even for TLVs it is not able to parse. The unrecognized TLV is saved in NVRAM.
  • Version-dependent transparent mode—In VTP version 1 and version 2, a VTP transparent network device forwards VTP messages in transparent mode without checking the version.
  • Consistency checks—In VTP version 2, VLAN consistency checks (such as VLAN names and values) are performed only when you enter new information through the CLI or SNMP. Consistency checks are not performed when new information is obtained from a VTP message or when information is read from NVRAM. If the digest on a received VTP message is correct, its information is accepted without consistency checks.

VTP Version 3

VTP version 3 supports the following features not supported in version 1 or version 2:

  • Hidden password support—Supports the option of configuring the password as hidden or secret .

When the hidden keyword is specified, that password must be reentered if a takeover command is issued in the domain. The secret key generated from the password string is saved in the const_nvram:vlan.dat file. When configured with this option, the password does not appear in plain text in the configuration. Instead, the secret key associated with the password is saved in hexadecimal format in the running configuration. If the hidden keyword is not specified, the password is saved in clear text in the const_nvram:vlan.dat file as in VTP version 1 and VTP version 2.

When the secret keyword is specified, the password secret key can be directly configured.

  • Extended VLAN database propagation support—In VTP version 2, VLAN configuration information is propagated only for VLANs numbered 1 to 1000. In VTP version 3, information also is propagated for extended-range VLANs (VLANs numbered 1006 to 4094).
  • On Catalyst 4500 series switches running VTP version 1, VTP version 2, or VTP version 3, default VLANs 1 and 1002 to 1005 cannot be modified.
  • Propagation of any database in a domain—In addition to propagating VLAN database information, VTP can propagate Multiple Spanning Tree (MST) protocol database information.
  • Disabling VTP—When VTP is disabled on a trunking port, it applies to all VTP instances on that port. When VTP is disabled globally, the setting applies to all the trunking ports in the system.
  • In VTP version 1 and VTP version 2, the role of a VTP server is to back up the database to NVRAM and to allow the administrator to change database information. VTP version 3 introduces the roles of VTP primary server and VTP secondary server. A VTP primary server is used to update the
Page 381 of the Cisco Systems 4500 user manual — Understanding VTP Pruning
Page 381 · click to enlarge
Page 381

Chapter 13 Configuring VLANs, VTP, and VMPS

database information. The updates sent out are honored by all the devices in the system. A VTP secondary server can only back up to its NVRAM the VTP configuration received by using updates from the VTP primary server.

The status of primary and secondary servers is a runtime status and is not a configurable option. By default, all devices are initiated as secondary servers. Primary server status is needed only when database updates are needed, and is obtained when the administrator issues a takeover message in the domain. See the “Starting a Takeover” section on page 13-19.

Primary server status is lost upon reload of the device, or when switchover or domain parameters change. Secondary servers back up the configuration and continue to propagate it. Because of that, you may have a working VTP domain without any primary servers.

Understanding VTP Pruning

VTP pruning enhances network bandwidth use by reducing unnecessary flooded traffic, such as broadcast, multicast, and unicast packets. VTP pruning increases available bandwidth by restricting flooded traffic to those trunk links that the traffic must use to access the appropriate network devices. By default, VTP pruning is disabled.

For VTP pruning to be effective, all devices in the management domain must either support VTP pruning or, on devices that do not support VTP pruning, you must manually configure the VLANs allowed on trunks.

Figure 13-2 shows a switched network without VTP pruning enabled. Interface 1 on Switch 1 and Interface 2 on Switch 4 are assigned to the Red VLAN. A broadcast is sent from the host connected to Switch 1. Switch 1 floods the broadcast and every network device in the network receives it, even though Switches 3, 5, and 6 have no interfaces in the Red VLAN.

You can enable pruning globally on the Catalyst 4500 series switch (see the “Enabling VTP Pruning” section on page 13-15).

Figure 13-2 Flooding Traffic without VTP Pruning

Catalyst series switch 2

switch 3 Catalyst series

Figure 13-3 shows the same switched network with VTP pruning enabled. The broadcast traffic from Switch 1 is not forwarded to Switches 3, 5, and 6 because traffic for the Red VLAN has been pruned on the links indicated (Interface 5 on Switch 2 and Interface 4 on Switch 4).

Show 12 more labels / short text on this page
VLAN Trunking Protocol · Catalyst series · switch 4 · Interface 2 · Catalyst series · switch 5 · Red VLAN · Interface 1 · Catalyst series · Catalyst series · switch 6 · switch 1
Page 382 of the Cisco Systems 4500 user manual — VTP Configuration Guidelines and Restrictions
Page 382 · click to enlarge
Page 382

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Trunking Protocol

Figure 13-3 Flooding Traffic with VTP Pruning

Flooded traffic is pruned.

Switch 3 Switch 6 Switch 1

Enabling VTP pruning on a VTP server enables pruning for the entire management domain. VTP pruning takes effect several seconds after you enable it. By default, VLANs 2 through 1000 are eligible for pruning. VTP pruning does not prune traffic from pruning-ineligible VLANs. VLAN 1 is always ineligible for pruning; traffic from VLAN 1 cannot be pruned.

To configure VTP pruning on a trunking LAN interface, use the switchport trunk pruning vlan command. VTP pruning operates when a LAN interface is trunking. You can set VLAN pruning eligibility regardless of whether VTP pruning is enabled or disabled for the VTP domain, whether any given VLAN exists, and regardless of whether the LAN interface is currently trunking.

VTP Configuration Guidelines and Restrictions

Follow these guidelines and restrictions when implementing VTP in your network:

  • Supervisor engine redundancy does not support nondefault VLAN data file names or locations. Do not enter the vtp file file_name command on a switch that has a redundant supervisor engine.
  • Before installing a redundant supervisor engine, enter the no vtp file command to return to the default configuration.
  • When a VTP version 3 device on a trunk port receives messages from a VTP version 2 device, it sends a scaled-down version of the VLAN database on that particular trunk in a VTP version 2 format. A VTP version 3 device does not send out VTP version 2 formatted packets on a trunk port unless it first receives VTP version 2 packets on that trunk.
  • Even when a VTP version 3 device detects a VTP version 2 device on a trunk port, it continues to send VTP version 3 packets in addition to VTP version 2 packets, to allow co-existence of two kinds of neighbors off the trunk.
  • A VTP version 3 device does not accept configuration information from a VPT version 2 or version 1 device.
  • Unlike in VPT version 2, when VTP is configured to be version 3, this does not configure all the version-3-capable devices in the domain to start behaving as VPT version 3 systems.
  • When a VTP version 1 device, capable of version 2 or version 3, receives a VTP version 3 packet, the device is configured as a VTP version 2 device provided a VTP version 2 conflict does not exist.
  • Devices that are only VTP version 1 capable cannot interoperate with VTP version 3 devices.
Show 8 more labels / short text on this page
Switch 4 · Interface 2 · Interface 4 · Switch 2 · Red VLAN · Switch 5 · Interface 5 · Interface 1
Page 383 of the Cisco Systems 4500 user manual — Feature Default Value
Page 383 · click to enlarge
Page 383

Chapter 13 Configuring VLANs, VTP, and VMPS

  • In a Token Ring environment, you must enable VTP version 2 or version 3 for Token Ring VLAN switching to function properly.
  • Two VPT version 3 regions can only communicate in transparent mode over a VTP version 1 or VTP version 2 region.
  • All network devices in a VTP domain must run the same VTP version.
  • You must configure a password on each network device in the management domain when VTP is in secure mode.
  • A VTP version 2-capable network device can operate in the same VTP domain as a network device running VTP version 1 if VTP version 2 is disabled on the VTP version 2-capable network device (VTP version 2 is disabled by default).
  • Do not enable VTP version 2 on a network device unless all of the network devices in the same VTP domain are version 2-capable. When you enable VTP version 2 on a server, all of the version 2-capable network devices in the domain enable VTP version 2.
  • Enabling or disabling VTP pruning on a VTP server enables or disables VTP pruning for the entire management domain.
  • Configuring VLANs as eligible for pruning on a Catalyst 4500 series switch affects pruning eligibility for those VLANs on that switch only, not on all network devices in the VTP domain.
  • The VLAN database is saved in the NVRAM file in a format compliant with the VTP version running on the system. Since older images supporting only VTP version 2 do not recognize the VTP version 3 file format, the NVRAM VLAN database information is lost if the system is downgraded from a new image supporting VTP to one that does not.

VTP Default Configuration

Table 13-3 shows the default VTP configuration.

Table 13-3 VTP Default Configuration

Feature Default Value

VTP domain name Null

VTP version 2 enable state Version 2 is disabled

The default VTP mode for newly manufactured Catalyst 4500 supervisor engines, Catalyst 4900 series switches, and the Cisco ME 4924-10GE switch is transparent. Deleting vlan.dat or entering the erase cat4000_flash: command, and resetting the switch changes the VTP mode to server.

Show 4 more labels / short text on this page
VLAN Trunking Protocol · VTP mode Server · VTP password None · VTP pruning Disabled
Page 384 of the Cisco Systems 4500 user manual — Configuring a VTP Password
Page 384 · click to enlarge
Page 384

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Trunking Protocol

Configuring VTP

These sections describe how to configure VTP:

  • Configuring VTP Global Parameters, page 13-14
  • Configuring the VTP Mode, page 13-16
  • Starting a Takeover, page 13-19
  • Displaying VTP Statistics, page 13-19
  • Displaying VTP Devices in a Domain, page 13-20

Configuring VTP Global Parameters

These sections describe configuring the VTP global parameters:

  • Configuring a VTP Password, page 13-14
  • Enabling VTP Pruning, page 13-15
  • Enabling the VTP Version Number, page 13-15

Configuring a VTP Password

To configure the VTP global parameters, use these commands:

Switch(config)# vtp password password_string [hidden | secret]

Sets a password, which can be from 8 to 64 characters long, for the VTP domain.

In VTP version 3 the keywords hidden and secret are available.

  • If the hidden keyword is used, the secret key generated from the password string is saved in the const_nvram:vlan.dat file. If a takeover command is issued, that password must be reentered.
  • If the secret keyword is used, the password secret key can be directly configured. The secret password must contain 32 hexadecimal characters.

Switch(config)# no vtp password Clears the password.

This example shows one way to configure a VTP password in global configuration mode:

Switch# configure terminal Switch(config)# vtp password WATER Setting device VLAN database password to WATER. Switch#

Page 385 of the Cisco Systems 4500 user manual — Enabling the VTP Version Number
Page 385 · click to enlarge
Page 385

Chapter 13 Configuring VLANs, VTP, and VMPS

This example shows how to configure a VTP password in EXEC mode:

Switch# vtp password WATER Setting device VLAN database password to WATER. Switch#

This example shows how to configure a hidden password:

Switch# configure terminal Switch(config)# vtp password WATER hidden Generating the secret associated to the password. Switch(config)#

This example shows how the password WATER is displayed when it is configured with the hidden keyword.

Switch# show vtp password VTP Password: 89914640C8D90868B6A0D8103847A733 Switch#

Enabling VTP Pruning

To enable VTP pruning in the management domain, perform this task:

Step 1 Switch(config)# vtp pruning Enables VTP pruning in the management domain.

Step 2 Switch# show vtp status | include pruning (Optional) Verifies the configuration.

This example shows one way to enable VTP pruning in the management domain:

Switch# configure terminal Switch(config)# vtp pruning Pruning switched ON

This example shows how to enable VTP pruning in the management domain with any release:

Switch# vtp pruning Pruning switched ON

This example shows how to verify the configuration:

Switch# show vtp status | include Pruning VTP Pruning Mode: Enabled Switch#

For information about configuring prune eligibility, see the “Understanding VTP Pruning” section on page 13-11.

Enabling the VTP Version Number

VTP version 2 is disabled by default on VTP version-2-capable network devices. When you enable VTP version 2 on a network device, every VTP version-2-capable network device in the VTP domain enables version 2.

VLAN Trunking Protocol

Page 386 of the Cisco Systems 4500 user manual — Configuring the VTP Mode
Page 386 · click to enlarge
Page 386

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Trunking Protocol

To enable the VTP version, perform this task:

Step 1 Switch(config)# vtp version {1 | 2 | 3} Enables the VTP version.

Step 2 Switch# show vtp status | include {v1 | v2 | v3} (Optional) Verifies the configuration.

This example shows one way to enable VTP version 2:

Switch# configure terminal Switch(config)# vtp version 2 V2 mode enabled. Switch(config)#

This example shows how to enable VTP version 2 with any release:

Switch# vtp version 2 V2 mode enabled. Switch#

This example shows how to verify the configuration:

Switch# show vtp status | include V2 VTP V2 Mode: Enabled Switch#

Configuring the VTP Mode

To configure the VTP mode, perform this task:

Step 1 Switch(config)# vtp mode {client | server | transparent | off}

Configures the VTP mode.

Step 2 Switch(config)# vtp domain domain_name (Optional; for server mode only) Defines the VTP domain name, which can be up to 32 characters long. VTP server mode requires a domain name. If the switch has a trunk connection to a VTP domain, the switch learns the domain name from the VTP server in the domain.

Step 3 Switch(config)# end Exits VLAN configuration mode.

Step 4 Switch# show vtp status (Optional) Verifies the configuration.

Page 387 of the Cisco Systems 4500 user manual — Configuring VLANs, VTP, and VMPS
Page 387 · click to enlarge
Page 387

Chapter 13 Configuring VLANs, VTP, and VMPS

This example shows how to configure the switch as a VTP server:

Switch# configure terminal Switch(config)# vtp mode server Setting device to VTP SERVER mode. Switch(config)# vtp domain Lab_Network Setting VTP domain name to Lab_Network Switch(config)# end Switch#

This example shows how to configure the switch as a VTP client:

Switch# configure terminal Switch(config)# vtp mode client Setting device to VTP CLIENT mode. Switch(config)# end Switch#

This example shows how to disable VTP on the switch:

Switch# configure terminal Switch(config)# vtp mode transparent Setting device to VTP TRANSPARENT mode. Switch(config)# end Switch#

This example shows how to disable VTP on the switch and to disable VTP advertisement forwarding:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vtp mode off Setting device to VTP OFF mode. Switch(config)# end Switch#

This example shows an example of the VTP configuration parameters when the device is running VTP version 1:

Switch# show vtp status VTP Version capable : 1 to 3 VTP version running : 1 VTP Domain Name : Lab_Network VTP Pruning Mode : Enabled VTP Traps Generation : Disabled Device ID : 0016.9c6d.5300 Configuration last modified by 127.0.0.12 at 10-18-07 10:12:42 Local updater ID is 127.00.12 at 10-18-07 10:2:42

Feature VLAN: VTP Operating Mode : Server Maximum number of existing VLANs : 5 Configuration Revision : 1 MD5 digest : 0x92 0xF1 0xE8 0x52 0x2E ox5C 0x36 0x10 0x70 0x61 0xB8 0x24 0xB6 0x93 0x21 0x09 Switch#

VLAN Trunking Protocol

Page 388 of the Cisco Systems 4500 user manual — Configuring VLANs, VTP, and VMPS
Page 388 · click to enlarge
Page 388

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Trunking Protocol

This example shows an example of the VTP configuration parameters when the device is running VTP version 2:

Switch# show vtp status VTP Version capable : 1 to 3 VTP version running : 2 VTP Domain Name : Lab_Network VTP Pruning Mode : Disabled VTP Traps Generation : Disabled Device ID : 0012.44dc.b800 Configuration lst modified by 127.0.0.12 at 10-18-07 10:38:45 Local updater ID is 127.0.0.12 on interface EO 0/0 (first interface found)

Feature VLAN: VTP Operating Mode : Server Maximum VLANs supported locally: 1005 Number of existing VLANs : 1005 Configuration Revision : 1 MD5 digest : 0x2E 0x6B 0x99 0x58 0xA2 0x4F 0xD5 0x150x70 0x61 0xB8 0x24 0xB6 0x93 0x21 0x09 Switch#

This example shows an example of the VTP configuration parameters when the device is running VTP version 3:

Switch# show vtp status VTP Version capable : 1 to 3 VTP version running : 3 VTP Domain Name : Lab_Network VTP Pruning Mode : Disabled VTP Traps Generation : Disabled Device ID : 0012.44dc.b800

Feature VLAN: VTP Operating Mode : Server Number of existing VLANs : 1005 Number of existing extended VLANs: 3074 Configuration Revision : 18 Primary ID : 0012.4371.9ec0 Primary Description : Switch#

Page 389 of the Cisco Systems 4500 user manual — Displaying VTP Statistics
Page 389 · click to enlarge
Page 389

Chapter 13 Configuring VLANs, VTP, and VMPS

Starting a Takeover

This process applies to VTP version 3 only. To start a takeover, perform this task:

Switch# vtp primary-server [vlan | mst]| [force] Changes the operational state of a switch from a secondary to a primary server and advertises the configuration to the whole domain. (If the password for this device is configured with the hidden keyword, the user is prompted to re-enter it.)

Specify where to direct the takeover by selecting the appropriate feature (vlan or mst). If no feature is selected, the takeover is directed to the VLAN database.

This example shows how to start a takeover and direct it to the vlan database:

Switch# vtp primary-server vlan Enter VTP password:password This system is becoming primary for feature vlan

VTP Feature Conf Revision Primary Server Device ID Description MST Yes 4 0012.4371.9ec0=0012.4371.9ec0 R1 Do you want to continue? (confirm) Switch#

Displaying VTP Statistics

To display VTP statistics, including VTP advertisements sent and received and VTP errors, perform this task:

Switch# show vtp counters Displays VTP statistics.

This example shows how to display VTP statistics:

Switch# show vtp counters VTP statistics: Summary advertisements received : 7 Subset advertisements received : 5 Request advertisements received : 0 Summary advertisements transmitted : 997 Subset advertisements transmitted : 13

VLAN Trunking Protocol

Page 390 of the Cisco Systems 4500 user manual — VLAN Membership Policy Server
Page 390 · click to enlarge
Page 390

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

Request advertisements transmitted : 3 Number of config revision errors : 0 Number of config digest errors : 0 Number of V1 summary errors : 0

VTP pruning statistics:

Trunk Join Transmitted Join Received Summary advts received from non-pruning-capable device Fa5/8 43071 42766 5

Displaying VTP Devices in a Domain

To display information for all the VTP devices in a domain, perform this task:

Switch# show vtp devices [conflicts] Gathers and displays information for all the VTP devices in the domain.

The conflicts keyword (optional) displays the information of devices that have conflicting primary servers.

This example shows how to display information for VTP devices in a domain:

Switch# show vtp devices Retrieving information from the VTP domain, please wait for 5 seconds. VTP Feature Conf Revision Primary Server Device ID Device Description VLAN No 18 0016.9c6d.5300 0012.011a.0d00 R2 VLAN No 18 0016.9c6d.5300 0012.4371.9ec0 R1 MST Yes 4 0012.4371.9ec0=0012.4371.9ec0 R1

VLAN Membership Policy Server

This section describes how to configure dynamic port VLAN membership through the VLAN Membership Policy Server (VMPS), and includes the following subsections:

  • About VMPS, page 13-21
  • Overview of VMPS Clients, page 13-23
  • Dynamic Port VLAN Membership Configuration Example, page 13-29
  • VMPS Database Configuration File Example, page 13-32

Switch#

Page 391 of the Cisco Systems 4500 user manual — Understanding the VMPS Server
Page 391 · click to enlarge
Page 391

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

About VMPS

These subsections describe what a VMPS server does and how it operates:

  • Understanding the VMPS Server, page 13-21
  • Security Modes for VMPS Server, page 13-22
  • Fallback VLAN, page 13-23
  • Illegal VMPS Client Requests, page 13-23

Understanding the VMPS Server

A VLAN Membership Policy Server (VMPS) provides a centralized server for selecting the VLAN for a port dynamically based on the MAC address of the device connected to the port. When the host moves from a port on one switch in the network to a port on another switch in the network, that switch dynamically assigns the new port to the proper VLAN for that host.

A Catalyst 4500 series switch running Cisco IOS software does not support the functionality of a VMPS. It can only function as a VLAN Query Protocol (VQP) client, which communicates with a VMPS through the VQP. For VMPS functionality, you need to use a Catalyst 4500 series switch (or Catalyst 6500 series switch) running Catalyst operating system (OS) software.

VMPS uses a UDP port to listen to VQP requests from clients, so, it is not necessary for VMPS clients to know if the VMPS resides on a local or remote device on the network. Upon receiving a valid request from a VMPS client, a VMPS server searches its database for an entry of a MAC-address to VLAN mapping.

In response to a request, the VMPS takes one of the following actions:

  • If the assigned VLAN is restricted to a group of ports, the VMPS verifies the requesting port against this group and responds as follows:

– If the VLAN is allowed on the port, the VMPS sends the VLAN name to the client in response.

– If the VLAN is not allowed on the port and the VMPS is not in secure mode, the VMPS sends an “access-denied” response.

– If the VLAN is not allowed on the port and the VMPS is in secure mode, the VMPS sends a “port-shutdown” response.

  • If the VLAN in the database does not match the current VLAN on the port and active hosts exist on the port, the VMPS sends an “access-denied” (open), a “fallback VLAN name” (open with fallback VLAN configured), a “port-shutdown” (secure) , or a “ new VLAN name” (multiple) response, depending on the secure mode setting of the VMPS.

If the switch receives an “access-denied” response from the VMPS, the switch continues to block traffic from the MAC address to or from the port. The switch continues to monitor the packets directed to the port and sends a query to the VMPS when it identifies a new address. If the switch receives a “port-shutdown” response from the VMPS, the switch disables the port. The port must be manually reenabled by using the CLI, Cisco Visual Switch Manager (CVSM), or SNMP.

You can also use an explicit entry in the configuration table to deny access to specific MAC addresses for security reasons. If you enter the none keyword for the VLAN name, the VMPS sends an “access-denied” or “port-shutdown” response.

Page 392 of the Cisco Systems 4500 user manual — Multiple Mode
Page 392 · click to enlarge
Page 392

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

Security Modes for VMPS Server

VMPS operates in three different modes. The way a VMPS server responds to illegal requests depends on the mode in which the VMPS is configured:

  • Open Mode, page 13-22
  • Secure Mode, page 13-22
  • Multiple Mode, page 13-22

Open Mode

If no VLAN is assigned to this port, VMPS verifies the requesting MAC address against this port:

  • If the VLAN associated with this MAC address is allowed on the port, the VLAN name is returned to the client.
  • If the VLAN associated with this MAC address is not allowed on the port, the host receives an “access denied” response.

If a VLAN is already assigned to this port, VMPS verifies the requesting MAC address against this port:

  • If the VLAN associated with this MAC address in the database does not match the current VLAN assigned on the port, and a fallback VLAN name is configured, VMPS sends the fallback VLAN name to the client.
  • If a VLAN associated with this MAC address in the database does not match the current VLAN assigned on the port, and a fallback VLAN name is not configured, the host receives an “access denied” response.

Secure Mode

If no VLAN is assigned to this port, VMPS verifies the requesting MAC address against this port:

  • If the VLAN associated with this MAC address is allowed on the port, the VLAN name is returned to the client.
  • If the VLAN associated with this MAC address is not allowed on the port, the port is shut down.

If a VLAN is already assigned to this port, VMPS verifies the requesting MAC address against this port:

  • If a VLAN associated with this MAC address in the database does not match the current VLAN assigned on the port, the port is shutdown, even if a fallback VLAN name is configured.

Multiple Mode

Multiple hosts (MAC addresses) can be active on a dynamic port if they are all in the same VLAN. If the link fails on a dynamic port, the port returns to the unassigned state. Any hosts that come online through the port are checked again with VMPS before the port is assigned to a VLAN.

If multiple hosts connected to a dynamic port belong to different VLANs, the VLAN matching the MAC address in the last request is returned to the client provided that multiple mode is configured on the VMPS server.

Page 393 of the Cisco Systems 4500 user manual — Understanding Dynamic VLAN Membership
Page 393 · click to enlarge
Page 393

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

Fallback VLAN

You can configure a fallback VLAN name on a VMPS server.

If no VLAN has been assigned to this port, VMPS compares the requesting MAC address to this port:

  • If you connect a device with a MAC address that is not in the database, the VMPS sends the fallback VLAN name to the client.
  • If you do not configure a fallback VLAN name and the MAC address does not exist in the database, the VMPS sends an “access-denied” response.

If a VLAN is already assigned to this port, VMPS compares the requesting MAC address to this port:

  • If the VMPS is in secure mode, it sends a “port-shutdown” response, whether a fallback VLAN has been configured on the server.

Illegal VMPS Client Requests

Two examples of illegal VMPS client requests are as follows:

  • When a MAC-address mapping is not present in the VMPS database and “no fall back” VLAN is configured on the VMPS.
  • When a port is already assigned a VLAN (and the VMPS mode is not “multiple”) but a second VMPS client request is received on the VMPS for a different MAC-address.

Overview of VMPS Clients

The following subsections describe how to configure a switch as a VMPS client and configure its ports for dynamic VLAN membership.

The following topics are included:

  • Understanding Dynamic VLAN Membership, page 13-23
  • Default VMPS Client Configuration, page 13-24
  • Configuring a Switch as a VMPS Client, page 13-24
  • Administering and Monitoring the VMPS, page 13-28
  • Troubleshooting Dynamic Port VLAN Membership, page 13-29

Understanding Dynamic VLAN Membership

When a port is configured as “dynamic,” it receives VLAN information based on the MAC-address that is on the port. The VLAN is not statically assigned to the port; it is dynamically acquired from the VMPS based on the MAC-address on the port.

A dynamic port can belong to one VLAN only. When the link becomes active, the switch does not forward traffic to or from this port until the port is assigned to a VLAN. The source MAC address from the first packet of a new host on the dynamic port is sent to the VMPS as part of the VQP request, which attempts to match the MAC address to a VLAN in the VMPS database. If there is a match, the VMPS sends the VLAN number for that port. If there is no match, the VMPS either denies the request or shuts down the port (depending on the VMPS security mode setting). See the “About VMPS” section on page 13-21 for a complete description of possible VMPS responses.

Page 394 of the Cisco Systems 4500 user manual — Configuring the IP Address of the VMPS Server
Page 394 · click to enlarge
Page 394

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

Multiple hosts (MAC addresses) can be active on a dynamic port if all are in the same VLAN. If the link goes down on a dynamic port, the port returns to the unassigned state and does not belong to a VLAN. Any hosts that come online through the port are checked again with the VMPS before the port is assigned to a VLAN.

For this operation to work, the client device must be able to reach the VMPS. A VMPS client sends VQP requests as UDP packets, trying a certain number of times before giving up. For details on how to set the retry interval, refer to section “Configuring the Retry Interval” on page 27.

The VMPS client also periodically reconfirms the VLAN membership. For details on how to set the reconfirm frequency, refer to section “Administering and Monitoring the VMPS” on page 28.

A maximum of 50 hosts are supported on a given port at any given time. Once this maximum is exceeded, the port is shut down, irrespective of the operating mode of the VMPS server.

Default VMPS Client Configuration

Table 13-4 shows the default VMPS and dynamic port configuration on client switches.

Table 13-4 Default VMPS Client and Dynamic Port Configuration

Feature Default Configuration

VMPS domain server None

VMPS reconfirm interval 60 minutes

VMPS server retry count 3

Dynamic ports None configured

Configuring a Switch as a VMPS Client

This section contains the following topics:

  • Configuring the IP Address of the VMPS Server, page 13-24
  • Configuring Dynamic Access Ports on a VMPS Client, page 13-25
  • Reconfirming VLAN Memberships, page 13-26
  • Configuring Reconfirmation Interval, page 13-26
  • Reconfirming VLAN Memberships, page 13-26

Configuring the IP Address of the VMPS Server

To configure a Catalyst 4500 series switch as a VMPS client, you must enter the IP address or hostname of the switch acting as the VMPS.

Page 395 of the Cisco Systems 4500 user manual — Configuring Dynamic Access Ports on a VMPS Client
Page 395 · click to enlarge
Page 395

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

To define the primary and secondary VMPS on a Catalyst 4500 series switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vmps server {ipaddress | hostname} primary

Specifies the IP address or hostname of the switch acting as the primary VMPS server.

Step 3 Switch(config)# vmps server {ipaddress | hostname}

Specifies the IP address or hostname of the switch acting as a secondary VMPS server.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show vmps Verifies the VMPS server entry.

This example shows how to define the primary and secondary VMPS devices:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vmps server 172.20.128.179 primary Switch(config)# vmps server 172.20.128.178 Switch(config)# end

Switch# show vmps VQP Client Status: VMPS VQP Version: 1 Reconfirm Interval: 60 min Server Retry Count: 3 VMPS domain server: 172.20.128.179 (primary, current) 172.20.128.178 Reconfirmation status VMPS Action: No Dynamic Port

Configuring Dynamic Access Ports on a VMPS Client

To configure a dynamic access port on a VMPS client switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface Enters interface configuration mode and specifies the port to be configured.

Step 3 Switch(config-if)# switchport mode access

Sets the port to access mode.

Step 4 Switch(config-if)# switchport access vlan dynamic

Configures the port as eligible for dynamic VLAN access.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show interface interface switchport

Verifies the entry.

Page 396 of the Cisco Systems 4500 user manual — Configuring Reconfirmation Interval
Page 396 · click to enlarge
Page 396

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

This example shows how to configure a dynamic access port and to verify the entry:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fa1/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan dynamic Switch(config-if)# end

Switch# show interface fa1/1 switchport Name: Fa0/1 Switchport: Enabled Administrative mode: dynamic auto Operational Mode: dynamic access Administrative Trunking Encapsulation: isl Operational Trunking Encapsulation: isl Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: NONE Pruning VLANs Enabled: NONE

Voice Ports

If a VVID (voice VLAN ID) is configured on a dynamic access port, the port can belong to both an access VLAN and a voice VLAN. Consequently, an access port configured for connecting an IP phone can have separate VLANs for the following:

  • Data traffic to and from the PC that is connected to the switch through the access port of the IP phone (access VLAN)
  • Voice traffic to and from the IP phone (voice VLAN)

Reconfirming VLAN Memberships

To confirm the dynamic port VLAN membership assignments that the switch has received from the VMPS, perform this task:

Step 1 Switch# vmps reconfirm Reconfirms dynamic port VLAN membership.

Step 2 Switch# show vmps Verifies the dynamic VLAN reconfirmation status.

Configuring Reconfirmation Interval

VMPS clients periodically reconfirm the VLAN membership information received from the VMPS. You can set the number of minutes the VMPS client waits before reconfirming the VLAN-to-MAC-address assignments.

To configure the reconfirmation interval, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vmps reconfirm minutes Specifies the number of minutes between reconfirmations of the dynamic VLAN membership.

Page 397 of the Cisco Systems 4500 user manual — Configuring the Retry Interval
Page 397 · click to enlarge
Page 397

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show vmps Verifies the dynamic VLAN reconfirmation status.

This example shows how to change the reconfirmation interval to 60 minutes and verify the change:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vmps reconfirm 60 Switch(config)# end Switch# show vmps VQP Client Status: VMPS VQP Version: 1 Reconfirm Interval: 60 min Server Retry Count: 10 VMPS domain server: 172.20.130.50 (primary, current)

Reconfirmation status VMPS Action: No Host

Configuring the Retry Interval

You can set the number of times that the VMPS client attempts to contact the VMPS before querying the next server.

To configure the retry interval, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vmps retry count Specifies the retry count for the VPQ queries. Default is 3. Range is from 1 to 10.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show vmps Verifies the retry count.

This example shows how to change the retry count to 5 and to verify the change:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vmps retry 5 Switch(config)# end

Switch# show vmps VQP Client Status: VMPS VQP Version: 1 Reconfirm Interval: 60 min Server Retry Count: 5 VMPS domain server: 172.20.130.50 (primary, current)

Reconfirmation status VMPS Action: No Host

Page 398 of the Cisco Systems 4500 user manual — Administering and Monitoring the VMPS
Page 398 · click to enlarge
Page 398

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

Administering and Monitoring the VMPS

You can display the following information about the VMPS with the show vmps command:

VQP Version The version of VQP used to communicate with the VMPS. The switch queries the VMPS using VQP Version 1.

Reconfirm Interval The number of minutes the switch waits before reconfirming the VLAN-to-MAC-address assignments.

Server Retry Count The number of times VQP resends a query to the VMPS. If no response is received after this many tries, the switch starts to query the secondary VMPS.

VMPS Domain Server The IP address of the configured VLAN membership policy

servers. The switch currently sends queries to the one marked “current.” The one marked “primary” is the primary server.

VMPS Action The result of the most-recent reconfirmation attempt. This action can occur automatically when the reconfirmation interval expired, or you can force it by entering the vmps reconfirm command or its CVSM or SNMP equivalent.

The following example shows how to display VMPS information:

Switch# show vmps VQP Client Status: VMPS VQP Version: 1 Reconfirm Interval: 60 min Server Retry Count: 3 VMPS domain server: Reconfirmation status VMPS Action: other

The following example shows how to display VMPS statistics: Switch# show vmps statistics VMPS Client Statistics VQP Queries: 0 VQP Responses: 0 VMPS Changes: 0 VQP Shutdowns: 0 VQP Denied: 0 VQP Wrong Domain: 0 VQP Wrong Version: 0 VQP Insufficient Resource: 0

Page 399 of the Cisco Systems 4500 user manual — Dynamic Port VLAN Membership Configuration Example
Page 399 · click to enlarge
Page 399

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

Troubleshooting Dynamic Port VLAN Membership

VMPS errdisables a dynamic port under the following conditions:

  • The VMPS is in secure mode, and it does not allow the host to connect to the port. The VMPS errdisables the port to prevent the host from connecting to the network.
  • More than 50 active hosts reside on a dynamic port.

For information on how to display the status of interfaces in error-disabled state, refer to Chapter 7, “Checking Port Status and Connectivity.” To recover an errdisabled port, use the errdisable recovery cause vmps global configuration command.

Dynamic Port VLAN Membership Configuration Example

Figure 13-4 on page 13-30 shows a network with a VMPS servers and VMPS client switches with dynamic ports. In this example, these assumptions apply:

  • The VMPS server and the VMPS client are separate switches.
  • The Catalyst 4000 family Switch 1 (running Catalyst Operating System) is the primary VMPS server.
  • The Catalyst 6000 family Switch 3 (running Catalyst Operating System) and the URT are secondary VMPS servers.
  • End stations are connected to these clients:

– Catalyst 4500 series XL Switch 2 (running Catalyst Cisco IOS)

– Catalyst 4500 series XL Switch 9 (running Catalyst Cisco IOS)

  • The database configuration file is called Bldg-G.db and is stored on the TFTP server with the IP address 172.20.22.7.
Page 400 of the Cisco Systems 4500 user manual — Configuring VLANs, VTP, and VMPS
Page 400 · click to enlarge
Page 400

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

Cisco Systems 4500 — Configuring VLANs, VTP, and VMPS diagram (page 400)
Fig. 4 · Configuring VLANs, VTP, and VMPS

Two topologies are possible. Figure 13-5 illustrates a topology with one end station attached directly to a Catalyst 4500 series switch operating as a VMPS client. Figure 13-6 illustrates a topology with an end station attached to a Cisco IP Phone, which is attached to a Catalyst 4500 series switch.

Figure 13-5 Topology with an End Station Attached Directly to a Catalyst 4500 Series Switch Operating as a VMPS Client

Page 401 of the Cisco Systems 4500 user manual — IP
Page 401 · click to enlarge
Page 401

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

Figure 13-6 Topology with an End Station Attached to a Cisco IP Phone that is Attached to a Catalyst 4500 Series Switch

Endstation (in VLAN 20)

IP

Catalyst 4500 (CatOS)/ Catalyst 6500 (CatOS)/

In the following procedure, the Catalyst 4500 and Catalyst 6500 series switches (running Catalyst Operating System) are the VMPS servers. Use this procedure to configure the Catalyst 4500 series switch clients in the network:

Step 1 Configure the VMPS server addresses on Switch 2, the client switch.

a. Starting from privileged EXEC mode, enter global configuration mode:

b. Enter the primary VMPS server IP address:

switch(config)# vmps server 172.20.26.150 primary

c. Enter the secondary VMPS server IP addresses:

switch(config)# vmps server 172.20.26.152

d. To verify your entry of the VMPS IP addresses, return to privileged EXEC mode:

e. Display VMPS information configured for the switch:

switch# show vmps VQP Client Status: VMPS VQP Version: 1 Reconfirm Interval: 60 min Server Retry Count: 3 VMPS domain server: 172.20.26.152 172.20.26.150 (primary, current

Step 2 Configure port Fa0/1 on Switch 2 as a dynamic port.

a. Return to global configuration mode:

b. Enter interface configuration mode:

c. Configure the VLAN membership mode for static-access ports:

switch(config-if)# switchport mode access

Show 10 more labels / short text on this page
Internet · Cisco IP phone · Catalyst 4500 (IOS) · (in VLAN 10) · (VMPS client) · URT (VMPS server) · switch# configuration terminal · switch(config)# exit · switch# configure terminal · switch(config)# interface fa2/1
Page 402 of the Cisco Systems 4500 user manual — VMPS Database Configuration File Example
Page 402 · click to enlarge
Page 402

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

d. Assign the port dynamic VLAN membership:

switch(config-if)# switchport access vlan dynamic

e. Return to privileged EXEC mode:

Step 3 Connect End Station 2 on port Fa2/1. When End Station 2 sends a packet, Switch 2 sends a query to the primary VMPS server, Switch 1. Switch 1 responds with the VLAN ID for port Fa2/1. If spanning-tree PortFast mode is enabled on Fa2/1, port Fa2/1 connects immediately and begins forwarding.

Step 4 Set the VMPS reconfirmation period to 60 minutes. The reconfirmation period is the number of minutes the switch waits before reconfirming the VLAN to MAC address assignments.

switch# config terminal switch(config)# vmps reconfirm 60

Step 5 Confirm the entry from privileged EXEC mode:

switch# show vmps VQP Client Status: VMPS VQP Version: 1 Reconfirm Interval: 60 min Server Retry Count: 3 VMPS domain server: Reconfirmation status VMPS Action: No Dynamic Port

Step 6 Repeat Steps 1 and 2 to configure the VMPS server addresses, and assign dynamic ports on each VMPS client switch.

VMPS Database Configuration File Example

This example shows a sample VMPS database configuration file as it appears on a VMPS server. A VMPS database configuration file is an ASCII text file that is stored on a TFTP server accessible to the switch that functions as the VMPS server.

!vmps domain ! The VMPS domain must be defined. !vmps mode { open | secure } ! The default mode is open. !vmps fallback !vmps no-domain-req { allow | deny } ! ! The default value is allow. vmps domain WBU vmps mode open vmps fallback default vmps no-domain-req deny ! !

switch(config-if)# exit switch#

Page 403 of the Cisco Systems 4500 user manual — Configuring VLANs, VTP, and VMPS
Page 403 · click to enlarge
Page 403

Chapter 13 Configuring VLANs, VTP, and VMPS

VLAN Membership Policy Server

!MAC Addresses ! vmps-mac-addrs ! ! address vlan-name ! address 0012.2233.4455 vlan-name hardware address 0000.6509.a080 vlan-name hardware address aabb.ccdd.eeff vlan-name Green address 1223.5678.9abc vlan-name ExecStaff address fedc.ba98.7654 vlan-name --NONE-- address fedc.ba23.1245 vlan-name Purple ! !Port Groups ! !vmps-port-group ! device { port | all-ports } ! vmps-port-group WiringCloset1 device 198.92.30.32 port Fa1/3 device 172.20.26.141 port Fa1/4 vmps-port-group “Executive Row” device 198.4.254.222 port es5%Fa0/1 device 198.4.254.222 port es5%Fa0/2 device 198.4.254.223 all-ports ! !VLAN groups ! !vmps-vlan-group ! vlan-name ! vmps-vlan-group Engineering vlan-name hardware vlan-name software ! !VLAN port Policies ! !vmps-port-policies {vlan-name | vlan-group } ! { port-group | device port } ! vmps-port-policies vlan-group Engineering port-group WiringCloset1 vmps-port-policies vlan-name Green device 198.92.30.32 port Fa0/9 vmps-port-policies vlan-name Purple device 198.4.254.22 port Fa0/10 port-group “Executive Row”

Page 404 of the Cisco Systems 4500 user manual — Configuring VLANs, VTP, and VMPS
Page 404 · click to enlarge
Page 404

Chapter 13 Configuring VLANs, VTP, and VMPS VLAN Membership Policy Server

Page 405 of the Cisco Systems 4500 user manual — About IP Unnumbered Interface Support
Page 405 · click to enlarge
Page 405

C H A P T E R

Configuring IP Unnumbered Interface

This chapter discusses the IP Unnumbered Interface feature, which allows you to enable IP processing on an interface without assigning an explicit IP address.

This chapter contains these sections:

  • About IP Unnumbered Interface Support, page 14-1
  • IP Unnumbered Configuration Guidelines and Restrictions, page 14-3
  • Configuring IP Unnumbered Interface Support with DHCP Server, page 14-4
  • Configuring IP Unnumbered Interface Support with Connected Host Polling, page 14-5
  • Displaying IP Unnumbered Interface Settings, page 14-6
  • Troubleshooting IP Unnumbered Interface, page 14-7
  • Related Documents, page 14-8

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About IP Unnumbered Interface Support

Before you configure VLANs and LAN interfaces with IP unnumbered interfaces, you should understand the following concepts:

  • IP Unnumbered Interface Support with DHCP Server and Relay Agent, page 14-2
  • DHCP Option 82, page 14-2
  • IP Unnumbered Interface with Connected Host Polling, page 14-3
Page 406 of the Cisco Systems 4500 user manual — GE DSL DSL
Page 406 · click to enlarge
Page 406

Chapter 14 Configuring IP Unnumbered Interface About IP Unnumbered Interface Support

IP Unnumbered Interface Support with DHCP Server and Relay Agent

The IP unnumbered interface configuration allows you to enable IP processing on an interface without assigning it an explicit IP address. The IP unnumbered interface can “borrow” the IP address from another interface that is already configured on the Catalyst 4500 series switch, which conserves network and address space. When used with the DHCP server/relay agent, this feature allows a host address assigned by the DHCP server to be learned dynamically at the DHCP relay agent.

Figure 14-1 shows a sample network topology implementing the IP Unnumbered Interface feature. In this topology, IP routes are dynamically established by the aggregation switch when the DHCP server assigns IP addresses to the hosts.

Figure 14-1 Sample Network Topology Using the VLANs over IP Unnumbered Interfaces Feature

DSL access multiplexer with Gigabit Ethernet (GE) uplink

GE DSL DSL

IP/MPLS GE

GE

DSL

GE

DSL

DSL

802.1Q VLAN

DHCP Option 82

DHCP provides a framework for passing configuration information to hosts on a TCP/IP network. Configuration parameters and other control information are carried in tagged data items that are stored in the options field of the DHCP message. The data items are also called options. Option 82 is organized as a single DHCP option that contains information known by the relay agent.

The IP Unnumbered Interface feature communicates information to the DHCP server using a suboption of the DHCP relay agent information option called agent remote ID. The information sent in the agent remote ID includes an IP address identifying the relay agent and information about the interface and the connection over which the DHCP request entered. The DHCP server can use this information to make IP address assignments and security policy decisions.

Figure 14-2 shows the agent remote ID suboption format that is used with the IP Unnumbered Interfaces feature.

Show 8 more labels / short text on this page
DHCP server · Multilayer · Aggregation · router · Ethernet · switch · IP unnumbered · interface
Page 407 of the Cisco Systems 4500 user manual — – HSRP/VRRP
Page 407 · click to enlarge
Page 407

Chapter 14 Configuring IP Unnumbered Interface

IP Unnumbered Configuration Guidelines and Restrictions

Figure 14-2 Format of the Agent Remote ID Suboption

(byte 10) Reserved (bytes 3-4)

VLAN ID (bytes 11-12) NAS IP address

Table 14-1 describes the agent remote ID suboption fields displayed in Figure 14-2.

Table 14-1 Agent Remote ID Suboption Field Descriptions

Field Description

Type Format type. The value 2 specifies the format for use with this feature. (1 byte)

Length Length of the Agent Remote ID suboption, not including the type and length fields. (1 byte)

Reserved Reserved. (2 bytes)

NAS IP Address IP address of the interface specified by the ip unnumbered command. (4 bytes)

Interface Physical interface. This field has the following format: slot (4 bits) | module (1 bit) | port (3 bits).

For example, if the interface name is interface ethernet 2/1/1, the slot is 2, the module is 1, and the port is 1. (1 byte)

Reserved Reserved. (1 byte)

VLAN ID VLAN identifier for the Ethernet interface. (2 bytes)

IP Unnumbered Interface with Connected Host Polling

In some cases, the host IP address is assigned statically. The IP Unnumbered Interfaces feature can learn the static host IP address dynamically.

IP Unnumbered Configuration Guidelines and Restrictions

When using (or configuring) IP Unnumbered Interface, consider these guidelines and restrictions:

  • For IP Unnumbered Interfaces, the following features are not supported:

– Dynamic routing protocols

– HSRP/VRRP

– Unnumbered Interface and Numbered Interface in different VRFs

Show 8 more labels / short text on this page
1 12 bytes · Type (byte 1) · Length (byte 2) · Interface · Reserved · (bytes 5-8) · (byte 9) · – Static ARP
Page 408 of the Cisco Systems 4500 user manual — Configuring IP Unnumbered Interface Support on LAN and VLAN Interfaces
Page 408 · click to enlarge
Page 408

Chapter 14 Configuring IP Unnumbered Interface Configuring IP Unnumbered Interface Support with DHCP Server

  • The option to add dhcp host routes as connected routes is available in Cisco IOS. When using connected mode, however, the clear ip route * command deletes the DHCP host connected routes permanently. To avoid this situation for a Layer 3 interface (SVI), enter shut and then no shut . To enable IP unnumbered to use static routes, enter the ip dhcp route static command.
  • IP Redirect is not sent by an interface configured with IP Unnumbered Interface.
  • IP Unnumbered Interface is unable to forward multicast source packets.

Configuring IP Unnumbered Interface Support with DHCP Server

This section contains the following procedures:

  • Configuring IP Unnumbered Interface Support on LAN and VLAN Interfaces, page 14-4
  • Configuring IP Unnumbered Interface Support on a Range of Ethernet VLANs, page 14-5

Configuring IP Unnumbered Interface Support on LAN and VLAN Interfaces

To configure IP unnumbered interface support on a single LAN or VLAN interface, perform this task.

Step 1 Switch# enable Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# interface [fastethernet | gigabitethernet | tengigabitethernet | vlan vlan | port-channel | loopback]

Enters interface configuration mode and the interface to be configured as a tunnel port.

Step 4 Switch(config-if)# ip unnumbered type number Enables IP processing on an interface without assigning an explicit IP address to the interface.

The type and number arguments specify another interface on which the switch has an assigned IP address. The interface specified cannot be another unnumbered interface.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies that IP unnumbered support has been configured correctly.

In the following example, Ethernet VLAN 10 is configured as an IP unnumbered interfaces:

Switch> enable Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface vlan 10 Switch(config-if)# ip unnumbered Lookback 0

Page 409 of the Cisco Systems 4500 user manual — Configuring IP Unnumbered Interface Support with Connected Host Polling
Page 409 · click to enlarge
Page 409

Chapter 14 Configuring IP Unnumbered Interface

Configuring IP Unnumbered Interface Support with Connected Host Polling

Configuring IP Unnumbered Interface Support on a Range of Ethernet VLANs

To configure IP unnumbered interface support on a range of Ethernet VLAN interfaces, perform this task:

Command or Action Purpose

Step 1 Switch# enable Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# interface range {{fastethernet | gigabitethernet | vlan vlan} slot/interface {fastethernet | gigabitethernet | vlan vlan} slot/interface | macro macro-name}

Executes commands on multiple interfaces at the same time.

A hyphen must be entered with a space on either side to separate the range information.

Step 4 Switch(config-if)# ip unnumbered type number Enables IP processing on an interface without assigning an explicit IP address to the interface.

The type and number arguments specify another interface on which the switch has an assigned IP address. The specified interface cannot be another unnumbered interface.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies that IP unnumbered support has been configured correctly.

In the following example, VLANs in the range from 1 to 10 are configured as IP unnumbered interfaces, sharing IP address of Fast Ethernet 3/1:

Switch> enable Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface range vlan 1 - 10 Switch(config-if)# ip unnumbered fastethernet 3/1 Switch(config-if)# exit Switch(config)# end

Configuring IP Unnumbered Interface Support with Connected Host Polling

To configure IP unnumbered interface support with connected host polling, perform this task:

Step 1 Switch# enable Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 Switch# configure terminal Enters global configuration mode.

Page 410 of the Cisco Systems 4500 user manual — Displaying IP Unnumbered Interface Settings
Page 410 · click to enlarge
Page 410

Chapter 14 Configuring IP Unnumbered Interface Displaying IP Unnumbered Interface Settings

Command Purpose (continued)

Step 3 Switch(config)# interface vlan vlan-id Enters interface configuration mode and the interface to be configured as a tunnel port.

Step 4 Switch(config-if)# ip unnumbered type number poll Enables IP processing and connected host polling on an interface without assigning an explicit IP address to the interface

type and number specify another interface on which the switch has an assigned IP address. The interface specified cannot be another unnumbered interface.

The type argument can have the values: loopback, fastethernet, gigabitethernet, svi, and portchannel.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# ip arp poll queue Configures the global backlog queue of host addresses to be discovered.

Default for the queue size is 1000.

Step 7 Switch(config)# ip arp poll rate Configures the maximum number of ARP requests sent over unnumbered interfaces.

Default number of ARP requests is 1000 packet per second.

Step 8 Switch(config)# end Returns to privileged EXEC mode.

Step 9 Switch# show running-config Verifies that IP unnumbered support has been configured correctly.

The following example shows how to enable IP processing and connected host polling on Fast Ethernet interface 6/2. It also shows how to set the global backlog queue to 2000 and the maximum number of ARP requests to 500:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastEthernet 6/2 Switch(config-if)# no switchport Switch(config-if)# ip unnumbered loopback 0 poll Warning: dynamic routing protocols will not work on non-point-to-point interfaces with IP unnumbered configured. Switch(config-if)# exit Switch(config)# ip arp poll queue 2000 Switch(config)# ip arp poll rate 500 Switch(config)# end

Displaying IP Unnumbered Interface Settings

Use the show ip interface unnumbered command to display status of an unnumbered interface with connected host polling for the switch.

Page 411 of the Cisco Systems 4500 user manual — Troubleshooting IP Unnumbered Interface
Page 411 · click to enlarge
Page 411

Chapter 14 Configuring IP Unnumbered Interface

Troubleshooting IP Unnumbered Interface

To display status of an unnumbered interface, enter this command:

Switch# show ip interface [type number] unnumbered [detail]

Displays the status of unnumbered interface with connected host polling for the Catalyst 4500 series switch.

The following example shows how to display the status of unnumbered interfaces with connected host polling:

Switch# show ip interface loopback 0 unnumbered detail Number of unnumbered interfaces with polling: 1 Number of IP addresses processed for polling: 2 10.1.1.7 10.1.1.8 Number of IP addresses in queue for polling: 2(high water mark: 3) 10.1.1.17 10.1.1.18

To display key statistic for the backlog of unnumbered interfaces with connected host polling for the switch, perform this task:

Switch# show ip arp poll [detail] Displays key statistic for the backlog of unnumbered interfaces with connected host polling for the switch.

The following example shows how to display key statistic for the backlog of unnumbered interfaces with connected host polling:

Switch# show ip arp poll Number of IP addresses processed for polling: 439 Number of IP addresses in queue for polling: 3 (high water mark: 0, max: 1000) Number of requests dropped: Queue was full: 0 Request was throttled by incomplete ARP: 0 Duplicate request was found in queue: 0

To clear the key statistic for the backlog of unnumbered interfaces, use the clear ip arp poll statistic command, as follows:

Switch# clear ip arp poll statistic Switch# show ip arp poll Number of IP addresses processed for polling: 0 Number of IP addresses in queue for polling: 0 (high water mark: 0, max: 1000) Number of requests dropped: Queue was full: 0 Request was throttled by incomplete ARP: 0 Duplicate request was found in queue: 0

Troubleshooting IP Unnumbered Interface

To understand how to debug connect host polling, see the Cisco IOS documentation of the debug arp command on cisco.com.

Page 412 of the Cisco Systems 4500 user manual — Related Topic Document Title
Page 412 · click to enlarge
Page 412

Chapter 14 Configuring IP Unnumbered Interface Related Documents

When an IP unnumbered interface shares the IP address of a loopback interface whose prefix is advertised in an OSPF network, you must modify the loopback interface as a point-to-point interface. Otherwise, only the loopback interface host route is advertised to an OSPF neighbor.

Switch(config)# int loopback 0 Switch(config-if)# ip address Switch(config-if)# ip address 10.1.0.1 255.255.0.0 Switch(config-if)# ip ospf network point-to-point Switch(config-if)# end

Related Documents

Related Topic Document Title

DHCP and other IP addressing configuration tasks “IP Addressing and Services” section of the Cisco IOS IP Addressing Services Configuration Guide, Release 12.4

DHCP and other IP addressing commands Cisco IOS IP Addressing Services Command Reference, Release 12.4 T

VLAN configuration tasks “Virtual LANs” chapter of the Cisco IOS LAN Switching Configuration Guide, Release 12.4

VLAN configuration commands Cisco IOS LAN Switching Command Reference, Release 12.4 T

Page 413 of the Cisco Systems 4500 user manual — About Layer 2 Ethernet Switching
Page 413 · click to enlarge
Page 413

C H A P T E R

Configuring Layer 2 Ethernet Interfaces

This chapter describes how to use the command-line interface (CLI) to configure Fast Ethernet and Gigabit Ethernet interfaces for Layer 2 switching on Catalyst 4500 series switches. It also provides guidelines, procedures, and configuration examples. The configuration tasks in this chapter apply to Fast Ethernet and Gigabit Ethernet interfaces on any module, including the uplink ports on the supervisor engine.

This chapter includes the following major sections:

  • About Layer 2 Ethernet Switching, page 15-1
  • Default Layer 2 Ethernet Interface Configuration, page 15-4
  • Layer 2 Interface Configuration Guidelines and Restrictions, page 15-5
  • Configuring Ethernet Interfaces for Layer 2 Switching, page 15-5

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Layer 2 Ethernet Switching

The following sections describe how Layer 2 Ethernet switching works on Catalyst 4500 series switches:

  • Layer 2 Ethernet Switching, page 15-2
  • VLAN Trunks, page 15-3
  • Layer 2 Interface Modes, page 15-4
Page 414 of the Cisco Systems 4500 user manual — Building the MAC Address Table
Page 414 · click to enlarge
Page 414

Chapter 15 Configuring Layer 2 Ethernet Interfaces About Layer 2 Ethernet Switching

Layer 2 Ethernet Switching

Catalyst 4500 series switches support simultaneous, parallel connections between Layer 2 Ethernet segments. Switched connections between Ethernet segments last only for the duration of the packet. New connections can be made between different segments for successive packets.

Note With Cisco IOS Release 12.1(13)EW, the Catalyst 4500 series switches can handle packets of 1600 bytes, rather than treat them as “oversized” and discard them. This size is larger than the usual IEEE Ethernet Maximum Transmission Unit (MTU) (1518 bytes) and 802.1q MTU (1522 bytes). The ability to handle larger packets is required to support two nested 802.1q headers and Multiprotocol Label Switching (MPLS) on a network.

The Catalyst 4500 series solves congestion problems caused by high-bandwidth devices and a large number of users by assigning each device (for example, a server) to its own 10-, 100-, or 1000-Mbps segment. Because each Ethernet interface on the switch represents a separate Ethernet segment, servers in a properly configured switched environment achieve full access to the bandwidth.

Because collisions are a major bottleneck in Ethernet networks, an effective solution is full-duplex communication. Normally, Ethernet operates in half-duplex mode, which means that stations can either receive or transmit. In full-duplex mode, two devices can transmit and receive at the same time. When packets can flow in both directions simultaneously, effective Ethernet bandwidth doubles to 20 Mbps for 10-Mbps interfaces and to 200 Mbps for Fast Ethernet interfaces. Gigabit Ethernet interfaces on the Catalyst 4500 series switch are full-duplex mode only, providing 2-Gbps effective bandwidth.

Switching Frames Between Segments

Each Ethernet interface on a Catalyst 4500 series switch can connect to a single workstation or server, or to a hub through which workstations or servers connect to the network.

On a typical Ethernet hub, all ports connect to a common backplane within the hub, and the bandwidth of the network is shared by all devices attached to the hub. If two devices establish a session that uses a significant level of bandwidth, the network performance of all other stations attached to the hub is degraded.

To reduce degradation, the switch treats each interface as an individual segment. When stations on different interfaces need to communicate, the switch forwards frames from one interface to the other at wire speed to ensure that each session receives full bandwidth.

To switch frames between interfaces efficiently, the switch maintains an address table. When a frame enters the switch, it associates the MAC address of the sending station with the interface on which it was received.

Building the MAC Address Table

The Catalyst 4500 series builds the MAC address table by using the source address of the frames received. When the switch receives a frame for a destination address not listed in its MAC address table, it floods the frame to all interfaces of the same VLAN except the interface that received the frame. When the destination device replies, the switch adds its relevant source address and interface ID to the address table. The switch then forwards subsequent frames to a single interface without flooding to all interfaces.

The address table can store at least 32,000 address entries without flooding any entries. The switch uses an aging mechanism, defined by a configurable aging timer, so if an address remains inactive for a specified number of seconds, it is removed from the address table.

Page 415 of the Cisco Systems 4500 user manual — Encapsulation Type Encapsulation Command Purpose
Page 415 · click to enlarge
Page 415

Chapter 15 Configuring Layer 2 Ethernet Interfaces

About Layer 2 Ethernet Switching

VLAN Trunks

A trunk is a point-to-point link between one or more Ethernet switch interfaces and another networking device such as a router or a switch. Trunks carry the traffic of multiple VLANs over a single link and allow you to extend VLANs across an entire network.

Two trunking encapsulations are available on all Ethernet interfaces:

  • Inter-Switch Link (ISL) Protocol—ISL is a Cisco-proprietary trunking encapsulation.
  • 802.1Q—802.1Q is an industry-standard trunking encapsulation.

You can configure a trunk on a single Ethernet interface or on an EtherChannel bundle. For more information about EtherChannel, see Chapter 22, “Configuring EtherChannel and Link State Tracking.”

Ethernet trunk interfaces support different trunking modes (see Table 15-2). You can specify whether the trunk uses ISL encapsulation, 802.1Q encapsulation, or if the encapsulation type is autonegotiated.

To autonegotiate trunking, make sure your interfaces are in the same VTP domain. Use the trunk or nonegotiate keywords to force interfaces in different domains to trunk. For more information on VTP domains, see Chapter 13, “Configuring VLANs, VTP, and VMPS.”

Trunk negotiation is managed by the Dynamic Trunking Protocol (DTP). DTP supports autonegotiation of both ISL and 802.1Q trunks.

Encapsulation Types

Table 15-1 lists the Ethernet trunk encapsulation types.

Table 15-1 Ethernet Trunk Encapsulation Types

Encapsulation Type Encapsulation Command Purpose

ISL switchport trunk encapsulation isl Specifies ISL encapsulation on the trunk link.

802.1Q switchport trunk encapsulation dot1q Specifies 802.1Q encapsulation on the trunk link.

Negotiate switchport trunk encapsulation negotiate Specifies that the interface negotiate with the

neighboring interface to become an ISL (preferred) or 802.1Q trunk, depending on the configuration and capabilities of the neighboring interface.

The trunking mode, the trunk encapsulation type, and the hardware capabilities of the two connected interfaces determine whether a link becomes an ISL or 802.1Q trunk.

Page 416 of the Cisco Systems 4500 user manual — Feature Default Value
Page 416 · click to enlarge
Page 416

Chapter 15 Configuring Layer 2 Ethernet Interfaces Default Layer 2 Ethernet Interface Configuration

Layer 2 Interface Modes

Table 15-2 lists the Layer 2 interface modes and describes how they function on Ethernet interfaces.

Table 15-2 Layer 2 Interface Modes

Mode Purpose

switchport mode access Puts the interface into permanent nontrunking mode and negotiates to convert the link into a nontrunking link. The interface becomes a nontrunk interface even if the neighboring interface does not change.

switchport mode dynamic desirable

Makes the interface actively attempt to convert the link to a trunking link. The interface becomes a trunk interface if the neighboring interface is set to trunk, desirable, or auto mode.

switchport mode dynamic auto Makes the interface convert the link to a trunking link if the neighboring interface is set to trunk or desirable mode. It is the default mode for all Ethernet interfaces.

switchport mode trunk Puts the interface into permanent trunking mode and negotiates to convert the link into a trunking link. The interface becomes a trunk interface even if the neighboring interface does not change.

switchport nonegotiate Puts the interface into permanent trunking mode but prevents the interface from generating DTP frames. You must configure the neighboring interface manually as a trunk interface to establish a trunking link.

Note DTP is a point-to-point protocol. However, some internetworking devices might forward DTP frames improperly. To avoid this problem, ensure that interfaces connected to devices that do not support DTP are configured with the access keyword if you do not intend to trunk across those links. To enable trunking to a device that does not support DTP, use the nonegotiate keyword to cause the interface to become a trunk without generating DTP frames.

Default Layer 2 Ethernet Interface Configuration

Table 15-3 shows the Layer 2 Ethernet interface default configuration.

Table 15-3 Layer 2 Ethernet Interface Default Configuration

Feature Default Value

Interface mode switchport mode dynamic auto

Trunk encapsulation switchport trunk encapsulation negotiate

Allowed VLAN range VLANs 1–1005

VLAN range eligible for pruning VLANs 2–1001

Default VLAN (for access ports) VLAN 1

Page 417 of the Cisco Systems 4500 user manual — Configuring Ethernet Interfaces for Layer 2 Switching
Page 417 · click to enlarge
Page 417

Chapter 15 Configuring Layer 2 Ethernet Interfaces

Layer 2 Interface Configuration Guidelines and Restrictions

Table 15-3 Layer 2 Ethernet Interface Default Configuration (continued)

Feature Default Value

Native VLAN (for 802.1Q only trunks)

VLAN 1

STP1 Enabled for all VLANs

STP port priority 128

STP port cost • 100 for 10-Mbps Ethernet LAN ports

  • 19 for 10/100-Mbps Fast Ethernet ports
  • 19 for 100-Mbps Fast Ethernet ports
  • 4 for 1000-Mbps Gigabit Ethernet ports
  • 2 for 10,000-Mbps 10-Gigabit Ethernet LAN ports
1. STP = Spanning Tree Protocol

Layer 2 Interface Configuration Guidelines and Restrictions

When using (or configuring) Layer 2 interfaces, consider these guidelines and restrictions:

  • In a network of Cisco switches connected through 802.1Q trunks, the switches maintain one instance of spanning tree for each VLAN allowed on the trunks. Non-Cisco 802.1Q switches maintain only one instance of spanning tree for all VLANs allowed on the trunks.

When you connect a Cisco switch to a non-Cisco device through an 802.1Q trunk, the Cisco switch combines the spanning tree instance of the native VLAN of the trunk with the spanning tree instance of the non-Cisco 802.1Q switch. However, spanning tree information for each VLAN is maintained by Cisco switches separated by a cloud of non-Cisco 802.1Q switches. The non-Cisco 802.1Q cloud separating the Cisco switches is treated as a single trunk link between the switches.

  • Make sure the native VLAN for an 802.1Q trunk is the same on both ends of the trunk link. If the VLAN on one end of the trunk is different from the VLAN on the other end, spanning tree loops might result.
  • Disabling spanning tree on any VLAN of an 802.1Q trunk can cause spanning tree loops.

Configuring Ethernet Interfaces for Layer 2 Switching

The following sections describe how to configure Layer 2 switching on a Catalyst 4500 series switch:

  • Configuring an Ethernet Interface as a Layer 2 Trunk, page 15-6
  • Configuring an Interface as a Layer 2 Access Port, page 15-8
  • Clearing Layer 2 Configuration, page 15-9
Page 418 of the Cisco Systems 4500 user manual — Configuring an Ethernet Interface as a Layer 2 Trunk
Page 418 · click to enlarge
Page 418

Chapter 15 Configuring Layer 2 Ethernet Interfaces Configuring Ethernet Interfaces for Layer 2 Switching

Configuring an Ethernet Interface as a Layer 2 Trunk

Note The default for Layer 2 interfaces is switchport mode dynamic auto. If the neighboring interface supports trunking and is configured to trunk mode or dynamic desirable mode, the link becomes a Layer 2 trunk. By default, trunks negotiate encapsulation. If the neighboring interface supports ISL and 802.1Q encapsulation and both interfaces are set to negotiate the encapsulation type, the trunk uses ISL encapsulation.

To configure an interface as a Layer 2 trunk, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the interface to configure.

Step 2 Switch(config-if)# shutdown (Optional) Shuts down the interface to prevent traffic flow until configuration is complete.

Step 3 Switch(config-if)# switchport trunk encapsulation {isl | dot1q | negotiate}

(Optional) Specifies the encapsulation.

Step 4 Switch(config-if)# switchport mode {dynamic {auto | desirable} | trunk}

Configures the interface as a Layer 2 trunk. (Required only if the interface is a Layer 2 access port or to specify the trunking mode.)

Step 5 Switch(config-if)# switchport access vlan vlan_num

(Optional) Specifies the access VLAN, which is used if the interface stops trunking. The access VLAN is not used as the native VLAN.

Step 6 Switch(config-if)# switchport trunk native vlan vlan_num

For 802.1Q trunks, specifies the native VLAN.

Step 7 Switch(config-if)# switchport trunk allowed vlan {add | except | all | remove} vlan_num[,vlan_num[,vlan_num[, ]]

(Optional) Configures the list of VLANs allowed on the trunk. All VLANs are allowed by default. You cannot remove any of the default VLANs from a trunk.

Page 419 of the Cisco Systems 4500 user manual — Configuring Layer 2 Ethernet Interfaces
Page 419 · click to enlarge
Page 419

Chapter 15 Configuring Layer 2 Ethernet Interfaces

Configuring Ethernet Interfaces for Layer 2 Switching

Step 8 Switch(config-if)# switchport trunk pruning vlan {add | except | none | remove} vlan_num[,vlan_num[,vlan_num[, ]]

(Optional) Configures the list of VLANs allowed to be pruned from the trunk (see the “VLAN Trunking Protocol” section on page 13-7). The default list of VLANs allowed to be pruned contains all VLANs, except for VLAN 1.

Step 9 Switch(config-if)# no shutdown Activates the interface. (Required only if you shut down the interface.)

Step 10 Switch(config-if)# end Exits interface configuration mode.

Step 11 Switch# show running-config interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Displays the running configuration of the interface.

Step 12 Switch# show interfaces [fastethernet | gigabitethernet | tengigabitethernet] slot/port switchport

Displays the switch port configuration of the interface.

Step 13 Switch# show interfaces [{fastethernet | gigabitethernet | tengigabitethernet} slot/port] trunk

Displays the trunk configuration of the interface.

This example shows how to configure the Fast Ethernet interface 5/8 as an 802.1Q trunk. This example assumes that the neighbor interface is configured to support 802.1Q trunking and that the native VLAN defaults to VLAN 1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/8 Switch(config-if)# shutdown Switch(config-if)# switchport mode dynamic desirable Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# no shutdown Switch(config-if)# end Switch# exit

This example shows how to verify the running configuration:

Switch# show running-config interface fastethernet 5/8 Building configuration... Current configuration: ! interface FastEthernet5/8 switchport mode dynamic desirable switchport trunk encapsulation dot1q end

This example shows how to verify the switch port configuration:

Switch# show interfaces fastethernet 5/8 switchport Name: Fa5/8 Switchport: Enabled Administrative Mode: dynamic desirable Operational Mode: trunk Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Enabled Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001

Page 420 of the Cisco Systems 4500 user manual — Configuring an Interface as a Layer 2 Access Port
Page 420 · click to enlarge
Page 420

Chapter 15 Configuring Layer 2 Ethernet Interfaces Configuring Ethernet Interfaces for Layer 2 Switching

This example shows how to verify the trunk configuration:

Switch# show interfaces fastethernet 5/8 trunk

Port Mode Encapsulation Status Native vlan Fa5/8 desirable n-802.1q trunking 1

Port Vlans allowed on trunk Fa5/8 1-1005

Port Vlans allowed and active in management domain Fa5/8 1-6,10,20,50,100,152,200,300,303-305,349-351,400,500,521,524,570,801-8 02,850,917,999,1002-1005

Port Vlans in spanning tree forwarding state and not pruned Fa5/8 1-6,10,20,50,100,152,200,300,303-305,349-351,400,500,521,524,570,801-8 02,850,917,999,1002-1005

Configuring an Interface as a Layer 2 Access Port

To configure an interface as a Layer 2 access port, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the interface to configure.

Step 2 Switch(config-if)# shutdown (Optional) Shuts down the interface to prevent traffic flow until configuration is complete.

Step 3 Switch(config-if)# switchport Configures the interface for Layer 2 switching:

  • You must enter the switchport command once without any keywords to configure the interface as a Layer 2 port before you can enter additional switchport commands with keywords.
  • Required only if you previously entered the no switchport command for the interface.

Step 4 Switch(config-if)# switchport mode access Configures the interface as a Layer 2 access port.

Step 5 Switch(config-if)# switchport access vlan vlan_num

Places the interface in a VLAN.

Step 6 Switch(config-if)# no shutdown Activates the interface. (Required only if you had shut down the interface.)

Step 7 Switch(config-if)# end Exits interface configuration mode.

Switch#

Page 421 of the Cisco Systems 4500 user manual — Clearing Layer 2 Configuration
Page 421 · click to enlarge
Page 421

Chapter 15 Configuring Layer 2 Ethernet Interfaces

Configuring Ethernet Interfaces for Layer 2 Switching

Step 8 Switch# show running-config interface {fastethernet | gigabitethernet} slot/port

Displays the running configuration of the interface.

Step 9 Switch# show interfaces [{fastethernet | gigabitethernet | tengigabitethernet} slot/port] switchport

Displays the switch port configuration of the interface.

This example shows how to configure the Fast Ethernet interface 5/6 as an access port in VLAN 200:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/6 Switch(config-if)# shutdown Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 200 Switch(config-if)# no shutdown Switch(config-if)# end Switch# exit

This example shows how to verify the running configuration:

Switch# show running-config interface fastethernet 5/6 Building configuration... ! Current configuration :33 bytes interface FastEthernet 5/6 switchport access vlan 200 switchport mode access end

This example shows how to verify the switch port configuration:

Switch# show interface fastethernet 5/6 switchport Name:Fa5/6 Switchport:Enabled Administrative Mode:dynamic auto Operational Mode:static access Administrative Trunking Encapsulation:negotiate Operational Trunking Encapsulation:native Negotiation of Trunking:On Access Mode VLAN:1 (default) Trunking Native Mode VLAN:1 (default) Administrative private-vlan host-association:none Administrative private-vlan mapping:none Operational private-vlan:none Trunking VLANs Enabled:ALL Pruning VLANs Enabled:2-1001 Switch#

Clearing Layer 2 Configuration

To clear the Layer 2 configuration on an interface, perform this task:

Step 1 Switch(config)# default interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the interface to clear.

Step 2 Switch(config-if)# end Exits interface configuration mode.

Page 422 of the Cisco Systems 4500 user manual — Configuring Layer 2 Ethernet Interfaces
Page 422 · click to enlarge
Page 422

Chapter 15 Configuring Layer 2 Ethernet Interfaces Configuring Ethernet Interfaces for Layer 2 Switching

Step 3 Switch# show running-config interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Displays the running configuration of the interface.

Step 4 Switch# show interfaces [{fastethernet | gigabitethernet | tengigabitethernet} slot/port] switchport

Displays the switch port configuration of the interface.

This example shows how to clear the Layer 2 configuration on the Fast Ethernet interface 5/6:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# default interface fastethernet 5/6 Switch(config)# end Switch# exit

This example shows how to verify that the Layer 2 configuration was cleared:

Switch# show running-config interface fastethernet 5/6 Building configuration... Current configuration: ! interface FastEthernet5/6 end

This example shows how to verify the switch port configuration:

Switch# show interfaces fastethernet 5/6 switchport Name: Fa5/6 Switchport: Enabled Switch#

Page 423 of the Cisco Systems 4500 user manual — About Auto SmartPorts
Page 423 · click to enlarge
Page 423

C H A P T E R

Configuring Auto SmartPort Macros

This chapter describes how to configure and apply Auto SmartPort macros on the Catalyst 4500 series switch.

This chapter includes the following major sections:

  • About Auto SmartPorts, page 17-1
  • Configuring Auto SmartPorts, page 17-2
  • Displaying Auto SmartPorts, page 17-13

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Auto SmartPorts

Auto SmartPort macros dynamically configure ports based on the device type detected on the port. When the switch detects a new device on a port, it applies the appropriate Auto SmartPorts macro. When a link-down event occurs on the port, the switch removes the macro. For example, when you connect a Cisco IP phone to a port, Auto SmartPorts automatically applies the Cisco IP phone macro. The Cisco IP phone macro enables quality of service (QoS), security features, and a dedicated voice VLAN to ensure proper treatment of delay-sensitive voice traffic.

Auto SmartPorts uses event triggers to map devices to macros. The most common event triggers are based on Cisco Discovery Protocol (CDP) messages received from connected devices. The detection of a device (Cisco IP phone, Cisco wireless access point, Cisco switch, or Cisco router) invokes an event trigger for that device.

Link Layer Discovery Protocol (LLDP) is used to detect devices that do not support CDP. Other mechanisms used as event triggers include the 802.1X authentication result and MAC-address learned.

Page 424 of the Cisco Systems 4500 user manual — Configuring Auto SmartPorts
Page 424 · click to enlarge
Page 424

Chapter 17 Configuring Auto SmartPort Macros Configuring Auto SmartPorts

System built-in event triggers exist for various devices based mostly on CDP and LLDP messages (Table 17-1) and some MAC address.and some MAC address. (Through Cisco IOS Release 12.2(54)SG, DMP is detected using the MAC address. Starting with Cisco IOS Release 15.0(2)SG, DMP is also detected using CDP.) These triggers are enabled as long as Auto SmartPort is enabled.

You can also define your own trigger. User-defined triggers can be CDP/LLDP-based, a group of MAC addresses, or the value of the attribute-value (AV) pair for the auto-smart-port keyword.

The Auto SmartPort macros are groups of CLI commands. Detection of devices on a port triggers the application of the macro for the device. (For example, detecting a CISCO_PHONE event on a port triggers the switch to apply the commands in the CISCO_PHONE_AUTO_SMARTPORT macro.) System built-in macros exist for various devices, and, by default, system built-in triggers are mapped to the corresponding built-in macros. You can change the mapping of built-in triggers or macros as needed.

A macro basically applies or removes a set of CLIs on an interface based on the link status. In a macro, the link status is checked. If the link is up, then a set of CLIs is applied; if the link is down, the set is removed (the no format of the CLIs are applied). The part of the macro that applies the set of CLIs is termed macro. The part that removes the CLIs (the no format of the CLIs) are termed antimacro.

Besides creating user-defined triggers, you can also create user-defined macros and map one to the other among all triggers (both built-in and user-defined) and all macros (both built-in and user-defined). Use the Cisco IOS scripting capability to create the macros. Cisco IOS scripting is a BASH-like language syntax for command automation and variable replacement.

The four detection mechanisms adhere to the following order of priority:

  • If 802.1X authentication is configured on a port, an authentication response-based trigger is applied, and other triggers are ignored.
  • If 802.1X authentication fails and the CDP/LLDP fallback mechanism is configured, CDP/LLDP triggers for phone devices only; if no fallback mechanism is configured, or a device is not a phone device, nothing is triggered.
  • If 802.1X authentication is configured on a port, a MAC address-based trigger is never triggered.
  • If 802.1X authentication is not configured on a port, CDP/LLDP has priority over a MAC address-based trigger with a hold-off timer applied for MAC-address based trigger. Between CDP/LLDP, there is no particular order; whichever one arrives first is triggered.

Configuring Auto SmartPorts

The following topics are included:

  • Enabling Auto SmartPorts, page 17-3
  • Auto SmartPorts Configuration Guidelines, page 17-4
  • Configuring Auto SmartPorts Built-in Macro Parameters, page 17-6
  • Configuring User-Defined Event Triggers, page 17-7
  • Configuring Mapping Between User-Defined Triggers and Built-in Macros, page 17-9
  • Configuring Auto SmartPorts User-Defined Macros, page 17-9
Page 425 of the Cisco Systems 4500 user manual — Event Trigger Name Description
Page 425 · click to enlarge
Page 425

Chapter 17 Configuring Auto SmartPort Macros

Enabling Auto SmartPorts

To enable Auto SmartPort globally, use the macro auto global processing global configuration command.

To enable Auto SmartPorts, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] macro auto global processing [cdp | lldp]

Enables Auto SmartPorts on the switch globally.

Use no macro auto global processing to disable Auto SmartPort globally.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies that Auto SmartPorts is enabled.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the show shell functions and the show shell triggers privileged EXEC command to display the event triggers, the built-in macros, and the built-in macro default values.

This example shows how enable Auto SmartPorts on the switch and how to disable the feature on a specific interface:

Switch(config)# macro auto global processing Switch(config)# interface interface_id Switch(config-if)# no macro auto processing

Auto SmartPorts Default Configuration

By default, Cisco IOS shell is enabled and Auto SmartPorts is disabled globally.

Table 17-1 shows the Auto SmartPorts built-in event triggers that are embedded in the switch software by default.

Table 17-1 Auto SmartPorts Built-in Event Trigger Macros

Event Trigger Name Description

CISCO_PHONE_EVENT System detects that a phone device is connected to an interface.

CISCO_SWITCH_EVENT System detects that a switch is connected to an interface.

CISCO_ROUTER_EVENT System detects that a router is connected to an interface.

Configuring Auto SmartPorts

Page 426 of the Cisco Systems 4500 user manual — Auto SmartPorts Configuration Guidelines
Page 426 · click to enlarge
Page 426

Chapter 17 Configuring Auto SmartPort Macros Configuring Auto SmartPorts

Table 17-1 Auto SmartPorts Built-in Event Trigger Macros (continued)

Event Trigger Name Description

CISCO_WIRELESS_AP_EVENT System detects that a wireless application is connected to an interface.

CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT System detects that a wireless lightweight application is connected to an interface.

CISCO_DMP_EVENT System detects that a digital media player is connected to an interface.

CISCO_IPVSC_EVENT System detects that an IP video surveillance camera is connected to an interface.

Table 17-2 shows the Auto SmartPorts built-in macros that are embedded in the switch software.

Table 17-2 Auto SmartPorts Built-in Macros

Macro Name Description

CISCO_PHONE_AUTO_ SMARTPORT

Use this macro for Cisco IP phone device. It enables QoS, port security, Address Resolution Protocol (ARP) inspection (dynamic ARP inspection), IP source guard, DHCP snooping, storm control and spanning tree protection on the port.

CISCO_SWITCH_AUTO_ SMARTPORT

Use this macro to apply the switch macro for Cisco switches. It enables trunking on the port.

CISCO_ROUTER_AUTO_ SMARTPORT

Use this macro to apply the router macro for Cisco routers. It enables QoS, trunking, and spanning-tree protection on the port.

CISCO_AP_AUTO_ SMARTPORT

Use this macro to apply the wireless access point (AP) macro for Cisco APs. It enables support for an autonomous wireless access point and QoS on the port.

CISCO_LWAP_AUTO_ SMARTPORT

Use this macro to apply the lightweight wireless access point macro for Cisco lightweight wireless APs. It enables QoS, port security, dynamic ARP inspection, IP source guard, DHCP snooping, storm control, and spanning tree protection on the port.

CISCO_IP_CAMERA_AUTO_SMARTPORT Use this macro for a Cisco IP surveillance camera device. It enables QoS, port security, and access VLAN on the port.

CISCO_DMP_AUTOSMARTPORT Use this macro for a Cisco digital media player device. It enables QoS, port security, and access VLAN on the port.

Auto SmartPorts Configuration Guidelines

Auto SmartPort guidelines include the following:

  • To avoid system conflicts when Auto SmartPorts macros are applied, remove all port configuration except for 802.1X authentication.
Page 427 of the Cisco Systems 4500 user manual — Configuring Auto SmartPort Macros
Page 427 · click to enlarge
Page 427

Chapter 17 Configuring Auto SmartPort Macros

  • If the macro conflicts with the original configuration, some macro commands might not be applied, or some antimacro commands might not be applied. (The antimacro is the portion of the applied macro that removes it at link down.)

For example, if 802.1X authentication is enabled, you cannot remove switchport-mode access configuration. You must remove the 802.1X authentication before removing the configuration.

  • A port should not be a member of an EtherChannel when applying Auto SmartPorts macros.

If Auto SmartPort is not yet enabled globally, disable Auto SmartPort on all the EtherChannel ports before enabling it globally. If Auto SmartPort is already enabled, shut down the port and disable it before adding the port to an EtherChannel.

  • The built-in macro default data VLAN is VLAN 1. The default voice VLAN is VLAN 2. You should modify the built-in macro default values if your switch uses different VLANs. To view all built-in macro default values, use the show shell functions privileged EXEC command.
  • To detect non-Cisco devices for 802.1X authentication or MAB, configure the RADIUS server to support the Cisco AV pair auto-smart-port = event trigger . You must configure a user-defined trigger with the value returned in the AV pair for auto-smart-port .
  • For stationary devices that do not support CDP, MAB, or 802.1X authentication, such as network printers, we recommend that you disable Auto SmartPorts on the port.
  • If authentication is enabled on a port, the switch ignores CDP unless the fallback cdp keyword is in the macro auto global processing global configuration command.
  • The order of CLI commands within the macro and the corresponding antimacro can differ.
  • Before converting a port into an Layer 3 interface, enter the no macro auto processing command. This prevents Auto SmartPort from applying macros on the interface. If Layer 3 is already configured, enter the no macro auto processing command on the Layer 3 interface enable Auto SmartPort globally.
  • Auto SmartPort and SmartPorts cannot coexist on an interface.
  • A switch applies a macro in accordance with the LLDP advertisement from the attached device. If the device does not identify itself properly, the wrong macro is applied. Consult the specific device documentation to ensure the device's firmware is current.
  • The LWAP’s WLC software version must be 6.0.188 ( => Cisco IOS 12.4(21a)JA2) or later to make it detectable as LWAP by AutoSmartPort.
  • As of Cisco IOS Release 12.2(54)SG, Auto SmartPort does not support macros that apply EtherChannel configurations. Interfaces that belong to EtherChannel groups are treated as standard interfaces. You can apply macros on individual interfaces based on the device type but the CLIs in the macro (for example, auto-QoS) might conflict with an EtherChannel configuration. We recommend that you disable Auto SmartPort on interfaces belonging to EtherChannels before you enable Auto SmartPort globally. If Auto SmartPort is already enabled, disable Auto SmartPort on the interfaces before configuring EtherChannel.

Configuring Auto SmartPorts

Page 428 of the Cisco Systems 4500 user manual — Configuring Auto SmartPorts Built-in Macro Parameters
Page 428 · click to enlarge
Page 428

Chapter 17 Configuring Auto SmartPort Macros Configuring Auto SmartPorts

Configuring Auto SmartPorts Built-in Macro Parameters

The switch automatically maps from built-in event triggers to built-in macros. You can replace the built-in macro default values with values that are specific to your switch.

To configure Auto SmartPorts built-in macros parameters, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# macro auto execute event trigger builtin built-in macro name [parameter=value] [parameter=value]

Defines mapping from an event trigger to a built-in macro.

Specify an event trigger value:

  • CISCO_PHONE_EVENT
  • CISCO_SWITCH_EVENT
  • CISCO_ROUTER_EVENT
  • CISCO_WIRELESS_AP_EVENT
  • CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT
  • CISCO_DMP_EVENT
  • CISCO_IPVSC_EVENT
  • WORD—Apply a user-defined event trigger.

Specify a built-in macro name value:

  • CISCO_PHONE_AUTO_SMARTPORT (Optional) Specify the parameter values: $ACCESS_VLAN=(1) and $VOICE_VLAN=(2).
  • CISCO_SWITCH_AUTO_SMARTPORT (Optional) Specify the parameter values: $NATIVE_VLAN=(1).
  • CISCO_ROUTER_AUTO_SMARTPORT (Optional) Specify the parameter values: $NATIVE_VLAN=(1).
  • CISCO_AP_AUTO_SMARTPORT (Optional) Specify the parameter values: $NATIVE_VLAN=(1).
  • CISCO_LWAP_AUTO_SMARTPORT (Optional) Specify the parameter values: $ACCESS_VLAN=(1).
  • CISCO_DMP_AUTO_SMARTPORT
  • CISCO_IP_CAMERA_AUTO_SMARTPORT

(Optional) parameter=value—Replace default values that begin with $. Enter new values in the form of name value pair separated by a space: [name1=value1 name2=value2...]. Default values are shown in parenthesis.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 429 of the Cisco Systems 4500 user manual — 802.1X-Based Event Trigger
Page 429 · click to enlarge
Page 429

Chapter 17 Configuring Auto SmartPort Macros

The no macro auto execute event trigger {[builtin built-in macro name [parameter=value]] | [[parameter=value] {function contents}]} command deletes the mapping.

This example shows how to use two built-in Auto SmartPorts macros for connecting Cisco switches and Cisco IP phones to the switch. This example modifies the default voice VLAN, access VLAN, and native VLAN for the trunk interface:

Switch# configure terminal Switch(config)# macro auto execute CISCO_PHONE_EVENT builtin CISCO_PHONE_AUTO_SMARTPORT ACCESS_VLAN=10 VOICE_VLAN=20 Switch(config)# Switch(config)# Switch(config)#!!! the next command enables auto smart ports globally Switch(config)# macro auto global processing fallback cdp Switch(config)# Switch(config)# exit Switch# Switch# show running-config interface gigabitethernet2/7 Building configuration...

Current configuration : 284 bytes ! switchport access vlan 10 switchport mode access switchport voice vlan 2 switchport port-security maximum 2 switchport port-security switchport port-security aging time 2 switchport port-security violation restrict switchport port-security aging type inactivity auto qos voip cisco-phone qos trust device cisco-phone neighbor device type phone macro description CISCO_PHONE_EVENT spanning-tree portfast spanning-tree bpduguard enable service-policy input AutoQos-VoIP-Input-Cos-Policy service-policy output AutoQos-VoIP-Output-Policy end

Configuring User-Defined Event Triggers

You can configure two types of event triggers: user-defined and MAC address-based.

The following sections describe these triggers:

  • 802.1X-Based Event Trigger, page 17-7
  • MAC Address-Based Event Trigger, page 17-8

802.1X-Based Event Trigger

When using MAB or 802.1X authentication to trigger Auto SmartPorts macros, you need to create an event trigger that corresponds to the Cisco AV pair (auto-smart-port=event trigger) sent by the RADIUS server.

Configuring Auto SmartPorts

Page 430 of the Cisco Systems 4500 user manual — MAC Address-Based Event Trigger
Page 430 · click to enlarge
Page 430

Chapter 17 Configuring Auto SmartPort Macros Configuring Auto SmartPorts

To configure an event trigger, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# shell trigger identifier description

Specifies the event trigger identifier and description.

The identifier should have no spaces or hyphens between words.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show shell triggers Displays the event triggers on the switch.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no shell trigger identifier global configuration command to delete the event trigger.

The following example shows how to define a user-defined trigger:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# shell trigger RADIUS_MAB_EVENT MAC_AuthBypass Event Switch(config)#

MAC Address-Based Event Trigger

To configure a MAC address group as an event trigger, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# macro auto mac-address group

Specifies a group of MAC address as an event trigger.

Changes mode to config-mac-addr-grp. You can then add or remove the MAC address or Organizational Unique Identifier (OUI) from the group.

The group value defines the user-defined trigger.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show shell triggers Displays the event triggers on the switch.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no macro auto mac-address-group grp_name to delete the event trigger.

Page 431 of the Cisco Systems 4500 user manual — Configuring Auto SmartPorts User-Defined Macros
Page 431 · click to enlarge
Page 431

Chapter 17 Configuring Auto SmartPort Macros

Configuring Mapping Between User-Defined Triggers and Built-in Macros

You need to map the user-defined trigger to either a built-in macro or user-defined macro.

To map a user-defined trigger to a built-in macros, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# macro auto execute event trigger builtin built-in macro name [parameter=value] [parameter=value]

Specifies a user-defined event trigger and a macro name. This action replaces built-in macro default values, and configures mapping from an event trigger to a built-in Auto Smartports macro.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show shell triggers Displays the event triggers on the switch.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to map a user-defined event trigger called RADIUS_MAB_EVENT to the built-in macro CISCO_PHONE_AUTO_SMARTPORT with access VLAN set to 10, and how to verify the entries.

This procedure shows how to map a user-defined trigger to a built-in macro:

Step 1 Connect the device to a MAB-enabled switch port.

Step 2 On the RADIUS server, set the attribute-value pair to auto-smart-port=RADIUS_MAB_EVENT.

Step 3 On the switch, create the event trigger RADIUS_MAB_EVENT.

The switch recognizes the attribute-value pair=RADIUS_MAB_EVENT response from the RADIUS server and applies the macro CISCO_PHONE_AUTO_SMARTPORT, as in the following example:

Switch(config)# macro auto execute RADIUS_MAB_EVENT builtin CISCO_PHONE_AUTO_SMARTPORT ACCESS_VLAN=10 Switch(config)# exit Switch# show shell triggers User defined triggers Trigger Id: RADIUS_MAB_EVENT Trigger description: MAC_AuthBypass Event Trigger environment: Trigger mapping function: CISCO_PHONE_AUTO_SMARTPORT

Configuring Auto SmartPorts User-Defined Macros

The Cisco IOS shell provides basic scripting capabilities for configuring the user-defined Auto SmartPorts macros. These macros can contain multiple lines and can include any CLI command. You can also define variable substitution, conditionals, functions, and triggers within the macro.

Configuring Auto SmartPorts

Page 432 of the Cisco Systems 4500 user manual — Parameter Name Meaning
Page 432 · click to enlarge
Page 432

Chapter 17 Configuring Auto SmartPort Macros Configuring Auto SmartPorts

Inside a user-defined macro, besides parameters specified through macro auto execute trigger parameter-name=value .., you also can use the following variables published by EEM (Table 17-3):

Table 17-3 Variables Published by EEM

Parameter Name Meaning

$INTERFACE Name of the interface where the trigger event is detected.

$LINKUP Indicates whether the interface is up or down (true/false).

$TRIGGER Name of the trigger event that is raised (for example, CISCO_PHONE_EVENT).

$AUTH_ENABLED Indicates whether 802.1X authentication is configured on the interface (true/false).

To map an event trigger to a user-defined macro, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# macro auto execute event trigger [parameter=value] {function contents}

Specifies a user-defined macro that maps to an event trigger.

Specify an event trigger value:

  • CISCO_PHONE_EVENT
  • CISCO_SWITCH_EVENT
  • CISCO_ROUTER_EVENT
  • CISCO_WIRELESS_AP_EVENT
  • CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT
  • WORD Applies a user-defined event trigger.
  • CISCO_DMP_EVENT
  • CISCO_IPVSC_EVENT

function contents—Specifies a user-defined macro to associate with the trigger. Enter the macro contents within braces. Begin the Cisco IOS shell commands with the left brace and end the command grouping with the right brace.

(Optional) parameter=value—Replaces default values that begin with $, enter new values in the form of name value pair separated by a space: [name1=value1 name2=value2...].

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 433 of the Cisco Systems 4500 user manual — Configuring Auto SmartPort Macros
Page 433 · click to enlarge
Page 433

Chapter 17 Configuring Auto SmartPort Macros

This example shows how to map a user-defined event trigger called Cisco Digital Media Player (DMP) to a user-defined macro.

Step 1 Connect the DMP to an 802.1X- or MAB-enabled switch port.

Step 2 On the RADIUS server, set the attribute-value pair to auto-smart-port =MY_MEDIAPLAYER_EVENT.

Step 3 On the switch, create the event trigger CISCO_DMP_EVENT, and map it to the user-defined macro commands shown below.

The switch recognizes the attribute-value pair=CISCO_DMP_EVENT response from the RADIUS server and applies the macro associated with this event trigger.

The following example shows the macro portion of the automacro:

Switch(config)# shell trigger CISCO_DMP_EVENT Cisco DMP player Switch(config)# macro auto execute CISCO_DMP_EVENT { if [[ $LINKUP -eq YES ]]; then conf t interface $INTERFACE macro description $TRIGGER switchport access vlan 1 switchport mode access switchport port-security switchport port-security maximum 1 switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity spanning-tree portfast spanning-tree bpduguard enable exit fi

The following represents the anti-macro portion of the automacro:

if [[ $LINKUP -eq NO ]]; then conf t interface $INTERFACE no macro description $TRIGGER no switchport access vlan 1 if [[ $AUTH_ENABLED -eq NO ]]; then no switchport mode access fi no switchport port-security no switchport port-security maximum 1 no switchport port-security violation restrict no switchport port-security aging time 2 no switchport port-security aging type inactivity no spanning-tree portfast no spanning-tree bpduguard enable exit fi } Switch(config)# end

Configuring Auto SmartPorts

Page 434 of the Cisco Systems 4500 user manual — Command Description
Page 434 · click to enlarge
Page 434

Chapter 17 Configuring Auto SmartPort Macros Configuring Auto SmartPorts

Table 17-4 lists the supported shell keywords your can apply in your macros and antimacro statements.

Table 17-4 Supported Cisco IOS Shell Keywords

Command Description

{ Begin the command grouping.

} End the command grouping.

[[ Use as a conditional construct.

]] Use as a conditional construct.

else Use as a conditional construct.

-eq Use as a conditional construct.

fi Use as a conditional construct.

if Use as a conditional construct.

then Use as a conditional construct.

-z Use as a conditional construct.

$ Variables that begin with the $ character are replaced with a parameter value.

# Use the # character to enter comment text.

Table 17-5 lists the shell keywords that are not supported in macros and antimacros.

Table 17-5 Unsupported Cisco IOS Shell Reserved Keywords

Command Description

| Pipeline.

case Conditional construct.

esac Conditional construct.

for Looping construct.

function Shell function.

in Conditional construct.

select Conditional construct.

time Pipeline.

until Looping construct.

while Looping construct.

Page 435 of the Cisco Systems 4500 user manual — Displaying Auto SmartPorts
Page 435 · click to enlarge
Page 435

Chapter 17 Configuring Auto SmartPort Macros

Displaying Auto SmartPorts

To display the Auto SmartPorts and static SmartPorts macros, use one or more of the privileged EXEC commands in Table 17-6.

Table 17-6 Commands for Displaying Auto SmartPorts and Static SmartPorts Macros

show parser macro Displays all static SmartPorts macros.

show parser macro name macro-name Displays a specific static SmartPorts macro.

show parser macro brief Displays the static SmartPorts macro names.

show parser macro description [interface interface-id]

Displays the static SmartPorts macro description for all interfaces or for a specified interface.

show shell Displays information about Auto SmartPorts event triggers and macros.

This example shows how to use the show shell triggers privileged EXEC command to view the event triggers in the switch software:

Switch# show shell triggers

User defined triggers Built-in triggers Trigger Id: CISCO_PHONE_EVENT Trigger description: Event for ip-phone macro Trigger environment: ACCESS_VLAN=1 VOICE_VLAN=2 Trigger mapping function: CISCO_PHONE_AUTO_SMARTPORT

Trigger Id: CISCO_ROUTER_EVENT Trigger description: Event for router macro Trigger environment: NATIVE_VLAN=1 Trigger mapping function: CISCO_ROUTER_AUTO_SMARTPORT

Trigger Id: CISCO_SWITCH_EVENT Trigger description: Event for switch macro Trigger environment: NATIVE_VLAN=1 Trigger mapping function: CISCO_SWITCH_AUTO_SMARTPORT

Trigger Id: CISCO_WIRELESS_AP_EVENT Trigger description: Event for Wireless Access Point macro Trigger environment: NATIVE_VLAN=1 Trigger mapping function: CISCO_AP_AUTO_SMARTPORT

Trigger Id: CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT Trigger description: Event for Wireless Lightweight Access Point macro Trigger environment: NATIVE_VLAN=1 Trigger mapping function: CISCO_LWAP_AUTO_SMARTPORT

This example shows how to use the show shell functions privileged EXEC command to view the built-in macros in the switch software:

Switch# show shell functions #User defined functions:

#Built-in functions:

Displaying Auto SmartPorts

Page 436 of the Cisco Systems 4500 user manual — Configuring Auto SmartPort Macros
Page 436 · click to enlarge
Page 436

Chapter 17 Configuring Auto SmartPort Macros Displaying Auto SmartPorts

function CISCO_AP_AUTO_SMARTPORT () { if [[ $LINKUP -eq YES ]]; then conf t interface $INTERFACE macro description $TRIGGER switchport trunk encapsulation dot1q switchport trunk native vlan $NATIVE_VLAN switchport trunk allowed vlan ALL switchport mode trunk switchport nonegotiate auto qos voip trust mls qos trust cos exit end fi if [[ $LINKUP -eq NO ]]; then conf t interface $INTERFACE no macro description no switchport nonegotiate no switchport trunk native vlan $NATIVE_VLAN no switchport trunk allowed vlan ALL no auto qos voip trust no mls qos trust cos if [[ $AUTH_ENABLED -eq NO ]]; then no switchport mode no switchport trunk encapsulation fi exit end fi }

function CISCO_SWITCH_AUTO_SMARTPORT () { if [[ $LINKUP -eq YES ]]; then conf t interface $INTERFACE macro description $TRIGGER auto qos voip trust switchport trunk encapsulation dot1q switchport trunk native vlan $NATIVE_VLAN switchport trunk allowed vlan ALL switchport mode trunk exit end else conf t interface $INTERFACE no macro description no auto qos voip trust no switchport mode trunk no switchport trunk encapsulation dot1q no switchport trunk native vlan $NATIVE_VLAN no switchport trunk allowed vlan ALL exit end fi }

Page 437 of the Cisco Systems 4500 user manual — About SmartPort Macros and Static SmartPort
Page 437 · click to enlarge
Page 437

C H A P T E R

Configuring SmartPort Macros

This chapter describes how to configure and apply SmartPort and Static SmartPort macros on your switch. This chapter consists of these sections:

  • About SmartPort Macros and Static SmartPort, page 16-1
  • Configuring SmartPort Macros, page 16-2
  • Displaying SmartPort Macros, page 16-14
  • Configuring Static SmartPort Macros, page 16-14

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About SmartPort Macros and Static SmartPort

SmartPort macros provide a convenient way to save and share common configurations. Use SmartPort macros to enable features and settings based on the location of a switch in the network and for mass configuration deployments across the network.

Each SmartPort macro is a set of CLI commands that you define. SmartPort macro sets do not contain new CLI commands; each SmartPort macro is a group of existing CLI commands.

When you apply a SmartPort macro on an interface, the CLI commands contained within the macro are configured on the interface. When the macro is applied to an interface, the existing interface configurations are not lost. The new commands are added to interface and are saved in the running configuration file.

In addition to SmartPort macros, static SmartPort macros provide port configuration that you manually apply based on the device connected to the port. When you apply a static SmartPort macro the CLI commands within the macro are added to the existing port configuration. When there is a link-down event on the port, the switch does not remove the static macro.

Page 438 of the Cisco Systems 4500 user manual — Configuring SmartPort Macros
Page 438 · click to enlarge
Page 438

Chapter 16 Configuring SmartPort Macros Configuring SmartPort Macros

Cisco-default SmartPort macros are embedded in the switch software (see Table 16-1). You can display these macros and the commands they contain by using the show parser macro user EXEC command.

Table 16-1 Cisco-Default SmartPort Macros

Macro Name 1

Description

cisco-global Use this global configuration macro to enable rapid PVST+, loop guard, and dynamic port error recovery for link state failures.

cisco-desktop Use this interface configuration macro for increased network security and reliability when connecting a desktop device, such as a PC, to a switch port.

cisco-phone Use this interface configuration macro when connecting a desktop device such as a PC with a Cisco IP Phone to a switch port. This macro is an extension of the cisco-desktop macro and provides the same security and resiliency features, but with the addition of dedicated voice VLANs to ensure proper treatment of delay-sensitive voice traffic.

cisco-switch Use this interface configuration macro when connecting an access switch and a distribution switch or between access switches connected using GigaStack modules or GBICs.

cisco-router Use this interface configuration macro when connecting the switch and a WAN router.

1. Cisco-default SmartPort macros vary depending on the software version running on your switch.

Cisco also provides a collection of pretested, Cisco-recommended baseline configuration templates for Catalyst switches. The online reference guide templates provide the CLI commands that you use to create SmartPort macros based on the use of the port. Use the configuration templates to create SmartPort macros to build and deploy Cisco-recommended network designs and configurations.

Configuring SmartPort Macros

You can create a new SmartPort macro or use an existing macro as a template to create a new macro that is specific to your application. After you create the macro, you can apply it to an interface or a range of interfaces.

This section includes information about these topics:

  • Passing Parameters Through the Macro, page 16-3
  • Default SmartPort Macro Configuration, page 16-4
  • SmartPort Macro Configuration Guidelines, page 16-6
  • Creating SmartPort Macros, page 16-8
  • Applying SmartPort Macros, page 16-9
Page 439 of the Cisco Systems 4500 user manual — Macro Parameter Help
Page 439 · click to enlarge
Page 439

Chapter 16 Configuring SmartPort Macros

Passing Parameters Through the Macro

Some commands might not be sufficiently generic for all the interfaces; for example, VLAN ID for Layer 2 interfaces and the IP address for Layer 3 interface. Retaining such commands in macro definitions requires that you change the value of such parameters (such as VLAN ID or IP address) before applying the macro to different interfaces. Alternatively, it requires that you create different macros for each possible value of its parameters.

The macro infrastructure can be enhanced to support accepting parameters while applying a macro. The parameters are passed as keyword-value pairs.

The CLI limits the number of keyword-value pairs to a maximum of three, where the first parameter must be the keyword, the second is its corresponding value, and the third parameter is the keyword for the second keyword-value pair. Here is an example of how to pass parameters to a command macro:

Switch(config)# macro name parameter-test Enter macro commands one per line. End with the character '@'. switchport mode access switchport access vlan $VLANID switchport port-security switchport port-security maximum $MAXHOST

If the above macro is applied to some interface without parameters, the invalid commands fail. Instead, you should apply the macro with appropriate keyword-value pair parameters, as follows:

Switch(config-if)# macro apply parameter-test $VLANID 1 $MAXHOST 5

The above command applies the macro after replacing $VLANID with 1 and $MAXHOST with 5. Be aware that you can specify any string in the macro as a keyword.

Macro Parameter Help

It is often difficult to remember the macro keywords while applying a macro to an interface or switch. Macros can contain the definitions for mandatory keywords. If you apply a macro without those keyword values, the commands are considered invalid and they fail.

You can enhance the macro infrastructure to provide help on keywords defined in macros. While creating a macro, you can specify a help string (as a comment) to list the mandatory keywords for that macro.

The following example illustrates how to specify the help string for the keywords:

Switch(config)# macro name test switchport access vlan $VLANID switchport port-security maximum $MAX #macro keywords $VLANID $MAX

Help string can be anywhere in the macro. The following example illustrates an alternate way to specify the help string:

Switch(config)# macro name test switchport access vlan $VLANID #macro keywords $VLANID switchport port-security maximum $MAX #macro keywords $MAX

Configuring SmartPort Macros

Page 440 of the Cisco Systems 4500 user manual — cisco-desktop
Page 440 · click to enlarge
Page 440

Chapter 16 Configuring SmartPort Macros Configuring SmartPort Macros

Default SmartPort Macro Configuration

This section illustrates the default configurations for the four supported macros. These macros can only be viewed and applied; they cannot be modified by the user.

  • cisco-global, page 16-4
  • cisco-desktop, page 16-4
  • cisco-phone, page 16-5
  • cisco-router, page 16-5
  • cisco-switch, page 16-5

cisco-global

This is the example for the cisco-global macro:

# Enable dynamic port error recovery for link state failures. errdisable recovery cause link-flap errdisable recovery interval 60

# VTP requires Transparent mode for future 802.1x Guest VLAN # and current Best Practice vtp domain [smartports] vtp mode transparent # Enable aggressive mode UDLD on all fiber uplinks udld aggressive

# Enable Rapid PVST+ and Loopguard spanning-tree mode rapid-pvst spanning-tree loopguard default spanning-tree extend system-id

cisco-desktop

This is the example for the cisco-desktop macro:

# Basic interface - Enable data VLAN only # Recommended value for access vlan (AVID) should not be 1 switchport access vlan $AVID switchport mode access # Enable port security limiting port to a single # MAC address -- that of desktop switchport port-security # Ensure port-security age is greater than one minute # and use inactivity timer # “Port-security maximum 1” is the default and will not # Show up in the config switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity # Configure port as an edge network port spanning-tree portfast spanning-tree bpduguard enable

Page 441 of the Cisco Systems 4500 user manual — cisco-switch
Page 441 · click to enlarge
Page 441

Chapter 16 Configuring SmartPort Macros

cisco-phone

This is the example for the cisco-phone macro:

# VoIP enabled interface - Enable data VLAN # and voice VLAN (VVID) # Recommended value for access vlan (AVID) should not be 1\ switchport access vlan $AVID switchport mode access # Update the Voice VLAN (VVID) value which should be # different from data VLAN # Recommended value for voice vlan (VVID) should not be 1 switchport voice vlan $VVID # Enable port security limiting port to a 2 MAC # addressess -- One for desktop and two for phone switchport port-security switchport port-security maximum 2 # Ensure port-security age is greater than one minute # and use inactivity timer switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity # Enable auto-qos to extend trust to attached Cisco phone auto qos voip cisco-phone # Configure port as an edge network port spanning-tree portfast spanning-tree bpduguard enable@

cisco-router

This is the example for the cisco-router macro:

# Access Uplink to Distribution switchport trunk encapsulation dot1q # Define unique Native VLAN on trunk ports # Recommended value for native vlan (NVID) should not be 1 switchport trunk native vlan $NVID # Update the allowed VLAN range (VRANGE) such that it # includes data, voice and native VLANs # switchport trunk allowed vlan $VRANGE # Hardcode trunk and disable negotiation to # speed up convergence # Hardcode speed and duplex to router switchport mode trunk switchport nonegotiate speed 100 duplex full # Configure qos to trust this interface auto qos voip trust qos trust dscp # Ensure fast access to the network when enabling the interface. # Ensure that switch devices cannot become active on the interface. spanning-tree portfast spanning-tree bpduguard enable

cisco-switch

This is the example for the cisco-switch macro:

# Access Uplink to Distribution switchport trunk encapsulation dot1q # Define unique Native VLAN on trunk ports

Configuring SmartPort Macros

Page 442 of the Cisco Systems 4500 user manual — SmartPort Macro Configuration Guidelines
Page 442 · click to enlarge
Page 442

Chapter 16 Configuring SmartPort Macros Configuring SmartPort Macros

# Recommended value for native vlan (NVID) should not be 1 switchport trunk native vlan $NVID # Update the allowed VLAN range (VRANGE) such that it # includes data, voice and native VLANs # switchport trunk allowed vlan $VRANGE # Hardcode trunk and disable negotiation to # speed up convergence switchport mode trunk switchport nonegotiate # Configure qos to trust this interface auto qos voip trust # 802.1w defines the link as pt-pt for rapid convergence spanning-tree link-type point-to-point

SmartPort Macro Configuration Guidelines

Follow these guidelines when configuring macros on your switch:

  • If a command fails when you apply a macro, either due to a syntax error or to a configuration error, the macro continues to apply the remaining commands to the interface.
  • cisco-global needs to be applied at the global configuration mode. We recommend that you apply this macro before any other interface level macro.
  • Specific keywords are required when you apply the system-defined macros ( cisco-desktop , cisco-phone , cisco-switch , and cisco-router ) on an interface.
  • When using the cisco-phone macro to apply port security, the port security maximum is 2 ( switchport port-security maximum 2 ).
  • At most, three keyword-value pairs are allowed per system-defined macro.
  • When creating a macro, do not use the exit or end commands or change the command mode by using interface interface-id . This could cause commands that follow exit , end , or interface interface-id to execute in a different command mode.
  • When creating a macro, ensure that all CLI commands are in the same configuration mode.
  • When creating a macro that requires the assignment of unique values, use the parameter value keywords to designate values specific to the interface. Keyword matching is case sensitive. All matching occurrences of the keyword are replaced with the corresponding value. Any full match of a keyword, even if it is part of a larger string, is considered a match and is replaced by the corresponding value.
  • Macro names are case sensitive. For example, the commands macro name Sample-Macro and macro name sample-macro result in two separate macros.
  • Some macros might contain keywords that require a parameter value. Use the macro global apply macro-name ? global configuration command or the macro apply macro-name ? interface configuration command to display a list of any required values in the macro. If you apply a macro without entering the keyword values, the commands are invalid and are not applied.
  • When a macro is applied globally to a switch or to a switch interface, all existing configuration on the interface is retained. it is helpful when applying an incremental configuration.
  • If you modify a macro definition by adding or deleting commands, the changes are not reflected on the interface where the original macro was applied. You need to reapply the updated macro on the interface to apply the new or changed commands.
Page 443 of the Cisco Systems 4500 user manual — Configuring SmartPort Macros
Page 443 · click to enlarge
Page 443

Chapter 16 Configuring SmartPort Macros

  • Use the macro global trace macro-name global configuration command or the macro trace macro-name interface configuration command to apply and debug a macro to find any syntax or configuration errors. If a command fails because of a syntax error or a configuration error, the macro continues to apply the remaining commands.
  • Some CLI commands are specific to certain interface types. If a macro is applied to an interface that does not accept the configuration, the macro fails the syntax check or the configuration check, and the switch returns an error message.
  • Applying a macro to an interface range is the same as applying a macro to a single interface. When you use an interface range, the macro is applied sequentially to each interface within the range. If a macro command fails on one interface, it is still applied to the remaining interfaces.
  • When you apply a macro to a switch or a switch interface, the macro name is automatically added to the macro description of the switch or interface. You can display the applied commands and macro names by using the show parser macro description user EXEC command.
  • The user-configurable macro has a buffer that can take commands and comments up to 3000 characters. Each new line takes two characters, and empty lines are counted as is.

Cisco-default SmartPort macros are embedded in the switch software (see Table 16-1). You can display these macros and the commands they contain by using the show parser macro user EXEC command.

Follow these guidelines when you apply a Cisco-default SmartPort macro on an interface:

  • Display all macros on the switch by using the show parser macro user EXEC command. Display the contents of a specific macro by using the show parser macro macro-name user EXEC command.
  • Keywords that begin with $ mean that a unique parameter value is required. Append the Cisco-default macro with the required values by using the parameter value keywords.

The Cisco-default macros use the $ character to help identify required keywords. There is no restriction on using the $ character to define keywords when you create a macro.

Configuring SmartPort Macros

Page 444 of the Cisco Systems 4500 user manual — Creating SmartPort Macros
Page 444 · click to enlarge
Page 444

Chapter 16 Configuring SmartPort Macros Configuring SmartPort Macros

Creating SmartPort Macros

To create a SmartPort macro, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# macro name macro-name

Creates a macro definition, and enter a macro name. A macro definition can contain up to 3000 characters.

Enter the macro commands with one command per line. Use the @ character to end the macro. Use the # character at the beginning of a line to enter comment text within the macro.

Macro names are case sensitive. For example, the commands macro name Sample-Macro and macro name sample-macro result in two separate macros.

We recommend that you do not use the exit or end commands or change the command mode by using interface interface-id in a macro. This could cause any commands following exit, end, or interface interface-id to execute in a different command mode. For best results, all commands in a macro should be in the same configuration mode.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show parser macro name macro-name

Verifies that the macro was created.

Page 445 of the Cisco Systems 4500 user manual — Applying SmartPort Macros
Page 445 · click to enlarge
Page 445

Chapter 16 Configuring SmartPort Macros

Applying SmartPort Macros

To apply a SmartPort macro, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# macro global {apply | trace} macro-name [parameter {value}] [parameter {value}] [parameter {value}]

Applies each individual command defined in the macro to the switch by entering macro global apply macro-name. Specify macro global trace macro-name to apply and debug a macro to find any syntax or configuration errors.

(Optional) Specify unique parameter values that are specific to the switch. You can enter up to three keyword-value pairs. Parameter keyword matching is case sensitive. All matching occurrences of the keyword are replaced with the corresponding value.

Some macros might contain keywords that require a parameter value. Use the macro global apply macro-name ? command to display a list of any required values in the macro. If you apply a macro without entering the keyword values, the commands are invalid and are not applied.

Step 3 Switch(config)# macro global description text

(Optional) Enters a description about the macro that is applied to the switch.

Step 4 Switch(config-if)# interface interface-id

(Optional) Enters interface configuration mode, and specify the interface on which to apply the macro.

Step 5 Switch(config-if)# default interface interface-id

(Optional) Clears all configuration from the specified interface.

Step 6 Switch(config-if)# macro {apply | trace} macro-name [parameter {value}] [parameter {value}] [parameter {value}]

Applies each individual command defined in the macro to the interface by entering macro apply macro-name. Specify macro trace macro-name to apply and debug a macro to find any syntax or configuration errors.

(Optional) Specify unique parameter values that are specific to the interface. You can enter up to three keyword-value pairs. Parameter keyword matching is case sensitive. All matching occurrences of the keyword are replaced with the corresponding value.

Some macros might contain keywords that require a parameter value. Use the macro apply macro-name ? command to display a list of any required values in the macro. If you apply a macro without entering the keyword values, the commands are invalid and are not applied.

For example, here is how you apply this command:

Switch(config-if)# macro apply cisco-phone ? WORD Keyword to replace with a value e.g. $AVID, $VVID

Step 7 Switch(config-if)# macro description text

(Optional) Enters a description about the macro that is applied to the interface.

Step 8 Switch(config-if)# end Returns to privileged EXEC mode.

Configuring SmartPort Macros

Page 446 of the Cisco Systems 4500 user manual — cisco-global
Page 446 · click to enlarge
Page 446

Chapter 16 Configuring SmartPort Macros Configuring SmartPort Macros

Step 9 Switch# show parser macro description [interface interface-id]

Verifies that the macro is applied to the interface.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

You can delete a global macro-applied configuration on a switch only by entering the no version of each command that is in the macro. You can delete a macro-applied configuration on an interface by entering the default interface interface-id interface configuration command.

The no form of the macro name global configuration command deletes only the macro definition. It does not affect the configuration of those interfaces on which the macro is already applied. You can delete a macro-applied configuration on an interface by entering the default interface interface-id interface configuration command. Alternatively, you can create an anti-macro for an existing macro that contains the no form of all the corresponding commands in the original macro and apply the anti-macro to the interface.

The following sections describe how to apply and display the attachments on each of the supported macros:

  • cisco-global, page 16-10
  • cisco-desktop, page 16-11
  • cisco-phone, page 16-11
  • cisco-switch, page 16-12
  • cisco-router, page 16-13

cisco-global

This example shows how to use the system-defined macro cisco-global:

Switch(config)# macro global apply cisco-global Changing VTP domain name from gsg-switch to [smartports] Setting device to VTP TRANSPARENT mode. Switch(config)# end Switch# show parser macro name cisco-global Macro name : cisco-global Macro type : default global # Enable dynamic port error recovery for link state failures. errdisable recovery cause link-flap errdisable recovery interval 60

# VTP requires Transparent mode for future 802.1x Guest VLAN # and current Best Practice vtp domain [smartports] vtp mode transparent

# Enable aggressive mode UDLD on all fiber uplinks udld aggressive

# Enable Rapid PVST+ and Loopguard spanning-tree mode rapid-pvst spanning-tree loopguard default spanning-tree extend system-id

Page 447 of the Cisco Systems 4500 user manual — cisco-phone
Page 447 · click to enlarge
Page 447

Chapter 16 Configuring SmartPort Macros

cisco-desktop

This example shows how to use the system-defined macro cisco-desktop to assign a value of 35 to the access VLAN of the Fast Ethernet interface 2/9.

Switch(config)# interface fastethernet2/9 Switch(config-if)# macro apply cisco-desktop $AVID 35 Switch(config-if)# end Switch# show parser macro name cisco-desktop Macro name : cisco-desktop Macro type : customizable

# Basic interface - Enable data VLAN only # Recommended value for access vlan (AVID) should not be 1 switchport access vlan $AVID [access_vlan_id] switchport mode access # Enable port security limiting port to a single # MAC address -- that of desktop switchport port-security # Ensure port-security age is greater than one minute # and use inactivity timer # “Port-security maximum 1” is the default and will not # Show up in the config switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity # Configure port as an edge network port spanning-tree portfast spanning-tree bpduguard enable Switch# show parser macro description Interface Macro Description Fa2/9 cisco-desktop

cisco-phone

This example shows how to use the system-defined macro cisco-phone to assign a value of 35 to the access VLAN and 56 to the voice VLAN on the Fast Ethernet interface 2/9.

Switch(config)# interface fastethernet2/9 Switch(config-if)# macro apply cisco-phone Switch(config-if)# macro description cisco-phone $AVID 35 $VVID 56 Switch(config-if)# end Switch# show parser macro name cisco-phone Macro name : cisco-phone

Configuring SmartPort Macros

Page 448 of the Cisco Systems 4500 user manual — cisco-switch
Page 448 · click to enlarge
Page 448

Chapter 16 Configuring SmartPort Macros Configuring SmartPort Macros

Macro typecustomizable

# VoIP enabled interface - Enable data VLAN # and voice VLAN (VVID) # Recommended value for access vlan (AVID) should not be 1\ switchport access vlan $AVID [access_vlan_id] switchport mode access # Update the Voice VLAN (VVID) value which should be # different from data VLAN # Recommended value for voice vlan (VVID) should not be 1 switchport voice vlan $VVID [voice_vlan_id] # Enable port security limiting port to a 2 MAC # addressess -- One for desktop and one for phone switchport port-security switchport port-security maximum 2 # Ensure port-security age is greater than one minute # and use inactivity timer switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity # Enable auto-qos to extend trust to attached Cisco phone auto qos voip cisco-phone # Configure port as an edge network port spanning-tree portfast spanning-tree bpduguard enable@

Switch# show parser macro description Interface Macro Description Fa2/9 cisco-phone

cisco-switch

This example shows how to use the system-defined macro cisco-switch to assign a value of 38 to the native VLAN on the Fast Ethernet interface 2/9.

Switch(config)# interface fastethernet2/9 Switch(config-if)# macro apply cisco-switch Switch(config-if)# macro description cisco-switch $NVID 38 Switch(config-if)# end Switch# show parser macro name cisco-switch Macro name : cisco-switch Macro type : customizable

# Access Uplink to Distribution switchport trunk encapsulation dot1q # Define unique Native VLAN on trunk ports # Recommended value for native vlan (NVID) should not be 1 switchport trunk native vlan $NVID [native_vlan_id] # Update the allowed VLAN range (VRANGE) such that it # includes data, voice and native VLANs # switchport trunk allowed vlan $VRANGE [vlan_range] # Hardcode trunk and disable negotiation to

Page 449 of the Cisco Systems 4500 user manual — cisco-router
Page 449 · click to enlarge
Page 449

Chapter 16 Configuring SmartPort Macros

# speed up convergence switchport mode trunk switchport nonegotiate # Configure qos to trust this interface auto qos voip trust # 802.1w defines the link as pt-pt for rapid convergence spanning-tree link-type point-to-point

Switch# show parser macro description Interface Macro Description Fa2/9 cisco-switch

cisco-router

This example shows how to use the system-defined macro cisco-router to assign a value of 451 to the native VLAN on the Fast Ethernet interface 2/9.

Switch(config)# interface fastethernet2/9 Switch(config-if)# macro apply cisco-router Switch(config-if)# macro description cisco-router $NVID 45I Switch(config-if)# end Switch# show parser macro name cisco-router Macro name : cisco-router Macro type : customizable

# Access Uplink to Distribution switchport trunk encapsulation dot1q # Define unique Native VLAN on trunk ports # Recommended value for native vlan (NVID) should not be 1 switchport trunk native vlan $NVID [native_vlan_id] # Update the allowed VLAN range (VRANGE) such that it # includes data, voice and native VLANs # switchport trunk allowed vlan $VRANGE [vlan_range] # Hardcode trunk and disable negotiation to # speed up convergence # Hardcode speed and duplex to router switchport mode trunk switchport nonegotiate speed 100 duplex full # Configure qos to trust this interface auto qos voip trust qos trust dscp # Ensure fast access to the network when enabling the interface. # Ensure that switch devices cannot become active on the interface. spanning-tree portfast spanning-tree bpduguard enable

Switch# show parser macro description Interface Macro Description Fa2/9 cisco-router

Configuring SmartPort Macros

Page 450 of the Cisco Systems 4500 user manual — Macro Name 1
Page 450 · click to enlarge
Page 450

Chapter 16 Configuring SmartPort Macros Displaying SmartPort Macros

Displaying SmartPort Macros

To display the SmartPort macros, use one or more of the privileged EXEC commands in Table 16-2.

Table 16-2 Commands for Displaying SmartPort Macros

show parser macro Displays all configured macros.

show parser macro name macro-name Displays a specific macro.

show parser macro brief Displays the configured macro names.

show parser macro description [interface interface-id]

Displays the macro description for all interfaces or for a specified interface.

Configuring Static SmartPort Macros

This section describes how to configure and enable static SmartPort macros:

  • Default SmartPort Macro Configuration, page 16-4
  • SmartPort Macro Configuration Guidelines, page 16-6
  • Applying Static SmartPort Macros, page 16-15

Default Static SmartPort Configuration

No static SmartPort macros are enabled on the switch.

Table 16-3 Default Static SmartPort Macros

Macro Name 1

Description

cisco-global Use this global configuration macro to enable rapid PVST+, loop guard, and dynamic port error recovery for link state failures.

cisco-desktop Use this interface configuration macro for increased network security and reliability when connecting a desktop device, such as a PC, to a switch port.

cisco-phone Use this interface configuration macro when connecting a desktop device such as a PC with a Cisco IP Phone to a switch port. This macro is an extension of the cisco-desktop macro and provides the same security and resiliency features, but with the addition of dedicated voice VLANs to ensure proper treatment of delay-sensitive voice traffic.

cisco-switch Use this interface configuration macro when connecting an access switch and a distribution switch or between access switches connected by using small form-factor pluggable (SFP) modules.

cisco-router Use this interface configuration macro when connecting the switch and a WAN router.

1. Cisco-default SmartPort macros vary, depending on the software version running on your switch.
Page 451 of the Cisco Systems 4500 user manual — Applying Static SmartPort Macros
Page 451 · click to enlarge
Page 451

Chapter 16 Configuring SmartPort Macros

Configuring Static SmartPort Macros

Static SmartPort Configuration Guidelines

  • When a macro is applied globally to a switch or to a switch interface, all existing configuration on the interface is retained. it is helpful when applying an incremental configuration.
  • If a command fails because of a syntax or a configuration error, the macro continues to apply the remaining commands. Use the macro global trace macro-name global configuration command or the macro trace macro-name interface configuration command to apply and debug a macro to find any syntax or configuration errors.
  • Some CLI commands are specific to certain interface types. If you apply a macro to an interface that does not accept the configuration, the macro fails the syntax or the configuration check, and the switch returns an error message.
  • Applying a macro to an interface range is the same as applying a macro to a single interface. When you use an interface range, the macro is applied sequentially to each interface within the range. If a macro command fails on one interface, it is still applied to the remaining interfaces.
  • When you apply a macro to a switch or a switch interface, the macro name is automatically added to the switch or interface. You can display the applied commands and macro names by using the show running-config user EXEC command.

Applying Static SmartPort Macros

To apply a static SmartPort macro, perform these steps, beginning in privileged EXEC mode:

Step 1 show parser macro Displays the Cisco-default static SmartPort macros embedded in the switch software.

Step 2 show parser macro name macro-name Displays the specific macro that you want to apply.

Step 3 configure terminal Enters global configuration mode.

Step 4 macro global {apply | trace} macro-name [parameter {value}] [parameter {value}] [parameter {value}]

Applies each individual command defined in the macro to the switch by entering macro global apply macro-name. Specify macro global trace macro-name to apply and to debug a macro to find any syntax or configuration errors.

Append the macro with the required values by using the parameter value keywords. Keywords that begin with $ require a unique parameter value.

Use the macro global apply macro-name ? command to display a list of any required values for the macro. If you apply a macro without entering the keyword values, the commands are invalid and are not applied.

(Optional) Specify unique parameter values that are specific to the switch. You can enter up to three keyword-value pairs. Parameter keyword matching is case sensitive. The corresponding value replaces all matching occurrences of the keyword.

Step 5 interface interface-id (Optional) Enters interface configuration mode, and specify the interface on which to apply the macro.

Step 6 default interface interface-id (Optional) Clears all configuration from the specified interface.

Page 452 of the Cisco Systems 4500 user manual — Configuring SmartPort Macros
Page 452 · click to enlarge
Page 452

Chapter 16 Configuring SmartPort Macros Configuring Static SmartPort Macros

Step 7 macro {apply | trace} macro-name [parameter {value}] [parameter {value}] [parameter {value}]

Applies each individual command defined in the macro to the port by entering macro global apply macro-name. Specify macro global trace macro-name to apply and to debug a macro to find any syntax or configuration errors.

Append the macro with the required values by using the parameter value keywords. Keywords that begin with $ require a unique parameter value.

Use the macro global apply macro-name ? command to display a list of any required values for the macro. If you apply a macro without entering the keyword values, the commands are invalid and are not applied.

(Optional) Specify unique parameter values that are specific to the switch. You can enter up to three keyword-value pairs. Parameter keyword matching is case sensitive. The corresponding value replaces all matching occurrences of the keyword.

Step 8 end Returns to privileged EXEC mode.

Step 9 show running-config interface interface-id

Verifies that the macro is applied to an interface.

Step 10 copy running-config startup-config (Optional) Saves your entries in the configuration file.

You can only delete a global macro-applied configuration on a switch by entering the no version of each command in the macro. You can delete a macro-applied configuration on a port by entering the default interface interface-id interface configuration command.

This example shows how to display the cisco-desktop macro, to apply the macro and to set the access VLAN ID to 25 on an interface:

Switch# show parser macro cisco-desktop Macro name : cisco-desktop Macro type : default

# Basic interface - Enable data VLAN only # Recommended value for access vlan (AVID) should not be 1 switchport access vlan $AVID switchport mode access

# Enable port security limiting port to a single # MAC address -- that of desktop switchport port-security switchport port-security maximum 1

# Ensure port-security age is greater than one minute # and use inactivity timer switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity

# Configure port as an edge network port spanning-tree portfast spanning-tree bpduguard enable Switch# configure terminal Switch(config)# interface gigabitethernet1/0/4 Switch(config-if)# macro apply cisco-desktop $AVID 25

Page 453 of the Cisco Systems 4500 user manual — About STP
Page 453 · click to enlarge
Page 453

C H A P T E R

Configuring STP and MST

This chapter describes how to configure the Spanning Tree Protocol (STP) on a Catalyst 4500 series switch. This chapter also describes how to configure the IEEE 802.1s Multiple Spanning Tree (MST) protocol on the Catalyst 4500 series switch. MST is a new IEEE standard derived from Cisco’s proprietary Multi-Instance Spanning-Tree Protocol (MISTP) implementation. With MST, you can map a single spanning-tree instance to several VLANs.

This chapter provides guidelines, procedures, and configuration examples. It includes the following major sections:

  • About STP, page 18-1
  • Default STP Configuration, page 18-7
  • Configuring STP, page 18-7
  • About MST, page 18-22
  • MST Configuration Restrictions and Guidelines, page 18-29
  • Configuring MST, page 18-29

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About STP

STP is a Layer 2 link management protocol that provides path redundancy while preventing undesirable loops in the network. For a Layer 2 Ethernet network to function properly, only one active path can exist between any two stations. A loop-free subset of a network topology is called a spanning tree. The operation of a spanning tree is transparent to end stations, which cannot detect whether they are connected to a single LAN segment or a switched LAN of multiple segments.

Page 454 of the Cisco Systems 4500 user manual — Bridge Priority Value
Page 454 · click to enlarge
Page 454

Chapter 18 Configuring STP and MST About STP

A Catalyst 4500 series switch use STP (the IEEE 802.1D bridge protocol) on all VLANs. By default, a single spanning tree runs on each configured VLAN (provided you do not manually disable the spanning tree). You can enable and disable a spanning tree on a per-VLAN basis.

When you create fault-tolerant internetworks, you must have a loop-free path between all nodes in a network. The spanning tree algorithm calculates the best loop-free path throughout a switched Layer 2 network. Switches send and receive spanning tree frames at regular intervals. The switches do not forward these frames, but use the frames to construct a loop-free path.

Multiple active paths between end stations cause loops in the network. If a loop exists in the network, end stations might receive duplicate messages and switches might learn end station MAC addresses on multiple Layer 2 interfaces. These conditions result in an unstable network.

A spanning tree defines a tree with a root switch and a loop-free path from the root to all switches in the Layer 2 network. A spanning tree forces redundant data paths into a standby (blocked) state. If a network segment in the spanning tree fails and a redundant path exists, the spanning tree algorithm recalculates the spanning tree topology and activates the standby path.

When two ports on a switch are part of a loop, the spanning tree port priority and port path cost setting determine which port is put in the forwarding state and which port is put in the blocking state. The spanning tree port priority value represents the location of an interface in the network topology and how well located it is to pass traffic. The spanning tree port path cost value represents media speed.

These sections describe STP:

  • Understanding the Bridge ID, page 18-2
  • Bridge Protocol Data Units, page 18-3
  • Election of the Root Bridge, page 18-4
  • STP Timers, page 18-4
  • Creating the STP Topology, page 18-5
  • STP Port States, page 18-5
  • MAC Address Allocation, page 18-6
  • STP and IEEE 802.1Q Trunks, page 18-6
  • Per-VLAN Rapid Spanning Tree, page 18-6

Understanding the Bridge ID

Each VLAN on each network device has a unique 64-bit bridge ID consisting of a bridge priority value, an extended system ID, and an STP MAC address allocation.

Bridge Priority Value

The bridge priority value determines whether a given redundant link is given priority and considered part of a given span in a spanning tree. Preference is given to lower values, and if you want to manually configure a preference, assign a lower bridge priority value to a link than to its redundant possibility. With Cisco IOS releases prior to 12.1(12c)EW, the bridge priority is a 16-bit value (see Table 18-1).With Cisco IOS Release 12.1(12c)EW and later releases, the bridge priority is a 4-bit value when the extended system ID is enabled (see Table 18-2). See the “Configuring the Bridge Priority of a VLAN” section on page 18-17.

Page 455 of the Cisco Systems 4500 user manual — Bridge Protocol Data Units
Page 455 · click to enlarge
Page 455

Chapter 18 Configuring STP and MST

Extended System ID

Extended system IDs are VLAN IDs between 1025 and 4096. Cisco IOS Releases 12.1(12c)EW and later releases support a 12-bit extended system ID field as part of the bridge ID (see Table 18-2). Chassis that support only 64 MAC addresses always use the 12-bit extended system ID. On chassis that support 1024 MAC addresses, you can enable use of the extended system ID. STP uses the VLAN ID as the extended system ID. See the “Enabling the Extended System ID” section on page 18-9.

Table 18-1 Bridge Priority Value with the Extended System ID Disabled

Bridge Priority Value

Bit 16 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1

32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1

Table 18-2 Bridge Priority Value and Extended System ID with the Extended System ID Enabled

Bridge Priority Value Extended System ID (Set Equal to the VLAN ID)

Bit 16 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1

32768 16384 8192 4096 VLAN ID

STP MAC Address Allocation

A Catalyst 4500 series switch chassis has either 64 or 1024 MAC addresses available to support software features like STP. Enter the show module command to view the MAC address range on your chassis.

Cisco IOS Release 12.1(12c)EW and later releases support chassis with 64 or 1024 MAC addresses. For chassis with 64 MAC addresses, STP uses the extended system ID plus a MAC address to make the bridge ID unique for each VLAN.

Earlier releases support chassis with 1024 MAC addresses. With earlier releases, STP uses one MAC address per-VLAN to make the bridge ID unique for each VLAN.

Bridge Protocol Data Units

The following elements determine the stable active spanning tree topology of a switched network:

  • The unique bridge ID (bridge priority and MAC address) associated with each VLAN on each switch
  • The spanning tree path cost (or bridge priority value) to the root bridge
  • The port identifier (port priority and MAC address) associated with each Layer 2 interface

Bridge protocol data units (BPDUs) contain information about the transmitting bridge and its ports, including the bridge and MAC addresses, bridge priority, port priority, and path cost. The system computes the spanning tree topology by transmitting BPDUs among connecting switches, and in one direction from the root switch. Each configuration BPDU contains at least the following:

  • The unique bridge ID of the switch that the transmitting switch believes to be the root switch
  • The spanning tree path cost to the root
  • The bridge ID of the transmitting bridge
  • The age of the message

About STP

Page 456 of the Cisco Systems 4500 user manual — Variable Description
Page 456 · click to enlarge
Page 456

Chapter 18 Configuring STP and MST About STP

  • The identifier of the transmitting port
  • Values for the hello , forward delay , and max-age protocol timers

When a switch transmits a BPDU frame, all switches connected to the LAN on which the frame is transmitted receive the BPDU. When a switch receives a BPDU, it does not forward the frame but instead uses the information in the frame to calculate a BPDU and, if the topology changes, initiate a BPDU transmission.

A BPDU exchange results in the following:

  • One switch is elected as the root bridge.
  • The shortest distance to the root bridge is calculated for each switch based on the path cost.
  • A designated bridge for each LAN segment is selected. it is the switch closest to the root bridge through which frames are forwarded to the root.
  • A root port is selected. it is the port providing the best path from the bridge to the root bridge.
  • Ports included in the spanning tree are selected.

Election of the Root Bridge

For each VLAN, the switch with the highest bridge priority (the lowest numerical priority value) is elected as the root bridge. If all switches are configured with the default priority value (32,768), the switch with the lowest MAC address in the VLAN becomes the root bridge.

The spanning tree root bridge is the logical center of the spanning tree topology in a switched network. All paths that are not required to reach the root bridge from anywhere in the switched network are placed in spanning tree blocking mode.

A spanning tree uses the information provided by BPDUs to elect the root bridge and root port for the switched network, as well as the root port and designated port for each switched segment.

STP Timers

Table 18-3 describes the STP timers that affect the performance of the entire spanning tree.

Table 18-3 Spanning Tree Protocol Timers

Variable Description

hello_time Determines how often the switch broadcasts hello messages to other switches.

forward_time Determines how long each of the listening and learning states last before the port begins forwarding.

max_age Determines the amount of time that protocol information received on a port is stored by the switch.

Page 457 of the Cisco Systems 4500 user manual — STP Port States
Page 457 · click to enlarge
Page 457

Chapter 18 Configuring STP and MST

Creating the STP Topology

The goal of the spanning tree algorithm is to make the most direct link the root port. When the spanning tree topology is calculated based on default parameters, the path between source and destination end stations in a switched network might not be optimal according to link speed. For instance, connecting higher-speed links to a port that has a higher number than the current root port can cause a root-port change.

In Figure 18-1, Switch A is elected as the root bridge. (This could happen if the bridge priority of all the switches is set to the default value [32,768] and Switch A has the lowest MAC address.) However, due to traffic patterns, the number of forwarding ports, or link types, Switch A might not be the ideal root bridge. By increasing the STP port priority (lowering the numerical value) of the ideal switch so that it becomes the root bridge, you force a spanning tree recalculation to form a new spanning tree topology with the ideal switch as the root.

Figure 18-1 Spanning Tree Topology

DP

DP

DP D A

DP

DP

RP DP

RP

DP RP

S5688

C B

RP = Root Port DP = Designated Port

For example, assume that one port on Switch B is a fiber-optic link, and another port on Switch B (an unshielded twisted-pair [UTP] link) is the root port. Network traffic might be more efficient over the high-speed fiber-optic link. By changing the spanning tree port priority on the fiber-optic port to a higher priority (lower numerical value) than the priority set for the root port, the fiber-optic port becomes the new root port.

STP Port States

Propagation delays can occur when protocol information passes through a switched LAN. As a result, topology changes can take place at different times and at different places in a switched network. When a Layer 2 interface transitions directly from nonparticipation in the spanning tree topology to the forwarding state, it can create temporary data loops. Ports must wait for new topology information to propagate through the switched LAN before starting to forward frames. They must allow the frame lifetime to expire for frames that have been forwarded under the old topology.

Each Layer 2 interface on a switch that uses spanning tree exists in one of the following five states:

  • Blocking—In this state, the Layer 2 interface does not participate in frame forwarding.
  • Listening—This state is the first transitional state after the blocking state when spanning tree determines that the Layer 2 interface should participate in frame forwarding.
  • Learning—In this state, the Layer 2 interface prepares to participate in frame forwarding.
  • Forwarding—In this state, the Layer 2 interface forwards frames.

About STP

Page 458 of the Cisco Systems 4500 user manual — Per-VLAN Rapid Spanning Tree
Page 458 · click to enlarge
Page 458

Chapter 18 Configuring STP and MST About STP

  • Disabled—In this state, the Layer 2 interface does not participate in spanning tree and does not forward frames.

MAC Address Allocation

The supervisor engine has a pool of 1024 MAC addresses that are used as the bridge IDs for the VLAN spanning trees. Use use the show module command to view the MAC address range (allocation range for the supervisor) that the spanning tree uses for the algorithm.

MAC addresses for the Catalyst 4506 switch are allocated sequentially, with the first MAC address in the range assigned to VLAN 1, the second MAC address in the range assigned to VLAN 2, and so forth. For example, if the MAC address range is 00-e0-1e-9b-2e-00 to 00-e0-1e-9b-31-ff, the VLAN 1 bridge ID is 00-e0-1e-9b-2e-00, the VLAN 2 bridge ID is 00-e0-1e-9b-2e-01, the VLAN 3 bridge ID is 00-e0-1e-9b-2e-02, and so on. On other Catalyst 4500 series platforms, all VLANS map to the same MAC address rather than mapping to separate MAC addresses.

STP and IEEE 802.1Q Trunks

802.1Q VLAN trunks impose some limitations on the spanning tree strategy for a network. In a network of Cisco switches connected through 802.1Q trunks, the switches maintain one instance of spanning tree for each VLAN allowed on the trunks. However, non-Cisco 802.1Q switches maintain only one instance of spanning tree for all VLANs allowed on the trunks.

When you connect a Cisco switch to a non-Cisco device (that supports 802.1Q) through an 802.1Q trunk, the Cisco switch combines the spanning tree instance of the 802.1Q native VLAN of the trunk with the spanning tree instance of the non-Cisco 802.1Q switch. However, all per-VLAN spanning tree information is maintained by Cisco switches separated by a network of non-Cisco 802.1Q switches. The non-Cisco 802.1Q network separating the Cisco switches is treated as a single trunk link between the switches.

Per-VLAN Rapid Spanning Tree

Per-VLAN Rapid Spanning Tree (PVRST+) is the same as PVST+, although PVRST+ utilizes a rapid STP based on IEEE 802.1w rather than 802.1D to provide faster convergence. PVRST+ uses roughly the same configuration as PVST+ and needs only minimal configuration. In PVRST+, dynamic CAM entries are flushed immediately on a per-port basis when any topology change is made. UplinkFast and BackboneFast are enabled but not active in this mode, because the functionality is built into the Rapid STP. PVRST+ provides for rapid recovery of connectivity following the failure of a bridge, bridge port, or LAN.

Like per-VLAN Spanning Tree (PVST+), per-VLAN Rapid Spanning Tree (PVRST+) instances are equal to the number of vlans configured on the switch and can go up to a maximum of 4094 instances.

Page 459 of the Cisco Systems 4500 user manual — Configuring STP
Page 459 · click to enlarge
Page 459

Chapter 18 Configuring STP and MST

For enabling information, see “Enabling Per-VLAN Rapid Spanning Tree” on page 20.

Default STP Configuration

Table 18-4 shows the default spanning tree configuration.

Table 18-4 Spanning Tree Default Configuration Values

Feature Default Value

Enable state Spanning tree enabled for all VLANs

Bridge priority value 32,768

Spanning tree port priority value (configurable on a per-interface basis—used on interfaces configured as Layer 2 access ports)

Spanning tree port cost (configurable on a per-interface basis—used on interfaces configured as Layer 2 access ports)

  • 10-Gigabit Ethernet: 2
  • Gigabit Ethernet: 4
  • Fast Ethernet: 19

Spanning tree VLAN port priority value (configurable on a per-VLAN basis—used on interfaces configured as Layer 2 trunk ports)

Spanning tree VLAN port cost (configurable on a per-VLAN basis—used on interfaces configured as Layer 2 trunk ports)

  • 10-Gigabit Ethernet: 2
  • Gigabit Ethernet: 4
  • Fast Ethernet: 19

Hello time 2 sec

Forward delay time 15 sec

Maximum aging time 20 sec

Configuring STP

The following sections describe how to configure spanning tree on VLANs:

  • Enabling STP, page 18-8
  • Enabling the Extended System ID, page 18-9
  • Configuring the Root Bridge, page 18-10
  • Configuring a Secondary Root Switch, page 18-12
  • Configuring STP Port Priority, page 18-13
  • Configuring STP Port Cost, page 18-15
  • Configuring the Bridge Priority of a VLAN, page 18-17
  • Configuring the Hello Time, page 18-17
  • Configuring the Maximum Aging Time for a VLAN, page 18-18
  • Configuring the Forward-Delay Time for a VLAN, page 18-19

Default STP Configuration

Page 460 of the Cisco Systems 4500 user manual — Enabling STP
Page 460 · click to enlarge
Page 460

Chapter 18 Configuring STP and MST Configuring STP

  • Disabling Spanning Tree Protocol, page 18-20
  • Enabling Per-VLAN Rapid Spanning Tree, page 18-20

Enabling STP

You can enable a spanning tree on a per-VLAN basis. The switch maintains a separate instance of spanning tree for each VLAN (except on VLANs on which you have disabled a spanning tree).

To enable a spanning tree on a per-VLAN basis, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# spanning-tree vlan vlan_ID Enables spanning tree for VLAN vlan_id. The vlan_ID value can range from 1 to 4094.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show spanning-tree vlan vlan_ID Verifies that spanning tree is enabled.

This example shows how to enable a spanning tree on VLAN 200:

Switch# configure terminal Switch(config)# spanning-tree vlan 200 Switch(config)# end Switch#

This example shows how to verify that spanning tree is enabled on VLAN 200:

Switch# show spanning-tree vlan 200

VLAN200 is executing the ieee compatible Spanning Tree protocol Bridge Identifier has priority 32768, address 0050.3e8d.6401 Configured hello time 2, max age 20, forward delay 15 Current root has priority 16384, address 0060.704c.7000 Root port is 264 (FastEthernet5/8), cost of root path is 38 Topology change flag not set, detected flag not set Number of topology changes 0 last change occurred 01:53:48 ago Times: hold 1, topology change 24, notification 2 hello 2, max age 14, forward delay 10 Timers: hello 0, topology change 0, notification 0

Port 264 (FastEthernet5/8) of VLAN200 is forwarding Port path cost 19, Port priority 128, Port Identifier 129.9. Designated root has priority 16384, address 0060.704c.7000

Page 461 of the Cisco Systems 4500 user manual — Enabling the Extended System ID
Page 461 · click to enlarge
Page 461

Chapter 18 Configuring STP and MST

Designated bridge has priority 32768, address 00e0.4fac.b000 Designated port id is 128.2, designated path cost 19 Timers: message age 3, forward delay 0, hold 0 Number of transitions to forwarding state: 1 BPDU: sent 3, received 3417

Enabling the Extended System ID

Use the spanning-tree extend system-id command to enable the extended system ID on chassis that support 1024 MAC addresses. See the “Understanding the Bridge ID” section on page 18-2.

To enable the extended system ID, perform this task:

Step 1 Switch(config)# spanning-tree extend system-id Enables the extended system ID.

Disables the extended system ID.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID Verifies the configuration.

This example shows how to enable the extended system ID:

Switch# configure terminal Switch(config)# spanning-tree extend system-id Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show spanning-tree summary | include extended Extended system ID is enabled.

Configuring STP · Switch#

Page 462 of the Cisco Systems 4500 user manual — Configuring the Root Bridge
Page 462 · click to enlarge
Page 462

Chapter 18 Configuring STP and MST Configuring STP

Configuring the Root Bridge

A Catalyst 4000 family switch maintains an instance of spanning tree for each active VLAN configured on the switch. A bridge ID, consisting of the bridge priority and the bridge MAC address, is associated with each instance. For each VLAN, the switch with the lowest bridge ID becomes the root bridge for that VLAN. Whenever the bridge priority changes, the bridge ID also changes, resulting in the recomputation of the root bridge for the VLAN.

To configure a switch to become the root bridge for the specified VLAN, use the spanning-tree vlan vlan-ID root command to modify the bridge priority from the default value (32,768) to a significantly lower value. The bridge priority for the specified VLAN is set to 8192 if this value causes the switch to become the root for the VLAN. If any bridge for the VLAN has a priority lower than 8192, the switch sets the priority to 1 less than the lowest bridge priority.

For example, assume that all the switches in the network have the bridge priority for VLAN 100 set to the default value of 32,768. Entering the spanning-tree vlan 100 root primary command on a switch sets the bridge priority for VLAN 100 to 8192, causing this switch to become the root bridge for VLAN 100.

Use the diameter keyword to specify the Layer 2 network diameter (the maximum number of bridge hops between any two end stations in the network). When you specify the network diameter, a switch automatically picks an optimal hello time, forward delay time, and maximum age time for a network of that diameter. This action can significantly reduce the spanning tree convergence time.

Use the hello-time keyword to override the automatically calculated hello time.

To configure a switch as the root switch, perform this task:

Step 1 Switch(config)# [no] spanning-tree vlan vlan_ID root primary [diameter hops [hello-time seconds]]

Configures a switch as the root switch.

Use the no keyword to restore the defaults.

Step 2 Switch(config)# end Exits configuration mode.

This example shows how to configure a switch as the root bridge for VLAN 10, with a network diameter of 4:

Switch# configure terminal Switch(config)# spanning-tree vlan 10 root primary diameter 4 Switch(config)# end Switch#

This example shows how the configuration changes when a switch becomes a spanning tree root. This configuration is the one before the switch becomes the root for VLAN 1:

Switch# show spanning-tree vlan 1

Page 463 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 463 · click to enlarge
Page 463

Chapter 18 Configuring STP and MST

VLAN1 is executing the ieee compatible Spanning Tree protocol Bridge Identifier has priority 32768, address 0030.94fc.0a00 Configured hello time 2, max age 20, forward delay 15 Current root has priority 32768, address 0001.6445.4400 Root port is 323 (FastEthernet6/3), cost of root path is 19 Topology change flag not set, detected flag not set Number of topology changes 2 last change occurred 00:02:19 ago from FastEthernet6/1 Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Timers:hello 0, topology change 0, notification 0, aging 300

Port 323 (FastEthernet6/3) of VLAN1 is forwarding Port path cost 19, Port priority 128, Port Identifier 129.67. Designated root has priority 32768, address 0001.6445.4400 Designated bridge has priority 32768, address 0001.6445.4400 Designated port id is 129.67, designated path cost 0 Timers:message age 2, forward delay 0, hold 0 Number of transitions to forwarding state:1 BPDU:sent 3, received 91

Port 324 (FastEthernet6/4) of VLAN1 is blocking Port path cost 19, Port priority 128, Port Identifier 129.68. Designated root has priority 32768, address 0001.6445.4400 Designated bridge has priority 32768, address 0001.6445.4400 Designated port id is 129.68, designated path cost 0 Timers:message age 2, forward delay 0, hold 0 Number of transitions to forwarding state:0 BPDU:sent 1, received 89

You can set the switch as the root:

Switch# configure terminal Switch(config)# spanning-tree vlan 1 root primary Switch(config)# spanning-tree vlan 1 root primary VLAN 1 bridge priority set to 8192 VLAN 1 bridge max aging time unchanged at 20 VLAN 1 bridge hello time unchanged at 2 VLAN 1 bridge forward delay unchanged at 15 Switch(config)# end

This configuration is the one after the switch becomes the root:

Switch# show spanning-tree vlan 1

VLAN1 is executing the ieee compatible Spanning Tree protocol Bridge Identifier has priority 8192, address 0030.94fc.0a00 Configured hello time 2, max age 20, forward delay 15 We are the root of the spanning tree Topology change flag set, detected flag set Number of topology changes 3 last change occurred 00:00:09 ago Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Timers:hello 0, topology change 25, notification 0, aging 15

Port 323 (FastEthernet6/3) of VLAN1 is forwarding Port path cost 19, Port priority 128, Port Identifier 129.67. Designated root has priority 8192, address 0030.94fc.0a00 Designated bridge has priority 8192, address 0030.94fc.0a00 Designated port id is 129.67, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 BPDU:sent 9, received 105

Configuring STP

Page 464 of the Cisco Systems 4500 user manual — Configuring a Secondary Root Switch
Page 464 · click to enlarge
Page 464

Chapter 18 Configuring STP and MST Configuring STP

Port 324 (FastEthernet6/4) of VLAN1 is listening Port path cost 19, Port priority 128, Port Identifier 129.68. Designated root has priority 8192, address 0030.94fc.0a00 Designated bridge has priority 8192, address 0030.94fc.0a00 Designated port id is 129.68, designated path cost 0 Timers:message age 0, forward delay 5, hold 0 Number of transitions to forwarding state:0 BPDU:sent 6, received 102

Configuring a Secondary Root Switch

When you configure a switch as the secondary root, the spanning tree bridge priority is modified from the default value (32,768) to 16,384. This means that the switch is likely to become the root bridge for the specified VLANs if the primary root bridge fails (assuming the other switches in the network use the default bridge priority of 32,768).

You can run this command on more than one switch to configure multiple backup root switches. Use the same network diameter and hello time values that you used when configuring the primary root switch.

To configure a switch as the secondary root switch, perform this task:

Step 1 Switch(config)# [no] spanning-tree vlan vlan_ID root secondary [diameter hops [hello-time seconds]]

Configures a switch as the secondary root switch.

Use the no keyword to restore the defaults.

Step 2 Switch(config)# end Exits configuration mode.

This example shows how to configure the switch as the secondary root switch for VLAN 10, with a network diameter of 4:

Switch# configure terminal Switch(config)# spanning-tree vlan 10 root secondary diameter 4 VLAN 10 bridge priority set to 16384 VLAN 10 bridge max aging time set to 14 VLAN 10 bridge hello time unchanged at 2 VLAN 10 bridge forward delay set to 10 Switch(config)# end Switch#

This example shows how to verify the configuration of VLAN 1:

Switch#sh spanning-tree vlan 1

VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32768 Address 0003.6b10.e800 This bridge is the root

Switch#

Page 465 of the Cisco Systems 4500 user manual — Configuring STP Port Priority
Page 465 · click to enlarge
Page 465

Chapter 18 Configuring STP and MST

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32768 Address 0003.6b10.e800 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Role Sts Cost Prio.Nbr Status --- Fa3/1 Desg FWD 19 128.129 P2p Fa3/2 Desg FWD 19 128.130 P2p Fa3/48 Desg FWD 19 128.176 Edge P2p

Configuring STP Port Priority

In the event of a loop, a spanning tree considers port priority when selecting an interface to put into the forwarding state. You can assign higher priority values to interfaces that you want a spanning tree to select first and lower priority values to interfaces that you want a spanning tree to select last. If all interfaces have the same priority value, a spanning tree puts the interface with the lowest interface number in the forwarding state and blocks other interfaces. The possible priority range is 0 through 240, configurable in increments of 16 (the default is 128).

To configure the spanning tree port priority of an interface, perform this task:

Step 1 Switch(config)# interface {{fastethernet | gigabitethernet | tengigabitethernet} slot/port} | {port-channel port_channel_number}

Specifies an interface to configure.

Step 2 Switch(config-if)# [no] spanning-tree port-priority port_priority

Configures the port priority for an interface. The port_priority value can be from 0 to 240, in increments of 16.

Use the no keyword to restore the defaults.

Step 3 Switch(config-if)# [no] spanning-tree vlan vlan_ID port-priority port_priority

Configures the VLAN port priority for an interface. The port_priority value can be from 0 to 240, in increments of 16.

Use the no keyword to restore the defaults.

Step 4 Switch(config-if)# end Exits configuration mode.

Step 5 Switch# show spanning-tree interface {{fastethernet | gigabitethernet} slot/port} | {port-channel port_channel_number} show spanning-tree vlan vlan_ID

Verifies the configuration.

This example shows how to configure the spanning tree port priority of a Fast Ethernet interface:

Switch# configure terminal Switch(config)# interface fastethernet 5/8

Configuring STP · Switch#

Page 466 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 466 · click to enlarge
Page 466

Chapter 18 Configuring STP and MST Configuring STP

Switch(config-if)# spanning-tree port-priority 100 Switch(config-if)# end Switch#

This example shows how to verify the configuration of a Fast Ethernet interface when it is configured as an access port:

Switch# show spanning-tree interface fastethernet 3/1

Vlan Role Sts Cost Prio.Nbr Status --- VLAN0001 Desg FWD 19 128.129 P2p VLAN1002 Desg FWD 19 128.129 P2p VLAN1003 Desg FWD 19 128.129 P2p VLAN1004 Desg FWD 19 128.129 P2p VLAN1005 Desg FWD 19 128.129 P2p Switch#

This example shows how to display the details of the interface configuration when the interface is configured as an access port:

Switch# show spanning-tree interface fastethernet 3/1 detail Port 129 (FastEthernet3/1) of VLAN0001 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.129. Designated root has priority 32768, address 0003.6b10.e800 Designated bridge has priority 32768, address 0003.6b10.e800 Designated port id is 128.129, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 Link type is point-to-point by default BPDU:sent 187, received 1

Port 129 (FastEthernet3/1) of VLAN1002 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.129. Designated root has priority 32768, address 0003.6b10.ebe9 Designated bridge has priority 32768, address 0003.6b10.ebe9 Designated port id is 128.129, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 Link type is point-to-point by default BPDU:sent 94, received 2

Port 129 (FastEthernet3/1) of VLAN1003 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.129. Designated root has priority 32768, address 0003.6b10.ebea Designated bridge has priority 32768, address 0003.6b10.ebea Designated port id is 128.129, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 Link type is point-to-point by default BPDU:sent 94, received 2

Port 129 (FastEthernet3/1) of VLAN1004 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.129. Designated root has priority 32768, address 0003.6b10.ebeb Designated bridge has priority 32768, address 0003.6b10.ebeb Designated port id is 128.129, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 Link type is point-to-point by default BPDU:sent 95, received 2

Port 129 (FastEthernet3/1) of VLAN1005 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.129.

Page 467 of the Cisco Systems 4500 user manual — Configuring STP Port Cost
Page 467 · click to enlarge
Page 467

Chapter 18 Configuring STP and MST

Designated root has priority 32768, address 0003.6b10.ebec Designated bridge has priority 32768, address 0003.6b10.ebec Designated port id is 128.129, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 Link type is point-to-point by default BPDU:sent 95, received 2 Switch#

This example shows how to configure the spanning tree VLAN port priority of a Fast Ethernet interface:

Switch# configure terminal Switch(config)# interface fastethernet 5/8 Switch(config-if)# spanning-tree vlan 200 port-priority 64 Switch(config-if)# end Switch#

This example shows how to verify the configuration of VLAN 200 on the interface when it is configured as a trunk port:

Switch# show spanning-tree vlan 200

Port 264 (FastEthernet5/8) of VLAN200 is forwarding Port path cost 19, Port priority 64, Port Identifier 129.8. Designated root has priority 32768, address 0010.0d40.34c7 Designated bridge has priority 32768, address 0010.0d40.34c7 Designated port id is 128.1, designated path cost 0 Timers: message age 2, forward delay 0, hold 0 Number of transitions to forwarding state: 1 BPDU: sent 0, received 13513

Switch#

Configuring STP Port Cost

The default value for spanning tree port path cost is derived from the interface media speed. In the event of a loop, spanning tree considers port cost when selecting an interface to put into the forwarding state. You can assign lower cost values to interfaces that you want spanning tree to select first, and higher cost values to interfaces that you want spanning tree to select last. If all interfaces have the same cost value, spanning tree puts the interface with the lowest interface number in the forwarding state and blocks other interfaces. The possible cost range is 1 through 200,000,000 (the default is media-specific).

Spanning tree uses the port cost value when the interface is configured as an access port and uses VLAN port cost values when the interface is configured as a trunk port.

To configure the spanning tree port cost of an interface, perform this task:

Configuring STP

Page 468 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 468 · click to enlarge
Page 468

Chapter 18 Configuring STP and MST Configuring STP

Step 1 Switch(config)# interface {{fastethernet | gigabitethernet | tengigabitethernet} slot/port} | {port-channel port_channel_number}

Specifies an interface to configure.

Step 2 Switch(config-if)# [no] spanning-tree cost port_cost

Configures the port cost for an interface. The port_cost value can be from 1 to 200,000,000.

Use the no keyword to restore the defaults.

Step 3 Switch(config-if)# [no] spanning-tree vlan vlan_ID cost port_cost

Configures the VLAN port cost for an interface. The port_cost value can be from 1 to 200,000,000.

Use the no keyword to restore the defaults.

Step 4 Switch(config-if)# end Exits configuration mode.

Step 5 Switch# show spanning-tree interface {{fastethernet | gigabitethernet} slot/port} | {port-channel port_channel_number} show spanning-tree vlan vlan_ID

Verifies the configuration.

This example shows how to change the spanning tree port cost of a Fast Ethernet interface:

Switch# configure terminal Switch(config)# interface fastethernet 5/8 Switch(config-if)# spanning-tree cost 18 Switch(config-if)# end Switch#

This example shows how to verify the configuration of the interface when it is configured as an access port:

Switch# show spanning-tree interface fastethernet 5/8 Port 264 (FastEthernet5/8) of VLAN200 is forwarding Port path cost 18, Port priority 100, Port Identifier 129.8. Designated root has priority 32768, address 0010.0d40.34c7 Designated bridge has priority 32768, address 0010.0d40.34c7 Designated port id is 128.1, designated path cost 0 Timers: message age 2, forward delay 0, hold 0 Number of transitions to forwarding state: 1 BPDU: sent 0, received 13513 Switch#

This example shows how to configure the spanning tree VLAN port cost of a Fast Ethernet interface:

Switch# configure terminal Switch(config)# interface fastethernet 5/8 Switch(config-if)# spanning-tree vlan 200 cost 17 Switch(config-if)# end Switch#

This example shows how to verify the configuration of VLAN 200 on the interface when it is configured as a trunk port:

Switch# show spanning-tree vlan 200 Port 264 (FastEthernet5/8) of VLAN200 is forwarding Port path cost 17, Port priority 64, Port Identifier 129.8. Designated root has priority 32768, address 0010.0d40.34c7 Designated bridge has priority 32768, address 0010.0d40.34c7 Designated port id is 128.1, designated path cost 0 Timers: message age 2, forward delay 0, hold 0

Page 469 of the Cisco Systems 4500 user manual — Configuring the Hello Time
Page 469 · click to enlarge
Page 469

Chapter 18 Configuring STP and MST

Number of transitions to forwarding state: 1 BPDU: sent 0, received 13513

Switch#

Configuring the Bridge Priority of a VLAN

To configure the spanning tree bridge priority of a VLAN, perform this task:

Step 1 Switch(config)# [no] spanning-tree vlan vlan_ID priority bridge_priority

Configures the bridge priority of a VLAN. The bridge_priority value can be from 1 to 65,534.

Use the no keyword to restore the defaults.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID bridge [brief]

Verifies the configuration.

This example shows how to configure the bridge priority of VLAN 200 to 33,792:

Switch# configure terminal Switch(config)# spanning-tree vlan 200 priority 33792 Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show spanning-tree vlan 200 bridge brief Hello Max Fwd Vlan Bridge ID Time Age Delay Protocol VLAN200 33792 0050.3e8d.64c8 2 20 15 ieee Switch#

Configuring the Hello Time

Configuring STP

Page 470 of the Cisco Systems 4500 user manual — Configuring the Maximum Aging Time for a VLAN
Page 470 · click to enlarge
Page 470

Chapter 18 Configuring STP and MST Configuring STP

To configure the spanning tree hello time of a VLAN, perform this task:

Step 1 Switch(config)# [no] spanning-tree vlan vlan_ID hello-time hello_time

Configures the hello time of a VLAN. The hello_time value can be from 1 to 10 seconds.

Use the no keyword to restore the defaults.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID bridge [brief]

Verifies the configuration.

This example shows how to configure the hello time for VLAN 200 to 7 seconds:

Switch# configure terminal Switch(config)# spanning-tree vlan 200 hello-time 7 Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show spanning-tree vlan 200 bridge brief Hello Max Fwd Vlan Bridge ID Time Age Delay Protocol VLAN200 49152 0050.3e8d.64c8 7 20 15 ieee Switch#

Configuring the Maximum Aging Time for a VLAN

To configure the spanning tree maximum aging time for a VLAN, perform this task:

Step 1 Switch(config)# [no] spanning-tree vlan vlan_ID max-age max_age

Configures the maximum aging time of a VLAN. The max_age value can be from 6 to 40 seconds.

Use the no keyword to restore the defaults.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID bridge [brief]

Verifies the configuration.

This example shows how to configure the maximum aging time for VLAN 200 to 36 seconds:

Switch# configure terminal Switch(config)# spanning-tree vlan 200 max-age 36 Switch(config)# end Switch#

Page 471 of the Cisco Systems 4500 user manual — Configuring the Forward-Delay Time for a VLAN
Page 471 · click to enlarge
Page 471

Chapter 18 Configuring STP and MST

This example shows how to verify the configuration:

Switch# show spanning-tree vlan 200 bridge brief Hello Max Fwd Vlan Bridge ID Time Age Delay Protocol VLAN200 49152 0050.3e8d.64c8 2 36 15 ieee Switch#

Configuring the Forward-Delay Time for a VLAN

To configure the spanning tree forward delay time for a VLAN, perform this task:

Step 1 Switch(config)# [no] spanning-tree vlan vlan_ID forward-time forward_time

Configures the forward time of a VLAN. The forward_time value can be from 4 to 30 seconds.

Use the no keyword to restore the defaults.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID bridge [brief]

Verifies the configuration.

This example shows how to configure the forward delay time for VLAN 200 to 21 seconds:

Switch# configure terminal Switch(config)# spanning-tree vlan 200 forward-time 21 Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show spanning-tree vlan 200 bridge brief Hello Max Fwd Vlan Bridge ID Time Age Delay Protocol VLAN200 49152 0050.3e8d.64c8 2 20 21 ieee Switch#

This example shows how to display spanning tree information for the bridge:

Switch# show spanning-tree bridge

Hello Max Fwd Vlan Bridge ID Time Age Dly Protocol --- --- VLAN200 49152 0050.3e8d.64c8 2 20 15 ieee VLAN202 49152 0050.3e8d.64c9 2 20 15 ieee VLAN203 49152 0050.3e8d.64ca 2 20 15 ieee VLAN204 49152 0050.3e8d.64cb 2 20 15 ieee VLAN205 49152 0050.3e8d.64cc 2 20 15 ieee VLAN206 49152 0050.3e8d.64cd 2 20 15 ieee Switch#

Configuring STP

Page 472 of the Cisco Systems 4500 user manual — Enabling Per-VLAN Rapid Spanning Tree
Page 472 · click to enlarge
Page 472

Chapter 18 Configuring STP and MST Configuring STP

Disabling Spanning Tree Protocol

To disable spanning tree on a per-VLAN basis, perform this task:

Step 1 Switch(config)# no spanning-tree vlan vlan_ID Disables spanning tree on a per-VLAN basis.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID Verifies that spanning tree is disabled.

This example shows how to disable spanning tree on VLAN 200:

Switch# configure terminal Switch(config)# no spanning-tree vlan 200 Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show spanning-tree vlan 200 Spanning tree instance for VLAN 200 does not exist. Switch#

Enabling Per-VLAN Rapid Spanning Tree

Per-VLAN Rapid Spanning Tree (PVRST+) uses the existing PVST+ framework for configuration purposes and for interaction with other features. It also supports some of the PVST+ extensions.

To configure PVRST+, perform this task:

Step 1 Switch(config)# [no] spantree mode rapid-pvst Enables rapid-PVST+.

Step 2 Switch(config)# interface interface/port Switches to interface configuration mode.

Step 3 Switch(config)# spanning-tree link-type point-to-point

Sets the link-type to point-to-point mode for the port.

Step 4 Switch(config-if)# exit Exits interface mode.

Step 5 Switch(config)# exit Exits configuration mode.

Step 6 Switch(config-if)# clear spantree detected-protocols mod/port

Detects any legacy bridges on the port

Step 7 Switch# show spanning-tree summary totals Verifies the rapid-PVST+ configuration.

The following example shows how to configure Rapid-PVST+:

Switch# config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# spanning-tree mode rapid-pvst Switch(config)# int fa 6/4 Switch(config-if)# spanning-tree link-type point-to-point Switch(config-if)# end Switch(config)# end Switch# 23:55:32:%SYS-5-CONFIG_I:Configured from console by console

Page 473 of the Cisco Systems 4500 user manual — Restarting Protocol Migration
Page 473 · click to enlarge
Page 473

Chapter 18 Configuring STP and MST

Switch# clear spanning-tree detected-protocols

The following example shows how to verify the configuration:

Switch# show spanning-tree summary totals Switch is in rapid-pvst mode Root bridge for:VLAN0001 Extended system ID is disabled Portfast Default is disabled PortFast BPDU Guard Default is disabled Portfast BPDU Filter Default is disabled Loopguard Default is disabled EtherChannel misconfig guard is enabled UplinkFast is disabled BackboneFast is disabled Pathcost method used is short Name Blocking Listening Learning Forwarding STP Active 1 vlan 0 0 0 2 2 Switch#

Specifying the Link Type

Rapid connectivity is established only on point-to-point links. Spanning tree views a point-to-point link as a segment connecting only two switches running the spanning tree algorithm. Because the switch assumes that all full-duplex links are point-to-point links and that half-duplex links are shared links, you can avoid explicitly configuring the link type. To configure a specific link type, use the spanning-tree linktype command.

Restarting Protocol Migration

A switch running both MSTP and RSTP supports a built-in protocol migration process that enables the switch to interoperate with legacy 802.1D switches. If this switch receives a legacy 802.1D configuration BPDU (a BPDU with the protocol version set to 0), it sends only 802.1D BPDUs on that port. When an MSTP switch receives a legacy BPDU, it can also detect the following:

  • A port is at the boundary of a region
  • An MST BPDU (version 3) that is associated with a different region
  • An RST BPDU (version 2)

The switch, however, does not automatically revert to the MSTP mode if it no longer receives 802.1D BPDUs because it cannot determine whether or not the legacy switch has been removed from the link unless the legacy switch is the designated switch. A switch also might continue to assign a boundary role to a port when the switch to which it is connected has joined the region.

To restart the protocol migration process on the entire switch (that is, to force renegotiation with neighboring switches), use the clear spanning-tree detected-protocols commands in privileged EXEC mode. To restart the protocol migration process on a specific interface, enter the clear spanning-tree detected-protocols interface command in interface-id privileged EXEC mode.

Configuring STP

Page 474 of the Cisco Systems 4500 user manual — IEEE 802.1s MST
Page 474 · click to enlarge
Page 474

Chapter 18 Configuring STP and MST About MST

About MST

The following sections describe how MST works on a Catalyst 4000 family switch:

  • IEEE 802.1s MST, page 18-22
  • IEEE 802.1w RSTP, page 18-23
  • MST-to-SST Interoperability, page 18-24
  • Common Spanning Tree, page 18-25
  • MST Instances, page 18-26
  • MST Configuration Parameters, page 18-26
  • MST Regions, page 18-26
  • Message Age and Hop Count, page 18-28
  • MST-to-PVST+ Interoperability, page 18-28

IEEE 802.1s MST

MST extends the IEEE 802.1w rapid spanning tree (RST) algorithm to multiple spanning trees. This extension provides both rapid convergence and load balancing in a VLAN environment. MST converges faster than per-VLAN Spanning Tree Plus (PVST+) and is backward compatible with 802.1D STP, 802.1w (Rapid Spanning Tree Protocol [RSTP]), and the Cisco PVST+ architecture.

MST allows you to build multiple spanning trees over trunks. You can group and associate VLANs to spanning tree instances. Each instance can have a topology independent of other spanning tree instances. This architecture provides multiple forwarding paths for data traffic and enables load balancing. Network fault tolerance is improved because a failure in one instance (forwarding path) does not affect other instances.

In large networks, you can more easily administer the network and use redundant paths by locating different VLAN and spanning tree instance assignments in different parts of the network. A spanning tree instance can exist only on bridges that have compatible VLAN instance assignments. You must configure a set of bridges with the same MST configuration information, which allows them to participate in a specific set of spanning tree instances. Interconnected bridges that have the same MST configuration are referred to as an MST region.

MST uses the modified RSTP, MSTP. MST has the following characteristics:

  • MST runs a variant of spanning tree called Internal Spanning Tree (IST). IST augments Common Spanning Tree (CST) information with internal information about the MST region. The MST region appears as a single bridge to adjacent single spanning tree (SST) and MST regions.
  • A bridge running MST provides interoperability with SST bridges as follows:

– MST bridges run IST, which augments CST information with internal information about the MST region.

– IST connects all the MST bridges in the region and appears as a subtree in the CST that includes the whole bridged domain. The MST region appears as a virtual bridge to adjacent SST bridges and MST regions.

– The Common and Internal Spanning Tree (CIST) is the collection of the following: ISTs in each MST region, the CST that interconnects the MST regions, and the SST bridges. CIST is identical to an IST inside an MST region and identical to a CST outside an MST region. The STP, RSTP, and MSTP together elect a single bridge as the root of the CIST.

Page 475 of the Cisco Systems 4500 user manual — IEEE 802.1w RSTP
Page 475 · click to enlarge
Page 475

Chapter 18 Configuring STP and MST

  • MST establishes and maintains additional spanning trees within each MST region. These spanning trees are termed MST instances (MSTIs). The IST is numbered 0, and the MSTIs are numbered 1, 2, 3, and so on. Any MSTI is local to the MST region and is independent of MSTIs in another region, even if the MST regions are interconnected.

MST instances combine with the IST at the boundary of MST regions to become the CST as follows:

– Spanning tree information for an MSTI is contained in an MSTP record (M-record).

M-records are always encapsulated within MST bridge protocol data units (BPDUs). The original spanning trees computed by MSTP are called M-trees, which are active only within the MST region. M-trees merge with the IST at the boundary of the MST region and form the CST.

  • MST provides interoperability with PVST+ by generating PVST+ BPDUs for the non-CST VLANs.
  • MST supports some of the PVST+ extensions in MSTP as follows:

– UplinkFast and BackboneFast are not available in MST mode; they are part of RSTP.

– PortFast is supported.

– BPDU filter and BPDU guard are supported in MST mode.

– Loop guard and root guard are supported in MST. MST preserves the VLAN 1 disabled functionality except that BPDUs are still transmitted in VLAN 1.

– MST switches operate as if MAC reduction is enabled.

– For private VLANs (PVLANs), you must map a secondary VLAN to the same instance as the primary.

IEEE 802.1w RSTP

RSTP, specified in 802.1w, supersedes STP specified in 802.1D, but remains compatible with STP. You configure RSTP when you configure the MST feature. For more information, see the “Configuring MST” section on page 18-29.

RSTP provides the structure on which the MST operates, significantly reducing the time to reconfigure the active topology of a network when its physical topology or configuration parameters change. RSTP selects one switch as the root of a spanning-tree-connected active topology and assigns port roles to individual ports of the switch, depending on whether that port is part of the active topology.

RSTP provides rapid connectivity following the failure of a switch, switch port, or a LAN. A new root port and the designated port on the other side of the bridge transition to the forwarding state through an explicit handshake between them. RSTP allows switch port configuration so the ports can transition to forwarding directly when the switch reinitializes.

RSTP provides backward compatibility with 802.1D bridges as follows:

  • RSTP selectively sends 802.1D-configured BPDUs and Topology Change Notification (TCN) BPDUs on a per-port basis.
  • When a port initializes, the migration delay timer starts and RSTP BPDUs are transmitted. While the migration delay timer is active, the bridge processes all BPDUs received on that port.
  • If the bridge receives an 802.1D BPDU after a port’s migration delay timer expires, the bridge assumes it is connected to an 802.1D bridge and starts using only 802.1D BPDUs.
  • When RSTP uses 802.1D BPDUs on a port and receives an RSTP BPDU after the migration delay expires, RSTP restarts the migration delay timer and begins using RSTP BPDUs on that port.

About MST

Page 476 of the Cisco Systems 4500 user manual — MST-to-SST Interoperability
Page 476 · click to enlarge
Page 476

Chapter 18 Configuring STP and MST About MST

RSTP Port Roles

In RSTP, the port roles are defined as follows:

  • Root—A forwarding port elected for the spanning tree topology.
  • Designated—A forwarding port elected for every switched LAN segment.
  • Alternate—An alternate path to the root bridge to that provided by the current root port.
  • Backup—A backup for the path provided by a designated port toward the leaves of the spanning tree. Backup ports can exist only where two ports are connected together in a loopback mode or bridge with two or more connections to a shared LAN segment.
  • Disabled—A port that has no role within the operation of spanning tree.

The system assigns port roles as follows:

  • A root port or designated port role includes the port in the active topology.
  • An alternate port or backup port role excludes the port from the active topology.

RSTP Port States

The port state controls the forwarding and learning processes and provides the values of discarding, learning, and forwarding. Table 18-5 shows the STP port states and RSTP port states.

Table 18-5 Comparison Between STP and RSTP Port States

Operational Status STP Port State RSTP Port State Port Included in Active Topology

Enabled Listening Discarding No

Enabled Learning Learning Yes

Enabled Forwarding Forwarding Yes

Disabled Disabled Discarding No

1. IEEE 802.1D port state designation.
2. IEEE 802.1w port state designation. Discarding is the same as blocking in MST.

In a stable topology, RSTP ensures that every root port and designated port transitions to the forwarding state while all alternate ports and backup ports are always in the discarding state.

MST-to-SST Interoperability

A virtual bridged LAN may contain interconnected regions of SST and MST bridges. Figure 18-2 shows this relationship.

Enabled Blocking1 · Discarding2 · No

Page 477 of the Cisco Systems 4500 user manual — Common Spanning Tree
Page 477 · click to enlarge
Page 477

Chapter 18 Configuring STP and MST

Figure 18-2 Network with Interconnected SST and MST Regions

B

B

B

F

B

F

F F

F

F

F

F

F

B

F

R F F

F

F/f = Forwarding B/b = Blocking R = Root Bridge r = Root port

To STP running in the SST region, an MST region appears as a single SST or pseudobridge, which operates as follows:

  • Although the values for root identifiers and root path costs match for all BPDUs in all pseudobridges, a pseudobridge differs from a single SST bridge as follows:

– The pseudobridge BPDUs have different bridge identifiers. This difference does not affect STP operation in the neighboring SST regions because the root identifier and root cost are the same.

– BPDUs sent from the pseudobridge ports may have significantly different message ages. Because the message age increases by one second for each hop, the difference in the message age is measured in seconds.

  • Data traffic from one port of a pseudobridge (a port at the edge of a region) to another port follows a path entirely contained within the pseudobridge or MST region. Data traffic belonging to different VLANs might follow different paths within the MST regions established by MST.
  • The system prevents looping by doing either of the following:

– Blocking the appropriate pseudobridge ports by allowing one forwarding port on the boundary and blocking all other ports.

– Setting the CST partitions to block the ports of the SST regions.

Common Spanning Tree

CST (802.1Q) is a single spanning tree for all the VLANs. In a Catalyst 4500 series switch running PVST+, the VLAN 1 spanning tree corresponds to CST. In a Catalyst 4500 series switch running MST, IST (instance 0) corresponds to CST.

Show 12 more labels / short text on this page
About MST · MST Region · r · r · r · SST Region · r b b · r · r · SST Region · r · MST Region
Page 478 of the Cisco Systems 4500 user manual — MST Region Overview
Page 478 · click to enlarge
Page 478

Chapter 18 Configuring STP and MST About MST

MST Instances

We support 65 instances including instance 0. Each spanning tree instance is identified by an instance ID that ranges from 0 to 4094. Instance 0 is mandatory and is always present. Rest of the instances are optional.

MST Configuration Parameters

The MST configuration includes these three parts:

  • Name—A 32-character string (null padded) that identifies the MST region.
  • Revision number—An unsigned 16-bit number that identifies the revision of the current MST configuration.
  • MST configuration table—An array of 4096 bytes. Each byte, interpreted as an unsigned integer, corresponds to a VLAN. The value is the instance number to which the VLAN is mapped. The first byte that corresponds to VLAN 0 and the 4096th byte that corresponds to VLAN 4095 are unused and always set to zero.

You must configure each byte manually. Use SNMP or the CLI to perform the configuration.

MST BPDUs contain the MST configuration ID and the checksum. An MST bridge accepts an MST BPDU only if the MST BPDU configuration ID and the checksum match its own MST region configuration ID and checksum. If either value is different, the MST BPDU is considered to be an SST BPDU.

MST Regions

These sections describe MST regions:

  • MST Region Overview, page 18-26
  • Boundary Ports, page 18-27
  • IST Master, page 18-27
  • Edge Ports, page 18-27
  • Link Type, page 18-28

MST Region Overview

Interconnected bridges that have the same MST configuration are referred to as an MST region. There is no limit on the number of MST regions in the network.

Page 479 of the Cisco Systems 4500 user manual — Edge Ports
Page 479 · click to enlarge
Page 479

Chapter 18 Configuring STP and MST

To form an MST region, bridges can be either of the following:

  • An MST bridge that is the only member of the MST region.
  • An MST bridge interconnected by a LAN. A LAN’s designated bridge has the same MST configuration as an MST bridge. All the bridges on the LAN can process MST BPDUs.

If you connect two MST regions with different MST configurations, the MST regions do the following:

  • Load balance across redundant paths in the network. If two MST regions are redundantly connected, all traffic flows on a single connection with the MST regions in a network.
  • Provide an RSTP handshake to enable rapid connectivity between regions. However, the handshaking is not as fast as between two bridges. To prevent loops, all the bridges inside the region must agree upon the connections to other regions. This situation introduces a delay. We do not recommend partitioning the network into a large number of regions.

Boundary Ports

A boundary port is a port that connects to a LAN, the designated bridge of which is either an SST bridge or a bridge with a different MST configuration. A designated port knows that it is on the boundary if it detects an STP bridge or receives an agreement message from an RST or MST bridge with a different configuration.

At the boundary, the role of MST ports do not matter; their state is forced to be the same as the IST port state. If the boundary flag is set for the port, the MSTP Port Role selection mechanism assigns a port role to the boundary and the same state as that of the IST port. The IST port at the boundary can take up any port role except a backup port role.

IST Master

The IST master of an MST region is the bridge with the lowest bridge identifier and the least path cost to the CST root. If an MST bridge is the root bridge for CST, then it is the IST master of that MST region. If the CST root is outside the MST region, then one of the MST bridges at the boundary is selected as the IST master. Other bridges on the boundary that belong to the same region eventually block the boundary ports that lead to the root.

If two or more bridges at the boundary of a region have an identical path to the root, you can set a slightly lower bridge priority to make a specific bridge the IST master.

The root path cost and message age inside a region stay constant, but the IST path cost is incremented and the IST remaining hops are decremented at each hop. Enter the show spanning-tree mst command to display the information about the IST master, path cost, and remaining hops for the bridge.

Edge Ports

A port that is connected to a nonbridging device (for example, a host or a switch) is an edge port. A port that connects to a hub is also an edge port if the hub or any LAN that is connected to it does not have a bridge. An edge port can start forwarding as soon as the link is up.

MST requires that you configure each port connected to a host. To establish rapid connectivity after a failure, you need to block the non-edge designated ports of an intermediate bridge. If the port connects to another bridge that can send back an agreement, then the port starts forwarding immediately. Otherwise, the port needs twice the forward delay time to start forwarding again. You must explicitly configure the ports that are connected to the hosts and switches as edge ports while using MST.

About MST

Page 480 of the Cisco Systems 4500 user manual — MST-to-PVST+ Interoperability
Page 480 · click to enlarge
Page 480

Chapter 18 Configuring STP and MST About MST

To prevent a misconfiguration, the PortFast operation is turned off if the port receives a BPDU. You can display the configured and operational status of PortFast by using the show spanning-tree mst interface command.

Link Type

Rapid connectivity is established only on point-to-point links. You must configure ports explicitly to a host or switch. However, cabling in most networks meets this requirement. By entering the spanning-tree linktype command to treating all full-duplex links as point-to-point links, you can avoid explicit configuration.

Message Age and Hop Count

IST and MST instances do not use the message age and maximum age timer settings in the BPDU. IST and MST use a separate hop count mechanism that is very similar to the IP time-to live (TTL) mechanism. You can configure each MST bridge with a maximum hop count. The root bridge of the instance sends a BPDU (or M-record) with the remaining hop count that is equal to the maximum hop count. When a bridge receives a BPDU (or M-record), it decrements the received remaining hop count by one. The bridge discards the BPDU (M-record) and ages out the information held for the port if the count reaches zero after decrementing. The nonroot bridges propagate the decremented count as the remaining hop count in the BPDUs (M-records) they generate.

The message age and maximum age timer settings in the RST portion of the BPDU remain the same throughout the region, and the same values are propagated by the region’s designated ports at the boundary.

MST-to-PVST+ Interoperability

  • Configure the root for all VLANs inside the MST region as shown in this example:

Switch# show spanning-tree mst interface gigabitethernet 1/1

GigabitEthernet1/1 of MST00 is root forwarding Edge port: no (trunk) port guard : none (default) Link type: point-to-point (auto) bpdu filter: disable (default) Boundary : boundary (PVST) bpdu guard : disable (default) Bpdus sent 10, received 310

Instance Role Sts Cost Prio.Nbr Vlans mapped --- 0 Root FWD 20000 128.1 1-2,4-2999,4000-4094 3 Boun FWD 20000 128.1 3,3000-3999

The ports that belong to the MST switch at the boundary simulate PVST+ and send PVST+ BPDUs for all the VLANs.

If you enable loop guard on the PVST+ switches, the ports might change to a loop-inconsistent state when the MST switches change their configuration. To correct the loop-inconsistent state, you must disable and renewable loop guard on that PVST+ switch.

Page 481 of the Cisco Systems 4500 user manual — Enabling MST
Page 481 · click to enlarge
Page 481

Chapter 18 Configuring STP and MST

MST Configuration Restrictions and Guidelines

  • Do not locate the root for some or all of the VLANs inside the PVST+ side of the MST switch because when the MST switch at the boundary receives PVST+ BPDUs for all or some of the VLANs on its designated ports, root guard sets the port to the blocking state.

When you connect a PVST+ switch to two different MST regions, the topology change from the PVST+ switch does not pass beyond the first MST region. In such a case, the topology changes are propagated only in the instance to which the VLAN is mapped. The topology change stays local to the first MST region, and the Cisco Access Manager (CAM) entries in the other region are not flushed. To make the topology change visible throughout other MST regions, you can map that VLAN to IST or connect the PVST+ switch to the two regions through access links.

MST Configuration Restrictions and Guidelines

Follow these restrictions and guidelines to avoid configuration problems:

  • Do not disable spanning tree on any VLAN in any of the PVST bridges.
  • Do no use PVST bridges as the root of CST.
  • Do not connect switches with access links because access links may partition a VLAN.
  • Ensure that all PVST root bridges have lower, (numerically higher) priority than the CST root bridge.
  • Ensure that trunks carry all of the VLANs mapped to an instance or do not carry any VLANs at all for this instance.
  • Complete any MST configuration that incorporates a large number of either existing or new logical VLAN ports during a maintenance window because the complete MST database gets reinitialized for any incremental change (such as adding new VLANs to instances or moving VLANs across instances).

Configuring MST

The following sections describe how to configure MST:

  • Enabling MST, page 18-29
  • Configuring MST Instance Parameters, page 18-31
  • Configuring MST Instance Port Parameters, page 18-32
  • Restarting Protocol Migration, page 18-33
  • Displaying MST Configurations, page 18-33

Enabling MST

To enable and configure MST on a Catalyst 4500, perform this task:

Step 1 Switch(config)# spanning-tree mode mst Enters MST mode.

Page 482 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 482 · click to enlarge
Page 482

Chapter 18 Configuring STP and MST Configuring MST

Step 2 Switch(config)# spanning-tree mst configuration Enters MST configuration submode.

Use the no keyword to clear the MST configuration.

Step 3 Switch(config-mst)# show current Displays the current MST configuration.

Step 4 Switch(config-mst)# name name Sets the MST region name.

Step 5 Switch(config-mst)# revision revision_number Sets the MST configuration revision number.

Step 6 Switch(config-mst)# instance instance_number vlan vlan_range

Maps the VLANs to an MST instance.

If you do not specify the vlan keyword, use the no keyword to unmap all the VLANs that were mapped to an MST instance.

If you specify the vlan keyword, use the no keyword to unmap a specified VLAN from an MST instance.

Step 7 Switch(config-mst)# show pending Displays the new MST configuration to be applied.

Step 8 Switch(config-mst)# end Applies the configuration and exit MST configuration submode.

Step 9 Switch# show spanning-tree mst configuration Displays the current MST configuration.

This example show how to enable MST:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# spanning-tree mode mst

Switch(config)# spanning-tree mst configuration

Switch(config-mst)# show current Current MST configuration Name [] Revision 0 Instance Vlans mapped 0 1-4094 Switch(config-mst)# name cisco Switch(config-mst)# revision 2 Switch(config-mst)# instance 1 vlan 1 Switch(config-mst)# instance 2 vlan 1-1000 Switch(config-mst)# show pending Pending MST configuration Name [cisco] Revision 2 Instance Vlans mapped 0 1001-4094 2 1-1000 Switch(config-mst)# no instance 2 Switch(config-mst)# show pending Pending MST configuration Name [cisco] Revision 2 Instance Vlans mapped 0 1-4094

Page 483 of the Cisco Systems 4500 user manual — Configuring MST Instance Parameters
Page 483 · click to enlarge
Page 483

Chapter 18 Configuring STP and MST

Switch(config-mst)# instance 1 vlan 2000-3000 Switch(config-mst)# no instance 1 vlan 1500 Switch(config-mst)# show pending Pending MST configuration Name [cisco] Revision 2 Instance Vlans mapped 0 1-1999,2500,3001-4094 1 2000-2499,2501-3000 Switch(config-mst)# end Switch(config)# no spanning-tree mst configuration Switch(config)# end Switch# show spanning-tree mst configuration Name [] Revision 0 Instance Vlans mapped 0 1-4094

Configuring MST Instance Parameters

To configure MST instance parameters, perform this task:

Step 1 Switch(config)# spanning-tree mst X priority Y Configures the priority for an MST instance.

Step 2 Switch(config)# spanning-tree mst X root [primary | secondary]

Configures the bridge as root for an MST instance.

Step 3 Switch(config)# Ctrl-Z Exits configuration mode.

Step 4 Switch# show spanning-tree mst Verifies the configuration.

This example shows how to configure MST instance parameters:

Switch(config)# spanning-tree mst 1 priority ? bridge priority in increments of 4096

Switch(config)# spanning-tree mst 1 priority 1 % Bridge Priority must be in increments of 4096. % Allowed values are: 0 4096 8192 12288 16384 20480 24576 28672 32768 36864 40960 45056 49152 53248 57344 61440

Switch(config)# spanning-tree mst 1 priority 49152 Switch(config)#

Switch(config)# spanning-tree mst 0 root primary mst 0 bridge priority set to 24576 mst bridge max aging time unchanged at 20 mst bridge hello time unchanged at 2 mst bridge forward delay unchanged at 15 Switch(config)# ^Z Switch#

Configuring MST

Page 484 of the Cisco Systems 4500 user manual — Configuring MST Instance Port Parameters
Page 484 · click to enlarge
Page 484

Chapter 18 Configuring STP and MST Configuring MST

Switch# show spanning-tree mst

###### MST00 vlans mapped: 11-4094 Bridge address 00d0.00b8.1400 priority 24576 (24576 sysid 0) Root this switch for CST and IST Configured hello time 2, forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Status --- Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Desg FWD 200000 128.240 P2p Bound(STP)

###### MST01 vlans mapped1-10 Bridge address 00d0.00b8.1400 priority 49153 (49152 sysid 1) Root this switch for MST01

Interface Role Sts Cost Prio.Nbr Status --- Fa4/4 Back BLK 1000 160.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Boun FWD 200000 128.240 P2p Bound(STP)

Configuring MST Instance Port Parameters

To configure MST instance port parameters, perform this task:

Step 1 Switch(config-if)# spanning-tree mst x cost y Configures the MST instance port cost.

Step 2 Switch(config-if)# spanning-tree mst x port-priority y Configures the MST instance port priority.

Step 3 Switch(config-if)# Ctrl-Z Exits configuration mode.

Step 4 Switch# show spanning-tree mst x interface y Verifies the configuration.

This example shows how to configure MST instance port parameters:

Switch(config)# interface fastethernet 4/4 Switch(config-if)# spanning-tree mst 1 ? cost Change the interface spanning tree path cost for an instance port-priority Change the spanning tree port priority for an instance

Switch(config-if)# spanning-tree mst 1 cost 1234567

Switch(config-if)# spanning-tree mst 1 port-priority 240 Switch(config-if)# ^Z

Switch#

Page 485 of the Cisco Systems 4500 user manual — Displaying MST Configurations
Page 485 · click to enlarge
Page 485

Chapter 18 Configuring STP and MST

Switch# show spanning-tree mst 1 interface fastethernet 4/4

FastEthernet4/4 of MST01 is backup blocking Edge port:no (default) port guard :none (default) Link type:point-to-point (auto) bpdu filter:disable (default) Boundary :internal bpdu guard :disable (default) Bpdus (MRecords) sent 125, received 1782

Instance Role Sts Cost Prio.Nbr Vlans mapped --- 1 Back BLK 1234567 240.196 1-10

Restarting Protocol Migration

RSTP and MST have built-in compatibility mechanisms that allow them to interact properly with other regions or other versions of IEEE spanning-tree. For example, an RSTP bridge connected to a legacy bridge can send 802.1D BPDUs on one of its ports. Similarly, when an MST bridge receives a legacy BPDU or an MST BPDU associated with a different region, it is also to detect that a port is at the boundary of a region.

Unfortunately, these mechanisms cannot always revert to the most efficient mode. For example, an RSTP bridge designated for a legacy 802.1D stays in 802.1D mode even after the legacy bridge has been removed from the link. Similarly, an MST port still assumes that it is a boundary port when the bridge(s) to which it is connected have joined the same region. To force a Catalyst 4500 series switch to renegotiate with the neighbors (that is, to restart protocol migration), you must enter the clear spanning-tree detected-protocols command, as follows:

Switch# clear spanning-tree detected-protocols fastethernet 4/4 Switch#

Displaying MST Configurations

To display MST configurations, perform this task:

Step 1 Switch# show spanning-tree mst configuration Displays the active region configuration information.

Step 2 Switch# show spanning-tree mst [detail] Displays detailed MST protocol information.

Step 3 Switch# show spanning-tree mst instance-id [detail] Displays information about a specific MST instance.

Step 4 Switch# show spanning-tree mst interface interface [detail]

Displays information for a given port.

Step 5 Switch# show spanning-tree mst instance-id interface interface [detail]

Displays MST information for a given port and a given instance.

Step 6 Switch# show spanning-tree vlan vlan_ID Displays VLAN information in MST mode.

Configuring MST · Switch#

Page 486 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 486 · click to enlarge
Page 486

Chapter 18 Configuring STP and MST Configuring MST

The following examples show how to display spanning tree VLAN configurations in MST mode:

Switch(config)# spanning-tree mst configuration Switch(config-mst)# instance 1 vlan 1-10 Switch(config-mst)# name cisco Switch(config-mst)# revision 1 Switch(config-mst)# Ctrl-D

Switch# show spanning-tree mst configuration Name [cisco] Revision 1 Instance Vlans mapped 0 11-4094 1 1-10

Switch# show spanning-tree mst

###### MST00 vlans mapped: 11-4094 Bridge address 00d0.00b8.1400 priority 32768 (32768 sysid 0) Root address 00d0.004a.3c1c priority 32768 (32768 sysid 0) port Fa4/48 path cost 203100 IST master this switch Operational hello time 2, forward delay 15, max age 20, max hops 20 Configured hello time 2, forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Status --- Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Root FWD 200000 128.240 P2p Bound(STP)

###### MST01 vlans mapped1-10 Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST01

Interface Role Sts Cost Prio.Nbr Status --- Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Boun FWD 200000 128.240 P2p Bound(STP)

Switch# show spanning-tree mst 1

###### MST01 vlans mapped1-10 Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST01

Interface Role Sts Cost Prio.Nbr Status --- Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Boun FWD 200000 128.240 P2p Bound(STP)

Page 487 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 487 · click to enlarge
Page 487

Chapter 18 Configuring STP and MST

Switch# show spanning-tree mst interface fastethernet 4/4

FastEthernet4/4 of MST00 is backup blocking Edge port:no (default) port guard :none (default) Link type:point-to-point (auto) bpdu filter:disable (default) Boundary :internal bpdu guard :disable (default) Bpdus sent 2, received 368

Instance Role Sts Cost Prio.Nbr Vlans mapped --- 0 Back BLK 1000 240.196 11-4094 1 Back BLK 1000 240.196 1-10

Switch# show spanning-tree mst 1 interface fastethernet 4/4

FastEthernet4/4 of MST01 is backup blocking Edge port:no (default) port guard :none (default) Link type:point-to-point (auto) bpdu filter:disable (default) Boundary :internal bpdu guard :disable (default) Bpdus (MRecords) sent 2, received 364

Instance Role Sts Cost Prio.Nbr Vlans mapped --- 1 Back BLK 1000 240.196 1-10

Switch# show spanning-tree mst 1 detail

###### MST01 vlans mapped1-10 Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST01

FastEthernet4/4 of MST01 is backup blocking Port info port id 240.196 priority 240 cost 1000 Designated root address 00d0.00b8.1400 priority 32769 cost 0 Designated bridge address 00d0.00b8.1400 priority 32769 port id 128.197 Timers:message expires in 5 sec, forward delay 0, forward transitions 0 Bpdus (MRecords) sent 123, received 1188

FastEthernet4/5 of MST01 is designated forwarding Port info port id 128.197 priority 128 cost 200000 Designated root address 00d0.00b8.1400 priority 32769 cost 0 Designated bridge address 00d0.00b8.1400 priority 32769 port id 128.197 Timers:message expires in 0 sec, forward delay 0, forward transitions 1 Bpdus (MRecords) sent 1188, received 123

FastEthernet4/48 of MST01 is boundary forwarding Port info port id 128.240 priority 128 cost 200000 Designated root address 00d0.00b8.1400 priority 32769 cost 0 Designated bridge address 00d0.00b8.1400 priority 32769 port id 128.240 Timers:message expires in 0 sec, forward delay 0, forward transitions 1 Bpdus (MRecords) sent 78, received 0

Switch# show spanning-tree vlan 10

MST01 Spanning tree enabled protocol mstp Root ID Priority 32769 Address 00d0.00b8.1400 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Configuring MST

Page 488 of the Cisco Systems 4500 user manual — Configuring STP and MST
Page 488 · click to enlarge
Page 488

Chapter 18 Configuring STP and MST Configuring MST

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 00d0.00b8.1400 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Interface Role Sts Cost Prio.Nbr Status --- Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p

Switch# show spanning-tree summary Root bridge for:MST01 EtherChannel misconfiguration guard is enabled Extended system ID is enabled Portfast is disabled by default PortFast BPDU Guard is disabled by default Portfast BPDU Filter is disabled by default Loopguard is disabled by default UplinkFast is disabled BackboneFast is disabled Pathcost method used is long

Name Blocking Listening Learning Forwarding STP Active MST00 1 0 0 2 3 MST01 1 0 0 2 3 2 msts 2 0 0 4 6 Switch#

Page 489 of the Cisco Systems 4500 user manual — About Flex Links
Page 489 · click to enlarge
Page 489

C H A P T E R

Configuring Flex Links and MAC Address-Table Move Update

Flex Links provide a fast and simplified Layer 2 Link redundancy mechanism. This chapter describes how to configure Flex Links on the Catalyst 4500 series switch. It also describes how to configure the MAC address-table move update (MMU) feature, also referred to as the Flex Links bidirectional fast convergence feature.

The chapter consists of these sections:

  • About Flex Links, page 19-1
  • Configuring Flex Links, page 19-5
  • Monitoring Flex Links and the MAC Address-Table Move Update, page 19-12

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Flex Links

This section describes this information:

  • Flex Links, page 19-2
  • VLAN Flex Links Load Balancing and Support, page 19-2
  • Flex Links Failover Actions, page 19-3
Page 490 of the Cisco Systems 4500 user manual — VLAN Flex Links Load Balancing and Support
Page 490 · click to enlarge
Page 490

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update About Flex Links

Flex Links

Flex Links are a pair of Layer 2 interfaces (switch ports or port channels) where one interface is configured to act as a backup to the other. Users can disable STP and still retain basic link redundancy. Flex Links are typically configured in service provider or enterprise networks where customers do not want to run STP on some interfaces.

You configure Flex Links on one Layer 2 interface (the active link) by assigning another Layer 2 interface as the Flex Link or backup link. When one of the links is up and forwarding traffic, the other link is in standby mode, ready to begin forwarding traffic if the other link fails. At any given time, only one of the interfaces is in the forwarding state and forwarding traffic. If the primary link fails, the standby link starts forwarding traffic. When the active link reactivates, it enters standby mode and does not forward traffic. STP is disabled on Flex Links interfaces.

In Figure 19-1, ports 1 and 2 on switch A are connected to uplink switches B and C. Because they are configured as Flex Links, only one of the interfaces is forwarding traffic; the other is in standby mode. If port 1 is the active link, it begins forwarding traffic between port 1 and switch B; the link between port 2 (the backup link) and switch C is not forwarding traffic. If port 1 shuts down, port 2 activates and starts forwarding traffic to switch C. When port 1 reactivates, it enters standby mode and does not forward traffic; port 2 continues forwarding traffic.

You can also choose to configure a preemption mechanism, specifying the preferred port for forwarding traffic. In Figure 19-1, for example, you can configure the Flex Links pair with preemption mode so that after port 1 reactivates in the scenario, and it has greater bandwidth than port 2, port 1 begins forwarding after a duration equal to the preemption delay; and port 2 becomes the standby. You do this by entering the interface configuration switchport backup interface preemption mode bandwidth and switchport backup interface preemption delay commands.

Figure 19-1 Flex Links Configuration Example

Port 1 Port 2

If a primary (forwarding) link shuts down, a trap notifies the network management stations. If the standby link shuts down, a trap notifies the users.

Flex Links are supported only on Layer 2 ports and port channels. Flex Links are compatible with promiscuous trunks. It is not supported on isolated PVLAN trunks.

VLAN Flex Links Load Balancing and Support

VLAN Flex Links load balancing allows you to configure a Flex Links pair so that both ports simultaneously forward the traffic for mutually exclusive VLANs. For example, if Flex Links ports are configured for 1 to100 VLANs, the traffic of the first 50 VLANs can be forwarded on one port and the rest on the other port. If one of the ports fail, the other active port forwards all the traffic. When the failed

Uplink switch B · Uplink switch C · Switch A

Page 491 of the Cisco Systems 4500 user manual — Flex Links Failover Actions
Page 491 · click to enlarge
Page 491

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update

port reactivates, it resumes forwarding traffic in the preferred VLANs. In addition to providing the redundancy, this Flex Links pair can be used for load balancing. Also, Flex Links VLAN load balancing also does not impose any restrictions on uplink switches (Figure 19-2).

Figure 19-2 VLAN Flex Links Load Balancing Configuration Example

Flex Links Failover Actions

When a Flex Links primary fails, the following important actions are taken:

  • Detects link failure.
  • Moves static unicast MAC addresses that are configured on the primary link to the standby link.
  • Moves dynamic unicast MAC addresses that are learned on the primary link to the standby link.
  • Moves the standby link to a forwarding state.
  • Transmits MAC address-table move updates over a new active link, if you enter the mac move update transmit command.
  • Transmits dummy multicast packets over a new active interface.

Static MAC addresses configured on a Flex Links member interface are moved over to the backup, if it fails. Static MAC addresses configured on a Flex Links member interface are restored when it starts forwarding again.

Show 9 more labels / short text on this page
About Flex Links · Uplink switch B · Uplink switch C · Forwarding · Forwarding (51-100) · (1-50) · gi2/0/6 · gi2/0/8 · Switch A
Page 492 of the Cisco Systems 4500 user manual — MAC Address-Table Move Update
Page 492 · click to enlarge
Page 492

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update MAC Address-Table Move Update

MAC Address-Table Move Update

In Figure 19-3, ports 1 and 2 on switch A are connected to uplink switches B and D through a Flex Links pair. Port 1 is forwarding traffic, and port 2 is in the blocking state. Traffic from the PC to the server is forwarded from port 1 to port 3. The MAC address of the PC was learned on port 3 of switch C. Traffic from the server to the PC is forwarded from port 3 to port 1.

If port 1 shuts down, port 2 starts forwarding traffic. If there is no traffic from PC to the server after failover to port 2, switch C does not learn MAC address of the PC on port 4. As a result, switch C keeps forwarding traffic from the server to the PC out of port 3. There is traffic loss from server to PC because port 1 is down. This problem is alleviated by sending out a dummy multicast packet with source MAC address of the PC over port 2. Switch C learns the PC MAC address on port 4 and start forwarding traffic from server to the PC out of port 4. One dummy multicast packet is sent out for every MAC address. which is the default Flex Links behavior. The MAC address-table move update (MMU) feature may be enabled to further expedite downstream convergence. MMUs are special packets that carry multiple MAC addresses. Switch A is configured to transmit these packets and switches B, C, and D are configured to receive such packets. If MMU transmit is enabled on Switch A, MAC move updates are transmitted before dummy multicast packets over port 2. Switch D processes and floods MMUs over to Switch C. Switch C processes these packets, and moves the MAC addresses contained within the packets from port 3 to port 4. Because one packet carries multiple MAC addresses, downstream convergence is faster.

Page 493 of the Cisco Systems 4500 user manual — Default Configuration
Page 493 · click to enlarge
Page 493

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update

Figure 19-3 MAC Address-Table Move Update Example

Switch B Switch D

Port 1 Port 2

PC

Configuring Flex Links

These sections contain this configuration information:

  • Default Configuration, page 19-5
  • Configuration Guidelines, page 19-6
  • Configuring Flex Links, page 19-6
  • Configuring VLAN Load Balancing on Flex Links, page 19-8

Default Configuration

The following is the default Flex Links configuration:

  • Flex Links are not configured on any interface.
  • Preemption mode is off.
  • If preemption is enabled, preemption delay is 35 seconds.
Show 6 more labels / short text on this page
Configuring Flex Links · Server · Switch C · Port 3 · Port 4 · Switch A
Page 494 of the Cisco Systems 4500 user manual — Configuring Flex Links
Page 494 · click to enlarge
Page 494

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update Configuring Flex Links

Configuration Guidelines

Follow these guidelines to configure Flex Links and associated features:

  • You can configure only one Flex Link backup link for any active link, and it must be a different interface from the active interface.
  • An interface can belong to only one Flex Links pair. An interface can be a backup link for only one active link, but an active link cannot belong to another Flex Links pair.
  • Neither of the links can be a port that belongs to an EtherChannel. However, you can configure two port channels (EtherChannel logical interfaces) as Flex Links. Moreover, you can configure a port channel and a physical interface as Flex Links, with either the port channel or the physical interface as the active link.
  • The types (Fast Ethernet, Gigabit Ethernet, or port channel) of the backup link and the active link can differ. However, you should configure both Flex Links with similar characteristics so that no loops exist or changes occur in behavior if the standby link begins to forward traffic.
  • STP is disabled on Flex Links ports. A Flex Links port does not participate in STP, even if the VLANs present on the port are configured for STP. When STP is not enabled, ensure that no loops exist in the configured topology.
  • Configure any static MAC addresses on a Flex Links member interface after enabling Flex Links.

Follow these guidelines to configure VLAN load balancing on the Flex Links feature. For Flex Links VLAN load balancing, you must choose the preferred VLANs on the backup interface.

Set switchport backup interface interface-id preemption mode to forced. A default value of 35 seconds is used as the delay timeout. You cannot configure switchport backup interface interface-id preemption mode on the interface. So, mode bandwidth and off cannot be configured.

Adjust the delay time with the switchport backup interface interface-id preemption delay delay-time command.

Configuring Flex Links

To configure a pair of Flex Links, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(conf)# interface interface-id Specifies the interface, and enters interface configuration mode. The interface might be a physical Layer 2 interface or a port channel (logical interface). The port channel range is 1 to 64.

Step 3 Switch(conf-if)# switchport backup interface interface-id

Configures a physical Layer 2 interface (or port channel) as part of a Flex Links pair with the interface. When one link is forwarding traffic, the other interface is in standby mode.

Step 4 Switch(conf-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show interface [interface-id] switchport backup

Verifies the configuration.

Step 6 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

Page 495 of the Cisco Systems 4500 user manual — Configuring Flex Links and MAC Address-Table Move Update
Page 495 · click to enlarge
Page 495

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update

To disable a Flex Links backup interface, enter the no switchport backup interface interface-id interface configuration command.

This example shows how to configure an interface with a backup interface and to verify the configuration:

Switch# configure terminal Switch(conf)# interface fastethernet1/1 Switch(conf-if)# switchport backup interface fastethernet1/2 Switch(conf-if)# end Switch# show interface switchport backup Switch Backup Interface Pairs:

Active Interface Backup Interface State FastEthernet1/1 FastEthernet1/2 Active Up/Backup Standby FastEthernet1/3 FastEthernet1/4 Active Up/Backup Standby Port-channel1 GigabitEthernet1/1 Active Up/Backup Standby

To configure a preemption scheme for a pair of Flex Links, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(conf)# interface interface-id Specifies the interface, and enters interface configuration mode. The interface might be a physical Layer 2 interface or a port channel (logical interface). The port channel range is 1 to 64.

Step 3 Switch(conf-if)# switchport backup interface interface-id

Configures a physical Layer 2 interface (or port channel) as part of a Flex Links pair with the interface. When one link is forwarding traffic, the other interface is in standby mode.

Step 4 Switch(conf-if)# switchport backup interface interface-id preemption mode [forced | bandwidth | off]

Configures a preemption mechanism and delay for a Flex Links interface pair. You can configure the preemption mode as:

  • forced —The active interface always preempts the backup.
  • bandwidth —The interface with higher bandwidth always acts as the active interface.
  • off —No preemption occurs from active to backup.

Step 5 Switch(conf-if)# switchport backup interface interface-id preemption delay delay-time

Configures the delay time until a port preempts another port.

Step 6 Switch(conf)# end Returns to privileged EXEC mode.

Step 7 Switch# show interface [interface-id] switchport backup

Verifies the configuration.

Step 8 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

Configuring Flex Links

Page 496 of the Cisco Systems 4500 user manual — Configuring VLAN Load Balancing on Flex Links
Page 496 · click to enlarge
Page 496

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update Configuring Flex Links

To remove a preemption scheme, enter the no switchport backup interface interface-id preemption mode interface configuration command. To reset the delay time to the default, enter the no switchport backup interface interface-id preemption delay interface configuration command.

This example shows how to configure preemption mode as bandwidth for a backup interface pair and to verify the configuration:

Switch# configure terminal Switch(conf)# interface gigabitethernet1/0/1 Switch(conf-if)# switchport backup interface gigabitethernet1/2 Switch(conf-if)# switchport backup interface gigabitethernet1/2 preemption mode forced Switch(conf-if)# switchport backup interface gigabitethernet1/2 preemption delay 50 Switch(conf-if)# end Switch# show interface switchport backup detail Active Interface Backup Interface State GigabitEthernet1/21 GigabitEthernet1/2 Active Down/Backup Down Interface Pair : Gi1/21, Gi1/2 Preemption Mode : forced Preemption Delay : 50 seconds Bandwidth : 10000 Kbit (Gi1/1), 10000 Kbit (Gi1/2) Mac Address Move Update Vlan : auto

Configuring VLAN Load Balancing on Flex Links

To configure VLAN load balancing on Flex Links, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(conf)# interface interface-id Specifies the interface, and enters interface configuration mode. The interface might be a physical Layer 2 interface or a port channel (logical interface). The port channel range is 1 to 48.

Step 3 Switch(conf-if)# switchport backup interface interface-id prefer vlan vlan-range

Configures a physical Layer 2 interface (or port channel) as part of a Flex Links pair with the interface, and specifies the VLANs carried on the interface. The VLAN ID range is 1 to 4094.

Step 4 Switch(conf-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show interfaces [interface-id] switchport backup

Verifies the configuration.

Step 6 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

To disable the VLAN load balancing feature, enter the no switchport backup interface prefer vlan interface configuration command.

In this example, VLANs 1 to 50, 60, and 100 to 120 are configured on the switch:

Switch(config)# interface fastethernet 1/6 Switch(config-if)# switchport backup interface fastethernet 1/0/8 prefer vlan 60,100-120

Page 497 of the Cisco Systems 4500 user manual — Configuring Flex Links and MAC Address-Table Move Update
Page 497 · click to enlarge
Page 497

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update

When both interfaces are up, Fast Ethernet port 1/0/8 forwards traffic for VLANs 60 and 100 to 120 and Fast Ethernet port 1/0/6 forwards traffic for VLANs 1 to 50.

Switch# show interfaces switchport backup Switch Backup Interface Pairs:

Active Interface Backup Interface State FastEthernet1/6 FastEthernet1/8 Active Up/Backup Standby

Vlans Preferred on Active Interface1-50 Vlans Preferred on Backup Interface: 60, 100-120

When a Flex Links interface shuts down, VLANs preferred on this interface are moved to the peer interface of the Flex Links pair. In this example, if interface 1/6 shuts down, interface 1/8 carries all VLANs of the Flex Links pair.

Switch# show interfaces switchport backup Switch Backup Interface Pairs:

Active Interface Backup Interface State FastEthernet1/6 FastEthernet1/8 Active Down/Backup VLB all

Vlans Preferred on Active Interface1-50 Vlans Preferred on Backup Interface: 60, 100-120

When a Flex Links interface becomes active, VLANs preferred on this interface are blocked on the peer interface and moved to the forwarding state on the interface that has just come up. In this example, if interface Fast Ethernet port 1/6 becomes active, VLANs preferred on this interface are blocked on the peer interface Fast Ethernet port 1/8 and forwarded on Fast Ethernet port 1/6.

Switch# show interfaces switchport backup Switch Backup Interface Pairs:

Active Interface Backup Interface State FastEthernet1/6 FastEthernet1/8 Active VLB cfg/Backup VLB cfg

Vlans Preferred on Active Interface1-50 Vlans Preferred on Backup Interface: 60, 100-120

Switch# show interfaces switchport backup detail Switch Backup Interface Pairs:

Active Interface Backup Interface State FastEthernet1/6 FastEthernet1/8 Active VLB cfg/Backup VLB cfg

Vlans Preferred on Active Interface: 1-50 Vlans Preferred on Backup Interface: 60, 100-120 Preemption Mode : off Bandwidth : 10000 Kbit (Fa1/6), 100000 Kbit (Fa1/8) Mac Address Move Update Vlan : auto

Configuring Flex Links

Page 498 of the Cisco Systems 4500 user manual — Configuring a Switch to Send MAC Address-Table Move Updates
Page 498 · click to enlarge
Page 498

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update Configuring MAC Address-Table Move Update

Configuring MAC Address-Table Move Update

These sections contain this configuration information:

  • Default Configuration, page 19-5
  • Configuration Guidelines, page 19-6
  • Configuring MAC Address-Table Move Update, page 19-10

Default Configuration

By default, the MAC address-table move update feature is disabled.

Configuration Guidelines

Follow these guidelines to configure the MAC address-table move update feature:

  • Enable mac address-table move transmit on the switch with Flex Links configured to send MAC address-table move updates.
  • Enable mac address-table move receive on all upstream switches to process MAC address-table move updates.

Configuring the MAC Address-Table Move Update Feature

This section describes the following tasks:

  • Configuring a Switch to Send MAC Address-Table Move Updates, page 19-10
  • Configuring a Switch to Receive MAC Address-Table Move Updates, page 19-12

Configuring a Switch to Send MAC Address-Table Move Updates

To configure an access switch to send MAC address-table move updates, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(conf)# interface interface-id Specifies the interface, and enters interface configuration mode. The interface might be a physical Layer 2 interface or a port channel (logical interface). The port channel range is 1 to 64.

Page 499 of the Cisco Systems 4500 user manual — Configuring Flex Links and MAC Address-Table Move Update
Page 499 · click to enlarge
Page 499

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update

Configuring MAC Address-Table Move Update

Step 3 Switch(conf-if)# switchport backup interface interface-id

Configures a physical Layer 2 interface (or port channel), as part of a Flex Links pair with the interface. The MAC address-table move update VLAN is the lowest VLAN ID on the interface.

or Switch(conf-if)# switchport backup interface interface-id mmu primary vlan vlan-id

Configures a physical Layer 2 interface (or port channel) and specifies the VLAN ID on the interface, which is used for sending the MAC address-table move update.

When one link is forwarding traffic, the other interface is in standby mode.

Step 4 Switch(conf-if)# end Returns to global configuration mode.

Step 5 Switch(conf)# mac address-table move update transmit

Enables the access switch to send MAC address-table move updates to other switches in the network if the primary link shuts down and the switch starts forwarding traffic through the standby link.

Step 6 Switch(conf)# end Returns to privileged EXEC mode.

Step 7 Switch# show mac address-table move update Verifies the configuration.

Step 8 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

To disable the MAC address-table move update feature on the access switch, enter the no mac address-table move update transmit interface configuration command. To display the MAC address-table move update information, enter the show mac address-table move update command.

This example shows how to configure an access switch to send MAC address-table move update messages and to verify the configuration:

Switch# configure terminal Switch(conf)# interface fastethernet1/1 Switch(conf-if)# switchport backup interface fastethernet1/0/2 mmu primary vlan 2 Switch(conf-if)# end Switch(conf)# mac address-table move update transmit Switch(conf)# end Switch# show mac-address-table move update Switch-ID : 01d0.2bfc.3180 Dst mac-address : 0180.c200.0010 Vlans/Macs supported : 4096/55000 Default/Current settings: Rcv Off/Off, Xmt Off/On Max packets per min : Rcv 100, Xmt 120 Rcv packet count : 0 Rcv conforming packet count : 0 Rcv invalid packet count : 0 Rcv packet count this min : 0 Rcv threshold exceed count : 0 Rcv last sequence# this min : 0 Rcv last interface : None Rcv last src-mac-address : 0000.0000.0000 Rcv last switch-ID : 0000.0000.0000 Xmt packet count : 0 Xmt packet count this min : 0 Xmt threshold exceed count : 0 Xmt pak buf unavail cnt : 0 Xmt last interface : fa1/2

Page 500 of the Cisco Systems 4500 user manual — Monitoring Flex Links and the MAC Address-Table Move Update
Page 500 · click to enlarge
Page 500

Chapter 19 Configuring Flex Links and MAC Address-Table Move Update Monitoring Flex Links and the MAC Address-Table Move Update

Configuring a Switch to Receive MAC Address-Table Move Updates

To configure a switch to receive and process MAC address-table move update messages, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(conf)# mac address-table move update receive

Enables the switch to receive and process the MAC address-table move updates.

Step 3 Switch(conf)# end Returns to privileged EXEC mode.

Step 4 Switch# show mac address-table move update Verifies the configuration.

Step 5 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

To disable the MAC address-table move update feature on the access switch, enter the no mac address-table move update receive configuration command. To display the MAC address-table move update information, enter the show mac address-table move update command.

This example shows how to configure a switch to receive and process MAC address-table move update messages:

Switch# configure terminal Switch(conf)# mac address-table move update receive Switch(conf)# end

Monitoring Flex Links and the MAC Address-Table Move Update

Table 19-1 shows the commands for monitoring the Flex Links configuration and the MAC address-table move update information.

Table 19-1 Flex Links and MAC Address-Table Move Update Monitoring Commands

Switch# show interface [interface-id] switchport backup

Displays the Flex Link backup interface configured for an interface or all the configured Flex Links and the state of each active and backup interface (up or standby mode).

Switch# show mac address-table move update

Displays the MAC address-table move update information on the switch.

Page 501 of the Cisco Systems 4500 user manual — About REP
Page 501 · click to enlarge
Page 501

C H A P T E R

Configuring Resilient Ethernet Protocol

This chapter describes how to use Resilient Ethernet Protocol (REP) on the Catalyst 4500 series switch. REP is a Cisco proprietary protocol that provides an alternative to Spanning Tree Protocol (STP) to control network loops, handle link failures, and improve convergence time. REP controls a group of ports connected in a segment, ensures that the segment does not create any bridging loops, and responds to link failures within the segment. REP provides a basis for constructing more complex networks and supports VLAN load balancing.

This chapter includes these sections:

  • About REP, page 20-1
  • Configuring REP, page 20-7
  • Monitoring REP, page 20-14

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About REP

One REP segment is a chain of ports connected to each other and configured with a segment ID. Each segment consists of standard (non-edge) segment ports and two user-configured edge ports. A switch can have no more than two ports that belong to the same segment, and each segment port can have only one external neighbor. A segment can go through a shared medium, but on any link only two ports can belong to the same segment. REP is supported only on Layer 2 trunk and PVLAN promiscuous trunk interfaces.

Figure 20-1 shows an example of a segment consisting of six ports spread across four switches. Ports E1 and E2 are configured as edge ports. When all ports are operational (as in the segment on the left), a single port is blocked, shown by the diagonal line. When there is a failure in the network, as shown in the diagram on the right, the blocked port returns to the forwarding state to minimize network disruption.

Page 502 of the Cisco Systems 4500 user manual — E2 E1
Page 502 · click to enlarge
Page 502

Chapter 20 Configuring Resilient Ethernet Protocol About REP

Figure 20-1 REP Open Segments

Link failure

E2 E1 E2 E1

The segment shown in Figure 20-1 is an open segment; there is no connectivity between the two edge ports. The REP segment cannot cause a bridging loop and it is safe to connect the segment edges to any network. All hosts connected to switches inside the segment have two possible connections to the rest of the network through the edge ports, but only one connection is accessible at any time. If a failure causes a host to be unable to access its usual gateway, REP unblocks all ports to ensure that connectivity is available through the other gateway.

The segment shown in Figure 20-2, with both edge ports located on the same switch, is a ring segment. In this configuration, there is connectivity between the edge ports through the segment. With this configuration, you can create a redundant connection between any two switches in the segment.

Figure 20-2 REP Ring Segment

E2 E1

REP segments have these characteristics:

  • If all ports in the segment are operational, one port (referred to as the alternate port) is in the blocked state for each VLAN. If VLAN load balancing is configured, two ports in the segment control the blocked state of VLANs.
  • If one or more ports in a segment is not operational, causing a link failure, all ports forward traffic on all VLANs to ensure connectivity.
  • In case of a link failure, the alternate ports are unblocked as quickly as possible. When the failed link comes back up, a logically blocked port per-VLAN is selected with minimal disruption to the network.
Show 4 more labels / short text on this page
E1 Edge port · Blocked port · 201888 · 201889
Page 503 of the Cisco Systems 4500 user manual — E2
Page 503 · click to enlarge
Page 503

Chapter 20 Configuring Resilient Ethernet Protocol

You can construct almost any type of network based on REP segments. REP also supports VLAN load balancing, controlled by the primary edge port but occurring at any port in the segment.

In access ring topologies, the neighboring switch might not support REP, as shown in Figure 20-3. Starting with Cisco IOS Release 15.0(2)SG, you can configure the non-REP facing ports (E1 and E2) as edge no-neighbor ports. These ports inherit all properties of edge ports, and you can configure them the same as any edge port, including configuring them to send STP or REP topology change notices to the aggregation switch. In this case the STP topology change notice (TCN) that is sent is a multiple spanning-tree (MST) STP message.

Figure 20-3 Edge No-Neighbor Ports

E1

REP not supported

E1 and E2 are configured as edge no-neighbor ports

E2

REP has these limitations:

  • You must configure each segment port; an incorrect configuration can cause forwarding loops in the networks.
  • REP can manage only a single failed port within the segment; multiple port failures within the REP segment cause loss of network connectivity.
  • You should configure REP only in networks with redundancy. Configuring REP in a network without redundancy causes loss of connectivity.

To use REP effectively, you should understand the following topics:

  • Link Integrity, page 20-4
  • Fast Convergence, page 20-4
  • VLAN Load Balancing, page 20-4
  • Spanning Tree Interaction, page 20-6
  • REP Ports, page 20-6

About REP · 273792 · REP ports

Page 504 of the Cisco Systems 4500 user manual — VLAN Load Balancing
Page 504 · click to enlarge
Page 504

Chapter 20 Configuring Resilient Ethernet Protocol About REP

Link Integrity

REP does not use an end-to-end polling mechanism between edge ports to verify link integrity. It implements local link failure detection. When enabled on an interface, the REP Link Status Layer (LSL) detects its REP-aware neighbor and establishes connectivity within the segment. All VLANs are blocked on an interface until it detects the neighbor. After the neighbor is identified, REP determines which neighbor port should become the alternate port and which ports should forward traffic.

Each port in a segment has a unique port ID. The port ID format is similar to that used by the spanning tree algorithm: a port number (unique on the bridge), associated to a MAC address (unique in the network). When a segment port is coming up, its LSL starts sending packets that include the segment ID and the port ID. The port is declared as operational after it performs a three-way handshake with a neighbor in the same segment. A segment port does not become operational if these situations occur:

  • No neighbor has the same segment ID.
  • More than one neighbor has the same segment ID.
  • The neighbor does not acknowledge the local port as a peer.

Each port creates an adjacency with its immediate neighbor. Once the neighbor adjacencies are created, the ports negotiate to determine one blocked port for the segment, the alternate port. All other ports become unblocked. By default, REP packets are sent to a BPDU class MAC address. The packets can also be sent to the Cisco multicast address, which at present is used only to send blocked port advertisement (BPA) messages when there is a failure in the segment. The packets are dropped by devices not running REP.

Fast Convergence

Because REP runs on a physical link basis and not a per-VLAN basis, only one hello message is required for all VLANs, reducing the load on the protocol. We recommend that you create VLANs consistently on all switches in a given segment and configure the same allowed VLANs on the REP trunk and PVLAN promiscuous trunk ports. To avoid the delay introduced by relaying messages in software, REP also allows some packets to be flooded to a regular multicast address. These messages operate at the hardware flood layer (HFL) and are flooded to the whole network, not just the REP segment. Switches that do not belong to the segment treat them as data traffic. You can control flooding of these messages by configuring a dedicated administrative VLAN for the whole domain.

The estimated convergence recovery time is less than 200 milliseconds for the local segment.

VLAN Load Balancing

One edge port in the REP segment acts as the primary edge port; the other as the secondary edge port. It is the primary edge port that always participates in VLAN load balancing in the segment. REP VLAN balancing is achieved by blocking some VLANs at a configured alternate port and all other VLANs at the primary edge port. When you configure VLAN load balancing, you can specify the alternate port in one of three ways:

  • By entering the port ID of the interface.

To identify the port ID of a port in the segment, enter the show interface rep detail interface configuration command for the port.

  • By entering the neighbor offset number of a port in the segment, which identifies the downstream neighbor port of an edge port.
Page 505 of the Cisco Systems 4500 user manual — E2 E1
Page 505 · click to enlarge
Page 505

Chapter 20 Configuring Resilient Ethernet Protocol

The neighbor offset number range is –256 to +256; a value of 0 is invalid. The primary edge port has an offset number of 1; positive numbers above 1 identify downstream neighbors of the primary edge port. Negative numbers indicate the secondary edge port (offset number -1) and its downstream neighbors.

Figure 20-4 shows neighbor offset numbers for a segment where E1 is the primary edge port and E2 is the secondary edge port. The red numbers inside the ring are numbers offset from the primary edge port; the black numbers outside of the ring show the offset numbers from the secondary edge port. Note that you can identify all ports (except the primary edge port) by either a positive offset number (downstream position from the primary edge port) or a negative offset number (downstream position from the secondary edge port). If E2 became the primary edge port, its offset number is then 1 and E1 is then -1.

  • By entering the preferred keyword to select the port that you previously configured as the preferred alternate port with the rep segment preferred interface configuration command.

Figure 20-4 Neighbor Offset Numbers in a Segment

E1 = Primary edge port E2 = Secondary edge port

E2 E1

-9 2 1 10 9

Offset numbers from the primary edge port Offset numbers from the secondary edge port (negative numbers)

When the REP segment is complete, all VLANs are blocked. When you configure VLAN load balancing, it is triggered in one of two ways:

  • You can manually trigger VLAN load balancing at any time by entering the rep preempt segment segment-id privileged EXEC command on the switch that has the primary edge port.
  • You can configure a preempt delay time by entering the rep preempt delay seconds interface configuration command. After a link failure and recovery, VLAN load balancing begins after the configured preemption time period elapses. Note that the delay timer restarts if another port fails before the time has elapsed.

About REP · 201890

Page 506 of the Cisco Systems 4500 user manual — REP Ports
Page 506 · click to enlarge
Page 506

Chapter 20 Configuring Resilient Ethernet Protocol About REP

When VLAN load balancing is triggered, the primary edge port then sends out a message to alert all interfaces in the segment about the preemption. When the message is received by the secondary edge port, it is reflected into the network to notify the alternate port to block the set of VLANs specified in the message and to notify the primary edge port to block the remaining VLANs.

You can also configure a particular port in the segment to block all VLANs. VLAN load balancing is initiated only by the primary edge port and is not possible if the segment is not terminated by an edge port on each end. The primary edge port determines the local VLAN load balancing configuration.

To reconfigure load balancing, you reconfigure the primary edge port. When you change the load balancing configuration, the primary edge port again waits for the rep preempt segment command or for the configured preempt delay period after a port failure and recovery before executing the new configuration. If you change an edge port to a regular segment port, the existing VLAN load balancing status does not change. Configuring a new edge port might cause a new topology configuration.

Spanning Tree Interaction

REP does not interact with STP, but can coexist with it. A port that belongs to a segment is removed from spanning tree control and STP BPDUs are not accepted or sent from segment ports. STP can not run on a segment.

To migrate from an STP ring configuration to REP segment configuration, begin by configuring a single port in the ring as part of the segment and continue by configuring contiguous ports to minimize the number of segments. Each segment always contains a blocked port, so multiple segments means multiple blocked ports and a potential loss of connectivity. When the segment has been configured in both directions up to the location of the edge ports, you then configure the edge ports.

REP Ports

Ports in REP segments take one of three roles or states: Failed, Open, or Alternate.

  • A port configured as a regular segment port starts as a failed port.
  • Once the neighbor adjacencies are determined, the port transitions to alternate port state, blocking all VLANs on the interface. Blocked port negotiations occur and when the segment settles, one blocked port remains in the alternate role and all other ports become open ports.
  • When a failure occurs in a link, all ports move to the failed state. When the alternate port receives the failure notification, it changes to the open state, forwarding all VLANs.

A regular segment port converted to an edge port, or an edge port converted to a regular segment port, does not always result in a topology change. If you convert an edge port into a regular segment port, VLAN load balancing is not implemented unless it has been configured. For VLAN load balancing, you must configure two edge ports in the segment.

A segment port that is reconfigured as a spanning tree port restarts according the spanning tree configuration (by default, a designated blocking port). If PortFast is configured or if STP is disabled, the port goes into the forwarding state.

Page 507 of the Cisco Systems 4500 user manual — REP Configuration Guidelines
Page 507 · click to enlarge
Page 507

Chapter 20 Configuring Resilient Ethernet Protocol

Configuring REP

A segment is a collection of ports connected one to the other in a chain and configured with a segment ID. To configure REP segments, you should configure the REP administrative VLAN (or use the default VLAN 1) and then add the ports to the segment using interface configuration mode. You should configure two edge ports in the segment, with one of them the primary edge port and the other by default the secondary edge port. A segment has only one primary edge port. If you configure two ports in a segment as the primary edge port, for example ports on different switches, the REP selects one of them to serve as the segment primary edge port. You can also optionally configure where to send segment topology change notices (STCNs) and VLAN load balancing.

This section includes this information:

  • Default REP Configuration, page 20-7
  • REP Configuration Guidelines, page 20-7
  • Configuring the REP Administrative VLAN, page 20-8
  • Configuring REP Interfaces, page 20-9
  • Setting Manual Preemption for VLAN Load Balancing, page 20-13
  • Configuring SNMP Traps for REP, page 20-14

Default REP Configuration

REP is disabled on all interfaces. When enabled, the interface is a regular segment port unless it is configured as an edge port.

When REP is enabled, the sending of segment topology change notices (STCNs) is disabled, all VLANs are blocked, and the administrative VLAN is VLAN 1.

When VLAN load balancing is enabled, the default is manual preemption with the delay timer disabled. If VLAN load balancing is not configured, the default after manual preemption is to block all VLANs at the primary edge port.

REP Configuration Guidelines

Follow these guidelines when configuring REP:

  • We recommend that you begin by configuring one port and then configure the contiguous ports to minimize the number of segments and the number of blocked ports.
  • If more than two ports in a segment fail when no external neighbors are configured, one port goes into a forwarding state for the data path to help maintain connectivity during configuration. In the show rep interface privileged EXEC command output, the Port Role for this port shows as Fail Logical Open ; the Port Role for the other failed port shows as Fail No Ext Neighbor . When the external neighbors for the failed ports are configured, the ports go through the alternate port state transitions and eventually go to an open state or remain as the alternate port, based on the alternate port election mechanism.
  • REP ports must be Layer 2 dot1Q trunk or PVLAN promiscuous trunk ports.
  • Be careful when configuring REP through a Telnet connection. Because REP blocks all VLANs until another REP interface sends a message to unblock it, you might lose connectivity to the switch if you enable REP in a Telnet session that accesses the switch through the same interface.

Configuring REP

Page 508 of the Cisco Systems 4500 user manual — Configuring the REP Administrative VLAN
Page 508 · click to enlarge
Page 508

Chapter 20 Configuring Resilient Ethernet Protocol Configuring REP

  • You cannot run REP and STP on the same segment or interface.
  • If you connect an STP network to the REP segment, be sure that the connection is at the segment edge. An STP connection that is not at the edge could cause a bridging loop because STP does not run on REP segments. All STP BPDUs are dropped at REP interfaces.
  • You must configure all trunk and PVLAN promiscuous trunk ports in the segment with the same set of allowed VLANs, or a misconfiguration occurs.
  • REP ports follow these rules:

– If REP is enabled on two ports on a switch, both ports must be either regular segment ports or edge ports.

– If only one port on a switch is configured in a segment, the port should be an edge port.

– If two ports on a switch belong to the same segment, both ports must be edge ports or both ports must be regular segment ports.

– If two ports on a switch belong to the same segment, they must be both edge ports, both regular segment ports, or one regular port and one edge no-neighbor port. An edge port and regular segment port on a switch cannot belong to the same segment.

– If two ports on a switch belong to the same segment and one is configured as an edge port and one as a regular segment port (a misconfiguration), the edge port is treated as a regular segment port.

  • REP interfaces come up in a blocked state and remains in a blocked state until notified that it is safe to unblock. You need to be aware of this to avoid sudden connection losses.
  • REP sends all LSL PDUs in untagged frames on the native VLAN. The BPA message sent to the Cisco multicast address is sent on the administration VLAN, which is VLAN 1 by default.
  • REP ports can not be configured as one of these port types:

– SPAN destination port

– Private VLAN port

  • REP is supported on EtherChannels, but not on an individual port that belongs to an EtherChannel.
  • There is a maximum of 384 REP segments per switch.

Configuring the REP Administrative VLAN

To avoid the delay introduced by relaying messages in software for link-failure or VLAN-blocking notification during load balancing, REP floods packets at the hardware flood layer (HFL) to a regular multicast address. These messages are flooded to the whole network, not just the REP segment. You can control flooding of these messages by configuring an administrative VLAN for the whole domain.

Follow these guidelines when configuring the REP administrative VLAN:

  • If you do not configure an administrative VLAN, the default is VLAN 1.
  • There can be only one administrative VLAN on a switch and on a segment (not enforced by software).
  • The administrative VLAN cannot be the RSPAN VLAN.

– Tunnel port · – Access port

Page 509 of the Cisco Systems 4500 user manual — Configuring REP Interfaces
Page 509 · click to enlarge
Page 509

Chapter 20 Configuring Resilient Ethernet Protocol

To configure the REP administrative VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# rep admin vlan vlan-id Specifies the administrative VLAN. The range is 2 to 4094. The default is VLAN 1. To set the admin VLAN to 1, enter the no rep admin vlan global configuration command.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show interface [interface-id] rep detail Verifies the configuration on one of the REP interfaces.

Step 5 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

This example shows how to configure the administrative VLAN as VLAN 100 and verify the configuration by entering the show interface rep detail command on one of the REP interfaces:

Switch# configure terminal Switch (config)# rep admin vlan 100 Switch (config)# end

Switch# show interface gigabitethernet1/1 rep detail GigabitEthernet1/1 REP enabled Segment-id: 2 (Edge) PortID: 00010019E7144680 Preferred flag: No Operational Link Status: TWO_WAY Current Key: 0002001121A2D5800E4D Port Role: Open Blocked Vlan: Admin-vlan: 100 Preempt Delay Timer: disabled Load-balancing block port: none Load-balancing block vlan: none STCN Propagate to: none LSL PDU rx: 3322, tx: 1722 HFL PDU rx: 32, tx: 5 BPA TLV rx: 16849, tx: 508 BPA (STCN, LSL) TLV rx: 0, tx: 0 BPA (STCN, HFL) TLV rx: 0, tx: 0 EPA-ELECTION TLV rx: 118, tx: 118 EPA-COMMAND TLV rx: 0, tx: 0 EPA-INFO TLV rx: 4214, tx: 4190

Configuring REP Interfaces

For REP operation, you need to enable it on each segment interface and identify the segment ID. This step is required and must be done before other REP configuration. You must also configure a primary and secondary edge port on each segment. All other steps are optional.

Configuring REP

Page 510 of the Cisco Systems 4500 user manual — Configuring Resilient Ethernet Protocol
Page 510 · click to enlarge
Page 510

Chapter 20 Configuring Resilient Ethernet Protocol Configuring REP

To enable and configure REP on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface, and enter interface configuration mode. The interface can be a physical Layer 2 interface or a port channel (logical interface). The port-channel range is 1 to 48.

Step 3 Switch(config-if)# switchport mode trunk or, switchport mode private-vlan trunk promiscuous

Configures the Layer 2 interface as a Layer 2 trunk port. Configures the Layer 2 interface as a PVLAN promiscuous trunk port. For information on command options for PVLAN promiscuous trunk ports, refer to “Configuring a Layer 2 Interface as a Promiscuous PVLAN Trunk Port” on page 21.

Page 511 of the Cisco Systems 4500 user manual — Configuring Resilient Ethernet Protocol
Page 511 · click to enlarge
Page 511

Chapter 20 Configuring Resilient Ethernet Protocol

Step 4 Switch(config-if)# rep segment segment-id [edge [no-neighbor] [primary]] [preferred]

Enables REP on the interface, and identifies a segment number. The segment ID range is from 1 to 1024. These optional keywords are available.

  • Enter edge to configure the port as an edge port. Entering edge without the primary keyword configures the port as the secondary edge port. Each segment has only two edge ports.
  • (Optional) Enter no-neighbor to configure a port with no external REP neighbors as an edge port. The port inherits all properties of edge ports. You can configure them as you would any edge port.
  • (Optional) On an edge port, enter primary to configure the port as the primary edge port, the port on which you can configure VLAN load balancing.

Note Although each segment can have only one primary edge port, if you configure edge ports on two different switches and enter the primary keyword on both switches, the configuration is allowed. However, REP selects only one of these ports as the segment primary edge port. You can identify the primary edge port for a segment by entering the show rep topology privileged EXEC command.

  • (Optional) Enter preferred to indicate that the port is the preferred alternate port or the preferred port for VLAN load balancing.

Step 5 Switch(config-if)# rep stcn {interface interface-id | segment id-list | stp}

(Optional) Configures the edge port to send segment topology change notices (STCNs).

  • Enter interface interface-id to designate a physical interface or port channel to receive STCNs.
  • Enter segment id-list to identify one or more segments to receive STCNs. The range is 1 to 1024.
  • Enter stp to send STCNs to STP networks.

Configuring REP

Page 512 of the Cisco Systems 4500 user manual — Configuring Resilient Ethernet Protocol
Page 512 · click to enlarge
Page 512

Chapter 20 Configuring Resilient Ethernet Protocol Configuring REP

Step 6 Switch(config-if)# rep block port {id port-id | neighbor_offset | preferred} vlan {vlan-list | all}

(Optional) Configures VLAN load balancing on the primary edge port, identify the REP alternate port in one of three ways, and configure the VLANs to be blocked on the alternate port.

  • Enter the id port-id to identify the alternate port by port ID. The port ID is automatically generated for each port in the segment. You can view interface port IDs by entering the show interface interface-id rep [ detail ] privileged EXEC command.
  • Enter a neighbor_offset number to identify the alternate port as a downstream neighbor from an edge port. The range is from –256 to 256, with negative numbers indicating the downstream neighbor from the secondary edge port. A value of 0 is invalid. Enter -1 to identify the secondary edge port as the alternate port. For an example of neighbor offset numbering, see Figure 20-4 on page 20-5 .
  • Enter preferred to select the regular segment port previously identified as the preferred alternate port for VLAN load balancing.
  • Enter vlan vlan-list to block one VLAN or a range of VLANs.
  • Enter vlan all to block all VLANs.

Step 7 Switch(conf-if)# rep preempt delay seconds

(Optional) You must enter this command and configure a preempt time delay if you want VLAN load balancing to automatically trigger after a link failure and recovery. The time delay range is 15 to 300 seconds. The default is manual preemption with no time delay.

Step 8 Switch(config-if)# end Returns to privileged EXEC mode.

Step 9 Switch# show interface [interface-id] rep [detail]

Verifies the REP interface configuration.

Step 10 Switch# copy running-config startup config

(Optional) Saves your entries in the switch startup configuration file.

Enter the no form of each command to return to the default configuration. Enter the show rep topology privileged EXEC command to see which port in the segment is the primary edge port.

This example shows how to configure an interface as the primary edge port for segment 1, to send STCNs to segments 2 through 5, and to configure the alternate port as the port with port ID 0009001818D68700 to block all VLANs after a preemption delay of 60 seconds after a segment port failure and recovery.

Switch# configure terminal Switch(config)# interface gigabitethernet1/1 Switch(config-if)# rep segment 1 edge primary Switch(config-if)# rep stcn segment 2-5 Switch(config-if)# rep block port 0009001818D68700 vlan all Switch(config-if)# rep preempt delay 60 Switch(config-if)# end

Page 513 of the Cisco Systems 4500 user manual — Setting Manual Preemption for VLAN Load Balancing
Page 513 · click to enlarge
Page 513

Chapter 20 Configuring Resilient Ethernet Protocol

This example shows how to configure the same configuration when the interface has no external REP neighbor:

Switch# configure terminal Switch (config)# interface gigabitethernet1/1 Switch (config-if)# rep segment 1 edge no-neighbor primary Switch (config-if)# rep stcn segment 2-5 Switch (config-if)# rep block port 0009001818D68700 vlan all Switch (config-if)# rep preempt delay 60 Switch (config-if)# rep lsl-age-timer 6000

This example shows how to configure the VLAN blocking configuration shown in Figure 20-5. The alternate port is the neighbor with neighbor offset number 4. After manual preemption, VLANs 100 to 200 are blocked at this port and all other VLANs are blocked at the primary edge port E1 (Gigabit Ethernet port 1/1).

Switch# configure terminal Switch (config)# interface gigabitethernet1/1 Switch (config-if)# rep segment 1 edge primary Switch (config-if)# rep block port 4 vlan 100-200 Switch (config-if)# end

Figure 20-5 Example of VLAN Blocking

Primary edge port E1 blocks all VLANs except

E2 E1

Alternate port (offset 4) blocks VLANs 100-200

Setting Manual Preemption for VLAN Load Balancing

If you do not enter the rep preempt delay seconds interface configuration command on the primary edge port to configure a preemption time delay, the default is to manually trigger VLAN load balancing on the segment. Be sure that all other segment configuration has been completed before manually preempting VLAN load balancing. When you enter the rep preempt segment command, a confirmation message appears before the command is executed because preemption can cause network disruption.

To manually trigger VLAN load balancing on a segment on the switch that has the segment primary edge port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface, and enter interface configuration mode. The interface can be a physical Layer 2 interface or a port channel (logical interface). The port-channel range is 1 to 48.

Configuring REP · VLANs 100-200 · 201891

Page 514 of the Cisco Systems 4500 user manual — Monitoring REP
Page 514 · click to enlarge
Page 514

Chapter 20 Configuring Resilient Ethernet Protocol Monitoring REP

Step 3 Switch(config-if)# rep preempt segment segment-id

Manually triggers VLAN load balancing on the segment.

You must confirm the command before it is executed.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show rep topology Displays REP topology information.

Configuring SNMP Traps for REP

To configure the switch to send REP-specific traps to notify the SNMP server of link operational status changes and port role changes, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp mib rep trap-rate value Enables the switch to send REP traps, and set the number of

traps sent per second. The range is from 0 to 1000. The default is 0 (no limit imposed; a trap is sent at every occurrence).

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies the REP trap configuration.

Step 5 Switch# copy running-config startup config (Optional) Saves your entries in the switch startup configuration file.

To remove the trap, enter the no snmp mib rep trap-rate global configuration command.

This example configures the switch to send REP traps at a rate of 10 per second:

Switch(config)# snmp mib rep trap-rate 10

Monitoring REP

To monitor REP, enter the following privileged EXEC commands (Table 20-1).

Table 20-1 REP Monitoring Commands

Switch# show interface [interface-id] rep [detail]

Displays REP configuration and status for a specified interface or for all interfaces.

Switch# show rep topology [segment segment_id] [archive] [detail]

Displays REP topology information for a segment or for all segments, including the primary and secondary edge ports in the segment.

Page 515 of the Cisco Systems 4500 user manual — C H A P T E R
Page 515 · click to enlarge
Page 515

C H A P T E R

Configuring Optional STP Features

This chapter describes the Spanning Tree Protocol (STP) features supported on the Catalyst 4500 series switch. It also provides guidelines, procedures, and configuration examples.

This chapter includes the following major sections:

  • About Root Guard, page 21-2
  • Enabling Root Guard, page 21-2
  • About Loop Guard, page 21-3
  • Enabling Loop Guard, page 21-5
  • About EtherChannel Guard, page 21-6
  • Enabling EtherChannel Guard (Optional), page 21-6
  • About PortFast, page 21-7
  • Enabling PortFast, page 21-7
  • About BPDU Guard, page 21-8
  • Enabling BackboneFast, page 21-16
  • About PortFast BPDU Filtering, page 21-9
  • Enabling BackboneFast, page 21-16
  • About UplinkFast, page 21-11
  • Enabling UplinkFast, page 21-12
  • About BackboneFast, page 21-14
  • Enabling BackboneFast, page 21-16
Page 516 of the Cisco Systems 4500 user manual — Enabling Root Guard
Page 516 · click to enlarge
Page 516

Chapter 21 Configuring Optional STP Features About Root Guard

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Root Guard

Spanning Tree root guard forces an interface to become a designated port, to protect the current root status and prevent surrounding switches from becoming the root switch.

When you enable root guard on a per-port basis, it is automatically applied to all of the active VLANs to which that port belongs. When you disable root guard, it is disabled for the specified port and the port automatically goes into the listening state.

When a switch that has ports with root guard enabled detects a new root, the ports enter the root-inconsistent state. The switch no longer detects a new root and its ports automatically go into the listening state.

Enabling Root Guard

To enable root guard on a Layer 2 access port (to force it to become a designated port), perform this task:

Step 1 Switch(config)# interface {{fastethernet | gigabitethernet | tengigabitethernet} slot/port}

Specifies an interface to configure.

Step 2 Switch(config-if)# [no] spanning-tree guard root Enables root guard.

Use the no keyword to disable root guard.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show spanning-tree Verifies the configuration.

This example shows how to enable root guard on Fast Ethernet interface 5/8:

Switch(config)# interface fastethernet 5/8 Switch(config-if)# spanning-tree guard root Switch(config-if)# end Switch#

This example shows how to verify the configuration:

Switch# show running-config interface fastethernet 5/8 Building configuration...

Current configuration: 67 bytes !

Page 517 of the Cisco Systems 4500 user manual — About Loop Guard
Page 517 · click to enlarge
Page 517

Chapter 21 Configuring Optional STP Features

interface FastEthernet5/8 switchport mode access spanning-tree guard root end

This example shows how to determine whether any ports are in root inconsistent state:

Switch# show spanning-tree inconsistentports

Name Interface Inconsistency VLAN0001 FastEthernet3/1 Root Inconsistent VLAN0001 FastEthernet3/2 Root Inconsistent VLAN1002 FastEthernet3/1 Root Inconsistent VLAN1002 FastEthernet3/2 Root Inconsistent VLAN1003 FastEthernet3/1 Root Inconsistent VLAN1003 FastEthernet3/2 Root Inconsistent VLAN1004 FastEthernet3/1 Root Inconsistent VLAN1004 FastEthernet3/2 Root Inconsistent VLAN1005 FastEthernet3/1 Root Inconsistent VLAN1005 FastEthernet3/2 Root Inconsistent

Number of inconsistent ports (segments) in the system :10

About Loop Guard

Loop guard helps prevent bridging loops that could occur because of a unidirectional link failure on a point-to-point link. When enabled globally, loop guard applies to all point-to-point ports on the system. Loop guard detects root ports and blocked ports and ensures that they keep receiving BPDUs from their designated port on the segment. If a loop-guard-enabled root or blocked port stop receiving BPDUs from its designated port, it transitions to the blocking state, assuming there is a physical link error on this port. The port recovers from this state as soon as it receives a BPDU.

You can enable loop guard on a per-port basis. When you enable loop guard, it is automatically applied to all of the active instances or VLANs to which that port belongs. When you disable loop guard, it is disabled for the specified ports. Disabling loop guard moves all loop-inconsistent ports to the listening state.

If you enable loop guard on a channel and the first link becomes unidirectional, loop guard blocks the entire channel until the affected port is removed from the channel. Figure 21-1 shows loop guard in a triangular switch configuration.

About Loop Guard · Switch#

Page 518 of the Cisco Systems 4500 user manual — A B
Page 518 · click to enlarge
Page 518

Chapter 21 Configuring Optional STP Features About Loop Guard

Figure 21-1 Triangular Switch Configuration with Loop Guard

A B

Figure 21-1 illustrates the following configuration:

  • Switches A and B are distribution switches.
  • Switch C is an access switch.
  • Loop guard is enabled on ports 3/1 and 3/2 on Switches A, B, and C.

Enabling loop guard on a root switch has no effect but provides protection when a root switch becomes a nonroot switch.

Follow these guidelines when using loop guard:

  • Do not enable loop guard on PortFast-enabled or dynamic VLAN ports.
  • Do not enable loop guard if root guard is enabled.

Loop guard interacts with other features as follows:

  • Loop guard does not affect the functionality of UplinkFast or BackboneFast.
  • Enabling loop guard on ports that are not connected to a point-to-point link does not work.
  • Root guard forces a port to always be the root port. Loop guard is effective only if the port is a root port or an alternate port. You cannot enable loop guard and root guard on a port at the same time.
  • Loop guard uses the ports known to spanning tree. Loop guard can take advantage of logical ports provided by the Port Aggregation Protocol (PAgP). However, to form a channel, all the physical ports grouped in the channel must have compatible configurations. PAgP enforces uniform configurations of root guard or loop guard on all the physical ports to form a channel.

– Spanning tree always chooses the first operational port in the channel to send the BPDUs. If that link becomes unidirectional, loop guard blocks the channel, even if other links in the channel are functioning properly.

– If a set of ports that are already blocked by loop guard are grouped together to form a channel, spanning tree loses all the state information for those ports and the new channel port may obtain the forwarding state with a designated role.

Show 7 more labels / short text on this page
3/1 3/1 · 3/2 · 3/2 · 3/1 3/2 · Designated port · Root port · Alternate port
Page 519 of the Cisco Systems 4500 user manual — Enabling Loop Guard
Page 519 · click to enlarge
Page 519

Chapter 21 Configuring Optional STP Features

– If a channel is blocked by loop guard and the channel breaks, spanning tree loses all the state information. The individual physical ports may obtain the forwarding state with the designated role, even if one or more of the links that formed the channel are unidirectional.

  • Loop guard has no effect on a disabled spanning tree instance or a VLAN.

Enabling Loop Guard

You can enable loop guard globally or per-port.

To enable loop guard globally on the switch, perform this task:

Step 1 Switch(config)# spanning-tree loopguard default Enables loop guard globally on the switch.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning tree interface 4/4 detail Verifies the configuration impact on a port.

This example shows how to enable loop guard globally:

Switch(config)# spanning-tree loopguard default Switch(config)# Ctrl-Z

This example shows how to verify the previous configuration of port 4/4:

Switch# show spanning-tree interface fastethernet 4/4 detail Port 196 (FastEthernet4/4) of VLAN0010 is forwarding Port path cost 1000, Port priority 160, Port Identifier 160.196. Designated root has priority 32768, address 00d0.00b8.140a Designated bridge has priority 32768, address 00d0.00b8.140a Designated port id is 160.196, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 The port is in the portfast mode by portfast trunk configuration Link type is point-to-point by default Bpdu filter is enabled Loop guard is enabled by default on the port BPDU:sent 0, received 0

To enable loop guard on an interface, perform this task:

Step 1 Switch(config)# interface {type slot/port} | {port-channel port_channel_number}

Selects an interface to configure.

Step 2 Switch(config-if)# spanning-tree guard loop Configures loop guard.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show spanning tree interface 4/4 detail Verifies the configuration impact on that port.

Enabling Loop Guard

Page 520 of the Cisco Systems 4500 user manual — Enabling EtherChannel Guard (Optional)
Page 520 · click to enlarge
Page 520

Chapter 21 Configuring Optional STP Features About EtherChannel Guard

This example shows how to enable loop guard on port 4/4:

Switch(config)# interface fastEthernet 4/4 Switch(config-if)# spanning-tree guard loop Switch(config-if)# ^Z

This example shows how to verify the configuration impact on port 4/4:

Switch# show spanning-tree interface fastEthernet 4/4 detail Port 196 (FastEthernet4/4) of VLAN0010 is forwarding Port path cost 1000, Port priority 160, Port Identifier 160.196. Designated root has priority 32768, address 00d0.00b8.140a Designated bridge has priority 32768, address 00d0.00b8.140a Designated port id is 160.196, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 The port is in the portfast mode by portfast trunk configuration Link type is point-to-point by default Bpdu filter is enabled Loop guard is enabled on the port BPDU:sent 0, received 0 Switch#

About EtherChannel Guard

EtherChannel guard allows you to detect an EtherChannel misconfiguration between the switch and a connected device. A misconfiguration can occur if the interfaces of a switch are manually configured in an EtherChannel, and one or more interfaces on the other device are not. For EtherChannel configuration guidelines, see the “EtherChannel Configuration Guidelines and Restrictions” section on page 22-5.

If the switch detects a misconfiguration on the other device, EtherChannel guard error-disables all interfaces in the EtherChannel bundle, and displays an error message.

You can enable this feature with the spanning-tree etherchannel guard misconfig global configuration command.

Enabling EtherChannel Guard (Optional)

You can enable EtherChannel guard to detect an EtherChannel misconfiguration if your switch is running PVST+, rapid PVST+, or MSTP.

To enable EtherChannel guard, perform this task:

Step 1 Switch(config)# configure terminal Enters global configuration mode.

Step 2 Switch(config)# spanning-tree etherchannel guard misconfig

Enables EtherChannel guard.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Page 521 of the Cisco Systems 4500 user manual — Enabling PortFast
Page 521 · click to enlarge
Page 521

Chapter 21 Configuring Optional STP Features

Step 4 Switch(config)# show spanning-tree summary Verifies your entries.

Step 5 Switch(config)# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable the EtherChannel guard feature, use the no spanning-tree etherchannel guard misconfig global configuration command.

Use the show interfaces status err-disabled privileged EXEC command to show which switch ports are disabled because of an EtherChannel misconfiguration. On the remote device, you can enter the show etherchannel summary privileged EXEC command to verify the EtherChannel configuration.

After the configuration is corrected, enter the shutdown and no shutdown interface configuration commands on the port-channel interfaces that were misconfigured.

About PortFast

Spanning Tree PortFast causes an interface configured as a Layer 2 access port to enter the forwarding state immediately, bypassing the listening and learning states. Use PortFast on Layer 2 access ports connected to a single workstation or server to allow those devices to connect to the network immediately, rather than waiting for spanning tree to converge. Even if the interface receives a bridge protocol data unit (BPDU), spanning tree does not place the port into the blocking state. Spanning tree sets the port’s operating state to non-port fast even if the configured state remains port fast and starts participating in the topology change.

Enabling PortFast

To enable PortFast on a Layer 2 access port to force it to enter the forwarding state immediately, perform this task:

Step 1 Switch(config)# interface {{fastethernet | gigabitethernet | tengigabitethernet} slot/port} | {port-channel port_channel_number}

Specifies an interface to configure.

Step 2 Switch(config-if)# [no] spanning-tree portfast Enables PortFast on a Layer 2 access port connected to a single workstation or server.

Use the no keyword to disable PortFast.

About PortFast

Page 522 of the Cisco Systems 4500 user manual — About BPDU Guard
Page 522 · click to enlarge
Page 522

Chapter 21 Configuring Optional STP Features About BPDU Guard

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show running interface {{fastethernet | gigabitethernet | tengigabitethernet} slot/port} | {port-channel port_channel_number}

Verifies the configuration.

This example shows how to enable PortFast on Fast Ethernet interface 5/8:

Switch(config)# interface fastethernet 5/8 Switch(config-if)# spanning-tree portfast Switch(config-if)# end Switch#

This example shows how to verify the configuration:

Switch# show running-config interface fastethernet 5/8 Building configuration...

Current configuration: ! interface FastEthernet5/8 no ip address switchport switchport access vlan 200 switchport mode access spanning-tree portfast end

About BPDU Guard

Spanning Tree BPDU guard shuts down PortFast-configured interfaces that receive BPDUs, rather than putting them into the spanning tree blocking state. In a valid configuration, PortFast-configured interfaces do not receive BPDUs. Reception of a BPDU by a PortFast-configured interface signals an invalid configuration, such as connection of an unauthorized device. BPDU guard provides a secure response to invalid configurations, because the administrator must manually put the interface back in service.

Switch#

Page 523 of the Cisco Systems 4500 user manual — About PortFast BPDU Filtering
Page 523 · click to enlarge
Page 523

Chapter 21 Configuring Optional STP Features

Enabling BPDU Guard

To enable BPDU guard to shut down PortFast-configured interfaces that receive BPDUs, perform this task:

Step 1 Switch(config)# [no] spanning-tree portfast bpduguard

Enables BPDU guard on all the switch’s PortFast-configured interfaces.

Use the no keyword to disable BPDU guard.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree summary totals Verifies the BPDU configuration.

This example shows how to enable BPDU guard:

Switch(config)# spanning-tree portfast bpduguard Switch(config)# end Switch#

This example shows how to verify the BPDU configuration:

Switch# show spanning-tree summary totals

Root bridge for: none. PortFast BPDU Guard is enabled Etherchannel misconfiguration guard is enabled UplinkFast is disabled BackboneFast is disabled Default pathcost method used is short

Name Blocking Listening Learning Forwarding STP Active 34 VLANs 0 0 0 36 36 Switch#

About PortFast BPDU Filtering

Cisco IOS Release 12.2(25)EW and later support PortFast BPDU filtering, which allows the administrator to prevent the system from sending or even receiving BPDUs on specified ports.

When configured globally, PortFast BPDU filtering applies to all operational PortFast ports. Ports in an operational PortFast state are supposed to be connected to hosts that typically drop BPDUs. If an operational PortFast port receives a BPDU, it immediately loses its operational PortFast status. In that case, PortFast BPDU filtering is disabled on this port and STP resumes sending BPDUs on this port.

PortFast BPDU filtering can also be configured on a per-port basis. When PortFast BPDU filtering is explicitly configured on a port, it does not send any BPDUs and drops all BPDUs it receives.

Enabling BPDU Guard

Page 524 of the Cisco Systems 4500 user manual — Enabling PortFast BPDU Filtering
Page 524 · click to enlarge
Page 524

Chapter 21 Configuring Optional STP Features Enabling PortFast BPDU Filtering

When you enable PortFast BPDU filtering globally and set the port configuration as the default for PortFast BPDU filtering (see the “Enabling BackboneFast” section on page 21-16), PortFast enables or disables PortFast BPDU filtering.

If the port configuration is not set to default, then the PortFast configuration does not affect PortFast BPDU filtering. Table 21-1 lists all the possible PortFast BPDU filtering combinations. PortFast BPDU filtering allows access ports to move directly to the forwarding state as soon as the end hosts are connected.

Table 21-1 PortFast BPDU Filtering Port Configurations

Per-Port Configuration Global Configuration PortFast State PortFast BPDU Filtering State

Default Enable Enable Enable1

Default Enable Disable Disable

Default Disable Not applicable Disable

Disable Not applicable Not applicable Disable

Enable Not applicable Not applicable Enable

1. The port transmits at least 10 BPDUs. If this port receives any BPDUs, then PortFast and PortFast BPDU filtering are disabled.

Enabling PortFast BPDU Filtering

To enable PortFast BPDU filtering globally, perform this task:

Step 1 Switch(config)# spanning-tree portfast bpdufilter default Enables BPDU filtering globally on the switch.

Step 2 Switch# show spanning-tree summary totals Verifies the BPDU configuration.

This example shows how to enable PortFast BPDU filtering on a port:

Switch(config)# spanning-tree portfast bpdufilter default Switch(config)# Ctrl-Z

This example shows how to verify the BPDU configuration in PVST+ mode:

Switch# show spanning-tree summary totals Root bridge for:VLAN0010 EtherChannel misconfiguration guard is enabled Extended system ID is disabled Portfast is enabled by default PortFast BPDU Guard is disabled by default Portfast BPDU Filter is enabled by default Loopguard is disabled by default UplinkFast is disabled BackboneFast is disabled Pathcost method used is long

Name Blocking Listening Learning Forwarding STP Active 2 vlans 0 0 0 3 3

Switch#

Page 525 of the Cisco Systems 4500 user manual — About UplinkFast
Page 525 · click to enlarge
Page 525

Chapter 21 Configuring Optional STP Features

To enable PortFast BPDU filtering, perform this task:

Step 1 Switch(config)# interface fastEthernet 4/4 Selects the interface to configure.

Step 2 Switch(config-if)# spanning-tree bpdufilter enable Enables BPDU filtering.

Step 3 Switch# show spanning-tree interface fastethernet 4/4 Verifies the configuration.

This example shows how to enable PortFast BPDU filtering on port 4/4:

Switch(config)# interface fastethernet 4/4 Switch(config-if)# spanning-tree bpdufilter enable Switch(config-if)# ^Z

This example shows how to verify that PortFast BPDU filtering is enabled:

Switch# show spanning-tree interface fastethernet 4/4

Vlan Role Sts Cost Prio.Nbr Status --- VLAN0010 Desg FWD 1000 160.196 Edge P2p

This example shows more detail on the port:

Switch# show spanning-tree interface fastEthernet 4/4 detail Port 196 (FastEthernet4/4) of VLAN0010 is forwarding Port path cost 1000, Port priority 160, Port Identifier 160.196. Designated root has priority 32768, address 00d0.00b8.140a Designated bridge has priority 32768, address 00d0.00b8.140a Designated port id is 160.196, designated path cost 0 Timers:message age 0, forward delay 0, hold 0 Number of transitions to forwarding state:1 The port is in the portfast mode by portfast trunk configuration Link type is point-to-point by default Bpdu filter is enabled BPDU:sent 0, received 0 Switch#

About UplinkFast

Spanning Tree UplinkFast provides fast convergence after a direct link failure and uses uplink groups to achieve load balancing between redundant Layer 2 links. Convergence is the speed and ability of a group of internetworking devices running a specific routing protocol to agree on the topology of an internetwork after a change in that topology. An uplink group is a set of Layer 2 interfaces (per VLAN), only one of which is forwarding at any given time. Specifically, an uplink group consists of the root port (which is forwarding) and a set of blocked ports, except for self-looping ports. The uplink group provides an alternate path in case the currently forwarding link fails.

About UplinkFast

Page 526 of the Cisco Systems 4500 user manual — Enabling UplinkFast
Page 526 · click to enlarge
Page 526

Chapter 21 Configuring Optional STP Features Enabling UplinkFast

Figure 21-2 shows an example of a topology with no link failures. Switch A, the root switch, is connected directly to Switch B over link L1 and to Switch C over link L2. The Layer 2 interface on Switch C that is connected directly to Switch B is in the blocking state.

Figure 21-2 UplinkFast Before Direct Link Failure

If Switch C detects a link failure on the currently active link L2 on the root port (a direct link failure), UplinkFast unblocks the blocked port on Switch C and transitions it to the forwarding state without going through the listening and learning states, as shown in Figure 21-3. This switchover takes approximately one to five seconds.

Figure 21-3 UplinkFast After Direct Link Failure

UplinkFast transitions port directly to forwarding state

Enabling UplinkFast

UplinkFast increases the bridge priority to 49,152 and adds 3000 to the spanning tree port cost of all interfaces on the switch, making it unlikely that the switch becomes the root switch. The max_update_rate value represents the number of multicast packets transmitted per second (the default is 150 packets per second [pps]).

UplinkFast cannot be enabled on VLANs that have been configured for bridge priority. To enable UplinkFast on a VLAN with bridge priority configured, restore the bridge priority on the VLAN to the default value by entering a no spanning-tree vlan vlan_ID priority command in global configuration mode.

Show 8 more labels / short text on this page
Switch A · (Root) Switch B · Blocked port · Switch C · Switch A · (Root) Switch B · Link failure · Switch C
Page 527 of the Cisco Systems 4500 user manual — Configuring Optional STP Features
Page 527 · click to enlarge
Page 527

Chapter 21 Configuring Optional STP Features

To enable UplinkFast, perform this task:

Step 1 Switch(config)# [no] spanning-tree uplinkfast [max-update-rate max_update_rate]

Enables UplinkFast.

Use the no keyword to disable UplinkFast and restore the default rate, use the command.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree vlan vlan_ID Verifies that UplinkFast is enabled on that VLAN.

This example shows how to enable UplinkFast with a maximum update rate of 400 pps:

Switch(config)# spanning-tree uplinkfast max-update-rate 400 Switch(config)# exit Switch#

This example shows how to verify which VLANS have UplinkFast enabled:

Switch# show spanning-tree uplinkfast UplinkFast is enabled

Station update rate set to 150 packets/sec.

UplinkFast statistics Number of transitions via uplinkFast (all VLANs) :14 Number of proxy multicast addresses transmitted (all VLANs) :5308

Name Interface List VLAN1 Fa6/9(fwd), Gi5/7 VLAN2 Gi5/7(fwd) VLAN3 Gi5/7(fwd) VLAN4 VLAN5 VLAN6 VLAN7 VLAN8 VLAN10 VLAN15 VLAN1002 Gi5/7(fwd) VLAN1003 Gi5/7(fwd) VLAN1004 Gi5/7(fwd) VLAN1005 Gi5/7(fwd) Switch#

Enabling UplinkFast

Page 528 of the Cisco Systems 4500 user manual — About BackboneFast
Page 528 · click to enlarge
Page 528

Chapter 21 Configuring Optional STP Features About BackboneFast

About BackboneFast

BackboneFast is a complementary technology to UplinkFast. UplinkFast is designed to quickly respond to failures on links directly connected to leaf-node switches, but it does not help with indirect failures in the backbone core. BackboneFast optimizes the topology based on the Max Age setting. It allows the default convergence time for indirect failures to be reduced from 50 seconds to 30 seconds. However, it never eliminates forward delays and offers no assistance for direct failures.

Sometimes a switch receives a BPDU from a designated switch that identifies the root bridge and the designated bridge as the same switch. Because this should not happen, the BPDU is considered inferior.

BPDUs are considered inferior when a link from the designated switch has lost its link to the root bridge. The designated switch transmits the BPDUs with the information that it is now the root bridge as well as the designated bridge. The receiving switch ignores the inferior BPDU for the time defined by the Max Age setting.

After receiving inferior BPDUs, the receiving switch tries to determine if there is an alternate path to the root bridge.

  • If the port that the inferior BPDUs are received on is already in blocking mode, then the root port and other blocked ports on the switch become alternate paths to the root bridge.
  • If the inferior BPDUs are received on a root port, then all presently blocking ports become the alternate paths to the root bridge. Also, if the inferior BPDUs are received on a root port and no other blocking ports exist on the switch, the receiving switch assumes that the link to the root bridge is down and the time defined by the Max Age setting expires, which turns the switch into the root switch.

If the switch finds an alternate path to the root bridge, it uses this new alternate path. This new path, and any other alternate paths, are used to send a Root Link Query (RLQ) BPDU. When BackboneFast is enabled, the RLQ BPDUs are sent out as soon as an inferior BPDU is received. This process can enable faster convergence in the event of a backbone link failure.

Figure 21-4 shows an example of a topology with no link failures. Switch A, the root switch, connects directly to Switch B over link L1 and to Switch C over link L2. In this example, because switch B has a lower priority than A but higher than C, switch B becomes the designated bridge for L3. Consequently, the Layer 2 interface on Switch C that connects directly to Switch B must be in the blocking state.

Figure 21-4 BackboneFast Before Indirect Link Failure

BackboneFast transitions port through listening and learning states to forwarding state

Show 4 more labels / short text on this page
Switch A · (Root) Switch B · Link failure · Switch C
Page 529 of the Cisco Systems 4500 user manual — Configuring Optional STP Features
Page 529 · click to enlarge
Page 529

Chapter 21 Configuring Optional STP Features

Next, assume that L1 fails. Switch A and Switch B, the switches directly connected to this segment, instantly know that the link is down. The blocking interface on Switch C must enter the forwarding state for the network to recover. However, because L1 is not directly connected to Switch C, Switch C does not start sending any BPDUs on L3 under the normal rules of STP until the time defined by the Max Age setting has expired.

In an STP environment without BackboneFast, if L1 should fail, Switch C cannot detect this failure because it is not connected directly to link L1. However, because Switch B is directly connected to the root switch over L1, Switch B detects the failure and elects itself the root. Switch B begins sending configuration BDPUs to Switch C, listing itself as the root.

The following actions also occur when you use BackboneFast to eliminate the time defined by the Max Age setting (20-second) delay:

1. When Switch C receives the inferior configuration BPDUs from Switch B, Switch C infers that an indirect failure has occurred.
2. Switch C then sends out an RLQ.
3. Switch A receives the RLQ. Because Switch A is the root bridge, it replies with an RLQ response, listing itself as the root bridge.
4. When Switch C receives the RLQ response on its existing root port, it knows that it still has a stable connection to the root bridge. Because Switch C originated the RLQ request, it does not need to forward the RLQ response on to other switches.
5. BackboneFast allows the blocked port on Switch C to move immediately to the listening state without waiting for the time defined by the Max Age setting for the port to expire.
6. BackboneFast transitions the Layer 2 interface on Switch C to the forwarding state, providing a path from Switch B to Switch A.

This switchover takes approximately 30 seconds, twice the Forward Delay time if the default forward delay time of 15 seconds is set.

Figure 21-5 shows how BackboneFast reconfigures the topology to account for the failure of link L1.

Figure 21-5 BackboneFast after Indirect Link Failure

If a new switch is introduced into a shared-medium topology as shown in Figure 21-6, BackboneFast is not activated, because the inferior BPDUs did not come from the recognized designated bridge (Switch B). The new switch begins sending inferior BPDUs that say it is the root switch. However, the other switches ignore these inferior BPDUs, and the new switch learns that Switch B is the designated bridge to Switch A, the root switch.

Show 5 more labels / short text on this page
About BackboneFast · Switch A · (Root) Switch B · Blocked port · Switch C
Page 530 of the Cisco Systems 4500 user manual — Enabling BackboneFast
Page 530 · click to enlarge
Page 530

Chapter 21 Configuring Optional STP Features Enabling BackboneFast

Figure 21-6 Adding a Switch in a Shared-Medium Topology

Switch C Switch B (Designated Bridge)

Enabling BackboneFast

To enable BackboneFast, perform this task:

Step 1 Switch(config)# [no] spanning-tree backbonefast Enables BackboneFast.

Use You can use the no keyword to disable BackboneFast.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show spanning-tree backbonefast Verifies that BackboneFast is enabled.

This example shows how to enable BackboneFast:

Switch(config)# spanning-tree backbonefast Switch(config)# end Switch#

This example shows how to verify that BackboneFast is enabled:

Switch# show spanning-tree backbonefast BackboneFast is enabled

BackboneFast statistics Number of transition via backboneFast (all VLANs) : 0 Number of inferior BPDUs received (all VLANs) : 0

Show 4 more labels / short text on this page
Switch A · (Root) · Blocked port · Added switch
Page 531 of the Cisco Systems 4500 user manual — Configuring Optional STP Features
Page 531 · click to enlarge
Page 531

Chapter 21 Configuring Optional STP Features

Number of RLQ request PDUs received (all VLANs) : 0 Number of RLQ response PDUs received (all VLANs) : 0 Number of RLQ request PDUs sent (all VLANs) : 0 Number of RLQ response PDUs sent (all VLANs) : 0 Switch#

This example shows how to display a summary of port states:

Switch#show spanning-tree summary Root bridge for:VLAN0001, VLAN1002-VLAN1005 Extended system ID is disabled Portfast is enabled by default PortFast BPDU Guard is disabled by default Portfast BPDU Filter is enabled by default Loopguard is disabled by default EtherChannel misconfiguration guard is enabled UplinkFast is enabled BackboneFast is enabled Pathcost method used is short

Name Blocking Listening Learning Forwarding STP Active VLAN0001 0 0 0 3 3 VLAN1002 0 0 0 2 2 VLAN1003 0 0 0 2 2 VLAN1004 0 0 0 2 2 VLAN1005 0 0 0 2 2 5 vlans 0 0 0 11 11 BackboneFast statistics Number of transition via backboneFast (all VLANs) :0 Number of inferior BPDUs received (all VLANs) :0 Number of RLQ request PDUs received (all VLANs) :0 Number of RLQ response PDUs received (all VLANs) :0 Number of RLQ request PDUs sent (all VLANs) :0 Number of RLQ response PDUs sent (all VLANs) :0 Switch#

This example shows how to display the total lines of the spanning tree state section:

Switch#show spanning-tree summary totals Root bridge for:VLAN0001, VLAN1002-VLAN1005 Extended system ID is disabled Portfast is enabled by default PortFast BPDU Guard is disabled by default Portfast BPDU Filter is enabled by default Loopguard is disabled by default EtherChannel misconfiguration guard is enabled UplinkFast is enabled BackboneFast is enabled Pathcost method used is short

Name Blocking Listening Learning Forwarding STP Active 5 vlans 0 0 0 11 11

BackboneFast statistics Number of transition via backboneFast (all VLANs) :0 Number of inferior BPDUs received (all VLANs) :0

Enabling BackboneFast

Page 532 of the Cisco Systems 4500 user manual — Configuring Optional STP Features
Page 532 · click to enlarge
Page 532

Chapter 21 Configuring Optional STP Features Enabling BackboneFast

Number of RLQ request PDUs received (all VLANs) :0 Number of RLQ response PDUs received (all VLANs) :0 Number of RLQ request PDUs sent (all VLANs) :0 Number of RLQ response PDUs sent (all VLANs) :0 Switch#

Page 533 of the Cisco Systems 4500 user manual — C H A P T E R
Page 533 · click to enlarge
Page 533

C H A P T E R

Configuring EtherChannel and Link State Tracking

This chapter describes how to use the command-line interface (CLI) to configure EtherChannel on the Catalyst 4500 series switch Layer 2 or Layer 3 interfaces. It also provides guidelines, procedures, and configuration examples.

EtherChannel provides automatic recovery for the loss of a link by redistributing the load across the remaining links. If a link fails, EtherChannel redirects traffic from the failed link to the remaining links in the channel without intervention. This chapter also describes how to configure link-state tracking.

This chapter includes the following major sections:

  • About EtherChannel, page 22-2
  • EtherChannel Configuration Guidelines and Restrictions, page 22-5
  • Configuring EtherChannel, page 22-6
  • Displaying EtherChannel to a Virtual Switch System, page 22-16
  • Understanding Link-State Tracking, page 22-18
  • Configuring Link-State Tracking, page 22-21

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 534 of the Cisco Systems 4500 user manual — Port Channel Interfaces
Page 534 · click to enlarge
Page 534

Chapter 22 Configuring EtherChannel and Link State Tracking About EtherChannel

About EtherChannel

EtherChannel bundles up to eight individual Ethernet links into a single logical ink that provides an aggregate bandwidth of up to 800 Mbps (Fast EtherChannel), 8 Gbps (Gigabit EtherChannel), or 80 Gbps (10 Gigabit EtherChannel) between a Catalyst 4500 or 4500X series switch and another switch or host.

A Catalyst 4500 series switch supports a maximum of 64 EtherChannels. You can form an EtherChannel with up to eight compatibly configured Ethernet interfaces across modules in a Catalyst 4500 series switch. All interfaces in each EtherChannel must be the same speed and must be configured as either Layer 2 or Layer 3 interfaces.

If a segment within an EtherChannel fails, traffic previously carried over the failed link switches to the remaining segments within the EtherChannel. When the segment fails, an SNMP trap is sent, identifying the switch, the EtherChannel, and the failed link. Inbound broadcast and multicast packets on one segment in an EtherChannel are blocked from returning on any other segment of the EtherChannel.

These subsections describe how EtherChannel works:

  • Port Channel Interfaces, page 22-2
  • Configuring EtherChannels, page 22-3
  • Load Balancing, page 22-5

Port Channel Interfaces

Each EtherChannel has a numbered port channel interface. A configuration applied to the port channel interface affects all physical interfaces assigned to that interface.

After you configure an EtherChannel, the configuration that you apply to the port channel interface affects the EtherChannel; the configuration that you apply to the physical interfaces affects only the interface where you apply the configuration. To change the parameters of all ports in an EtherChannel, apply configuration commands to the port channel interface (such commands can be STP commands or commands to configure a Layer 2 EtherChannel as a trunk).

Page 535 of the Cisco Systems 4500 user manual — PAgP EtherChannel Configuration
Page 535 · click to enlarge
Page 535

Chapter 22 Configuring EtherChannel and Link State Tracking

Configuring EtherChannels

These subsections describe how EtherChannels are configured:

  • EtherChannel Configuration Overview, page 22-3
  • Manual EtherChannel Configuration, page 22-3
  • PAgP EtherChannel Configuration, page 22-3
  • IEEE 802.3ad LACP EtherChannel Configuration, page 22-4

EtherChannel Configuration Overview

You can configure EtherChannels manually or use the Port Aggregation Control Protocol (PAgP) or the Link Aggregation Control Protocol (LACP) (Cisco IOS Release 12.2(25)EWA and later), to form EtherChannels. The EtherChannel protocols allow ports with similar characteristics to form an EtherChannel through dynamic negotiation with connected network devices. PAgP is a Cisco-proprietary protocol and LACP is defined in IEEE 802.3ad.

PAgP and LACP do not interoperate. Ports configured to use PAgP cannot form EtherChannels with ports configured to use LACP and vice versa.

Table 22-1 lists the user-configurable EtherChannel modes.

Table 22-1 EtherChannel Modes

Mode Description

on Mode that forces the LAN port to channel unconditionally. In the on mode, a usable EtherChannel exists only when a LAN port group in the on mode is connected to another LAN port group in the on mode. Because ports configured in the on mode do not negotiate, there is no negotiation traffic between the ports.

auto PAgP mode that places a LAN port into a passive negotiating state in which the port responds to PAgP packets it receives but does not initiate PAgP negotiation.

desirable PAgP mode that places a LAN port into an active negotiating state in which the port

initiates negotiations with other LAN ports by sending PAgP packets.

passive LACP mode that places a port into a passive negotiating state in which the port responds to LACP packets it receives but does not initiate LACP negotiation.

active LACP mode that places a port into an active negotiating state in which the port initiates negotiations with other ports by sending LACP packets.

Manual EtherChannel Configuration

Manually configured EtherChannel ports do not exchange EtherChannel protocol packets. A manually configured EtherChannel forms only when you configure all ports compatibly in the EtherChannel.

PAgP EtherChannel Configuration

PAgP supports the automatic creation of EtherChannels by exchanging PAgP packets between LAN ports. PAgP packets are exchanged only between ports in auto and desirable modes.

About EtherChannel

Page 536 of the Cisco Systems 4500 user manual — IEEE 802.3ad LACP EtherChannel Configuration
Page 536 · click to enlarge
Page 536

Chapter 22 Configuring EtherChannel and Link State Tracking About EtherChannel

The protocol learns the capabilities of LAN port groups dynamically and informs the other LAN ports. Once PAgP identifies correctly matched Ethernet links, it facilitates grouping the links into an EtherChannel. The EtherChannel is then added to the spanning tree as a single bridge port.

Both the auto and desirable modes allow PAgP to negotiate between LAN ports to determine if they can form an EtherChannel, based on criteria such as port speed and trunking state. Layer 2 EtherChannels also use VLAN numbers.

LAN ports can form an EtherChannel when they are in different PAgP modes if the modes are compatible. For example:

  • A LAN port in desirable mode can form an EtherChannel successfully with another LAN port that is in desirable mode.
  • A LAN port in desirable mode can form an EtherChannel with another LAN port in auto mode.
  • A LAN port in auto mode cannot form an EtherChannel with another LAN port that is also in auto mode because neither port initiates negotiation.

IEEE 802.3ad LACP EtherChannel Configuration

Cisco IOS Release 12.2(25)EWA and later releases support IEEE 802.3ad LACP EtherChannels. LACP supports the automatic creation of EtherChannels by exchanging LACP packets between LAN ports. LACP packets are exchanged only between ports in passive and active modes.

The protocol learns the capabilities of LAN port groups dynamically and informs the other LAN ports. Once LACP identifies correctly matched Ethernet links, it facilitates grouping the links into an EtherChannel. The EtherChannel is then added to the spanning tree as a single bridge port.

Both the passive and active modes allow LACP to negotiate between LAN ports to determine if they can form an EtherChannel, based on criteria such as port speed and trunking state. Layer 2 EtherChannels also use VLAN numbers.

LAN ports can form an EtherChannel when they are in different LACP modes as long as the modes are compatible. For example:

  • A LAN port in active mode can form an EtherChannel successfully with another LAN port that is in active mode.
  • A LAN port in active mode can form an EtherChannel with another LAN port in passive mode.
  • A LAN port in passive mode cannot form an EtherChannel with another LAN port that is also in passive mode, because neither port initiates negotiation.

LACP uses the following parameters:

  • LACP system priority—You may configure an LACP system priority on each switch running LACP. The system priority can be configured automatically or through the CLI. See the “Configuring the LACP System Priority and System ID” section on page 22-13 . LACP uses the system priority with the switch MAC address to form the system ID and also during negotiation with other systems.
  • LACP port priority—You must configure an LACP port priority on each port configured to use LACP. The port priority can be configured automatically or through the CLI. See the “Configuring Layer 2 EtherChannels” section on page 22-10 . LACP uses the port priority with the port number to form the port identifier.
Page 537 of the Cisco Systems 4500 user manual — EtherChannel Configuration Guidelines and Restrictions
Page 537 · click to enlarge
Page 537

Chapter 22 Configuring EtherChannel and Link State Tracking

EtherChannel Configuration Guidelines and Restrictions

  • LACP administrative key—LACP automatically configures an administrative key value equal to the channel group identification number on each port configured to use LACP. The administrative key defines the ability of a port to aggregate with other ports. A port’s ability to aggregate with other ports is determined by these factors:

– Port physical characteristics, such as data rate, duplex capability, and point-to-point or shared medium

– Configuration restrictions that you establish

LACP tries to configure the maximum number of compatible ports in an EtherChannel up to the maximum allowed by the hardware (eight ports). If a port cannot be actively included in a channel, it is not included automatically if a channelled port fails.

Load Balancing

EtherChannel can balance the traffic load across the links in the channel by reducing part of the binary pattern formed from the addresses or ports in the frame to a numerical value that selects one of the links in the channel. To balance the load, EtherChannel uses MAC addresses, IP addresses, or Layer 4 port numbers, and either the message source or message destination, or both.

Use the option that provides the greatest variety in your configuration. For example, if the traffic on a channel is going only to a single MAC address, using the destination MAC address always chooses the same link in the channel; using source addresses or IP addresses might result in better load balancing.

For additional information on load balancing, see the “Configuring EtherChannel Load Balancing” section on page 22-14.

EtherChannel Configuration Guidelines and Restrictions

If improperly configured, some EtherChannel interfaces are disabled automatically to avoid network loops and other problems. Follow these guidelines and restrictions to avoid configuration problems:

  • All Ethernet interfaces on all modules support EtherChannel (maximum of eight interfaces) with no requirement that interfaces be physically contiguous or on the same module.
  • Configure all interfaces in an EtherChannel to operate at the same speed and duplex mode.
  • Enable all interfaces in an EtherChannel. Disabling an interface in an EtherChannel is treated as a link failure, and its traffic is transferred to one of the remaining interfaces in the EtherChannel.
  • An EtherChannel does not form if one of the interfaces is a Switched Port Analyzer (SPAN) destination port.
  • For Layer 3 EtherChannels:

– Assign Layer 3 addresses to the port channel logical interface, not to the physical interfaces in the channel.

Page 538 of the Cisco Systems 4500 user manual — Configuring Layer 3 EtherChannels
Page 538 · click to enlarge
Page 538

Chapter 22 Configuring EtherChannel and Link State Tracking Configuring EtherChannel

  • For Layer 2 EtherChannels:

– Assign all interfaces in the EtherChannel to the same VLAN, or configure them as trunks.

– If you configure an EtherChannel from trunk interfaces, verify that the trunking mode and the native VLAN is the same on all the trunks. Interfaces in an EtherChannel with different trunk modes or different native VLANs can have unexpected results.

– An EtherChannel supports the same allowed range of VLANs on all the interfaces in a trunking Layer 2 EtherChannel. If the allowed ranges differ for selected interface differ, they do not form an EtherChannel.

– Interfaces with different Spanning Tree Protocol (STP) port path costs can form an EtherChannel as long they are otherwise compatibly configured. Setting different STP port path costs does not make interfaces incompatible for the formation of an EtherChannel.

  • After you configure an EtherChannel, any configuration that you apply to the port channel interface affects the EtherChannel; any configuration that you apply to the physical interfaces affects only the interface you configure.

Storm Control is an exception to this rule. For example, you cannot configure Storm Control on some of the members of an EtherChannel; Storm Control must be configured on all or none of the ports. If you configure Storm Control on only some of the ports, those ports are dropped from the EtherChannel interface (put in suspended state). You should configure Storm Control at the port channel interface level, and not at the physical interface level.

  • A physical interface with port security enabled can join a Layer 2 EtherChannel only if port security is also enabled on the EtherChannel; otherwise the command is rejected by the CLI.
  • You cannot configure a 802.1X port in an EtherChannel.

Configuring EtherChannel

These sections describe how to configure EtherChannel:

  • Configuring Layer 3 EtherChannels, page 22-6
  • Configuring Layer 2 EtherChannels, page 22-10
  • Configuring LACP Standalone or Independent Mode, page 22-12
  • Configuring the LACP System Priority and System ID, page 22-13
  • Configuring EtherChannel Load Balancing, page 22-14
  • Removing an Interface from an EtherChannel, page 22-15
  • Removing an EtherChannel, page 22-15

Configuring Layer 3 EtherChannels

To configure Layer 3 EtherChannels, create the port channel logical interface and then put the Ethernet interfaces into the port channel.

Page 539 of the Cisco Systems 4500 user manual — Configuring Physical Interfaces as Layer 3 EtherChannels
Page 539 · click to enlarge
Page 539

Chapter 22 Configuring EtherChannel and Link State Tracking

These sections describe Layer 3 EtherChannel configuration:

  • Creating Port Channel Logical Interfaces, page 22-7
  • Configuring Physical Interfaces as Layer 3 EtherChannels, page 22-7

Creating Port Channel Logical Interfaces

To create a port channel interface for a Layer 3 EtherChannel, perform this task:

Step 1 Switch(config)# interface port-channel port_channel_number

Creates the port channel interface. The value for port_channel_number can range from 1 to 64.

Step 2 Switch(config-if)# ip address ip_address mask Assigns an IP address and subnet mask to the EtherChannel.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show running-config interface port-channel port_channel_number

Verifies the configuration.

This example shows how to create port channel interface 1:

Switch# configure terminal Switch(config)# interface port-channel 1 Switch(config-if)# ip address 172.32.52.10 255.255.255.0 Switch(config-if)# end

This example shows how to verify the configuration of port channel interface 1:

Switch# show running-config interface port-channel 1 Building configuration...

Current configuration! interface Port-channel1 ip address 172.32.52.10 255.255.255.0 no ip directed-broadcast end

Configuring Physical Interfaces as Layer 3 EtherChannels

To configure physical interfaces as Layer 3 EtherChannels, perform this task for each interface:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Selects a physical interface to configure.

Step 2 Switch(config-if)# no switchport Makes this a Layer 3 routed port.

Configuring EtherChannel · Switch#

Page 540 of the Cisco Systems 4500 user manual — Configuring EtherChannel and Link State Tracking
Page 540 · click to enlarge
Page 540

Chapter 22 Configuring EtherChannel and Link State Tracking Configuring EtherChannel

Step 3 Switch(config-if)# no ip address Ensures that no IP address is assigned to the physical interface.

Step 4 Switch(config-if)# channel-group port_channel_number mode {active | on | auto | passive | desirable}

Configures the interface in a port channel and specifies the PAgP or LACP mode.

If you use PAgP, enter the keywords auto or desirable.

If you use LACP, enter the keywords active or passive.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show running-config interface port-channel port_channel_number

Verifies the configuration.

Switch# show running-config interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Switch# show interfaces {fastethernet | gigabitethernet | tengigabitethernet} slot/port etherchannel

Switch# show etherchannel 1 port-channel

This example shows how to configure Fast Ethernet interfaces 5/4 and 5/5 into port channel 1 with PAgP mode desirable:

Switch# configure terminal Switch(config)# interface range fastethernet 5/4 - 5 (Note: Space is mandatory.) Switch(config-if)# no switchport Switch(config-if)# no ip address Switch(config-if)# channel-group 1 mode desirable Switch(config-if)# end

The following two examples show how to verify the configuration of Fast Ethernet interface 5/4:

Switch# show running-config interface fastethernet 5/4 Building configuration...

Current configuration: ! interface FastEthernet5/4 no ip address no switchport no ip directed-broadcast channel-group 1 mode desirable end

Switch# show interfaces fastethernet 5/4 etherchannel Port state = EC-Enbld Up In-Bndl Usr-Config Channel group = 1 Mode = Desirable Gcchange = 0 Port-channel = Po1 GC = 0x00010001 Pseudo-port-channel = Po1 Port indx = 0 Load = 0x55

Flags: S - Device is sending Slow hello. C - Device is in Consistent state. A - Device is in Auto mode. P - Device learns on physical port.

Page 541 of the Cisco Systems 4500 user manual — Configuring EtherChannel and Link State Tracking
Page 541 · click to enlarge
Page 541

Chapter 22 Configuring EtherChannel and Link State Tracking

Timers: H - Hello timer is running. Q - Quit timer is running. S - Switching timer is running. I - Interface timer is running.

Local information: Hello Partner PAgP Learning Group Port Flags State Timers Interval Count Priority Method Ifindex Fa5/4 SC U6/S7 30s 1 128 Any 55

Partner's information:

Partner Group Port Name Device ID Port Age Flags Cap. Fa5/4 JAB031301 0050.0f10.230c 2/45 1s SAC 2D

Age of the port in the current state: 00h:54m:52s

This example shows how to verify the configuration of port channel interface 1 after the interfaces have been configured:

Switch# show etherchannel 1 port-channel

Channel-group listing---------------------- Group: 1 ------------
Port-channels in the group---------------------- Port-channel: Po1 ------------

Age of the Port-channel = 01h:56m:20s Logical slot/port = 10/1 Number of ports = 2 GC = 0x00010001 HotStandBy port = null Port state = Port-channel L3-Ag Ag-Inuse

Ports in the Port-channel:

Index Load Port 1 00 Fa5/6 0 00 Fa5/7

Time since last port bundled00h:23m:33s Fa5/6

This example shows how to display a one-line summary per channel group:

Switch# show etherchannel summary Flags: D - down P - bundled in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator

M - not in use, minimum links not met u - unsuitable for bundling w - waiting to be aggregated d - default port

Number of channel-groups in use2

Configuring EtherChannel · Switch# · Switch#

Page 542 of the Cisco Systems 4500 user manual — Configuring Layer 2 EtherChannels
Page 542 · click to enlarge
Page 542

Chapter 22 Configuring EtherChannel and Link State Tracking Configuring EtherChannel

Number of aggregators2

Group Port-channel Protocol Ports + + + 1 Po1(SD) LACP Gi1/23(H) Gi1/24(H) Switch#

Configuring Layer 2 EtherChannels

To configure Layer 2 EtherChannels, configure the Ethernet interfaces with the channel-group command. This operation creates the port channel logical interface.

To configure Layer 2 Ethernet interfaces as Layer 2 EtherChannels, perform this task for each interface:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Selects a physical interface to configure.

Step 2 Switch(config-if)# channel-group port_channel_number mode {active | on | auto | passive | desirable}

Configures the interface in a port channel and specifies the PAgP or LACP mode.

If you use PAgP, enter the keywords auto or desirable.

If you use LACP, enter the keywords active or passive.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show running-config interface {fastethernet | gigabitethernet} slot/port

Verifies the configuration.

Switch# show interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port etherchannel

This example shows how to configure Fast Ethernet interfaces 5/6 and 5/7 into port channel 2 with PAgP mode desirable:

Switch# configure terminal Switch(config)# interface range fastethernet 5/6 - 7 (Note: Space is mandatory.) Switch(config-if-range)# channel-group 2 mode desirable Switch(config-if-range)# end Switch# end

This example shows how to verify the configuration of port channel interface 2:

Switch# show running-config interface port-channel 2 Building configuration...

Current configuration: !

Page 543 of the Cisco Systems 4500 user manual — Configuring EtherChannel and Link State Tracking
Page 543 · click to enlarge
Page 543

Chapter 22 Configuring EtherChannel and Link State Tracking

interface Port-channel2 switchport access vlan 10 switchport mode access end

The following two examples show how to verify the configuration of Fast Ethernet interface 5/6:

Switch# show running-config interface fastethernet 5/6 Building configuration...

Current configuration: ! interface FastEthernet5/6 switchport access vlan 10 switchport mode access channel-group 2 mode desirable end

Switch# show interfaces fastethernet 5/6 etherchannel Port state = EC-Enbld Up In-Bndl Usr-Config Channel group = 1 Mode = Desirable Gcchange = 0 Port-channel = Po1 GC = 0x00010001 Port indx = 0 Load = 0x55

Flags: S - Device is sending Slow hello. C - Device is in Consistent state. A - Device is in Auto mode. P - Device learns on physical port. d - PAgP is down. Timers: H - Hello timer is running. Q - Quit timer is running. S - Switching timer is running. I - Interface timer is running. Local information: Hello Partner PAgP Learning Group Port Flags State Timers Interval Count Priority Method Ifindex Fa5/6 SC U6/S7 30s 1 128 Any 56

Partner's information:

Partner Group Port Name Device ID Port Age Flags Cap. Fa5/6 JAB031301 0050.0f10.230c 2/47 18s SAC 2F

Age of the port in the current state: 00h:10m:57s

This example shows how to verify the configuration of port channel interface 2 after the interfaces have been configured:

Switch# show etherchannel 2 port-channel Port-channels in the group:

Port-channelPo2 ------------

Age of the Port-channel = 00h:23m:33s Logical slot/port = 10/2 Number of ports in agport = 2 GC = 0x00020001 HotStandBy port = null Port state = Port-channel Ag-Inuse

Ports in the Port-channel:

Index Load Port 1 00 Fa5/6

Configuring EtherChannel · Switch#

Page 544 of the Cisco Systems 4500 user manual — Configuring LACP Standalone or Independent Mode
Page 544 · click to enlarge
Page 544

Chapter 22 Configuring EtherChannel and Link State Tracking Configuring EtherChannel

Time since last port bundled00h:23m:33s Fa5/6

Configuring LACP Standalone or Independent Mode

This feature is particularly relevant when a port (A) in a Layer 2 LACP EtherChannel is connected to an unresponsive port (B) on the peer. When LACP standalone is disabled on the EtherChannel, all traffic arriving on A is blocked (the default behavior on a switch). In some scenarios, you might want to allow management traffic on such ports. You can do this by enabling LACP standalone (or independent) mode.

To configure the LACP Standalone or Independent mode, perform this task:

Step 1 Switch(config)# no port-channel standalone-disable

Enables the LACP standalone or independent mode.

Reverts to the default.

Step 2 Switch(config-if)# end Exits configuration mode.

Step 3 Switch# show running configuration {fastethernet | gigabitethernet} slot/port port-channel port_channel_number

Verifies the configuration.

This example shows how to configure the LACP Standalone mode:

Switch# configure terminal Switch(config)# interface port-channel 1 Switch(config-if)# switchport Switch(config-if)# exit Switch(config)# int gi3/1 Switch(config-if)# channel-group 1 mode active Switch(config-if)# exit Switch(config)# interface port-channel 1 Switch(config-if)# no port-channel standalone-disable Ports of Po12 already in suspend (S) mode require a shut/no shut. Switch(config-if)# end

This example shows how to verify the configuration of port channel interface 1:

Switch# show running-config interface port-channel 1 Building configuration...

Current configuration! interface Port-channel1 switchport no port-channel standalone-disable

0 00 Fa5/7 · Switch# · Switch(config)# port-channel standalone-disable

Page 545 of the Cisco Systems 4500 user manual — Configuring the LACP System Priority and System ID
Page 545 · click to enlarge
Page 545

Chapter 22 Configuring EtherChannel and Link State Tracking

This example shows how to verify the state of port channel interface 1:

Switch# show etherchannel 1 port-channel Port-channels in the group: Port-channel: Po13 (Primary Aggregator) Age of the Port-channel = 0d:00h:07m:57s Logical slot/port = 11/13 Number of ports = 0 Port state = Port-channel Ag-Not-Inuse Protocol = LACP Port security = Disabled Standalone = Enabled (independent mode) Switch#

Configuring the LACP System Priority and System ID

The LACP system ID is the LACP system priority value combined with the MAC address of the switch.

To configure the LACP system priority and system ID, perform this task:

Step 1 Switch(config)# lacp system-priority priority_value

(Optional for LACP) Sets the LACP system priority and system ID.

Valid values are 1 through 65535. Higher numbers have lower priority. The default is 32768.

Switch(config)# no system port-priority Reverts to the default.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show lacp sys-id Verifies the configuration.

This example shows how to configure the LACP system priority:

Switch# configure terminal Switch(config)# lacp system-priority 23456 Switch(config)# end Switch# show module

Mod Ports Card Type Model Serial No. + 1 2 1000BaseX (GBIC) Supervisor(active) WS-X4014 JAB063808YZ 2 48 10/100BaseTX (RJ45) WS-X4148-RJ JAB0447072W 3 48 10/100BaseTX (RJ45)V WS-X4148-RJ45V JAE061704J6 4 48 10/100BaseTX (RJ45)V WS-X4148-RJ45V JAE061704ML

M MAC addresses Hw Fw Sw Status --+ +---+ + + 1 0005.9a39.7a80 to 0005.9a39.7a81 2.1 12.1(12r)EW 12.1(13)EW(0.26) Ok 2 0002.fd80.f530 to 0002.fd80.f55f 0.1 Ok 3 0009.7c45.67c0 to 0009.7c45.67ef 1.6 Ok 4 0009.7c45.4a80 to 0009.7c45.4aaf 1.6 Ok

Configuring EtherChannel · end · Switch#

Page 546 of the Cisco Systems 4500 user manual — Configuring EtherChannel Load Balancing
Page 546 · click to enlarge
Page 546

Chapter 22 Configuring EtherChannel and Link State Tracking Configuring EtherChannel

This example shows how to verify the configuration:

Switch# show lacp sys-id 23456,0050.3e8d.6400 Switch#

The system priority is displayed first, followed by the MAC address of the switch.

Configuring EtherChannel Load Balancing

To configure EtherChannel load balancing, perform this task:

Step 1 Switch(config)# [no] port-channel load-balance {src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip | src-port | dst-port | src-dst-port}

Configures EtherChannel load balancing.

Use the no keyword to return EtherChannel load balancing to the default configuration.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show etherchannel load-balance Verifies the configuration.

The load-balancing keywords indicate these values:

  • src-mac —Source MAC addresses
  • dst-mac —Destination MAC addresses
  • src-dst-mac —Source and destination MAC addresses
  • src-ip —Source IP addresses
  • dst-ip —Destination IP addresses
  • src-dst-ip —Source and destination IP addresses (Default)
  • src-port —Source Layer 4 port
  • dst-port —Destination Layer 4 port
  • src-dst-port —Source and destination Layer 4 port

This example shows how to configure EtherChannel to use source and destination IP addresses:

Switch# configure terminal Switch(config)# port-channel load-balance src-dst-ip Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show etherchannel load-balance EtherChannel Load-Balancing Configuration: src-dst-ip

EtherChannel Load-Balancing Addresses Used Per-Protocol: Non-IP: Source XOR Destination MAC address IPv4: Source XOR Destination IP address

Page 547 of the Cisco Systems 4500 user manual — Removing an EtherChannel
Page 547 · click to enlarge
Page 547

Chapter 22 Configuring EtherChannel and Link State Tracking

IPv6Source XOR Destination IP address Switch#

Removing an Interface from an EtherChannel

To remove an Ethernet interface from an EtherChannel, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Selects a physical interface to configure.

Step 2 Switch(config-if)# no channel-group Removes the interface from the port channel interface.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show running-config interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port Switch# show interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port etherchannel

Verifies the configuration.

This example shows how to remove Fast Ethernet interfaces 5/4 and 5/5 from port channel 1:

Switch# configure terminal Switch(config)# interface range fastethernet 5/4 - 5 (Note: Space is mandatory.) Switch(config-if)# no channel-group 1 Switch(config-if)# end

Removing an EtherChannel

If you remove an EtherChannel, the member ports are shut down and removed from the channel group.

To remove an EtherChannel, perform this task:

Step 1 Switch(config)# no interface port-channel port_channel_number

Removes the port channel interface.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show etherchannel summary Verifies the configuration.

This example shows how to remove port channel 1:

Switch# configure terminal Switch(config)# no interface port-channel 1 Switch(config)# end

Configuring EtherChannel

Page 548 of the Cisco Systems 4500 user manual — Dual-Active Detection Using Enhanced PAgP
Page 548 · click to enlarge
Page 548

Chapter 22 Configuring EtherChannel and Link State Tracking Displaying EtherChannel to a Virtual Switch System

Displaying EtherChannel to a Virtual Switch System

Catalyst 4500 series switches support enhanced PAgP. If a Catalyst 4500 series switch is connected to a Catalyst 6500 series Virtual Switch System (VSS) by using a PAgP EtherChannel, the Catalyst 4500 series switch automatically serve as a VSS client, using enhanced PAgP on this EtherChannel for dual-active detection. This VSS client feature has no impact on the performance of Catalyst 4500 series switch and does not require any user configuration.

This section includes these topics:

  • Understanding VSS Client, page 22-16
  • Displaying EtherChannel Links to VSS, page 22-18

Understanding VSS Client

This section describes these topics:

  • Virtual Switch System, page 22-16
  • Dual-Active Scenarios, page 22-16
  • Dual-Active Detection Using Enhanced PAgP, page 22-16

Virtual Switch System

The Cisco Catalyst 6500 Series VSS 1440 allows for the combination of two Cisco Catalyst 6500 Series switches into a single, logical network entity from the network control-plane and management perspectives. Within the Cisco VSS, one chassis is designated as the active virtual switch, acting as the single management point of the entire system, and the other is designated as the standby virtual switch. There two chassis are bound together by a special link, called Virtual Switch Link (VSL), which carries the internal signaling and control information between them.

Dual-Active Scenarios

One of the failure scenarios in a VSS is called dual-active, which occurs when the VSL fails completely. Neither virtual switch knows of the other's status. From the perspective of the active virtual switch, the standby chassis is lost. The standby virtual switch also views the active chassis as failed and transitions to active state by using an SSO switchover. Two active virtual switches exist in the network with identical configurations, causing duplicate IP addresses and bridge identifiers. This scenario has adverse effects on the network topology and traffic if it persists.

Dual-Active Detection Using Enhanced PAgP

One method for detecting a dual-active scenario is based on enhanced PAgP (PAgP+). Specifically, the VSS sends regularly scheduled PAgP messages with Type-Length-Values (TLVs) containing the ID of the current active virtual switch ( Figure 22-1). When the VSL fails completely, the standby virtual switch immediately sends asynchronous PAgP messages with TLVs containing its own ID on all port channels enabled for enhanced PAgP dual-active detection (Figure 22-2). The remote switch (the VSS client) connected to both VSS components by using EtherChannel links, compares every received active ID with its stored active ID. If they match, the remote switch sends TLVs containing its stored active ID back to the VSS in its regularly scheduled PAgP messages. If they do not match, the

Page 549 of the Cisco Systems 4500 user manual — V S L
Page 549 · click to enlarge
Page 549

Chapter 22 Configuring EtherChannel and Link State Tracking

Displaying EtherChannel to a Virtual Switch System

remote switch stores the new active ID and immediately transmits asynchronous PAgP messages with TLVs containing the new active ID. Upon receiving the new active ID from the remote switch, the original active virtual switch detects the dual-active scenario and takes appropriate actions.

Figure 22-1 Enhanced PAgP in VSS Normal Opertaion

Virtual Switch A

Virtual Switch B (standby)

V S L

Virtual switch TLV Active_ID = A’s MAC Virtual switch TLV Active_ID = A’s MAC

Remote switch TLV Active_ID = A’s MAC

Remote switch TLV Active_ID = A’s MAC

Remote switch (Catalyst 4500 series switch)

Active_ID = A’s MAC

Figure 22-2 Enhanced PAgP in VSS Dual-active Scenario

Virtual Switch A

Virtual Switch B (standby)

V S L

Dual-active detected by A

Virtual switch TLV Active_ID = B’s MAC

Remote switch TLV Active_ID = B’s MAC

Remote switch TLV Active_ID = B’s MAC

Remote switch (Catalyst 4500 series switch)

Active_ID = B’s MAC

As a remote switch, the Catalyst 4500 series switch supports stateful VSS client. In particular, the ID of the current active virtual switch is synchronized from the active supervisor engine to the redundant supervisor engine of the Catalyst 4500 series switch. This ensures that dual-active detection is not disrupted even when the active supervisor engine switches over to the redundant supervisor engine.

Show 6 more labels / short text on this page
(active) · EtherChannel · 204283 · (active) · EtherChannel · 204284
Page 550 of the Cisco Systems 4500 user manual — Understanding Link-State Tracking
Page 550 · click to enlarge
Page 550

Chapter 22 Configuring EtherChannel and Link State Tracking Understanding Link-State Tracking

Displaying EtherChannel Links to VSS

To display the dual-active detection capability of a configured PAgP port channel, enter the show pagp port_channel_number dual-active command.

The command provides the following information:

  • A switch uses enhanced PAgP for dual-active detection.

You should always see Yes after PAgP dual-active diction enabled on a Catalyst 4500 switch.

  • The configured PAgP EtherChannel is connected to a Catalyst 6500 switch VSS.

You see N/A below Partner Version if this EtherChannel is not connected to a VSS. Otherwise, you see the version of enhanced PAgP dual-active detection implemented in the VSS.

  • This switch is capable of detecting dual-active scenarios in the connected VSS.

You see Yes below Dual-Active Detect Capable if and only if the configured EtherChannel is connected to a Catalyst 6500 series VSS that uses the same version of enhanced PAgP dual-active detection.

If a Catalyst 4500 switch is connected to a Catalyst 6500 series VSS with the same version of enhanced PAgP dual-active detection, the switch can detect a dual-active scenario:

Switch# show pagp 1 dual-active PAgP dual-active detection enabled: Yes PAgP dual-active version: 1.1

Channel group 1 Dual-Active Partner Partner Partner Port Detect Capable Name Port Version Gi6/5 Yes VSS Gi1/8/1 1.1 Gi6/6 Yes VSS Gi2/8/1 1.1

If a Catalyst 4500 switch is not connected to a Catalyst 6500 series VSS, the switch cannot detect a dual-active scenario:

Switch# show pagp 1 dual-active PAgP dual-active detection enabled: Yes PAgP dual-active version: 1.1

Channel group 1 Dual-Active Partner Partner Partner Port Detect Capable Name Port Version Gi6/5 No Switch Fa6/5 N/A Gi6/6 No Switch Fa6/6 N/A

Understanding Link-State Tracking

Link-state tracking, also known as trunk failover, is a feature that binds the link state of multiple interfaces. For example, link-state tracking provides redundancy in the network when used with server NIC adapter teaming. When server network adapters are configured in a primary or secondary relationship known as teaming, if the link is lost on the primary interface, connectivity is transparently changed to the secondary interface.

Page 551 of the Cisco Systems 4500 user manual — Configuring EtherChannel and Link State Tracking
Page 551 · click to enlarge
Page 551

Chapter 22 Configuring EtherChannel and Link State Tracking

Figure 22-3 on page 22-20 shows a network configured with link-state tracking. To enable link-state tracking, create a link-state group, and specify the interfaces that are assigned to the link-state group. An interface can be an aggregation of ports (an EtherChannel), a single physical port in access or trunk mode, or a routed port. In a link-state group, these interfaces are bundled together. The downstream interfaces are bound to the upstream interfaces. Interfaces connected to servers are referred to as downstream interfaces, and interfaces connected to distribution switches and network devices are referred to as upstream interfaces.

The configuration in Figure 22-3 ensures that the network traffic flow is balanced as follows:

  • For links to switches and other network devices

– Server 1 and server 2 use switch A for primary links and switch B for secondary links.

– Server 3 and server 4 use switch B for primary links and switch A for secondary links.

  • Link-state group 1 on switch A

– Switch A provides primary links to server 1 and server 2 through link-state group 1. Port 1 is connected to server 1, and port 2 is connected to server 2. Port 1 and port 2 are the downstream interfaces in link-state group 1.

– Port 5 and port 6 are connected to distribution switch 1 through link-state group 1. Port 5 and port 6 are the upstream interfaces in link-state group 1.

  • Link-state group 2 on switch A

– Switch A provides secondary links to server 3 and server 4 through link-state group 2. Port 3 is connected to server 3, and port 4 is connected to server 4. Port 3 and port 4 are the downstream interfaces in link-state group 2.

– Port 7 and port 8 are connected to distribution switch 2 through link-state group 2. Port 7 and port 8 are the upstream interfaces in link-state group 2.

  • Link-state group 2 on switch B

– Switch B provides primary links to server 3 and server 4 through link-state group 2. Port 3 is connected to server 3, and port 4 is connected to server 4. Port 3 and port 4 are the downstream interfaces in link-state group 2.

– Port 5 and port 6 are connected to distribution switch 2 through link-state group 2. Port 5 and port 6 are the upstream interfaces in link-state group 2.

  • Link-state group 1 on switch B

– Switch B provides secondary links to server 1 and server 2 through link-state group 1. Port 1 is connected to server 1, and port 2 is connected to server 2. Port 1 and port 2 are the downstream interfaces in link-state group 1.

– Port 7 and port 8 are connected to distribution switch 1 through link-state group 1. Port 7 and port 8 are the upstream interfaces in link-state group 1.

In a link-state group, the upstream ports can become unavailable or lose connectivity because the distribution switch or router fails, the cables are disconnected, or the link is lost. These are the interactions between the downstream and upstream interfaces when link-state tracking is enabled:

  • If any of the upstream interfaces are in the link-up state, the downstream interfaces can change to or remain in the link-up state.
  • If all of the upstream interfaces become unavailable, link-state tracking automatically puts the downstream interfaces in the error-disabled state. Connectivity to and from the servers is automatically changed from the primary server interface to the secondary server interface.

Understanding Link-State Tracking

Page 552 of the Cisco Systems 4500 user manual — Configuring EtherChannel and Link State Tracking
Page 552 · click to enlarge
Page 552

Chapter 22 Configuring EtherChannel and Link State Tracking Understanding Link-State Tracking

As an example of a connectivity change from link-state group 1 to link-state group 2 on switch A, see Figure 22-3 on page 22-20. If the upstream link for port 6 is lost, the link states of downstream ports 1 and 2 do not change. However, if the link for upstream port 5 is also lost, the link state of the downstream ports changes to the link-down state. Connectivity to server 1 and server 2 is then changed from link-state group1 to link-state group 2. The downstream ports 3 and 4 do not change state because they are in link-group 2.

  • If the link-state group is configured, link-state tracking is disabled, and the upstream interfaces lose connectivity, the link states of the downstream interfaces remain unchanged. The server does not recognize that upstream connectivity has been lost and does not failover to the secondary interface.

You can recover a downstream interface link-down condition by removing the failed downstream port from the link-state group. To recover multiple downstream interfaces, disable the link-state group.

Figure 22-3 Typical Link-State Tracking Configuration

Link-state group 2 Link-state group 2

Port 6 Port 7

Switch A Switch B

Port 4 Port 3 Port 2 Port

Server 1 Server 2 Server 3 Server 4

Show 24 more labels / short text on this page
Network · Layer 3 link · Distribution · Distribution switch 2 · switch 1 · Link-state · group 1 Link-state · group 1 · Port · Port · Port · 6 Port 5 · Port 8 · Port · Port · 2 Port · 3 Port · Port 1 · Link- state group 2 · Link- state group 1 · Link- state group 1 · Link- state group 2 · Primary link · Secondary link
Page 553 of the Cisco Systems 4500 user manual — Configuring Link-State Tracking
Page 553 · click to enlarge
Page 553

Chapter 22 Configuring EtherChannel and Link State Tracking

Configuring Link-State Tracking

These sections describe how to configure link-state tracking ports:

  • Default Link-State Tracking Configuration, page 22-21
  • Link-State Tracking Configuration Guidelines, page 22-21
  • Configuring Link-State Tracking, page 22-21
  • Displaying Link-State Tracking Status, page 22-22

Default Link-State Tracking Configuration

No link-state groups are defined, and link-state tracking is not enabled for any group.

Link-State Tracking Configuration Guidelines

Follow these guidelines to avoid configuration problems:

  • An interface that is defined as an upstream interface cannot also be defined as a downstream interface in the same or different link-state group. The reverse is also true.
  • We recommend that you add the upstream interfaces to the link state group before adding the downstream interfaces. it is because when a downstream interface is added to a link state group without an upstream interface, the downstream interface is put in error-disabled state until an upstream interfaces is added to the group.
  • An interface cannot be a member of more than one link-state group.
  • You can configure up to ten link-state groups per switch.
  • If a SPAN destination port is configured as a downstream interface, it is error disabled when all upstream interfaces in its group are down. When an upstream interface is configured as a SPAN destination port, it is considered as a link down event on the interface.

Configuring Link-State Tracking

To configure a link-state group and to assign an interface to a group, perform this task beginning in privileged EXEC mode:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# link state track number Creates a link-state group, and enable link-state tracking. The group number can be 1 to 10; the default is 1.

Step 3 Switch(config)# interface interface-id Specifies a physical interface or range of interfaces to configure, and enters interface configuration mode.

Valid interfaces include switch ports in access or trunk mode (IEEE 802.1q), routed ports, or multiple ports bundled into an EtherChannel interface (static or LACP), also in trunk mode.

Configuring Link-State Tracking

Page 554 of the Cisco Systems 4500 user manual — Displaying Link-State Tracking Status
Page 554 · click to enlarge
Page 554

Chapter 22 Configuring EtherChannel and Link State Tracking Configuring Link-State Tracking

Step 4 Switch(config-if)# link state group [number] {upstream | downstream}

Specifies a link-state group, and configure the interface as either an upstream or downstream interface in the group.The group number can be 1 to 10; the default is 1.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show running-config Verifies your entries.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to create a link-state group and configure the interfaces:

Switch# configure terminal Switch(config)# link state track 1 Switch(config)# interface gigabitethernet3/1 Switch(config-if)# link state group 1 upstream Switch(config-if)# interface gigabitethernet3/3 Switch(config-if)# link state group 1 upstream Switch(config-if)# interface gigabitethernet3/5 Switch(config-if)# link state group 1 downstream Switch(config-if)# interface gigabitethernet3/7 Switch(config-if)# link state group 1 downstream Switch(config-if)# end

To disable a link-state group, use the no link state track number global configuration command.

Displaying Link-State Tracking Status

To display the link-state group information, enter the show link state group command. Enter this command without keywords to display information about all link-state groups.

Enter the group number to display information specific to the group. Enter the detail keyword to display detailed information about the group.

it is an example of output from the show link state group 1 command:

Switch> show link state group 1 Link State Group: 1 Status: Enabled, Down

it is an example of output from the show link state group detail command:

Switch> show link state group detail (Up):Interface up (Dwn):Interface Down (Dis):Interface disabled Link State Group: 1 Status: Enabled, Down Upstream Interfaces : Gi3/5(Dwn) Gi3/6(Dwn) Downstream Interfaces : Gi3/1(Dis) Gi3/2(Dis) Gi3/3(Dis) Gi3/4(Dis) Link State Group: 2 Status: Enabled, Down Upstream Interfaces : Gi3/15(Dwn) Gi3/16(Dwn) Gi3/17(Dwn) Downstream Interfaces : Gi3/11(Dis) Gi3/12(Dis) Gi3/13(Dis) Gi3/14(Dis) (Up):Interface up (Dwn):Interface Down (Dis):Interface disabled

Page 555 of the Cisco Systems 4500 user manual — About IGMP Snooping
Page 555 · click to enlarge
Page 555

C H A P T E R

Configuring IGMP Snooping and Filtering

This chapter describes how to configure Internet Group Management Protocol (IGMP) snooping on the Catalyst 4500 series switch. It provides guidelines, procedures, and configuration examples.

This chapter consists of the following major sections:

  • About IGMP Snooping, page 23-1
  • Configuring IGMP Snooping, page 23-5
  • Displaying IGMP Snooping Information, page 23-14
  • Configuring IGMP Filtering, page 23-20
  • Displaying IGMP Filtering Configuration, page 23-24

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About IGMP Snooping

This section includes the following subsections:

  • Immediate-Leave Processing, page 23-3
  • IGMP Configurable-Leave Timer, page 23-4
Page 556 of the Cisco Systems 4500 user manual — Configuring IGMP Snooping and Filtering
Page 556 · click to enlarge
Page 556

Chapter 23 Configuring IGMP Snooping and Filtering About IGMP Snooping

  • IGMP Snooping Querier, page 23-4
  • Explicit Host Tracking, page 23-4

IGMP snooping allows a switch to snoop or capture information from IGMP packets transmitted between hosts and a router. Based on this information, a switch adds or deletes multicast addresses from its address table, which enables (or disables) multicast traffic from flowing to individual host ports. IGMP snooping supports all versions of IGMP: IGMPv1, IGMPv2, and IGMPv3.

In contrast to IGMPv1 and IGMPv2, IGMPv3 snooping provides immediate-leave processing by default. It provides explicit host tracking (EHT) and allows network administrators to deploy SSM functionality on Layer 2 devices that support IGMPv3. See the “Explicit Host Tracking” section on page 23-4. In subnets where IGMP is configured, IGMP snooping manages multicast traffic at Layer 2. You can configure interfaces to dynamically forward multicast traffic only to those interfaces that are interested in receiving it by using the switchport keyword.

IGMP snooping restricts traffic in MAC multicast groups 0100.5e00.0001 to 01-00-5e-ff-ff-ff. IGMP snooping does not restrict Layer 2 multicast packets generated by routing protocols.

IGMP (configured on a router) periodically sends out IGMP general queries. A host responds to these queries with IGMP membership reports for groups that it is interested in. When IGMP snooping is enabled, the switch creates one entry per-VLAN in the Layer 2 forwarding table for each Layer 2 multicast group from which it receives an IGMP join request. All hosts interested in this multicast traffic send IGMP membership reports and are added to the forwarding table entry.

Layer 2 multicast groups learned through IGMP snooping are dynamic. However, you can statically configure Layer 2 multicast groups using the ip igmp snooping static command. If you specify group membership statically, your setting supersedes any automatic manipulation by IGMP snooping. Multicast group membership lists can contain both user-defined and IGMP snooping settings.

Groups with IP addresses in the range 224.0.0.0 to 224.0.0.255, which map to the multicast MAC address range 0100.5E00.0001 to 0100.5E00.00FF, are reserved for routing control packets. These groups are flooded to all forwarding ports of the VLAN with the exception of 224.0.0.22, which is used for IGMPv3 membership reports.

For a Layer 2 IGMPv2 host interface to join an IP multicast group, a host sends an IGMP membership report for the IP multicast group. For a host to leave a multicast group, it can either ignore the periodic IGMP general queries or it can send an IGMP leave message. When the switch receives an IGMP leave message from a host, it sends out an IGMP group-specific query to determine whether any devices connected to that interface are interested in traffic for the specific multicast group. The switch then updates the table entry for that Layer 2 multicast group so that only those hosts interested in receiving multicast traffic for the group are listed.

Page 557 of the Cisco Systems 4500 user manual — Immediate-Leave Processing
Page 557 · click to enlarge
Page 557

Chapter 23 Configuring IGMP Snooping and Filtering

In contrast, IGMPv3 hosts send IGMPv3 membership reports (with the allow group record mode) to join a specific multicast group. When IGMPv3 hosts send membership reports (with the block group record) to reject traffic from all sources in the previous source list, the last host on the port is removed by immediate-leave if EHT is enabled.

Immediate-Leave Processing

IGMP snooping immediate-leave processing allows the switch to remove an interface from the forwarding-table entry without first sending out IGMP group-specific queries to the interface. The VLAN interface is pruned from the multicast tree for the multicast group specified in the original IGMP leave message. Immediate-leave processing ensures optimal bandwidth management for all hosts on a switched network, even when multiple multicast groups are being used simultaneously.

When a switch with IGMP snooping enabled receives an IGMPv2 or IGMPv3 leave message, it sends an IGMP group-specific query from the interface where the leave message was received to determine when other hosts are attached to that interface that are interested in joining the MAC multicast group. If the switch does not receive an IGMP join message within the query response interval, the interface is removed from the port list of the (MAC-group, VLAN) entry in the Layer 2 forwarding table.

With immediate-leave processing enabled on the VLAN, an interface can be removed immediately from the port list of the Layer 2 entry when the IGMP leave message is received, unless a multicast router was learned on the port.

Note When using IGMPv2 snooping, use immediate-leave processing only on VLANs where just one host is connected to each interface. If immediate-leave processing is enabled on VLANs where multiple hosts are connected to an interface, some hosts might be dropped inadvertently. When using IGMPv3, immediate-leave processing is enabled by default, and due to explicit host tracking, the switch can detect when a port has single or multiple hosts maintained by the switch for IGMPv3 hosts. As a result, the switch can perform immediate-leave processing when it detects a single host behind a given port.

To display the IGMP version on a particular VLAN, use the show ip igmp snooping querier vlan command.

To display whether the switch supports IGMPv3 snooping, use the show ip igmp snooping vlan command.

To enable immediate-leave for IGMPv2, use the ip igmp snooping immediate-leave command.

About IGMP Snooping

Page 558 of the Cisco Systems 4500 user manual — Explicit Host Tracking
Page 558 · click to enlarge
Page 558

Chapter 23 Configuring IGMP Snooping and Filtering About IGMP Snooping

IGMP Configurable-Leave Timer

Immediate-leave processing cannot be used on VLANs where multiple hosts may be connected to a single interface. To reduce leave latency in such a scenario, IGMPv3 provides a configurable leave timer.

In Cisco IOS Release 12.2(25)SG and earlier, the IGMP snooping leave time was based on query response time. If membership reports were not received by the switch before the query response time of the query expired, a port was removed from the multicast group membership.

In Cisco IOS Release 12.2(31)SG and later, you can configure the length of time that the switch waits after sending a group-specific query to determine if hosts are still interested in a specific multicast group. The IGMP leave response time can be configured from 100 to 5000 milliseconds. The timer can be set either globally or per-VLAN. The VLAN configuration of the leave time overrides the global configuration.

For configuration steps, see the “Configuring the IGMP Leave Timer” section on page 23-9.

IGMP Snooping Querier

IGMP Snooping Querier support was introduced in Cisco IOS Release 12.2(50)SG. This is a Layer 2 feature required to support IGMP snooping in a VLAN where PIM and IGMP are not configured because the multicast traffic does not require routing.

In a network where IP multicast routing is configured, the IP multicast router acts as the IGMP querier by sending general queries. If the IP-multicast traffic in a VLAN only needs to be Layer 2-switched, an IP-multicast router is not required. Without an IP-multicast router on the VLAN, you must configure another switch as the IGMP querier so that it can send queries.

When enabled, the IGMP snooping querier sends out periodic IGMPv2 queries that trigger IGMP report messages from the switch that requests IP multicast traffic. IGMP snooping listens to these IGMP reports to establish appropriate forwarding.

On switches that use IGMP to report interest in IP multicast traffic, configure at least one switch as the IGMP snooping querier in each supported VLAN.

You can configure a switch to generate IGMP queries on a VLAN regardless of whether IP multicast routing is enabled.

Explicit Host Tracking

Explicit host tracking (EHT) monitors group membership by tracking hosts that are sending IGMPv3 membership reports. This tracking enables a switch to detect host information associated with the groups of each port. EHT also enables the user to track the membership and various statistics.

EHT enables a switch to track membership on a per-port basis. Consequently, a switch is aware of the hosts residing on each port and can perform immediate-leave processing when there is only one host behind a port.

To determine whether EHT is enabled on a VLAN, use the show ip igmp snoop vlan command.

Page 559 of the Cisco Systems 4500 user manual — Feature Default Value
Page 559 · click to enlarge
Page 559

Chapter 23 Configuring IGMP Snooping and Filtering

Configuring IGMP Snooping

IGMP snooping allows switches to examine IGMP packets and make forwarding decisions based on their content.

These sections describe how to configure IGMP snooping:

  • Default IGMP Snooping Configuration, page 23-5
  • Enabling IGMP Snooping Globally, page 23-6
  • Enabling IGMP Snooping on a VLAN, page 23-6
  • Configuring Learning Methods, page 23-7
  • Configuring a Static Connection to a Multicast Router, page 23-8
  • Enabling IGMP Immediate-Leave Processing, page 23-8
  • Configuring the IGMP Leave Timer, page 23-9
  • Configuring IGMP Snooping Querier, page 23-10
  • Configuring Explicit Host Tracking, page 23-11
  • Configuring a Host Statically, page 23-11
  • Suppressing Multicast Flooding, page 23-12

Default IGMP Snooping Configuration

Table 23-1 shows the IGMP snooping default configuration values.

Table 23-1 IGMP Snooping Default Configuration Values

Feature Default Value

Multicast routers None configured

Explicit Host Tracking Enabled for IGMPv3; Not available for IGMPv2

Immediate-leave processing Enabled for IGMPv3; Disabled for IGMPv2

IGMP snooping learning method PIM/DVMRP1

1. PIM/DVMRP = Protocol Independent Multicast/Distance Vector Multicast Routing Protocol

Configuring IGMP Snooping · IGMP snooping Enabled · Report Suppression Enabled

Page 560 of the Cisco Systems 4500 user manual — Enabling IGMP Snooping on a VLAN
Page 560 · click to enlarge
Page 560

Chapter 23 Configuring IGMP Snooping and Filtering Configuring IGMP Snooping

Enabling IGMP Snooping Globally

To enable IGMP snooping globally, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] ip igmp snooping Enables IGMP snooping.

Use the no keyword to disable IGMP snooping.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show ip igmp snooping | include Verifies the configuration.

This example shows how to enable IGMP snooping globally and verify the configuration:

Switch# configure terminal Switch(config)# ip igmp snooping Switch(config)# end Switch# show ip igmp snooping Global IGMP Snooping configuration: IGMP snooping : Enabled IGMPv3 snooping : Enabled Report suppression : Enabled TCN solicit query : Disabled TCN flood query count : 2

Vlan 1: IGMP snooping : Enabled IGMPv2 immediate leave : Disabled Explicit host tracking : Enabled Multicast router learning mode : pim-dvmrp CGMP interoperability mode : IGMP_ONLY

Vlan 2: IGMP snooping : Enabled IGMPv2 immediate leave : Disabled Explicit host tracking : Enabled Multicast router learning mode : pim-dvmrp CGMP interoperability mode : IGMP_ONLY

Enabling IGMP Snooping on a VLAN

To enable IGMP snooping on a VLAN, perform this task:

Step 1 Switch(config)# [no] ip igmp snooping vlan vlan_ID Enables IGMP snooping.

Use the no keyword to disable IGMP snooping.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show ip igmp snooping vlan vlan_ID Verifies the configuration.

Page 561 of the Cisco Systems 4500 user manual — Configuring CGMP Learning
Page 561 · click to enlarge
Page 561

Chapter 23 Configuring IGMP Snooping and Filtering

This example shows how to enable IGMP snooping on VLAN 2 and verify the configuration:

Switch# configure terminal Switch(config)# ip igmp snooping vlan 2 Switch(config)# end Switch# show ip igmp snooping vlan 2 Global IGMP Snooping configuration: IGMP snooping : Enabled IGMPv3 snooping : Enabled Report suppression : Enabled TCN solicit query : Disabled TCN flood query count : 2

Vlan 2: IGMP snooping : Enabled IGMPv2 immediate leave : Disabled Explicit host tracking : Enabled Multicast router learning mode : pim-dvmrp CGMP interoperability mode : IGMP_ONLY

Configuring Learning Methods

The following sections describe IGMP snooping learning methods:

  • Configuring PIM/DVMRP Learning, page 23-7
  • Configuring CGMP Learning, page 23-7

Configuring PIM/DVMRP Learning

To configure IGMP snooping to learn from PIM/DVMRP packets, perform this task:

Switch(config)# ip igmp snooping vlan vlan_ID mrouter learn [cgmp | pim-dvmrp]

Specifies the learning method for the VLAN.

This example shows how to configure IP IGMP snooping to learn from PIM/DVMRP packets:

Switch# configure terminal Switch(config)# ip igmp snooping vlan 1 mrouter learn pim-dvmrp Switch(config)# end Switch#

Configuring CGMP Learning

To configure IGMP snooping to learn from CGMP self-join packets, perform this task:

Switch(config)# ip igmp snooping vlan vlan_ID mrouter learn [cgmp | pim-dvmrp]

Specifies the learning method for the VLAN.

Configuring IGMP Snooping

Page 562 of the Cisco Systems 4500 user manual — Enabling IGMP Immediate-Leave Processing
Page 562 · click to enlarge
Page 562

Chapter 23 Configuring IGMP Snooping and Filtering Configuring IGMP Snooping

This example shows how to configure IP IGMP snooping to learn from CGMP self-join packets:

Switch# configure terminal Switch(config)# ip igmp snooping vlan 1 mrouter learn cgmp Switch(config)# end Switch#

Configuring a Static Connection to a Multicast Router

To configure a static connection to a multicast router, enter the ip igmp snooping vlan mrouter interface command on the switch.

To configure a static connection to a multicast router, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip igmp snooping vlan vlan_ID mrouter interface interface_num

Specifies a static connection to a multicast router for the VLAN.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show ip igmp snooping mrouter vlan vlan_ID Verifies the configuration.

This example shows how to configure a static connection to a multicast router:

Switch# configure terminal Switch(config)# ip igmp snooping vlan 200 mrouter interface fastethernet 2/10 Switch# show ip igmp snooping mrouter vlan 200 vlan ports + 200 Fa2/10 Switch#

Enabling IGMP Immediate-Leave Processing

When you enable IGMP immediate-leave processing on a VLAN, a switch removes an interface from the multicast group when it detects an IGMPv2 leave message on that interface.

To enable immediate-leave processing on an IGMPv2 interface, perform this task:

Switch(config)# ip igmp snooping vlan vlan_ID immediate-leave

Enables immediate-leave processing in the VLAN.

Page 563 of the Cisco Systems 4500 user manual — Configuring the IGMP Leave Timer
Page 563 · click to enlarge
Page 563

Chapter 23 Configuring IGMP Snooping and Filtering

This example shows how to enable IGMP immediate-leave processing on interface VLAN 200 and to verify the configuration:

Switch# configure terminal Switch(config)# ip igmp snooping vlan 200 immediate-leave Configuring immediate leave on vlan 200 Switch(config)# end Switch# show ip igmp interface vlan 200 | include immediate leave Immediate leave : Disabled Switch(config)#

Configuring the IGMP Leave Timer

Follows these guidelines when configuring the IGMP leave timer:

  • You can configure the leave time globally or per-VLAN.
  • Configuring the leave time on a VLAN overrides the global setting.
  • The default leave time is 1000 milliseconds.
  • The IGMP configurable leave time is only supported on hosts running IGMP Version 2.
  • The actual leave latency in the network is usually the configured leave time. However, the leave time might vary around the configured time, depending on real-time CPU load conditions, network delays and the amount of traffic sent through the interface.

To enable the IGMP configurable-leave timer, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip igmp snooping last-member-query-interval time

Configures the IGMP leave timer globally. The range is 100 to 5000 milliseconds. The default is 1000 seconds.

To globally reset the IGMP leave timer to the default setting, use the global configuration command no ip igmp snooping last-member-query-interval.

Step 3 Switch(config)# ip igmp snooping vlan vlan_ID last-member-query-interval time

(Optional) Configures the IGMP leave time on the VLAN interface. The range is 100 to 5000 milliseconds.

To remove the configured IGMP leave-time setting from the specified VLAN, use the global configuration command no ip igmp snooping vlan vlan-id last-member-query-interval

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show ip igmp snooping (Optional) Displays the configured IGMP leave time.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable the IGMP configurable-leave timer and to verify the configuration:

Switch# configure terminal Switch(config)# ip igmp snooping last-member-query-interval 200 Switch(config)# ip igmp snooping vlan 10 last-member-query-interval 500 Switch(config)# end

Configuring IGMP Snooping

Page 564 of the Cisco Systems 4500 user manual — Configuring IGMP Snooping Querier
Page 564 · click to enlarge
Page 564

Chapter 23 Configuring IGMP Snooping and Filtering Configuring IGMP Snooping

Switch# show ip igmp snooping show ip igmp snooping Global IGMP Snooping configuration:

IGMP snooping : Enabled IGMPv3 snooping : Enabled Report suppression : Enabled TCN solicit query : Disabled TCN flood query count : 2 Last Member Query Interval : 200

Vlan 1: IGMP snooping : Enabled IGMPv2 immediate leave : Disabled Explicit host tracking : Enabled Multicast router learning mode : pim-dvmrp Last Member Query Interval : 200 CGMP interoperability mode : IGMP_ONLY

Vlan 10: IGMP snooping : Enabled IGMPv2 immediate leave : Disabled Explicit host tracking : Enabled Multicast router learning mode : pim-dvmrp Last Member Query Interval : 500 CGMP interoperability mode : IGMP_ONLY

Configuring IGMP Snooping Querier

The IGMP Snooping Querier feature can be enabled either globally or per-VLAN.

To configure IGMP Snooping Querier, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] ip igmp snooping [vlan vlan_id] querier

Enables IGMP Snooping Querier.

Step 3 Switch(config)# [no] ip igmp snooping [vlan vlan_id] querier address abcd

Configures the IGMP Snooping Querier source IP address.

Step 4 Switch(config)# [no] ip igmp snooping [vlan vlan_id] querier version [1 | 2]

Configures IGMP Snooping Querier IGMP version.

Step 5 Switch(config)# ip igmp snooping [vlan vlan_id] querier query-interval interval

Configures IGMP Snooping Querier query interval.

Step 6 Switch(config)# ip igmp snooping [vlan vlan_id] querier max-response-time value

Configures IGMP Snooping Querier query maximum response time.

Step 7 Switch(config)# ip igmp snooping [vlan vlan_id] querier timer expiry value

Configures IGMP Snooping Querier expiry time out.

Switch#

Page 565 of the Cisco Systems 4500 user manual — Configuring a Host Statically
Page 565 · click to enlarge
Page 565

Chapter 23 Configuring IGMP Snooping and Filtering

Step 8 Switch(config)# ip igmp snooping [vlan vlan_id] querier tcn query count value

Configures IGMP Snooping Querier tcn query count.

Step 9 Switch(config)# ip igmp snooping [vlan vlan_id] querier tcn query interval value

Configures IGMP Snooping Querier tcn query interval.

Step 10 Switch(config)# end Returns to privileged EXEC mode.

For an example of how to display Snooping Querier information, refer to the “Displaying IGMP Snooping Querier Information” section on page 23-19.

Configuring Explicit Host Tracking

For IGMPv3, EHT is enabled by default and can be disabled on a per-VLAN basis.

To disable EHT processing on a VLAN, perform this task:

Switch(config)# [no] ip igmp snooping vlan vlan_ID explicit-tracking

Enables EHT on a VLAN.

The no keyword disables EHT.

This example shows how to disable IGMP EHT on VLAN 200 and to verify the configuration:

Switch# configure terminal Switch(config)# no ip igmp snooping vlan 200 explicit-tracking Switch(config)# end Switch# show ip igmp snooping vlan 200 | include Explicit host tracking Explicit host tracking : Disabled

Configuring a Host Statically

Hosts normally join multicast groups dynamically, but you can also configure a host statically on an interface.

To configure a host statically on an interface, perform this task:

Switch(config-if)# ip igmp snooping vlan vlan_ID static mac_address interface interface_num

Configures a host statically in the VLAN.

Configuring IGMP Snooping

Page 566 of the Cisco Systems 4500 user manual — IGMP Snooping Interface Configuration
Page 566 · click to enlarge
Page 566

Chapter 23 Configuring IGMP Snooping and Filtering Configuring IGMP Snooping

This example shows how to configure a host statically in VLAN 200 on interface Fast Ethernet 2/11:

Switch# configure terminal Switch(config)# ip igmp snooping vlan 200 static 0100.5e02.0203 interface fastethernet 2/11 Configuring port FastEthernet2/11 on group 0100.5e02.0203 vlan 200 Switch(config)# end

Suppressing Multicast Flooding

An IGMP snooping-enabled switch floods multicast traffic to all ports in a VLAN when a spanning-tree topology change notification (TCN) is received. Multicast flooding suppression enables a switch to stop sending such traffic. To support flooding suppression, the following interface and global commands were introduced in Cisco IOS Release 12.1(11b)EW:

  • [ no | default ] ip igmp snooping tcn flood (interface command)
  • [ no | default ] ip igmp snooping tcn flood query count [ 1 - 10 ] (global command)
  • [ no | default ] ip igmp snooping tcn query solicit (global command)

Prior to Cisco IOS Release 12.1(11b)EW, when a spanning tree topology change notification (TCN) was received by a switch, the multicast traffic was flooded to all the ports in a VLAN for a period of three IGMP query intervals. This was necessary for redundant configurations. In Cisco IOS Release 12.1(11b)EW, the default time period the switch waits before multicast flooding stops was changed to two IGMP query intervals.

This flooding behavior is undesirable if the switch that does the flooding has many ports that are subscribed to different groups. The traffic could exceed the capacity of the link between the switch and the end host, resulting in packet loss.

With the no ip igmp snooping tcn flood command, you can disable multicast flooding on a switch interface following a topology change. Only the multicast groups that have been joined by a port are sent to that port, even during a topology change.

With the ip igmp snooping tcn flood query count command, you can enable multicast flooding on a switch interface for a short period of time following a topology change by configuring an IGMP query threshold.

Typically, if a topology change occurs, the spanning tree root switch issues a global IGMP leave message (referred to as a “query solicitation”) with the group multicast address 0.0.0.0. When a switch receives this solicitation, it floods this solicitation on all ports in the VLAN where the spanning tree change occurred. When the upstream router receives this solicitation, it immediately issues an IGMP general query.

With the ip igmp snooping tcn query solicit command, you can now direct a non-spanning tree root switch to enter the same query solicitation.

The following sections provide additional details on the new commands and illustrate how you can use them.

IGMP Snooping Interface Configuration

A topology change in a VLAN may invalidate previously learned IGMP snooping information. A host that was on one port before the topology change may move to another port after the topology change. When the topology changes, the Catalyst 4500 series switch takes special actions to ensure that multicast traffic is delivered to all multicast receivers in that VLAN.

Page 567 of the Cisco Systems 4500 user manual — IGMP Snooping Switch Configuration
Page 567 · click to enlarge
Page 567

Chapter 23 Configuring IGMP Snooping and Filtering

When the spanning tree protocol is running in a VLAN, a spanning tree topology change notification (TCN) is issued by the root switch in the VLAN. A Catalyst 4500 series switch that receives a TCN in a VLAN for which IGMP snooping has been enabled immediately enters into multicast flooding mode for a period of time until the topology restabilizes and the new locations of all multicast receivers are learned.

While in multicast flooding mode, IP multicast traffic is delivered to all ports in the VLAN, and not restricted to those ports on which multicast group members have been detected.

Starting with Cisco IOS Release 12.1(11b)EW, you can manually prevent IP multicast traffic from being flooded to a switch port by using the no ip igmp snooping tcn flood command on that port.

For trunk ports, the configuration applies to all VLANs.

By default, multicast flooding is enabled. Use the no keyword to disable flooding, and use default to restore the default behavior (flooding is enabled).

To disable multicast flooding on an interface, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Selects the interface to configure.

Step 2 Switch(config-if)# no ip igmp snooping tcn flood Disables multicast flooding on the interface when TCNs are received by the switch.

To enable multicast flooding on the interface, enter this command: default ip igmp snooping tcn flood

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show running interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Verifies the configuration.

This example shows how to disable multicast flooding on interface Fast Ethernet 2/11:

Switch(config)# interface fastethernet 2/11 Switch(config-if)# no ip igmp snooping tcn flood Switch(config-if)# end Switch#

IGMP Snooping Switch Configuration

By default, flooding mode persists until the switch receives two IGMP general queries. You can change this period of time by using the ip igmp snooping tcn flood query count n command, where n is a number between 1 and 10.

This command operates at the global configuration level.

The default number of queries is 2. The no and default keywords restore the default.

Configuring IGMP Snooping

Page 568 of the Cisco Systems 4500 user manual — Displaying IGMP Snooping Information
Page 568 · click to enlarge
Page 568

Chapter 23 Configuring IGMP Snooping and Filtering Displaying IGMP Snooping Information

To establish an IGMP query threshold, perform this task:

Step 1 Switch(config)# ip igmp snooping tcn flood query count <n>

Modifies the number of IGMP queries the switch waits for before it stops flooding multicast traffic.

To return the switch to the default number of IGMP queries, enter this command: default ip igmp snooping tcn flood query count .

Step 2 Switch(config)# end Exits configuration mode.

This example shows how to modify the switch to stop flooding multicast traffic after four queries:

Switch(config)# ip igmp snooping tcn flood query count 4 Switch(config)# end Switch#

When a spanning tree root switch receives a topology change in an IGMP snooping-enabled VLAN, the switch issues a query solicitation that causes an Cisco IOS router to send out one or more general queries. The new command ip igmp snooping tcn query solicit causes the switch to send the query solicitation whenever it notices a topology change, even if that switch is not the spanning tree root.

This command operates at the global configuration level.

By default, query solicitation is disabled unless the switch is the spanning tree root. The default keyword restores the default behavior.

To direct a switch to send a query solicitation, perform this task:

Step 1 Switch(config)# ip igmp snooping tcn query solicit

Configures the switch to send a query solicitation when a TCN is detected.

To stop the switch from sending a query solicitation (if it is not a spanning tree root switch), enter the no ip igmp snooping tcn query solicit command.

Step 2 Switch(config)# end Exits configuration mode.

This example shows how to configure the switch to send a query solicitation upon detecting a TCN:

Switch(config)# ip igmp snooping tcn query solicit Switch(config)# end Switch#

Displaying IGMP Snooping Information

The following sections show how to display IGMP snooping information:

  • Displaying Querier Information, page 23-15
  • Displaying IGMP Host Membership Information, page 23-15
  • Displaying Group Information, page 23-16
  • Displaying Multicast Router Interfaces, page 23-17
Page 569 of the Cisco Systems 4500 user manual — Displaying IGMP Host Membership Information
Page 569 · click to enlarge
Page 569

Chapter 23 Configuring IGMP Snooping and Filtering

Displaying IGMP Snooping Information

  • Displaying MAC Address Multicast Entries, page 23-18
  • Displaying IGMP Snooping Information on a VLAN Interface, page 23-18
  • Configuring IGMP Filtering, page 23-20

Displaying Querier Information

To display querier information, perform this task:

Switch# show ip igmp snooping querier [vlan vlan_ID]

Displays multicast router interfaces.

This example shows how to display the IGMP snooping querier information for all VLANs on the switch:

Switch# show ip igmp snooping querier Vlan IP Address IGMP Version Port 2 10.10.10.1 v2 Router 3 172.20.50.22 v3 Fa3/15

This example shows how to display the IGMP snooping querier information for VLAN 3:

Switch# show ip igmp snooping querier vlan 3 Vlan IP Address IGMP Version Port 3 172.20.50.22 v3 Fa3/15

Displaying IGMP Host Membership Information

To display host membership information, perform this task:

Switch# show ip igmp snooping membership [interface interface_num][vlan vlan_ID] [reporter a.b.c.d] [source a.b.c.d group a.b.c.d]

Displays EHT information.

This example shows how to display host membership information for VLAN 20 and to delete the EHT database:

Switch# show ip igmp snooping membership vlan 20 #channels: 5 #hosts : 1 Source/Group Interface Reporter Uptime Last-Join Last-Leave

Page 570 of the Cisco Systems 4500 user manual — Displaying Group Information
Page 570 · click to enlarge
Page 570

Chapter 23 Configuring IGMP Snooping and Filtering Displaying IGMP Snooping Information

40.40.40.2/224.10.10.10 Gi4/1 20.20.20.20 00:23:37 00:06:50 00:20:30 40.40.40.3/224.10.10.10 Gi4/2 20.20.2020 00:23:37 00:06:50 00:20:30 40.40.40.4/224.10.10.10Gi4/1 20.20.20.20 00:39:42 00:09:17 -

40.40.40.5/224.10.10.10Fa2/1 20.20.20.20 00:39:42 00:09:17 - 40.40.40.6/224.10.10.10 Fa2/1 20.20.20.20 00:09:47 00:09:17 -

Switch# clear ip igmp snooping membership vlan 20

This example shows how to display host membership for interface gi4/1:

Switch# show ip igmp snooping membership interface gi4/1 #channels: 5 #hosts : 1 Source/Group Interface Reporter Uptime Last-Join Last-Leave

40.40.40.2/224.10.10.10 Gi4/1 20.20.20.20 00:23:37 00:06:50 00:20:30 40.40.40.4/224.10.10.10Gi4/1 20.20.20.20 00:39:42 00:09:17 -

This example shows how to display host membership for VLAN 20 and group 224.10.10.10:

Switch# show ip igmp snooping membership vlan 20 source 40.40.40.2 group 224.10.10.10 #channels: 5 #hosts : 1 Source/Group Interface Reporter Uptime Last-Join Last-Leave

40.40.40.2/224.10.10.10 Gi4/1 20.20.20.20 00:23:37 00:06:50 00:20:30

Displaying Group Information

To display detailed IGMPv3 information associated with a group, perform one of the following tasks:

Switch# show ip igmp snooping groups [vlan vlan_ID]

Displays groups, the type of reports that were received for the group (Host Type), and the list of ports on which reports were received.

The report list includes neither the multicast router ports nor the complete forwarding port set for the group. It lists the ports on which the reports have been received.

To display the complete forwarding port set for the group, display the CLI output for the MAC address that maps to this group by using the show mac-address-table multicast command.

Switch# show ip igmp snooping groups [vlan vlan_ID a.b.c.d] [summary|sources|hosts]

Displays information specific to a group address, providing details about the current state of the group with respect to sources and hosts.

Switch# show ip igmp snooping groups [vlan vlan_ID] [count]

Displays the total number of group addresses learned by the system on a global or per-VLAN basis.

Page 571 of the Cisco Systems 4500 user manual — Displaying Multicast Router Interfaces
Page 571 · click to enlarge
Page 571

Chapter 23 Configuring IGMP Snooping and Filtering

Displaying IGMP Snooping Information

This example shows how to display the host types and ports of a group in VLAN 1:

Switch# show ip igmp snooping groups vlan 10 226.6.6.7 Vlan Group Version Ports 10 226.6.6.7 v3 Fa7/13, Fa7/14 Switch>

This example shows how to display the current state of a group with respect to a source IP address:

Switch# show ip igmp snooping groups vlan 10 226.6.6.7 sources Source information for group 226.6.6.7: Timers: Expired sources are deleted on next IGMP General Query

SourceIP Expires Uptime Inc Hosts Exc Hosts 2.0.0.1 00:03:04 00:03:48 2 0 2.0.0.2 00:03:04 00:02:07 2 0 Switch>

This example shows how to display the current state of a group with respect to a host MAC address:

Switch# show ip igmp snooping groups vlan 10 226.6.6.7 hosts IGMPv3 host information for group 226.6.6.7 Timers: Expired hosts are deleted on next IGMP General Query

Host (MAC/IP) Filter mode Expires Uptime # Sources 175.1.0.29 INCLUDE stopped 00:00:51 2 175.2.0.30 INCLUDE stopped 00:04:14 2

This example shows how to display summary information for an IGMPv3 group:

Switch# show ip igmp snooping groups vlan 10 226.6.6.7 summary Group Address (Vlan 10) : 226.6.6.7 Host type : v3 Member Ports : Fa7/13, Fa7/14 Filter mode : INCLUDE Expires : stopped Sources : 2 Reporters (Include/Exclude) : 2/0

This example shows how to display the total number of group addresses learned by the system globally:

Switch# show ip igmp snooping groups count

Total number of groups54

This example shows how to display the total number of group addresses learned on VLAN 5:

Switch# show ip igmp snooping groups vlan 5 count

Total number of groups30

Displaying Multicast Router Interfaces

When you enable IGMP snooping, the switch automatically learns to which interface the multicast routers are connected.

Page 572 of the Cisco Systems 4500 user manual — Displaying IGMP Snooping Information on a VLAN Interface
Page 572 · click to enlarge
Page 572

Chapter 23 Configuring IGMP Snooping and Filtering Displaying IGMP Snooping Information

To display multicast router interfaces, perform this task:

Switch# show ip igmp snooping mrouter vlan vlan_ID

Displays multicast router interfaces.

This example shows how to display the multicast router interfaces in VLAN 1:

Switch# show ip igmp snooping mrouter vlan 1 vlan ports + 1 Gi1/1,Gi2/1,Fa3/48,Router Switch#

Displaying MAC Address Multicast Entries

To display MAC address multicast entries for a VLAN, perform this task:

Switch# show mac-address-table multicast vlan vlan_ID [count]

Displays MAC address multicast entries for a VLAN.

This example shows how to display MAC address multicast entries for VLAN 1:

Switch# show mac-address-table multicast vlan 1 Multicast Entries vlan mac address type ports + + + 1 0100.5e01.0101 igmp Switch,Gi6/1 1 0100.5e01.0102 igmp Switch,Gi6/1 1 0100.5e01.0103 igmp Switch,Gi6/1 1 0100.5e01.0104 igmp Switch,Gi6/1 1 0100.5e01.0105 igmp Switch,Gi6/1 1 0100.5e01.0106 igmp Switch,Gi6/1 Switch#

This example shows how to display a total count of MAC address entries for VLAN 1:

Switch# show mac-address-table multicast vlan 1 count Multicast MAC Entries for vlan 1: 4 Switch#

Displaying IGMP Snooping Information on a VLAN Interface

To display IGMP snooping information on a VLAN, perform this task:

Switch# show ip igmp snooping vlan vlan_ID Displays IGMP snooping information on a VLAN interface.

Page 573 of the Cisco Systems 4500 user manual — Displaying IGMP Snooping Querier Information
Page 573 · click to enlarge
Page 573

Chapter 23 Configuring IGMP Snooping and Filtering

Displaying IGMP Snooping Information

This example shows how to display IGMP snooping information on VLAN 5:

Switch# show ip igmp snooping vlan 5 Global IGMP Snooping configuration: IGMP snooping :Enabled IGMPv3 snooping support :Full Report suppression :Enabled TCN solicit query :Disabled TCN flood query count :2

Vlan 5: IGMP snooping :Enabled Immediate leave :Disabled Explicit Host Tracking :Disabled Multicast router learning mode :pim-dvmrp CGMP interoperability mode :IGMP_ONLY

Displaying IGMP Snooping Querier Information

To display IGMP Snooping Querier information, perform this task:

Switch# show ip igmp snooping querier [vlan vlan_ID] [detail]

Displays the IGMP Snooping Querier state.

This example shows how to display Snooping Querier information:

switch# show ip igmp snooping querier vlan 2 detail IP address : 1.2.3.4 IGMP version : v2 Port : Router/Switch Max response time : 12s

Global IGMP switch querier status admin state : Enabled admin version : 2 source IP address : 1.2.3.4 query-interval (sec) : 130 max-response-time (sec) : 10 querier-timeout (sec) : 100 tcn query count : 2 tcn query interval (sec) : 10

Page 574 of the Cisco Systems 4500 user manual — Default IGMP Filtering Configuration
Page 574 · click to enlarge
Page 574

Chapter 23 Configuring IGMP Snooping and Filtering Configuring IGMP Filtering

Vlan 2: IGMP switch querier status admin state : Enabled admin version : 2 source IP address : 1.2.3.4 query-interval (sec) : 55 max-response-time (sec) : 12 querier-timeout (sec) : 70 tcn query count : 10 tcn query interval (sec) : 8 operational state : Querier operational version : 2 tcn query pending count : 0

Configuring IGMP Filtering

This section includes the following subsections:

  • Default IGMP Filtering Configuration, page 23-20
  • Configuring IGMP Profiles, page 23-21
  • Applying IGMP Profiles, page 23-22
  • Setting the Maximum Number of IGMP Groups, page 23-23

In some environments, for example metropolitan or multiple-dwelling unit (MDU) installations, an administrator might want to control the multicast groups to which a user on a switch port can belong. This allows the administrator to control the distribution of multicast services, such as IP/TV, based on some type of subscription or service plan.

With the IGMP filtering feature, an administrator can use this type of control. With this feature, you can filter multicast joins on a per-port basis by configuring IP multicast profiles and associating them with individual switch ports. An IGMP profile can contain one or more multicast groups and specifies whether access to the group is permitted or denied. If an IGMP profile denying access to a multicast group is applied to a switch port, the IGMP join report requesting the stream of IP multicast traffic is dropped, and the port is not allowed to receive IP multicast traffic from that group. If the filtering action permits access to the multicast group, the IGMP report from the port is forwarded for normal processing.

IGMP filtering controls only IGMP membership join reports and has no relationship to the function that directs the forwarding of IP multicast traffic.

You can also set the maximum number of IGMP groups that a Layer 2 interface can join with the ip igmp max-groups n command.

Default IGMP Filtering Configuration

Table 23-2 shows the default IGMP filtering configuration.

Page 575 of the Cisco Systems 4500 user manual — Configuring IGMP Profiles
Page 575 · click to enlarge
Page 575

Chapter 23 Configuring IGMP Snooping and Filtering

Table 23-2 Default IGMP Filtering Settings

Feature Default Setting

IGMP filters No filtering

IGMP maximum number of IGMP groups No limit

IGMP profiles None defined

Configuring IGMP Profiles

To configure an IGMP profile and to enter IGMP profile configuration mode, use the ip igmp profile global configuration command. From the IGMP profile configuration mode, you can specify the parameters of the IGMP profile to be used for filtering IGMP join requests from a port. When you are in IGMP profile configuration mode, you can create the profile using these commands:

  • deny— Specifies that matching addresses are denied (the default condition).
  • exit —Exits from igmp-profile configuration mode.
  • no— Negates a command or sets its defaults.
  • permit— Specifies that matching addresses are permitted.
  • range— Specifies a range of IP addresses for the profile. You can enter a single IP address or a range with starting and ending addresses.

By default, no IGMP profiles are configured. When a profile is configured with neither the permit nor the deny keyword, the default is to deny access to the range of IP addresses.

To create an IGMP profile for a port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip igmp profile profile number

Enters IGMP profile configuration mode and assigns a number to the profile you are configuring. The range is from 1 to 4,294,967,295.

Step 3 Switch(config-igmp-profile)# permit | deny (Optional) Sets the action to permit or deny access to the IP multicast address. If no action is configured, the default for the profile is to deny access.

Step 4 Switch(config-igmp-profile)# range ip multicast address

Enters the IP multicast address or range of IP multicast addresses to which access is being controlled. If entering a range, enter the low IP multicast address, a space, and the high IP multicast address.

Use the range command multiple times to enter multiple addresses or ranges of addresses.

Step 5 Switch(config-igmp-profile)# end Returns to privileged EXEC mode.

Step 6 Switch# show ip igmp profile profile number Verifies the profile configuration.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Configuring IGMP Filtering

Page 576 of the Cisco Systems 4500 user manual — Applying IGMP Profiles
Page 576 · click to enlarge
Page 576

Chapter 23 Configuring IGMP Snooping and Filtering Configuring IGMP Filtering

To delete a profile, use the no ip igmp profile profile number global configuration command.

To delete an IP multicast address or range of IP multicast addresses, use the no range ip multicast address IGMP profile configuration command.

This example shows how to create IGMP profile 4 (allowing access to the single IP multicast address) and how to verify the configuration. If the action were to deny (the default), it does not appear in the output of the show ip igmp profile command.

Switch# configure terminal Switch(config)# ip igmp profile 4 Switch(config-igmp-profile)# permit Switch(config-igmp-profile)# range 229.9.9.0 Switch(config-igmp-profile)# end Switch# show ip igmp profile 4 IGMP Profile 4 permit range 229.9.9.0 229.9.9.0

Applying IGMP Profiles

To control access as defined in an IGMP profile, use the ip igmp filter interface configuration command to apply the profile to the appropriate interfaces. You can apply a profile to multiple interfaces, but each interface can only have one profile applied to it.

To apply an IGMP profile to a switch port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode, and enters the physical interface to configure, for example, fastethernet2/3. The interface must be a Layer 2 port that does not belong to an EtherChannel port group.

Step 3 Switch(config-if)# ip igmp filter profile number

Applies the specified IGMP profile to the interface. The profile number can be from 1 to 4,294,967,295.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show running configuration interface interface-id

Verifies the configuration.

Step 6 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To remove a profile from an interface, use the no ip igmp filter command.

This example shows how to apply IGMP profile 4 to an interface and to verify the configuration:

Switch# configure terminal Switch(config)# interface fastethernet2/12 Switch(config-if)# ip igmp filter 4 Switch(config-if)# end

Page 577 of the Cisco Systems 4500 user manual — Setting the Maximum Number of IGMP Groups
Page 577 · click to enlarge
Page 577

Chapter 23 Configuring IGMP Snooping and Filtering

Switch# show running-config interface fastethernet2/12 Building configuration...

Current configuration : 123 bytes ! interface FastEthernet2/12 no ip address shutdown snmp trap link-status ip igmp max-groups 25 ip igmp filter 4 end

Setting the Maximum Number of IGMP Groups

You can set the maximum number of IGMP groups that a Layer 2 interface can join by using the ip igmp max-groups interface configuration command. Use the no form of this command to set the maximum back to the default, which is no limit.

To apply an IGMP profile on a switch port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode, and enter the physical interface to configure, for example, gigabitethernet1/1. The interface must be a Layer 2 port that does not belong to an EtherChannel group.

Step 3 Switch(config-if)# ip igmp max-groups number

Sets the maximum number of IGMP groups that the interface can join. The range is from 0 to 4,294,967,294. By default, no maximum is set.

To remove the maximum group limitation and return to the default of no maximum, use the no ip igmp max-groups command.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-configuration interface interface-id

Verifies the configuration.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to limit the number of IGMP groups that an interface can join to 25:

Switch# configure terminal Switch(config)# interface fastethernet2/12 Switch(config-if)# ip igmp max-groups 25 Switch(config-if)# end Switch# show running-config interface fastethernet2/12 Building configuration...

Current configuration : 123 bytes !

Configuring IGMP Filtering

Page 578 of the Cisco Systems 4500 user manual — Displaying IGMP Filtering Configuration
Page 578 · click to enlarge
Page 578

Chapter 23 Configuring IGMP Snooping and Filtering Displaying IGMP Filtering Configuration

interface FastEthernet2/12 no ip address shutdown snmp trap link-status ip igmp max-groups 25 ip igmp filter 4 end

Displaying IGMP Filtering Configuration

You can display IGMP profile and maximum group configuration for all interfaces on the switch or for a specified interface.

To display IGMP profiles, perform this task:

Switch# show ip igmp profile [profile number] Displays the specified IGMP profile or all IGMP profiles defined on the switch.

To display interface configuration, perform this task:

Switch# show running-configuration [interface interface-id]

Displays the configuration of the specified interface or all interfaces on the switch, including (if configured) the maximum number of IGMP groups to which an interface can belong and the IGMP profile applied to the interface.

This is an example of the show ip igmp profile privileged EXEC command when no profile number is entered. All profiles defined on the switch are displayed.

Switch# show ip igmp profile IGMP Profile 3 range 230.9.9.0 230.9.9.0 IGMP Profile 4 permit range 229.9.9.0 229.255.255.255

This is an example of the show running-config privileged EXEC command when an interface is specified with IGMP maximum groups configured and IGMP profile 4 has been applied to the interface:

Switch# show running-config interface fastethernet2/12 Building configuration... Current configuration : 123 bytes ! interface FastEthernet2/12 no ip address shutdown snmp trap link-status ip igmp max-groups 25 ip igmp filter 4 end

Page 579 of the Cisco Systems 4500 user manual — About MLD Snooping
Page 579 · click to enlarge
Page 579

C H A P T E R

Configuring IPv6 MLD Snooping

Use Multicast Listener Discovery (MLD) snooping to enable efficient distribution of IP version 6 (IPv6) multicast data to clients and routers in a switched network on the Catalyst 4500 series switch.

This chapter includes these sections:

  • About MLD Snooping, page 24-1
  • Configuring IPv6 MLD Snooping, page 24-5
  • Displaying MLD Snooping Information, page 24-11

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About MLD Snooping

In IP version 4 (IPv4), Layer 2 switches can use Internet Group Management Protocol (IGMP) snooping to limit the flooding of multicast traffic by dynamically configuring Layer 2 interfaces so that multicast traffic is forwarded to only those interfaces associated with IP multicast devices. In IPv6, MLD snooping performs a similar function. With MLD snooping, IPv6 multicast data is selectively forwarded to a list of ports that want to receive the data, instead of being flooded to all ports in a VLAN. This list is constructed by snooping IPv6 multicast control packets.

Page 580 of the Cisco Systems 4500 user manual — MLD Messages
Page 580 · click to enlarge
Page 580

Chapter 24 Configuring IPv6 MLD Snooping About MLD Snooping

MLD is a protocol used by IPv6 multicast routers to discover the presence of multicast listeners (nodes that want to receive IPv6 multicast packets) on its directly attached links and to discover which multicast packets are of interest to neighboring nodes. MLD is derived from IGMP; MLD version 1 (MLDv1) is equivalent to IGMPv2 and MLD version 2 (MLDv2) is equivalent to IGMPv3. MLD is a subprotocol of Internet Control Message Protocol version 6 (ICMPv6), and MLD messages are a subset of ICMPv6 messages, identified in IPv6 packets by a preceding Next Header value of 58.

The switch supports two versions of MLD snooping:

  • MLDv1 snooping detects MLDv1 control packets and sets up traffic bridging based on IPv6 destination multicast addresses.
  • MLDv2 basic snooping (MBSS) uses MLDv2 control packets to set up traffic forwarding based on IPv6 destination multicast addresses.

The switch can snoop on both MLDv1 and MLDv2 protocol packets and bridge IPv6 multicast data based on destination IPv6 multicast addresses.

MLD snooping can be enabled or disabled globally or per-VLAN. When MLD snooping is enabled, a per-VLAN IPv6 multicast MAC address table is constructed in software and a per-VLAN IPv6 multicast address table is constructed in software and hardware. The switch then performs IPv6 multicast-address based bridging in hardware.

These sections describe some parameters of IPv6 MLD snooping:

  • MLD Messages, page 24-2
  • MLD Queries, page 24-3
  • Multicast Client Aging, page 24-3
  • Multicast Router Discovery, page 24-3
  • MLD Reports, page 24-4
  • MLD Done Messages and Immediate-Leave, page 24-4
  • Topology Change Notification Processing, page 24-4

MLD Messages

MLDv1 supports three types of messages:

  • Listener Queries are the equivalent of IGMPv2 queries and are either General Queries or Multicast-Address-Specific Queries (MASQs).
  • Multicast Listener Reports are the equivalent of IGMPv2 reports.
  • Multicast Listener Done messages are the equivalent of IGMPv2 leave messages.

MLDv2 supports MLDv2 queries and reports, as well as MLDv1 Report and Done messages.

Message timers and state transitions resulting from messages being sent or received are the same as those of IGMPv2 messages. MLD messages that do not have valid link-local IPv6 source addresses are ignored by MLD routers and switches.

Page 581 of the Cisco Systems 4500 user manual — Multicast Router Discovery
Page 581 · click to enlarge
Page 581

Chapter 24 Configuring IPv6 MLD Snooping

MLD Queries

The switch sends out MLD queries, constructs an IPv6 multicast address database, and generates MLD group-specific and MLD group-and-source-specific queries in response to MLD Done messages. The switch also supports report suppression, report proxying, Immediate-Leave functionality, and static IPv6 multicast MAC-address configuration.

When MLD snooping is disabled, all MLD queries are flooded in the ingress VLAN.

When MLD snooping is enabled, received MLD queries are flooded in the ingress VLAN, and a copy of the query is sent to the CPU for processing. From the received query, MLD snooping builds the IPv6 multicast address database. It detects multicast router ports, maintains timers, sets report response time, learns the querier IP source address for the VLAN, learns the querier port in the VLAN, and maintains multicast-address aging.

When a group exists in the MLD snooping database, the switch responds to a group-specific query by sending an MLDv1 report. When the group is unknown, the group-specific query is flooded to the ingress VLAN.

When a host wants to leave a multicast group, it can send out an MLD Done message (equivalent to IGMP Leave message). When the switch receives an MLDv1 Done message, if Immediate- Leave is not enabled, the switch sends an MASQ to the port from which the message was received to determine if other devices connected to the port should remain in the multicast group.

Multicast Client Aging

You can configure port membership removal from addresses based on the number of queries. A port is removed from membership to an address only when there are no reports to the address on the port for the configured number of queries. The default number is 2.

Multicast Router Discovery

MLD snooping performs multicast router discovery with these characteristics:

  • Ports configured by a user never age out.
  • Dynamic port learning results from MLDv1 snooping queries and IPv6 PIMv2 packets.
  • If multiple routers exist on the same Layer 2 interface, MLD snooping tracks a single multicast router on the port (the router that most recently sent a router control packet).
  • Dynamic multicast router port aging is based on a default timer of 5 minutes; the multicast router is deleted from the router port list if no control packet is received on the port for 5 minutes.
  • IPv6 multicast router discovery only takes place when MLD snooping is enabled on the switch.
  • Received IPv6 multicast router control packets are always flooded to the ingress VLAN, whether MLD snooping is enabled on the switch.
  • After the discovery of the first IPv6 multicast router port, unknown IPv6 multicast data is forwarded only to the discovered router ports (before that time, all IPv6 multicast data is flooded to the ingress VLAN).

About MLD Snooping

Page 582 of the Cisco Systems 4500 user manual — Topology Change Notification Processing
Page 582 · click to enlarge
Page 582

Chapter 24 Configuring IPv6 MLD Snooping About MLD Snooping

MLD Reports

The processing of MLDv1 join messages is essentially the same as with IGMPv2. When no IPv6 multicast routers are detected in a VLAN, reports are not processed or forwarded from the switch. When IPv6 multicast routers are detected and an MLDv1 report is received, an IPv6 multicast group address and an IPv6 multicast MAC address are entered in the VLAN MLD database. All IPv6 multicast traffic to the group within the VLAN is then forwarded using this address. When MLD snooping is disabled, reports are flooded in the ingress VLAN.

When MLD snooping is enabled, MLD report suppression, called listener message suppression, is automatically enabled. With report suppression, the switch forwards the first MLDv1 report received by a group to IPv6 multicast routers; subsequent reports for the group are not sent to the routers. When MLD snooping is disabled, report suppression is disabled, and all MLDv1 reports are flooded to the ingress VLAN.

The switch also supports MLDv1 proxy reporting. When an MLDv1 MASQ is received, the switch responds with MLDv1 reports for the address on which the query arrived if the group exists in the switch on another port and if the port on which the query arrived is not the last member port for the address.

MLD Done Messages and Immediate-Leave

When the Immediate-Leave feature is enabled and a host sends an MLDv1 Done message (equivalent to an IGMP leave message), the port on which the Done message was received is immediately deleted from the group.You enable Immediate-Leave on VLANs and (as with IGMP snooping), you should only use the feature on VLANs where a single host is connected to the port. If the port was the last member of a group, the group is also deleted, and the leave information is forwarded to the detected IPv6 multicast routers.

When Immediate Leave is not enabled in a VLAN (the case when multiple clients for a group exist on the same port) and a Done message is received on a port, an MASQ is generated on that port. The user can control when a port membership is removed for an existing address in terms of the number of MASQs. A port is removed from membership to an address when there are no MLDv1 reports to the address on the port for the configured number of queries.

The number of MASQs generated is configured by using the ipv6 mld snooping last-listener-query count global configuration command. The default number is 2.

The MASQ is sent to the IPv6 multicast address for which the Done message was sent. If no reports are sent to the IPv6 multicast address specified in the MASQ during the switch maximum response time, the port on which the MASQ was sent is deleted from the IPv6 multicast address database. The maximum response time is the time configured by using the ipv6 mld snooping last-listener-query-interval global configuration command. If the deleted port is the last member of the multicast address, the multicast address is also deleted, and the switch sends the address leave information to all detected multicast routers.

Topology Change Notification Processing

When topology change notification (TCN) solicitation is enabled by using the ipv6 mld snooping tcn query solicit global configuration command, MLDv1 snooping sets the VLAN to flood all IPv6 multicast traffic with a configured number of MLDv1 queries before it begins sending multicast data only to selected ports. You set this value by using the ipv6 mld snooping tcn flood query count global

Page 583 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 583 · click to enlarge
Page 583

Chapter 24 Configuring IPv6 MLD Snooping

Configuring IPv6 MLD Snooping

configuration command. The default is to send two queries. The switch also generates MLDv1 global Done messages with valid link-local IPv6 source addresses when the switch becomes the STP root in the VLAN or when it is configured by the user. This process is similar to that in IGMP snooping.

Configuring IPv6 MLD Snooping

These sections describe how to configure IPv6 MLD snooping:

  • Default MLD Snooping Configuration, page 24-5
  • MLD Snooping Configuration Guidelines, page 24-6
  • Enabling or Disabling MLD Snooping, page 24-6
  • Configuring a Static Multicast Group, page 24-7
  • Configuring a Multicast Router Port, page 24-7
  • Enabling MLD Immediate Leave, page 24-8
  • Configuring MLD Snooping Queries, page 24-9
  • Disabling MLD Listener Message Suppression, page 24-10

Default MLD Snooping Configuration

Table 24-1 shows the default MLD snooping configuration.

Table 24-1 Default MLD Snooping Configuration

Feature Default Setting

MLD snooping (Global) Disabled.

MLD snooping (per VLAN) Enabled. MLD snooping must be globally enabled for VLAN MLD snooping to take place.

IPv6 Multicast addresses None configured.

IPv6 Multicast router ports None configured.

MLD snooping Immediate Leave Disabled.

MLD snooping robustness variable Global: 2; per-VLAN: 0.

Last listener query count Global: 2; per-VLAN: 0.

Last listener query interval Global: 1000 (1 second); VLAN: 0.

TCN query solicit Disabled.

TCN query count 2.

MLD listener suppression Disabled.

Page 584 of the Cisco Systems 4500 user manual — Enabling or Disabling MLD Snooping
Page 584 · click to enlarge
Page 584

Chapter 24 Configuring IPv6 MLD Snooping Configuring IPv6 MLD Snooping

MLD Snooping Configuration Guidelines

When configuring MLD snooping, consider these guidelines:

  • You can configure MLD snooping characteristics at any time, but you must globally enable MLD snooping by using the ipv6 mld snooping global configuration command for the configuration to take effect.
  • MLD snooping and IGMP snooping act independently of each other. You can enable both features at the same time on the switch. The total number of IPv4 and IPv6 multicast groups entries that can coexist on the Catalyst 4500 series switch is limited to 16384.
  • The Supervisor Engine 6-E with 512 MB of memory supports about 11000 MLD Snooping multicast groups. A Supervisor Engine 6-E with 1 GB memory supports 16384 MLD Snooping multicast groups.

Enabling or Disabling MLD Snooping

By default, IPv6 MLD snooping is globally disabled on the switch and enabled on all VLANs. When MLD snooping is globally disabled, it is also disabled on all VLANs. When you globally enable MLD snooping, the VLAN configuration overrides the global configuration. MLD snooping is enabled only on VLAN interfaces in the default state (enabled).

You can enable and disable MLD snooping on a per-VLAN basis, but if you globally disable MLD snooping, it is disabled in all VLANs. If global snooping is enabled, you can enable or disable VLAN snooping.

To globally enable MLD snooping on the switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ipv6 mld snooping Globally enables MLD snooping on the switch.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To globally disable MLD snooping on the switch, use the no ipv6 mld snooping global configuration command.

To enable MLD snooping on a VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ipv6 mld snooping Globally enables MLD snooping on the switch.

Step 3 Switch(config)# ipv6 mld snooping vlan vlan-id

Enables MLD snooping on the VLAN. The VLAN ID range is 1 to 1001 and 1006 to 4094.

Page 585 of the Cisco Systems 4500 user manual — Configuring a Multicast Router Port
Page 585 · click to enlarge
Page 585

Chapter 24 Configuring IPv6 MLD Snooping

Configuring IPv6 MLD Snooping

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable MLD snooping on a VLAN interface, use the no ipv6 mld snooping vlan vlan-id global configuration command for the specified VLAN number.

Configuring a Static Multicast Group

Hosts or Layer 2 ports normally join multicast groups dynamically, but you can also statically configure an IPv6 multicast address and member ports for a VLAN.

To add a Layer 2 port as a member of a multicast group, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode

Step 2 Switch(config)# ipv6 mld snooping vlan vlan-id static ipv6_multicast_address interface interface-id

Statically configures a multicast group with a Layer 2 port as a member of a multicast group:

  • vlan-id is the multicast group VLAN ID. The VLAN ID range is 1 to 1001 and 1006 to 4094.
  • ipv6_multicast_address is the 128-bit group IPv6 address. The address must be in the form specified in RFC 2373.
  • interface-id is the member port. It can be a physical interface or a port channel (1 to 64).

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show mac-address-table multicast mld-snooping

Verifies the static member port and the IPv6 address.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To remove a Layer 2 port from the multicast group, use the no ipv6 mld snooping vlan vlan-id static mac-address interface interface-id global configuration command. If all member ports are removed from a group, the group is deleted.

This example shows how to statically configure an IPv6 MAC address:

Switch# configure terminal Switch(config)# ipv6 mld snooping vlan 2 static 3333.0000.0003 interface gigabitethernet1/1 Switch(config)# end

Configuring a Multicast Router Port

Although MLD snooping learns about router ports through MLD queries and PIMv6 queries, you can also use the command-line interface (CLI) to add a multicast router port to a VLAN. To add a multicast router port (add a static connection to a multicast router), use the ipv6 mld snooping vlan mrouter global configuration command on the switch.

Page 586 of the Cisco Systems 4500 user manual — Enabling MLD Immediate Leave
Page 586 · click to enlarge
Page 586

Chapter 24 Configuring IPv6 MLD Snooping Configuring IPv6 MLD Snooping

To add a multicast router port to a VLAN, follow these steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ipv6 mld snooping vlan vlan-id mrouter interface interface-id

Specifies the multicast router VLAN ID, and specify the interface to the multicast router.

  • The VLAN ID range is 1 to 1001 and 1006 to 4094.
  • The interface can be a physical interface or a port channel. The port-channel range is 1 to 64.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show ipv6 mld snooping mrouter [vlan vlan-id]

Verifies that IPv6 MLD snooping is enabled on the VLAN interface.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To remove a multicast router port from the VLAN, use the no ipv6 mld snooping vlan vlan-id mrouter interface interface-id global configuration command.

This example shows how to add a multicast router port to VLAN 200:

Switch# configure terminal Switch(config)# ipv6 mld snooping vlan 200 mrouter interface gigabitethernet1/0/2 Switch(config)# exit

Enabling MLD Immediate Leave

When you enable MLDv1 Immediate Leave, the switch immediately removes a port from a multicast group when it detects an MLD Done message on that port. You should only use the Immediate Leave feature when there is a single receiver present on every port in the VLAN. When multiple clients exist for a multicast group on the same port, do not enable Immediate-Leave in a VLAN.

To enable MLDv1 Immediate Leave, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ipv6 mld snooping vlan vlan-id immediate-leave

Enables MLD Immediate Leave on the VLAN interface.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show ipv6 mld snooping vlan vlan-id

Verifies that Immediate Leave is enabled on the VLAN interface.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 587 of the Cisco Systems 4500 user manual — Configuring MLD Snooping Queries
Page 587 · click to enlarge
Page 587

Chapter 24 Configuring IPv6 MLD Snooping

Configuring IPv6 MLD Snooping

To disable MLD Immediate Leave on a VLAN, use the no ipv6 mld snooping vlan vlan-id immediate-leave global configuration command.

This example shows how to enable MLD Immediate Leave on VLAN 130:

Switch# configure terminal Switch(config)# ipv6 mld snooping vlan 130 immediate-leave Switch(config)# exit

Configuring MLD Snooping Queries

When Immediate Leave is not enabled and a port receives an MLD Done message, the switch generates MASQs on the port and sends them to the IPv6 multicast address for which the Done message was sent. You can optionally configure the number of MASQs that are sent and the length of time the switch waits for a response before deleting the port from the multicast group.

To configure MLD snooping query characteristics for the switch or for a VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ipv6 mld snooping robustness-variable value

(Optional) Sets the number of queries that are sent before the switch deletes a listener (port) that does not respond to a general query. The range is 1 to 3; the default is 2.

Step 3 Switch(config)# ipv6 mld snooping vlan vlan-id robustness-variable value

(Optional) Sets the robustness variable on a VLAN basis, which determines the number of general queries that MLD snooping sends before aging out a multicast address when there is no MLD report response. The range is 1 to 3; the default is 0. When set to 0, the number used is the global robustness variable value.

Step 4 Switch(config)# ipv6 mld snooping last-listener-query-count count

(Optional) Sets the number of MASQs that the switch sends before aging out an MLD client. The range is 1 to 7; the default is 2. The queries are sent 1 second apart.

Step 5 Switch(config)# ipv6 mld snooping vlan vlan-id last-listener-query-count count

(Optional) Sets the last-listener query count on a VLAN basis. This value overrides the value configured globally. The range is 1 to 7; the default is 0. When set to 0, the global count value is used. Queries are sent 1 second apart.

Step 6 Switch(config)# ipv6 mld snooping last-listener-query-interval interval

(Optional) Sets the maximum response time that the switch waits after sending out a MASQ before deleting a port from the multicast group. The range is 100 to 32,768 thousands of a second. The default is 1000 (1 second).

Step 7 Switch(config)# ipv6 mld snooping vlan vlan-id last-listener-query-interval interval

(Optional) Sets the last-listener query interval on a VLAN basis. This value overrides the value configured globally. The range is 0 to 32,768 thousands of a second. The default is 0. When set to 0, the global last-listener query interval is used.

Step 8 Switch(config)# ipv6 mld snooping tcn query solicit

(Optional) Enables topology change notification (TCN) solicitation, which means that VLANs flood all IPv6 multicast traffic for the configured number of queries before sending multicast data to only those ports requesting to receive it. The default is for TCN to be disabled.

Step 9 Switch(config)# ipv6 mld snooping tcn flood query count count

(Optional) When TCN is enabled, specifies the number of TCN queries to be sent. The range is from 1 to 10; the default is 2.

Page 588 of the Cisco Systems 4500 user manual — Disabling MLD Listener Message Suppression
Page 588 · click to enlarge
Page 588

Chapter 24 Configuring IPv6 MLD Snooping Configuring IPv6 MLD Snooping

Step 10 Switch(config)# end Returns to privileged EXEC mode.

Step 11 Switch# show ipv6 mld snooping querier [vlan vlan-id]

(Optional) Verifies that the MLD snooping querier information for the switch or for the VLAN.

Step 12 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to set the MLD snooping global robustness variable to 3:

Switch# configure terminal Switch(config)# ipv6 mld snooping robustness-variable 3 Switch(config)# exit

This example shows how to set the MLD snooping last-listener query count for a VLAN to 3:

Switch# configure terminal Switch(config)# ipv6 mld snooping vlan 200 last-listener-query-count 3 Switch(config)# exit

This example shows how to set the MLD snooping last-listener query interval (maximum response time) to 2000 (2 seconds):

Switch# configure terminal Switch(config)# ipv6 mld snooping last-listener-query-interval 2000 Switch(config)# exit

Disabling MLD Listener Message Suppression

MLD snooping listener message suppression is enabled by default. When it is enabled, the switch forwards only one MLD report per multicast router query. When message suppression is disabled, multiple MLD reports could be forwarded to the multicast routers.

To disable MLD listener message suppression, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no ipv6 mld snooping listener-message-suppression

Disables MLD message suppression.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show ipv6 mld snooping Verifies that IPv6 MLD snooping report suppression is disabled.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To reenable MLD message suppression, use the ipv6 mld snooping listener-message-suppression global configuration command.

Page 589 of the Cisco Systems 4500 user manual — Displaying MLD Snooping Information
Page 589 · click to enlarge
Page 589

Chapter 24 Configuring IPv6 MLD Snooping

Displaying MLD Snooping Information

Displaying MLD Snooping Information

You can display MLD snooping information for dynamically learned and statically configured router ports and VLAN interfaces. You can also display MAC address multicast entries for a VLAN configured for MLD snooping.

To display MLD snooping information, use one or more of the privileged EXEC commands in Table 24-2.

Table 24-2 Commands for Displaying MLD Snooping Information

show ipv6 mld snooping [vlan vlan-id] Displays the MLD snooping configuration information for all VLANs on the switch or for a specified VLAN.

(Optional) Enter vlan vlan-id to display information for a single VLAN. The VLAN ID range is 1 to 1001 and 1006 to 4094.

show ipv6 mld snooping mrouter [vlan vlan-id]

Displays information on dynamically learned and manually configured multicast router interfaces. When you enable MLD snooping, the switch automatically learns the interface to which a multicast router is connected. These are dynamically learned interfaces.

(Optional) Enter vlan vlan-id to display information for a single VLAN. The VLAN ID range is 1 to 1001 and 1006 to 4094.

show ipv6 mld snooping querier [vlan vlan-id]

Displays information about the IPv6 address and incoming port for the most-recently received MLD query messages in the VLAN.

(Optional) Enter vlan vlan-id to display information for a single VLAN. The VLAN ID range is 1 to 1001 and 1006 to 4094.

Page 590 of the Cisco Systems 4500 user manual — Configuring IPv6 MLD Snooping
Page 590 · click to enlarge
Page 590

Chapter 24 Configuring IPv6 MLD Snooping Displaying MLD Snooping Information

Page 591 of the Cisco Systems 4500 user manual — C H A P T E R
Page 591 · click to enlarge
Page 591

C H A P T E R

Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Virtual private networks (VPNs) provide enterprise-scale connectivity on a shared infrastructure, often Ethernet-based, with the same security, prioritization, reliability, and manageability requirements of private networks. Tunneling is a feature designed for service providers who carry traffic of multiple customers across their networks and who are required to maintain the VLAN and Layer 2 protocol configurations of each customer without impacting the traffic of other customers. This chapter describes how to configure Catalyst 4500 series switch 802.1Q, Layer 2 protocol tunneling, and VLAN mapping (or VLAN ID translation) on the Catalyst 4500 series switch.

This chapter contains these sections:

  • About 802.1Q Tunneling, page 25-2
  • Configuring 802.1Q Tunneling, page 25-3
  • About VLAN Mapping, page 25-7
  • Configuring VLAN Mapping, page 25-9
  • About Layer 2 Protocol Tunneling, page 25-13
  • Configuring Layer 2 Protocol Tunneling, page 25-15
  • Monitoring and Maintaining Tunneling Status, page 25-19

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 592 of the Cisco Systems 4500 user manual — About 802.1Q Tunneling
Page 592 · click to enlarge
Page 592

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling About 802.1Q Tunneling

About 802.1Q Tunneling

The VLAN ranges required by different customers in the same service provider network might overlap, and customer traffic through the infrastructure might be mixed. Assigning a unique range of VLAN IDs to each customer restricts customer configurations and could easily exceed the VLAN limit (4096) of the 802.1Q specification.

802.1Q tunneling enables service providers to use a single VLAN to support customers who have multiple VLANs, while preserving customer VLAN IDs and keeping traffic in different customer VLANs segregated.

A port configured to support 802.1Q tunneling is called a tunnel port. When you configure tunneling, you assign a tunnel port to a VLAN ID that is dedicated to tunneling. Each customer requires a separate service provider VLAN ID, but that service provider VLAN ID supports VLANs of all the customers.

Customer traffic tagged in the normal way with appropriate VLAN IDs comes from an 802.1Q trunk port on the customer device and into a tunnel port on the service provider edge switch. The link between the customer device and the edge switch is asymmetric because one end is configured as an 802.1Q trunk port, and the other end is configured as a tunnel port. You assign the tunnel port interface to an access VLAN ID that is unique to each customer (Figure 25-1).

Figure 25-1 802.1Q Tunnel Ports in a Service Provider Network

Customer A virtual network VLANs 1 to 100

Packets coming from the customer trunk port into the tunnel port on the service provider edge switch are normally 802.1Q-tagged with the appropriate VLAN ID. When the tagged packets exit the trunk port into the service provider network, they are encapsulated with another layer of an 802.1Q tag (called the metro tag) that contains the VLAN ID that is unique to the customer. The original customer 802.1Q tag is preserved in the encapsulated packet. Packets entering the service provider network are double-tagged, with the metro tag containing the customer’s access VLAN ID, and the inner VLAN ID being that of the incoming traffic.

When the double-tagged packet enters another trunk port in a service provider core switch, the metro tag is stripped as the switch processes the packet. When the packet exits another trunk port on the same core switch, the same metro tag is again added to the packet. Figure 25-2 shows the tag structures of the Ethernet packets starting with the original, or normal, frame.

Page 593 of the Cisco Systems 4500 user manual — 802.1Q Tunneling Configuration Guidelines
Page 593 · click to enlarge
Page 593

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Configuring 802.1Q Tunneling

Figure 25-2 Original (Normal), 802.1Q, and Double-Tagged Ethernet Packet Formats

A B

HA (IA, MA)

HB (IB, MB)

HC (IC, MC)

When the packet enters the trunk port of the service provider egress switch, the metro tag is again stripped as the switch processes the packet. However, the metro tag is not added when the packet is sent out the tunnel port on the edge switch into the customer network. The packet is sent as a normal 802.1Q-tagged frame to preserve the original VLAN numbers in the customer network.

All packets entering the service provider network through a tunnel port on an edge switch are treated as untagged packets, whether they are untagged or already tagged with 802.1Q headers. The packets are encapsulated with the metro tag VLAN ID (set to the access VLAN of the tunnel port) when they are sent through the service provider network on an 802.1Q trunk port. The priority field on the metro tag is set to the interface class of service (CoS) priority configured on the tunnel port. (The default is zero if none is configured.)

In Figure 25-1, Customer A was assigned VLAN 30, and Customer B was assigned VLAN 40. Packets entering the edge-switch tunnel ports with 802.1Q tags are double-tagged when they enter the service provider network, with the metro tag containing VLAN ID 30 or 40, appropriately, and the inner tag containing the original customer VLAN number, for example, VLAN 100. Even if Customers A and B both have VLAN 100 in their networks, the traffic remains segregated within the service provider network because the metro tag is different. Each customer controls its own VLAN numbering space, which is independent of the VLAN numbering space used by other customers and the VLAN numbering space used by the service provider network.

Configuring 802.1Q Tunneling

These sections describe 802.1Q tunneling configuration:

  • 802.1Q Tunneling Configuration Guidelines, page 25-3
  • 802.1Q Tunneling and Other Features, page 25-5
  • Configuring an 802.1Q Tunneling Port, page 25-6

802.1Q Tunneling Configuration Guidelines

When you configure 802.1Q tunneling, you should always use asymmetrical links for traffic going through a tunnel and should dedicate one VLAN for each tunnel. You should also be aware of configuration requirements for native VLANs and maximum transmission units (MTUs). For more information about MTUs, see the “System MTU” section on page 25-5.

Page 594 of the Cisco Systems 4500 user manual — Native VLANs
Page 594 · click to enlarge
Page 594

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Configuring 802.1Q Tunneling

Native VLANs

When configuring 802.1Q tunneling on an edge switch, you must use 802.1Q trunk ports for sending packets into the service provider network. However, packets going through the core of the service provider network can be carried through 802.1Q trunks, ISL trunks, or nontrunking links. When 802.1Q trunks are used in these core switches, the native VLANs of the 802.1Q trunks must not match any native VLAN of the nontrunking (tunneling) port on the same switch because traffic on the native VLAN is not tagged on the 802.1Q sending trunk port (Figure 25-3).

VLAN 40 is configured as the native VLAN for the 802.1Q trunk port from Customer A at the ingress edge switch in the service provider network (Switch 2). Switch 1 of Customer A sends a tagged packet on VLAN 30 to the ingress tunnel port of Switch 2 in the service provider network, which belongs to access VLAN 40. Because the access VLAN of the tunnel port (VLAN 40) is the same as the native VLAN of the edge-switch trunk port (VLAN 40), the metro tag is not added to tagged packets received from the tunnel port. The packet carries only the VLAN 30 tag through the service provider network to the trunk port of the egress-edge switch (Switch 3) and is misdirected through the egress switch tunnel port to Customer B.

These are some ways to solve this problem:

  • Use ISL trunks between core switches in the service provider network. Although customer interfaces connected to edge switches must be 802.1Q trunks, we recommend using ISL trunks for connecting switches in the core layer.
  • Use the switchport trunk native vlan tag per-port command and the vlan dot1q tag native global configuration command to configure the edge switch so that all packets going out an 802.1Q trunk, including the native VLAN, are tagged. If the switch is configured to tag native VLAN packets on all 802.1Q trunks, the switch ensures that all packets exiting the trunk are tagged and prevents the reception of untagged packets on the trunk port.
  • Ensure that the native VLAN ID on the edge-switch trunk port is not within the customer VLAN range. For example, if the trunk port carries traffic of VLANs 100 to 200, assign the native VLAN a number outside that range.
Page 595 of the Cisco Systems 4500 user manual — 802.1Q Tunneling and Other Features
Page 595 · click to enlarge
Page 595

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Configuring 802.1Q Tunneling

Figure 25-3 Potential Problem with 802.1Q Tunneling and Native VLANs

Switch 4 Customer A VLANs 30-40 Native VLAN 40

Switch 2 Switch 3

VLAN 40

Q

Tunnel port Access VLAN 40

Tunnel port Access VLAN 30

Switch 1 Customer A

802.1Q trunk port VLANs 30-40 Native VLAN 40

Switch 5 Customer B

Trunk Asymmetric link Correct path for traffic Incorrect path for traffic due to misconfiguration of native VLAN by sending port on Switch 2 Q = 802.1Q trunk ports

System MTU

The default system MTU for traffic on the Catalyst 4500 series switch is 1500 bytes. You can configure the switch to support larger frames by using the system mtu global configuration command. Because the 802.1Q tunneling feature increases the frame size by 4 bytes when the metro tag is added, you must configure all switches in the service provider network to be able to process larger frames by increasing the switch system MTU size to at least 1504 bytes. The maximum allowable system MTU for Catalyst 4500 Gigabit Ethernet switches is 9198 bytes; the maximum system MTU for Fast Ethernet switches is 1552 bytes.

802.1Q Tunneling and Other Features

Although 802.1Q tunneling works well for Layer 2 packet switching, incompatibilities exist between some Layer 2 features and Layer 3 switching:

  • A tunnel port cannot be a routed port.
  • IP routing is not supported on a VLAN that includes 802.1Q ports. Packets received from a tunnel port are forwarded based only on Layer 2 information. If routing is enabled on a switch virtual interface (SVI) that includes tunnel ports, untagged IP packets received from the tunnel port are recognized and routed by the switch. Customers can access the Internet through the native VLAN. If this access is not needed, you should not configure SVIs on VLANs that include tunnel ports.
  • Tunnel ports do not support IP access control lists (ACLs).
  • Layer 3 quality of service (QoS) ACLs and other QoS features related to Layer 3 information are not supported on tunnel ports. MAC-based QoS is supported on tunnel ports.
Show 9 more labels / short text on this page
Tag not added · Tag removed · for VLAN 40 · Service provider · Tunnel port · VLANs 5-50 · Packet tagged · for VLAN 30 · Native VLAN 40
Page 596 of the Cisco Systems 4500 user manual — Configuring an 802.1Q Tunneling Port
Page 596 · click to enlarge
Page 596

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Configuring 802.1Q Tunneling

  • EtherChannel port groups are compatible with tunnel ports as long as the 802.1Q configuration is consistent within an EtherChannel port group.
  • Port Aggregation Protocol (PAgP), Link Aggregation Control Protocol (LACP), and UniDirectional Link Detection (UDLD) are supported on 802.1Q tunnel ports.
  • Dynamic Trunking Protocol (DTP) is not compatible with 802.1Q tunneling because you must manually configure asymmetric links with tunnel ports and trunk ports.
  • Loopback detection is supported on 802.1Q tunnel ports.
  • When a port is configured as an 802.1Q tunnel port, spanning-tree bridge protocol data unit (BPDU) filtering is automatically enabled on the interface. Cisco Discovery Protocol (CDP) is automatically disabled on the interface.

Configuring an 802.1Q Tunneling Port

To configure a port as an 802.1Q tunnel port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and the interface to be configured as a tunnel port. This should be the edge port in the service provider network that connects to the customer switch. Valid interfaces include physical interfaces and port-channel logical interfaces (port channels 1 to 64).

Step 3 Switch(config-if)# switchport access vlan vlan-id

Specifies the default VLAN, which is used if the interface stops trunking. This VLAN ID is specific to the particular customer.

Step 4 Switch(config-if)# switchport mode dot1q-tunnel

Sets the interface as an 802.1Q tunnel port.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# vlan dot1q tag native

(Optional) Sets the switch to enable tagging of native VLAN packets on all 802.1Q trunk ports. When not set, and a customer VLAN ID is the same as the native VLAN, the trunk port does not apply a metro tag, and packets could be sent to the wrong destination.

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Step 8 Switch# show dot1q-tunnel Displays the tunnel ports on the switch.

Step 9 Switch# show vlan dot1q tag native Displays 802.1Q native-VLAN tagging status.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no vlan dot1q tag native global command and the no switchport mode dot1q-tunnel interface configuration command to return the port to the default state of dynamic auto. Use the no vlan dot1q tag native global configuration command to disable tagging of native VLAN packets.

This example shows how to configure an interface as a tunnel port, enable tagging of native VLAN packets, and verify the configuration. In this configuration, the VLAN ID for the customer connected to Gigabit Ethernet interface 2/7 is VLAN 22.

Switch(config)# interface gigabitethernet2/7 Switch(config-if)# switchport access vlan 22 % Access VLAN does not exist. Creating vlan 22 Switch(config-if)# switchport mode dot1q-tunnel

Page 597 of the Cisco Systems 4500 user manual — Deployment Example
Page 597 · click to enlarge
Page 597

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Switch(config-if)# exit Switch(config)# vlan dot1q tag native Switch(config)# end Switch# show dot1q-tunnel interface gigabitethernet2/7 Port LAN Port(s) Gi2/7 Switch# show vlan dot1q tag native dot1q native vlan tagging is enabled globally

About VLAN Mapping

In a typical deployment of VLAN mapping, you want the service provider to provide a transparent switching infrastructure that treats customers’ switches at the remote location as a part of the local site. This allows customers to use the same VLAN ID space and run Layer 2 control protocols seamlessly across the provider network. In such scenarios, we recommend that service providers do not impose their VLAN IDs on their customers.

One way to establish translated VLAN IDs (S-VLANs) is to map customer VLANs to service-provider VLANs (called VLAN ID translation) on trunk ports connected to a customer network. Packets entering the port are mapped to a service provider VLAN (S-VLAN) based on the port number and the packet’s original customer VLAN-ID (C-VLAN).

Service providers’s internal assignments might conflict with a customer’s VLAN. To isolate customer traffic, a service provider could decide to map a specific VLAN into another one while the traffic is in its cloud.

Deployment Example

In Figure 25-4, the service provider provides Layer 2 VPN service to two different customers, A and B. The service provider separates the data and control traffic between the two customers and from the providers’ own control traffic. The service provider network must also be transparent to the customer edge devices.

About VLAN Mapping

Page 598 of the Cisco Systems 4500 user manual — PORTS
Page 598 · click to enlarge
Page 598

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling About VLAN Mapping

Figure 25-4 Layer 2 VPN Deployment

VLAN translation configured TRUNK

VLAN translation configured TRUNK

PORTS

PORTS

All forwarding operations on the Catalyst 4500 series switch are performed using S-VLAN and not C-VLAN information because the VLAN ID is mapped to the S-VLAN on ingress.

On an interface configured for VLAN mapping, the specified C-VLAN packets are mapped to the specified S-VLAN when they enter the port. Symmetrical mapping to the customer C-VLAN occurs when packets exit the port.

The switch supports these types of VLAN mapping on UNI trunk ports:

  • One-to-one VLAN mapping occurs at the ingress and egress of the port and maps the customer C-VLAN ID in the 802.1Q tag to the service-provider S-VLAN ID. You can also specify that packets with all other Vlan Ids are dropped. See the “One-to-One Mapping” section on page 25-11 .
  • Traditional 802.1Q tunneling (QinQ) performs all-to-one bundling of C-VLAN IDs to a single S-VLAN ID for the port. The S-VLAN is added to the incoming unmodified C-VLAN. You can configure the UNI as an 802.1Q tunnel port for traditional QinQ, or you can configure selective QinQ on trunk ports for a more flexible implementation. Mapping takes place at ingress and egress of the port. All packets on the port are bundled into the specified S-VLAN. See the “Traditional Q-in-Q on a Trunk Port” section on page 25-12 .
  • Selective QinQ maps the specified customer VLANs entering the UNI to the specified S-VLAN ID. The S-VLAN is added to the incoming unmodified C-VLAN. You can also specify that traffic carrying all other customer VLAN IDs is dropped. See the “Selective Q-in-Q on a Trunk Port” section on page 25-12 .

For quality of service (QoS), the switch supports flexible mapping between C-CoS or C-DSCP and S-CoS, and maps the inner CoS to the outer CoS for traffic with traditional QinQ or selective QinQ VLAN mapping.

Show 14 more labels / short text on this page
Cat4K Customer A · Cat4K Customer A · edge switch · edge switch · SP Cat4K · SP Cat4K · SP Cat4K · Cat4K Customer B · Cat4K Customer B · edge switch · edge switch · Cat4K Customer B · SP Network · edge switch
Page 599 of the Cisco Systems 4500 user manual — Default VLAN Mapping Configuration
Page 599 · click to enlarge
Page 599

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Mapping Customer VLANs to Service-Provider VLANs

Figure 25-5 shows a topology where a customer uses the same VLANs in multiple sites on different sides of a service-provider network. You map the customer VLAN IDs to service-provider VLAN IDs for packet travel across the service-provider backbone. The customer VLAN IDs are retrieved at the other side of the service-provider backbone for use in the other customer site. Configure the same set of VLAN mappings at a customer-connected port on each side of the service-provider network.

The examples following the configuration steps illustrate how to use one-to-one mapping, traditional QinQ, or selective QinQ to map customer VLANs 1 to 5 to service-provider VLANs.

Figure 25-5 Mapping Customer VLANs

VLAN mapping at customer-connecting ports

Service provider Customer A

Switch A Switch B

Trunk port Trunk port

Configuring VLAN Mapping

  • Default VLAN Mapping Configuration, page 25-9
  • VLAN Mapping Configuration Guidelines, page 25-10
  • Configuring VLAN Mapping, page 25-11

Default VLAN Mapping Configuration

By default, no VLAN mapping is configured.

Show 12 more labels / short text on this page
Configuring VLAN Mapping · Host · VLANs 1-5 · Customer A · VLANs 1-5 · Customer · switches · Customer · switch · Customer A · VLANs 1-5 · Host
Page 600 of the Cisco Systems 4500 user manual — VLAN Mapping Configuration Guidelines
Page 600 · click to enlarge
Page 600

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Configuring VLAN Mapping

VLAN Mapping Configuration Guidelines

Guidelines include the following:

  • Traditional QinQ uses 802.1Q tunnel ports; you configure one-to-one VLAN mapping and selective QinQ on 802.1Q trunk ports.
  • To avoid mixing customer traffic, when you configure traditional Q-in-Q on a trunk port, you should configure the service provider S-VLAN ID as an allowed VLAN on the trunk port.
  • When you configure VLAN mapping on an EtherChannel, the mapping applies to all ports in the port channel.
  • You cannot configure encapsulation replicate on a SPAN destination port if the source port is configured as a tunnel port or has a 1-to-2 mapping configured. Encapsulation replicate is supported with 1-to-1 VLAN mapping.
  • When configuring IEEE 802.1Q tunneling on an edge switch, you must use IEEE 802.1Q trunk ports for sending packets into the service-provider network. However, packets going through the core of the service-provider network can be carried through IEEE 802.1Q trunks, ISL trunks, or nontrunking links. When IEEE 802.1Q trunks are used in these core switches, the native VLANs of the IEEE 802.1Q trunks must not match any native VLAN of the nontrunking (tunneling) port on the same switch. it is because traffic on the native VLAN is not tagged on the IEEE 802.1Q sending trunk port.
  • Ensure that the native VLAN for an IEEE 802.1Q trunk is the same on both ends of the trunk link. If the native VLAN on one end of the trunk is different from the native VLAN on the other end, spanning-tree loops might result.
  • Layer 2 protocol tunneling must be configured for CDP, VTP, LLDP, or your switch detects the SP switches, which is not desirable:

interface GigabitEthernet1/23 switchport mode trunk switchport vlan mapping 1 dot1q-tunnel 311 switchport vlan mapping 31 dot1q-tunnel 311 l2protocol-tunnel cdp l2protocol-tunnel lldp l2protocol-tunnel vtp

  • To process control traffic consistently, either enable Layer 2 protocol tunneling (recommended) or insert a BPDU filter for spanning tree, as follows:

Current configuration : 153 bytes ! interface FastEthernet9/1 switchport trunk native vlan 40 switchport mode trunk switchport vlan mapping 10 20 spanning-tree bpdufilter enable end

  • If you need to merge CVLAN and SVLAN spanning tree topology, you do not need to configure spanning-tree bpdufilter enable .
  • To ensure consistent operation, do not use a native VLAN for translation.
Page 601 of the Cisco Systems 4500 user manual — One-to-One Mapping
Page 601 · click to enlarge
Page 601

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Configuring VLAN Mapping

The following procedures show how to configure each type of VLAN mapping on trunk ports. To verify your configuration, enter either the show interfaces interface-id vlan mapping or the show vlan mapping privileged EXEC command. See the “Monitoring and Maintaining Tunneling Status” section on page 25-19 for the syntax of these commands. For more information about all commands in this section, see the Catalyst 4500 Series Switch Software Command Reference for this release.

The following VLAN mapping types are discussed:

  • One-to-One Mapping, page 25-11
  • Traditional Q-in-Q on a Trunk Port, page 25-12
  • Selective Q-in-Q on a Trunk Port, page 25-12

One-to-One Mapping

To configure one-to-one VLAN mapping to map a customer VLAN ID to a service-provider VLAN ID, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode for the interface connected to the service-provider network. You can enter a physical interface or an EtherChannel port channel.

Step 3 Switch(config-if)# switchport mode trunk

Configures the interface as a trunk port.

Step 4 Switch(config-if)# switchport vlan mapping vlan-id translated-id

Enters the VLAN IDs to be mapped:

  • vlan-id —the customer VLAN ID (C-VLAN) entering the switch from the customer network. The range is from 1 to 4094.
  • translated-id —the assigned service-provider VLAN ID (S-VLAN). The range is from 1 to 4094.

Step 5 Switch# end Returns to privileged EXEC mode.

Step 6 Switch# show vlan mapping Verifies the configuration.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no switchport vlan mapping vlan-id translated-id command to remove the VLAN mapping information. Entering the no switchport vlan mapping all command deletes all mapping configurations.

This example shows how to map VLAN IDs 1 to 5 in the customer network to VLANs 101 to 105 in the service-provider network (Figure 25-5). You configure the same VLAN mapping commands for a port in Switch A and Switch B; the traffic on all other VLAN IDs is dropped.

Switch(config)# interface gigabiethernet0/1 Switch(config-if)# switchport vlan mapping 1 101 Switch(config-if)# switchport vlan mapping 2 102 Switch(config-if)# switchport vlan mapping 3 103

Configuring VLAN Mapping

Page 602 of the Cisco Systems 4500 user manual — Selective Q-in-Q on a Trunk Port
Page 602 · click to enlarge
Page 602

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Configuring VLAN Mapping

Switch(config-if)# switchport vlan mapping 4 104 Switch(config-if)# switchport vlan mapping 4 105 Switch(config-if)# exit

In the previous example, at the ingress of the service-provider network, VLAN IDs 1 to 5 in the customer network are mapped to VLANs 101 to 105, in the service provider network. At the egress of the service provider network, VLANs 101 to 105 in the service provider network are mapped to VLAN IDs 1 to 5, in the customer network.

Traditional Q-in-Q on a Trunk Port

To configure VLAN mapping for traditional Q-in-Q on a trunk port or tunneling by default, perform the following task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode for the interface connected to the service provider network. You can enter a physical interface or an EtherChannel port channel.

Step 3 Switch(config-if)# switchport mode trunk

Configures the interface as a trunk port.

Step 4 Switch(config-if)# switchport trunk allowed vlan vlan-id

Configures the outer VLAN of the service provider network (S-VLAN) to to be allowed on the interface. This should be the same outer VLAN ID entered in the next step.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show interfaces interface-id vlan mapping

Verifies the configuration.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Entering the no switchport vlan mapping all command deletes all mapping configurations.

Selective Q-in-Q on a Trunk Port

To configure VLAN mapping for selective Q-in-Q on a trunk port, perform this task:

Page 603 of the Cisco Systems 4500 user manual — About Layer 2 Protocol Tunneling
Page 603 · click to enlarge
Page 603

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

About Layer 2 Protocol Tunneling

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode for the interface connected to the service provider network. You can enter a physical interface or an EtherChannel port channel.

Step 3 Switch(config-if)# switchport mode trunk

Configure the interface as a trunk port.

Step 4 Switch(config-if)# switchport vlan mapping vlan-id dot1q-tunnel outer vlan-id

Enters the VLAN IDs to be mapped:

  • vlan-id —the customer VLAN ID (C-VLAN) entering the switch from the customer network. The range is from 1 to 4094. You can enter a string of VLAN-IDs.
  • outer-vlan-id —Enter the outer VLAN ID (S-VLAN) of the service provider network. The range is from 1 to 4094.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show interfaces interface-id vlan mapping

Verifies the configuration.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no switchport vlan mapping vlan-id dot1q-tunnel outer vlan-id command to remove the VLAN mapping configuration. Entering the no switchport vlan mapping all command deletes all mapping configurations.

This example shows how to configure selective QinQ mapping on the port so that traffic with a C-VLAN ID of 1 to 5 enters the switch with an S-VLAN ID of 100. The traffic of any other VLAN IDs is dropped.

Switch(config)# interface gigabiethernet0/1 Switch(config-if)# switchport vlan mapping 1-5 dot1q-tunnel 100 Switch(config-if)# exit

About Layer 2 Protocol Tunneling

Customers at different sites connected across a service provider network need to use various Layer 2 protocols to scale their topologies to include all remote and local sites. STP must run properly, and every VLAN should build a proper spanning tree that includes the local site and all remote sites across the service provider network. Cisco Discovery Protocol (CDP) must discover neighboring Cisco devices from local and remote sites. VLAN Trunking Protocol (VTP) must provide consistent VLAN configuration throughout all sites in the customer network.

When protocol tunneling is enabled, edge switches on the inbound side of the service provider network encapsulate Layer 2 protocol packets with a special MAC address and send them across the service provider network. Core switches in the network do not process these packets but forward them as normal packets. Layer 2 protocol data units (PDUs) for CDP, STP, or VTP cross the service provider network and are delivered to customer switches on the outbound side of the service provider network. Identical packets are received by all customer ports on the same VLANs with these results:

  • Users on each of a customer’s sites can properly run STP, and every VLAN can build a correct spanning tree, based on parameters from all sites and not just from the local site.
  • CDP discovers and shows information about the other Cisco devices connected through the service provider network.
Page 604 of the Cisco Systems 4500 user manual — VLAN 30
Page 604 · click to enlarge
Page 604

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling About Layer 2 Protocol Tunneling

  • VTP provides consistent VLAN configuration throughout the customer network, propagating to all switches through the service provider.

Layer 2 protocol tunneling can enabled on trunk, access and tunnel ports. If protocol tunneling is not enabled, remote switches at the receiving end of the service provider network do not receive the PDUs and cannot properly run STP, CDP, and VTP. When protocol tunneling is enabled, Layer 2 protocols within each customer's network are totally separate from those running within the service provider network.

As an example, Customer A in Figure 25-6 has four switches in the same VLAN that are connected through the service provider network. If the network does not tunnel PDUs, switches on the far ends of the network cannot properly run STP, CDP, and VTP. For example, STP for a VLAN on a switch in Customer A’s Site 1 builds a spanning tree on the switches at that site without considering convergence parameters based on Customer A’s switch in Site 2. Figure 25-6 shows one possible spanning tree topology.

Figure 25-6 Layer 2 Protocol Tunneling

Customer A Site 1

VLANs 1 to 100

Customer A Site 2

VLANs 1 to 100

VLAN 30

VLAN 30

VLAN 30

VLAN 40

VLAN 40

Customer B Site 1

Customer B Site 2

VLANs 1 to 200

VLANs 1 to 200

Show 13 more labels / short text on this page
Service provider · Switch 1 · Trunk · Trunk ports · ports · Switch 1 · Switch 3 · Switch 2 · Switch 4 · Trunk ports · Trunk · ports · Trunk Asymmetric link
Page 605 of the Cisco Systems 4500 user manual — Configuring Layer 2 Protocol Tunneling
Page 605 · click to enlarge
Page 605

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Configuring Layer 2 Protocol Tunneling

Figure 25-7 Layer 2 Network Topology without Proper Convergence

Customer A virtual network VLANs 1 to 100

Configuring Layer 2 Protocol Tunneling

You can enable Layer 2 protocol tunneling (by protocol) on access ports, tunnel ports, or trunk ports that are connected to the customer in the edge switches of the service provider network. The service provider edge switches connected to the customer switch perform the tunneling process. Edge-switch tunnel ports or normal trunk ports can be connected to customer 802.1Q trunk ports. Edge-switch access ports are connected to customer access ports.

When the Layer 2 PDUs that entered the service provider inbound edge switch through the tunnel port or the access port exit through its the trunk port into the service provider network, the switch overwrites the customer PDU-destination MAC address with a well-known Cisco proprietary multicast address (01-00-0c-cd-cd-d0). If 802.1Q tunneling is enabled, packets are also double-tagged; the outer tag is the customer metro tag, and the inner tag is the customer’s VLAN tag. The core switches ignore the inner tags and forward the packet to all trunk ports in the same metro VLAN. The edge switches on the outbound side restore the proper Layer 2 protocol and MAC address information and forward the packets to all tunnel or access ports in the same metro VLAN. This section includes these topics. The Layer 2 PDUs remain intact and are delivered across the service provider network to the other side of the customer network.

Figure 25-6 shows Customer A and Customer B in access VLANs 30 and 40. Asymmetric links connect the Customers in Site 1 to edge switches in the service provider network. The Layer 2 PDUs (for example, BPDUs) coming into Switch 2 from Customer B in Site 1 are forwarded to the infrastructure as double-tagged packets with the well-known MAC address as the destination MAC address. These double-tagged packets have the metro VLAN tag of 40, as well as an inner VLAN tag (for example, VLAN 100). When the double-tagged packets enter Switch 4, the metro VLAN tag 40 is removed. The well-known MAC address is replaced with the respective Layer 2 protocol MAC address, and the packet is sent to Customer B on Site 2 as a single-tagged frame in VLAN 100.

You can also enable Layer 2 protocol tunneling on access ports on the edge switch connected to access ports on the customer switch. The encapsulation and de-encapsulation process is the same as described in the previous paragraph, except that the packets are not double-tagged in the service provider network. The single tag is the customer-specific access VLAN tag.

This section contains the following subsections:

  • Default Layer 2 Protocol Tunneling Configuration, page 25-16
Page 606 of the Cisco Systems 4500 user manual — Layer 2 Protocol Tunneling Configuration Guidelines
Page 606 · click to enlarge
Page 606

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Configuring Layer 2 Protocol Tunneling

  • Layer 2 Protocol Tunneling Configuration Guidelines, page 25-16
  • Configuring Layer 2 Tunneling, page 25-17

Default Layer 2 Protocol Tunneling Configuration

Table 25-1 shows the default configuration for Layer 2 protocol tunneling.

Table 25-1 Default Layer 2 Ethernet Interface VLAN Configuration

Feature Default Setting

Layer 2 protocol tunneling Disabled.

Shutdown threshold None set.

Drop threshold None set.

CoS value If a CoS value is configured on the interface for data packets, that value is the default used for Layer 2 PDUs. If none is configured, the default is 5.

Layer 2 Protocol Tunneling Configuration Guidelines

These are some configuration guidelines and operating characteristics of Layer 2 protocol tunneling:

  • The switch supports tunneling of CDP, STP, including multiple STP (MSTP), and VTP. Protocol tunneling is disabled by default but can be enabled for the individual protocols on 802.1Q tunnel ports, access ports or trunk ports.
  • Dynamic Trunking Protocol (DTP) is not compatible with Layer 2 protocol tunneling because you must manually configure asymmetric links with tunnel ports and trunk ports.
  • EtherChannel port groups are compatible with tunnel ports when the 802.1Q configuration is consistent within an EtherChannel port group.
  • If an encapsulated PDU (with the proprietary destination MAC address) is received on a port with Layer 2 tunneling enabled, the port is shut down to prevent loops.
  • The port also shuts down when a configured shutdown threshold for the protocol is reached. You can manually reenable the port (by entering a shutdown and a no shutdown command sequence). If errdisable recovery is enabled, the operation is retried after a specified time interval.
  • Only decapsulated PDUs are forwarded to the customer network. The spanning-tree instance running on the service provider network does not forward BPDUs to Layer 2 protocol tunneling ports. CDP packets are not forwarded from Layer 2 protocol tunneling ports.
  • When protocol tunneling is enabled on an interface, you can set a per-protocol, per-port, shutdown threshold for the PDUs generated by the customer network. If the limit is exceeded, the port shuts down. You can also limit the BPDU rate by using QoS ACLs and policy maps on a Layer 2 protocol tunneling port.
  • When protocol tunneling is enabled on an interface, you can set a per-protocol, per-port, drop threshold for the PDUs generated by the customer network. If the limit is exceeded, the port drops PDUs until the rate at which it receives them is below the drop threshold.
Page 607 of the Cisco Systems 4500 user manual — Configuring Layer 2 Tunneling
Page 607 · click to enlarge
Page 607

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Configuring Layer 2 Protocol Tunneling

  • Because tunneled PDUs (especially STP BPDUs) must be delivered to all remote sites so that the customer virtual network operates properly, you can give PDUs higher priority within the service provider network than data packets received from the same tunnel port. By default, the PDUs use the same CoS value as data packets.
  • The following issue applies when you enable QoS on Layer 2 protocol tunneling packets (not applicable to Supervisor Engine 6-E and 6L-E):

Because of a hardware limitation, supervisor engines cannot police control packets on ports enabled for port security. Because the learning behavior for Layer 2 protocol tunneling source (src) MAC is influenced by configuring protocol tunneling on any switch interface, this limitation for Layer 2 protocol tunneling packets translates into the following: When Layer 2 protocol tunneling is configured on any port in the system, supervisor engines other than 6-E and 6L-E cannot police Layer 2 protocol tunneling packets on a port enabled for port security. Layer 2 protocol tunneling packets are treated as control packets (source MAC not learned) once Layer 2 protocol tunneling is configured for any supported control protocol.

Configuring Layer 2 Tunneling

To configure a port for Layer 2 protocol tunneling, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode, and enter the interface to be configured as a tunnel port. This should be the edge port in the service provider network that connects to the customer switch. Valid interfaces can be physical interfaces and port-channel logical interfaces (port channels 1 to 64).

Step 3 Switch(config-if)# switchport mode access or Switch(config-if)# switchport mode dot1q-tunnel or Switch(config-if)# switchport mode trunk

Configures the interface as an access port, an 802.1Q tunnel port or a trunk port.

Step 4 Switch(config-if)# l2protocol-tunnel [cdp | stp | vtp]

Enables protocol tunneling for the desired protocol. If no keyword is entered, tunneling is enabled for all three Layer 2 protocols.

Step 5 Switch(config-if)# l2protocol-tunnel shutdown-threshold [cdp | stp | vtp] value

(Optional) Configures the threshold for packets-per-second accepted for encapsulation. The interface is disabled if the configured threshold is exceeded. If no protocol option is specified, the threshold applies to each of the tunneled Layer 2 protocol types. The range is 1 to 4096. The default is to have no threshold configured.

Page 608 of the Cisco Systems 4500 user manual — Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling
Page 608 · click to enlarge
Page 608

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Configuring Layer 2 Protocol Tunneling

Step 6 Switch(config-if)# l2protocol-tunnel drop-threshold [cdp | stp | vtp] value

(Optional) Configures the threshold for packets-per-second accepted for encapsulation. The interface drops packets if the configured threshold is exceeded. If no protocol option is specified, the threshold applies to each of the tunneled Layer 2 protocol types. The range is 1 to 4096. The default is to have no threshold configured.

Step 7 Switch(config-if)# exit Returns to global configuration mode.

Step 8 Switch(config)# errdisable recovery cause l2ptguard

(Optional) Configures the recovery method from a Layer 2 maximum-rate error so that the interface is reenabled and can try again. Errdisable recovery is disabled by default; when enabled, the default time interval is 300 seconds.

Step 9 Switch(config)# l2protocol-tunnel cos value

(Optional) Configures the CoS value for all tunneled Layer 2 PDUs. The range is 0 to 7; the default is the default CoS value for the interface. If none is configured, the default is 5.

Step 10 Switch(config)# end Returns to privileged EXEC mode.

Step 11 Switch# show l2protocol Displays the Layer 2 tunnel ports on the switch, including the protocols configured, the thresholds, and the counters.

Step 12 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no l2protocol-tunnel [cdp | stp | vtp] interface configuration command to disable protocol tunneling for one of the Layer 2 protocols or for all three. Use the no l2protocol-tunnel shutdown-threshold [cdp | stp | vtp] and the no l2protocol-tunnel drop-threshold [cdp | stp | vtp] commands to return the shutdown and drop thresholds to the default settings.

This example shows how to configure Layer 2 protocol tunneling on an 802.1Q tunnel port for CDP, STP, and VTP and how to verify the configuration:

Switch(config)# interface FastEthernet2/1 Switch(config-if)# switchport mode dot1q-tunnel Switch(config-if)# l2protocol-tunnel cdp Switch(config-if)# l2protocol-tunnel stp Switch(config-if)# l2protocol-tunnel vtp Switch(config-if)# l2protocol-tunnel shutdown-threshold 1500 Switch(config-if)# l2protocol-tunnel drop-threshold 1000 Switch(config-if)# exit Switch(config)# l2protocol-tunnel cos 7 Switch(config)# end Switch# show l2protocol COS for Encapsulated Packets: 7 Port Protocol Shutdown Drop Encapsulation Decapsulation Drop Threshold Threshold Counter Counter Counter Fa2/11 cdp 1500 1000 2288 2282 0 stp 1500 1000 116 13 0 vtp 1500 1000 3 67 0

Page 609 of the Cisco Systems 4500 user manual — Monitoring and Maintaining Tunneling Status
Page 609 · click to enlarge
Page 609

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Monitoring and Maintaining Tunneling Status

Monitoring and Maintaining Tunneling Status

Table 25-2 shows the commands for monitoring and maintaining 802.1Q and Layer 2 protocol tunneling.

Table 25-2 Commands for Monitoring and Maintaining Tunneling

Switch# clear l2protocol-tunnel counters Clears the protocol counters on Layer 2 protocol tunneling ports.

Switch# show dot1q-tunnel Displays 802.1Q tunnel ports on the switch.

Switch# show dot1q-tunnel interface interface-id

Verifies if a specific interface is a tunnel port.

Switch# show l2protocol-tunnel Displays information about Layer 2 protocol tunneling ports.

Switch# show errdisable recovery Verifies if the recovery timer from a Layer 2 protocol-tunnel error disable state is enabled.

Switch# show l2protocol-tunnel interface interface-id

Displays information about a specific Layer 2 protocol tunneling port.

Switch# show l2protocol-tunnel summary Displays only Layer 2 protocol summary information.

Switch# show vlan dot1q native Displays the status of native VLAN tagging on the switch.

Switch# show spann int f6/1 detail Port 321 (FastEthernet6/1) of VLAN0001 is listening Port path cost 19, Port priority 128, Port Identifier 128.321. Designated root has priority 32768, address 0008.e341.4600 Designated bridge has priority 32768, address 0008.e341.4600 Designated port id is 128.321, designated path cost 0 Timers: message age 0, forward delay 2, hold 0 Number of transitions to forwarding state: 0 Link type is point-to-point by default ** Bpdu filter is enabled internally ** BPDU: sent 0, received 0

Page 610 of the Cisco Systems 4500 user manual — Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling
Page 610 · click to enlarge
Page 610

Chapter 25 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling Monitoring and Maintaining Tunneling Status

Page 611 of the Cisco Systems 4500 user manual — About CDP
Page 611 · click to enlarge
Page 611

C H A P T E R

Configuring CDP

This chapter describes how to configure Cisco Discovery Protocol (CDP) on the Catalyst 4500 series switch. It also provides guidelines, procedures, and configuration examples.

This chapter includes the following major sections:

  • About CDP, page 26-1
  • Configuring CDP, page 26-2

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About CDP

CDP is a protocol that runs over Layer 2 (the data link layer) on all Cisco routers, bridges, access servers, and switches. CDP allows network management applications to discover Cisco devices that are neighbors of already known devices, in particular, neighbors running lower-layer, transparent protocols.With CDP, network management applications can learn the device type and the SNMP agent address of neighboring devices. CDP enables applications to send SNMP queries to neighboring devices.

CDP runs on all LAN and WAN media that support Subnetwork Access Protocol (SNAP).

Page 612 of the Cisco Systems 4500 user manual — Displaying the CDP Global Configuration
Page 612 · click to enlarge
Page 612

Chapter 26 Configuring CDP Configuring CDP

Each CDP-configured device sends periodic messages to a multicast address. Each device advertises at least one address at which it can receive SNMP messages. The advertisements also contain the time-to-live, or holdtime information, which indicates the length of time a receiving device should hold CDP information before discarding it.

Configuring CDP

The following sections describe how to configure CDP:

  • Enabling CDP Globally, page 26-2
  • Displaying the CDP Global Configuration, page 26-2
  • Enabling CDP on an Interface, page 26-3
  • Displaying the CDP Interface Configuration, page 26-3
  • Monitoring and Maintaining CDP, page 26-3

Enabling CDP Globally

To enable CDP globally, use this command:

Switch(config)# [no] cdp run Enables CDP globally.

Use the no keyword to disable CDP globally.

This example shows how to enable CDP globally:

Displaying the CDP Global Configuration

To display the CDP configuration, use this command:

Switch# show cdp Displays global CDP information.

This example shows how to display the CDP configuration:

Switch# show cdp Global CDP information: Sending CDP packets every 120 seconds Sending a holdtime value of 180 seconds Sending CDPv2 advertisements is enabled Switch#

For additional CDP show commands, see the “Monitoring and Maintaining CDP” section on page 26-3.

Switch(config)# cdp run

Page 613 of the Cisco Systems 4500 user manual — Monitoring and Maintaining CDP
Page 613 · click to enlarge
Page 613

Chapter 26 Configuring CDP

Enabling CDP on an Interface

To enable CDP on an interface, use this command:

Switch(config-if)# [no] cdp enable Enables CDP on an interface.

Use the no keyword to disable CDP on an interface.

This example shows how to enable CDP on Fast Ethernet interface 5/1:

Switch(config)# interface fastethernet 5/1 Switch(config-if)# cdp enable

This example shows how to disable CDP on Fast Ethernet interface 5/1:

Switch(config)# interface fastethernet 5/1 Switch(config-if)# no cdp enable

Displaying the CDP Interface Configuration

To display the CDP configuration for an interface, use this command:

Switch# show cdp interface [type/number] Displays information about interfaces where CDP is enabled.

This example shows how to display the CDP configuration of Fast Ethernet interface 5/1:

Switch# show cdp interface fastethernet 5/1 FastEthernet5/1 is up, line protocol is up Encapsulation ARPA Sending CDP packets every 120 seconds Holdtime is 180 seconds Switch#

Monitoring and Maintaining CDP

To monitor and maintain CDP on your device, enter one or more of the following commands:

Switch# clear cdp counters Resets the traffic counters to zero.

Switch# clear cdp table Deletes the CDP table of information about neighbors.

Switch# show cdp Displays global information such as frequency of transmissions and the holdtime for packets being transmitted.

Configuring CDP

Page 614 of the Cisco Systems 4500 user manual — Configuring CDP
Page 614 · click to enlarge
Page 614

Chapter 26 Configuring CDP Configuring CDP

Switch# show cdp entry entry_name [protocol | version]

Displays information about a specific neighbor. The display can be limited to protocol or version information.

Switch# show cdp interface [type/number]

Displays information about interfaces on which CDP is enabled.

Switch# show cdp neighbors [type/number] [detail]

Displays information about neighboring equipment. The display can be limited to neighbors on a specific interface and expanded to provide more detailed information.

Switch# show cdp traffic Displays CDP counters, including the number of packets sent and received and checksum errors.

Switch# show debugging Displays information about the types of debugging that are enabled for your switch.

This example shows how to clear the CDP counter configuration on your switch:

Switch# clear cdp counters

This example shows how to display information about the neighboring equipment:

Switch# show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID JAB023807H1 Fas 5/3 127 T S WS-C2948 2/46 JAB023807H1 Fas 5/2 127 T S WS-C2948 2/45 JAB023807H1 Fas 5/1 127 T S WS-C2948 2/44 JAB023807H1 Gig 1/2 122 T S WS-C2948 2/50 JAB023807H1 Gig 1/1 122 T S WS-C2948 2/49 JAB03130104 Fas 5/8 167 T S WS-C4003 2/47 JAB03130104 Fas 5/9 152 T S WS-C4003 2/48

Page 615 of the Cisco Systems 4500 user manual — LLDP
Page 615 · click to enlarge
Page 615

C H A P T E R

Configuring LLDP, LLDP-MED, and Location Service

This chapter describes how to configure the Link Layer Discovery Protocol (LLDP), LLDP Media Endpoint Discovery (LLDP-MED), and Location Service on the Catalyst 4500 series switch.

This chapter consists of these sections:

  • About LLDP, LLDP-MED, and Location Service, page 27-1
  • Configuring LLDP and LLDP-MED, and Location Service, page 27-4
  • Monitoring and Maintaining LLDP, LLDP-MED, and Location Service, page 27-13

About LLDP, LLDP-MED, and Location Service

This section describes this information:

  • LLDP, page 27-1
  • LLDP-MED, page 27-2
  • Location Service, page 27-3

LLDP

The Cisco Discovery Protocol (CDP) is a device discovery protocol that runs over Layer 2 (the data link layer) on all Cisco-manufactured devices (routers, bridges, access servers, and switches). CDP allows network management applications to automatically discover and learn about other Cisco devices connected to the network.

To support non-Cisco devices and to allow for interoperability between other devices, the switch supports the IEEE 802.1AB LLDP. LLDP is a neighbor discovery protocol that is used for network devices to advertise information about themselves to other devices on the network. This protocol runs over the data-link layer, which allows two systems running different network layer protocols to learn about each other.

Page 616 of the Cisco Systems 4500 user manual — LLDP-MED
Page 616 · click to enlarge
Page 616

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service About LLDP, LLDP-MED, and Location Service

LLDP supports a set of attributes that it uses to discover neighbor devices. These attributes contain type, length, and value descriptions and are referred to as TLVs. LLDP supported devices can use TLVs to receive and send information to their neighbors. Details such as configuration information, device capabilities, and device identity can be advertised using this protocol.

The switch supports the following basic management TLVs (which are optional):

  • Port description TLV
  • System name TLV
  • System description TLV
  • System capabilities TLV
  • Management address TLV
  • Power Management TLV

These organizationally specific LLDP TLVs are also advertised to support LLDP-MED:

  • Port VLAN ID TLV ((IEEE 802.1 specific TLVs)
  • MAC/PHY configuration/status TLV(IEEE 802.3 specific TLVs)

LLDP-MED

LLDP for Media Endpoint Devices (LLDP-MED) is an extension to LLDP that operates between endpoint devices such as IP phones and network devices such as switches. It specifically provides support for voice over IP (VoIP) applications and provides additional TLVs for capabilities discovery, network policy, power over Ethernet (PoE), inventory management, and location information. By default, all LLDP-MED TLVs are enabled.

LLDP-MED supports these TLVs:

  • LLDP-MED capabilities TLV

Allows LLDP-MED endpoints to determine the capabilities that the connected device supports and what capabilities the device has enabled.

For configuration details, see the For configuration details, see the “Configuring Network-Policy Profile” section on page 27-9.

  • Network policy profile

Allows both network connectivity devices and endpoints to advertise VLAN configurations and associated Layer 2 and Layer 3 attributes for the specific application on that port. For example, the switch can notify a phone of the VLAN number that it should use. The phone can connect into any switch, obtain its VLAN number, and then start communicating with the call control.

By defining a network-policy profile TLV, you can create a profile for voice and voice-signalling by specifying the values for VLAN, class of service (CoS), differentiated services code point (DSCP), and tagging mode. These profile attributes are then maintained centrally on the switch and propagated to the phone.

For configuration details, see the “Configuring Network-Policy Profile” section on page 27-9.

  • Power management TLV

Enables advanced power management between LLDP-MED endpoint and network connectivity devices. Allows switches and phones to convey power information, such as how the device is powered, power priority, and how much power the device needs.

For configuration details, see the “Configuring LLDP Power Negotiation” section on page 27-10.

Page 617 of the Cisco Systems 4500 user manual — Location Service
Page 617 · click to enlarge
Page 617

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

About LLDP, LLDP-MED, and Location Service

  • Inventory management TLV

Allows an endpoint to send detailed inventory information about itself to the switch, including information hardware revision, firmware version, software version, serial number, manufacturer name, model name, and asset ID TLV.

  • Location TLV

Provides location information from the switch to the endpoint device. The location TLV can send this information:

– Civic location information

Provides the civic address information and postal information. Examples of civic location information are street address, road name, and postal community name information.

– ELIN location information

Provides the location information for a caller. The location is determined by the emergency location identifier number (ELIN), which is a phone number that routes an emergency call to the local public safety answering point (PSAP) and which the PSAP can use to call back the emergency caller.

For configuration details, see the “Configuring Location TLV and Location Service” section on page 27-11.

Location Service

The location service feature enables the switch to provide location and attachment tracking information for its connected devices to a Cisco Mobility Services Engine (MSE). The tracked device can be a wireless endpoint, a wired endpoint, or a wired switch or controller. The switch informs device link up and link-down events through Network Mobility Services Protocol (NMSP) location and attachment notifications to the MSE.

The MSE initiates the NMSP connection to the switch. When the MSE connects to the switch messages are exchanged to establish version compatibility, service exchange, and location information synchronization. After the connection is established, the switch sends location and attachment notifications periodically to the MSE. Any link-up event, link-down event, or location configuration change detected during the interval are aggregated and sent at the end of the interval using attachment or location notifications.

When the switch discovers the presence or absence of a device on a link-up or link-down event on a port, it obtains the client’s MAC address, IP address, and 802.1x username if applicable. If the device is LLDP-MED or CDP enabled, the switch continues to gather client-specific information such as the model number and software version.

Depending on the device capabilities, the switch obtains this client attachment information at link up:

  • Slot, port, and port-type
  • Client’s MAC address
  • Client’s IP address
  • 802.1X username if applicable
Page 618 of the Cisco Systems 4500 user manual — Default LLDP Configuration
Page 618 · click to enlarge
Page 618

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service Configuring LLDP and LLDP-MED, and Location Service

  • Device category is specified as a wired station
  • State is specified as Connected
  • Serial number, UDI
  • Model number
  • Software version
  • VLAN ID and VLAN name

Depending on the device capabilities, the switch obtains this client information at link down:

  • Slot and port that was disconnected
  • Client’s MAC address
  • Client’s IP address
  • 802.1X username if applicable
  • Device category is specified as a wired station
  • State is specified as Disconnected
  • Serial number, UDI
  • Model number
  • Software version
  • VLAN ID and VLAN name

If an administrator changes a location address at the switch, the information is reported to the MSE. The switch sends a NMSP location notification message that identifies the list of ports affected by the change and the changed address information.

Configuring LLDP and LLDP-MED, and Location Service

This section contains this configuration information:

  • Default LLDP Configuration, page 27-4
  • Configuring LLDP Characteristics, page 27-5
  • Disabling and Enabling LLDP Globally, page 27-6
  • Disabling and Enabling LLDP on an Interface, page 27-7
  • Configuring LLDP-MED TLVs, page 27-8
  • Configuring Network-Policy Profile, page 27-9
  • Configuring LLDP Power Negotiation, page 27-10
  • Configuring Location TLV and Location Service, page 27-11
  • Monitoring and Maintaining LLDP, LLDP-MED, and Location Service, page 27-13

Default LLDP Configuration

Table 27-1 shows the default LLDP configuration. To change the default settings, use the LLDP global configuration and LLDP interface configuration commands.

Page 619 of the Cisco Systems 4500 user manual — Configuring LLDP Characteristics
Page 619 · click to enlarge
Page 619

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

Configuring LLDP and LLDP-MED, and Location Service

Table 27-1 Default LLDP Configuration

Feature Default Setting

LLDP global state Disabled

LLDP holdtime (before discarding) 120 seconds

LLDP timer (packet update frequency) 30 seconds

LLDP reinitialization delay 2 seconds

LLDP tlv-select Enabled to send and receive all TLVs

LLDP interface state Enabled

LLDP med-tlv-select Enabled to send all LLDP-MED TLVs

Configuring LLDP Characteristics

You can configure the frequency of LLDP updates, the amount of time to hold the information before discarding it, the initialization delay time. You can also select the LLDP and LLDP-MED TLVs for sending and receiving. The location service feature is available only when the switch is running the cryptographic (encrypted) software image.

To configure these characteristics, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# lldp holdtime seconds

(Optional) Specifies the amount of time a receiving device should hold the information sent by your device before discarding it.

The range is 0 to 65535 seconds; the default is 120 seconds.

Step 3 Switch(config)# lldp reinit (Optional) Specifies the delay time in seconds for LLDP to initialize on any interface.

The range is 2 to 5 seconds; the default is 2 seconds.

Step 4 Switch(config)# lldp timer seconds (Optional) Sets the transmission frequency of LLDP updates in seconds.

The range is 5 to 65534 seconds; the default is 30 seconds.

Step 5 Switch(config)# lldp tlv-select (Optional) Specifies the LLDP TLVs to send or receive.

Step 6 Switch(config)# copy running-config startup-config

Saves your entries in the configuration file.

Step 7 Switch(config)# lldp med-tlv-select (Optional) Specifies the LLDP-MED TLVs to send or receive.

LLDP receive Enabled · LLDP transmit Enabled

Page 620 of the Cisco Systems 4500 user manual — Disabling and Enabling LLDP Globally
Page 620 · click to enlarge
Page 620

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service Configuring LLDP and LLDP-MED, and Location Service

This example shows how to configure a holdtime of 120 seconds, a delay time of 2 seconds and an update frequency of 30:

Switch# configure terminal Switch(config)# lldp holdtime 120 Switch(config)# lldp reinit 2 Switch(config)# lldp timer 30 Switch(config)# end

This example shows how to transmit only LLDP packets:

Switch# configure terminal SWitch(config)# no lldp receive Switch(config)# end

This example shows how to receive LLDP packets again:

Switch# configure terminal Switch(config)# lldp receive Switch(config)# end

For additional LLDP show commands, see the “Monitoring and Maintaining LLDP, LLDP-MED, and Location Service” section on page 27-13.

Disabling and Enabling LLDP Globally

To disable LLDP globally, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no lldp run Disables LLDP.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

To enable LLDP once it has been disabled, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# lldp run Enables LLDP.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

This example shows how to globally disable LLDP:

Switch# configure terminal Switch(config)# no lldp run Switch(config)# end

Page 621 of the Cisco Systems 4500 user manual — Disabling and Enabling LLDP on an Interface
Page 621 · click to enlarge
Page 621

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

Configuring LLDP and LLDP-MED, and Location Service

This example shows how to globally enable LLDP:

Switch# configure terminal Switch(config)# lldp run Switch(config)# end

Disabling and Enabling LLDP on an Interface

LLDP is disabled globally on all supported interfaces. You must enable LLDP globally to allow a device to send LLDP packets. However, no changes are required at the interface level.

You can configure the interface to selectively not to send and receive LLDP packets with the no lldp transmit and no lldp receive commands.

To disable LLDP on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which you are disabling LLDP, and enter interface configuration mode.

Step 3 Switch(config)# no lldp transmit Disallows sending LLDP packets on the interface.

Step 4 Switch(config)# no lldp receive Disallows receiving LLDP packets on the interface.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch(config)# copy running-config startup-config

Saves your entries in the configuration file.

To enable LLDP on an interface once it has been disabled, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which you are enabling LLDP, and enter interface configuration mode.

Step 3 Switch(config)# lldp transmit Sends LLDP packets on the interface.

Step 4 Switch(config)# lldp receive Receives LLDP packets on the interface.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# copy running-config startup-config

Saves your entries in the configuration file.

This example shows how to enable LLDP on an interface:

Switch# configure terminal Switch(config)# interface GigabitEthernet 1/1 Switch(config-if)# lldp transmit Switch(config-if)# lldp receive Switch(config-if)# end

Page 622 of the Cisco Systems 4500 user manual — LLDP-MED TLV Description
Page 622 · click to enlarge
Page 622

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service Configuring LLDP and LLDP-MED, and Location Service

Configuring LLDP-MED TLVs

By default, the switch only sends LLDP packets until it receives LLDP-MED packets from the end device. The switch continues to send LLDP-MED packets until it only receives LLDP packets.

By using the lldp interface configuration command, you can configure the interface not to send the TLVs listed in Table 27-2.

Table 27-2 LLDP-MED TLVs

LLDP-MED TLV Description

inventory-management LLDP-MED inventory management TLV

location LLDP-MED location TLV

network-policy LLDP-MED network policy TLV

power-management LLDP-MED power management TLV

To disable a TLV on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which you are configuring a LLDP-MED TLV, and enter interface configuration mode.

Step 3 Switch(config-if)# no lldp med-tlv-select tlv

Specifies the TLV to disable.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To enable a TLV on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which you are configuring an LLDP-MED TLV, and enter interface configuration mode.

Step 3 Switch(config-if)# lldp med-tlv-select tlv

Specifies the TLV to enable.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable a TLV on an interface when it has been disabled:

Switch# configure terminal Switch(config)# interface GigabitEthernet0/1 Switch(config-if)# lldp med-tlv-select inventory management Switch(config-if)# end

Page 623 of the Cisco Systems 4500 user manual — Configuring Network-Policy Profile
Page 623 · click to enlarge
Page 623

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

Configuring LLDP and LLDP-MED, and Location Service

Configuring Network-Policy Profile

To create a network-policy profile, configure the policy attributes, and apply it to an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# network-policy profile profile number

Specifies the network-policy profile number, and enter network-policy configuration mode. The range is 1 to 4294967295.

Step 3 Switch(config-network-policy)# {voice | voice-signaling} vlan [vlan-id {cos cvalue | dscp dvalue}] | [[dot1p {cos cva lue | dscp dvalue}] | none | untagged]

Configures the policy attributes:

voice—Specifies the voice application type.

voice-signaling—Specifies the voice-signaling application type.

vlan—Specifies the native VLAN for voice traffic.

vlan-id—(Optional) Specifies the VLAN for voice traffic. The range is 1 to 4094.

cos cvalue—(Optional) Specifies the Layer 2 priority class of service (CoS) for the configured VLAN. The range is 0 to 7; the default is 0.

dscp dvalue—(Optional) Specifies the differentiated services code point (DSCP) value for the configured VLAN. The range is 0 to 63; the default is 0.

dot1p—(Optional) Configures the telephone to use IEEE 802.1p priority tagging and use VLAN 0 (the native VLAN).

none—(Optional) Do not instruct the IP telephone about the voice VLAN. The telephone uses the configuration from the telephone key pad.

untagged—(Optional) Configures the telephone to send untagged voice traffic (the default for the telephone).

Step 4 Switch(config)# exit Returns to global configuration mode.

Step 5 Switch# configure terminal Enters global configuration mode.

Step 6 Switch(config)# interface interface-id Specifies the interface on which you are configuring a network-policy profile, and enter interface configuration mode.

Step 7 Switch(config-if)# network-policy profile number

Specifies the network-policy profile number.

Step 8 Switch(config-if)# lldp med-tlv-select network-policy

Specifies the network-policy TLV.

Step 9 Switch(config-if)# end Returns to privileged EXEC mode.

Step 10 Switch# show network-policy profile Verifies the configuration.

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no form of each command to return to the default setting.

Page 624 of the Cisco Systems 4500 user manual — Configuring LLDP Power Negotiation
Page 624 · click to enlarge
Page 624

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service Configuring LLDP and LLDP-MED, and Location Service

This example shows how to configure VLAN 100 for voice application with CoS and to enable the network-policy profile and network-policy TLV on an interface:

Switch# configure terminal Switch(config)# network-policy profile 1 Switch(config-network-policy)# voice vlan 100 cos 4 Switch(config)# exit Switch# configure terminal Switch# interface_id Switch(config-if)# network-policy profile 1 Switch(config-if)# lldp med-tlv-select network-policy

This example shows how to configure the voice application type for the native VLAN with priority tagging:

Switch(config-network-policy)# voice vlan dot1p cos 4 Switch(config-network-policy)# voice vlan dot1p dscp 34

Note As of Cisco IOS Release 12.2(54)SG, the Catalyst 4500 series switch supports only 2 applications: voice and voice signaling. The default cos/dscp values for a voice application is 5/46 and for voice signaling is 3/24. You must configure the network policy profile and attach it to the interface if you need to override the default values. These values are sent as a part of the network-policy TLV in LLDP MED.

Configuring LLDP Power Negotiation

Starting with Cisco IOS Release 12.2(54)SG, Catalyst 4500 series switches can perform inline power negotiation using LLDP as specified in the IEEE 802.3at standard. (The LLDP TLV used is DTE Power-via-MDI TLV.) With this feature, inline powered devices based on the IEEE standard can be powered in the PoE+ power range (12.95W to 25.5W at the device end) by the switch on PoE+ supported modules.

Note When an inline powered device that performs power negotiation using multiple protocols (CDP/LLDP 802.3at/LLDP-MED) is connected to a switch, the switch locks to the first protocol packet (CDP or LLDP) that contains the power negotiation TLV. The LLDP 802.3at power negotiation TLV overrides the LLDP-MED power negotiation TLV if both are received by the switch. If you need to use any single protocol for power negotiation each time, you must administratively disable the other power negotiation protocols on the switch interface or the end device.

To enable LLDP power negotiation, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which you are configuring LLDP power negotiation.

Page 625 of the Cisco Systems 4500 user manual — Configuring Location TLV and Location Service
Page 625 · click to enlarge
Page 625

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

Configuring LLDP and LLDP-MED, and Location Service

Step 3 Switch(config-if)# lldp tlv-select power-management

Enables LLDP power negotiation.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable LLDP power negotiation on interface Gigabit Ethernet 3/1:

Switch# config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# int gi 3/1 Switch(config-if)# lldp tlv-select power-management

Configuring Location TLV and Location Service

To configure location information for an end-point and to apply it to an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# location {admin-tag string | civic-location identifier id | elin-location string identifier id}

Specifies the location information for an endpoint.

  • admin-tag —Specify an administrative tag or site information.
  • civic-location —Specify civic location information.
  • elin-location —Specify emergency location information (ELIN).
  • identifier id— Specify the ID for the civic location.
  • string —Specify the site or location information in alphanumeric format.

Step 3 Switch(config-civic)# exit Returns to global configuration mode.

Step 4 Switch(config)# interface interface-id Specifies the interface on which you are configuring the location information, and enter interface configuration mode.

Page 626 of the Cisco Systems 4500 user manual — Configuring LLDP, LLDP-MED, and Location Service
Page 626 · click to enlarge
Page 626

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service Configuring LLDP and LLDP-MED, and Location Service

Step 5 Switch(config-if)# location {additional-location-information word | civic-location-id id | elin-location-id id}

Enters location information for an interface:

additional-location-information—Specifies additional information for a location or place.

civic-location-id—Specifies global civic location information for an interface.

elin-location-id—Specifies emergency location information for an interface.

id—Specifies the ID for the civic location or the ELIN location. The ID range is 1 to 4095.

word—Specifies a word or phrase that provides additional location information.

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show location Verifies the configuration.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no form of each command to return to the default setting.

This example shows how to configure civic location information on the switch:

Switch# configure terminal Switch(config)# location civic-location identifier 1 Switch(config-civic)# number 3550 Switch(config-civic)# primary-road-name "Cisco Way" Switch(config-civic)# city "San Jose" Switch(config-civic)# state CA Switch(config-civic)# building 19 Switch(config-civic)# room C6 Switch(config-civic)# county "Santa Clara" Switch(config-civic)# country US Switch(config-civic)# end

To enable location service on the switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# nmsp enable Enables the NMSP features on the switch.

Step 3 Switch(config)# ip device tracking Enables IP device tracking.

Page 627 of the Cisco Systems 4500 user manual — Command Description
Page 627 · click to enlarge
Page 627

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service

Monitoring and Maintaining LLDP, LLDP-MED, and Location Service

Step 4 Switch(config)# nmsp notification interval {attachment | location} interval-seconds

Specifies the NMSP notification interval.

attachment—Specify the attachment notification interval.

location—Specify the location notification interval.

interval-seconds—Duration in seconds before a switch sends the location or attachment updates to the MSE. The range is 1 to 30; the default is 30.

Step 5 Switch(config)# interface interface-id Specifies the interface on which you want to prevent all learned

attachment information from being sent to the MSE.

Step 6 Switch(config-if)# nmsp attachment suppress

Prevents the attachment information learned on this interface from being sent to the MSE.

Step 7 Switch# end Returns to privileged EXEC mode.

Step 8 Switch# show nmsp notification Verifies the notification interval configuration.

Step 9 Switch# show nmsp status Verifies if NMSP is enabled.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable NMSP on a switch and set the location notification time to 10 seconds:

Switch# configure terminal Switch(config)# nmsp enable Switch(config)# ip device tracking Switch(config)# nmsp notification interval location 10 Switch(config)# end

Monitoring and Maintaining LLDP, LLDP-MED, and Location Service

To monitor and maintain LLDP, LLDP-MED, and location service on your device, perform one or more of the following commands in privileged EXEC mode:

Command Description

clear lldp counters Resets the traffic and error counters to zero.

clear lldp table Deletes the LLDP table of information about neighbors.

clear nmsp statistics Clears the NMSP statistic counters.

show lldp Displays global information, such as frequency of transmissions, the holdtime for packets being sent, and the delay time for LLDP to initialize on an interface.

Page 628 of the Cisco Systems 4500 user manual — Command Description
Page 628 · click to enlarge
Page 628

Chapter 27 Configuring LLDP, LLDP-MED, and Location Service Monitoring and Maintaining LLDP, LLDP-MED, and Location Service

Command Description

show lldp entry entry-name Displays information about a specific neighbor.

You can enter an asterisk (*) to display all neighbors, or you can enter the name of the neighbor about which you want information.

show lldp errors Displays LLDP computational errors and overflows.

show lldp interface [interface-id] Displays information about interfaces where LLDP is enabled.

You can limit the display to the interface about which you want information.

show lldp neighbors [interface-id] [detail]

Displays information about neighbors, including device type, interface type and number, holdtime settings, capabilities, and port ID.

You can limit the display to neighbors of a specific interface or expand the display to provide more detailed information.

show lldp traffic Displays LLDP counters, including the number of packets sent and received, number of packets discarded, and number of unrecognized TLVs.

show location Displays the location information for an endpoint.

show nmsp Displays the NMSP information.

show power inline interface [detail] Displays detailed information on the PoE status for the interface

show power inline module mod [detail]

Displays detailed information on the PoE consumption for the specified module.

Page 629 of the Cisco Systems 4500 user manual — About UDLD
Page 629 · click to enlarge
Page 629

C H A P T E R

Configuring UDLD

This chapter describes how to configure UniDirectional Link Detection (UDLD) Ethernet on a Catalyst switch.

This chapter includes the following major sections:

  • About UDLD, page 28-1
  • Default UDLD Configuration, page 28-4
  • Configuring UDLD on the Switch, page 28-4
  • Displaying UDLD Link Status, page 28-9

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About UDLD

UDLD is a Layer 2 protocol that initializes devices connected through fiber-optic or twisted-pair Ethernet cables. This protocol monitors a physical connection (such as wrong cabling) to detect unidirectional links to avoid spanning-tree topology loops or silent drop traffic.

All connected devices must support UDLD for the protocol to successfully identify the unidirectional links. When UDLD detects a unidirectional link, it can administratively shut down the affected port and send you a warning message.

With UDLD, the time to detect a unidirectional link can vary from a few seconds to several minutes depending on how the timers are configured. Link status messages are exchanged every couple of seconds.

Page 630 of the Cisco Systems 4500 user manual — Fast UDLD Topology
Page 630 · click to enlarge
Page 630

Chapter 28 Configuring UDLD About UDLD

Starting with Cisco IOS Release 12.2(54)SG, the enhancement Fast UDLD was added, which supports timers in the few-hundred milliseconds range, which enables subsecond unidirectional link detection. With Fast UDLD, the time to detect a unidirectional link can vary from less than one second to a few seconds (the detection time also depends on how the timers are configured). Link status messages are exchanged every couple of hundred milliseconds.

This section includes these topics:

  • UDLD Topology, page 28-2
  • Fast UDLD Topology, page 28-2
  • Operation Modes, page 28-3
  • Default States for UDLD, page 28-3

UDLD Topology

Each switch can send packets to a neighbor switch but cannot receive packets from the switch it is sending packets to. UDLD detects and disables these one-way connections. Figure 28-1 illustrates a unidirectional link condition.

Figure 28-1 Unidirectional Link Topology

Switch X Switch Y

Fast UDLD Topology

Figure 28-2 illustrates a typical Fast UDLD topology. Switch A and B are connected through a 2-port EtherChannel, and Fast UDLD is enabled on the individual ports. If one of the links becomes unidirectional, Fast UDLD detects this situation faster than regular UDLD and errdisables the link. Traffic is switched over to the second link by EtherChannel. Because this occurs very quickly, traffic loss is minimized.

Show 5 more labels / short text on this page
Tx · Rx · Rx Tx · Switch Z · Rx Tx
Page 631 of the Cisco Systems 4500 user manual — Default States for UDLD
Page 631 · click to enlarge
Page 631

Chapter 28 Configuring UDLD

Figure 28-2 Fast UDLD Topology

EtherChannel consisting

of two interfaces

Switch A Switch B

Operation Modes

UDLD and Fast UDLD support the following operation modes:

  • Normal — A UDLD-capable port (A) periodically sends a UDLD probe to a second port (B). If B is not UDLD capable, no unidirectional link detection occurs. If both devices are UDLD capable and bidirectional connectivity exists, probe messages travel in both directions at the rate of the configured message time interval. When the UDLD protocol receives the probe, it attempts to synchronize the devices by sending echo messages to the peer port and waiting for an answer during the detection window. If unidirectional traffic is detected when the port link is still up (B longer sends traffic to A), B enters errdisable mode, and A is marked undetermined but does not enter errdisable mode. It continues to operate under its current STP status because this mode is informational only; it is potentially less disruptive although it does not prevent STP loops.
  • Aggressive — If a port (A) loses its neighbor connectivity, it actively attempts to reestablish the relationship by sending a probe to a second port (B). If port B does not respond, the link is considered unidirectional and port A enters an errdisable state to avoid silent drop traffic.

UDLD aggressive mode can interoperate with UDLD normal mode. When a unidirectional condition is detected, only the aggressive mode link shuts down.

Default States for UDLD

The following are the defaults for UDLD:

  • UDLD is locally disabled on copper LAN ports to avoid sending unnecessary control traffic (BPDU control packets). This protocol is commonly used for access ports.
  • UDLD is enabled on a fiber port if global UDLD is activated.
  • Fast UDLD is disabled on all ports.

About UDLD · 277892

Page 632 of the Cisco Systems 4500 user manual — Fast UDLD Guidelines and Restrictions
Page 632 · click to enlarge
Page 632

Chapter 28 Configuring UDLD Default UDLD Configuration

Default UDLD Configuration

Table 28-1 shows the UDLD default configuration.

Table 28-1 UDLD Default Configuration

Feature Default Status

UDLD global enable state Globally disabled.

UDLD per-interface enable state for fiber-optic media Enabled on all Ethernet fiber-optic interfaces.

UDLD per-interface enable state for twisted-pair (copper) media Disabled on all Ethernet 10/100 and 1000BASE-TX

interfaces.

Fast UDLD per-interface enable state. Disabled on all interfaces.

Configuring UDLD on the Switch

The following sections describe how to configure UDLD:

  • Fast UDLD Guidelines and Restrictions, page 28-4
  • Enabling UDLD Globally, page 28-5
  • Enabling UDLD on Individual Interfaces, page 28-6
  • Disabling UDLD on Individual Interfaces, page 28-7
  • Disabling UDLD on a Fiber-Optic Interface, page 28-7
  • Configuring a UDLD Probe Message Interval Globally, page 28-8
  • Resetting Disabled LAN Interfaces, page 28-8

Fast UDLD Guidelines and Restrictions

When using (or configuring) Fast UDLD, consider these guidelines and restrictions:

  • Fast UDLD is disabled by default.
  • Configure fast UDLD only on point-to-point links between network devices that support fast UDLD.
  • You can configure fast UDLD in either normal or aggressive mode.
  • Do not enter the link debounce command on fast UDLD ports.
  • Configure fast UDLD on at least two links between each connected network device. This reduces the number of link disablements due to false positives.
  • Fast UDLD does not report a unidirectional link if the same error occurs simultaneously on more than one link to the same neighbor device.
  • Fast UDLD is supported on a limited number of ports.
Page 633 of the Cisco Systems 4500 user manual — Enabling UDLD Globally
Page 633 · click to enlarge
Page 633

Chapter 28 Configuring UDLD

Configuring UDLD on the Switch

Enabling UDLD Globally

To enable UDLD in aggressive or normal mode and to set the configurable message timer on all fiber-optic interfaces on the switch, perform this task:

Step 1 Switch# configure terminal Enters the global configuration mode.

Step 2 Switch(config)# udld {aggressive | enable | message time message-timer-interval} | fast-hello error-reporting

Specifies UDLD and Fast UDLD operation:

  • aggressive —Enables UDLD in aggressive mode on all fiber-optic interfaces.
  • enable —Enables UDLD in normal mode on all fiber-optic interfaces on the switch. UDLD is disabled by default.

An individual interface configuration overrides the setting of the udld enable global configuration command.

For more information about aggressive and normal modes, see the “Operation Modes” section on page 28-3.

  • message time — message-timer-interval — Configures the period of time between UDLD probe messages on ports that are in the advertisement phase and are determined to be bidirectional. The range is from 1 to 90 seconds.
  • fast-hello error reporting —If configured, Fast UDLD does not errdisable a unidirectional link. Instead, a log message informing link failure is displayed on the console (behavior for fast UDLD only).

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show udld Verifies the configuration.

Page 634 of the Cisco Systems 4500 user manual — Enabling UDLD on Individual Interfaces
Page 634 · click to enlarge
Page 634

Chapter 28 Configuring UDLD Configuring UDLD on the Switch

Enabling UDLD on Individual Interfaces

To enable UDLD on individual interfaces, perform this task:

Step 1 Switch(config-if)# udld port Switch(config-if)# udld port aggressive

Enables UDLD in normal mode on a specific interface. On a fiber-optic interface, this command overrides the udld enable global configuration command setting. Enables UDLD in aggressive mode on a specific interface. On a fiber-optic interface, this command overrides the udld enable global configuration command setting. Enables Fast UDLD on the interface with message interval equal to the interval value in milliseconds.

Switch(config-if)# udld fast-hello interval

The interval value range is from 200 milliseconds to 1000 milliseconds.

To enable Fast UDLD, UDLD must be enabled (explicitly configured or globally enabled) and operational (in bidirectional state) on the interface.

Step 2 Switch# show udld interface Verifies the configuration.

Page 635 of the Cisco Systems 4500 user manual — Disabling UDLD on a Fiber-Optic Interface
Page 635 · click to enlarge
Page 635

Chapter 28 Configuring UDLD

Configuring UDLD on the Switch

Disabling UDLD on Individual Interfaces

To disable UDLD on individual interfaces, perform this task:

Step 1 Switch(config-if)# no udld port Switch(config-if)# no udld fast-hello

Disables UDLD on an interface.

The following applies:

  • On fiber-optic interfaces, the no udld port command reverts the interface configuration to the setting established with the udld enable global configuration command.
  • For both UDLD and Fast UDLD, if aggressive mode is configured, then aggressive mode must be explicitly disabled with the no udld port aggressive command.
  • If normal mode is configured, the no udld port command disables both UDLD and Fast UDLD.

Disables Fast UDLD on an interface. The interface reverts to the UDLD configuration that was present before you enabled Fast UDLD.

Step 2 Switch# show udld interface Verifies the configuration.

Disabling UDLD on a Fiber-Optic Interface

To disable UDLD on individual fiber-optic interfaces, perform this task:

Step 1 Switch(config-if)# udld port disable Switch(config-if)# no udld fast-hello

Disables UDLD on a fiber-optic interface and removes all UDLD and Fast UDLD related configuration on the interface.

Disables Fast UDLD on an interface, which reverts to the UDLD configuration that was present before you enabled Fast UDLD.

Step 2 Switch# show udld interface Verifies the configuration.

Page 636 of the Cisco Systems 4500 user manual — Resetting Disabled LAN Interfaces
Page 636 · click to enlarge
Page 636

Chapter 28 Configuring UDLD Configuring UDLD on the Switch

Configuring a UDLD Probe Message Interval Globally

To configure the time between UDLD probe messages on ports that are in advertisement mode and are currently determined to be bidirectional, perform this task:

Step 1 Switch(config)# udld message time interval Configures the time between UDLD probe messages on ports that are in advertisement mode and are currently determined to be bidirectional; valid values are from 1 to 90 seconds.

The no udld message command returns the default value (15 seconds).

Step 2 Switch# show udld type-slot/interface Verifies the configuration.

Configuring a Fast UDLD Probe Message Interval per Interface

To configure the time between Fast UDLD probe messages on ports that are in advertisement mode and are currently determined to be bidirectional at the interface level, perform this task:

Step 1 Switch(config)# udld fast-hello interval Configures the time between Fast UDLD probe messages at the interface level.

Step 2 Switch# show udld fast-hello fasttype-slot/interface

Verifies the configuration.

Resetting Disabled LAN Interfaces

To reset all LAN ports that have been errdisabled by UDLD, use this command:

Switch(config)# udld reset Resets all LAN ports that have been errdisabled by UDLD and Fast UDLD.

Page 637 of the Cisco Systems 4500 user manual — Displaying UDLD Link Status
Page 637 · click to enlarge
Page 637

Chapter 28 Configuring UDLD

Displaying UDLD Link Status

Displaying UDLD Link Status

To verify link status reported by UDLD, enter the following command:

Switch# show udld neighbors

Port Device Name Device ID Port ID Neighbor State Gi1/33 FOX10430380 1 Gi1/33 Bidirectional Gi1/34 FOX10430380 1 Gi1/34 Bidirectional

To verify status for a particular link as reported by UDLD, enter the following command:

Switch# show udld g1/34 Interface Gi1/34 --- Port enable administrative configuration setting: Enabled / in aggressive mode Port enable operational state: Enabled / in aggressive mode Current bidirectional state: Bidirectional Current operational state: Advertisement - Single neighbor detected Message interval: 15000 ms Time out interval: 5000 ms

Port fast-hello configuration setting: Disabled Port fast-hello interval: 0 ms Port fast-hello operational state: Disabled Neighbor fast-hello configuration setting: Disabled Neighbor fast-hello interval: Unknown

Entry 1 --- Expiration time: 43300 ms Cache Device index: 1 Current neighbor state: Bidirectional Device ID: FOX10430380 Port ID: Gi1/34 Neighbor echo 1 device: FOX104303NL Neighbor echo 1 port: Gi1/34

TLV Message interval: 15 sec No TLV fast-hello interval TLV Time out interval: 5 TLV CDP Device name: Switch

To verify link status reported by Fast UDLD, enter the following command:

Switch# show udld fast-hello Total ports on which fast hello can be configured: 16 Total ports with fast hello configured: 3 Total ports with fast hello operational: 3 Total ports with fast hello non-operational: 0

Port-ID Hello Neighbor-Hello Neighbor-Device Neighbor-Port Status Gi1/45 200 200 FOX104303NL Gi1/45 Operational Gi1/46 200 200 FOX104303NL Gi1/46 Operational Gi1/47 200 200 FOX104303NL Gi1/47 Operational

Page 638 of the Cisco Systems 4500 user manual — Configuring UDLD
Page 638 · click to enlarge
Page 638

Chapter 28 Configuring UDLD Displaying UDLD Link Status

To verify status for a particular link as reported by Fast UDLD, enter the following command:

Switch# show udld fast-hello g1/33

Interface Gi1/33 --- Port enable administrative configuration setting: Enabled / in aggressive mode Port enable operational state: Enabled / in aggressive mode Current bidirectional state: Bidirectional Current operational state: Advertisement - Single neighbor detected Message interval: 200 ms Time out interval: 5000 ms

Port fast-hello configuration setting: Enabled Port fast-hello interval: 200 ms Port fast-hello operational state: Enabled Neighbor fast-hello configuration setting: Enabled Neighbor fast-hello interval: 200 ms

Entry 1 --- Expiration time: 500 ms Cache Device index: 1 Current neighbor state: Bidirectional Device ID: FOX10430380 Port ID: Gi1/33 Neighbor echo 1 device: FOX104303NL Neighbor echo 1 port: Gi1/33

TLV Message interval: 15 TLV fast-hello interval: 200 ms TLV Time out interval: 5 TLV CDP Device name: Switch

Page 639 of the Cisco Systems 4500 user manual — About Unidirectional Ethernet
Page 639 · click to enlarge
Page 639

C H A P T E R

Configuring Unidirectional Ethernet

This chapter describes how to configure Unidirectional Ethernet on the Catalyst 4000 family switch and contains these sections:

  • About Unidirectional Ethernet, page 29-1
  • Configuring Unidirectional Ethernet, page 29-2

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Unidirectional Ethernet

You can set stubless Gigabit Ethernet ports to unidirectionally transmit or receive traffic. Unidirectional Ethernet uses only one strand of fiber for either transmitting or receiving one-way traffic for the Gigabit Ethernet Port, instead of two strands of fiber for a full-duplex Gigabit Ethernet Port. Configuring your Gigabit Ethernet Port either to transmit or receive traffic effectively doubles the amount of traffic capabilities for applications, such as video streaming, where most traffic is sent as unacknowledged unidirectional video broadcast streams.

Page 640 of the Cisco Systems 4500 user manual — Configuring Unidirectional Ethernet
Page 640 · click to enlarge
Page 640

Chapter 29 Configuring Unidirectional Ethernet Configuring Unidirectional Ethernet

Configuring Unidirectional Ethernet

To enable Unidirectional Ethernet, perform this task:

Step 1 Switch(config)# interface {vlan vlan_ID | {fastethernet | gigabitethernet | tengigabitethernet} slot/interface | Port-channel number}

Selects the interface to configure.

Step 2 Switch(config-if)# [no] unidirectional {send-only | receive-only}

Enables Unidirectional Ethernet.

Use the no keyword to disable Unidirectional Ethernet.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show interface {vlan vlan_ID | {fastethernet | gigabitethernet | tengigabitethernet} slot/interface} unidirectional

Verifies the configuration.

This example shows how to set Gigabit Ethernet interface 1/1 to unidirectionally send traffic:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# unidirectional send-only Switch(config-if)# end

Enable l2 port unidirectional mode will automatically disable port udld. You must manually ensure that the unidirectional link does not create a spanning tree loop in the network.

Enable l3 port unidirectional mode will automatically disable ip routing on the port. You must manually configure static ip route and arp entry in order to route ip traffic.

This example shows how to set Gigabit Ethernet interface 1/1 to receive traffic unidirectionally:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# unidirectional receive-only Switch(config-if)# end

Enable l2 port unidirectional mode will automatically disable port udld. You must manually ensure that the unidirectional link does not create a spanning tree loop in the network.

Enable l3 port unidirectional mode will automatically disable ip routing on the port. You must manually configure static ip route and arp entry in order to route ip traffic.

Page 641 of the Cisco Systems 4500 user manual — Configuring Unidirectional Ethernet
Page 641 · click to enlarge
Page 641

Chapter 29 Configuring Unidirectional Ethernet

This example shows how to verify the configuration:

Switch> show interface gigabitethernet 1/1 unidirectional show interface gigabitethernet 1/1 unidirectional Unidirectional configuration mode: send only CDP neighbor unidirectional configuration mode: receive only

This example shows how to disable Unidirectional Ethernet on Gigabit Ethernet interface 1/1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# no unidirectional Switch(config-if)# end

This example shows the result of entering the show interface command for a port that does not support Unidirectional Ethernet:

Switch# show interface f6/1 unidirectional Unidirectional Ethernet is not supported on FastEthernet6/1

Configuring Unidirectional Ethernet

Page 642 of the Cisco Systems 4500 user manual — Configuring Unidirectional Ethernet
Page 642 · click to enlarge
Page 642

Chapter 29 Configuring Unidirectional Ethernet Configuring Unidirectional Ethernet

Page 643 of the Cisco Systems 4500 user manual — About Layer 3 Interfaces
Page 643 · click to enlarge
Page 643

C H A P T E R

Configuring Layer 3 Interfaces

This chapter describes the Layer 3 interfaces on a Catalyst 4500 series switch. It also provides guidelines, procedures, and configuration examples.

This chapter includes the following major sections:

  • About Layer 3 Interfaces, page 30-1
  • Configuration Guidelines, page 30-5
  • Configuring Logical Layer 3 VLAN Interfaces, page 30-6
  • Configuring VLANs as Layer 3 Interfaces, page 30-7
  • Configuring Physical Layer 3 Interfaces, page 30-12
  • Configuring EIGRP Stub Routing, page 30-13

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Layer 3 Interfaces

The Catalyst 4500 family switch supports Layer 3 interfaces with the Cisco IOS IP and IP routing protocols. Layer 3, the network layer, is primarily responsible for the routing of data in packets across logical internetwork paths.

Layer 2, the data link layer, contains the protocols that control the physical layer (Layer 1) and how data is framed before being transmitted on the medium. The Layer 2 function of filtering and forwarding data in frames between two segments on a LAN is known as bridging.

The Catalyst 4500 series switch supports two types of Layer 3 interfaces. The logical Layer 3 VLAN interfaces integrate the functions of routing and bridging. The physical Layer 3 interfaces allow the Catalyst 4500 series switch to be configured like a traditional router.

Page 644 of the Cisco Systems 4500 user manual — Physical Layer 3 Interfaces
Page 644 · click to enlarge
Page 644

Chapter 30 Configuring Layer 3 Interfaces About Layer 3 Interfaces

This section contains the following subsections:

  • Logical Layer 3 VLAN Interfaces, page 30-2
  • Physical Layer 3 Interfaces, page 30-2
  • Understanding SVI Autostate Exclude, page 30-3
  • Understanding Layer 3 Interface Counters, page 30-3

Logical Layer 3 VLAN Interfaces

The logical Layer 3 VLAN interfaces provide logical routing interfaces to VLANs on Layer 2 switches. A traditional network requires a physical interface from a router to a switch to perform inter-VLAN routing. The Catalyst 4500 series switch supports inter-VLAN routing by integrating the routing and bridging functions on a single Catalyst 4500 series switch.

Figure 30-1 shows how the routing and bridging functions in the three physical devices of the traditional network are performed logically on one Catalyst 4500 series switch.

Figure 30-1 Logical Layer 3 VLAN Interfaces for the Catalyst 4500 Series Switch

1.1.1.1 Interface VLAN1

1.1.1.1 Interface VLAN2 2.1.1.1 Interface Ethernet 2.1.1.1

L2 Switch L2 Switch

VLAN1 VLAN2

VLAN1 VLAN2

Host 1 Host 2

Host 1 Host 2

Traditional network topology for routing between VLANS

Logical Inter-VLAN routing on a single Catalyst 4500 series switch

Physical Layer 3 Interfaces

The physical Layer 3 interfaces support capabilities equivalent to a traditional router. These Layer 3 interfaces provide hosts with physical routing interfaces to a Catalyst 4500 series switch.

Figure 30-2 shows how the Catalyst 4500 series switch functions as a traditional router.

Router · Routing · Interface Ethernet

Page 645 of the Cisco Systems 4500 user manual — Understanding Layer 3 Interface Counters
Page 645 · click to enlarge
Page 645

Chapter 30 Configuring Layer 3 Interfaces

About Layer 3 Interfaces

Figure 30-2 Physical Layer 3 Interfaces for the Catalyst 4500 Series Switch

1.1.1.1 Interface Ethernet 2.1.1.1

Host 1 Host 2

Physical Inter-VLAN Routing on a Catalyst 4500 series switch

Understanding SVI Autostate Exclude

To be up/up, a router VLAN interface must fulfill the following general conditions:

  • The VLAN exists and is active on the VLAN database of the switch.
  • The VLAN interface exists on the router and is not administratively down.
  • At least one Layer 2 (access port or trunk) port exists, has a link up on this VLAN, and is in spanning-tree forwarding state on the VLAN.

Ordinarily, when a VLAN interface has multiple ports in the VLAN, the SVI goes down when all the ports in the VLAN go down. The SVI Autostate Exclude feature provides a knob to mark a port so that it is not counted in the SVI up and down calculation and applies to all VLANs that are enabled on that port.

A VLAN interface is brought up after the Layer 2 port has had time to converge (that is, transition from listening-learning to forwarding). This prevents routing protocols and other features from using the VLAN interface as if it were fully operational. It also prevents other problems from occurring, such as routing black holes.

Understanding Layer 3 Interface Counters

When you run IPv4 and IPv6 on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E, packets are routed in hardware by the forwarding engine. They support the following statistics for counting routed packets with a maximum of 4092 interfaces:

  • Input unicast
  • Input multicast

Router · Interface Ethernet · 2/1 2/2

Page 646 of the Cisco Systems 4500 user manual — Counter Mode Configuration CLI Function Maximum
Page 646 · click to enlarge
Page 646

Chapter 30 Configuring Layer 3 Interfaces About Layer 3 Interfaces

  • Output unicast
  • Output multicast

For each counter type, both the number of packets and the total number of bytes received or transmitted are counted. You can collect these statistics uniquely for IPv4 and IPv6 traffic.

Because the total number of supported Layer 3 interfaces exceeds the number of counters supported by hardware, all Layer 3 interfaces might not have counters. You assign counters to Layer 3 interfaces; the default configuration for a Layer 3 interface has no counters.

You can configure collection statistics at an interface level in one of the four ways (see Table 30-1). The maximum number of interfaces applied to the configuration depends on the collection mode.

Table 30-1 Configuring Statistics Collection Node

Counter Mode Configuration CLI Function Maximum

IPv4 only counter ipv4 Only IPv4 statistics are collected.

IPv6 only counter ipv6 Only IPv6 statistics are collected.

IPv4 and IPv6 combined

counter Both IPv4 and IPv6 statistics are collected but are displayed only as a sum.

IPv4 and IPv6 separate

counter ipv4 ipv6 separate Both IPv4 and IPv6

statistics are collected and can be displayed individually.

When mixing these configured modes, the rule is as follows:

(number of v4/v6/v4v6combined interfaces) + 2*(number of v4v6separate interfaces)

The hardware counters are displayed in the output of the show interface command, as shown in the following example. Counter fields that are updated when the counter configuration is present are highlighted.

Switch# show interface gi3/1 GigabitEthernet3/1 is up, line protocol is up (connected) Hardware is Gigabit Ethernet Port, address is 001f.9e9e.f43f (bia 001f.9e9e.f43f) Internet address is 10.10.10.2/24 MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 1000Mb/s, link type is auto, media type is 10/100/1000-TX input flow-control is on, output flow-control is on Auto-MDIX on (operational: on) ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Page 647 of the Cisco Systems 4500 user manual — Configuration Guidelines
Page 647 · click to enlarge
Page 647

Chapter 30 Configuring Layer 3 Interfaces

Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 53000 bits/sec, 122 packets/sec 5 minute output rate 53000 bits/sec, 122 packets/sec L3 in Switched: ucast: 37522 pkt, 752892 bytes - mcast: 0 pkt, 0 bytes <===== (A) L3 out Switched: ucast: 37522 pkt, 752892 bytes - mcast: 0 pkt, 0 bytes <===== (B) IPv6 L3 in Switched: ucast: 24328 pkt, 145968 bytes - mcast: 0 pkt, 0 bytes <==(C) IPv6 L3 out Switched: ucast: 24328 pkt, 145968 bytes - mcast: 0 pkt, 0 bytes <===(D) 103639 packets input, 6632896 bytes, 0 no buffer Received 0 broadcasts (0 IP multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 103674 packets output, 6641715 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

The output of the previous configuration depends on the counter configuration (Table 30-2).

Table 30-2 Fields Updated in Previous Configuration/Counter Configuration

Counter Configuration Updated Fields

IPv4 only (A) and (B) only

IPv6 only (C) and (D) only

IPv4 and IPv6 combined (A) and (B) only

IPv4 and IPv6 separate (A) and (B) for IPv4

(C) and (D) for IPv6

Configuration Guidelines

The Catalyst 4500 series switch supports AppleTalk routing and IPX routing. For AppleTalk routing and IPX routing information, refer to “Configuring AppleTalk” and “Configuring Novell IPX” in the Cisco IOS AppleTalk and Novell IPX configuration guides at the following URLs:

http://www.cisco.com/en/US/docs/ios/at/configuration/guide/12_4/atk_12_4_book.html

http://www.cisco.com/en/US/docs/ios/novipx/configuration/guide/config_novellipx_ps6350_TSD_Pro ducts_Configuration_Guide_Chapter.html

A Catalyst 4500 series switch does not support subinterfaces or the encapsulation keyword on Layer 3 Fast Ethernet, Gigabit Ethernet, 10-Gigabit Ethernet interfaces.

Configuration Guidelines

Page 648 of the Cisco Systems 4500 user manual — Configuring Logical Layer 3 VLAN Interfaces
Page 648 · click to enlarge
Page 648

Chapter 30 Configuring Layer 3 Interfaces Configuring Logical Layer 3 VLAN Interfaces

Configuring Logical Layer 3 VLAN Interfaces

To configure logical Layer 3 VLAN interfaces, perform this task:

Step 1 Switch(config)# vlan vlan_ID Creates the VLAN.

Step 2 Switch(config)# interface vlan vlan_ID Selects an interface to configure.

Step 3 Switch(config-if)# ip address ip_address subnet_mask Configures the IP address and IP subnet.

Step 4 Switch(config-if)# no shutdown Enables the interface.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# copy running-config startup-config Saves your configuration changes to NVRAM.

Step 7 Switch# show interfaces [type slot/interface] Switch# show ip interfaces [type slot/interface] Switch# show running-config interfaces [type slot/interface] Switch# show running-config interfaces vlan vlan_ID

Verifies the configuration.

This example shows how to configure the logical Layer 3 VLAN interface VLAN 2 and assign an IP address:

Switch> enable Switch# config term Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vlan 2 Switch(config)# interface vlan 2 Switch(config-if)# ip address 10.1.1.1 255.255.255.248 Switch(config-if)# no shutdown Switch(config-if)# end

This example shows how to use the show interfaces command to display the interface IP address configuration and status of Layer 3 VLAN interface VLAN 2:

Switch# show interfaces vlan 2 Vlan2 is up, line protocol is down Hardware is Ethernet SVI, address is 00D.588F.B604 (bia 00D.588F.B604) Internet address is 172.20.52.106/29 MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec

Page 649 of the Cisco Systems 4500 user manual — Configuring SVI Autostate Exclude
Page 649 · click to enlarge
Page 649

Chapter 30 Configuring Layer 3 Interfaces

Configuring VLANs as Layer 3 Interfaces

5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 interface resets 0 output buffer failures, 0 output buffers swapped out Switch#

This example shows how to use the show running-config command to display the interface IP address configuration of Layer 3 VLAN interface VLAN 2:

Switch# show running-config Building configuration...

Current configuration : ! interface Vlan2 ip address 10.1.1.1 255.255.255.248 ! ip classless no ip http server ! !line con 0 line aux 0 line vty 0 4 ! end

Configuring VLANs as Layer 3 Interfaces

This section consists of the following subsections:

  • Configuring SVI Autostate Exclude, page 30-7
  • Configuring IP MTU Sizes, page 30-9
  • Configuring Layer 3 Interface Counters, page 30-10

Configuring SVI Autostate Exclude

The SVI Autostate Exclude feature shuts down (or brings up) the Layer 3 interfaces of a switch when the following port configuration changes occur:

  • When the last port on a VLAN goes down, the Layer 3 interface on that VLAN is shut down (SVIautostated).
  • When the first port on the VLAN is brought back up, the Layer 3 interface on the VLAN that was previously shut down is brought up.

SVI Autostate Exclude enables you to exclude the access ports and trunks in defining the status of the SVI (up or down) even if it belongs to the same VLAN. If the excluded access port and trunk is in up state and other ports are in down state in the VLAN, the SVI state is changed to down.

To make the SVI state up, at least one port in the VLAN should be up and not excluded. This action helps to exclude the monitoring port status when you are determining the status of the SVI.

Page 650 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interfaces
Page 650 · click to enlarge
Page 650

Chapter 30 Configuring Layer 3 Interfaces Configuring VLANs as Layer 3 Interfaces

To apply SVI Autostate Exclude, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode.

Step 3 Switch(config-if)# switchport autostate exclude Excludes the access ports and trunks in defining the status of an SVI (up or down).

Step 4 Switch(config)# end Exits configuration mode.

Step 5 Switch# show run int g3/4 Displays the running configuration.

Step 6 Switch# show int g3/4 switchport Verifies the configuration.

This example shows how to apply SVI Autostate Exclude on interface g3/1:

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface g3/1 Switch(config-if)# switchport autostate exclude Switch(config-if)# end Switch# show run int g3/4 Building configuration...

Current configuration : 162 bytes ! interface GigabitEthernet3/4 switchport trunk encapsulation dot1q switchport trunk allowed vlan 2,3 switchport autostate exclude <===== switchport mode trunk end

Switch# show int g3/4 switchport Name: Gi3/4 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk associations: none Administrative private-vlan trunk mappings: none Operational private-vlan: none Trunking VLANs Enabled: 2,3 Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Autostate mode exclude <======

Unknown unicast blockeddisabled Unknown multicast blocked: disabled Appliance trust: none Switch#
Page 651 of the Cisco Systems 4500 user manual — Configuring IP MTU Sizes
Page 651 · click to enlarge
Page 651

Chapter 30 Configuring Layer 3 Interfaces

Configuring VLANs as Layer 3 Interfaces

Configuring IP MTU Sizes

You can set the protocol-specific maximum transmission unit (MTU) size of IPv4 or IPv6 packets that are sent on an interface.

For information on MTU limitations, refer to “Maximum Transmission Units” on page 23.

Note To set the nonprotocol-specific MTU value for an interface, use the mtu interface configuration command. Changing the MTU value (with the mtu interface configuration command) can affect the IP MTU value. If the current IP MTU value matches the MTU value, and you change the MTU value, the IP MTU value is modified automatically to match the new MTU. However, the reverse is not true; changing the IP MTU value has no effect on the value for the mtu command.

For information on how to configure MTU size, refer to “Configuring MTU Sizes” on page 25.

To set the protocol-specific maximum transmission unit (MTU) size of IPv4 or IPv6 packets sent on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode.

Step 3 Switch(config-if)# [no] ip mtu mtu_size or Switch(config-if)# [no] ipv6 mtu mtu_size

Configures the IPv4 MTU size Configures the IPv6 MTU size.

The no form of the command reverts to the default MTU size (1500 bytes).

Step 4 Switch(config-if)# exit Exits configuration interface mode.

Step 5 Switch(config)# end Exits configuration mode.

Step 6 Switch# show run interface interface-id Displays the running configuration.

This example shows how to configure IPv4 MTU on an interface:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface vlan 1 Switch(config-if)# ip mtu 68 Switch(config-if)# exit Switch(config)# end Switch# show ip interface vlan 1 Vlan1 is up, line protocol is up Internet address is 10.10.10.1/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 68 bytes Helper address is not set (continued)

Page 652 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interface Counters
Page 652 · click to enlarge
Page 652

Chapter 30 Configuring Layer 3 Interfaces Configuring VLANs as Layer 3 Interfaces

The following example shows how to configure IPv6 MTU on an interface:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface vlan 1 Switch(config-if)# ipv6 mtu 1280 Switch(config)# end

This example shows how to verify the configuration

Switch# show ipv6 interface vlan 1 Vlan1 is up, line protocol is up IPv6 is enabled, link-local address is FE80::214:6AFF:FEBC:DEEA Global unicast address(es): 1001::1, subnet is 1001::/64 Joined group address(es): FF02::1 FF02::1:FF00:1 FF02::1:FFBC:DEEA MTU is 1280 bytes (continued)

% Hardware MTU table exhausted

In this situation, the IPv6 MTU value programmed in hardware differs from the IPv6 interface MTU value. This situation occurs if no room exists in the hardware MTU table to store additional values. You must free up some space in the table by unconfiguring some unused MTU values and subsequently disable and reenable IPv6 on the interface or reapply the MTU configuration.

Configuring Layer 3 Interface Counters

To configure Layer 3 interface counters (assign counters to a Layer 3 interface), perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode.

Page 653 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interfaces
Page 653 · click to enlarge
Page 653

Chapter 30 Configuring Layer 3 Interfaces

Configuring VLANs as Layer 3 Interfaces

Step 3 Switch(config-if)# counter {ipv4 | ipv6 | ipv4 ipv6 separate>

Enables counters.

counter —Enables collection of IPv4 and IPv6 statistics and displays them as a sum

counter ipv4 — Enables collection of IPv4 statistics only

counter ipv6 — Enables collection of IPv6 statistics only

counter ipv4 ipv6 separate —Enables collection of IPv4 and IPv6 statistics and displays them individually

Step 4 Switch(config)# end Exits configuration mode.

Step 5 Switch# show run interface interface-id Displays the running configuration.

This example shows how to enable counters on interface VLAN 1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface vlan 1 Switch(config-if)# counter ipv4 Switch(config-if)# end Switch# 00:17:15: %SYS-5-CONFIG_I: Configured from console by console Switch# show run interface vlan 1 Building configuration...

Current configuration63 bytes ! interface Vlan1 ip address 10.0.0.1 255.0.0.0 counter ipv4 end

If you have already assigned the maximum number of counters, the counter command fails and displays an error message:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fa3/2 Switch(config-if)# no switchport Switch(config-if)# counter ipv6 Counter resource exhausted for interface fa3/2 Switch(config-if)# end Switch# 00:24:18: %SYS-5-CONFIG_I: Configured from console by console

In this situation, you must release a counter from another interface for use by the new interface.

Page 654 of the Cisco Systems 4500 user manual — Configuring Physical Layer 3 Interfaces
Page 654 · click to enlarge
Page 654

Chapter 30 Configuring Layer 3 Interfaces Configuring Physical Layer 3 Interfaces

Configuring Physical Layer 3 Interfaces

To configure physical Layer 3 interfaces, perform this task:

Step 1 Switch(config)#ip routing Enables IP routing (required only if disabled)

Step 2 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port} | {port-channel port_channel_number}

Selects an interface to configure.

Step 3 Switch(config-if)#no switchport Converts this port from physical Layer 2 port to physical Layer 3 port.

Step 4 Switch(config-if)# ip address ip_address subnet_mask

Configures the IP address and IP subnet.

Step 5 Switch(config-if)# no shutdown Enables the interface.

Step 6 Switch(config-if)# end Exits configuration mode.

Step 7 Switch# copy running-config startup-config Saves your configuration changes to NVRAM.

Step 8 Switch# show interfaces [type slot/interface] Switch# show ip interfaces [type slot/interface] Switch# show running-config interfaces [type slot/interface]

Verifies the configuration.

This example shows how to configure an IP address on Fast Ethernet interface 2/1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip routing Switch(config)# interface fastethernet 2/1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.1.1.1 255.255.255.248 Switch(config-if)# no shutdown Switch(config-if)# end Switch#

This example shows how to use the show running-config command to display the interface IP address configuration of Fast Ethernet interface 2/1:

Switch# show running-config Building configuration... ! interface FastEthernet2/1 no switchport ip address 10.1.1.1 255.255.255.248 ! … ip classless no ip http server ! ! line con 0 line aux 0

Page 655 of the Cisco Systems 4500 user manual — About EIGRP Stub Routing
Page 655 · click to enlarge
Page 655

Chapter 30 Configuring Layer 3 Interfaces

Configuring EIGRP Stub Routing

line vty 0 4 ! end

Configuring EIGRP Stub Routing

This section consists of the following subsections:

  • About EIGRP Stub Routing, page 30-13
  • Configuring EIGRP Stub Routing, page 30-14
  • Monitoring and Maintaining EIGRP, page 30-19
  • EIGRP Configuration Examples, page 30-19

About EIGRP Stub Routing

The EIGRP stub routing feature, available in all images, reduces resource utilization by moving routed traffic closer to the end user.

The IP base image contains only EIGRP stub routing. The IP services image contains complete EIGRP routing.

In a network using EIGRP stub routing, the only route for IP traffic to follow to the user is through a switch that is configured with EIGRP stub routing. The switch sends the routed traffic to interfaces that are configured as user interfaces or are connected to other devices.

When using EIGRP stub routing, you need to configure the distribution and remote switches to use EIGRP, and to configure only the switch as a stub. Only specified routes are propagated from the switch. The switch responds to all queries for summaries, connected routes, and routing updates.

Any neighbor that receives a packet informing it of the stub status does not query the stub switch for any routes, and a switch that has a stub peer does not query that peer. The stub switch depends on the distribution switch to send the proper updates to all peers.

In Figure 30-3, switch B is configured as an EIGRP stub switch. Switches A and C are connected to the rest of the WAN. Switch B advertises connected, static, redistribution, and summary routes from switch A and C to Hosts A, B, and C. Switch B does not advertise any routes learned from switch A (and the reverse).

Page 656 of the Cisco Systems 4500 user manual — Configuring EIGRP Stub Routing
Page 656 · click to enlarge
Page 656

Chapter 30 Configuring Layer 3 Interfaces Configuring EIGRP Stub Routing

Figure 30-3 EIGRP Stub Switch Configuration

Switch B Switch A

Host A Host B

For more information about EIGRP stub routing, see the “Configuring EIGRP Stub Routing” part of the Cisco IOS IP Configuration Guide, Volume 2 of 3: Routing Protocols, Release 12.2.

Configuring EIGRP Stub Routing

The EIGRP stub routing feature improves network stability, reduces resource utilization, and simplifies stub switch configuration.

Stub routing is commonly used in a hub-and-spoke network topology. In a hub-and-spoke network, one or more end (stub) networks are connected to a remote switch (the spoke) that is connected to one or more distribution switches (the hub). The remote switch is adjacent only to one or more distribution switches. The only route for IP traffic to follow into the remote switch is through a distribution switch. This type of configuration is commonly used in WAN topologies where the distribution switch is directly connected to a WAN. The distribution switch can be connected to many more remote switches. Often, the distribution switch is connected to 100 or more remote routers. In a hub-and-spoke topology, the remote router must forward all nonlocal traffic to a distribution router, so it becomes unnecessary for the remote router to hold a complete routing table. Generally, the distribution router need not send anything more than a default route to the remote router.

When using the EIGRP stub routing feature, you need to configure the distribution and remote routers to use EIGRP, and to configure only the remote router as a stub. Only specified routes are propagated from the remote (stub) router. The stub router responds to all queries for summaries, connected routes, redistributed static routes, external routes, and internal routes with the message “inaccessible.” A router that is configured as a stub sends a special peer information packet to all neighboring routers to report its status as a stub router.

Any neighbor that receives a packet informing it of the stub status does not query the stub router for any routes, and a router that has a stub peer does not query that peer. The stub router depends on the distribution router to send the proper updates to all peers.

Figure 30-4 shows a simple hub-and-spoke configuration.

Routed to WAN · Switch C · Host C

Page 657 of the Cisco Systems 4500 user manual — Dual-Homed Remote Topology
Page 657 · click to enlarge
Page 657

Chapter 30 Configuring Layer 3 Interfaces

Configuring EIGRP Stub Routing

Figure 30-4 Simple Hub-and-Spoke Network

10.1.1.0/24

The stub routing feature does not prevent routes from being advertised to the remote router. In the example in Figure 30-4, the remote router can access the corporate network and the Internet using a distribution router only. In this example, having a full route table on the remote router serves no purpose because the path to the corporate network and the Internet always uses a distribution router. The larger route table only reduces the amount of memory required by the remote router. Bandwidth and memory can be conserved by summarizing and filtering routes in the distribution router. The remote router need not receive routes that have been learned from other networks because the remote router must send all nonlocal traffic, regardless of destination, to the distribution router. If a true stub network is desired, the distribution router should be configured to send only a default route to the remote router. The EIGRP stub routing feature does not automatically enable summarization on the distribution router. In most cases, the network administrator needs to configure summarization on the distribution routers.

Without the stub feature, even after the routes that are sent from the distribution router to the remote router have been filtered or summarized, a problem might occur. If a route is lost somewhere in the corporate network, EIGRP could send a query to the distribution router, which in turn sends a query to the remote router even if routes are being summarized. If there is a problem communicating over the WAN link between the distribution router and the remote router, an EIGRP stuck in active (SIA) condition could occur and cause instability elsewhere in the network. The EIGRP stub routing feature allows a network administrator to prevent queries from being sent to the remote router.

Dual-Homed Remote Topology

In addition to a simple hub-and-spoke network where a remote router is connected to a single distribution router, the remote router can be dual-homed to two or more distribution routers. This configuration adds redundancy and introduces unique issues, and the stub feature helps to address some of these issues.

A dual-homed remote router has two or more distribution (hub) routers. However, the principles of stub routing are the same as they are with a hub-and-spoke topology. Figure 30-5 shows a common dual-homed remote topology with one remote router, but 100 or more routers could be connected on the same interfaces on distribution router 1 and distribution router 2. The remote router uses the best route to reach its destination. If distribution router 1 experiences a failure, the remote router can still use distribution router 2 to reach the corporate network.

Show 8 more labels / short text on this page
Internet · Corporate · network · Distribution · Remote · router · router (spoke) · (hub)
Page 658 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interfaces
Page 658 · click to enlarge
Page 658

Chapter 30 Configuring Layer 3 Interfaces Configuring EIGRP Stub Routing

Figure 30-5 Simple Dual-Homed Remote Topology

10.1.1.0/24

Figure 30-5 shows a simple dual-homed remote with one remote router and two distribution routers. Both distribution routers maintain routes to the corporate network and stub network 10.1.1.0/24.

Dual-homed routing can introduce instability into an EIGRP network. In Figure 30-6, distribution router 1 is directly connected to network 10.3.1.0/24. If summarization or filtering is applied on distribution router 1, the router advertises network 10.3.1.0/24 to all of its directly connected EIGRP neighbors (distribution router 2 and the remote router).

Figure 30-6 Dual-Homed Remote Topology With Distribution Router 1 Connected to Two Networks

10.3.1.0/24

10.2.1.0/24

10.1.1.0/24

Figure 30-6 shows a simple dual-homed remote router where distribution router 1 is connected to both network 10.3.1.0/24 and network 10.2.1.0/24.

If the 10.2.1.0/24 link between distribution router 1 and distribution router 2 has failed, the lowest cost path to network 10.3.1.0/24 from distribution router 2 is using the remote router (see Figure 30-7). This route is not desirable because the traffic that was previously traveling across the corporate network 10.2.1.0/24 is now sent across a much lower bandwidth connection. The over utilization of the lower bandwidth WAN connection can cause a number of problems that might affect the entire corporate

Show 20 more labels / short text on this page
Distribution · router 1 · (hub) · Corporate · network · Remote · router (spoke) · Distribution · router 2 · (hub) · Distribution · router 1 · (hub) · Corporate · network · Remote · router (spoke) · Distribution · router 2 · (hub)
Page 659 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interfaces
Page 659 · click to enlarge
Page 659

Chapter 30 Configuring Layer 3 Interfaces

Configuring EIGRP Stub Routing

network. The use of the lower bandwidth route that passes using the remote router might cause WAN EIGRP distribution routers to be dropped. Serial lines on distribution and remote routers could also be dropped, and EIGRP SIA errors on the distribution and core routers could occur.

Figure 30-7 Dual-Homed Remote Topology with a Failed Route to a Distribution Router

10.3.1.0/24

10.2.1.0/24

10.1.1.0/24

It is not desirable for traffic from distribution router 2 to travel through any remote router in order to reach network 10.3.1.0/24. If the links are sized to handle the load, it is acceptable to use one of the backup routes. However, most networks of this type have remote routers located at remote offices with relatively slow links. This problem can be prevented if proper summarization is configured on the distribution router and remote router.

It is typically undesirable for traffic from a distribution router to use a remote router as a transit path. A typical connection from a distribution router to a remote router has much less bandwidth than a connection at the network core. Attempting to use a remote router with a limited bandwidth connection as a transit path generally produces excessive congestion to the remote router. The EIGRP stub routing feature can prevent this problem by preventing the remote router from advertising core routes back to distribution routers. Routes learned by the remote router from distribution router 1 are not advertised to distribution router 2. Because the remote router does not advertise core routes to distribution router 2, the distribution router does not use the remote router as a transit for traffic destined for the network core.

The EIGRP stub routing feature can help to provide greater network stability. In the event of network instability, this feature prevents EIGRP queries from being sent over limited bandwidth links to nontransit routers. Instead, distribution routers to which the stub router is connected answer the query on behalf of the stub router. This feature greatly reduces the chance of further network instability due to congested or problematic WAN links. The EIGRP stub routing feature also simplifies the configuration and maintenance of hub-and-spoke networks. When stub routing is enabled in dual-homed remote configurations, it is no longer necessary to configure filtering on remote routers to prevent those remote routers from appearing as transit paths to the hub routers.

Show 10 more labels / short text on this page
Distribution · router 1 · (hub) · Corporate · network · Remote · router (spoke) · Distribution · router 2 · (hub)
Page 660 of the Cisco Systems 4500 user manual — Verifying EIGRP Stub Routing
Page 660 · click to enlarge
Page 660

Chapter 30 Configuring Layer 3 Interfaces Configuring EIGRP Stub Routing

EIGRP Stub Routing Configuration Tasks

To configure EIGRP stub routing, perform the tasks described in the following sections. The tasks in the first section are required; the task in the last section is optional.

  • Configuring EIGRP Stub Routing (required)
  • Verifying EIGRP Stub Routing (optional)

Configuring EIGRP Stub Routing

To configure a remote or spoke router for EIGRP stub routing, perform this task:

Step 1 Switch(config)# router eigrp 1 Configures a remote or distribution router to run an EIGRP process.

Step 2 Switch(config-router)# network network-number Specifies the network address of the EIGRP distribution router.

Step 3 Switch(config-router)# eigrp stub [receive-only | connected | static | summary | redistributed]

Configures a remote router as an EIGRP stub router.

The receive-only keyword sets the router as a receive-only neighbor.

The connected keyword advertises connected routes.

The static keyword advertises static routes.

The summary keyword advertises summary routes.

The redistributed keyword enables you to send routes that have been redistributed from other dynamic routing protocols.

Verifying EIGRP Stub Routing

To verify that a remote router has been configured as a stub router with EIGRP, use the show ip eigrp neighbor detail command from the distribution router in privileged EXEC mode. The last line of the output shows the stub status of the remote or spoke router. The following example shows output is from the show ip eigrp neighbor detail command:

Switch# show ip eigrp neighbor detail IP-EIGRP neighbors for process 1 H Address Interface Hold Uptime SRTT RTO Q Seq Type

Page 661 of the Cisco Systems 4500 user manual — Route Summarization Example
Page 661 · click to enlarge
Page 661

Chapter 30 Configuring Layer 3 Interfaces

Configuring EIGRP Stub Routing

(sec) (ms) Cnt Num 0 10.1.1.2 Se3/1 11 00:00:59 1 4500 0 7 Version 12.1/1.2, Retrans: 2, Retries: 0 Stub Peer Advertising ( CONNECTED SUMMARY ) Routes

Monitoring and Maintaining EIGRP

To delete neighbors from the neighbor table, use the following command:

Switch# clear ip eigrp neighbors [ip-address | interface]

Deletes neighbors from the neighbor table.

To display various routing statistics, use the following commands:

Switch# show ip eigrp interfaces [interface] [as-number] Displays information about interfaces configured for EIGRP.

Switch# show ip eigrp neighbors [type|number|static] Displays the EIGRP discovered neighbors.

Switch# show ip eigrp topology [autonomous-system-number | [[ip-address] mask]]

Displays the EIGRP topology table for a given process.

Switch# show ip eigrp traffic [autonomous-system-number] Displays the number of packets sent and received for all or a specified EIGRP process.

EIGRP Configuration Examples

This section contains the following examples:

  • Route Summarization Example
  • Route Authentication Example
  • Stub Routing Example

Route Summarization Example

The following example disables autosummarization and causes EIGRP to summarize network 10.0.0.0 out Ethernet interface 0 only:

interface Ethernet 0 ip summary-address eigrp 1 10.0.0.0 255.0.0.0 ! router eigrp 1 network 172.16.0.0 no auto-summary

Note You should not use the ip summary-address eigrp summarization command to generate the default route (0.0.0.0) from an interface because it creates an EIGRP summary default route to the null 0 interface with an administrative distance of 5. The low administrative distance of this default route can cause this route to displace default routes learned from other neighbors from the routing table. If the

Page 662 of the Cisco Systems 4500 user manual — Stub Routing Example
Page 662 · click to enlarge
Page 662

Chapter 30 Configuring Layer 3 Interfaces Configuring EIGRP Stub Routing

default route learned from the neighbors is displaced by the summary default route, or if the summary route is the only default route present, all traffic destined for the default route does not leave the router. Instead, this traffic is sent to the null 0 interface where it is dropped. The recommended way to send only the default route out a given interface is to use a distribute-list command. You can configure this command to filter all outbound route advertisements sent out the interface with the exception of the default (0.0.0.0).

Route Authentication Example

The following example enables MD5 authentication on EIGRP packets in autonomous system 1:

Router A

interface ethernet 1 ip authentication mode eigrp 1 md5 ip authentication key-chain eigrp 1 holly key chain holly key 1 key-string 0987654321 accept-lifetime 04:00:00 Dec 4 1996 infinite send-lifetime 04:00:00 Dec 4 1996 04:48:00 Dec 4 1996 exit key 2 key-string 1234567890 accept-lifetime 04:00:00 Dec 4 1996 infinite send-lifetime 04:45:00 Dec 4 1996 infinite

Router B

interface ethernet 1 ip authentication mode eigrp 1 md5 ip authentication key-chain eigrp 1 mikel key chain mikel key 1 key-string 0987654321 accept-lifetime 04:00:00 Dec 4 1996 infinite send-lifetime 04:00:00 Dec 4 1996 infinite exit key 2 key-string 1234567890 accept-lifetime 04:00:00 Dec 4 1996 infinite send-lifetime 04:45:00 Dec 4 1996 infinite

Router A accepts and attempts to verify the MD5 digest of any EIGRP packet with a key equal to 1. It also accepts a packet with a key equal to 2. All other MD5 packets are dropped. Router A sends all EIGRP packets with key 2.

Router B accepts key 1 or key 2, and sends key 1. In this scenario, MD5 authenticates.

Stub Routing Example

A router that is configured as a stub with the eigrp stub command shares connected and summary routing information with all neighbor routers by default. Four optional keywords can be used with the eigrp stub command to modify this operation:

  • receive-only
  • connected
Page 663 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interfaces
Page 663 · click to enlarge
Page 663

Chapter 30 Configuring Layer 3 Interfaces

Configuring EIGRP Stub Routing

  • static
  • summary

This section provides configuration examples for all forms of the eigrp stub command. The eigrp stub command can be modified with several options, and these options can be used in any combination except for the receive-only keyword. The receive-only keyword restricts the router from sharing any of its routes with any other router in that EIGRP autonomous system, and the receive-only keyword does not permit any other option to be specified because it prevents any type of route from being sent. The three other optional keywords (connected, static, and summary) can be used in any combination but cannot be used with the receive-only keyword. If any of these three keywords is used individually with the eigrp stub command, connected and summary routes are not sent automatically.

The connected keyword permits the EIGRP stub routing feature to send connected routes. If the connected routes are not covered by a network statement, it may be necessary to redistribute connected routes with the redistribute connected command under the EIGRP process. This option is enabled by default.

The static keyword permits the EIGRP stub routing feature to send static routes. Without the static keyword, EIGRP does not send any static routes, including internal static routes that normally are automatically redistributed. It is still necessary to redistribute static routes with the redistribute static command.

The summary keyword permits the EIGRP stub routing feature to send summary routes. Summary routes can be created manually with the summary address command or automatically at a major network border router with the auto-summary command enabled. This option is enabled by default.

In the following example, the eigrp stub command is used to configure the router as a stub that advertises connected and summary routes:

router eigrp 1 network 10.0.0.0 eigrp stub

In the following example, the eigrp stub connected static command is used to configure the router as a stub that advertises connected and static routes (sending summary routes is not permitted):

router eigrp 1 network 10.0.0.0 eigrp stub connected static

In the following example, the eigrp stub receive-only command is used to configure the router as a stub, and connected, summary, or static routes is not sent:

router eigrp 1 network 10.0.0.0 eigrp stub receive-only

In the following example, the eigrp stub redistributed command is used to configure the router as a stub that advertises redistributed routes (sending connected, static, or summary routes is not permitted):

router eigrp 1 network 10.0.0.0 eigrp stub redistributed

In the following example, the eigrp stub command is used to configure the router as a stub that advertises redistributed, static, connected and summary routes:

router eigrp 1 network 10.0.0.0 eigrp stub connected static summary redistributed

Page 664 of the Cisco Systems 4500 user manual — Configuring Layer 3 Interfaces
Page 664 · click to enlarge
Page 664

Chapter 30 Configuring Layer 3 Interfaces Configuring EIGRP Stub Routing

Page 665 of the Cisco Systems 4500 user manual — CEF Features
Page 665 · click to enlarge
Page 665

C H A P T E R

Configuring Cisco Express Forwarding

This chapter describes Cisco Express Forwarding (CEF) on the Catalyst 4500 series switch. It also provides guidelines, procedures, and examples to configure this feature.

This chapter includes the following major sections:

  • About CEF, page 31-1
  • Catalyst 4500 Series Switch Implementation of CEF, page 31-3
  • CEF Configuration Restrictions, page 31-6
  • Configuring CEF, page 31-6
  • Monitoring and Maintaining CEF, page 31-8

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About CEF

This section contains information on the two primary components that comprise the CEF operation:

  • CEF Features, page 31-1
  • Forwarding Information Base, page 31-2
  • Adjacency Tables, page 31-2

CEF Features

CEF is advanced Layer 3 IP switching technology that optimizes performance and scalability for large networks with dynamic traffic patterns or networks with intensive web-based applications and interactive sessions.

Page 666 of the Cisco Systems 4500 user manual — Adjacency Resolution
Page 666 · click to enlarge
Page 666

Chapter 31 Configuring Cisco Express Forwarding About CEF

CEF provides the following features:

  • Improves performance over the caching schemes of multilayer switches, which often flush the entire cache when information changes in the routing tables.
  • Provides load balancing that distributes packets across multiple links based on Layer 3 routing information. If a network device discovers multiple paths to a destination, the routing table is updated with multiple entries for that destination. Traffic to that destination is then distributed among the various paths.

CEF stores information in several data structures rather than the route cache of multilayer switches. The data structures optimize lookup for efficient packet forwarding.

Forwarding Information Base

The Forwarding Information Base (FIB) is a table that contains a copy of the forwarding information in the IP routing table. When routing or topology changes occur in the network, the route processor updates the IP routing table and CEF updates the FIB. Because there is a one-to-one correlation between FIB entries and routing table entries, the FIB contains all known routes and eliminates the need for route cache maintenance that is associated with switching paths, such as fast switching and optimum switching. CEF uses the FIB to make IP destination-based switching decisions and maintain next-hop address information based on the information in the IP routing table.

On the Catalyst 4500 series switches, CEF loads the FIB in to the integrated switching engine hardware to increase the performance of forwarding. The integrated switching engine has a finite number of forwarding slots for storing routing information. If this limit is exceeded, CEF is automatically disabled and all packets are forwarded in software. In this situation, you should reduce the number of routes on the switch and then reenable hardware switching with the ip cef command.

Adjacency Tables

In addition to the FIB, CEF uses adjacency tables to prepend Layer 2 addressing information. Nodes in the network are termed adjacent if they are within a single hop from each other. The adjacency table maintains Layer 2 next-hop addresses for all FIB entries.

Adjacency Discovery

The adjacency table is populated as new adjacent nodes are discovered. Each time an adjacency entry is created (such as using the Address Resolution Protocol (ARP), a link-layer header for that adjacent node is stored in the adjacency table. Once a route is determined, the link-layer header points to a next hop and corresponding adjacency entry. The link-layer header is subsequently used for encapsulation during CEF switching of packets.

Adjacency Resolution

A route might have several paths to a destination prefix, such as when a router is configured for simultaneous load balancing and redundancy. For each resolved path, a pointer is added for the adjacency corresponding to the next-hop interface for that path. This method is used for load balancing across several paths.

Page 667 of the Cisco Systems 4500 user manual — Catalyst 4500 Series Switch Implementation of CEF
Page 667 · click to enlarge
Page 667

Chapter 31 Configuring Cisco Express Forwarding

Catalyst 4500 Series Switch Implementation of CEF

Adjacency Types That Require Special Handling

In addition to adjacencies for next-hop interfaces (host-route adjacencies), other types of adjacencies are used to expedite switching when certain exception conditions exist. When the prefix is defined, prefixes requiring exception processing are cached with one of the special adjacencies listed in Table 31-1.

Table 31-1 Adjacency Types for Exception Processing

Adjacency Type Processing Method

Null adjacency Packets destined for a Null0 interface are dropped. A Null0 interface can be used as an effective form of access filtering.

Glean adjacency When a router is connected directly to several hosts, the FIB table on the router maintains a prefix for the subnet rather than for each individual host. The subnet prefix points to a glean adjacency. When packets must be forwarded to a specific host, the adjacency database is gleaned for the specific prefix.

Punt adjacency Features that require special handling or features that are not yet supported by CEF switching are sent (punted) to the next higher switching level.

Discard adjacency Packets are discarded.

Drop adjacency Packets are dropped.

Unresolved Adjacency

When a link-layer header is prepended to packets, FIB requires the prepend to point to an adjacency corresponding to the next hop. If an adjacency was created by FIB and was not discovered through a mechanism such as ARP, the Layer 2 addressing information is not known and the adjacency is considered incomplete. When the Layer 2 information is known, the packet is forwarded to the route processor, and the adjacency is determined through ARP.

Catalyst 4500 Series Switch Implementation of CEF

Catalyst 4500 series switches support an ASIC-based integrated switching engine that provides these features:

  • Ethernet bridging at Layer 2
  • IP routing at Layer 3

Because the ASIC is specifically designed to forward packets, the integrated switching engine hardware can run this process much faster than CPU subsystem software.

Figure 31-1 shows a high-level view of the ASIC-based Layer 2 and Layer 3 switching process on the integrated switching engine.

Page 668 of the Cisco Systems 4500 user manual — Hardware and Software Switching
Page 668 · click to enlarge
Page 668

Chapter 31 Configuring Cisco Express Forwarding Catalyst 4500 Series Switch Implementation of CEF

Figure 31-1 Logical L2/L3 Switch Components

Integrated Switching Engine (ASIC)

VLAN1

VLAN2

The integrated switching engine performs inter-VLAN routing on logical Layer 3 interfaces with the ASIC hardware. The ASIC hardware also supports a physical Layer 3 interface that can be configured to connect with a host, a switch, or a router.

This section contains the following subsections:

  • Hardware and Software Switching, page 31-4
  • Load Balancing, page 31-6
  • Software Interfaces, page 31-6

Hardware and Software Switching

For the majority of packets, the integrated switching engine performs the packet forwarding function in hardware. These packets are hardware-switched at very high rates. Exception packets are forwarded by the CPU subsystem software. Statistic reports should show that the integrated switching engine is forwarding the vast majority of packets in hardware. Software forwarding is significantly slower than hardware forwarding, but packets forwarded by the CPU subsystem do not reduce hardware forwarding speed.

Figure 31-2 shows a logical view of the integrated switching engine and the CPU subsystem switching components.

Show 5 more labels / short text on this page
L3 physical interface · Gig 1/1 · Logical Router · L3 logical interfaces · L2 switchports
Page 669 of the Cisco Systems 4500 user manual — Software Switching
Page 669 · click to enlarge
Page 669

Chapter 31 Configuring Cisco Express Forwarding

Catalyst 4500 Series Switch Implementation of CEF

Figure 31-2 Hardware and Software Switching Components

Integrated Switching Engine CPU Subsystem

VLAN1

The integrated switching engine performs inter-VLAN routing in hardware. The CPU subsystem software supports Layer 3 interfaces to VLANs that use Subnetwork Access Protocol (SNAP) encapsulation. The CPU subsystem software also supports generic routing encapsulation (GRE) tunnel.

Hardware Switching

Hardware switching is the normal operation for Supervisor Engine III and Supervisor Engine IV.

Software Switching

Software switching occurs when traffic cannot be processed in hardware. The following types of exception packets are processed in software at a much slower rate:

  • Packets that use IP header options
  • Packets that have an expiring IP time-to-live (TTL) counter
  • Packets that are forwarded to a tunnel interface
  • Packets that arrive with non-supported encapsulation types
  • Packets that are routed to an interface with non-supported encapsulation types
  • Packets that exceed the MTU of an output interface and must be fragmented
  • Packets that require an IGMP redirect for routing
  • 802.3 Ethernet packets
Show 7 more labels / short text on this page
L3 physical interface · Gig 1/1 · Router · L3 interfaces · VLAN2 GRE tunnel · GRE tunnel · L2 switchports
Page 670 of the Cisco Systems 4500 user manual — Enabling CEF
Page 670 · click to enlarge
Page 670

Chapter 31 Configuring Cisco Express Forwarding CEF Configuration Restrictions

Load Balancing

The Catalyst 4500 series switch supports load balancing for routing packets in the integrated switching engine hardware. Load balancing is always enabled. It works when multiple routes for the same network with different next-hop addresses are configured. These routes can be configured either statically or through a routing protocol such as OSPF or EIGRP.

The hardware makes a forwarding decision by using a hardware load sharing hash function to compute a value, based on the source and destination IP addresses and the source and destination TCP port numbers (if available). This load sharing hash value is then used to select which route to use to forward the packet. All hardware switching within a particular flow (such as a TCP connection) is routed to the same next hop, which reduces the chance that packet reordering occurs. Up to eight different routes for a particular network are supported.

Software Interfaces

Cisco IOS for the Catalyst 4500 series switch supports GRE and IP tunnel interfaces that are not part of the hardware forwarding engine. All packets that flow to or from these interfaces must be processed in software and have a significantly lower forwarding rate than that of hardware-switched interfaces. Also, Layer 2 features are not supported on these interfaces.

CEF Configuration Restrictions

The CEF integrated switching engine supports only ARPA and ISL/802.1q encapsulation types for Layer 3 switching in hardware. The CPU subsystem supports a number of encapsulations such as SNAP for Layer 2 switching that you can use for Layer 3 switching in software.

Configuring CEF

These sections describe how to configure CEF:

  • Enabling CEF, page 31-6
  • Configuring Load Balancing for CEF, page 31-7

Enabling CEF

By default, CEF is enabled globally on the Catalyst 4500 series switch. No configuration is required.

To reenable CEF, perform this task:

Switch(config)# ip cef distributed Enables standard CEF operation.

Page 671 of the Cisco Systems 4500 user manual — Configuring Load Sharing Hash Function
Page 671 · click to enlarge
Page 671

Chapter 31 Configuring Cisco Express Forwarding

Configuring Load Balancing for CEF

CEF load balancing is based on a combination of source and destination packet information; it allows you to optimize resources by distributing traffic over multiple paths for transferring data to a destination. You can configure load balancing on a per-destination basis. Load-balancing decisions are made on the outbound interface. You can configure per-destination load balancing for CEF on outbound interfaces.

The following topics are discussed:

  • Configuring Per-Destination Load Balancing, page 31-7
  • Configuring Load Sharing Hash Function, page 31-7
  • Viewing CEF Information, page 31-8

Configuring Per-Destination Load Balancing

Per-destination load balancing is enabled by default when you enable CEF. To use per-destination load balancing, you do not perform any additional tasks once you enable CEF.

Per-destination load balancing allows the router to use multiple paths to achieve load sharing. Packets for a given source-destination host pair are guaranteed to take the same path, even if multiple paths are available. Traffic destined for different pairs tend to take different paths. Per-destination load balancing is enabled by default when you enable CEF; it is the load balancing method of choice in most situations.

Because per-destination load balancing depends on the statistical distribution of traffic, load sharing becomes more effective as the number of source-destination pairs increases.

Use per-destination load balancing to ensure that packets for a given host pair arrive in order. All packets for a certain host pair are routed over the same link or links.

Configuring Load Sharing Hash Function

When multiple unicast routes exist to a particular destination IP prefix, the hardware sends packets matching that prefix across all possible routes, which shares the load across all next hop routers. By default, the route used is chosen by computing a hash of the source and destination IP addresses and using the resulting value to select the route. This preserves packet ordering for packets within a flow by ensuring that all packets within a single IP source/destination flow are sent on the same route, but it provides a near-random distribution of flows to routes.

You can change the load-sharing hash function. So, in addition to the source and destination IP addresses, the source TCP/UDP port, the destination TCP/UDP port, or both can also be included in the hash.

To the configure load sharing hash function to use the source and/or destination ports, perform this task:

Switch (config)# [no] ip cef load-sharing algorithm include-ports source destination]

Enables load sharing hash function to use source and destination ports.

Use the no keyword to set the switch to use the default Cisco IOS load-sharing algorithm.

Configuring CEF

Page 672 of the Cisco Systems 4500 user manual — Displaying IP Statistics
Page 672 · click to enlarge
Page 672

Chapter 31 Configuring Cisco Express Forwarding Monitoring and Maintaining CEF

Viewing CEF Information

You can view the collected CEF information. To view CEF information, perform this task:

Switch# show ip cef Displays the collected CEF information.

Monitoring and Maintaining CEF

To display information about IP traffic, perform this task:

Switch# show interface type slot/interface | begin L3

Displays a summary of IP unicast traffic.

This example shows how to display information about IP unicast traffic on interface Fast Ethernet 3/3:

Switch# show interface fastethernet 3/3 | begin L3 L3 in Switched: ucast: 0 pkt, 0 bytes - mcast: 12 pkt, 778 bytes mcast L3 out Switched: ucast: 0 pkt, 0 bytes - mcast: 0 pkt, 0 bytes 4046399 packets input, 349370039 bytes, 0 no buffer Received 3795255 broadcasts, 2 runts, 0 giants, 0 throttles Switch#

Displaying IP Statistics

IP unicast statistics are gathered on a per-interface basis. To display IP statistics, perform this task:

Switch# show interface type number counters detail

Displays IP statistics.

Page 673 of the Cisco Systems 4500 user manual — Configuring Cisco Express Forwarding
Page 673 · click to enlarge
Page 673

Chapter 31 Configuring Cisco Express Forwarding

Monitoring and Maintaining CEF

This example shows how to display IP unicast statistics for fastethernet 3/1:

Switch# show interface fastethernet 3/1 counters detail

Port InBytes InUcastPkts InMcastPkts InBcastPkts Fa3/1 7263539133 5998222 6412307 156

Port OutBytes OutUcastPkts OutMcastPkts OutBcastPkts Fa3/1 7560137031 5079852 12140475 38

Port InPkts 64 OutPkts 64 InPkts 65-127 OutPkts 65-127 Fa3/1 11274 168536 7650482 12395769

Port InPkts 128-255 OutPkts 128-255 InPkts 256-511 OutPkts 256-511 Fa3/1 31191 55269 26923 65017

Port InPkts 512-1023 OutPkts 512-1023 Fa3/1 133807 151582

Port InPkts 1024-1518 OutPkts 1024-1518 InPkts 1519-1548 OutPkts 1519-1548 Fa3/1 N/A

Port InPkts 1024-1522 OutPkts 1024-1522 InPkts 1523-1548 OutPkts 1523-1548 Fa3/1 4557008 4384192 0 0

Port Tx-Bytes-Queue-1 Tx-Bytes-Queue-2 Tx-Bytes-Queue-3 Tx-Bytes-Queue-4 Fa3/1 64 0 91007 7666686162

Port Tx-Drops-Queue-1 Tx-Drops-Queue-2 Tx-Drops-Queue-3 Tx-Drops-Queue-4 Fa3/1 0

Port Rx-No-Pkt-Buff RxPauseFrames TxPauseFrames PauseFramesDrop Fa3/1 0 0 0 N/A

Port UnsupOpcodePause Fa3/1 0 Switch#

To display CEF (software switched) and hardware IP unicast adjacency table information, perform this task:

Switch# show adjacency [interface] [detail | internal | summary]

Displays detailed adjacency information, including Layer 2 information, when the optional detail keyword is used.

This example shows how to display adjacency statistics:

Switch# show adjacency gigabitethernet 3/5 detail Protocol Interface Address IP GigabitEthernet9/5 172.20.53.206(11) 504 packets, 6110 bytes 00605C865B82 000164F83FA50800 ARP 03:49:31

Page 674 of the Cisco Systems 4500 user manual — Configuring Cisco Express Forwarding
Page 674 · click to enlarge
Page 674

Chapter 31 Configuring Cisco Express Forwarding Monitoring and Maintaining CEF

Page 675 of the Cisco Systems 4500 user manual — C H A P T E R
Page 675 · click to enlarge
Page 675

C H A P T E R

Configuring Unicast Reverse Path Forwarding

This chapter describes the Unicast Reverse Path Forwarding (Unicast RPF) feature. The Unicast RPF feature helps to mitigate problems that are caused by malformed or forged IP source addresses that are passing through a switch.

For a complete description of the Unicast RPF commands in this chapter, refer to the chapter “Unicast Reverse Path Forwarding Commands” of the Cisco IOS Security Command Reference. To locate documentation of other commands that appear in this chapter, use the command reference master index or search online.

To identify the hardware platform or software image information associated with a feature, use the Feature Navigator on Cisco.com to search for information about the feature or refer to the software release notes for a specific release. For more information, see the “Identifying Supported Platforms” section in the chapter “Using Cisco IOS Software.”

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

This chapter includes the following sections:

  • About Unicast Reverse Path Forwarding, page 32-2
  • Unicast RPF Configuration Tasks, page 32-9
  • Monitoring and Maintaining Unicast RPF, page 32-11
  • Unicast RPF Configuration Example: Inbound and Outbound Filters, page 32-12
Page 676 of the Cisco Systems 4500 user manual — How Unicast RPF Works
Page 676 · click to enlarge
Page 676

Chapter 32 Configuring Unicast Reverse Path Forwarding About Unicast Reverse Path Forwarding

About Unicast Reverse Path Forwarding

The Unicast RPF feature helps to mitigate problems that are caused by the introduction of malformed or forged (spoofed) IP source addresses into a network by discarding IP packets that lack a verifiable IP source address. For example, a number of common types of denial-of-service (DoS) attacks, including Smurf and Tribal Flood Network (TFN), can take advantage of forged or rapidly changing source IP addresses to allow attackers to thwart efforts to locate or filter the attacks. For Internet service providers (ISPs) that provide public access, Unicast RPF deflects such attacks by forwarding only packets that have source addresses that are valid and consistent with the IP routing table. This action protects the network of the ISP, its customer, and the rest of the Internet.

This section covers the following information:

  • How Unicast RPF Works, page 32-2
  • Implementing Unicast RPF, page 32-4
  • Restrictions, page 32-8
  • Related Features and Technologies, page 32-8
  • Prerequisites to Configuring Unicast RPF, page 32-9

How Unicast RPF Works

When Unicast RPF is enabled on an interface, the switch examines all packets received as input on that interface to make sure that the source address and source interface appear in the routing table and match the interface on which the packet was received. This ability to look backwards is available only when Cisco Express Forwarding (CEF) is enabled on the switch, because the lookup relies on the presence of the Forwarding Information Base (FIB). CEF generates the FIB as part of its operation.

Unicast RPF checks to see if any packet received at a switch interface arrives on the best return path (return route) to the source of the packet. Unicast RPF does this by doing a reverse lookup in the CEF table. If the packet was received from one of the best reverse path routes, the packet is forwarded as normal. If there is no reverse path route on the same interface from which the packet was received, it might mean that the source address was modified. If Unicast RPF does not find a reverse path for the packet, the packet is dropped.

Note With Unicast RPF, all equal-cost “best” return paths are considered valid. This means that Unicast RPF works in cases where multiple return paths exist, provided that each path is equal to the others in terms of the routing cost (number of hops, weights, and so on) and as long as the route is in the FIB. Unicast RPF also functions where EIGRP variants are being used and unequal candidate paths back to the source IP address exist.

When a packet is received at the interface where Unicast RPF and ACLs have been configured, the following actions occur:

Step 1 Input ACLs configured on the inbound interface are checked.

Page 677 of the Cisco Systems 4500 user manual — FDDI 2/0/0 172.19.66.7 50000603E...AAAA03000800
Page 677 · click to enlarge
Page 677

Chapter 32 Configuring Unicast Reverse Path Forwarding

About Unicast Reverse Path Forwarding

Step 2 Unicast RPF checks to see if the packet has arrived on the best return path to the source, which it does by doing a reverse lookup in the FIB table.

Step 3 CEF table (FIB) lookup is carried out for packet forwarding.

Step 4 Output ACLs are checked on the outbound interface.

Step 5 The packet is forwarded.

This section provides information about Unicast RPF enhancements:

  • Access control lists and logging
  • Per-interface statistics

Figure 32-1 illustrates how Unicast RPF and CEF work together to validate IP source addresses by verifying packet return paths. In this example, a customer has sent a packet having a source address of 192.168.1.1 from interface Gigabit Ethernet 1/1. Unicast RPF checks the FIB to see if 192.168.1.1 has a path to Gigabit Ethernet 1/1. If there is a matching path, the packet is forwarded. If there is no matching path, the packet is dropped.

Figure 32-1 Unicast RPF Validating IP Source Addresses

Routing table:

192.168.0.0 via 172.19.66.7 172.19.0.0 is directly connected, FDDI 2/0/0

CEF table:

192.168.0.0 172.19.66.7 FDDI 2/0/0 172.19.0.0 attached FDDI 2/0/0

Adjacency table:

FDDI 2/0/0 172.19.66.7 50000603E...AAAA03000800

If okay, RPF passes

the packet to be forwarded by CEF

Destination address x.x.x.x

Source address 192.168.1.1

RPF checks to see if

the reverse path for the source address matches the input port

Figure 32-2 illustrates how Unicast RPF drops packets that fail validation. In this example, a customer has sent a packet having a source address of 209.165.200.225, which is received at interface Gigabit Ethernet 1/1. Unicast RPF checks the FIB to see if 209.165.200.225 has a return path to Gigabit Ethernet

Show 6 more labels / short text on this page
IP header Unicast · Data · Data IP header · RPF In · Out · Drop
Page 678 of the Cisco Systems 4500 user manual — Implementing Unicast RPF
Page 678 · click to enlarge
Page 678

Chapter 32 Configuring Unicast Reverse Path Forwarding About Unicast Reverse Path Forwarding

1/1. If there is a matching path, the packet is forwarded. There is no reverse entry in the routing table that routes the customer packet back to source address 209.165.200.225 on interface Gigabit Ethernet 1/1, and so the packet is dropped.

Figure 32-2 Unicast RPF Dropping Packets That Fail Verification

Routing table:

192.168.0.0 via 172.19.66.7 172.19.0.0 is directly connected, FDDI 2/0/0

CEF table:

192.168.0.0 172.19.66.7 FDDI 2/0/0 172.19.0.0 attached FDDI 2/0/0

Adjacency table:

FDDI 2/0/0 172.19.66.7 50000603E...AAAA03000800

Destination address x.x.x.x

Source address 209.165.200.225

If not okay, RPF drops the packet

RPF checks to see if

the reverse path for the source address matches the input port

Implementing Unicast RPF

Unicast RPF has several key implementation principles:

  • The packet must be received at an interface that has the best return path (route) to the packet source (a process called symmetric routing ). There must be a route in the FIB matching the route to the receiving interface. Adding a route in the FIBis done with a static route, network statement, or dynamic routing. (ACLs permit the use of Unicast RPF when packets will arrive by specific, less optimal asymmetric input paths.)
  • IP source addresses at the receiving interface must match the routing entry for the interface.
  • Unicast RPF is an input function and is applied only on the input interface of a switch at the upstream end of a connection.

Given these implementation principles, Unicast RPF becomes a tool that network administrators can use not only for their customers but also for their downstream network or ISP, even if the downstream network or ISP has other connections to the Internet.

Show 6 more labels / short text on this page
Unicast · Data IP header · RPF In · Out · Drop · Data IP header
Page 679 of the Cisco Systems 4500 user manual — Enterprise Networks with a Single Connection to an ISP
Page 679 · click to enlarge
Page 679

Chapter 32 Configuring Unicast Reverse Path Forwarding

About Unicast Reverse Path Forwarding

This section provides information about the implementation of Unicast RPF:

  • Security Policy and Unicast RPF, page 32-5
  • Where to Use Unicast RPF, page 32-5
  • Routing Table Requirements, page 32-7
  • Where Not to Use Unicast RPF, page 32-7
  • Unicast RPF with BOOTP and DHCP, page 32-8

Security Policy and Unicast RPF

Consider the following points in determining your policy for deploying Unicast RPF:

  • Unicast RPF must be applied at the interface downstream from the larger portion of the network, preferably at the edges of your network.
  • The farther downstream you apply Unicast RPF, the finer the granularity you have in mitigating address spoofing and in identifying the sources of spoofed addresses. For example, applying Unicast RPF on an aggregation switch helps mitigate attacks from many downstream networks or clients and is simple to administer, but it does not help identify the source of the attack. Applying Unicast RPF at the network access server helps limit the scope of the attack and trace the source of the attack; however, deploying Unicast RPF across many sites does add to the administration cost of operating the network.
  • The more entities that deploy Unicast RPF across Internet, intranet, and extranet resources, the better the chances of mitigating large-scale network disruptions throughout the Internet community, and the better the chances of tracing the source of an attack.
  • Unicast RPF will not inspect IP packets encapsulated in tunnels, such as GRE, LT2P, or PPTP. Unicast RPF must be configured at a home gateway so that Unicast RPF processes network traffic only after the tunneling and encryption layers have been stripped off the packets.

Where to Use Unicast RPF

Unicast RPF can be used in any single-homed environment where there is essentially only one access point out of the network; that is, one upstream connection. Networks having one access point offer the best example of symmetric routing, which means that the interface where a packet enters the network is also the best return path to the source of the IP packet. Unicast RPF is best used at the network perimeter for Internet, intranet, or extranet environments, or in ISP environments for customer network terminations.

Enterprise Networks with a Single Connection to an ISP

In enterprise networks, one objective of using Unicast RPF for filtering traffic at the input interface (a process called ingress filtering) is for protection from malformed packets arriving from the Internet. Traditionally, local networks with one connection to the Internet use ACLs at the receiving interface to prevent spoofed packets from the Internet from entering their local network.

Page 680 of the Cisco Systems 4500 user manual — Configuring Unicast Reverse Path Forwarding
Page 680 · click to enlarge
Page 680

Chapter 32 Configuring Unicast Reverse Path Forwarding About Unicast Reverse Path Forwarding

ACLs work well for many single-homed customers; however, there are trade-offs when ACLs are used as ingress filters, including two commonly referenced limitations:

  • Packet per second (PPS) performance at very high packet rates
  • Maintenance of the ACL (whenever new addresses are added to the network)

Unicast RPF is one tool that addresses both of these limitations. With Unicast RPF, ingress filtering is done at CEF PPS rates. This processing speed makes a difference when the link is more than 1 Mbps. Additionally, since Unicast RPF uses the FIB, no ACL maintenance is necessary, and thus the administration overhead of traditional ACLs is reduced. The following figure and example demonstrate how Unicast RPF is configured for ingress filtering.

Figure 32-3 illustrates an enterprise network that has a single link to an upstream ISP. In this example, Unicast RPF is applied at interface Gigabit Ethernet 1/1 on the Enterprise switch for protection from malformed packets arriving from the Internet. Unicast RPF is also applied at interface Gigabit Ethernet 2/1 on the ISP switch for protection from malformed packets arriving from the enterprise network.

Figure 32-3 Enterprise Network Using Unicast RPF for Ingress Filtering

Internet G2/1 G1/1 G1/2

Using the topography in Figure 32-3, a typical configuration (assuming that CEF is turned on) on the ISP switch appears as follows:

interface Gigabit Ethernet 2/1 description Link to Enterprise Network ip address 192.168.3.1 255.255.255.255 no switchport ip address 10.1.1.2 255.255.255.0 ip verify unicast source reachable-via rx allow-default

The gateway switch configuration of the enterprise network (assuming that CEF is turned on) appears as follows:

interface Gigabit Ethernet 1/2 description ExampleCorp LAN ip address 192.168.10.1 255.255.252.0 no ip redirects no ip directed-broadcast no ip proxy-arp

interface Gigabit Ethernet 1/1 description Link to Internet no switchport ip address 10.1.1.1 255.255.255.0 ip verify unicast source reachable-via allow-default no ip proxy-arp no ip redirects no ip directed-broadcast

ISP Enterprise · Upstream · network

Page 681 of the Cisco Systems 4500 user manual — Where Not to Use Unicast RPF
Page 681 · click to enlarge
Page 681

Chapter 32 Configuring Unicast Reverse Path Forwarding

About Unicast Reverse Path Forwarding

Unicast RPF works with a single default route. No additional routes or routing protocols exist. Network 192.168.10.0/22 is a connected network. Packets arriving from the Internet with a source address in the range 192.168.10.0/22 are dropped by Unicast RPF.

Routing Table Requirements

To work correctly, Unicast RPF needs proper information in the CEF tables. This requirement does not mean that the switch must have the entire Internet routing table. The amount of routing information needed in the CEF tables depends on where Unicast RPF is configured and what functions the switch performs in the network. For example, in an ISP environment, a switch that is a leased-line aggregation switch for customers needs only the information based on the static routes redistributed into the IGP or IBGP (depending on which technique is used in the network). Unicast RPF is configured on the customer interfaces, creating the requirement for minimal routing information. In another scenario, a single-homed ISP could place Unicast RPF on the gateway link to the Internet. The full Internet routing table is required. Requiring the full routing table helps protect the ISP from external DoS attacks that use addresses that are not in the Internet routing table.

Where Not to Use Unicast RPF

Do not use Unicast RPF on interfaces that are internal to the network. Internal interfaces are likely to have routing asymmetry (see Figure 32-4), meaning multiple routes to the source of a packet. Apply Unicast RPF only where there is natural or configured symmetry. Provided administrators carefully plan which interfaces they activate Unicast RPF on, routing asymmetry is not a serious problem.

For example, switches at the edge of the network of an ISP are more likely to have symmetrical reverse paths than switches that are in the core of the ISP network. Switches that are in the core of the ISP network have no guarantee that the best forwarding path out of the switch is the path selected for packets returning to the switch. We do not recommend that you apply Unicast RPF where there is a chance of asymmetric routing, unless you use ACLs to allow the switch to accept incoming packets. ACLs permit the use of Unicast RPF when packets will arrive by specific, less optimal asymmetric input paths. However, it is simplest to place Unicast RPF only at the edge of a network or, for an ISP, at the customer edge of the network.

Figure 32-4 illustrates how Unicast RPF can block legitimate traffic in an asymmetrical routing environment.

Page 682 of the Cisco Systems 4500 user manual — Related Features and Technologies
Page 682 · click to enlarge
Page 682

Chapter 32 Configuring Unicast Reverse Path Forwarding About Unicast Reverse Path Forwarding

Figure 32-4 Unicast RPF Blocking Traffic in an Asymmetrical Routing Environment

to S0 would not

Best route to site A from ISP

ISP network The Internet

S0

Best route to ISP from site A

to S1 would BLOCK

traffic from site A

Unicast RPF with BOOTP and DHCP

Unicast RPF will allow packets with 0.0.0.0 source and 255.255.255.255 destination to pass so that Bootstrap Protocol (BOOTP) and Dynamic Host Configuration Protocol (DHCP) functions work properly.

Restrictions

Restrictions for applying Unicast RPF to multihomed clients include the following:

  • Clients should not be multihomed to the same switch because action defeats the purpose of building a redundant service for the client.
  • Customers must ensure that the packets flowing up the link (out to the Internet) match the route advertised out the link. Otherwise, Unicast RPF filters those packets as malformed packets.

Limitation

Unicast loose mode is not supported.

Related Features and Technologies

For more information about Unicast RPF-related features and technologies, review the following:

  • Unicast RPF requires Cisco express forwarding (CEF) to function properly on the switch. For more information about CEF, refer to the Cisco IOS Switching Services Configuration Guide .
  • Unicast RPF can be more effective at mitigating spoofing attacks when combined with a policy of ingress and egress filtering using Cisco IOS access control lists (ACLs).
Show 5 more labels / short text on this page
Unicast RPF applied · block traffic to · site A · Site A S1 · Unicast RPF applied
Page 683 of the Cisco Systems 4500 user manual — Configuring Unicast RPF
Page 683 · click to enlarge
Page 683

Chapter 32 Configuring Unicast Reverse Path Forwarding

Unicast RPF Configuration Tasks

– Ingress filtering applies filters to traffic received at a network interface from either internal or external networks. With ingress filtering, packets that arrive from other networks or the Internet and that have a source address that matches a local network, private, or broadcast address are dropped. In ISP environments, for example, ingress filtering can apply to traffic received at the switch from either the client (customer) or the Internet.

– Egress filtering applies filters to traffic exiting a network interface (the sending interface). By filtering packets on switches that connect your network to the Internet or to other networks, you can permit only packets with valid source IP addresses to leave your network.

For more information on network filtering, refer to RFC 2267 and to the Cisco IOS IP Configuration Guide.

Prerequisites to Configuring Unicast RPF

Prior to configuring Unicast RPF, configure ACLs:

  • Configure standard or extended ACLs to mitigate transmission of invalid IP addresses (perform egress filtering). Permit only valid source addresses to leave your network and get onto the Internet. Prevent all other source addresses from leaving your network for the Internet.
  • Configure standard or extended ACLs entries to drop (deny) packets that have invalid source IP addresses (perform ingress filtering). Invalid source IP addresses include the following types:

– Private addresses (RFC 1918, Address Allocation for Private Internets)

– Broadcast addresses (including multicast addresses)

– Source addresses that fall outside the range of valid addresses associated with the protected network

Unicast RPF Configuration Tasks

The following sections describe the configuration tasks for Unicast RPF. Each task in the list is identified as either optional or required.

  • Configuring Unicast RPF, page 32-9 (Required)
  • Verifying Unicast RPF, page 32-10 (Optional)

See the section “Unicast RPF Configuration Example: Inbound and Outbound Filters” at the end of this chapter.

Configuring Unicast RPF

Unicast RPF is an input-side function that is enabled on an interface operates on IP packets received by the switch.

– Reserved addresses · – Loopback addresses

Page 684 of the Cisco Systems 4500 user manual — Verifying Unicast RPF
Page 684 · click to enlarge
Page 684

Chapter 32 Configuring Unicast Reverse Path Forwarding Unicast RPF Configuration Tasks

To configure Unicast RPF, perform the following task:

Step 1 Switch(config-if)# interface type Selects the input interface on which you want to apply Unicast RPF. it is the receiving interface, allowing Unicast RPF to verify the best return path before forwarding the packet on to the next destination.

The interface type is specific to your switch and the types of interface cards installed on the switch. To display a list of available interface types, enter the interface ? command.

Step 2 Switch(config-if)# ip verify unicast source reachable-via rx allow-default

Enables Unicast RPF on the interface.

Step 3 Switch(config-if)# exit Exits interface configuration mode. Repeat Steps 2 and 3 for each interface on which you want to apply Unicast RPF.

Verifying Unicast RPF

To verify that Unicast RPF is operational, use the show cef interface command. The following example shows that Unicast RPF is enabled at interface Gigabit Ethernet 3/1:

Switch# show cef interface gigabitEthernet 3/1 GigabitEthernet3/1 is up (if_number 79) Corresponding hwidb fast_if_number 79 Corresponding hwidb firstsw->if_number 79 Internet address is 10.1.1.1/24 ICMP redirects are always sent IP unicast RPF check is enabled <====== Input features: uRPF <===== Inbound access list is not set Outbound access list is not set IP policy routing is disabled BGP based policy accounting on input is disabled BGP based policy accounting on output is disabled Hardware idb is GigabitEthernet3/1 Fast switching type 1, interface type 155 IP CEF switching enabled IP CEF switching turbo vector IP Null turbo vector IP prefix lookup IPv4 mtrie 8-8-8-8 optimized Input fast flags 0x4000, Output fast flags 0x0 ifindex 78(78) Slot 3 Slot unit 1 VC -1 Transmit limit accumulator 0x0 (0x0) IP MTU 1500

Page 685 of the Cisco Systems 4500 user manual — Monitoring and Maintaining Unicast RPF
Page 685 · click to enlarge
Page 685

Chapter 32 Configuring Unicast Reverse Path Forwarding

Monitoring and Maintaining Unicast RPF

Monitoring and Maintaining Unicast RPF

To monitor and maintain Unicast RFP, perform this task:

Switch# show ip traffic Displays global switch statistics about Unicast RPF drops and suppressed drops.

Switch(config-if)# no ip verify unicast Disables Unicast RPF at the interface.

Unicast RPF counts the number of packets dropped or suppressed because of malformed or forged source addresses. Unicast RPF counts dropped or forwarded packets that include the following global and per-interface information:

  • Global Unicast RPF drops
  • Per-interface Unicast RPF drops
  • Per-interface Unicast RPF suppressed drops

The show ip traffic command shows the total number (global count) of dropped or suppressed packets for all interfaces on the switch. The Unicast RPF drop count is included in the IP statistics section.

Switch# show ip traffic

IP statistics: Rcvd: 1471590 total, 887368 local destination 0 format errors, 0 checksum errors, 301274 bad hop count 0 unknown protocol, 0 not a gateway 0 security failures, 0 bad options, 0 with options Opts: 0 end, 0 nop, 0 basic security, 0 loose source route 0 timestamp, 0 extended security, 0 record route 0 stream ID, 0 strict source route, 0 alert, 0 other Frags: 0 reassembled, 0 timeouts, 0 couldn't reassemble 0 fragmented, 0 couldn't fragment Bcast: 205233 received, 0 sent Mcast: 463292 received, 462118 sent Sent: 990158 generated, 282938 forwarded ! The second line below (“0 unicast RPF”) displays Unicast RPF packet dropping information. Drop: 3 encapsulation failed, 0 unresolved, 0 no adjacency 0 no route, 0 unicast RPF, 0 forced drop

A nonzero value for the count of dropped or suppressed packets can mean one of two things:

  • Unicast RPF is dropping or suppressing packets that have a bad source address (normal operation).
  • Unicast RPF is dropping or suppressing legitimate packets because the route is misconfigured to use Unicast RPF in environments where asymmetric routing exists; that is, where multiple paths can exist as the best return path for a source address.

The show ip interface command shows the total of dropped or suppressed packets at a specific interface. If Unicast RPF is configured to use a specific ACL, that ACL information is displayed along with the drop statistics.

Switch> show ip interface fast 2/1

Unicast RPF ACL 197 1 unicast RPF drop 1 unicast RPF suppressed drop

Page 686 of the Cisco Systems 4500 user manual — Unicast RPF Configuration Example: Inbound and Outbound Filters
Page 686 · click to enlarge
Page 686

Chapter 32 Configuring Unicast Reverse Path Forwarding Unicast RPF Configuration Example: Inbound and Outbound Filters

The show access-lists command displays the number of matches found for a specific entry in a specific access list.

Extended IP access list 197 deny ip 192.168.201.0 0.0.0.63 any log-input (1 match) permit ip 192.168.201.64 0.0.0.63 any log-input (1 match) deny ip 192.168.201.128 0.0.0.63 any log-input permit ip 192.168.201.192 0.0.0.63 any log-input

Unicast RPF Configuration Example: Inbound and Outbound Filters

The following example uses a very simple single-homed ISP to demonstrate the concepts of ingress and egress filters used in conjunction with Unicast RPF. The example illustrates an ISP-allocated classless interdomain routing (CIDR) block 209.165.202.128/28 that has both inbound and outbound filters on the upstream interface. Be aware that ISPs are usually not single-homed. Provisions for asymmetrical flows (when outbound traffic goes out one link and returns by using a different link) must be designed into the filters on the border switches of the ISP.

ip cef distributed ! interface Serial 5/0/0 description Connection to Upstream ISP ip address 209.165.200.225 255.255.255.252 no ip redirects no ip directed-broadcast no ip proxy-arp ip verify unicast reverse-path rx allow-default ip access-group 111 in ip access-group 110 out! access-list 110 permit ip 209.165.202.128 0.0.0.31 any access-list 110 deny ip any any log access-list 111 deny ip host 0.0.0.0 any log access-list 111 deny ip 127.0.0.0 0.255.255.255 any log access-list 111 deny ip 10.0.0.0 0.255.255.255 any log access-list 111 deny ip 172.16.0.0 0.15.255.255 any log access-list 111 deny ip 192.168.0.0 0.0.255.255 any log access-list 111 deny ip 209.165.202.128 0.0.0.31 any log access-list 111 permit ip any any

Switch> show access-lists

Page 687 of the Cisco Systems 4500 user manual — About IP Multicast
Page 687 · click to enlarge
Page 687

C H A P T E R

Configuring IP Multicast

This chapter describes IP multicast routing on the Catalyst 4500 series switch. It also provides procedures and examples to configure IP multicast routing.

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

This chapter includes the following major sections:

  • About IP Multicast, page 33-1
  • Configuring IP Multicast Routing, page 33-13
  • Monitoring and Maintaining IP Multicast Routing, page 33-23
  • Configuration Examples, page 33-28

About IP Multicast

At one end of the IP communication spectrum is IP unicast, where a source IP host sends packets to a specific destination IP host. In IP unicast, the destination address in the IP packet is the address of a single, unique host in the IP network. These IP packets are forwarded across the network from the source

Page 688 of the Cisco Systems 4500 user manual — IP Multicast Protocols
Page 688 · click to enlarge
Page 688

Chapter 33 Configuring IP Multicast About IP Multicast

to the destination host by routers. At each point on the path between source and destination, a router uses a unicast routing table to make unicast forwarding decisions, based on the IP destination address in the packet.

At the other end of the IP communication spectrum is an IP broadcast, where a source host sends packets to all hosts on a network segment. The destination address of an IP broadcast packet has the host portion of the destination IP address set to all ones and the network portion set to the address of the subnet. IP hosts, including routers, understand that packets, which contain an IP broadcast address as the destination address, are addressed to all IP hosts on the subnet. Unless specifically configured otherwise, routers do not forward IP broadcast packets, so IP broadcast communication is normally limited to a local subnet.

IP multicasting falls between IP unicast and IP broadcast communication. IP multicast communication enables a host to send IP packets to a group of hosts anywhere within the IP network. To send information to a specific group, IP multicast communication uses a special form of IP destination address called an IP multicast group address. The IP multicast group address is specified in the IP destination address field of the packet.

To multicast IP information, Layer 3 switches and routers must forward an incoming IP packet to all output interfaces that lead to members of the IP multicast group. In the multicasting process on the Catalyst 4500 series switch, a packet is replicated in the Integrated Switching Engine, forwarded to the appropriate output interfaces, and sent to each member of the multicast group.

We tend to think of IP multicasting and video conferencing as the same thing. Although the first application in a network to use IP multicast is often video conferencing, video is only one of many IP multicast applications that can add value to a company’s business model. Other IP multicast applications that have potential for improving productivity include multimedia conferencing, data replication, real-time data multicasts, and simulation applications.

This section contains the following subsections:

  • IP Multicast Protocols, page 33-2
  • IP Multicast Implementation on the Catalyst 4500 Series Switch, page 33-5
  • Restrictions on Using Bidirectional PIM, page 33-13

IP Multicast Protocols

The Catalyst 4500 series switch primarily uses these protocols to implement IP multicast routing:

  • Internet Group Management Protocol (IGMP)
  • Protocol Independent Multicast (PIM)
  • IGMP snooping and Cisco Group Management Protocol

Figure 33-1 shows where these protocols operate within the IP multicast environment.

Page 689 of the Cisco Systems 4500 user manual — PIM Dense Mode
Page 689 · click to enlarge
Page 689

Chapter 33 Configuring IP Multicast

Figure 33-1 IP Multicast Routing Protocols

Catalyst 4500 series switch Router

Internet Group Management Protocol

IGMP messages are used by IP multicast hosts to send their local Layer 3 switch or router a request to join a specific multicast group and begin receiving multicast traffic. With some extensions in IGMPv2, IP hosts can also send a request to a Layer 3 switch or router to leave an IP multicast group and not receive the multicast group traffic.

Using the information obtained by using IGMP, a Layer 3 switch or router maintains a list of multicast group memberships on a per-interface basis. A multicast group membership is active on an interface if at least one host on the interface sends an IGMP request to receive multicast group traffic.

Protocol-Independent Multicast

PIM is protocol independent because it can leverage whichever unicast routing protocol is used to populate the unicast routing table, including EIGRP, OSPF, BGP, or static route, to support IP multicast. PIM also uses a unicast routing table to perform the reverse path forwarding (RPF) check function instead of building a completely independent multicast routing table. PIM does not send and receive multicast routing updates between routers like other routing protocols do.

PIM Dense Mode

PIM Dense Mode (PIM-DM) uses a push model to flood multicast traffic to every corner of the network. PIM-DM is intended for networks in which most LANs need to receive the multicast, such as LAN TV and corporate or financial information broadcasts. It can be an efficient delivery mechanism if active receivers exist on every subnet in the network.

For more detailed information on PIM Dense Mode, refer to this URL: http://www.cisco.com/en/US/docs/ios-xml/ios/ipmulti_optim/configuration/12-2sx/imc_pim_dense_rfr sh.html

Show 6 more labels / short text on this page
About IP Multicast · Host A · Internet · PIM IGMP and · Host B · IGMP Snooping
Page 690 of the Cisco Systems 4500 user manual — IGMP Snooping
Page 690 · click to enlarge
Page 690

Chapter 33 Configuring IP Multicast About IP Multicast

PIM Sparse Mode

PIM Sparse Mode (PIM-SM) uses a pull model to deliver multicast traffic. Only networks with active receivers that have explicitly requested the data are forwarded the traffic. PIM-SM is intended for networks with several different multicasts, such as desktop video conferencing and collaborative computing, that go to a small number of receivers and are typically in progress simultaneously.

Bidirectional PIM Mode

In bidirectional PIM (Bidir-PIM) mode, traffic is routed only along a bidirectional shared tree that is rooted at the rendezvous point (RP) for the group. The IP address of the RP functions as a key enabling all routers to establish a loop-free spanning tree topology rooted in that IP address.

Bidir-PIM is intended for many-to-many applications within individual PIM domains. Multicast groups in bidirectional mode can scale to an arbitrary number of sources without incurring overhead due to the number of sources.

For more detailed information on Bidirectional Mode, refer to this URL: http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6552/ps6592/prod_white_paper0900ae cd80310db2.pdf.

Rendezvous Point (RP)

If you configure PIM to operate in sparse mode, you must also choose one or more routers to be rendezvous points (RPs). Senders to a multicast group use RPs to announce their presence. Receivers of multicast packets use RPs to learn about new senders. You can configure Cisco IOS software so that packets for a single multicast group can use one or more RPs.

The RP address is used by first hop routers to send PIM register messages on behalf of a host sending a packet to the group. The RP address is also used by last hop routers to send PIM join and prune messages to the RP to inform it about group membership. You must configure the RP address on all routers (including the RP router).

A PIM router can be an RP for more than one group. Only one RP address can be used at a time within a PIM domain for the same group. The conditions specified by the access list determine for which groups the router is an RP (as different groups can have different RPs).

IGMP Snooping

IGMP snooping is used for multicasting in a Layer 2 switching environment. With IGMP snooping, a Layer 3 switch or router examines Layer 3 information in the IGMP packets in transit between hosts and a router. When the switch receives the IGMP Host Report from a host for a particular multicast group, the switch adds the host's port number to the associated multicast table entry. When the switch receives the IGMP Leave Group message from a host, it removes the host's port from the table entry.

Because IGMP control messages are transmitted as multicast packets, they are indistinguishable from multicast data if only the Layer 2 header is examined. A switch running IGMP snooping examines every multicast data packet to determine whether it contains any pertinent IGMP control information. If IGMP snooping is implemented on a low end switch with a slow CPU, performance could be severely impacted when data is transmitted at high rates. On the Catalyst 4500 series switches, IGMP snooping is implemented in the forwarding ASIC, so it does not impact the forwarding rate.

Page 691 of the Cisco Systems 4500 user manual — CEF, MFIB, and Layer 2 Forwarding
Page 691 · click to enlarge
Page 691

Chapter 33 Configuring IP Multicast

IP Multicast Implementation on the Catalyst 4500 Series Switch

The Catalyst 4500 series switch supports an ASIC-based integrated switching engine that provides Ethernet bridging at Layer 2 and IP routing at Layer 3. Because the ASIC is specifically designed to forward packets, the integrated switching engine hardware provides very high performance with ACLs and QoS enabled. At wire-speed, forwarding in hardware is significantly faster than the CPU subsystem software, which is designed to handle exception packets.

The integrated switching engine hardware supports interfaces for inter-VLAN routing and switch ports for Layer 2 bridging. It also provides a physical Layer 3 interface that can be configured to connect with a host, a switch, or a router.

Figure 33-2 shows a logical view of Layer 2 and Layer 3 forwarding in the integrated switching engine hardware.

Figure 33-2 Logical View of Layer 2 and Layer 3 Forwarding in Hardware

Integrated Switching Engine (ASIC)

VLAN1

VLAN2

This section contains the following subsections:

  • CEF, MFIB, and Layer 2 Forwarding, page 33-5
  • IP Multicast Tables, page 33-7
  • Hardware and Software Forwarding, page 33-9
  • Non-Reverse Path Forwarding Traffic, page 33-10
  • Multicast Fast Drop, page 33-11
  • Multicast Forwarding Information Base, page 33-12
  • S/M, 224/4, page 33-13

CEF, MFIB, and Layer 2 Forwarding

The implementation of IP multicast on the Catalyst 4500 series switch is an extension of centralized Cisco Express Forwarding (CEF). CEF extracts information from the unicast routing table, which is created by unicast routing protocols, such as BGP, OSPF, and EIGR and loads it into the hardware Forwarding Information Base (FIB). With the unicast routes in the FIB, when a route is changed in the

Show 6 more labels / short text on this page
About IP Multicast · L3 physical interface · Gig 1/1 · Logical Router · L3 logical interfaces · L2 switchports
Page 692 of the Cisco Systems 4500 user manual — H/W FIB
Page 692 · click to enlarge
Page 692

Chapter 33 Configuring IP Multicast About IP Multicast

upper-layer routing table, only one route needs to be changed in the hardware routing state. To forward unicast packets in hardware, the integrated switching engine looks up source and destination routes in ternary content addressable memory (TCAM), takes the adjacency index from the hardware FIB, and gets the Layer 2 rewrite information and next-hop address from the hardware adjacency table.

The new Multicast Forwarding Information Base (MFIB) subsystem is the multicast analog of the unicast CEF. The MFIB subsystem extracts the multicast routes that PIM and IGMP create and refines them into a protocol-independent format for forwarding in hardware. The MFIB subsystem removes the protocol-specific information and leaves only the essential forwarding information. Each entry in the MFIB table consists of an (S,G) or (*,G) route, an input RPF VLAN, and a list of Layer 3 output interfaces. The MFIB subsystem, together with platform-dependent management software, loads this multicast routing information into the hardware FIB and hardware multicast expansion table (MET).

The Catalyst 4500 series switch performs Layer 3 routing and Layer 2 bridging at the same time. There can be multiple Layer 2 switch ports on any VLAN interface. To determine the set of output switch ports on which to forward a multicast packet, the Supervisor Engine III combines Layer 3 MFIB information with Layer 2 forwarding information and stores it in the hardware MET for packet replication.

Figure 33-3 shows a functional overview of how the Catalyst 4500 series switch combines unicast routing, multicast routing, and Layer 2 bridging information to forward in hardware.

Figure 33-3 Combining CEF, MFIB, and Layer 2 Forwarding Information in Hardware

OSPF PIM / IGMP IGMP Snooping

CEF MFIB

CEF – MFIB Subsystem

H/W FIB

Like the CEF unicast routes, the MFIB routes are Layer 3 and must be merged with the appropriate Layer 2 information. The following example shows an MFIB route:

(*,224.1.2.3) RPF interface is Vlan3 Output Interfaces are: Vlan 1 Vlan 2

Show 18 more labels / short text on this page
CPU Subsystem Software · Protocols · Spanning Tree · Unicast Multicast · L2 Multicast · Software Tables · Unicast Routing · Multicast Routing · Layer 2 Forwarding · Table · Table · Table · Integrated Switching Engine · Hardware Tables · Table H/W Adjacency · MET Replication · Table · Table
Page 693 of the Cisco Systems 4500 user manual — IP Multicast Tables
Page 693 · click to enlarge
Page 693

Chapter 33 Configuring IP Multicast

The route (*,224.1.2.3) is loaded in the hardware FIB table and the list of output interfaces is loaded into the MET. A pointer to the list of output interfaces, the MET index, and the RPF interface are also loaded in the hardware FIB with the (*,224.1.2.3) route. With this information loaded in hardware, merging of the Layer 2 information can begin. For the output interfaces on VLAN1, the integrated switching engine must send the packet to all switch ports in VLAN1 that are in the spanning tree forwarding state. The same process applies to VLAN 2. To determine the set of switch ports in VLAN 2, the Layer 2 Forwarding Table is used.

When the hardware routes a packet, in addition to sending it to all of the switch ports on all output interfaces, the hardware also sends the packet to all switch ports (other than the one it arrived on) in the input VLAN. For example, assume that VLAN 3 has two switch ports in it, Gig 3/1 and Gig 3/2. If a host on Gig 3/1 sends a multicast packet, the host on Gig 3/2 might also need to receive the packet. To send a multicast packet to the host on Gig 3/2, all of the switch ports in the ingress VLAN must be added to the port set that is loaded in the MET.

If VLAN 1 contains 1/1 and 1/2, VLAN 2 contains 2/1 and 2/2, and VLAN 3 contains 3/1 and 3/2, the MET chain for this route would contain these switch ports: (1/1,1/2,2/1,2/2,3/1, and 3/2).

If IGMP snooping is on, the packet should not be forwarded to all output switch ports on VLAN 2. The packet should be forwarded only to switch ports where IGMP snooping has determined that there is either a group member or router. For example, if VLAN 1 had IGMP snooping enabled, and IGMP snooping determined that only port 1/2 had a group member on it, then the MET chain would contain these switch ports: (1/1,1/2, 2/1, 2/2, 3/1, and 3/2).

IP Multicast Tables

Figure 33-4 shows some key data structures that the Catalyst 4500 series switch uses to forward IP multicast packets in hardware.

About IP Multicast

Page 694 of the Cisco Systems 4500 user manual — Configuring IP Multicast
Page 694 · click to enlarge
Page 694

Chapter 33 Configuring IP Multicast About IP Multicast

Figure 33-4 IP Multicast Tables and Protocols

Integrated Switching Engine CPU Subsystem

Table • (S,G), RPF

  • PIM
  • IGMP

(S,G), RPF Vlan, MET Index (*,G), Interfaces, MET Index

(Replication) Index, set of {Vlan, switchport}

Table Vlan, MAC address

IGMP snooping Spanning tree

S,G rpf interface met index S1, G1 vlan 3 1219 S2, G2 vlan 7 1241

index set of {vlan, switchport} 0 1279 {vlan3, Fa 3/1} {vlan5, Fa 3/2}, …

*, G4 vlan 99 1356

The integrated switching engine maintains the hardware FIB table to identify individual IP multicast routes. Each entry consists of a destination group IP address and an optional source IP address. Multicast traffic flows on primarily two types of routes: (S,G) and (*,G). The (S,G) routes flow from a source to a group based on the IP address of the multicast source and the IP address of the multicast group destination. Traffic on a (*,G) route flows from the PIM RP to all receivers of group G. Only sparse-mode groups use (*,G) routes. The integrated switching engine hardware contains space for a total of 128,000 routes, which are shared by unicast routes, multicast routes, and multicast fast-drop entries.

Output interface lists are stored in the multicast expansion table (MET). The MET has room for up to 32,000 output interface lists. (For RET, we can have up to 102 K entries (32 K used for floodsets, 70,000 used for multicast entries)). The MET resources are shared by both Layer 3 multicast routes and by Layer 2 multicast entries. The actual number of output interface lists available in hardware depends on the specific configuration. If the total number of multicast routes exceed 32,000, multicast packets might not be switched by the Integrated Switching Engine. They would be forwarded by the CPU subsystem at much slower speeds.

Show 13 more labels / short text on this page
Hardware Tables · Software Tables · Routing Protocols · Multicast Routing · L3 Protocols · Hardware FIB Table · interface, set of · output interfaces · Hardware MET Table · L2 Forwarding · L2 Protocols • · switchports · •
Page 695 of the Cisco Systems 4500 user manual — Partial Routes
Page 695 · click to enlarge
Page 695

Chapter 33 Configuring IP Multicast

Hardware and Software Forwarding

The integrated switching engine forwards the majority of packets in hardware at very high rates of speed. The CPU subsystem forwards exception packets in software. Statistical reports should show that the integrated switching engine is forwarding the vast majority of packets in hardware.

Figure 33-5 shows a logical view of the hardware and software forwarding components.

Figure 33-5 Hardware and Software Forwarding Components

Integrated Switching Engine CPU Subsystem

VLAN1

In the normal mode of operation, the integrated switching engine performs inter-VLAN routing in hardware. The CPU subsystem supports generic routing encapsulation (GRE) tunnels for forwarding in software.

Replication is a particular type of forwarding where, instead of sending out one copy of the packet, the packet is replicated and multiple copies of the packet are sent out. At Layer 3, replication occurs only for multicast packets; unicast packets are never replicated to multiple Layer 3 interfaces. In IP multicasting, for each incoming IP multicast packet that is received, many replicas of the packet are sent out.

IP multicast packets can be transmitted on the following types of routes:

  • Hardware routes
  • Software routes
  • Partial routes

Hardware routes occur when the integrated switching engine hardware forwards all replicas of a packet. Software routes occur when the CPU subsystem software forwards all replicas of a packet. Partial routes occur when the integrated switching engine forwards some of the replicas in hardware and the CPU subsystem forwards some of the replicas in software.

Partial Routes

Show 8 more labels / short text on this page
About IP Multicast · L3 physical interface · Gig 1/1 · Router · L3 interfaces · VLAN2 GRE tunnel · GRE tunnel · L2 switchports
Page 696 of the Cisco Systems 4500 user manual — Non-Reverse Path Forwarding Traffic
Page 696 · click to enlarge
Page 696

Chapter 33 Configuring IP Multicast About IP Multicast

The following conditions cause some replicas of a packet for a route to be forwarded by the CPU subsystem:

  • The switch is configured with the ip igmp join-group command as a member of the IP multicast group on the RPF interface of the multicast source.
  • The switch is the first-hop to the source in PIM sparse mode. The switch must send PIM-register messages to the RP.

Software Routes

The following conditions cause all replicas of a packet for a route to be forwarded by the CPU subsystem software:

  • The interface is configured with multicast helper.
  • The interface is a generic routing encapsulation (GRE) or Distance Vector Multicast Routing Protocol (DVMRP) tunnel.
  • The interface uses non-Advanced Research Products Agency (ARPA) encapsulation.

The following packets are always forwarded in software:

  • Packets sent to multicast groups that fall into the range 224.0.0.* (where * is in the range from 0 to 255). This range is used by routing protocols. Layer 3 switching supports all other multicast group addresses.
  • Packets with IP options.

Non-Reverse Path Forwarding Traffic

Traffic that fails an Reverse Path Forwarding (RPF) check is called non-RPF traffic. Non-RPF traffic is forwarded by the integrated switching engine by filtering (persistently dropping) or rate limiting the non-RPF traffic.

In a redundant configuration where multiple Layer 3 switches or routers connect to the same LAN segment, only one device forwards the multicast traffic from the source to the receivers on the outgoing interfaces. Figure 33-6 shows how non-RPF traffic can occur in a common network configuration.

Page 697 of the Cisco Systems 4500 user manual — Multicast Fast Drop
Page 697 · click to enlarge
Page 697

Chapter 33 Configuring IP Multicast

Figure 33-6 Redundant Multicast Router Configuration in a Stub Network

Router A Router B

Multicast Traffic Non-RPF Traffic

In this kind of topology, only Router A, the PIM designated router (PIM DR), forwards data to the common VLAN. Router B receives the forwarded multicast traffic, but must drop this traffic because it has arrived on the wrong interface and fails the RPF check. Traffic that fails the RPF check is called non-RPF traffic.

Multicast Fast Drop

In IP multicast protocols, such as PIM-SM and PIM-DM, every (S,G) or (*,G) route has an incoming interface associated with it. This interface is referred to as the reverse path forwarding interface. In some cases, when a packet arrives on an interface other than the expected RPF interface, the packet must be forwarded to the CPU subsystem software to allow PIM to perform special protocol processing on the packet. One example of this special protocol processing that PIM performs is the PIM Assert protocol.

By default, the integrated switching engine hardware sends all packets that arrive on a non-RPF interface to the CPU subsystem software. However, processing in software is not necessary in many cases, because these non-RPF packets are often not needed by the multicast routing protocols. The problem is that if no action is taken, the non-RPF packets that are sent to the software can overwhelm the CPU.

To prevent this situation from happening, the CPU subsystem software loads fast-drop entries in the hardware when it receives an RPF failed packet that is not needed by the PIM protocols running on the switch. A fast-drop entry is keyed by (S,G, incoming interface). Any packet matching a fast-drop entry is bridged in the ingress VLAN, but is not sent to the software, so the CPU subsystem software is not overloaded by processing these RPF failures unnecessarily.

Protocol events, such as a link going down or a change in the unicast routing table, can impact the set of packets that can safely be fast dropped. A packet that was correctly fast dropped before might, after a topology change, need to be forwarded to the CPU subsystem software so that PIM can process it. The CPU subsystem software handles flushing fast-drop entries in response to protocol events so that the PIM code in IOS can process all the necessary RPF failures.

The use of fast-drop entries in the hardware is critical in some common topologies because you may have persistent RPF failures. Without the fast-drop entries, the CPU is exhausted by RPF failed packets that it did not need to process.

About IP Multicast · Network A · Network B

Page 698 of the Cisco Systems 4500 user manual — Multicast Forwarding Information Base
Page 698 · click to enlarge
Page 698

Chapter 33 Configuring IP Multicast About IP Multicast

Multicast Forwarding Information Base

The Multicast Forwarding Information Base (MFIB) subsystem supports IP multicast routing in the integrated switching engine hardware on the Catalyst 4500 series switch. The MFIB logically resides between the IP multicast routing protocols in the CPU subsystem software (PIM, IGMP, MSDP, MBGP, and DVMRP) and the platform-specific code that manages IP multicast routing in hardware. The MFIB translates the routing table information created by the multicast routing protocols into a simplified format that can be efficiently processed and used for forwarding by the Integrated Switching Engine hardware.

To display the information in the multicast routing table, use the show ip mroute command. To display the MFIB table information, use the show ip mfib command.

The MFIB table contains a set of IP multicast routes. IP multicast routes include (S,G) and (*,G). Each route in the MFIB table can have one or more optional flags associated with it. The route flags indicate how a packet that matches a route should be forwarded. For example, the Internal Copy (IC) flag on an MFIB route indicates that a process on the switch needs to receive a copy of the packet. The following flags can be associated with MFIB routes:

  • Internal Copy (IC) flag—Sets on a route when a process on the router needs to receive a copy of all packets matching the specified route.
  • Signalling (S) flag—Sets on a route when a process needs to be notified when a packet matching the route is received; the expected behavior is that the protocol code updates the MFIB state in response to receiving a packet on a signalling interface.
  • Connected (C) flag—–When set on an MFIB route, has the same meaning as the Signaling (S) flag, except that the C flag indicates that only packets sent by directly connected hosts to the route should be signaled to a protocol process.

A route can also have a set of optional flags associated with one or more interfaces. For example, an (S,G) route with the flags on VLAN 1 indicates how packets arriving on VLAN 1 should be handled and whether packets matching the route should be forwarded onto VLAN 1. The per-interface flags supported in the MFIB include the following:

  • Accepting (A)—Sets on the interface that is known in multicast routing as the RPF interface. A packet that arrives on an interface that is marked as Accepting (A) is forwarded to all Forwarding (F) interfaces.
  • Forwarding (F)—Used in conjunction with the Accepting (A) flag as described above. The set of Forwarding interfaces that form what is often referred to as the multicast “ olist ” or output interface list.
  • Signaling (S)—Sets on an interface when some multicast routing protocol process in Cisco IOS needs to be notified of packets arriving on that interface.
Page 699 of the Cisco Systems 4500 user manual — Default Configuration in IP Multicast Routing
Page 699 · click to enlarge
Page 699

Chapter 33 Configuring IP Multicast

Configuring IP Multicast Routing

S/M, 224/4

An (S/M, 224/4) entry is created in the MFIB for every multicast-enabled interface. This entry ensures that all packets sent by directly connected neighbors can be register-encapsulated to the PIM-SM RP. Typically, only a small number of packets are forwarded using the (S/M,224/4) route, until the (S,G) route is established by PIM-SM.

For example, on an interface with IP address 10.0.0.1 and netmask 255.0.0.0, a route is created matching all IP multicast packets in which the source address is anything in the class A network 10. This route can be written in conventional subnet/masklength notation as (10/8,224/4). If an interface has multiple assigned IP addresses, then one route is created for each such IP address.

Restrictions on Using Bidirectional PIM

Restrictions include the following:

  • IPv4 Bidirectional (Bidir) PIM is supported on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E. IPv6 Bidir PIM is not supported.
  • The Catalyst 4500 series switch allows you to forward Bidir PIM traffic in hardware up to a maximum of seven RPs. If you configure more than seven Bidir RPs, only the first seven RPs can forward traffic in hardware. The traffic directed to the remaining RPs is forwarded in software.

Configuring IP Multicast Routing

The following sections describe IP multicast routing configuration tasks:

  • Default Configuration in IP Multicast Routing, page 33-13
  • Enabling IP Multicast Routing, page 33-14
  • Enabling PIM on an Interface, page 33-14
  • Enabling Bidirectional Mode, page 33-16
  • Enabling PIM-SSM Mapping, page 33-17
  • Configuring a Rendezvous Point, page 33-17
  • Configuring a Single Static RP, page 33-20
  • Load Splitting of IP Multicast Traffic, page 33-22

For more detailed information on IP multicast routing, such as Auto-RP, PIM Version 2, and IP multicast static routes, refer to the Cisco IOS IP and IP Routing Configuration Guide, Cisco IOS Release 12.3.

Default Configuration in IP Multicast Routing

Table 33-1 shows the IP multicast default configuration.

Page 700 of the Cisco Systems 4500 user manual — Enabling PIM on an Interface
Page 700 · click to enlarge
Page 700

Chapter 33 Configuring IP Multicast Configuring IP Multicast Routing

Table 33-1 Default IP Multicast Configuration

Feature Default Value

Rate limiting of RPF Enabled globally

IP multicast routing Disabled globally

PIM Disabled on all interfaces

IGMP snooping Enabled on all VLAN interfaces

For more information about source-specific multicast with IGMPv3 and IGMP, see the following URL:

http://www.cisco.com/en/US/docs/ios/ipmulti/configuration/guide/imc_cfg_ssm.html

Enabling IP Multicast Routing

Enabling IP multicast routing allows the Catalyst 4500 series switch to forward multicast packets. To enable IP multicast routing on the router, enter this command:

Switch(config)# ip multicast-routing Enables IP multicast routing.

Enabling PIM on an Interface

Enabling PIM on an interface also enables IGMP operation on that interface. An interface can be configured to be in dense mode, sparse mode, or sparse-dense mode. The mode determines how the Layer 3 switch or router populates its multicast routing table and how the Layer 3 switch or router forwards multicast packets it receives from its directly connected LANs. You must enable PIM in one of these modes for an interface to perform IP multicast routing.

When the switch populates the multicast routing table, dense-mode interfaces are always added to the table. Sparse-mode interfaces are added to the table only when periodic join messages are received from downstream routers, or when there is a directly connected member on the interface. When forwarding from a LAN, sparse-mode operation occurs if there is an RP known for the group. If so, the packets are

Page 701 of the Cisco Systems 4500 user manual — Enabling Sparse-Dense Mode
Page 701 · click to enlarge
Page 701

Chapter 33 Configuring IP Multicast

Configuring IP Multicast Routing

encapsulated and sent toward the RP. When no RP is known, the packet is flooded in a dense-mode fashion. If the multicast traffic from a specific source is sufficient, the receiver’s first-hop router can send join messages toward the source to build a source-based distribution tree.

There is no default mode setting. By default, multicast routing is disabled on an interface.

Enabling Dense Mode

To configure PIM on an interface to be in dense mode, enter this command:

Switch(config-if)# ip pim dense-mode Enables dense-mode PIM on the interface.

For an example of how to configure a PIM interface in dense mode, see the “PIM Dense Mode Example” section.

Enabling Sparse Mode

To configure PIM on an interface to be in sparse mode, enter this command:

Switch(config-if)# ip pim sparse-mode

Enables sparse-mode PIM on the interface.

For an example of how to configure a PIM interface in sparse mode, see the “PIM Sparse Mode Example” section.

Enabling Sparse-Dense Mode

When you enter either the ip pim sparse-mode or ip pim dense-mode command, sparseness or denseness is applied to the interface as a whole. However, some environments might require PIM to run in a single region in sparse mode for some groups and in dense mode for other groups.

An alternative to enabling only dense mode or only sparse mode is to enable sparse-dense mode. The interface is treated as dense mode if the group is in dense mode; the interface is treated in sparse mode if the group is in sparse mode. If you want to treat the group as a sparse group, and the interface is in sparse-dense mode, you must have an RP.

If you configure sparse-dense mode, the idea of sparseness or denseness is applied to the group on the switch, and the network manager should apply the same concept throughout the network.

Another benefit of sparse-dense mode is that Auto-RP information can be distributed in a dense-mode manner; yet, multicast groups for user groups can be used in a sparse-mode manner. You do not need to configure a default RP at the leaf routers.

When an interface is treated in dense mode, it is populated in a multicast routing table’s outgoing interface list when either of the following is true:

  • When members or DVMRP neighbors exist on the interface
  • When PIM neighbors exist and the group has not been pruned
Page 702 of the Cisco Systems 4500 user manual — Enabling Bidirectional Mode
Page 702 · click to enlarge
Page 702

Chapter 33 Configuring IP Multicast Configuring IP Multicast Routing

When an interface is treated in sparse mode, it is populated in a multicast routing table’s outgoing interface list when either of the following is true:

  • When members or DVMRP neighbors exist on the interface
  • When an explicit join has been received by a PIM neighbor on the interface

To enable PIM to operate in the same mode as the group, enter this command:

Switch(config-if)# ip pim sparse-dense-mode

Enables PIM to operate in sparse or dense mode, depending on the group.

Enabling Bidirectional Mode

Most of the configuration requirements for Bidir-PIM are the same as those for configuring PIM-SM. You need not enable or disable an interface for carrying traffic for multicast groups in bidirectional mode. Instead, you configure which multicast groups you want to operate in bidirectional mode. Similar to PIM-SM, you can perform this configuration with Auto-RP, static RP configurations, or the PIM Version 2 bootstrap router (PIMv2 BSR) mechanism.

To enable Bidir-PIM, perform this task in global configuration mode:

Switch(config)# ip pim bidir-enable Enables bidir-PIM on a switch.

To configure Bidir-PIM, enter one of these commands, depending on which method you use to distribute group-to-RP mappings:

Switch(config)# ip pim rp-address rp-address [access-list] [override] bidir

Configures the address of a PIM RP for a particular group, and specifies bidirectional mode.

Use this command when you are not distributing group-to-RP mappings using either Auto-RP or the PIMv2 BSR mechanism

Switch(config)# ip pim rp-candidate type number [group-list access-list] bidir

Configures the router to advertise itself as a PIM Version 2 candidate RP to the BSR, and specifies bidirectional mode.

Use this command when you are using the PIMv2 BSR mechanism to distribute group-to-RP mappings.

Switch(config)# ip pim send-rp-address type number scope ttl-value [group-list access-list] [interval seconds] bidir

Configures the router to use Auto-RP to configure the groups the router is willing to act as RP, and specifies bidirectional mode.

Use this command when you are using Auto-RP to distribute group-to-RP mappings.

Page 703 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 703 · click to enlarge
Page 703

Chapter 33 Configuring IP Multicast

Configuring IP Multicast Routing

For an example of how to configure bidir-PIM, see the “Bidirectional PIM Mode Example” section on page 33-29.

Enabling PIM-SSM Mapping

The Catalyst 4500 series switch supports SSM mapping, enabling an SSM transition in cases either where neither URD nor IGMP v3-lite is available, or when supporting SSM on the end system is impossible or unwanted due to administrative or technical reasons. With SSM mapping, you can leverage SSM for video delivery to legacy set-top boxes (STBs) that do not support IGMPv3 or for applications that do not take advantage of the IGMPv3 host stack.

For more details, refer to this URL:

http://www.cisco.com/en/US/docs/ios-xml/ios/ipmulti_igmp/configuration/15-s/imc_ssm_map.html

Configuring a Rendezvous Point

A rendezvous point (RP) is required in networks running Protocol Independent Multicast sparse mode (PIM-SM). In PIM-SM, traffic is forwarded only to network segments with active receivers that have explicitly requested multicast data.

The most commonly used methods to configure a rendezvous point (described here) are the use of Static RP and the use of the Auto-RP protocol. Another method (not described here) is the use of the Bootstrap Router (BSR) protocol.

Configuring Auto-RP

Auto-rendezvous point (Auto-RP) automates the distribution of group-to-rendezvous point (RP) mappings in a PIM network. To make Auto-RP work, a router must be designated as an RP mapping agent, which receives the RP announcement messages from the RPs and arbitrates conflicts. The RP mapping agent then sends the consistent group-to-RP mappings to all other routers by way of dense mode flooding.

All routers automatically discover which RP to use for the groups they support. The Internet Assigned Numbers Authority (IANA) has assigned two group addresses, 224.0.1.39 and 224.0.1.40, for Auto-RP.

The mapping agent receives announcements of intention to become the RP from Candidate-RPs. The mapping agent then announces the winner of the RP election. This announcement is made independently of the decisions by the other mapping agents.

To configure a rendezvous point, perform this task:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# ip multicast-routing Enables IP multicast routing.

Step 4 Switch(config)# interface [FastEthernet | GigabitEthernet | Loopback | Null | Port-channel | TenGigabitEthernet | Tunnel | Vlan] number

Selects an interface that is connected to hosts on which PIM can be enabled.

Page 704 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 704 · click to enlarge
Page 704

Chapter 33 Configuring IP Multicast Configuring IP Multicast Routing

Command or Action Purpose

Step 5 Switch(config-if)# ip pim [sparse-mode | sparse-dense-mode]

Enables PIM sparse or sparse-dense mode on an interface. When configuring Auto-RP in sparse mode, you must also configure the Auto-RP listener in the next step.

Step 6 Switch(config-if)# exit Returns to global configuration mode.

Step 7 Repeat Steps 4 and 5 on all PIM interfaces. —

Step 8 Switch(config)# ip pim autorp listener Causes IP multicast traffic for the two Auto-RP groups 224.0.1.39 and 224.0.1.40 to be PIM dense mode flooded across interfaces operating in PIM sparse mode.

  • Skip this step if you are configuring sparse-dense mode in Step 8.

Step 9 Switch(config)# ip pim send-rp-announce {interface-type interface-number | ip-address} scope ttl-value [group-list access-list] [interval seconds] [bidir]

Sends RP announcements out all PIM-enabled interfaces.

  • Perform this step on the RP router only.
  • Use the interface-type and interface-number arguments to define which IP address is to be used as the RP address.
  • Use the ip-address argument to specify a directly connected IP address as the RP address.
  • This example shows that the interface is enabled with a maximum of 31 hops. The IP address by which the router wants to be identified as RP is the IP address associated with loopback interface 0. Access list 5 describes the groups for which this router serves as RP.
Page 705 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 705 · click to enlarge
Page 705

Chapter 33 Configuring IP Multicast

Configuring IP Multicast Routing

Command or Action Purpose

Step 10 Switch(config)# ip pim send-rp-discovery [interface-type interface-number] scope ttl-value [interval seconds]

Configures the router to be an RP mapping agent.

  • Perform this step on the RP router only.
  • Use the optional interface-type and interface-number arguments to define which IP address is to be used as the source address of the RP mapping agent.
  • Use the scope keyword and ttl-value argument to specify the Time-to-Live (TTL) value in the IP header of Auto-RP discovery messages.
  • Use the optional interval keyword and seconds argument to specify the interval at which Auto-RP discovery messages are sent.
  • The example shows limiting the Auto-RP discovery messages to 31 hops on loopback interface 1.

Step 11 Switch(config)# ip pim rp-announce-filter rp-list access-list group-list access-list

Filters incoming Auto-RP announcement messages coming from the RP.

  • Perform this step on the RP router only.
  • Two example access lists that apply to this step could be:

access-list 1 permit 10.0.0.1 access-list 1 permit 10.0.0.2 access-list 2 permit 224.0.0.0 15.255.255.255

Step 12 Switch(config)# interface type number Selects an interface that is connected to hosts on which PIM can be enabled.

Step 13 Switch(config-if)# interface ethernet 1 ip multicast boundary access-list [filter-autorp]

Configures an administratively scoped boundary.

  • Perform this step on the interfaces that are boundaries to other routers.
  • The access list is not shown in this task.
  • An access list entry that uses the deny keyword creates a multicast boundary for packets that match that entry.

Step 14 Switch(config-if)# end Returns to EXEC mode.

Step 15 Switch# show ip pim autorp (Optional) Displays the Auto-RP information.

Step 16 Switch# show ip pim rp [mapping] [rp-address] (Optional) Displays RPs known in the network and shows how the router learned about each RP.

Page 706 of the Cisco Systems 4500 user manual — Configuring a Single Static RP
Page 706 · click to enlarge
Page 706

Chapter 33 Configuring IP Multicast Configuring IP Multicast Routing

Command or Action Purpose

Step 17 Switch# show ip igmp groups [group-name | group-address | interface-type interface-number] [detail]

(Optional) Displays the multicast groups having receivers that are directly connected to the router and that were learned through Internet Group Management Protocol (IGMP).

  • A receiver must be active on the network at the time that this command is issued to ensure the presence of receiver information on the resulting display.

Step 18 Switch# show ip mroute [group-address | group-name] [source-address | source-name] [interface-type interface-number] [summary] [count] [active kbps]

(Optional) Displays the contents of the IP multicast routing (mroute) table.

This example illustrates how to configure Auto-RP:

Switch> enable Switch# configure terminal Switch(config)# ip multicast-routing Switch(config)# interface ethernet 1 Switch(config-if)# ip pim sparse-mode Switch(config-if)# end Switch(config)# ip pim autorp listener Switch(config)# ip pim send-rp-announce loopback0 scope 31 group-list 5 Switch(config)# ip pim send-rp-discovery loopback 1 scope 31 Switch(config)# ip pim rp-announce-filter rp-list 1 group-list 2 Switch(config)# interface ethernet 1 Switch(config-if)# ip multicast boundary 10 filter-autorp Switch(config-if)# end Switch# show ip pim autorp Switch# show ip pim rp mapping Switch# show ip igmp groups Switch# show ip mroute cbone-audio

Configuring a Single Static RP

If you are configuring PIM sparse mode, you must configure a PIM RP for a multicast group. An RP can either be configured statically in each device, or learned through a dynamic mechanism. This task explains how to statically configure an RP, as opposed to the router learning the RP through a dynamic mechanism such as Auto-RP.

PIM designated routers (DRs) forward data from directly connected multicast sources to the RP for distribution down the shared tree. Data is forwarded to the RP in one of two ways. It is encapsulated in register packets and unicast directly to the RP, or, if the RP has itself joined the source tree, it is multicast forwarded per the RPF forwarding algorithm. Last hop routers directly connected to receivers may, at their discretion, join themselves to the source tree and prune themselves from the shared tree.

A single RP can be configured for multiple groups that are defined by an access list. If no RP is configured for a group, the router treats the group as dense using the PIM dense mode techniques. (You can prevent this occurrence by configuring the no ip pim dm-fallback command.)

If a conflict exists between the RP configured with the ip pim rp-address command and one learned by Auto-RP, the Auto-RP information is used, unless the override keyword is configured.

Page 707 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 707 · click to enlarge
Page 707

Chapter 33 Configuring IP Multicast

Configuring IP Multicast Routing

To configure a single static RP, perform this task:

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# ip multicast-routing Enables IP multicast routing.

Step 4 Switch(config)# interface type number Selects an interface that is connected to hosts on which PIM can be enabled.

Step 5 Switch(config-if)# ip pim [sparse-mode | sparse-dense-mode]

Enables PIM on an interface. You must use sparse mode.

Step 6 Repeat Steps 4 and 5 on every interface that uses IP multicast.

Step 7 Switch(config-if)# exit Returns to global configuration mode.

Step 8 Switch(config)# ip pim rp-address rp-address [access-list] [override]

Configures the address of a PIM RP for a particular group.

  • Perform this step on any router.
  • The access-list argument specifies the number or name of an access list that defines for which multicast groups the RP should be used.
  • The override keyword specifies that if there is a conflict between the RP configured with this command and one learned by Auto-RP, the RP configured with this command prevails.

Step 9 Switch(config)# end Ends the current configuration session and returns to EXEC mode.

Step 10 Switch# show ip pim rp [mapping] [rp-address] (Optional) Displays RPs known in the network and shows how the router learned about each RP.

Step 11 Switch# show ip igmp groups [group-name | group-address | interface-type interface-number] [detail]

(Optional) Displays the multicast groups having receivers that are directly connected to the router and that were learned through IGMP.

  • A receiver must be active on the network at the time that this command is issued to ensure that receiver information is present on the resulting display.

Step 12 Switch# show ip mroute [group-address | group-name] [source-address | source-name] [interface-type interface-number] [summary] [count] [active kbps]

(Optional) Displays the contents of the IP multicast routing (mroute) table.

Page 708 of the Cisco Systems 4500 user manual — Load Splitting of IP Multicast Traffic
Page 708 · click to enlarge
Page 708

Chapter 33 Configuring IP Multicast Configuring IP Multicast Routing

This example shows how to configure a single-static RP:

Switch> enable Switch# configure terminal Switch(config)# ip multicast-routing Switch(config)# interface ethernet 1 Switch(config-if)# ip pim sparse-mode Switch(config-if)# exit Switch(config)# ip pim rp-address 192.168.0.0 Switch(config)# end Switch# show ip pim rp mapping Switch# show ip igmp groups Switch# show ip mroute cbone-audio

Load Splitting of IP Multicast Traffic

If two or more equal-cost paths from a source are available, unicast traffic is load split across those paths. However, by default, multicast traffic is not load split across multiple equal-cost paths. In general, multicast traffic flows down from the reverse path forwarding (RPF) neighbor. According to the Protocol Independent Multicast (PIM) specifications, this neighbor must have the highest IP address if more than one neighbor has the same metric.

Use the ip multicast multipath command to enable load splitting of IP multicast traffic across multiple equal-cost paths.

To enable IP multicast multipath, perform this task:

Step 1 Switch# config t Enters configuration mode.

Step 2 Switch(config)# ip multicast multipath Enables IP multicast multipath.

Step 3 Switch(config)# end Exits configuration mode.

Configuring load splitting with the ip multicast multipath command causes the system to load split multicast traffic across multiple equal-cost paths based on source address using the S-hash algorithm. When the ip multicast multipath command is configured and multiple equal-cost paths exist, the path in which multicast traffic travel is selected based on the source IP address. Multicast traffic from different sources is load split across the different equal-cost paths. Load splitting does not occur across equal-cost paths for multicast traffic from the same source sent to different multicast groups.

The following example shows how to enable ECMP multicast load splitting on a router based on a source address using the S-hash algorithm:

Switch(config)# ip multicast multipath

Page 709 of the Cisco Systems 4500 user manual — Displaying the Multicast Routing Table
Page 709 · click to enlarge
Page 709

Chapter 33 Configuring IP Multicast

Monitoring and Maintaining IP Multicast Routing

The following example shows how to enable ECMP multicast load splitting on a router based on a source and group address using the basic S-G-hash algorithm:

Switch(config)# ip multicast multipath s-g-hash basic

The following example shows how to enable ECMP multicast load splitting on a router based on a source, group, and next-hop address using the next-hop-based S-G-hash algorithm:

Switch(config)# ip multicast multipath s-g-hash next-hop-based

Monitoring and Maintaining IP Multicast Routing

You can remove all contents of a particular cache, table, or database. You also can display specific statistics. The following sections describe how to monitor and maintain IP multicast:

  • Displaying System and Network Statistics, page 33-23
  • Displaying the Multicast Routing Table, page 33-23
  • Displaying IP MFIB, page 33-26
  • Displaying Bidirectional PIM Information, page 33-27
  • Displaying PIM Statistics, page 33-27
  • Clearing Tables and Databases, page 33-28

Displaying System and Network Statistics

You can display specific statistics, such as the contents of IP routing tables and databases. Information provided can be used to determine resource utilization and solve network problems. You can also display information about node reachability and discover the routing path your device’s packets are taking using the network.

To display various routing statistics, enter any of these commands:

Switch# ping [group-name | group-address] Sends an ICMP Echo Request to a multicast group address.

Switch# show ip mroute [hostname | group_number]

Displays the contents of the IP multicast routing table.

Switch# show ip pim interface [type number] [count]

Displays information about interfaces configured for PIM.

Switch# show ip interface Displays PIM information for all interfaces.

Displaying the Multicast Routing Table

The following is sample output from the show ip mroute command for a router operating in dense mode. This command displays the contents of the IP multicast FIB table for the multicast group named cbone-audio.

Page 710 of the Cisco Systems 4500 user manual — Configuring IP Multicast
Page 710 · click to enlarge
Page 710

Chapter 33 Configuring IP Multicast Monitoring and Maintaining IP Multicast Routing

Switch# show ip mroute cbone-audio IP Multicast Routing Table Flags: D - Dense, S - Sparse, C - Connected, L - Local, P - Pruned R - RP-bit set, F - Register flag, T - SPT-bit set Timers: Uptime/Expires Interface state: Interface, Next-Hop, State/Mode (*, 224.0.255.1), uptime 0:57:31, expires 0:02:59, RP is 0.0.0.0, flags: DC

Incoming interface: Null, RPF neighbor 0.0.0.0, Dvmrp Outgoing interface list: Ethernet0, Forward/Dense, 0:57:31/0:02:52 Tunnel0, Forward/Dense, 0:56:55/0:01:28 (198.92.37.100/32, 224.0.255.1), uptime 20:20:00, expires 0:02:55, flags: C

Incoming interfaceTunnel0, RPF neighbor 10.20.37.33, Dvmrp Outgoing interface list: Ethernet0, Forward/Dense, 20:20:00/0:02:52

The following is sample output from the show ip mroute command for a router operating in sparse mode:

Switch# show ip mroute IP Multicast Routing Table Flags: D - Dense, S - Sparse, C - Connected, L - Local, P - Pruned R - RP-bit set, F - Register flag, T - SPT-bit set Timers: Uptime/Expires Interface state: Interface, Next-Hop, State/Mode (*, 224.0.255.3), uptime 5:29:15, RP is 198.92.37.2, flags: SC Incoming interface: Tunnel0, RPF neighbor 10.3.35.1, Dvmrp Outgoing interface list: Ethernet0, Forward/Sparse, 5:29:15/0:02:57 (198.92.46.0/24, 224.0.255.3), uptime 5:29:15, expires 0:02:59, flags: C Incoming interface: Tunnel0, RPF neighbor 10.3.35.1 Outgoing interface list: Ethernet0, Forward/Sparse, 5:29:15/0:02:57

The following is sample output from the show ip mroute command with the summary keyword:

Switch# show ip mroute summary IP Multicast Routing Table Flags: D - Dense, S - Sparse, C - Connected, L - Local, P - Pruned R - RP-bit set, F - Register flag, T - SPT-bit set, J - Join SPT Timers: Uptime/Expires Interface state: Interface, Next-Hop, State/Mode (*, 224.255.255.255), 2d16h/00:02:30, RP 171.69.10.13, flags: SJPC (*, 224.2.127.253), 00:58:18/00:02:00, RP 171.69.10.13, flags: SJC (*, 224.1.127.255), 00:58:21/00:02:03, RP 171.69.10.13, flags: SJC (*, 224.2.127.254), 2d16h/00:00:00, RP 171.69.10.13, flags: SJCL (128.9.160.67/32, 224.2.127.254), 00:02:46/00:00:12, flags: CLJT (129.48.244.217/32, 224.2.127.254), 00:02:15/00:00:40, flags: CLJT

Page 711 of the Cisco Systems 4500 user manual — Configuring IP Multicast
Page 711 · click to enlarge
Page 711

Chapter 33 Configuring IP Multicast

Monitoring and Maintaining IP Multicast Routing

(130.207.8.33/32, 224.2.127.254), 00:00:25/00:02:32, flags: CLJT (131.243.2.62/32, 224.2.127.254), 00:00:51/00:02:03, flags: CLJT (140.173.8.3/32, 224.2.127.254), 00:00:26/00:02:33, flags: CLJT (171.69.60.189/32, 224.2.127.254), 00:03:47/00:00:46, flags: CLJT The following is sample output from the show ip mroute command with the active keyword:

Switch# show ip mroute active Active IP Multicast Sources - sending >= 4 kbps Group: 224.2.127.254, (sdr.cisco.com) Source: 146.137.28.69 (mbone.ipd.anl.gov) Rate: 1 pps/4 kbps(1sec), 4 kbps(last 1 secs), 4 kbps(life avg) Group: 224.2.201.241, ACM 97 Source: 130.129.52.160 (webcast3-e1.acm97.interop.net) Rate: 9 pps/93 kbps(1sec), 145 kbps(last 20 secs), 85 kbps(life avg) Group: 224.2.207.215, ACM 97 Source: 130.129.52.160 (webcast3-e1.acm97.interop.net) Rate: 3 pps/31 kbps(1sec), 63 kbps(last 19 secs), 65 kbps(life avg)

The following is sample output from the show ip mroute command with the count keyword:

Switch# show ip mroute count IP Multicast Statistics - Group count: 8, Average sources per group: 9.87 Counts: Pkt Count/Pkts per second/Avg Pkt Size/Kilobits per second Group: 224.255.255.255, Source count: 0, Group pkt count: 0 RP-tree: 0/0/0/0 Group: 224.2.127.253, Source count: 0, Group pkt count: 0 RP-tree: 0/0/0/0 Group: 224.1.127.255, Source count: 0, Group pkt count: 0 RP-tree: 0/0/0/0 Group: 224.2.127.254, Source count: 9, Group pkt count: 14 RP-tree: 0/0/0/0 Source: 128.2.6.9/32, 2/0/796/0 Source: 128.32.131.87/32, 1/0/616/0 Source: 128.125.51.58/32, 1/0/412/0 Source: 130.207.8.33/32, 1/0/936/0 Source: 131.243.2.62/32, 1/0/750/0 Source: 140.173.8.3/32, 1/0/660/0 Source: 146.137.28.69/32, 1/0/584/0 Source: 171.69.60.189/32, 4/0/447/0 Source: 204.162.119.8/32, 2/0/834/0 Group: 224.0.1.40, Source count: 1, Group pkt count: 3606 RP-tree: 0/0/0/0 Source: 171.69.214.50/32, 3606/0/48/0, RPF Failed: 1203 Group: 224.2.201.241, Source count: 36, Group pkt count: 54152 RP-tree: 7/0/108/0 Source: 13.242.36.83/32, 99/0/123/0 Source: 36.29.1.3/32, 71/0/110/0 Source: 128.9.160.96/32, 505/1/106/0 Source: 128.32.163.170/32, 661/1/88/0 Source: 128.115.31.26/32, 192/0/118/0 Source: 128.146.111.45/32, 500/0/87/0 Source: 128.183.33.134/32, 248/0/119/0

Page 712 of the Cisco Systems 4500 user manual — Displaying IP MFIB
Page 712 · click to enlarge
Page 712

Chapter 33 Configuring IP Multicast Monitoring and Maintaining IP Multicast Routing

Source: 128.195.7.62/32, 527/0/118/0 Source: 128.223.32.25/32, 554/0/105/0 Source: 128.223.32.151/32, 551/1/125/0 Source: 128.223.156.117/32, 535/1/114/0 Source: 128.223.225.21/32, 582/0/114/0 Source: 129.89.142.50/32, 78/0/127/0 Source: 129.99.50.14/32, 526/0/118/0 Source: 130.129.0.13/32, 522/0/95/0 Source: 130.129.52.160/32, 40839/16/920/161 Source: 130.129.52.161/32, 476/0/97/0 Source: 130.221.224.10/32, 456/0/113/0 Source: 132.146.32.108/32, 9/1/112/0

Displaying IP MFIB

You can display all routes in the MFIB, including routes that might not exist directly in the upper-layer routing protocol database but that are used to accelerate fast switching. These routes appear in the MFIB, even if dense-mode forwarding is in use.

To display various MFIB routing routes, enter one of these commands:

Switch# show ip mfib Displays the (S,G) and (*,G) routes that are used for packet forwarding. Displays counts for fast, slow, and partially switched packets for every multicast route.

Switch# show ip mfib all Displays all routes in the MFIB, including routes that may not exist directly in the upper-layer routing protocol database, but that are used to accelerate fast switching. These routes include the (S/M,224/4) routes.

Switch# show ip mfib log [n] Displays a log of the most recent n MFIB-related events, the most recent first.

n represents the number of events.

The following is sample output from the show ip mfib command:

IP Multicast Forwarding Information Base Entry Flags: C - Directly Connected, S - Signal, IC - Internal Copy Interface Flags: A - Accept, F - Forward, S - Signal, NP - Not platform switched Packets: Fast/Partial/Slow Bytes: Fast/Partial/Slow: (171.69.10.13, 224.0.1.40), flags (IC) Packets: 2292/2292/0, Bytes: 518803/0/518803 Vlan7 (A) Vlan100 (F NS) Vlan105 (F NS) (*, 224.0.1.60), flags () Packets: 2292/0/0, Bytes: 518803/0/0 Vlan7 (A NS) (*, 224.0.1.75), flags () Vlan7 (A NS)

Page 713 of the Cisco Systems 4500 user manual — Displaying PIM Statistics
Page 713 · click to enlarge
Page 713

Chapter 33 Configuring IP Multicast

Monitoring and Maintaining IP Multicast Routing

(10.34.2.92, 239.192.128.80), flags () Packets: 24579/100/0, 2113788/15000/0 bytes Vlan7 (F NS) Vlan100 (A) (*, 239.193.100.70), flags () Packets: 1/0/0, 1500/0/0 bytes Vlan7 (A) ..

The fast-switched packet count represents the number of packets that were switched in hardware on the corresponding route.

The partially switched packet counter represents the number of times that a fast-switched packet was also copied to the CPU for software processing or for forwarding to one or more non-platform switched interfaces (such as a PimTunnel interface).

The slow-switched packet count represents the number of packets that were switched completely in software on the corresponding route.

Displaying Bidirectional PIM Information

To display bidir-PIM information, enter one of these commands:

Switch(config)# show ip pim interface [type number] [df | count] [rp-address]

Displays information about the elected designated forward (DF) for each RP of an interface, along with the unicast routing metric associated with the DF.

Switch(config)# show ip pim rp [mapping | metric] [rp-address]

Displays information about configured RPs, learned by using Auto-RP or BSR, along with their unicast routing metric.

Displaying PIM Statistics

The following is sample output from the show ip pim interface command:

Switch# show ip pim interface Address Interface Mode Neighbor Query DR Count Interval 198.92.37.6 Ethernet0 Dense 2 30 198.92.37.33 198.92.36.129 Ethernet1 Dense 2 30 198.92.36.131 10.1.37.2 Tunnel0 Dense 1 30 0.0.0.0

The following is sample output from the show ip pim interface command with a count:

Switch# show ip pim interface count Address Interface FS Mpackets In/Out 171.69.121.35 Ethernet0 * 548305239/13744856 171.69.121.35 Serial0.33 * 8256/67052912 198.92.12.73 Serial0.1719 * 219444/862191

The following is sample output from the show ip pim interface command with a count when IP multicast is enabled. The example lists the PIM interfaces that are fast-switched and process-switched, and the packet counts for these. The H is added to interfaces where IP multicast is enabled.

Page 714 of the Cisco Systems 4500 user manual — PIM Sparse Mode Example
Page 714 · click to enlarge
Page 714

Chapter 33 Configuring IP Multicast Configuration Examples

Switch# show ip pim interface count States: FS - Fast Switched, H - Hardware Switched Address Interface FS Mpackets In/Out 192.1.10.2 Vlan10 * H 40886/0 192.1.11.2 Vlan11 * H 0/40554 192.1.12.2 Vlan12 * H 0/40554 192.1.23.2 Vlan23 * 0/0 192.1.24.2 Vlan24 * 0/0

Clearing Tables and Databases

You can remove all contents of a particular cache, table, or database. Clearing a cache, table, or database might be necessary when the contents of the particular structure have become, or are suspected to be, invalid.

To clear IP multicast caches, tables, and databases, enter one of these commands:

Switch# clear ip mroute Deletes entries from the IP routing table.

Switch# clear ip mfib counters Deletes all per-route and global MFIB counters.

Configuration Examples

The following sections provide IP multicast routing configuration examples:

  • PIM Dense Mode Example, page 33-28
  • PIM Sparse Mode Example, page 33-28
  • Bidirectional PIM Mode Example, page 33-29
  • Sparse Mode with a Single Static RP Example, page 33-29
  • Sparse Mode with Auto-RP: Example, page 33-30

PIM Dense Mode Example

This example is a configuration of dense-mode PIM on an Ethernet interface:

ip multicast-routing interface ethernet 0 ip pim dense-mode

PIM Sparse Mode Example

This example is a configuration of sparse-mode PIM. The RP router is the router with the address 10.8.0.20.

Page 715 of the Cisco Systems 4500 user manual — Sparse Mode with a Single Static RP Example
Page 715 · click to enlarge
Page 715

Chapter 33 Configuring IP Multicast

ip multicast-routing ip pim rp-address 10.8.0.20 1 interface ethernet 1 ip pim sparse-mode

Bidirectional PIM Mode Example

By default, a bidirectional RP advertises all groups as bidirectional. Use an access list on the RP to specify a list of groups to be advertised as bidirectional. Groups with the deny keyword operate in dense mode. A different, nonbidirectional RP address is required for groups that operate in sparse mode, because a single access list only allows either a permit or deny keyword.

The following example shows how to configure an RP for both sparse and bidirectional mode groups. 224/8 and 227/8 are bidirectional groups, 226/8 is sparse mode, and 225/8 is dense mode. The RP must be configured to use different IP addresses for sparse and bidirectional mode operations. Two loopback interfaces are used to allow this configuration and the addresses of these interfaces must be routed throughout the PIM domain so that the other routers in the PIM domain can receive Auto-RP announcements and communicate with the RP:

ip multicast-routing !Enable IP multicast routing ip pim bidir-enable !Enable bidir-PIM ! interface loopback 0 description One Loopback address for this routers Bidir Mode RP function ip address 10.0.1.1 255.255.255.0 ip pim sparse-dense-mode ! interface loopback 1 description One Loopback address for this routers Sparse Mode RP function ip address 10.0.2.1 255.255.255.0 ip pim sparse-dense-mode ip pim send-rp-announce Loopback0 scope 10 group-list 45 bidir ip pim send-rp-announce Loopback1 scope 10 group-list 46 ip pim send-rp-discovery scope 10 access-list 45 permit 224.0.0.0 0.255.255.255 access-list 45 permit 227.0.0.0 0.255.255.255 access-list 45 deny 225.0.0.0 0.255.255.255 access-list 46 permit 226.0.0.0 0.255.255.255

Sparse Mode with a Single Static RP Example

The following example sets the PIM RP address to 192.168.1.1 for all multicast groups and defines all groups to operate in sparse mode:

ip multicast-routing interface ethernet 1 ip pim sparse-mode ip pim rp-address 192.168.1.1 no ip pim dm-fallback

The following example sets the PIM RP address to 172.16.1.1 for the multicast group 225.2.2.2 only:

access list 1 225.2.2.2 0.0.0.0 ip pim rp-address 172.17.1.1

Configuration Examples

Page 716 of the Cisco Systems 4500 user manual — Sparse Mode with Auto-RP: Example
Page 716 · click to enlarge
Page 716

Chapter 33 Configuring IP Multicast Configuration Examples

Sparse Mode with Auto-RP: Example

The following example configures sparse mode with Auto-RP:

ip multicast-routing ip pim autorp listener ip pim send-rp-announce Loopback0 scope 16 group-list 1 ip pim send-rp-discovery Loopback1 scope 16 no ip pim dm-fallback access-list 1 permit 239.254.2.0 0.0.0.255 access-list 1 permit 239.254.3.0 0.0.0.255 . . . access-list 10 permit 224.0.1.39 access-list 10 permit 224.0.1.40 access-list 10 permit 239.254.2.0 0.0.0.255 access-list 10 permit 239.254.3.0 0.0.0.255

Page 717 of the Cisco Systems 4500 user manual — About ANCP Client
Page 717 · click to enlarge
Page 717

C H A P T E R

Configuring ANCP Client

This chapter describes Access-Network Control Protocol (ANCP) Client on Catalyst 4500 series switches. It includes the following sections:

  • About ANCP Client, page 34-1
  • Enabling and Configuring ANCP Client, page 34-2

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About ANCP Client

ANCP Multicast enables you to control multicast traffic on a Catalyst 4500 series switch using either ANCP (instead of IGMP) or direct static configuration on the CLI. You can configure the switch as an ANCP client that connects to a remote ANCP server with multicast enabled. You can then initiate joins and leaves from that server. Use the switch in a system in which a subscriber requests that a digital right management (DRM) server receive a given channel (multicast) potentially through any private protocol mechanism.

If the digital right management (DRM) server determines that a subscriber is allowed to receive a multicast, it requests that the ANCP server sends an ANCP join command to the ANCP client (Catalyst 4500 series switch) for the port on which the subscriber is connected.

Page 718 of the Cisco Systems 4500 user manual — Identifying a Port with the ANCP Protocol
Page 718 · click to enlarge
Page 718

Chapter 34 Configuring ANCP Client Enabling and Configuring ANCP Client

The ANCP protocol must be able to identify the port on which multicast must be added. (This port can be identified either using the identifier configured on the CLI or with the DHCP option 82 that was inserted by the Catalyst 4500 switch while the subscriber received an IP address with DHCP. Either way, you should be consistent in identifying a given port.

Enabling and Configuring ANCP Client

You can identify a port with the ancp mode client command or with DHCP option 82.

This section includes these topics:

  • Identifying a Port with the ANCP Protocol, page 34-2
  • Identifying a Port with DHCP Option 82, page 34-4

Identifying a Port with the ANCP Protocol

To make the Catalyst 4500 series switch operate as an ANCP client and to build and initialize its relevant data, enter the ancp mode client command. The no version of this command disables ANCP. This command disconnects the ANCP client from the ANCP server and terminates any existing multicast streams that have been enabled with ANCP.

To configure a switch to communicate with a single ANCP server, use the [no] ancp client server interface command. This command directs the ANCP client to initiate a TCP connection to the remote ANCP server identified with the IP address. If the TCP connection fails, the connection times out and retries for the connection every 120 seconds until it succeeds. The interface command specifies the interface from which the local ANCP client obtains its IP address.The no command terminates the TCP connection to the ANCP server but retains any existing ANCP activated multicast stream.

Separate commands enable the ANCP client and configure the IP address of the ANCP server. You can reconfigure the IP address of the remote ANCP server without losing existing ANCP activated multicast streams.

To identify a port with the ANCP protocol, follow these steps:

Step 1 Enable ANCP as follows:

Switch(config)> ancp mode client

Step 2 Configure the IP address of the remote server as the interface to acquire the source IP address:

Switch(config)> ancp client server ipaddress of server interface interface

The interface might be a loopback; this allows the client to reach the server using the interface.

Page 719 of the Cisco Systems 4500 user manual — Example 1
Page 719 · click to enlarge
Page 719

Chapter 34 Configuring ANCP Client

Enabling and Configuring ANCP Client

Step 3 (Optional) Enable the ANCP multicast client to identify this VLAN interface using the port-identifier as opposed to the Option 82 circuit-id:

Switch(config)> ancp client port identifier [port-identifier] vlan [number] interface [interface]

The no version of this command prompts a warning message if any multicast stream is activated by ANCP using the port-identifier on a port:

Switch(config)# no ancp client port identifier bbb vlan 10 interface GigabitEthernet3/5 Warning: Multicast flows seems to exist for this port, remove mapping and delete flows anyway?[confirm]y Switch(config)#

The ANCP client tries to connect to the server. If it fails, it tries again 10 seconds later. If it fails again, it tries at 20 seconds intervals, until it reaches the timeout setting (120 seconds). It remains timed out until it reconnects.

To determine whether the ANCP client is successfully connected to the server, enter the show ancp status command, which displays the status of the ANCP TCP connection with the remote ANCP server.

Switch# show ancp status ANCP enabled on following interfaces

Et0/0 ANCP end point(s) on this interface: ====================================

ANCP state ESTAB Neighbor 10.1.1.1 Neighbor port 6068 Hello interval 100 Sender instance 1 Sender name 372F61C Sender port 0 Partition ID 0 TCB 36E27E8 Capabilities negotiated: Transactional Multicast

In the preceding example, only one capability (transactional multicast) is negotiated (or supported). This capability is the only one that the ANCP client supports. Because the server also supports this capability, the two entities can now communicate.

The server can send ANCP multicast commands (join, leave, leave all requests, and request for active flows report) as defined in the multicast portion of the ANCP protocol. At any time, an administrator can use to the show ancp multicast [interface vlan] [group | source] command to see the information the ANCP client has obtained about the current multicast flows.

Example 1

ANCP_Client# show ancp multicast group 239.6.6.6 ANCP Multicast Streams ClientID VLAN Interface Joined on Group 239.6.6.6 0x0106000700130103 19 Gi1/3 15:06:23 UTC Tue Aug 26 2008 ANCP_Client#

Switch#

Page 720 of the Cisco Systems 4500 user manual — Identifying a Port with DHCP Option 82
Page 720 · click to enlarge
Page 720

Chapter 34 Configuring ANCP Client Enabling and Configuring ANCP Client

Example 2

ANCP_Client# show ancp multicast interface Fa2/3 vlan 19 ANCP Multicast Streams Interface FastEthernet2/3 VLAN 19: client ID 0x0106000700130203 Group Source Joined on 239.5.6.7 - 15:03:14 UTC Tue Aug 26 2008 ANCP_Client#

Identifying a Port with DHCP Option 82

If you identify the port with DHCP option 82, you need to configure the Catalyst 4500 series switch as a DHCP relay to insert the DHCP option 82. This action adds a tag in the DHCP packet from the DHCP client so that the DHCP server knows the port connected to this specific DHCP client. The DHCP server can then map the IP address it is providing to the client with the DHCP option 82 it received from the switch. The DHCP server only needs to lookup the DHCP option 82 associated with a given IP address and provide it to the ANCP server. This allows the ANCP client on the switch to identify the proper port using an identifier the switch understands. The configure DHCP snooping on the Catalyst 4500 series switch, use the following commands:

Switch(config)# ip dhcp snooping Switch(config)# ip dhcp snooping vlan vlan-range

By default, DHCP option 82 is inserted when DHCP snooping is activated. Turning this default off could cause ANCP to function improperly with the DHCP circuit-id; it must remain active. To activate it, enter this command:

Switch(config)# ip dhcp snooping information option

ANCP allows a remote server to request the list of active flows from the ANCP client (Catalyst 4500 series switch is the ANCP client). This list is very similar to the output from the show ancp multicast command except that it follows the ANCP protocol packet format (see IETF.org). Observe that the show ancp multicast command provides the flows that have been activated with the ancp port client identifier command while the ANCP active flow request only reports the client ID in DHCP option 82 circuit-ID format, regardless of the activation mechanism.

Refer to Chapter 45, “Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts” for details on the CLI.

Page 721 of the Cisco Systems 4500 user manual — ANCP Guidelines and Restrictions
Page 721 · click to enlarge
Page 721

Chapter 34 Configuring ANCP Client

ANCP Guidelines and Restrictions

ANCP Guidelines and Restrictions

When using (or configuring) ANCP, consider these guidelines and restrictions:

  • Entering a shut command on a port removes ANCP activated multicast streams from the port. They must be reactivated by the ANCP server.
  • Entering a suspend or shut command on a VLAN removes ANCP-activated multicast streams from the VLAN.
  • Deleting a VLAN removes ANCP-activated multicast streams from the VLAN.
  • If a port enters the errdisable or blocked state, ANCP-activated multicast streams are removed from the port.
  • Disabling IGMP snooping globally or per-VLAN might disrupt ANCP client functionality.
  • An ANCP client does not account for the Layer 3 interface state changes (if PIM interface at Layer 3 shuts down, ANCP does not remove the streams). When a PIM interface is running again, multicast streams are received by subscribers.
Page 722 of the Cisco Systems 4500 user manual — Configuring ANCP Client
Page 722 · click to enlarge
Page 722

Chapter 34 Configuring ANCP Client ANCP Guidelines and Restrictions

Page 723 of the Cisco Systems 4500 user manual — About Policy-Based Routing
Page 723 · click to enlarge
Page 723

C H A P T E R

Configuring Policy-Based Routing

This chapter describes the tasks for configuring policy-based routing (PBR) on a Catalyst 4500 series switch and includes these major sections:

  • About Policy-Based Routing, page 35-1
  • Policy-Based Routing Configuration Tasks, page 35-6
  • Policy-Based Routing Configuration Examples, page 35-8

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Policy-Based Routing

This section contains the following sections:

  • About PBR, page 35-2
  • PBR Flow Switching, page 35-5
  • Using Policy-Based Routing, page 35-5

PBR gives you a flexible method of routing packets by allowing you to define policies for traffic flows, lessening reliance on routes derived from routing protocols. PBR gives you more control over routing by extending and complementing the existing mechanisms provided by routing protocols. PBR allows you to specify paths for certain traffic, such as priority traffic over a high-cost link.

Page 724 of the Cisco Systems 4500 user manual — Understanding Route-Maps
Page 724 · click to enlarge
Page 724

Chapter 35 Configuring Policy-Based Routing About Policy-Based Routing

You can set up PBR as a way to route packets based on configured policies. For example, you can implement routing policies to allow or deny paths based on the identity of a particular end system, or an application protocol.

PBR allows you to perform the following tasks:

  • Classify traffic based on extended access list criteria. Access lists, and then establish the match criteria.
  • Route packets to specific traffic-engineered paths.

Policies can be based on IP address, port numbers, or protocols. For a simple policy, use any one of these descriptors; for a complicated policy, all of them.

About PBR

All packets received on an interface with PBR enabled (except those sent directly to the switch IP) are handled by enhanced packet filters known as route maps. The route maps used by PBR dictate the policy, determining to where the packets are forwarded.

Route maps are composed of statements, which can be marked as permit or deny. They are interpreted in the following ways:

  • If a statement is marked as deny, the packets meeting the match criteria are sent back using the normal forwarding channels and destination-based routing is performed.
  • If the statement is marked as permit and a packet matches the access-lists, then the first valid set clause is applied to that packet.

This is explained in more detail in the section Understanding Route-Maps, page 35-2.

You specify PBR on the incoming interface (the interface on which packets are received), not outgoing interface.

Understanding Route-Maps

PBR is implemented by applying a route-map on an incoming interface. A given interface can have only one route-map configured.

A route-map is configured at the global configuration parser mode. You can then apply this route-map on one or more interfaces (in the interface configuration parser sub-mode).

A route-map is comprised of one or more route-map statements. Each statement has a sequence number, as well as a permit or deny clause.

Each route-map statement contains match and set commands. The match command denotes the match criteria to be applied on the packet data. The set command denote the PBR action to be taken on the packet.

The following example shows a single route-map called rm-test and six route-map statements:

route-map rm-test permit 21 match ip address 101 set ip next-hop 21.1.1.1 ! route-map rm-test permit 22 match ip address 102 set ip next-hop 22.2.2.1 !

Page 725 of the Cisco Systems 4500 user manual — PBR Route-Map Processing Logic
Page 725 · click to enlarge
Page 725

Chapter 35 Configuring Policy-Based Routing

route-map rm-test permit 23 match ip address 101 2102 set interface vlan23 ! route-map rm-test deny 24 match ip address 104 set ip next-hop 24.4.4.1 ! route-map rm-test deny 25 match ip address 105 set ip next-hop 25.5.5.1 ! route-map rm-test permit 26 match ip address 2104 set ip next-hop 26.6.6.1

The numbers 21, 22, ... 26 are the sequence numbers of the route-map statements.

The following topics are discussed:

  • PBR Route-Map Processing Logic, page 35-3
  • PBR Route-Map Processing Logic Example, page 35-4

PBR Route-Map Processing Logic

When a packet is received on an interface configured with a route-map, the forwarding logic processes each route-map statement according to the sequence number.

If the route-map statement encountered is a route-map...permit statement:

  • The packet is matched against the criteria in the match command. This command may refer to an ACL that may itself have one or more permit and/or deny expressions. The packet is matched against the expressions in the ACL, and a permit/deny decision is reached.
  • If the decision reached is permit, then the PBR logic executes the action specified by the set command on the packet.
  • If the decision reached is deny, then the PBR action (specified in the set command) is not applied. Instead the processing logic moves forward to look at the next route-map statement in the sequence (the statement with the next higher sequence number). If no next statement exists, PBR processing terminates, and the packet is routed using the default IP routing table.

If the route-map statement encountered is a route-map... deny statement:

  • The packet is matched against the criteria given in the match command. This command may refer to an ACL that may itself have one or more permit and/or deny expressions. The packet is matched against the expressions in the ACL, and a permit/deny decision is reached.
  • If the criteria decision is permit, then the PBR processing terminates, and the packet is routed using the default IP routing table.
  • If the criteria decision is deny, then the PBR processing logic moves forward to look at the next route-map statement in the sequence (the statement with the next higher sequence number). If no next statement exists, PBR processing terminates, and the packet is routed using the default IP routing table.

About Policy-Based Routing

Page 726 of the Cisco Systems 4500 user manual — PBR Route-Map Processing Logic Example
Page 726 · click to enlarge
Page 726

Chapter 35 Configuring Policy-Based Routing About Policy-Based Routing

PBR Route-Map Processing Logic Example

Consider a route-map called rm-test defined as follows:

access-list 101 permit tcp host 61.1.1.1 host 133.3.3.1 eq 101 access-list 102 deny tcp host 61.1.1.1 host 133.3.3.1 eq 102 access-list 2102 permit tcp host 61.1.1.1 host 133.3.3.1 eq 102 access-list 104 deny tcp host 61.1.1.1 host 133.3.3.1 eq 104 access-list 2104 permit tcp host 61.1.1.1 host 133.3.3.1 eq 104 access-list 105 permit tcp host 61.1.1.1 host 133.3.3.1 eq 105

route-map rm-test permit 21 match ip address 101 set ip next-hop 21.1.1.1 ! route-map rm-test permit 22 match ip address 102 set ip next-hop 22.2.2.1 ! route-map rm-test permit 23 match ip address 101 2102 set interface vlan23 ! route-map rm-test deny 24 match ip address 104 set ip next-hop 24.4.4.1 !

route-map rm-test deny 25 match ip address 105 set ip next-hop 25.5.5.1 ! route-map rm-test permit 26 match ip address 2104 set ip next-hop 26.6.6.1

  • TCP packet from 61.1.1.1 to 133.3.3.1 with destination port 101

– Matches ACL 101 in sequence #21.

– PBR is switched through next-hop 21.1.1.1.

  • TCP packet from 61.1.1.1 to 133.3.3.1 with destination port 102

– In sequence #21, the ACL 101 action denies this packet (because all ACLs have an implicit deny). Processing advances to sequence #22.

– In sequence #22, ACL 102 matches TCP port 102, but the ACL action is deny. Processing advances to sequence #23.

– In sequence #23, ACL 2102 matches TCP port 102, and the ACL action is permit.

– Packet is switched to output interface VLAN 23.

Page 727 of the Cisco Systems 4500 user manual — Using Policy-Based Routing
Page 727 · click to enlarge
Page 727

Chapter 35 Configuring Policy-Based Routing

  • TCP packet from 61.1.1.1 to 133.3.3.1 with destination port 105

– Processing moves from sequence #21 to #24, because all ACLs in these sequence numbers have a deny action for port 105.

– In sequence #25, ACL 105 has a permit action for TCP port 105.

– The route-map deny takes effect, and the packet is routed using the default IP routing table.

PBR on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E support matching route-map actions with a packet by installing entries in the TCAM that match the set of packets described by the ACLs in the match criteria of the route map. These TCAM entries point at adjacencies that either perform the necessary output actions or forward the packet to software if either hardware does not support the action or its resources are exhausted.

If the route-map specifies a set interface … action, packets that match the match statement are routed in software. Similarly, if the route-map specifies a set default interface… action and there is no matching IP route for the packet, the packet is routed in software.

Note The scale of hardware-based PBR is determined by TCAM size and the time required for the CPU to flatten the ACL before programming into hardware. The latter will noticeably increase if a PBR policy requires a considerable number of class-maps. For example, a PBR policy of 1,200 class-maps may require 60-90 minutes of "flatten" time before programming into hardware. This process may repeat if an adjacency change requires PBR reprogramming.

PBR Flow Switching

The Catalyst 4500 switching engine supports matching a set next-hop route-map action with a packet on a permit ACL. All other route-map actions, as well as matches of deny ACLs, are supported by a flow switching model. In this model, the first packet on a flow that matches a route-map is delivered to the software for forwarding. Software determines the correct destination for the packet and installs an entry into the TCAM so that future packets on that flow are switched in hardware. The Catalyst 4500 switching engine supports a maximum of 4096 flows.

Using Policy-Based Routing

You can enable PBR to change the routing path of certain packets from the default path that would be chosen by IP routing. For example, you can use PBR to provide the following functionality:

  • Equal access
  • Protocol-sensitive routing
  • Source-sensitive routing
  • Routing based on interactive versus batch traffic

About Policy-Based Routing

Page 728 of the Cisco Systems 4500 user manual — Enabling PBR
Page 728 · click to enlarge
Page 728

Chapter 35 Configuring Policy-Based Routing Policy-Based Routing Configuration Tasks

  • Routing based on dedicated links

Some applications or traffic can benefit from source-specific routing; for example, you can transfer stock records to a corporate office on a higher-bandwidth, higher-cost link for a short time while sending routine application data, such as e-mail, over a lower-bandwidth, lower-cost link.

Policy-Based Routing Configuration Tasks

To configure PBR, perform the tasks described in the following sections. The task in the first section is required; the tasks in the remaining sections are optional. For configuration examples, see the “Policy-Based Routing Configuration Examples” section on page 35-8.

  • Enabling PBR, page 35-6 (Required)
  • Enabling Local PBR, page 35-8 (Optional)

Enabling PBR

To enable PBR, you must create a route map that specifies the match criteria and the resulting action if all of the match clauses are met. Then you must apply that route-map on a particular interface. All packets arriving on the specified interface matching the match clauses are subject to PBR.

To enable PBR on an interface, perform this task:

Step 1 Switch(config)# route-map map-tag [permit | deny] [sequence-number]

Defines a route map to control where packets are sent. This command puts the switch into route-map configuration mode.

Step 2 Switch(config-route-map)# match ip address {access-list-number | name} [...access-list-number | name]

Specifies the match criteria. The match criteria take the form of one or more Standard or Extended IP access-lists. The access-lists can specify the source and destination IP addresses, protocol types, and port numbers. See Chapter 47, “Configuring Network Security with ACLs” for more information on Standard and Extended IP access-lists.

Step 3 Switch(config-route-map)# set ip next-hop ip-address [... ip-address]

Specifies the next-hop IP address to which matching packets are sent. The next-hop IP address specified here must belong to a subnet that is directly connected to this switch.

If more than one next-hop IP address is specified, the first usable next-hop is chosen for routing matching packets. If the next-hop is (or becomes) unavailable for some reason, the next one in the list is chosen.

Or

Page 729 of the Cisco Systems 4500 user manual — Configuring Policy-Based Routing
Page 729 · click to enlarge
Page 729

Chapter 35 Configuring Policy-Based Routing

Policy-Based Routing Configuration Tasks

Step 4 Switch(config-route-map)# set interface interface-type interface-number [... type number]

Specifies the output interface from which the packet will be sent. This action specifies that the packet is forwarded out of the local interface. The interface must be a Layer 3 interface (not a switchport).

Packets are forwarded on the specified interface only if one of the following conditions is met:

  • The destination IP address in the packet lies within the IP subnet to which the specified interface belongs.
  • The destination IP address in the packet is reachable through the specified interface (as per the IP routing table).

If the destination IP address on the packet does not meet either of these conditions, the packet is dropped. This action forces matching packets to be switched in software.k

Step 5 Switch(config-route-map)# set ip default next-hop ip-address [... ip-address]

Sets next hop to which to route the packet if there is no explicit route for the destination IP address in the packet. Before forwarding the packet to the next hop, the switch looks up the packet’s destination address in the unicast routing table. If a match is found, the packet is forwarded by way of the routing table. If no match is found, the packet is forwarded to the specified next hop.

Step 6 Switch(config-route-map)# set default interface interface-type interface-number [...type ...number]

Specifies the output interface from which the packet will be sent if there is no explicit route for this destination. Before forwarding the packet to the next hop, the switch looks up the packet’s destination address in the unicast routing table. If a match is found, the packet is forwarded by using the routing table. If no match is found, the packet is forwarded to the specified output interface.

Packets are forwarded on the specified interface only if one of the following conditions is met:

  • The destination IP address in the packet lies within the IP subnet to which the specified interface belongs.
  • The destination IP address in the packet is reachable through the specified interface (as per the IP routing table).

If the destination IP address on the packet does not meet either of these conditions, the packet is dropped. This action forces matching packets to be switched in software.

Step 7 Switch(config-route-map)# interface interface-type interface-number

Specifies the interface. This command puts the switch into interface configuration mode.

Step 8 Switch(config-if)# ip policy route-map map-tag Identifies the route map to use for PBR. One interface can only have one route map tag, but you can have multiple route map entries with different sequence numbers. These entries are evaluated in sequence number order until the first match. If no match exists, packets are routed as usual.

Or · Or

Page 730 of the Cisco Systems 4500 user manual — Equal Access
Page 730 · click to enlarge
Page 730

Chapter 35 Configuring Policy-Based Routing Policy-Based Routing Configuration Examples

Use the set commands with each other. These commands are evaluated in the order shown in Step 3 in the previous task table. A usable next hop implies an interface. Once the local switch finds a next hop and a usable interface, it routes the packet.

Enabling Local PBR

Packets that are generated by the switch are not normally policy-routed. To enable local PBR for such packets, indicate which route map the switch should use by entering this command:

Switch(config)# ip local policy route-map map-tag Identifies the route map to use for local PBR.

All packets originating on the switch are then subject to local PBR.

Use the show ip local policy command to display the route map used for local PBR, if one exists.

Unsupported Commands

The following PBR commands in config-route-map mode are in the CLI but not supported in Cisco IOS for the Catalyst 4500 series switches. If you attempt to use these commands, an error message displays:

  • match-length
  • set ip qos
  • set ip tos
  • set ip precedence

Policy-Based Routing Configuration Examples

The following sections provide PBR configuration examples:

  • Equal Access, page 35-8
  • Differing Next Hops, page 35-9
  • Deny ACE, page 35-9

For information on how to configure policy-based routing, see the section “Policy-Based Routing Configuration Tasks” in this chapter.

Equal Access

The following example provides two sources with equal access to two different service providers. Packets arriving on interface fastethernet 3/1 from the source 1.1.1.1 are sent to the switch at 6.6.6.6 if the switch has no explicit route for the destination of the packet. Packets arriving from the source 2.2.2.2 are sent to the switch at 7.7.7.7 if the switch has no explicit route for the destination of the packet. All other packets for which the switch has no explicit route to the destination are discarded.

Page 731 of the Cisco Systems 4500 user manual — Deny ACE
Page 731 · click to enlarge
Page 731

Chapter 35 Configuring Policy-Based Routing

Policy-Based Routing Configuration Examples

Switch (config)# access-list 1 permit ip 1.1.1.1 access-list 1 permit ip 1.1.1.1 ! interface fastethernet 3/1 ip policy route-map equal-access !

route-map equal-access permit 10 match ip address 1 set ip default next-hop 6.6.6.6 route-map equal-access permit 20 match ip address 2 set ip default next-hop 7.7.7.7 route-map equal-access permit 30 set default interface null0

Differing Next Hops

The following example illustrates how to route traffic from different sources to different places (next hops). Packets arriving from source 1.1.1.1 are sent to the next hop at 3.3.3.3; packets arriving from source 2.2.2.2 are sent to the next hop at 3.3.3.5.

access-list 1 permit ip 1.1.1.1 access-list 2 permit ip 2.2.2.2 ! interface fastethernet 3/1 ip policy route-map Texas ! route-map Texas permit 10 match ip address 1 set ip next-hop 3.3.3.3 ! route-map Texas permit 20 match ip address 2 set ip next-hop 3.3.3.5

Deny ACE

The following example illustrates how to stop processing a given route map sequence, and to jump to the next sequence. Packets arriving from source 1.1.1.1 skip sequence 10 and jump to sequence 20. All other packets from subnet 1.1.1.0 follow the set statement in sequence 10.

access-list 1 deny ip 1.1.1.1 access-list 1 permit ip 1.1.1.0 0.0.0.255 access-list 2 permit ip 1.1.1.1 access-list 2 permit ip 2.2.2.2 ! interface fastethernet 3/1 ip policy route-map Texas !

Page 732 of the Cisco Systems 4500 user manual — Configuring Policy-Based Routing
Page 732 · click to enlarge
Page 732

Chapter 35 Configuring Policy-Based Routing Policy-Based Routing Configuration Examples

route-map Texas permit 10 match ip address 1 set ip next-hop 3.3.3.3 ! route-map Texas permit 20 match ip address 2 set ip next-hop 3.3.3.5

Page 733 of the Cisco Systems 4500 user manual — C H A P T E R
Page 733 · click to enlarge
Page 733

C H A P T E R

Configuring VRF-lite

Virtual Private Networks (VPNs) provide a secure way for customers to share bandwidth over an ISP backbone network. A VPN is a collection of sites sharing a common routing table. A customer site is connected to the service provider network by one or more interfaces, and the service provider associates each interface with a VPN routing table. A VPN routing table is called a VPN routing/forwarding (VRF) table.

With the VRF-lite feature, the Catalyst 4500 series switch supports multiple VPN routing/forwarding instances in customer edge devices. (VRF-lite is also termed multi-VRF CE, or multi-VRF Customer Edge Device). VRF-lite allows a service provider to support two or more VPNs with overlapping IP addresses using one interface.

Note For complete syntax and usage information for the switch commands used in this chapter, see the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Cisco Catalyst 4500 Command Reference, you can locate it in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

This chapter includes these topics:

  • About VRF-lite, page 36-2
  • Default VRF-lite Configuration, page 36-3
Page 734 of the Cisco Systems 4500 user manual — About VRF-lite
Page 734 · click to enlarge
Page 734

Chapter 36 Configuring VRF-lite About VRF-lite

  • VRF-lite Configuration Guidelines, page 36-4
  • Configuring VRFs, page 36-5
  • Configuring VRF-Aware Services, page 36-6
  • Configuring Per-VRF for TACACS+ Servers, page 36-9
  • Configuring Multicast VRFs, page 36-11
  • Configuring a VPN Routing Session, page 36-12
  • Configuring BGP PE to CE Routing Sessions, page 36-12
  • VRF-lite Configuration Example, page 36-13
  • Displaying VRF-lite Status, page 36-17

About VRF-lite

VRF-lite is a feature that enables a service provider to support two or more VPNs, where IP addresses can be overlapped among the VPNs. VRF-lite uses input interfaces to distinguish routes for different VPNs and forms virtual packet-forwarding tables by associating one or more Layer 3 interfaces with each VRF. Interfaces in a VRF can be either physical, such as Ethernet ports, or logical, such as VLAN SVIs, but a Layer 3 interface cannot belong to more than one VRF at any time.

VRF-lite includes these devices:

  • Customer edge (CE) devices provide customer access to the service provider network over a data link to one or more provider edge routers. The CE device advertises the site’s local routes to the provider edge router and learns the remote VPN routes from it. A Catalyst 4500 series switch can be a CE.
  • Provider edge (PE) routers exchange routing information with CE devices by using static routing or a routing protocol such as BGP, RIPv1, or RIPv2.

The PE is only required to maintain VPN routes for those VPNs to which it is directly attached, eliminating the need for the PE to maintain all of the service provider VPN routes. Each PE router maintains a VRF for each of its directly connected sites. Multiple interfaces on a PE router can be associated with a single VRF if all of these sites participate in the same VPN. Each VPN is mapped to a specified VRF. After learning local VPN routes from CEs, a PE router exchanges VPN routing information with other PE routers by using internal BGP (iBPG).

  • Provider routers (or core routers) are any routers in the service provider network that do not attach to CE devices.

With VRF-lite, multiple customers can share one CE, and only one physical link is used between the CE and the PE. The shared CE maintains separate VRF tables for each customer and switches or routes packets for each customer based on its own routing table. VRF-lite extends limited PE functionality to a CE device, giving it the ability to maintain separate VRF tables to extend the privacy and security of a VPN to the branch office.

Figure 36-1 shows a configuration where each Catalyst 4500 series switch acts as multiple virtual CEs. Because VRF-lite is a Layer 3 feature, each interface in a VRF must be a Layer 3 interface.

Page 735 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 735 · click to enlarge
Page 735

Chapter 36 Configuring VRF-lite

Figure 36-1 Catalyst 4500 Series Switches Acting as Multiple Virtual CEs

VPN 1

VPN 1

CE

PE PE

CE

MPLS-VRF

MPLS-VRF

VPN 2

VPN 2

CE = Customer edge device PE = Provider edge router

Figure 36-1 illustrates the packet-forwarding process in a VRF-lite CE-enabled network.

  • When the CE receives a packet from a VPN, it looks up the routing table based on the input interface. When a route is found, the CE forwards the packet to the PE.
  • When the ingress PE receives a packet from the CE, it performs a VRF lookup. When a route is found, the router adds a corresponding MPLS label to the packet and sends it to the MPLS network.
  • When an egress PE receives a packet from the network, it strips the label and uses the label to identify the correct VPN routing table. The egress PE then performs the normal route lookup. When a route is found, it forwards the packet to the correct adjacency.
  • When a CE receives a packet from an egress PE, it uses the input interface to look up the correct VPN routing table. If a route is found, the CE forwards the packet within the VPN.

To configure VRF, create a VRF table and specify the Layer 3 interface associated with the VRF. You then configure the routing protocols in the VPN and between the CE and the PE. BGP is the preferred routing protocol used to distribute VPN routing information across the providers’ backbone. The VRF-lite network has three major components:

  • VPN route target communities—Lists all other members of a VPN community. You need to configure VPN route targets for each VPN community member.
  • Multiprotocol BGP peering of VPN community PE routers—Propagates VRF reachability information to all members of a VPN community. You need to configure BGP peering in all PE routers within a VPN community.
  • VPN forwarding—Transports all traffic between all VPN community members across a VPN service-provider network.

Default VRF-lite Configuration

Table 36-1 shows the default VRF configuration.

Table 36-1 Default VRF Configuration

Feature Default Setting

VRF Disabled. No VRFs are defined.

Maps No import maps, export maps, or route maps are defined.

Show 8 more labels / short text on this page
Default VRF-lite Configuration · Catalyst 4500 · MPLS network · Catalyst 4500 switch · Si Si · switch · router · router
Page 736 of the Cisco Systems 4500 user manual — VRF-lite Configuration Guidelines
Page 736 · click to enlarge
Page 736

Chapter 36 Configuring VRF-lite VRF-lite Configuration Guidelines

Table 36-1 Default VRF Configuration (continued)

Feature Default Setting

VRF maximum routes None.

Forwarding table The default for an interface is the global routing table.

VRF-lite Configuration Guidelines

Consider these points when configuring VRF in your network:

  • A switch with VRF-lite is shared by multiple customers, and all customers have their own routing tables.
  • Because customers use different VRF tables, you can reuse the same IP addresses. Overlapped IP addresses are allowed in different VPNs.
  • VRF-lite lets multiple customers share the same physical link between the PE and the CE. Trunk ports with multiple VLANs separate packets among customers. All customers have their own VLANs.
  • VRF-lite does not support all MPLS-VRF functionality: label exchange, LDP adjacency, or labeled packets.
  • For the PE router, there is no difference between using VRF-lite or using multiple CEs. In Figure 36-1 , multiple virtual Layer 3 interfaces are connected to the VRF-lite device.
  • The Catalyst 4500 series switch supports configuring VRF by using physical ports, VLAN SVIs, or a combination of both. You can connect SVIs through an access port or a trunk port.
  • A customer can use multiple VLANs as long because they do not overlap with those of other customers. A customer’s VLANs are mapped to a specific routing table ID that is used to identify the appropriate routing tables stored on the switch.
  • The Layer 3 TCAM resource is shared between all VRFs. To ensure that any one VRF has sufficient CAM space, use the maximum routes command.
  • A Catalyst 4500 series switch using VRF can support one global network and up to 64 VRFs. The total number of routes supported is limited by the size of the TCAM.
  • You can use most routing protocols (BGP, OSPF, EIGRP, RIP and static routing) between the CE and the PE. However, we recommend using external BGP (EBGP) for these reasons:

– BGP does not require multiple algorithms to communicate with multiple CEs.

– BGP is designed for passing routing information between systems run by different administrations.

– BGP makes it easy to pass attributes of the routes to the CE.

  • VRF-lite does not support IGRP and ISIS.
  • VRF-lite does not affect the packet switching rate.
  • Starting with Cisco IOS Release 12.2(50)SG, Multicast and VRF can be configured together on a Layer 3 interface.
  • The Catalyst 4500 series switch supports all the PIM protocols (PIM-SM, PIM-DM, PIM-SSM, PIM BiDIR).
Page 737 of the Cisco Systems 4500 user manual — Configuring VRFs
Page 737 · click to enlarge
Page 737

Chapter 36 Configuring VRF-lite

  • Multicast VRF is supported on Supervisor Engine 6-E, Supervisor 6L-E, Catalyst 4900M, and Catalyst 4948E.
  • The capability vrf-lite subcommand under router ospf should be used when configuring OSPF as the routing protocol between the PE and the CE.

Configuring VRFs

To configure one or more VRFs, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip routing Enables IP routing.

Step 3 Switch(config)# ip vrf vrf-name Names the VRF and enters VRF configuration mode.

Step 4 Switch(config-vrf)# rd route-distinguisher Creates a VRF table by specifying a route distinguisher. Enter either an AS number and an arbitrary number (xxx:y) or an IP address and arbitrary number (A.B.C.D:y).

Step 5 Switch(config-vrf)# route-target {export | import | both} route-target-ext-community

Creates a list of import, export, or import and export route target communities for the specified VRF. Enter either an AS system number and an arbitrary number (xxx:y) or an IP address and an arbitrary number (A.B.C.D:y).

Step 6 Switch(config-vrf)# import map route-map (Optional) Associates a route map with the VRF.

Step 7 Switch(config-vrf)# interface interface-id Enters interface configuration mode and specify the Layer 3 interface to be associated with the VRF. The interface can be a routed port or SVI.

Step 8 Switch(config-if)# ip vrf forwarding vrf-name Associates the VRF with the Layer 3 interface.

Step 9 Switch(config-if)# end Returns to privileged EXEC mode.

Step 10 Switch# show ip vrf [brief | detail | interfaces] [vrf-name] Verifies the configuration. Displays information about the configured VRFs.

Step 11 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no ip vrf vrf-name global configuration command to delete a VRF and to remove all interfaces from it. Use the no ip vrf forwarding interface configuration command to remove an interface from the VRF.

Configuring VRFs

Page 738 of the Cisco Systems 4500 user manual — Configuring the User Interface for PING
Page 738 · click to enlarge
Page 738

Chapter 36 Configuring VRF-lite Configuring VRF-Aware Services

Configuring VRF-Aware Services

IP services can be configured on global interfaces and within the global routing instance. IP services are enhanced to run on multiple routing instances; they are VRF-aware. Any configured VRF in the system can be specified for a VRF-aware service.

VRF-aware services are implemented in platform-independent modules. VRF provides multiple routing instances in Cisco IOS. Each platform has its own limit on the number of VRFs it supports.

VRF-aware services have the following characteristics:

  • The user can ping a host in a user-specified VRF.
  • ARP entries are learned in separate VRFs. The user can display Address Resolution Protocol (ARP) entries for specific VRFs.

These services are VRF-aware:

  • ARP
  • Ping
  • Simple Network Management Protocol (SNMP)
  • Unicast Reverse Path Forwarding (uRPF)
  • Syslog
  • Traceroute
  • FTP and TFTP
  • Telnet and SSH
  • NTP

Configuring the User Interface for ARP

To configure VRF-aware services for ARP, perform this task:

Switch# show ip arp vrf vrf-name Displays the ARP table (static and dynamic entries) in the specified VRF.

Switch(config)# arp vrf vrf-name ip-address mac-address ARPA

Creates a static ARP entry in the specified VRF.

Configuring the User Interface for PING

To perform a VRF-aware ping, perform this task:

Switch# ping vrf vrf-name ip-host Pings an IP host or address in the specified VRF.

Page 739 of the Cisco Systems 4500 user manual — Configuring the User Interface for uRPF
Page 739 · click to enlarge
Page 739

Chapter 36 Configuring VRF-lite

Configuring the User Interface for SNMP

To configure VRF-aware services for SNMP, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp-server trap authentication vrf

Enables SNMP traps for packets on a VRF.

Step 3 Switch(config)# snmp-server engineID remote host vrf vpn-instance engine-id string

Configures a name for the remote SNMP engine on a switch.

Step 4 Switch(config)# snmp-server host host vrf vpn-instance traps community

Specifies the recipient of an SNMP trap operation and specifies the VRF table to be used for sending SNMP traps.

Step 5 Switch(config)# snmp-server host host vrf vpn-instance informs community

Specifies the recipient of an SNMP inform operation and specifies the VRF table to be used for sending SNMP informs.

Step 6 Switch(config)# snmp-server user user group remote host vrf vpn- instance security model

Adds a user to an SNMP group for a remote host on a VRF for SNMP access.

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Configuring the User Interface for uRPF

You can configure uRPF on an interface assigned to a VRF. Source lookup is performed in the VRF table.

To configure VRF-aware services for uRPF, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the Layer 3 interface to configure.

Step 3 Switch(config-if)# no switchport Removes the interface from Layer 2 configuration mode if it is a physical interface.

Step 4 Switch(config-if)# ip vrf forwarding vrf-name

Configures VRF on the interface.

Step 5 Switch(config-if-vrf)# ip address ip-address subnet-mask

Enters the IP address for the interface.

Step 6 Switch(config-if-vrf)# ip verify unicast source reachable-via rx allow-default

Enables uRPF on the interface.

Step 7 Switch(config-if-vrf)# end Returns to privileged EXEC mode.

Configuring VRF-Aware Services

Page 740 of the Cisco Systems 4500 user manual — Configuring the User Interface for FTP and TFTP
Page 740 · click to enlarge
Page 740

Chapter 36 Configuring VRF-lite Configuring VRF-Aware Services

Configuring the User Interface for Syslog

To configure VRF-aware services for syslog, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# logging on Enables or temporarily disables logging of storage router event message.

Step 3 Switch(config)# logging host ip-address vrf vrf-name

Specifies the host address of the syslog server where logging messages are to be sent.

Step 4 Switch(config)# logging buffered logging buffered size debugging

Logs messages to an internal buffer.

Step 5 Switch(config)# logging trap debugging

Limits the logging messages sent to the syslog server.

Step 6 Switch(config)# logging facility facility

Sends system logging messages to a logging facility.

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Configuring the User Interface for Traceroute

To configure VRF-aware services for traceroute, perform this task:

traceroute vrf vrf-name ipaddress Specifies the name of a VPN VRF in which to find the destination address.

Configuring the User Interface for FTP and TFTP

You must configure some FTP and TFTP CLIs in order for FTP and TFTP to be VRF-aware. For example, if you want to use a VRF table that is attached to an interface (for example, E1/0), you need to configure the ip [t]ftp source-interface E1/0 command to inform [t]ftp to use a specific routing table. In this example, the VRF table is used to look up the destination IP address. These changes are backward-compatible and do not affect existing behavior. You can use the source-interface CLI to send packets out a particular interface even if no VRF is configured on that interface.

To specify the source IP address for FTP connections, use the ip ftp source-interface show mode command. To use the address of the interface where the connection is made, use the no form of this command.

To configure the user interface for FTP and TFTP, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Page 741 of the Cisco Systems 4500 user manual — Configuring Per-VRF for TACACS+ Servers
Page 741 · click to enlarge
Page 741

Chapter 36 Configuring VRF-lite

Configuring Per-VRF for TACACS+ Servers

Step 2 Switch(config)# ip ftp source-interface interface-type interface-number

Specifies the source IP address for FTP connections.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

To specify the IP address of an interface as the source address for TFTP connections, use the ip tftp source-interface show mode command. To return to the default, use the no form of this command.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip tftp source-interface interface-type interface-number

Specifies the source IP address for TFTP connections.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Configuring the User Interface for Telnet and SSH

To configure VRF-aware for using Telnet and SSH, perform this task:

Switch# telnet ip-address/vrf vrf-name

Connects through Telnet to an IP host or address in the specified VRF.

Switch# ssh -l username -vrf vrf-name ip-host

Connects through SSH to an IP host or address in the specified VRF.

Configuring the User Interface for NTP

To configure VRF-aware for NTP, perform this task:

Switch# ntp server vrf vrf-name ip-host

Configure the NTP server in the specified VRF.

Switch# ntp peer vrf vrf-name ip-host

Configure the NTP peer in the specified VRF.

Configuring Per-VRF for TACACS+ Servers

The per-VRF for TACACS+ servers feature allows you to configure per-virtual route forwarding (per-VRF) authentication, authorization, and accounting (AAA) on TACACS+ servers.

Before configuring per-VRF on a TACACS+ server, you must have configured AAA and a server group. You can create the VRF routing table (shown in Steps 3 and 4) and configure the interface ( Steps 6, 7, and 8). The actual configuration of per-VRF on a TACACS+ server is done in Steps 10 through 13.

Page 742 of the Cisco Systems 4500 user manual — Example: Switch (config-sg-tacacs+)# server-private 10.1.1.1 port 19 key cisco
Page 742 · click to enlarge
Page 742

Chapter 36 Configuring VRF-lite Configuring Per-VRF for TACACS+ Servers

Command or Action Purpose

Step 1 Switch> enable Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# ip vrf vrf-name Configures a VRF table and enters VRF configuration mode.

Step 4 Switch (config-vrf)# rd route-distinguisher Creates routing and forwarding tables for a VRF instance.

Step 5 Switch (config-vrf)# exit Exits VRF configuration mode.

Step 6 Switch (config)# interface interface-name Configures an interface and enters interface configuration mode.

Step 7 Switch (config-if)# ip vrf forwarding vrf-name Configures a VRF for the interface.

Step 8 Switch (config-if)# ip address ip-address mask [secondary]

Sets a primary or secondary IP address for an interface.

Step 9 Switch (config-if)# exit Exits interface configuration mode.

Step 10 aaa group server tacacs+ group-name

Groups different TACACS+ server hosts into distinct lists and distinct methods and enters server-group configuration mode.

Example: Switch (config)# aaa group server tacacs+ tacacs1

Step 11 server-private {ip-address | name} [nat] [single-connection] [port port-number] [timeout seconds] [key [0 | 7] string]

Configures the IP address of the private TACACS+ server for the group server.

Example: Switch (config-sg-tacacs+)# server-private 10.1.1.1 port 19 key cisco

Step 12 Switch (config-sg-tacacs+)# ip vrf forwarding vrf-name

Configures the VRF reference of a AAA TACACS+ server group.

Step 13 Switch (config-sg-tacacs+)# ip tacacs source-interface subinterface-name

Uses the IP address of a specified interface for all outgoing TACACS+ packets.

Step 14 Switch (config-sg-tacacs)# exit Exits server-group configuration mode.

The following example lists all the steps to configure per-VRF TACACS+:

Switch> enable Switch# configure terminal Switch (config)# ip vrf cisco Switch (config-vrf)# rd 100:1 Switch (config-vrf)# exit Switch (config)# interface Loopback0 Switch (config-if)# ip vrf forwarding cisco Switch (config-if)# ip address 10.0.0.2 255.0.0.0 Switch (config-if)# exit Switch (config-sg-tacacs+)# ip vrf forwarding cisco Switch (config-sg-tacacs+)# ip tacacs source-interface Loopback0 Switch (config-sg-tacacs)# exit

For more information about configuring per-VRF for TACACS+ server, see the Cisco IOS Per VRF for TACACS + Server, Release 12.3(7)T.

Page 743 of the Cisco Systems 4500 user manual — Configuring Multicast VRFs
Page 743 · click to enlarge
Page 743

Chapter 36 Configuring VRF-lite

Configuring Multicast VRFs

To configure multicast within a VRF table, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip routing Enables IP routing.

Step 3 Switch(config)# ip vrf vrf-name Names the VRF and enters VRF configuration mode.

Step 4 Switch(config-vrf)# ip multicast-routing vrf vrf-name (Optional) Enables global multicast routing for VRF table.

Step 5 Switch(config-vrf)# rd route-distinguisher Creates a VRF table by specifying a route distinguisher. Enter either an AS number and an arbitrary number (xxx:y) or an IP address and arbitrary number (A.B.C.D:y).

Step 6 Switch(config-vrf)# route-target {export | import | both} route-target-ext-community

Creates a list of import, export, or import and export route target communities for the specified VRF. Enter either an AS system number and an arbitrary number (xxx:y) or an IP address and an arbitrary number (A.B.C.D:y).

The route-target-ext-community value should be the same as the route-distinguisher value entered in Step 4.

Step 7 Switch(config-vrf)# import map route-map (Optional) Associates a route map with the VRF.

Step 8 Switch(config-vrf)# interface interface-id Enters interface configuration mode and specifies the Layer 3 interface to be associated with the VRF. The interface can be a routed port or a SVI.

Step 9 Switch(config-if)# ip vrf forwarding vrf-name Associates the VRF with the Layer 3 interface.

Step 10 Switch(config-if)# ip address ip-address mask Configures IP address for the Layer 3 interface.

Step 11 Switch(config-if)# ip pim [sparse-dense mode | dense-mode | sparse-mode]

Enables PIM on the VRF-associated Layer 3 interface.

Step 12 Switch(config-if)# end Returns to privileged EXEC mode.

Step 13 Switch# show ip vrf [brief | detail | interfaces] [vrf-name] Verifies the configuration. Display information about the configured VRFs.

Step 14 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

For more information about configuring a multicast within a Multi-VRF CE, see the Cisco IOS IP Multicast Configuration Guide, Release 12.4.

Use the no ip vrf vrf-name global configuration command to delete a VRF and to remove all interfaces from it. Use the no ip vrf forwarding interface configuration command to remove an interface from the VRF.

Configuring Multicast VRFs

Page 744 of the Cisco Systems 4500 user manual — Configuring BGP PE to CE Routing Sessions
Page 744 · click to enlarge
Page 744

Chapter 36 Configuring VRF-lite Configuring a VPN Routing Session

Configuring a VPN Routing Session

Routing within the VPN can be configured with any supported routing protocol (RIP, OSPF, or BGP) or with static routing. The configuration shown here is for OSPF, but the process is the same for other protocols.

To configure OSPF in the VPN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# router ospf process-id vrf vrf-name

Enables OSPF routing, specifies a VPN forwarding table, and enters router configuration mode.

Step 3 Switch(config-router)# log-adjacency-changes

(Optional) Logs changes in the adjacency state (the default state).

Step 4 Switch(config-router)# redistribute bgp autonomous-system-number subnets

Sets the switch to redistribute information from the BGP network to the OSPF network.

Step 5 Switch(config-router)# network network-number area area-id

Defines a network address and mask on which OSPF runs and the area ID for that network address.

Step 6 Switch(config-router)# end Returns to privileged EXEC mode.

Step 7 Switch# show ip ospf process-id Verifies the configuration of the OSPF network.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no router ospf process-id vrf vrf-name global configuration command to disassociate the VPN forwarding table from the OSPF routing process.

Configuring BGP PE to CE Routing Sessions

To configure a BGP PE to CE routing session, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# router bgp autonomous-system-number

Configures the BGP routing process with the AS number passed to other BGP routers and enters router configuration mode.

Step 3 Switch(config-router)# network network-number mask network-mask

Specifies a network and mask to announce using BGP.

Step 4 Switch(config-router)# redistribute ospf process-id match internal

Sets the switch to redistribute OSPF internal routes.

Step 5 Switch(config-router)# network network-number area area-id

Defines a network address and mask on which OSPF runs and the area ID for that network address.

Step 6 Switch(config-router-af)# address-family ipv4 vrf vrf-name

Defines BGP parameters for PE to CE routing sessions and enters VRF address-family mode.

Step 7 Switch(config-router-af)# neighbor address remote-as as-number

Defines a BGP session between PE and CE routers.

Page 745 of the Cisco Systems 4500 user manual — VPN2
Page 745 · click to enlarge
Page 745

Chapter 36 Configuring VRF-lite

Step 8 Switch(config-router-af)# neighbor address activate

Activates the advertisement of the IPv4 address family.

Step 9 Switch(config-router-af)# end Returns to privileged EXEC mode.

Step 10 Switch# show ip bgp [ipv4] [neighbors] Verifies BGP configuration.

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Use the no router bgp autonomous-system-number global configuration command to delete the BGP routing process. Use the command with keywords to delete routing characteristics.

VRF-lite Configuration Example

Figure 36-2 is a simplified example of the physical connections in a network similar to that in Figure 36-1. OSPF is the protocol used in VPN1, VPN2, and the global network. BGP is used in the CE to PE connections. The example commands show how to configure the CE switch S8 and include the VRF configuration for switches S20 and S11 and the PE router commands related to traffic with switch S8. Commands for configuring the other switches are not included but would be similar.

Figure 36-2 VRF-lite Configuration Example

VPN1

VPN1

208.0.0.0 Fast Ethernet 3/8

108.0.0.0 Fast Ethernet 3/7

VPN2

VPN2 CE

PE

CE

118.0.0.0 Fast Ethernet 3/11

168.0.0.0 Fast Ethernet 3/3

CE = Customer edge device PE = Provider edge router

Show 19 more labels / short text on this page
VRF-lite Configuration Example · Catalyst 4500 · Catalyst 4500 · Switch S8 · Switch S9 · Router · Si · Si · Switch S20 · Switch S13 · Switch S10 · Switch S14 · Fast Ethernet · Switch S11 · 3/5 · Global network · Switch S15 · Global network · Switch S16
Page 746 of the Cisco Systems 4500 user manual — Configuring Switch S8
Page 746 · click to enlarge
Page 746

Chapter 36 Configuring VRF-lite VRF-lite Configuration Example

Configuring Switch S8

On switch S8, enable routing and configure VRF.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip routing Switch(config)# ip vrf v11 Switch(config-vrf)# rd 800:1 Switch(config-vrf)# route-target export 800:1 Switch(config-vrf)# route-target import 800:1 Switch(config-vrf)# exit Switch(config)# ip vrf v12 Switch(config-vrf)# rd 800:2 Switch(config-vrf)# route-target export 800:2 Switch(config-vrf)# route-target import 800:2 Switch(config-vrf)# exit

Configure the loopback and physical interfaces on switch S8. Fast Ethernet interface 3/5 is a trunk connection to the PE. Interfaces 3/7 and 3/11 connect to VPNs:

Switch(config)# interface loopback1 Switch(config-if)# ip vrf forwarding v11 Switch(config-if)# ip address 8.8.1.8 255.255.255.0 Switch(config-if)# exit

Switch(config)# interface loopback2 Switch(config-if)# ip vrf forwarding v12 Switch(config-if)# ip address 8.8.2.8 255.255.255.0 Switch(config-if)# exit

Switch(config)# interface FastEthernet3/5 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# no ip address Switch(config-if)# exit

Switch(config)# interface FastEthernet3/8 Switch(config-if)# switchport access vlan 208 Switch(config-if)# no ip address Switch(config-if)# exit

Switch(config)# interface FastEthernet3/11 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# no ip address Switch(config-if)# exit

Configure the VLANs used on switch S8. VLAN 10 is used by VRF 11 between the CE and the PE. VLAN 20 is used by VRF 12 between the CE and the PE. VLANs 118 and 208 are used for VRF for the VPNs that include switch S11 and switch S20, respectively:

Switch(config)# interface Vlan10 Switch(config-if)# ip vrf forwarding v11 Switch(config-if)# ip address 38.0.0.8 255.255.255.0 Switch(config-if)# exit

Page 747 of the Cisco Systems 4500 user manual — Configuring Switch S20
Page 747 · click to enlarge
Page 747

Chapter 36 Configuring VRF-lite

Switch(config)# interface Vlan20 Switch(config-if)# ip vrf forwarding v12 Switch(config-if)# ip address 83.0.0.8 255.255.255.0 Switch(config-if)# exit

Switch(config)# interface Vlan118 Switch(config-if)# ip vrf forwarding v12 Switch(config-if)# ip address 118.0.0.8 255.255.255.0 Switch(config-if)# exit

Switch(config)# interface Vlan208 Switch(config-if)# ip vrf forwarding v11 Switch(config-if)# ip address 208.0.0.8 255.255.255.0 Switch(config-if)# exit

Configure OSPF routing in VPN1 and VPN2:

Switch(config)# router ospf 1 vrf vl1 Switch(config-router)# redistribute bgp 800 subnets Switch(config-router)# network 208.0.0.0 0.0.0.255 area 0 Switch(config-router)# exit Switch(config)# router ospf 2 vrf vl2 Switch(config-router)# redistribute bgp 800 subnets Switch(config-router)# network 118.0.0.0 0.0.0.255 area 0 Switch(config-router)# exit

Configure BGP for CE to PE routing:

Switch(config)# router bgp 800 Switch(config-router)# address-family ipv4 vrf vl2 Switch(config-router-af)# redistribute ospf 2 match internal Switch(config-router-af)# neighbor 83.0.0.3 remote-as 100 Switch(config-router-af)# neighbor 83.0.0.3 activate Switch(config-router-af)# network 8.8.2.0 mask 255.255.255.0 Switch(config-router-af)# exit

Switch(config-router)# address-family ipv4 vrf vl1 Switch(config-router-af)# redistribute ospf 1 match internal Switch(config-router-af)# neighbor 38.0.0.3 remote-as 100 Switch(config-router-af)# neighbor 38.0.0.3 activate Switch(config-router-af)# network 8.8.1.0 mask 255.255.255.0 Switch(config-router-af)# end

Configuring Switch S20

Configure S20 to connect to CE:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip routing Switch(config)# interface Fast Ethernet 0/7 Switch(config-if)# no switchport Switch(config-if)# ip address 208.0.0.20 255.255.255.0 Switch(config-if)# exit

Switch(config)# router ospf 101 Switch(config-router)# network 208.0.0.0 0.0.0.255 area 0 Switch(config-router)# end

VRF-lite Configuration Example

Page 748 of the Cisco Systems 4500 user manual — Configuring the PE Switch S3
Page 748 · click to enlarge
Page 748

Chapter 36 Configuring VRF-lite VRF-lite Configuration Example

Configuring Switch S11

Configure S11 to connect to CE:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip routing Switch(config)# interface Gigabit Ethernet 0/3 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# no ip address Switch(config-if)# exit

Switch(config)# interface Vlan118 Switch(config-if)# ip address 118.0.0.11 255.255.255.0 Switch(config-if)# exit

Switch(config)# router ospf 101 Switch(config-router)# network 118.0.0.0 0.0.0.255 area 0 Switch(config-router)# end

Configuring the PE Switch S3

On switch S3 (the router), these commands configure only the connections to switch S8:

Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ip vrf v1 Router(config-vrf)# rd 100:1 Router(config-vrf)# route-target export 100:1 Router(config-vrf)# route-target import 100:1 Router(config-vrf)# exit

Router(config)# ip vrf v2 Router(config-vrf)# rd 100:2 Router(config-vrf)# route-target export 100:2 Router(config-vrf)# route-target import 100:2 Router(config-vrf)# exit

Router(config)# ip cef Router(config)# interface Loopback1 Router(config-if)# ip vrf forwarding v1 Router(config-if)# ip address 3.3.1.3 255.255.255.0 Router(config-if)# exit

Router(config)# interface Loopback2 Router(config-if)# ip vrf forwarding v2 Router(config-if)# ip address 3.3.2.3 255.255.255.0 Router(config-if)# exit

Router(config)# interface Fast Ethernet3/0.10 Router(config-if)# encapsulation dot1q 10 Router(config-if)# ip vrf forwarding v1 Router(config-if)# ip address 38.0.0.3 255.255.255.0 Router(config-if)# exit

Router(config)# interface Fast Ethernet3/0.20 Router(config-if)# encapsulation dot1q 20 Router(config-if)# ip vrf forwarding v2 Router(config-if)# ip address 83.0.0.3 255.255.255.0 Router(config-if)# exit

Page 749 of the Cisco Systems 4500 user manual — Displaying VRF-lite Status
Page 749 · click to enlarge
Page 749

Chapter 36 Configuring VRF-lite

Router(config)# router bgp 100 Router(config-router)# address-family ipv4 vrf v2 Router(config-router-af)# neighbor 83.0.0.8 remote-as 800 Router(config-router-af)# neighbor 83.0.0.8 activate Router(config-router-af)# network 3.3.2.0 mask 255.255.255.0 Router(config-router-af)# exit Router(config-router)# address-family ipv4 vrf vl Router(config-router-af)# neighbor 83.0.0.8 remote-as 800 Router(config-router-af)# neighbor 83.0.0.8 activate Router(config-router-af)# network 3.3.1.0 mask 255.255.255.0 Router(config-router-af)# end

Displaying VRF-lite Status

To display information about VRF-lite configuration and status, perform one of the following tasks:

Switch# show ip protocols vrf vrf-name Displays routing protocol information associated with a VRF.

Switch# show ip route vrf vrf-name [connected] [protocol [as-number]] [list] [mobile] [odr] [profile] [static] [summary][supernets-only]

Displays IP routing table information associated with a VRF.

Switch# show ip vrf [brief | detail | interfaces] [vrf-name] Displays information about the defined VRF instances.

Switch# show ip mroute vrf instance-name a.b.c.d | active | bidriectional| count | dense| interface | proxy | pruned | sparse | ssm | static | summary

Displays information about the defined VRF instances.

This example shows how to display multicast route table information within a VRF instance:

Switch# show ip mroute vrf mcast2 234.34.10.18 IP Multicast Routing Table Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected, L - Local, P - Pruned, R - RP-bit set, F - Register flag, T - SPT-bit set, J - Join SPT, M - MSDP created entry, X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement, U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel, z - MDT-data group sender, Y - Joined MDT-data group, y - Sending to MDT-data group V - RD & Vector, v - Vector Outgoing interface flags: H - Hardware switched, A - Assert winner Timers: Uptime/Expires Interface state: Interface, Next-Hop or VCD, State/Mode (*, 234.34.10.18), 13:39:21/00:02:58, RP 1.1.1.1, flags: BC Bidir-Upstream: Vlan134, RPF nbr 172.16.34.1 Outgoing interface list: Vlan45, Forward/Sparse-Dense, 00:00:02/00:02:57, H Vlan134, Bidir-Upstream/Sparse-Dense, 13:35:54/00:00:00, H

Displaying VRF-lite Status

Page 750 of the Cisco Systems 4500 user manual — Configuring VRF-lite
Page 750 · click to enlarge
Page 750

Chapter 36 Configuring VRF-lite Displaying VRF-lite Status

Page 751 of the Cisco Systems 4500 user manual — C H A P T E R
Page 751 · click to enlarge
Page 751

C H A P T E R

Configuring Quality of Service

This chapter describes how to configure quality of service (QoS) by using automatic QoS (auto-QoS) commands or by using standard QoS commands on a Catalyst 4500 series switch. It describes how to specify QoS configuration on different types of interfaces (access, Layer 2 trunk, Layer 3 routed, EtherChannel) as well as VLANs. It also describes how to specify different QoS configurations on different VLANs on a given interface (per-port per-VLAN QoS). This chapter describes QoS support on Supervisor Engines II-Plus to V-10GE, Supervisor Engine 6-E, and Supervisor Engine 6L-E.

The QoS configuration model supported on Supervisor Engines II-Plus to V-10G is called the switch qos model. However, Supervisor Engine 6-E and Supervisor Engine 6L-E support a different QoS configuration model known as MQC (Modular QoS CLI). Refer to the appropriate configuration section for the supervisor engine on which QoS will be configured. For more information about MQC, see the “Modular Quality of Service Command-Line Interface” section of the Cisco IOS Quality of Service Solutions Configuration Guide, Release 12.3.

This chapter includes of these sections:

  • About QoS, page 37-2
  • Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE, page 37-17
  • Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE, page 37-56
  • Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E, page 37-63
  • Configuring Auto-QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E, page 37-90
Page 752 of the Cisco Systems 4500 user manual — Prioritization
Page 752 · click to enlarge
Page 752

Chapter 37 Configuring Quality of Service About QoS

Note For complete syntax and usage information for the switch commands used in this chapter, see the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Cisco Catalyst 4500 Command Reference, you can locate it in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About QoS

Typically, networks operate on a best-effort delivery basis, which means that all traffic has equal priority and an equal chance of being delivered in a timely manner. When congestion occurs, all traffic has an equal chance of being dropped.

QoS selects network traffic (both unicast and multicast), prioritizes it according to its relative importance, and uses congestion avoidance to provide priority-indexed treatment; QoS can also limit the bandwidth used by network traffic. QoS can make network performance more predictable and bandwidth utilization more effective.

This section includes the following subsections:

  • Prioritization, page 37-2
  • QoS Terminology, page 37-4
  • Basic QoS Model, page 37-6
  • Classification, page 37-6
  • Policing and Marking, page 37-10
  • Mapping Tables, page 37-14
  • Queueing and Scheduling, page 37-14
  • Packet Modification, page 37-16
  • Per-Port Per-VLAN QoS, page 37-16
  • QoS and Software Processed Packets, page 37-16

Prioritization

QoS implementation is based on the DiffServ architecture. This architecture specifies that each packet is classified upon entry into the network. The classification is carried in the IP packet header, using 6 bits from the deprecated IP type of service (ToS) field to carry the classification (class) information. Classification can also be carried in the Layer 2 frame. These special bits in the Layer 2 frame or a Layer 3 packet are described here and shown in Figure 37-1:

  • Prioritization values in Layer 2 frames:
Page 753 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 753 · click to enlarge
Page 753

Chapter 37 Configuring Quality of Service

– Layer 2 Inter-Switch Link (ISL) frame headers have a 1-byte User field that carries an IEEE 802.1p class of service (CoS) value in the three least-significant bits. On interfaces configured as Layer 2 ISL trunks, all traffic is in ISL frames.

– Layer 2 802.1Q frame headers have a 2-byte Tag Control Information field that carries the CoS value in the three most-significant bits, which are called the User Priority bits. On interfaces configured as Layer 2 802.1Q trunks, all traffic is in 802.1Q frames except for traffic in the native VLAN.

– Other frame types cannot carry Layer 2 CoS values.

– Layer 2 CoS values range from 0 for low priority to 7 for high priority.

  • Prioritization bits in Layer 3 packets:

– Layer 3 IP packets can carry either an IP precedence value or a Differentiated Services Code Point (DSCP) value. QoS supports the use of either value because DSCP values are backward-compatible with IP precedence values.

– IP precedence values range from 0 to 7.

– DSCP values range from 0 to 63.

Figure 37-1 QoS Classification Layers in Frames and Packets

Layer 2 ISL Frame

(26 bytes) Encapsulated frame ... FCS (4 bytes)

3 bits used for CoS

Layer 2 802.1Q/P Frame

SA Tag PT Data FCS

3 bits used for CoS (user priority)

Layer 3 IPv4 Packet

ToS (1 byte) ID Offset TTL Proto FCS IP-SA IP-DA Data

IP precedence or DSCP

All switches and routers across the Internet rely on the class information to provide the same forwarding treatment to packets with the same class information and different treatment to packets with different class information. The class information in the packet can be assigned by end hosts or by switches or routers along the way, based on a configured policy, detailed examination of the packet, or both. Detailed examination of the packet is expected to happen closer to the edge of the network so that the core switches and routers are not overloaded.

Show 11 more labels / short text on this page
About QoS · Encapsulated Packet · Layer 2 · header IP header · Data · ISL header · Preamble Start frame · delimiter DA · Version · Len · length
Page 754 of the Cisco Systems 4500 user manual — QoS Terminology
Page 754 · click to enlarge
Page 754

Chapter 37 Configuring Quality of Service About QoS

Switches and routers along the path can use the class information to limit the amount of resources allocated per traffic class. The behavior of an individual device when handling traffic in the DiffServ architecture is called per-hop behavior. If all devices along a path provide a consistent per-hop behavior, you can construct an end-to-end QoS solution.

Implementing QoS in your network can be a simple or complex task and depends on the QoS features offered by your internetworking devices, the traffic types and patterns in your network, and the granularity of control you need over incoming and outgoing traffic.

QoS Terminology

The following terms are used when discussing QoS features:

  • Packets carry traffic at Layer 3.
  • Frames carry traffic at Layer 2. Layer 2 frames carry Layer 3 packets.
  • Labels are prioritization values carried in Layer 3 packets and Layer 2 frames:

– Layer 2 class of service (CoS) values, which range between zero for low priority and seven for high priority:

Layer 2 Inter-Switch Link (ISL) frame headers have a 1-byte User field that carries an IEEE 802.1p CoS value in the three least significant bits.

Layer 2 802.1Q frame headers have a 2-byte Tag Control Information field that carries the CoS value in the three most significant bits, which are called the User Priority bits.

Other frame types cannot carry Layer 2 CoS values.

– Layer 3 IP precedence values—The IP version 4 specification defines the three most significant bits of the 1-byte ToS field as IP precedence. IP precedence values range between zero for low priority and seven for high priority.

– Layer 3 differentiated services code point (DSCP) values—The Internet Engineering Task Force (IETF) has defined the six most significant bits of the 1-byte IP ToS field as the DSCP. The per-hop behavior represented by a particular DSCP value is configurable. DSCP values range between 0 and 63. For more information, see the “Configuring DSCP Maps” section on page 37-53.

Page 755 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 755 · click to enlarge
Page 755

Chapter 37 Configuring Quality of Service

Table 37-1 IP Precedence and DSCP Values

6 MSb1 of ToS

6 MSb1 of ToS 6-bit DSCP 8 7 6 5 4 3 8 7 6 5 4 3

0

0

0

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

0 1 2 3 4 5 6 7

4 1

0

0

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

32 33 34 35 36 37 38 39

1 0

0

1

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

8 9 10 11 12 13 14 15

5 1

0

1

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

40 41 42 43 44 45 46 47

2 0

1

0

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

16 17 18 19 20 21 22 23

6 1

1

0

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

48 49 50 51 52 53 54 55

3 0

1

1

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

24 25 26 27 28 29 30 31

7 1

1

1

0 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

56 57 58 59 60 61 62 63

1. MSb = most significant bit
  • Classification is the selection of traffic to be marked.
  • Marking , according to RFC 2475, is the process of setting a Layer 3 DSCP value in a packet; in this publication, the definition of marking is extended to include setting Layer 2 CoS values.
  • Scheduling is the assignment of Layer 2 frames to a queue. QoS assigns frames to a queue based on internal DSCP values as shown in Internal DSCP Values, page 37-13 .
  • Policing is limiting bandwidth used by a flow of traffic. Policing can mark or drop traffic.
Show 4 more labels / short text on this page
About QoS · 3-bit IP Precedence · 6-bit DSCP · 3-bit IP Precedence
Page 756 of the Cisco Systems 4500 user manual — Classification
Page 756 · click to enlarge
Page 756

Chapter 37 Configuring Quality of Service About QoS

Basic QoS Model

Figure 37-2 shows the basic QoS model (also referred to as Switch QoS model; it is not MQC compliant). Actions at the ingress and egress interfaces include classifying traffic, policing, and marking:

  • Classifying distinguishes one kind of traffic from another. The process generates an internal DSCP for a packet, which identifies all the future QoS actions to be performed on this packet. For more information, see the “Classification” section on page 37-6 .
  • Policing determines whether a packet is in or out of profile by comparing the traffic rate to the configured policer, which limits the bandwidth consumed by a flow of traffic. The result of this determination is passed to the marker. For more information, see the “Policing and Marking” section on page 37-10 .
  • Marking evaluates the policer configuration information regarding the action to be taken when a packet is out of profile and decides what to do with the packet (pass through a packet without modification, mark down the DSCP value in the packet, or drop the packet). For more information, see the “Policing and Marking” section on page 37-10 .

Actions at the egress interface include queueing and scheduling:

  • Queueing evaluates the internal DSCP and determines which of the four egress queues in which to place the packet.
  • Scheduling services the four egress (transmit) queues based on the sharing and shaping configuration of the egress (transmit) port. Sharing and shaping configurations are described in the “Queueing and Scheduling” section on page 37-14 .

Figure 37-2 Basic QoS Model

Actions at ingress and egress Actions at egress

In profile or out of profile

Classification Policing Generate DSCP

Inspect packet and determine the DSCP based on ACLs or the configuration. Map the Layer 2 CoS value to a DSCP value.

Compare traffic rate to the configured policer and determine if the packet is in profile or out of profile.

Based on whether the packet is in or out of profile and the configured parameters, determine whether to pass through, mark down, or drop the packet. The DSCP and CoS are marked or changed accordingly.

Based on the marked DSCP, determine into which of the egress queues to place the packet. Then service the queues according to the configured weights.

Classification

Classification is the process of distinguishing one kind of traffic from another by examining the fields in the packet. Classification is enabled only if QoS is globally enabled on the switch. By default, QoS is globally disabled, so no classification occurs.

You specify which fields in the frame or packet that you want to use to classify incoming traffic.

Classification options are shown in Figure 37-3.

Mark · Queueing and · scheduling

Page 757 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 757 · click to enlarge
Page 757

Chapter 37 Configuring Quality of Service

For non-IP traffic, you have the following classification options:

  • Use the port default. If the packet is a non-IP packet, assign the default port DSCP value to the incoming packet.
  • Trust the CoS value in the incoming frame (configure the port to trust CoS). Next, use the configurable CoS-to-DSCP map to generate the internal DSCP value. Layer 2 ISL frame headers carry the CoS value in the three least-significant bits of the 1-byte User field. Layer 2 802.1Q frame headers carry the CoS value in the three most-significant bits of the Tag Control Information field. CoS values range from 0 for low priority to 7 for high priority. If the frame does not contain a CoS value, assign the default port CoS to the incoming frame.

The trust DSCP configuration is meaningless for non-IP traffic. If you configure a port with trust DSCP and non-IP traffic is received, the switch assigns the default port DSCP.

Note On a Catalyst 4948-10GE, Supervisor V-10GE, and Supervisor V, when you send non-IP traffic (such as IPX) from port 1 with .1Q tag and a Pri=x value, for all x values, the transmit CoS at the output interface varies as srcMac changes. "trust dscp" in a policy map only works for IP packets. If a non-IP packet is matched by class with the “trust dscp" action, it could be transmitted with a random CoS value rather than treating the "trust dscp" as no-OP as assumed otherwise. Workaround: Make the classification criteria in you class-maps more granular so that "trust dscp" is applied to a class that won't match non-IP packet. Separate the class-map matching both IP and non-IP packets into a set of class-maps so that "trust dscp" is applied to a class that matches only IPv4 traffic. For class-maps match non-IPv4 traffic, "trust cos" can be used.

For IP traffic, you have the following classification options:

  • Trust the IP DSCP in the incoming packet (configure the port to trust DSCP), and assign the same DSCP to the packet for internal use. The IETF defines the six most-significant bits of the 1-byte type of service (ToS) field as the DSCP. The priority represented by a particular DSCP value is configurable. DSCP values range from 0 to 63.
  • Trust the CoS value (if present) in the incoming packet, and generate the DSCP by using the CoS-to-DSCP map.
  • Perform the classification based on a configured IP standard or extended ACL, which examines various fields in the IP header. If no ACL is configured, the packet is assigned the default DSCP based on the trust state of the ingress port; otherwise, the policy map specifies the DSCP to assign to the incoming frame.

For information on the maps described in this section, see the “Mapping Tables” section on page 37-14. For configuration information on port trust states, see the “Configuring the Trust State of Interfaces” section on page 37-48.

About QoS

Page 758 of the Cisco Systems 4500 user manual — DSCP
Page 758 · click to enlarge
Page 758

Chapter 37 Configuring Quality of Service About QoS

Figure 37-3 Classification Flowchart

Read interface configuration for classification.

Are there any more traffic classes with

Is there a QoS policy attached

Does the packet satisfy the classification

Does the policy action specify DSCP for

Is Trust configured for this

configuration.

configuration.

Use Port default DSCP

Generate DSCP from CoS

DSCP

using CoS to DSCP map

Show 38 more labels / short text on this page
Start · Yes Yes · to this interface? · QoS actions? · No No · No · match criteria? · Yes · Yes · Use configured · this traffic · DSCP in ACL · class · No · No · traffic class · Yes · Use Port Trust · Use Policy Trust · Yes Yes · Trust DSCP? · IP Packet? · Use DSCP from · the packet · No · No · Packet recieved with · Trust CoS? · Yes · No · Use Port · Tag (with · CoS · CoS)? · Yes · No · Assign Port default · Done
Page 759 of the Cisco Systems 4500 user manual — Classification Based on Class Maps and Policy Maps
Page 759 · click to enlarge
Page 759

Chapter 37 Configuring Quality of Service

Classification Based on QoS ACLs

A packet can be classified for QoS using multiple match criteria, and the classification can specify whether the packet should match all of the specified match criteria or at least one of the match criteria. To define a QoS classifier, you can provide the match criteria using the match statements in a class map. In the match statements, you can specify the fields in the packet to match on, or you can use IP standard or IP extended ACLs. For more information, see the “Classification Based on Class Maps and Policy Maps” section on page 37-9.

If the class map is configured to match all the match criteria, then a packet must satisfy all the match statements in the class map before the QoS action is taken. The QoS action for the packet is not taken if the packet does not match even one match criterion in the class map.

If the class map is configured to match at least one match criterion, then a packet must satisfy at least one of the match statements in the class map before the QoS action is taken. The QoS action for the packet is not taken if the packet does not match any match criteria in the class map.

  • If a packet encounters (and satisfies) an ACE with a permit, then the packet matches the match criterion in the QoS classification.
  • If a packet encounters (and satisfies) an ACE with a deny, then the packet does not match the match criterion in the QoS classification.
  • If no match with a permit action is encountered and all the ACEs have been examined, then the packet does not match the criterion in the QoS classification.

After a traffic class has been defined with the class map, you can create a policy that defines the QoS actions for a traffic class. A policy might contain multiple classes with actions specified for each one of them. A policy might include commands to classify the class as a particular aggregate (for example, assign a DSCP) or rate-limit the class. This policy is then attached to a particular port on which it becomes effective.

You implement IP ACLs to classify IP traffic by using the access-list global configuration command. For configuration information, see the “Configuring a QoS Policy” section on page 37-28.

Classification Based on Class Maps and Policy Maps

A class map is a mechanism that you use to isolate and name a specific traffic flow (or class) from all other traffic. The class map defines the criterion used to match against a specific traffic flow to further classify it; the criteria can include matching the access group defined by the ACL or matching a specific list of DSCP, IP precedence, or Layer 2 CoS values. If you have more than one type of traffic that you want to classify, you can create another class map and use a different name. After a packet is matched against the class map criteria, you can specify the QoS actions by using a policy map.

A policy map specifies the QoS actions for the traffic classes. Actions can include trusting the CoS or DSCP values in the traffic class; setting a specific DSCP or IP precedence value in the traffic class; or specifying the traffic bandwidth limitations and the action to take when the traffic is out of profile. Before a policy map can be effective, you must attach it to an interface.

About QoS

Page 760 of the Cisco Systems 4500 user manual — Policing and Marking
Page 760 · click to enlarge
Page 760

Chapter 37 Configuring Quality of Service About QoS

You create a class map by using the class-map global configuration command. When you enter the class-map command, the switch enters the class map configuration mode. In this mode, you define the match criteria for the traffic by using the match class-map configuration command.

You create and name a policy map by using the policy-map global configuration command. When you enter this command, the switch enters the policy-map configuration mode. In this mode, you specify the actions to take on a specific traffic class by using the trust or set policy map configuration and policy map class configuration commands. To make the policy map effective, you attach it to an interface by using the service-policy interface configuration command.

The policy map can also contain commands that define the policer, (the bandwidth limitations of the traffic) and the action to take if the limits are exceeded. For more information, see the “Policing and Marking” section on page 37-10.

A policy map also has these characteristics:

  • A policy map can contain up to 255 class statements.
  • You can have different classes within a policy map.
  • A policy map trust state supersedes an interface trust state.

For configuration information, see the “Configuring a QoS Policy” section on page 37-28.

Policing and Marking

After a packet is classified and has an internal DSCP value assigned to it, the policing and marking process can begin as shown in Figure 37-4.

Policing involves creating a policer that specifies the bandwidth limits for the traffic. Packets that exceed the limits are out of profile or nonconforming. Each policer specifies the action to take for packets that are in or out of profile. These actions, carried out by the marker, include passing using the packet without modification, dropping the packet, or marking down the packet with a new DSCP value that is obtained from the configurable policed-DSCP map. For information on the policed-DSCP map, see the “Mapping Tables” section on page 37-14.

You can create these types of policers:

  • Individual

QoS applies the bandwidth limits specified in the policer separately to each matched traffic class for each port/VLAN to which the policy map is attached to. You configure this type of policer within a policy map by using the police command under policy map class configuration mode.

  • Aggregate

QoS applies the bandwidth limits specified in an aggregate policer cumulatively to all matched traffic flows. You configure this type of policer by specifying the aggregate policer name within a policy map by using the police aggregate policy-map configuration command. You specify the bandwidth limits of the policer by using the qos aggregate-policer global configuration command. In this way, the aggregate policer is shared by multiple classes of traffic within a policy map.

  • Flow or microflow

With flow-based policing, all the identified flows are policed to the specified rate individually. Because the flows are dynamic, key distinguishing fields must be configured in class maps. Two flow-matching options are provided: source ip based (each flow with unique source IP address is considered a new flow) and destination ip based (each flow with unique destination IP address is considered as new flow). For information on flow-based policer configuration, see “Configuring User-Based Rate-Limiting” on page 37.

Page 761 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 761 · click to enlarge
Page 761

Chapter 37 Configuring Quality of Service

When configuring policing and policers, observe these guidelines:

  • On Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E, policers account only for the Layer 2 header length when calculating policer rates. In contrast, shapers account for header length as well as IPG in rate calculations. Starting with Cisco IOS Release 15.0(2)SG, Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E support the qos account layer-all encapsulation command which accounts for Layer 1 headers of 20 bytes (12 bytes preamble + 8 bytes IPG) and Layer 2 headers in policing features.

By default, on Supervisor Engine V-10GE and earlier supervisor engines, policer or shaping computation involves only IP payload information. You can include Layer 2 lengths and any overhead with the qos account layer2 encapsulation command.

For non-IP packets, the Layer 2 length as specified in the Layer 2 Header is used by the policer for policing computation. To specify additional Layer 2 encapsulation length when policing IP packets, use the qos account layer2 encapsulation command.

  • By default, no policers are configured.
  • Only the average rate and committed burst parameters are configurable.
  • Policing for individual and aggregate policers can occur in ingress and egress interfaces.

– With the Supervisor Engine V-10GE (WS-X4516-10GE), 8192 policers are supported on ingress and on egress.

– With all other supervisor engines, 1024 policers are supported on ingress and on egress.

– The accuracy of the policer configured is +/- 1.5 percent.

  • Policers can be of individual or aggregate type. On the Supervisor Engine V-10GE, flow-based policers are supported.
  • Policing for flow policers can occur on ingress Layer 3 interfaces only.

– 512 unique flow policers can be configured on the Supervisor Engine V-10GE.

– Greater than 100,000 flows can be microflow policed.

  • On an interface configured for QoS, all traffic received or sent using the interface is classified, policed, and marked according to the policy map attached to the interface. However, if the interface is configured to use VLAN-based QoS (using the qos vlan-based command), the traffic received or sent using the interface is classified, policed, and marked according to the policy map attached to the VLAN (configured on the VLAN interface) to which the packet belongs. If there is no policy map attached to the VLAN to which the packet belongs, the policy map attached to the interface is used.
  • For 2 rate 3 colors (2r3c) policers, if no explicit violation-action is specified, the exceed-action is used as the violate-action.

After you configure the policy map and policing actions, attach the policy to an ingress or egress interface by using the service-policy interface configuration command. For configuration information, see the “Configuring a QoS Policy” section on page 37-28 and the “Creating Named Aggregate Policers” section on page 37-26.

About QoS

Page 762 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 762 · click to enlarge
Page 762

Chapter 37 Configuring Quality of Service About QoS

Cisco Systems 4500 — Configuring Quality of Service diagram (page 762)
Fig. 5 · Configuring Quality of Service

QoS Policy attached to the VLAN to which the

QoS Policy attached to the VLAN to which the

Page 763 of the Cisco Systems 4500 user manual — Egress ToS and CoS Sources
Page 763 · click to enlarge
Page 763

Chapter 37 Configuring Quality of Service

Internal DSCP Values

The following sections describe the internal DSCP values:

  • Internal DSCP Sources, page 37-13
  • Egress ToS and CoS Sources, page 37-13

Internal DSCP Sources

During processing, QoS represents the priority of all traffic (including non-IP traffic) with an internal DSCP value. QoS derives the internal DSCP value from the following:

  • For trust-CoS traffic, from received or ingress interface Layer 2 CoS values
  • For trust-DSCP traffic, from received or ingress interface DSCP values
  • For untrusted traffic, from ingress interface DSCP value

The trust state of traffic is the trust state of the ingress interface unless set otherwise by a policy action for this traffic class.

QoS uses configurable mapping tables to derive the internal 6-bit DSCP value from CoS, which are 3-bit values (see the“Configuring DSCP Maps” section on page 37-53).

Egress ToS and CoS Sources

For egress IP traffic, QoS creates a ToS byte from the internal DSCP value and sends it to the egress interface to be written into IP packets. For trust-dscp and untrusted IP traffic, the ToS byte includes the original 2 least-significant bits from the received ToS byte.

For all egress traffic, QoS uses a configurable mapping table to derive a CoS value from the internal ToS value associated with traffic (see the “Configuring the DSCP-to-CoS Map” section on page 37-55). QoS sends the CoS value to be written into ISL and 802.1Q frames.

For traffic received on an ingress interface configured to trust CoS using the qos trust cos command, the transmit CoS is always the incoming packet CoS (or the ingress interface default CoS if the packet is received untagged).

When the interface trust state is not configured to trust dscp using the qos trust dscp command, the security and QoS ACL classification always use the interface DSCP and not the incoming packet DSCP.

About QoS

Page 764 of the Cisco Systems 4500 user manual — Active Queue Management
Page 764 · click to enlarge
Page 764

Chapter 37 Configuring Quality of Service About QoS

Mapping Tables

During QoS processing, the switch represents the priority of all traffic (including non-IP traffic) with an internal DSCP value:

  • During classification, QoS uses configurable mapping tables to derive the internal DSCP (a 6-bit value) from received CoS. These maps include the CoS-to-DSCP map.
  • During policing, QoS can assign another DSCP value to an IP or non-IP packet (if the packet is out of profile and the policer specifies a marked down DSCP value). This configurable map is called the policed-DSCP map.
  • Before the traffic reaches the scheduling stage, QoS uses the internal DSCP to select one of the four egress queues for output processing. The DSCP-to-egress queue mapping can be configured using the qos map dscp to tx-queue command.

The CoS-to-DSCP and DSCP-to-CoS map have default values that might or might not be appropriate for your network.

For configuration information, see the “Configuring DSCP Maps” section on page 37-53.

Queueing and Scheduling

Each physical port has four transmit queues (egress queues). Each packet that needs to be transmitted is enqueued to one of the transmit queues. The transmit queues are then serviced based on the transmit queue scheduling algorithm.

Once the final transmit DSCP is computed (including any markdown of DSCP), the transmit DSCP to transmit queue mapping configuration determines the transmit queue. The packet is placed in the transmit queue of the transmit port, determined from the transmit DSCP. Use the qos map dscp to tx-queue command to configure the transmit DSCP to transmit queue mapping. The transmit DSCP is the internal DSCP value if the packet is a non-IP packet as determined by the QoS policies and trust configuration on the ingress and egress ports.

For configuration information, see the “Configuring Transmit Queues” section on page 37-50.

Active Queue Management

Active queue management (AQM) informs you about congestion before a buffer overflow occurs. AQM is done using dynamic buffer limiting (DBL). DBL tracks the queue length for each traffic flow in the switch. When the queue length of a flow exceeds its limit, DBL drop packets or set the Explicit Congestion Notification (ECN) bits in the packet headers.

DBL classifies flows in two categories, adaptive and aggressive. Adaptive flows reduce the rate of packet transmission once it receives congestion notification. Aggressive flows do not take any corrective action in response to congestion notification. For every active flow the switch maintains two parameters, “buffersUsed” and “credits.” All flows start with “max-credits,” a global parameter. When a flow with credits less than “aggressive-credits” (another global parameter) it is considered an aggressive flow and is given a small buffer limit called “aggressiveBufferLimit.”

Queue length is measured by the number of packets. The number of packets in the queue determines the amount of buffer space that a flow is given. When a flow has a high queue length the computed value is lowered. This allows new incoming flows to receive buffer space in the queue. This allows all flows to get a proportional share of packets using the queue.

Because 4 transmit queues exist per interface and DBL is a per-queue mechanism, DSCP values can make DBL application more complex.

Page 765 of the Cisco Systems 4500 user manual — Strict Priority / Low Latency Queueing
Page 765 · click to enlarge
Page 765

Chapter 37 Configuring Quality of Service

The following table provides the default DSCP-to-transmit queue mapping:

DSCP txQueue

For example, if you are sending two streams, one with a DSCP of 16 and other with a value of 0, they will transmit from different queues. Even though an aggressive flow in txQueue 2 (packets with DSCP of 16) can saturate the link, packets with a DSCP of 0 are not blocked by the aggressive flow, because they transmit from txQueue 1. Even without DBL, packets whose DSCP value places them in txQueue 1, 3, or 4 are not dropped because of the aggressive flow.

Sharing Link Bandwidth Among Transmit Queues

The four transmit queues for a transmit port share the available link bandwidth of that transmit port. You can set the link bandwidth to be shared differently among the transmit queues using bandwidth command in interface transmit queue configuration mode. With this command, you assign the minimum guaranteed bandwidth for each transmit queue.

By default, all queues are scheduled in a round-robin manner.

For systems using Supervisor Engine II-Plus, Supervisor Engine II-Plus TS, Supervisor Engine III, and Supervisor Engine IV, bandwidth can be configured on these ports only:

  • Uplink ports on supervisor engines
  • Ports on the WS-X4306-GB GBIC module
  • Ports on the WS-X4506-GB-T CSFP module
  • The two 1000BASE-X ports on the WS-X4232-GB-RJ module
  • The first two ports on the WS-X4418-GB module
  • The two 1000BASE-X ports on the WS-X4412-2GB-TX module

For systems using Supervisor Engine V, bandwidth can be configured on all ports (10/100 Fast Ethernet, 10/100/1000BASE-T, and 1000BASE-X).

Strict Priority / Low Latency Queueing

You can configure transmit queue 3 on each port with higher priority using the priority high tx-queue configuration command in the interface configuration mode. When transmit queue 3 is configured with higher priority, packets in transmit queue 3 are scheduled ahead of packets in other queues.

When transmit queue 3 is configured at a higher priority, the packets are scheduled for transmission before the other transmit queues only if it has not met the allocated bandwidth sharing configuration. Any traffic that exceeds the configured shape rate is queued and transmitted at the configured rate. If the burst of traffic, exceeds the size of the queue, packets are dropped to maintain transmission at the configured shape rate.

Show 4 more labels / short text on this page
About QoS · 16-31 2 · 32-48 3 · 49-63 4
Page 766 of the Cisco Systems 4500 user manual — QoS and Software Processed Packets
Page 766 · click to enlarge
Page 766

Chapter 37 Configuring Quality of Service About QoS

Traffic Shaping

Traffic shaping provides the ability to control the rate of outgoing traffic in order to make sure that the traffic conforms to the maximum rate of transmission contracted for it. Traffic that meets certain profile can be shaped to meet the downstream traffic rate requirements to handle any data rate mismatches.

Each transmit queue can be configured to transmit a maximum rate using the shape command. The configuration allows you to specify the maximum rate of traffic. Any traffic that exceeds the configured shape rate is queued and transmitted at the configured rate. If the burst of traffic exceeds the size of the queue, packets are dropped to maintain transmission at the configured shape rate.

Packet Modification

A packet is classified, policed, and queued to provide QoS. Packet modifications can occur during this process:

  • For IP packets, classification involves assigning a DSCP to the packet. However, the packet is not modified at this stage; only an indication of the assigned DSCP is carried along. This is because QoS classification and ACL lookup occur in parallel; the ACL might specify that the packet should be denied and logged. In this situation, the packet is forwarded with its original DSCP to the CPU, where it is again processed through ACL software.
  • For non-IP packets, classification involves assigning an internal DSCP to the packet, but because there is no DSCP in the non-IP packet, no overwrite occurs. Instead, the internal DSCP is used both for queueing and scheduling decisions and for writing the CoS priority value in the tag if the packet is being transmitted on either an ISL or 802.1Q trunk port.
  • During policing, IP and non-IP packets can have another DSCP assigned to them (if they are out of profile and the policer specifies a markdown DSCP). Once again, the DSCP in the packet is not modified, but an indication of the marked-down value is carried along. For IP packets, the packet modification occurs at a later stage.

Per-Port Per-VLAN QoS

Per-port per-VLAN QoS (PVQoS) offers differentiated quality of services to individual VLANs on a trunk port. It enables service providers to rate-limit individual VLAN-based services on each trunk port to a business or a residence. In an enterprise voice-over-IP environment, it can be used to rate-limit voice VLAN even if an attacker impersonates a Cisco IP phone. A per-port per-VLAN service policy can be separately applied to either ingress or egress traffic.

QoS and Software Processed Packets

The Catalyst 4500 platform does not apply the QoS marking or policing configuration for any packets that are forwarded or generated by the Cisco IOS software. This means that any input or output QoS policy configured on the port or VLAN is not applied to packets if the Cisco IOS is forwarding or generating packets.

Page 767 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 767 · click to enlarge
Page 767

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

However, Cisco IOS marks all the generated control packets appropriately and uses the internal IP DSCP to determine the transmit queue on the output transmission interface. For IP packets, the internal IP DSCP is the IP DSCP field in the IP packet. For non-IP packets, Cisco IOS assigns a packet priority internally and maps it to an internal IP DSCP value.

Cisco IOS assigns an IP precedence of 6 to routing protocol packets on the control plane. As noted in RFC 791, “The Internetwork Control designation is intended for use by gateway control originators only.” Specifically, Cisco IOS marks the following IP-based control packets: Open Shortest Path First (OSPF), Routing Information Protocol (RIP), Enhanced Interior Gateway Routing Protocol (EIGRP) hellos, and keepalives. Telnet packets to and from the router also receive an IP precedence value of 6. The assigned value remains with the packets when the output interface transmits them into the network.

For Layer 2 control protocols, the software assigns an internal IP DSCP. Typically, Layer 2 control protocol packets are assigned an internal DSCP value of 48 (corresponding to an IP precedence value of 6).

The internal IP DSCP is used to determine the transmit queue to which the packet is enqueued on the transmission interface. See “Configuring Transmit Queues” on page 50 for details on how to configure the DSCP to transmit queues.

The internal IP DSCP is also used to determine the transmit CoS marking if the packet is transmitted with a IEEE 802.1q or ISL tag on a trunk interface. See “Configuring the DSCP-to-CoS Map” on page 55 for details on how to configure the DSCP to CoS mapping.

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Before configuring QoS, you must have a thorough understanding of these items:

  • The types of applications used and the traffic patterns on your network.
  • Traffic characteristics and needs of your network. Is the traffic bursty? Do you need to reserve bandwidth for voice and video streams?
  • Bandwidth requirements and speed of the network.
  • Location of congestion points in the network.

These sections describe how to configure QoS on the Catalyst 4500 family switch:

  • Default QoS Configuration, page 37-18
  • Configuration Guidelines, page 37-19
  • Enabling QoS Globally, page 37-20
  • Configuring a Trusted Boundary to Ensure Port Security, page 37-21
  • Enabling Dynamic Buffer Limiting, page 37-22
  • Creating Named Aggregate Policers, page 37-26
  • Configuring a QoS Policy, page 37-28
  • Configuring CoS Mutation, page 37-36
  • Configuring User-Based Rate-Limiting, page 37-37
  • Enabling Per-Port Per-VLAN QoS, page 37-43
  • Enabling or Disabling QoS on an Interface, page 37-46
  • Configuring VLAN-Based QoS on Layer 2 Interfaces, page 37-46
Page 768 of the Cisco Systems 4500 user manual — Feature Default Value
Page 768 · click to enlarge
Page 768

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

  • Configuring the Trust State of Interfaces, page 37-48
  • Configuring the CoS Value for an Interface, page 37-49
  • Configuring DSCP Values for an Interface, page 37-49
  • Configuring Transmit Queues, page 37-50
  • Configuring DSCP Maps, page 37-53

Default QoS Configuration

Table 37-2 shows the QoS default configuration.

Table 37-2 QoS Default Configuration

Feature Default Value

Global QoS configuration Disabled

Interface QoS configuration (port based) Enabled when QoS is globally enabled

Interface CoS value 0

Interface DSCP value 0

CoS to DSCP map (DSCP set from CoS values)

CoS 0 = DSCP 0 CoS 1 = DSCP 8 CoS 2 = DSCP 16 CoS 3 = DSCP 24 CoS 4 = DSCP 32 CoS 5 = DSCP 40 CoS 6 = DSCP 48 CoS 7 = DSCP 56

DSCP to CoS map (CoS set from DSCP values)

DSCP 0–7 = CoS 0 DSCP 8–15 = CoS 1 DSCP 16–23 = CoS 2 DSCP 24–31 = CoS 3 DSCP 32–39 = CoS 4 DSCP 40–47 = CoS 5 DSCP 48–55 = CoS 6 DSCP 56–63 = CoS 7

Marked-down DSCP from DSCP map (Policed-DSCP)

Marked-down DSCP value equals original DSCP value (no markdown)

Transmit queue sharing 1/4 of the link bandwidth

Transmit queue size 1/4 of the transmit queue entries for the port. The transmit queue size of a port depends on the type of port, ranging from 240 packets per transmit queue to 1920 packets per transmit queue.

Transmit queue shaping None

Policers None · Policy maps None

Page 769 of the Cisco Systems 4500 user manual — Configuration Guidelines
Page 769 · click to enlarge
Page 769

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Table 37-2 QoS Default Configuration (continued)

Feature Default Value

DCSP-to-Transmit queue map DSCP 0–15 Queue 1 DSCP 16–31 Queue 2 DSCP 32–47 Queue 3 DSCP 48–63 Queue 4

High priority transmit queue Disabled

Interface trust state Trust DSCP

With QoS enabled With QoS enabled and all other QoS parameters at default values, QoS sets IP DSCP to zero and Layer 2 CoS to zero in all traffic transmitted.

Interface trust state Untrusted

Configuration Guidelines

Before beginning the QoS configuration, you should be aware of this information:

  • If you have EtherChannel ports configured on your switch, you must configure QoS classification and policing on the EtherChannel. The transmit queue configuration must be configured on the individual physical ports that comprise the EtherChannel.
  • If the IP fragments match the source and destination configured in the ACL used to classify the traffic for quality of service, but do not match the Layer 4 port numbers in the ACL, they are still matched with the ACL and may get prioritized. If the desired behavior is to give best-effort service to IP fragments, the following two ACEs should be added to the ACL used to classify the traffic:

access-list xxx deny udp any any fragments access-list xxx deny tcp any any fragments

  • It is not possible to match IP options against configured IP extended ACLs to enforce QoS. These packets are sent to the CPU and processed by software. IP options are denoted by fields in the IP header.
  • Control traffic (such as spanning tree BPDUs and routing update packets) received by the switch are subject to all ingress QoS processing.
  • You cannot use set commands in policy maps if IP routing is disabled (enabled by default).
  • On a dot1q tunnel port, only Layer 2 match criteria can be applied to tagged packets. However, all match criteria can be applied for untagged packets.
  • On a trunk port, only Layer 2 match criteria can be applied to packets with multiple 802.1q tags.

With QoS disabled

Page 770 of the Cisco Systems 4500 user manual — Enabling IP DSCP Rewrite
Page 770 · click to enlarge
Page 770

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Enabling QoS Globally

To enable QoS globally, perform this task:

Step 1 Switch# conf terminal Enter configuration mode.

Step 2 Switch(config)# qos Enables QoS on the switch.

Use the no qos command to globally disable QoS.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show qos Verifies the configuration.

This example shows how to enable QoS globally and to verify the configuration:

Switch# config terminal Switch(config)# qos Switch(config)# end Switch# Switch# show qos QoS is enabled globally Switch#

Enabling IP DSCP Rewrite

You must enter the qos rewrite ip dscp command to enable the update of packets CoS, DSCP and ToS fields based on the switch’s QoS policies.

To enable IP DSCP rewrite, perform this task:

Step 1 Switch# conf terminal Enters configuration mode.

Step 2 Switch(config)# [no] qos rewrite ip dscp Enables IP DSCP rewrite on the switch.

Use the no command to disable IP DSCP rewrite

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show qos Verifies the configuration.

This example shows how to enable IP DSCP rewrite and to verify the configuration:

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# qos rewrite ip dscp Switch(config)# end Switch# show qos QoS is enabled globally IP header DSCP rewrite is enabled

Switch#

Page 771 of the Cisco Systems 4500 user manual — Configuring a Trusted Boundary to Ensure Port Security
Page 771 · click to enlarge
Page 771

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

If you disable IP DSCP rewrite and enable QoS globally, the following events occur:

  • The ToS byte on the IP packet is not modified.
  • Marked and marked-down DSCP values are used for queueing.
  • The internally derived DSCP (as per the trust configuration on the interface or VLAN policy) is used for transmit queue and Layer 2 CoS determination. The DSCP is not rewritten on the IP packet header.

If you disable QoS, the DSCP of the incoming packet are preserved and are not rewritten.

Configuring a Trusted Boundary to Ensure Port Security

In a typical network, you connect a Cisco IP phone to a switch port as discussed in Chapter 38, “Configuring Voice Interfaces.” Traffic sent from the telephone to the switch is typically marked with a tag that uses the 802.1Q header. The header contains the VLAN information and the class of service (CoS) 3-bit field, which determines the priority of the packet. For most Cisco IP phone configurations, the traffic sent from the telephone to the switch is trusted to ensure that voice traffic is properly prioritized over other types of traffic in the network. By using the qos trust cos interface configuration command, you can configure the switch port to which the telephone is connected to trust the CoS labels of all traffic received on that port.

Note Starting with Cisco IOS Release 12.2(31)SG, Supervisor Engine V-10GE allows you to classify traffic based on packet's IP DSCP value irrespective of the port trust state. Because of this, even when a Cisco IP phone is not detected, data traffic can be classified based on IP DSCP values. Output queue selection is not impacted by this new behavior. It is still based on the incoming port trust configuration. For information on configuring transmit queues, refer to the “Configuring Transmit Queues” section on page 37-50.

In some situations, you also might connect a PC or workstation to the Cisco IP phone. In this case, you can use the switchport priority extend cos interface configuration command to configure the telephone using the switch CLI to override the priority of the traffic received from the PC. With this command, you can prevent a PC from taking advantage of a high-priority data queue.

However, if a user bypasses the telephone and connects the PC directly to the switch, the CoS labels generated by the PC are trusted by the switch (because of the trusted CoS setting) and can allow misuse of high-priority queues. The trusted boundary feature solves this problem by using the CDP to detect the presence of a Cisco IP phone (such as the Cisco IP phone 7910, 7935, 7940, and 7960) on a switch port.

When you configure trusted boundary on a port, trust is disabled. When a phone is plugged in and detected, trust is enabled. (It may take a few minutes to detect the phone.) Now, when a phone is unplugged (and not detected), the trusted boundary feature disables the trusted setting on the switch port and prevents misuse of a high-priority queue.

Page 772 of the Cisco Systems 4500 user manual — Enabling Dynamic Buffer Limiting
Page 772 · click to enlarge
Page 772

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

To enable trusted boundary on a port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode, and specifies the interface connected to the Cisco IP phone.

Valid interfaces include physical interfaces.

Step 3 Switch(config)# qos trust [cos | dscp]

Configures the interface to trust the CoS value in received traffic. By default, the port is not trusted.

Step 4 Switch(config)# qos trust device cisco-phone

Specifies that the Cisco IP phone is a trusted device.

You cannot enable both trusted boundary and auto-QoS (auto qos voip interface configuration command) at the same time; they are mutually exclusive.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show qos interface interface-id

Verifies your entries.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable the trusted boundary feature, use the no qos trust device cisco-phone interface configuration command.

Enabling Dynamic Buffer Limiting

Dynamic buffer limiting (DBL) provides active queue management on Catalyst 4500 platforms. Refer to “Active Queue Management” section on page 37-14 for details.

Through selective DBL, you can select the flows that are subjected to the DBL algorithm. You can enable DBL globally on specific IP DSCP values or on specific CoS values.

This section includes the following topics:

  • Enabling DBL Globally, page 37-23
  • Selectively Enable DBL, page 37-23
Page 773 of the Cisco Systems 4500 user manual — Selectively Enable DBL
Page 773 · click to enlarge
Page 773

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Enabling DBL Globally

To enable DBL globally on the switch, perform this task:

Step 1 Switch(config)# qos dbl Enables DBL on the switch.

Use the no qos dbl command to disable AQM.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show qos dbl Verifies the configuration.

This example shows how to enable DBL globally and verify the configuration:

Switch# configure terminal Switch(config)# qos dbl Global DBL enabled Switch(config)# end Switch# show qos dbl

QOS is enabled globally DBL is enabled globally on DSCP values: 0-63 DBL flow includes vlan DBL flow includes layer4-ports DBL does not use ecn to indicate congestion DBL exceed-action probability: 15% DBL max credits: 15 DBL aggressive credit limit: 10 DBL aggressive buffer limit: 2 packets Switch#

You can enable DBL on the egress interface direction by applying a service policy:

Switch# conf terminal Switch(config)# policy-map dbl Switch(config-pmap)# class class-default Switch(config-pmap-c)# dbl Switch(config-pmap-c)# end Switch# 00:08:12: %SYS-5-CONFIG_I: Configured from console by console Switch# conf terminal Switch(config)# int gig 1/2 Switch(config-if)# service-policy output dbl Switch(config-if)# end Switch#

Selectively Enable DBL

DSCP values enable you to selectively apply DBL for IP packets only (single or untagged). Refer to the “Enabling DBL on Specific IP DSCP Values” section on page 37-24.

To selectively apply DBL for non-IP packets or double-tagged packets (such as Q-in-Q), you must use CoS values. Refer to the “Enabling DBL on Specific CoS Values” section on page 37-25.

Page 774 of the Cisco Systems 4500 user manual — Enabling DBL on Specific IP DSCP Values
Page 774 · click to enlarge
Page 774

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

The following sections describe how to enable the packets:

  • Enabling DBL on Specific IP DSCP Values, page 37-24
  • Enabling DBL on Specific CoS Values, page 37-25

Enabling DBL on Specific IP DSCP Values

DBL action is performed on transmit queues (four per interface). You manage the mapping from IP DSCP to transmit queues with the qos map dscp dscp-values to tx-queue queue-id command. Refer to “Configuring Transmit Queues” section on page 37-50 for details.

To enable DBL on specific IP DSCP values, perform this task:

Step 1 Switch(config)# [no] qos dbl dscp-based value, value_range

Enables DBL on specific IP DSCP values.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show qos dbl Verifies the configuration.

This example shows how to selectively enable DBL on the DSCP values 1 through 10:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# qos dbl dscp-based 1-10 Switch(config)# end Switch# show qos dbl

QOS is enabled globally DBL is enabled globally on DSCP values: 1-10 DBL flow includes vlan DBL flow includes layer4-ports DBL does not use ecn to indicate congestion DBL exceed-action probability: 15% DBL max credits: 15 DBL aggressive credit limit: 10 DBL aggressive buffer limit: 2 packets Switch#

This example shows how to selectively disable DBL on DSCP values 1 through 10 and to verify the configuration:

Switch# configure terminal Switch(config)# no qos dbl dscp-based 1-5, 7 Switch(config)# end Switch# show qos dbl

QOS is enabled globally DBL is enabled globally on DSCP values: 6,8-10 DBL flow includes vlan DBL flow includes layer4-ports DBL does not use ecn to indicate congestion DBL exceed-action probability: 15% DBL max credits: 15 DBL aggressive credit limit: 10 DBL aggressive buffer limit: 2 packets Switch#

Although you apply DBL based on class attributes other than DSCP, you need to attach a policy map to an egress interface. See “Configuring Policy-Map Class Actions” section on page 37-31.

Page 775 of the Cisco Systems 4500 user manual — Enabling DBL on Specific CoS Values
Page 775 · click to enlarge
Page 775

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Provided the value has been set according to your network policies, you must configure trust DSCP on the ingress interface of the aggressive flow that DBL will throttle:

Interface ingress qos trust dscp

Enabling DBL on Specific CoS Values

You might need to use CoS values to selectively apply DBL if you intend to use non-IP packets or double-tagged packets (for example, Q-in-Q).

For single-tagged IP packets, use the following approach. Specify the global qos dbl dscp-based command as shown in the “Enabling DBL on Specific IP DSCP Values” section on page 37-24.

Interface ingress switchport mode trunk qos trust cos

To enable DBL non-IP or double-tagged packets, perform this task:

Step 1 Switch(config)# qos dbl Enables DBL globally.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch(config)# class-map cos Defines a traffic class.

Step 4 Switch(config-cmap)# match cos x y Specifies CoS values used as match criteria.

Step 5 Switch(config-cmap)# exit Returns to global configuration mode.

Step 6 Switch(config)# policy-map cos Creates a policy map with a user-specified name.

Step 7 Switch(config-pmap)# class cos Specifies the class map to be used by the policy map.

Step 8 Switch(config-pmap-c)# dbl Enables DBL on the policy.

Step 9 Switch(config-pmap-c)# end Returns to EXEC mode.

Step 10 Switch# show policy-map cos Verifies configuration.

Step 11 Switch# configure terminal Enters global configuration mode.

Step 12 Switch(config)# interface gigabitEthernet 1/20 Applies the configuration to an interface.

Step 13 Switch(config-if)# service-policy output cos Attaches the policy map to the interface.

Step 14 Switch# show policy-map interface Verifies the configuration.

To selectively enable DBL on CoS values 2 and 3:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# qos dbl Switch(config)# end Switch# configure terminal Switch(config)# class-map cos Switch(config-cmap)# match cos 2 3 Switch(config-cmap)# exit Switch(config)# policy-map cos Switch(config-pmap)# class cos

Page 776 of the Cisco Systems 4500 user manual — Creating Named Aggregate Policers
Page 776 · click to enlarge
Page 776

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Switch(config-pmap-c)# dbl Switch(config-pmap-c)# end Switch# show policy-map cos Policy Map cos Class cos dbl Switch# configure terminal Switch(config)# interface gigabitEthernet 1/20 Switch(config-if)# service-policy output cos Switch# show policy-map interface GigabitEthernet1/20

Service-policy outputcos
Class-mapcos (match-all) 0 packets Match: cos 2 3 dbl
Class-mapclass-default (match-any) 0 packets Match: any 0 packets

Creating Named Aggregate Policers

To create a named aggregate policer, perform this task:

Switch(config)# qos aggregate-policer policer_name rate burst [[conform-action {transmit | drop}] [exceed-action {transmit | drop | policed-dscp-transmit}]]

Creates a named aggregate policer.

An aggregate policer can be applied to one or more interfaces. However, if you apply the same policer to the input direction on one interface and to the output direction on a different interface, then you have created the equivalent of two different aggregate policers in the switching engine. Each policer has the same policing parameters, with one policing the ingress traffic on one interface and the other policing the egress traffic on another interface. If an aggregate policer is applied to multiple interfaces in the same direction, then only one instance of the policer is created in the switching engine.

Similarly, an aggregate policer can be applied to a port or to a VLAN. If you apply the same aggregate policer to a port and to a VLAN, then you have created the equivalent of two different aggregate policers in the switching engine. Each policer has the same policing parameters, with one policing the traffic on the configured port and the other policing the traffic on the configured VLAN. If an aggregate policer is applied to only ports or only VLANs, then only one instance of the policer is created in the switching engine.

In effect, if you apply a single aggregate policer to ports and VLANs in different directions, then you have created the equivalent of four aggregate policers: one for all ports sharing the policer in input direction, one for all ports sharing the policer in output direction, one for all VLANs sharing the policer in input direction and one for all VLANs sharing the policer in output direction.

Page 777 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 777 · click to enlarge
Page 777

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

When creating a named aggregate policer, note the following:

  • The valid range of values for the rate parameter is as follows:

– Minimum—32 kilobits per second

– Maximum—32 gigabits per second

For more information, see the “Configuration Guidelines” section on page 37-19.

  • Rates can be entered in bits-per-second, or you can use the following abbreviations:

– k to denote 1000 bps

– m to denote 1000000 bps

– g to denote 1000000000 bps

  • The valid range of values for the burst parameter is as follows:
  • Bursts can be entered in bytes, or you can use the following abbreviation:

– k to denote 1000 bytes

– m to denote 1000000 bytes

– g to denote 1000000000 bytes

  • Optionally, you can specify a conform action for matched in-profile traffic as follows:

– The default conform action is transmit.

– Enter the drop keyword to drop all matched traffic.

  • Optionally, for traffic that exceeds the CIR, you can specify an exceed action as follows:

– The default exceed action is drop.

– Enter the policed-dscp-transmit keyword to cause all matched out-of-profile traffic to be marked down as specified in the markdown map.

– For no policing, enter the transmit keyword to transmit all matched out-of-profile traffic.

  • You can enter the no qos aggregate-policer policer_name command to delete a named aggregate policer.

– Minimum—1 kilobyte · – Maximum—512 megabytes

Page 778 of the Cisco Systems 4500 user manual — Protocol Numbered Access Lists? Extended Access Lists? Named Access Lists?
Page 778 · click to enlarge
Page 778

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

This example shows how to create a named aggregate policer with a ten MBps rate limit and a one mb burst size that transmits conforming traffic and marks down out-of-profile traffic.

Switch# config terminal Switch(config)# qos aggregate-policer aggr-1 10000000 1000000 conform-action transmit exceed-action policed-dscp-transmit Switch(config)# end Switch#

This example shows how to verify the configuration:

Switch# show qos aggregate-policer aggr-1 Policer aggr-1 Rate(bps):10000000 Normal-Burst(bytes):1000000 conform-action:transmit exceed-action:policed-dscp-transmit Policy maps using this policer: Switch#

Configuring a QoS Policy

The following subsections describe QoS policy configuration:

  • Overview of QoS Policy Configuration, page 37-28
  • Configuring a Class Map (Optional), page 37-29
  • Configuring a Policy Map, page 37-31
  • Attaching a Policy Map to an Interface, page 37-35

Overview of QoS Policy Configuration

Configuring a QoS policy requires you to configure traffic classes and the policies that will be applied to those traffic classes, and to attach the policies to interfaces using these commands:

  • access-list (optional for IP traffic—you can filter IP traffic with class-map commands):

– QoS supports these access list types:

Protocol Numbered Access Lists? Extended Access Lists? Named Access Lists?

IP Yes1 to 99 1300 to 1999
Yes100 to 199 2000 to 2699

– See Chapter 47, “Configuring Network Security with ACLs,” for information about ACLs on the Catalyst 4500 series switches.

  • class-map (optional)—Enter the class-map command to define one or more traffic classes by specifying the criteria by which traffic is classified. (For more information, see the “Configuring a Class Map (Optional)” section on page 37-29 .)

Yes

Page 779 of the Cisco Systems 4500 user manual — Configuring Filtering in a Class Map
Page 779 · click to enlarge
Page 779

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

  • policy-map —Enter the policy-map command to define the following for each class of traffic:

– Internal DSCP source

– Aggregate or individual policing and marking

  • service-policy —Enter the service-policy command to attach a policy map to an interface.

Configuring a Class Map (Optional)

The following subsections describe class map configuration:

  • Creating a Class Map, page 37-29
  • Configuring Filtering in a Class Map, page 37-29
  • Verifying Class-Map Configuration, page 37-30

Enter the class-map configuration command to define a traffic class and the match criteria that will be used to identify traffic as belonging to that class. Match statements can include criteria such as an ACL, an IP precedence value, or a DSCP value. The match criteria are defined with one match statement entered within the class map configuration mode.

Creating a Class Map

To create a class map, enter this command:

Switch(config)# [no] class-map [match-all | match-any] class_name

Creates a named class map.

Use the no keyword to delete a class map.

Configuring Filtering in a Class Map

To configure filtering in a class map, enter one of these commands:

Switch(config-cmap)# [no] match access-group {acl_index | name acl_name}

(Optional) Specifies the name of the ACL used to filter traffic.

Use the no keyword to remove the statement from a class map.

Switch (config-cmap)# [no] match ip precedence ipp_value1 [ipp_value2 [ipp_valueN]]

(Optional—for IP traffic only) Specifies up to eight IP precedence values used as match criteria. Use the no keyword to remove the statement from a class map.

Switch (config-cmap)# [no] match ip dscp dscp_value1 [dscp_value2 [dscp_valueN]]

(Optional—for IP traffic only) Specifies up to eight DSCP values used as match criteria. Use the no keyword to remove the statement from a class map.

Page 780 of the Cisco Systems 4500 user manual — Verifying Class-Map Configuration
Page 780 · click to enlarge
Page 780

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Switch (config-cmap)# [no] match cos value1 [value2] [value3} [value4}

(Optional—for non-IPv4 traffic only) Specifies up to eight CoS values used as match criteria. Use the no keyword to remove the statement from a class map.

For information on non-IPv4 traffic, see “Configuration Guidelines” section on page 37-58.

Switch (config-cmap)# [no] match any (Optional) Matches any IP traffic or non-IP traffic.

Switch (config-cmap)# match flow ip {source-address | destination-address

(Optional) Treats each flow with a unique IP source address or destination address as a new flow.

Note Any Input or Output policy that uses a class map with the match ip precedence or match ip dscp class-map commands, requires that you configure the port on which the packet is received to trust dscp. If not, the IP packet DSCP/IP-precedence is not used for matching the traffic; instead, the receiving port’s default DSCP is used. Starting with Cisco IOS Release 12.2(31)SG, the Supervisor Engine V-10GE allows you to classify traffic based on packet’s IP DSCP value irrespective of port trust state.

Verifying Class-Map Configuration

To verify class-map configuration, perform this task:

Step 1 Switch (config-cmap)# end Exits configuration mode.

Step 2 Switch# show class-map class_name Verifies the configuration.

This example shows how to create a class map named ipp5 and how to configure filtering to match traffic with IP precedence 5:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# class-map ipp5 Switch(config-cmap)# match ip precedence 5 Switch(config-cmap)# end Switch#

This example shows how to verify the configuration:

Switch# show class-map ipp5 Class Map match-all ipp5 (id 1) Match ip precedence 5

Switch#

Page 781 of the Cisco Systems 4500 user manual — Configuring Policy-Map Class Actions
Page 781 · click to enlarge
Page 781

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

This example shows how to configure match CoS for non-IPv4 traffic and how to configure filtering to match traffic with CoS value of 5:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# class-map maptwo Switch(config-cmap)# match cos 5 Switch(config-cmap)# end Switch#

This example shows how to verify the configuration:

Switch# show class-map maptwo Class Map match-all maptwo (id 1) Match cos 5

Configuring a Policy Map

You can attach only one policy map to an interface. Policy maps can contain one or more policy-map classes, each with different match criteria and policers.

Configure a separate policy-map class in the policy map for each type of traffic that an interface receives. Put all commands for each type of traffic in the same policy-map class. QoS does not attempt to apply commands from more than one policy-map class to matched traffic.

The following sections describe policy-map configuration:

  • Creating a Policy Map, page 37-31
  • Configuring Policy-Map Class Actions, page 37-31

Creating a Policy Map

To create a policy map, enter this command:

Switch(config)# [no] policy-map policy_name Creates a policy map with a user-specified name.

Use the no keyword to delete the policy map.

Configuring Policy-Map Class Actions

These sections describe policy-map class action configuration:

  • Configuring the Policy-Map Marking State, page 37-32
  • Configuring the Policy-Map Class Trust State, page 37-32
  • Configuring the Policy-Map Class DBL State, page 37-32
  • Configuring Policy-Map Class Policing, page 37-33
  • Using a Named Aggregate Policer, page 37-33
  • Configuring a Per-Interface Policer, page 37-33

Switch#

Page 782 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 782 · click to enlarge
Page 782

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Configuring the Policy-Map Marking State To configure the policy map to mark the IP precedence or dscp of a packet, enter this command:

Switch(config-pmap-c)# [no] set ip [precedence prec_value | dscp dscp_value]

Configures the policy-map marking state, which decides the internal DSCP of the packet for subsequent processing.

Use the no keyword to clear a configured value and return to the default.

Configuring the Policy-Map Class Trust State To configure the policy-map class trust state, enter this command:

Switch(config-pmap-c)# [no] trust {cos | dscp]

Configures the policy-map class trust state, which selects the value that QoS uses as the source of the internal DSCP value (see the “Internal DSCP Values” section on page 37-13).

Use the no keyword to clear a configured value and return to the default.

When configuring the policy-map class trust state, note the following:

  • You can enter the no trust command to use the trust state configured on the ingress interface (the default).
  • With the cos keyword, QoS sets the internal DSCP value from received or interface CoS.
  • With the dscp keyword, QoS uses received DSCP.

Configuring the Policy-Map Class DBL State To configure the policy-map class DBL state, enter this command:

Switch(config-pmap-c)# [no] dbl Configures the policy-map class DBL state, which tracks the queue length of traffic flows (see the “Active Queue Management” section on page 37-14).

Use the no keyword to clear an DBL value and return to the default.

When configuring the policy-map class DBL state, note the following:

  • Any class that uses a named aggregate policer must have the same DBL configuration to work.
Page 783 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 783 · click to enlarge
Page 783

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Configuring Policy-Map Class Policing These sections describe configuration of policy-map class policing:

  • Using a Named Aggregate Policer, page 37-33
  • Configuring a Per-Interface Policer, page 37-33

Using a Named Aggregate Policer To use a named aggregate policer (see the “Creating Named Aggregate Policers” section on page 37-26), enter this command:

Switch(config-pmap-c)# [no] police aggregate aggregate_name

Uses a previously defined aggregate policer.

Use the no keyword to delete the policer from the policy-map class.

Configuring a Per-Interface Policer To configure a per-interface policer (see the “Policing and Marking” section on page 37-10), enter this command:

Switch(config-pmap-c)# [no] police rate burst [[conform-action {transmit | drop}] [exceed-action {transmit | drop | policed-dscp-transmit}]]

Configures a per-interface policer.

Use the no keyword to delete a policer from the policy-map class.

When configuring a per-interface policer, note the following:

  • The valid range of values for the rate parameter is as follows:

– Minimum—32 kilobits per second, entered as 32000

– Maximum—32 gigabits per second, entered as 32000000000

  • Rates can be entered in bits-per-second, or you can use the following abbreviations:

– k to denote 1000 bps

– m to denote 1000000 bps

– g to denote 1000000000 bps

  • The valid range of values for the burst parameter is as follows:

– Minimum—1 kilobyte · – Maximum—512 megabytes

Page 784 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 784 · click to enlarge
Page 784

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

  • Bursts can be entered in bytes, or you can use the following abbreviation:

– k to denote 1000 bytes

– m to denote 1000000 bytes

– g to denote 1000000000 bytes

  • Optionally, you can specify a conform action for matched in-profile traffic as follows:

– The default conform action is transmit.

– You can enter the drop keyword to drop all matched traffic.

  • Optionally, for traffic that exceeds the CIR, you can enter the policed-dscp-transmit keyword to cause all matched out-of-profile traffic to be marked down as specified in the markdown map. See “Configuring the Policed-DSCP Map” section on page 37-54 .

– For no policing, you can enter the transmit keyword to transmit all matched out-of-profile traffic.

This example shows how to create a policy map named ipp5-policy that uses the class map named ipp5. The class map ipp5 is configured to rewrite the packet precedence to 6 and to aggregate police the traffic that matches IP precedence value of 5:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# policy-map ipp5-policy Switch(config-pmap)# class ipp5 Switch(config-pmap-c)# set ip precedence 6 Switch(config-pmap-c)# dbl Switch(config-pmap-c)# police 2000000000 2000000 conform-action transmit exceed-action policed-dscp-transmit Switch(config-pmap-c)# end

This example shows how to create a policy map named cs2-policy that uses class map named cs2. The class map cos5 is configured to match on CoS 5 and to aggregate policing the traffic:

Switch(config)# class-map cs2 Switch(config-cmap)# match cos 5 Switch(config-cmap)# exit

Switch(config)# policy-map cs2-policy Switch(config-pmap)# class cs2 police 2000000000 2000000 conform-action transmit exceed-action policed-dscp-transmit

Switch(config)# int g5/1 Switch(config-if)# service-policy input cs2-policy Switch(config-if)# end

Switch# sh class-map cs2 Class Map match-all cs2 (id 2) Match cos 5

Switch# sh policy-map cs2-policy Policy Map cs2-policy Class cs2 police 2000000000 bps 2000000 byte conform-action transmit exceed-action policed-dscp-transmit Switch#

Page 785 of the Cisco Systems 4500 user manual — Attaching a Policy Map to an Interface
Page 785 · click to enlarge
Page 785

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Verifying Policy-Map Configuration

To verify policy-map configuration, perform this task:

Step 1 Switch(config-pmap-c)# end Exits policy-map class configuration mode.

Step 2 Switch# show policy-map policy_name Verifies the configuration.

This example shows how to verify the configuration:

Switch# show policy-map ipp5-policy show policy ipp5-policy Policy Map ipp5-policy class ipp5 set ip precedence 6 dbl police 2000000000 2000000 conform-action transmit exceed-action policed-dscp-transmit Switch#

Attaching a Policy Map to an Interface

To attach a policy map to an interface, perform this task:

Step 1 Switch(config)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects the interface to configure.

Step 2 Switch(config-if)# [no] service-policy input policy_map_name

Attaches a policy map to the input direction of the interface. Use the no keyword to detach a policy map from an interface.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show policy-map interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface}

Verifies the configuration.

Set command will not take effect since CEF is disabled. Please enable IP routing and CEF

globally. To enable IP routing globally, enter the ip routing and ip cef global configuration commands. After you do this, the marking commands take effect.

Page 786 of the Cisco Systems 4500 user manual — Configuring CoS Mutation
Page 786 · click to enlarge
Page 786

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

This example shows how to attach the policy map named pmap1 to Fast Ethernet interface 5/36 and to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/36 Switch(config-if)# service-policy input pmap1 Switch(config-if)# end Switch# show policy-map interface fastethernet 5/36 FastEthernet6/1

service-policy input:p1

class-map:c1 (match-any) 238474 packets match:access-group 100 38437 packets police:aggr-1 Conform:383934 bytes Exceed:949888 bytes

class-map:class-default (match-any) 0 packets match:any 0 packets Switch#

Configuring CoS Mutation

Service providers providing Layer 2 VPNs carry double-tagged or Q-in-Q traffic with the outer tag representing the service providers’ VLAN, and the inner tag representing the customers’ VLAN. Differentiated levels of service can be provided inside the SP network based on the CoS present in the outer tag.

By using CoS mutation on a dot1q tunnel port, the CoS value on the outer tag of dot1q tunneled packets entering the provider core network can be derived from the CoS of the customer VLAN tag. This allows providers to preserve customer QoS semantics using their network.

CoS mutation is achieved through explicit user configuration to match on specific incoming CoS values and specifying the internal DSCP that is associated for matched packets. This internal DSCP gets converted to CoS through DSCP-CoS mapping during exit from the switch and is the CoS value that gets marked on the outer VLAN tag.

During the process, the CoS in inner tag is preserved and is carried across in the service providers’ network.

The following example shows how a policy map preserves customer VLAN IDs and CoS values throughout the network:

Class Map match-any c0 Match cos 0

Class Map match-any c1 Match cos 1

Class Map match-any c2 Match cos 2

Class Map match-any c3 Match cos 3

Page 787 of the Cisco Systems 4500 user manual — Configuring User-Based Rate-Limiting
Page 787 · click to enlarge
Page 787

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Class Map match-any c4 Match cos 4

Class Map match-any c5 Match cos 5

Class Map match-any c6 Match cos 6

Class Map match-any c7 Match cos 7

Policy Map cos_mutation Class c0 set dscp default

Class c1 set dscp cs1

Class c2 set dscp cs2

Class c3 set dscp cs3

Class c4 set dscp cs4

Class c5 set dscp cs5

Class c6 set dscp cs6

Class c7 set dscp cs7

interface GigabitEthernet5/1 switchport access vlan 100

switchport mode dot1q-tunnel service-policy input cos_mutation

Configuring User-Based Rate-Limiting

User-Based Rate-Limiting (UBRL) adopts microflow policing capability to dynamically learn traffic flows and rate-limit each unique flow to an individual rate. UBRL is available on Supervisor Engine V-10GE with the built-in NetFlow support. UBRL can be applied to ingress traffic on routed interfaces with source or destination flow masks. It can support up to 85,000 individual flows and 511 rates. UBRL is typically used in environments where a per-user, granular rate-limiting mechanism is required; for example, the per-user outbound traffic rate could differ from the per-user inbound traffic rate.

Note By default, UBRL polices only routed IP traffic. You can use the ip flow ingress layer2-switched global command to police switched IP traffic. However, UBRL configuration must remain on a Layer 3 interface. With the UBRL configurations and the ip flow ingress layer2-switched global command, you will also be able to police intra-VLAN flows. You do not need to enter the ip flow ingress command.

Page 788 of the Cisco Systems 4500 user manual — Example 2
Page 788 · click to enlarge
Page 788

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

A flow is defined as a five-tuple (IP source address, IP destination address, IP head protocol field, Layer 4 source, and destination ports). Flow-based policers enable you to police traffic on a per-flow basis. Because flows are dynamic, they require distinguishing values in the class map.

When you specify the match flow command with the source-address keyword, each flow with a unique source address is considered a new flow. When you specify the match flow command with the destination-address keyword, each flow with a unique destination address is considered a new flow. If the class map used by the policy map has any flow options configured, it is considered a flow-based policy map. When you specify the match flow command with the ip destination-address ip protocol L4 source-address L4 destination-address keyword, each flow with unique IP source, destination, protocol, and Layer 4 source and destination address is considered a new flow.

To configure the flow-based class maps and policy maps, perform this task:

Step 1 Switch(config)# class-map match-all class_name Creates a named class map.

Step 2 Switch(config-cmap)# match flow ip {source-address | ip destination-address ip protocol L4 source-address L4 destination-address | destination-address}

Specifies the key fields of the flow.

Step 3 Switch(config-cmap)# end Exits class-map configuration mode.

Step 4 Switch# show class-map class-name Verifies the configuration.

Examples

Example 1

This example shows how to create a flow-based class map associated with a source address:

Switch(config)# class-map match-all c1 Switch(config-cmap)# match flow ip {source-address [ip destination_address ip protocol L4 source-address L4 destination address]} Switch(config-cmap)# end Switch# Switch# show class-map c1 Class Map match-all c1 (id 2) Match flow ip source-address

Example 2

This example shows how to create a flow-based class map associated with a destination address:

Switch(config)# class-map match-all c1 Switch(config-cmap)# match flow ip destination-address Switch(config-cmap)# end Switch#

Switch# show class-map c1 Class Map match-all c1 (id 2) Match flow ip destination-address

Page 789 of the Cisco Systems 4500 user manual — Example 4
Page 789 · click to enlarge
Page 789

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Example 3

Assume there are two active flows on the Fast Ethernet interface 6/1 with source addresses 192.168.10.20 and 192.168.10.21. The following example shows how to maintain each flow to one MBps with an allowed burst value of 9000 bytes:

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# class-map c1 Switch(config-cmap)# match flow ip source-address Switch(config-cmap)# exit Switch(config)# policy-map p1 Switch(config-pmap)# class c1 Switch(config-pmap-c)# police 1000000 9000 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface fa6/1 Switch(config-if)# service-policy input p1 Switch(config-if)# end Switch# write memory

Switch# show policy-map interface FastEthernet6/1

Service-policy inputp1

Class-map: c1 (match-all) 15432182 packets Match: flow ip source-address police: Per-interface Conform: 64995654 bytes Exceed: 2376965424 bytes

Class-mapclass-default (match-any) 0 packets Match: any 0 packets

Example 4

Assume there are two active flows on the Fast Ethernet interface 6/1 with destination addresses of 192.168.20.20 and 192.168.20.21. The following example shows how to maintain each flow to one MBps with an allowed burst value of 9000 bytes:

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# class-map c1 Switch(config-cmap)# match flow ip destination-address Switch(config-cmap)# exit Switch(config)# policy-map p1 Switch(config-pmap)# class c1 Switch(config-pmap-c)# police 1000000 9000 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface fa6/1 Switch(config-if)# service-policy input p1 Switch(config-if)# end Switch# write memory

Switch# show policy-map interface FastEthernet6/1

Service-policy inputp1
Page 790 of the Cisco Systems 4500 user manual — Example 5
Page 790 · click to enlarge
Page 790

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Class-map: c1 (match-all) 2965072 packets Match: flow ip destination-address police: Per-interface Conform: 6105636 bytes Exceed: 476652528 bytes

Class-mapclass-default (match-any) 0 packets Match: any 0 packets

Example 5

Assume that there are two active flows on FastEthernet interface 6/1:

SrcIp DstIp IpProt SrcL4Port DstL4Port 192.168.10.10 192.168.20.20 20 6789 81 192.168.10.10 192.168.20.20 20 6789 21

With the following configuration, each flow is policed to 1000000 bps with an allowed 9000 burst value.

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# class-map c1 Switch(config-cmap)# match flow ip source-address ip destination-address ip protocol l4 source-port l4 destination-port Switch(config-cmap)# exit Switch(config)# policy-map p1 Switch(config-pmap)# class c1 Switch(config-pmap-c)# police 1000000 9000 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface fastEthernet 6/1 Switch(config-if)# service-policy input p1 Switch(config-if)# end Switch# write memory Switch# show policy-map interface FastEthernet6/1

class-map c1 match flow ip source-address ip destination-address ip protocol l4 source-port l4 destination-port ! policy-map p1 class c1 police 1000000 bps 9000 byte conform-action transmit exceed-action drop ! interface FastEthernet 6/1 service-policy input p1

Switch# show class-map c1 Class Map match-all c1 (id 2) Match flow ip source-address ip destination-address ip protocol l4 source-port l4 destination-port

Switch# show policy-map p1 Policy Map p1

Page 791 of the Cisco Systems 4500 user manual — Configuring Hierarchical Policers
Page 791 · click to enlarge
Page 791

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Class c1 police 1000000 bps 9000 byte conform-action transmit exceed-action drop

Switch# show policy-map interface FastEthernet6/1

Service-policy inputp1

Class-map: c1 (match-all) 15432182 packets Match: flow ip source-address ip destination-address ip protocol l4 source-port l4 destination-port police: Per-interface Conform: 64995654 bytes Exceed: 2376965424 bytes

Class-mapclass-default (match-any) 0 packets Match: any 0 packets

Configuring Hierarchical Policers

You can tie flow policers with the existing policers to create dual policing rates on an interface. For example, using dual policing, you can limit all incoming traffic rates on a given interface to 50 MBps and can limit the rate of each flow that is part of this traffic to two MBps.

You can configure hierarchical policers with the service-policy policy-map config command. A policy map is termed flow-based if the class map it uses matches any of the flow-based match criteria (such as match flow ip source-address). Each child policy map inherits all the match access-group commands of the parent.

To configure a flow-based policy map as a child of an individual or aggregate policer, perform this task:

Step 1 Switch(config)# policy-map policy_name Specifies the individual or aggregate policy map name.

Step 2 Switch(config-pmap)# class class_name Specifies the class-map name of this policy map.

Step 3 Switch(config-flow-cache)# service-policy service_policy_name

Specifies the name of the flow-based policy map.

Page 792 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 792 · click to enlarge
Page 792

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

This example shows how to create a hierarchical policy map. A policy map with the name aggregate-policy has a class map with the name aggregate-class. A flow-based policy map with the name flow-policy is attached to this policy map as a child policy map.

Switch# config terminal Switch(config)# policy-map aggregate-policy Switch(config-pmap)# class aggregate-class Switch(config-pmap-c)# service-policy flow-policy Switch(config-pmap-c)# end Switch#

In the following example, traffic in the IP address range of 101.237.0.0 to 101.237.255.255 is policed to 50 MBps. Flows ranging from 101.237.10.0 to 101.237.10.255 are individually policed to a rate of two MBps. This traffic goes through two policers: the aggregate policer and the other flow-based policer.

The following example shows the configuration for this scenario:

class-map match-all flow-class match flow ip source-address match access-group 20 ! class-map match-all aggregate-class match access-group 10 ! policy-map flow-policy class flow-class police 2000000 bps 10000 byte conform-action transmit exceed-action drop ! policy-map aggregate-policy class aggregate-class police 50000000 bps 40000 byte conform-action transmit exceed-action drop service-policy flow-policy ! access-list 10 permit 101.237.0.0 0.0.255.255 access-list 20 permit 0.0.10.0 255.255.0.255

The following example shows how to verify the configuration:

Switch# show policy-map flow-policy Policy Map flow-policy Class flow-class police 2000000 bps 10000 byte conform-action transmit exceed-action drop Switch# show policy-map aggregate-policy Policy Map aggregate-policy Class aggregate-class police 50000000 bps 40000 byte conform-action transmit exceed-action drop service-policy flow-policy

Switch# show policy-map interface FastEthernet6/1 Service-policy input: aggregate-policy

Class-mapaggregate-class (match-all) 132537 packets Match: access-group 10 police: Per-interface
Page 793 of the Cisco Systems 4500 user manual — Example 1
Page 793 · click to enlarge
Page 793

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Conform3627000 bytes Exceed: 0 bytes
Service-policyflow-policy

Class-map: flow-class (match-all) 8867 packets Match: access-group 20 Match: flow ip source-address police: Per-interface Conform: 1649262 bytes Exceed: 59601096 bytes

Class-mapclass-default (match-any) 0 packets Match: any 0 packets
Class-mapclass-default (match-any) 5 packets Match: any 5 packets

Enabling Per-Port Per-VLAN QoS

The per-port per-VLAN QoS feature allows you to specify different QoS configurations on different VLANs on a given interface. Typically, you use this feature on trunk or voice VLANs (Cisco IP phone) ports, because they belong to multiple VLANs.

To configure per-port per-VLAN QoS, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/interface | Port-channel number

Selects the interface to configure.

Step 2 Switch(config-if)# vlan-range vlan_range Specifies the VLANs involved.

Step 3 Switch(config-if-vlan-range)# service-policy {input | output} policy-map

Specifies the policy map and direction.

Step 4 Switch(config-if-vlan-range)# exit Exits class-map configuration mode.

Step 5 Switch(config-if)# end Exits configuration interface mode.

Step 6 Switch# show policy-map interface interface_name Verifies the configuration.

Example 1

Figure 37-5 displays a sample topology for configuring PVQoS. The trunk port gi3/1 is comprised of multiple VLANs (101 and 102). Within a port, you can create your own service policy per-VLAN. This policy, performed in hardware, might consist of ingress and egress policing, trusting DSCP, or giving precedence to voice packet over data.

Page 794 of the Cisco Systems 4500 user manual — Example 2
Page 794 · click to enlarge
Page 794

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Figure 37-5 Per-Port Per-VLAN Topology

Port gi3/1 L2 trunk

VLAN

VLAN

VLAN 102

VLAN

DSCP

DSCP

DSCP

DSCP

VLAN

VLAN

DSCP

DSCP

Service Policy/VLAN Within a port

The following configuration file shows how to perform ingress and egress policing per-VLAN using the policy map P31_QoS applied to port Gigabit Ethernet 3/1:

ip access-list 101 permit ip host 1.2.2.2 any ip access-list 103 permit ip any any

Class-map match-all RT match ip access-group 101

Class-map Match all PD match ip access-group 103

Policy-map P31_QoS Class RT Police 200m 16k conform transmit exceed drop Class PD Police 100m 16k conform transmit exceed drop

Interface Gigabit 3/1 Switchport

Switchport trunk encapsulation dot1q Switchport trunk allowed vlan 101-102

Service-policy input P31_QoS Service-policy output P31_QoS Vlan range 102

Service-policy input P32_QoS Service-policy output P32_QoS

Example 2

Assume that interface Gigabit Ethernet 6/1 is a trunk port and belongs to VLANs 20, 300-301, and 400. The following example shows how to apply policy map p1 for traffic in VLANs 20 and 400 and policy map p2 to traffic in VLANs 300 through 301:

Show 9 more labels / short text on this page
L2 trunk · Police1 · Police1 · Dscp · Dscp · Port gi3/2 · CoS · CoS · Vlan range 101
Page 795 of the Cisco Systems 4500 user manual — Example 4
Page 795 · click to enlarge
Page 795

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Switch# configure terminal Switch(config)# interface gigabitethernet 6/1 Switch(config-if)# vlan-range 20,400 Switch(config-if-vlan-range)# service-policy input p1 Switch(config-if-vlan-range)# exit Switch(config-if)# vlan-range 300-301 Switch(config-if-vlan-range)# service-policy output p2 Switch(config-if-vlan-range)# end Switch#

Example 3

The following command shows how to display policy map statistics on VLAN 20 configured on Gigabit Ethernet interface 6/1:

Switch# show policy-map interface gigabitethernet 6/1 vlan 20 GigabitEthernet6/1 vlan 20

Service-policy inputp1

Class-map: class-default (match-any) 0 packets Match: any 0 packets police: Per-interface Conform: 0 bytes Exceed: 0 bytes

Example 4

The following command shows how to display policy map statistics on all VLANs configured on Gigabit Ethernet interface 6/1:

Switch# show policy-map interface gigabitethernet 6/1 GigabitEthernet6/1 vlan 20

Service-policy inputp1

Class-map: class-default (match-any) 0 packets Match: any 0 packets police: Per-interface Conform: 0 bytes Exceed: 0 bytes

Service-policy outputp2

Class-map: class-default (match-any) 0 packets Match: any 0 packets police: Per-interface Conform: 0 bytes Exceed: 0 bytes

Service-policy outputp2
Class-mapclass-default (match-any) 0 packets Match: any 0 packets

GigabitEthernet6/1 vlan 300 · GigabitEthernet6/1 vlan 301

Page 796 of the Cisco Systems 4500 user manual — Configuring VLAN-Based QoS on Layer 2 Interfaces
Page 796 · click to enlarge
Page 796

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

policePer-interface Conform: 0 bytes Exceed: 0 bytes
Service-policy inputp1

Class-map: class-default (match-any) 0 packets Match: any 0 packets police: Per-interface Conform: 0 bytes Exceed: 0 bytes

Enabling or Disabling QoS on an Interface

The qos interface command reenables any previously configured QoS features. The qos interface command does not affect the interface queueing configuration.

To enable or disable QoS features for traffic from an interface, perform this task:

Step 1 Switch(config)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects the interface to configure.

Step 2 Switch(config-if)# [no] qos Enables QoS on the interface.

Use the no keyword to disable QoS on an interface.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show qos interface Verifies the configuration.

This example shows how to disable QoS on interface VLAN 5:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface vlan 5 Switch(config-if)# no qos Switch(config-if)# end Switch#

This example shows how to verify the configuration:

Switch# show qos | begin QoS is disabled QoS is disabled on the following interfaces: Vl5 Switch#

Configuring VLAN-Based QoS on Layer 2 Interfaces

By default, QoS uses policy maps attached to physical interfaces. For Layer 2 interfaces, you can configure QoS to use policy maps attached to a VLAN. For more information, see the “Attaching a Policy Map to an Interface” section on page 37-35.

To configure VLAN-based QoS on a Layer 2 interface, perform this task:

GigabitEthernet6/1 vlan 400

Page 797 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 797 · click to enlarge
Page 797

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/interface | Port-channel number

Selects the interface to configure.

Step 2 Switch(config-if)# [no] qos vlan-based Configures VLAN-based QoS on a Layer 2 interface.

Use the no keyword to disable VLAN-based QoS on an interface.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show qos Verifies the configuration.

Note If no input QoS policy is attached to a Layer 2 interface, then the input QoS policy attached to the VLAN (on which the packet is received), if any, is used even if the port is not configured as VLAN-based. If you do not want this default, attach a placeholder input QoS policy to the Layer 2 interface. Similarly, if no output QoS policy is attached to a Layer 2 interface, then the output QoS policy attached to the VLAN (on which the packet is transmitted), if any, is used even if the port is not configured as VLAN-based. If you do not want this default, attach a placeholder output QoS policy to the Layer 2 interface.

This example shows how to configure VLAN-based QoS on Fast Ethernet interface 5/42:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/42 Switch(config-if)# qos vlan-based Switch(config-if)# end

This example shows how to verify the configuration:

Switch# show qos | begin QoS is vlan-based QoS is vlan-based on the following interfaces: Fa5/42 Switch#

Page 798 of the Cisco Systems 4500 user manual — Configuring the Trust State of Interfaces
Page 798 · click to enlarge
Page 798

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Configuring the Trust State of Interfaces

This command configures the trust state of interfaces. By default, all interfaces are untrusted.

To configure the trust state of an interface, perform this task:

Step 1 Switch(config)# interface {vlan vlan_ID | {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects the interface to configure.

Step 2 Switch(config-if)# [no] qos trust [dscp | cos] Configures the trust state of an interface.

Use the no keyword to clear a configured value and return to the default.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show qos Verifies the configuration.

When configuring the trust state of an interface, note the following:

  • You can use the no qos trust command to set the interface state to untrusted.
  • For traffic received on an ingress interface configured to trust CoS using the qos trust cos command, the transmit CoS is always the incoming packet CoS (or the ingress interface default CoS if the packet is received untagged).
  • When the interface trust state is not configured to trust dscp using the qos trust dscp command, the security and QoS ACL classification always use the interface DSCP and not the incoming packet DSCP.
  • Starting with Cisco IOS Release 12.2(31)SG, the Supervisor Engine V-10GE allows you to classify a packet based on the packet’s IP DSCP value irrespective of the port trust state. Packet transmit queuing is not impacted by this behavior. For information on transmit queues, refer to the “Configuring Transmit Queues” section on page 37-50 .”

This example shows how to configure Gigabit Ethernet interface 1/1 with the trust cos keywords:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# qos trust cos Switch(config-if)# end Switch#

This example shows how to verify the configuration:

Switch# show qos interface gigabitethernet 1/1 | include trust Trust state: trust COS Switch#

Page 799 of the Cisco Systems 4500 user manual — Configuring DSCP Values for an Interface
Page 799 · click to enlarge
Page 799

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Configuring the CoS Value for an Interface

QoS assigns the CoS value specified with this command to untagged frames from ingress interfaces configured as trusted and to all frames from ingress interfaces configured as untrusted.

To configure the CoS value for an ingress interface, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/interface | Port-channel number}

Selects the interface to configure.

Step 2 Switch(config-if)# [no] qos cos default_cos Configures the ingress interface CoS value.

Use the no keyword to clear a configured value and return to the default.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show qos interface {fastethernet | gigabitethernet} slot/interface

Verifies the configuration.

This example shows how to configure the CoS 5 as the default on Fast Ethernet interface 5/24:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/24 Switch(config-if)# qos cos 5 Switch(config-if)# end Switch#

This example shows how to verify the configuration:

Switch# show qos interface fastethernet 5/24 | include Default COS Default COS is 5 Switch#

Configuring DSCP Values for an Interface

QoS assigns the DSCP value specified with this command to non-IPv4 frames received on interfaces configured to trust DSCP and to all frames received on interfaces configured as untrusted.

To configure the DSCP value for an ingress interface, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/interface | Port-channel number

Selects the interface to configure.

Step 2 Switch(config-if)# [no] qos dscp default_dscp Configures the ingress interface DSCP value.

Use the no keyword to clear a configured value and return to the default.

Step 3 Switch(config-if)# end Exits configuration mode.

Step 4 Switch# show qos interface {fastethernet | gigabitethernet} slot/interface

Verifies the configuration.

Page 800 of the Cisco Systems 4500 user manual — Configuring Transmit Queues
Page 800 · click to enlarge
Page 800

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

This example shows how to configure the DSCP 5 as the default on Fast Ethernet interface 5/24:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/24 Switch(config-if)# qos dscp 5 Switch(config-if)# end Switch#

This example shows how to verify the configuration:

Switch# show qos interface fastethernet 6/1 QoS is enabled globally Port QoS is enabled Port Trust State:CoS Default DSCP:0 Default CoS:0

Tx-Queue Bandwidth ShapeRate Priority QueueSize (bps) (bps) (packets) 1 31250000 disabled N/A 240 2 31250000 disabled N/A 240 3 31250000 disabled normal 240 4 31250000 disabled N/A 240 Switch#

Configuring Transmit Queues

The following sections describe how to configure transmit queues:

  • Mapping DSCP Values to Specific Transmit Queues, page 37-51
  • Allocating Bandwidth Among Transmit Queues, page 37-51
  • Configuring Traffic Shaping of Transmit Queues, page 37-52
  • Configuring a High Priority Transmit Queue, page 37-53

Depending on the complexity of your network and your QoS solution, you might need to perform all of the procedures in the following sections. However, you will first need to answer the following questions:

  • Which packets are assigned (by DSCP value) to each queue?
  • What is the size of a transmit queue relative to other queues for a given port?
  • How much of the available bandwidth is allotted to each queue?
  • What is the maximum rate and burst of traffic that can be transmitted out of each transmit queue?

Independent of the QoS state of an interface, a switch ensures that all the transmit queues are enabled. Because the DSCP values are trusted by default, a switch uses the appropriate transmit queues based on the DSCP to map them. This queue selection is based on the internal DSCP to transmit queue mapping table.

Page 801 of the Cisco Systems 4500 user manual — Allocating Bandwidth Among Transmit Queues
Page 801 · click to enlarge
Page 801

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Mapping DSCP Values to Specific Transmit Queues

To map the DSCP values to a transmit queue, perform this task:

Step 1 Switch(config)# [no] qos map dscp dscp-values to tx-queue queue-id

Maps the DSCP values to the transit queue. dscp-values can contain up eight DSCP values. queue-id-value can range from 1 to 4.

Use the no qos map dscp to tx-queue command to clear the DSCP values from the transit queue.

Step 2 Switch(config)# end Exits configuration mode.

Step 3 Switch# show qos maps dscp tx-queues Verifies the configuration.

This example shows how to map DSCP values to transit queue 2.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# qos map dscp 50 to tx-queue 2 Switch(config)# end Switch#

This example shows how to verify the configuration.

Switch# show qos maps dscp tx-queue DSCP-TxQueue Mapping Table (dscp = d1d2) d1 :d2 0 1 2 3 4 5 6 7 8 9 0 : 02 02 02 01 1 : 01 02 2 : 02 3 : 02 02 03 4 : 03 04 04 5 : 04 6 : 04 Switch#

Allocating Bandwidth Among Transmit Queues

To configure the transmit queue bandwidth, perform this task:

Step 1 Switch(config)# interface gigabitethernet slot/interface

Selects the interface to configure.

Step 2 Switch(config-if)# tx-queue queue_id Selects the transmit queue to configure.

Step 3 Switch(config-if-tx-queue)# [no] [bandwidth rate | percent percent]

Sets the bandwidth rate for the transmit queue.

Use the no keyword to reset the transmit queue bandwidth ratios to the default values.

Step 4 Switch(config-if-tx-queue)# end Exits configuration mode.

Step 5 Switch# show qos interface Verifies the configuration.

The bandwidth rate varies with the interface.

Page 802 of the Cisco Systems 4500 user manual — Configuring Traffic Shaping of Transmit Queues
Page 802 · click to enlarge
Page 802

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

For systems using Supervisor Engine II-Plus, Supervisor Engine II-Plus TS, Supervisor Engine III, and Supervisor Engine IV, bandwidth can be configured on these ports only:

  • Uplink ports on supervisor engines
  • Ports on the WS-X4306-GB GBIC module
  • Ports on the WS-X4506-GB-T CSFP module
  • The two 1000BASE-X ports on the WS-X4232-GB-RJ module
  • The first two ports on the WS-X4418-GB module
  • The two 1000BASE-X ports on the WS-X4412-2GB-TX module

For systems using Supervisor Engine V, bandwidth can be configured on all ports (10/100 Fast Ethernet, 10/100/1000BASE-T, and 1000BASE-X).

This example shows how to configure the bandwidth of one MBps on transmit queue 2:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if)# tx-queue 2 Switch(config-if-tx-queue)# bandwidth 1000000 Switch(config-if-tx-queue)# end Switch#

Configuring Traffic Shaping of Transmit Queues

To guarantee that packets transmitted from a transmit queue do not exceed a specified maximum rate, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/interface

Selects the interface to configure.

Step 2 Switch(config-if)# tx-queue queue_id Selects the transmit queue to configure.

Step 3 Switch(config-if-tx-queue)# [no] [shape rate | percent percent]

Sets the transmit rate for the transmit queue.

Use the no keyword to clear the transmit queue maximum rate.

Step 4 Switch(config-if-tx-queue)# end Exits configuration mode.

Step 5 Switch# show qos interface Verifies the configuration.

This example shows how to configure the shape rate to one MBps on transmit queue 2:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if-tx-queue)# tx-queue 2 Switch(config-if-tx-queue)# shape 1000000 Switch(config-if-tx-queue)# end Switch#

Page 803 of the Cisco Systems 4500 user manual — Configuring the CoS-to-DSCP Map
Page 803 · click to enlarge
Page 803

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Configuring a High Priority Transmit Queue

To configure transmit queue 3 at a higher priority, perform this task:

Step 1 Switch(config)# interface {fastethernet | gigabitethernet} slot/interface

Selects the interface to configure.

Step 2 Switch(config-if)# tx-queue 3 Selects transmit queue 3 to configure.

Step 3 Switch(config-if)# [no] priority high Sets the transmit queue to high priority.

Use the no keyword to clear the transmit queue priority.

Step 4 Switch(config-if)# end Exits configuration mode.

Step 5 Switch# show qos interface Verifies the configuration.

This example shows how to configure transmit queue 3 to high priority:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet 1/1 Switch(config-if-tx-queue)# tx-queue 3 Switch(config-if-tx-queue)# priority high Switch(config-if)# end Switch#

Configuring DSCP Maps

The following sections describes how to configure the DSCP maps. It contains this configuration information:

  • Configuring the CoS-to-DSCP Map, page 37-53
  • Configuring the Policed-DSCP Map, page 37-54
  • Configuring the DSCP-to-CoS Map, page 37-55

All the maps are globally defined and are applied to all ports.

Configuring the CoS-to-DSCP Map

You use the CoS-to-DSCP map to map CoS values in incoming packets to a DSCP value that QoS uses internally to represent the priority of the traffic.

Table 37-3 shows the default CoS-to-DSCP map.

Table 37-3 Default CoS-to-DSCP Map

CoS value 0 1 2 3 4 5 6 7

DSCP value 0 8 16 24 32 40 48 56

If these values are not appropriate for your network, you need to modify them.

Page 804 of the Cisco Systems 4500 user manual — Configuring the Policed-DSCP Map
Page 804 · click to enlarge
Page 804

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

To modify the CoS-to-DSCP map, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# qos map cos cos1 ... cos8 to dscp dscp

Modifies the CoS-to-DSCP map.

For cos1...cos8, you can enter up to eight CoS; valid values range from 0 to 7. Separate each CoS value with a space.

The dscp range is 0 to 63.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show qos maps cos-dscp Verifies your entries.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to configure the ingress CoS-to-DSCP mapping for CoS 0:

Switch# configure terminal Switch(config)# qos map cos 0 to dscp 20 Switch(config)# end Switch# show qos maps cos dscp

CoS-DSCP Mapping Table: CoS: 0 1 2 3 4 5 6 7 DSCP: 20 8 16 24 32 40 48 56 Switch(config)#

This example shows how to clear the entire CoS-to-DSCP mapping table:

Switch(config)# no qos map cos to dscp Switch(config)#

Configuring the Policed-DSCP Map

You use the policed-DSCP map to mark down a DSCP value to a new value as the result of a policing and marking action.

The default policed-DSCP map is a null map, which maps an incoming DSCP value to the same DSCP value.

To modify the CoS-to-DSCP map, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# qos map dscp policed dscp-list to dscp mark-down-dscp

Modifies the policed-DSCP map.

  • For dscp-list , enter up to eight DSCP values separated by spaces. Next, enter the to keyword.
  • For mark-down-dscp , enter the corresponding policed (marked down) DSCP value.
Page 805 of the Cisco Systems 4500 user manual — Configuring the DSCP-to-CoS Map
Page 805 · click to enlarge
Page 805

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show qos maps dscp policed Verifies your entries.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To return to the default map, use the no qos dscp policed global configuration command.

This example shows how to map DSCP 50 to 57 to a marked-down DSCP value of 0:

Switch# configure terminal Switch(config)# qos map dscp policed 50 51 52 53 54 55 56 57 to dscp 0 Switch(config)# end Switch# show qos maps dscp policed Policed-dscp map: d1 : d2 0 1 2 3 4 5 6 7 8 9 0 : 00 01 02 03 04 05 06 07 08 09 1 : 10 11 12 13 14 15 16 17 18 19 2 : 20 21 22 23 24 25 26 27 28 29 3 : 30 31 32 33 34 35 36 37 38 39 4 : 40 41 42 43 44 45 46 47 48 49 5 : 00 58 59 6 : 60 61 62 63

Note In the previous policed-DSCP map, the marked-down DSCP values are shown in the body of the matrix. The d1 column specifies the most-significant digit of the original DSCP; the d2 row specifies the least-significant digit of the original DSCP. The intersection of the d1 and d2 values provides the marked-down value. For example, an original DSCP value of 53 corresponds to a marked-down DSCP value of 0.

Configuring the DSCP-to-CoS Map

You use the DSCP-to-CoS map to generate a CoS value.

Table 37-4 shows the default DSCP-to-CoS map.

Table 37-4 Default DSCP-to-CoS Map

DSCP value 0–7 8–15 16–23 24–31 32–39 40–47 48–55 56–63

CoS value 0 1 2 3 4 5 6 7

If the values above are not appropriate for your network, you need to modify them.

Page 806 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 806 · click to enlarge
Page 806

Chapter 37 Configuring Quality of Service Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

To modify the DSCP-to-CoS map, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] qos map dscp dscp-list to cos cos

Modifies the DSCP-to-CoS map.

  • For dscp-list , enter up to eight DSCP values separated by spaces. Next, enter the to keyword.
  • For cos , enter only one CoS value to which the DSCP values correspond.

The DSCP range is 0 to 63; the CoS range is 0 to 7.

To return to the default map, use the no qos dscp to cos global configuration command.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show qos maps dscp to cos Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to map DSCP values 0, 8, 16, 24, 32, 40, 48, and 50 to CoS value 0 and to display the map:

Switch# configure terminal Switch(config)# qos map dscp 0 8 16 24 32 40 48 50 to cos 0 Switch(config)# end Switch# show qos maps dscp cos Dscp-cos map: d1 : d2 0 1 2 3 4 5 6 7 8 9 0 : 00 01 1 : 01 00 02 02 02 2 : 02 00 03 3 : 03 03 00 04 4 : 00 05 00 06 5 : 00 06 07 6 : 07

Note In the previous DSCP-to-CoS map, the CoS values are shown in the body of the matrix. The d1 column specifies the most-significant digit of the DSCP; the d2 row specifies the least-significant digit of the DSCP. The intersection of the d1 and d2 values provides the CoS value. For example, in the DSCP-to-CoS map, a DSCP value of 08 corresponds to a CoS value of 0.

Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

You can use the auto-QoS feature to simplify the deployment of existing QoS features. Auto-QoS makes assumptions about the network design, and as a result, the switch can prioritize different traffic flows and appropriately use the egress queues instead of using the default QoS behavior. (The default is that QoS is disabled. The switch then offers best-effort service to each packet, regardless of the packet content or size, and sends it from a single queue.)

Page 807 of the Cisco Systems 4500 user manual — Generated Auto-QoS Configuration
Page 807 · click to enlarge
Page 807

Chapter 37 Configuring Quality of Service

Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

When you enable auto-QoS, it automatically classifies traffic based on ingress packet label. The switch uses the resulting classification to choose the appropriate egress queue.

You use auto-QoS commands to identify ports connected to Cisco IP phones and to identify ports that receive trusted voice over IP (VoIP) traffic through an uplink. Auto-QoS then performs these functions:

  • Detects the presence or absence of a Cisco IP phones
  • Configures QoS classification
  • Configures egress queues

These sections describe how to configure auto-QoS on your switch:

  • Generated Auto-QoS Configuration, page 37-57
  • Effects of Auto-QoS on the Configuration, page 37-58
  • Configuration Guidelines, page 37-58
  • Enabling Auto-QoS for VoIP, page 37-59

Generated Auto-QoS Configuration

By default, auto-QoS is disabled on all interfaces.

When you enable the auto-QoS feature on the first interface, these automatic actions occur:

  • QoS is globally enabled ( qos global configuration command).
  • DBL is enabled globally ( qos dbl global configuration command)
  • When you enter the auto qos voip trust interface configuration command, the ingress classification on the specified interface is set to trust the CoS label received in the packet if the specified interface is configured as Layer 2 (and is set to trust DSCP if the interface is configured as Layer 3). See Table 37-5 .
  • When you enter the auto qos voip cisco-phone interface configuration command, the trusted boundary feature is enabled. It uses the Cisco Discovery Protocol (CDP) to detect the presence or absence of a Cisco IP phone. When a Cisco IP phone is detected, the ingress classification on the interface is set to trust the CoS label received in the packet, if the interface is configured as Layer 2. (The classification is set to trust DSCP if the interface is configured as Layer 3.) When a Cisco IP phone is absent, the ingress classification is set to not trust the CoS label in the packet.

For information about the trusted boundary feature, see the “Configuring a Trusted Boundary to Ensure Port Security” section on page 37-21.

When you enable auto-QoS by using the auto qos voip cisco-phone or the auto qos voip trust interface configuration commands, the switch automatically generates a QoS configuration based on the traffic type and ingress packet label and applies the commands listed in Table 37-5 to the interface.

Page 808 of the Cisco Systems 4500 user manual — Configuration Guidelines
Page 808 · click to enlarge
Page 808

Chapter 37 Configuring Quality of Service Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Table 37-5 Generated Auto-QoS Configuration

Description Automatically Generated Command

The switch automatically enables standard QoS and DBL configures the CoS-to-DSCP map (maps CoS values in incoming packets to a DSCP value).

Switch(config)# qos Switch(config)# qos map cos 3 to 24 Switch(config)# qos dbl Switch(config)# qos map cos 5 to 46

Switch(config)# qos map dscp 24 25 26 27 b28 29 30 31 to tx-queue 4 Switch(config)# qos map dscp 32 33 34 35 36 37 38 39 to tx-queue 4

The switch automatically configures the DSCP-to-Tx-queue mapping.

The switch automatically sets the ingress classification on the interface to trust the CoS/DSCP value received in the packet.

Switch(config-if)# qos trust cos or Switch(config-if)# qos trust dscp

The switch automatically creates a QoS service policy, enables DBL on the policy, and attaches it to the interface.

Switch(config)# policy-map autoqos-voip-policy Switch(config-pmap)# class class-default Switch(config-pmap-c)# dbl

If you entered the auto qos voip cisco-phone command, the switch automatically enables the trusted boundary feature, which uses the CDP to detect the presence or absence of a Cisco IP phone.

Switch(config-if)# qos trust device cisco-phone

The switch assigns a higher priority for queue 3. Limit for shaping on queue 3 is selected so that it is 33 percent of the link speed. Configure shaping as 33 percent on those ports where sharing is supported.

Switch(config-if)# tx-queue 3 Switch(config-if-tx-queue)# priority high Switch(config-if-tx-queue)# shape percent 33 Switch(config-if-tx-queue)# bandwidth percent 33

This procedure ensures that the higher-priority queue does not starve other queues.

Effects of Auto-QoS on the Configuration

When auto-QoS is enabled, the auto qos voip interface configuration command and the generated configuration are added to the running configuration.

Configuration Guidelines

Before configuring auto-QoS, you should be aware of this information:

  • In this release, auto-QoS configures the switch only for VoIP with Cisco IP phones.
  • To take advantage of the auto-QoS defaults, do not configure any standard-QoS commands before entering the auto-QoS commands. If necessary, you can fine-tune the QoS configuration, but we recommend that you do so only after the auto-QoS configuration is completed.
  • You can enable auto-QoS on static, dynamic-access, voice VLAN access, and trunk ports.
  • By default, the CDP is enabled on all interfaces. For auto-QoS to function properly, do not disable the CDP.
  • To enable auto qos voip trust on Layer 3 interfaces, change the port to Layer 3, then apply auto-QoS to make it trust DSCP.
Page 809 of the Cisco Systems 4500 user manual — Enabling Auto-QoS for VoIP
Page 809 · click to enlarge
Page 809

Chapter 37 Configuring Quality of Service

Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Enabling Auto-QoS for VoIP

To enable auto-QoS for VoIP within a QoS domain, perform this task:

Step 1 Switch# debug auto qos (Optional) Enables debugging for auto-QoS. When debugging is enabled, the switch displays the QoS commands that are automatically generated and applied when auto-QoS is enabled or disabled.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# interface interface-id Enters interface configuration mode, and specify the interface that is connected to a Cisco IP phone or the uplink interface that is connected to another switch or router in the interior of the network.

Step 4 Switch(config-if)# auto qos voip {cisco-phone | trust}

Enables auto-QoS.

The keywords have these meanings:

  • cisco-phone —If the interface is connected to a Cisco IP phone, the CoS labels of incoming packets are trusted only when the telephone is detected.
  • trust —The uplink interface is connected to a trusted switch or router, and the VoIP traffic classification in the ingress packet is trusted.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show auto qos interface interface-id

Verifies your entries.

This command displays the auto-QoS configuration that was initially applied; it does not display any user changes to the configuration that might be in effect.

To disable auto-QoS on an interface, use the no auto qos voip interface configuration command. When you enter this command, the switch changes the auto-QoS settings to the standard-QoS default settings for that interface. It does not change any global configuration performed by auto-QoS. Global configuration remains the same.

This example shows how to enable auto-QoS and to trust the CoS labels in incoming packets when the device connected to Fast Ethernet interface 1/1 is detected as a Cisco IP phone:

Switch(config)# interface fastethernet1/1 Switch(config-if)# auto qos voip cisco-phone

This example shows how to enable auto-QoS and to trust the CoS/DSCP labels in incoming packets when the switch or router connected to Gigabit Ethernet interface 1/1 is a trusted device:

Switch(config)# interface gigabitethernet1/1 Switch(config-if)# auto qos voip trust

Page 810 of the Cisco Systems 4500 user manual — Auto-QoS Configuration Example
Page 810 · click to enlarge
Page 810

Chapter 37 Configuring Quality of Service Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

This example shows how to display the QoS commands that are automatically generated when auto-QoS is enabled:

Switch# debug auto qos AutoQoS debugging is on Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet1/1 Switch(config-if)# auto qos voip cisco-phone

Displaying Auto-QoS Information

To display the initial auto-QoS configuration, use the show auto qos [interface [interface-id]] privileged EXEC command. To display any user changes to that configuration, use the show running-config privileged EXEC command. You can compare the show auto qos and the show running-config command output to identify the user-defined QoS settings.

To display information about the QoS configuration that might be affected by auto-QoS, use one of these commands:

  • show qos
  • show qos map
  • show qos interface [ interface-id ]

For more information about these commands, refer to the command reference for this release.

Auto-QoS Configuration Example

This section describes how you could implement auto-QoS in a network, as shown in Figure 37-6.

Page 811 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 811 · click to enlarge
Page 811

Chapter 37 Configuring Quality of Service

Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

Cisco Systems 4500 — Configuring Quality of Service diagram (page 811)
Fig. 6 · Configuring Quality of Service

Catalyst 4500 switch at the edge of the QoS domain

The intelligent wiring closets in Figure 37-6 are composed of Catalyst 4500 switches. The object of this example is to prioritize the VoIP traffic over all other traffic. To do so, enable auto-QoS on the switches at the edge of the QoS domains in the wiring closets.

Page 812 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 812 · click to enlarge
Page 812

Chapter 37 Configuring Quality of Service Configuring Auto-QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE

To configure the switch at the edge of the QoS domain to prioritize the VoIP traffic over all other traffic, perform this task:

Step 1 Switch# debug auto qos Enables debugging for auto-QoS. When debugging is enabled, the switch displays the QoS configuration that is automatically generated when auto-QoS is enabled.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# cdp enable Enables CDP globally. By default, CDP is enabled.

Step 4 Switch(config)# interface fastethernet2/3

Enters interface configuration mode.

Step 5 Switch(config-if)# auto qos voip cisco-phone

Enables auto-QoS on the interface, and specifies that the interface is connected to a Cisco IP phone.

The CoS labels of incoming packets are trusted only when the Cisco IP phone is detected.

Step 6 Switch(config)# interface fastethernet2/5

Enters interface configuration mode.

Step 7 Switch(config)# auto qos voip cisco-phone

Enables auto-QoS on the interface, and specifies that the interface is connected to a Cisco IP phone.

Step 8 Switch(config)# interface fastethernet2/7

Enters interface configuration mode.

Step 9 Switch(config)# auto qos voip cisco-phone

Enables auto-QoS on the interface, and specifies that the interface is connected to a Cisco IP phone.

Step 10 Switch(config)# interface gigabit1/1

Enters interface configuration mode.

Step 11 Switch(config)# auto qos voip trust

Enables auto-QoS on the interface, and specifies that the interface is connected to a trusted router or switch.

Step 12 Switch(config)# end Returns to privileged EXEC mode.

Step 13 Switch# show auto qos Verifies your entries.

This command displays the auto-QoS configuration that is initially applied; it does not display any user changes to the configuration that might be in effect.

For information about the QoS configuration that might be affected by auto-QoS, see the “Displaying Auto-QoS Information” section on page 37-60.

Step 14 Switch# show auto qos interface interface-id

Verifies your entries.

This command displays the auto-QoS configuration that was initially applied; it does not display any user changes to the configuration that might be in effect.

Step 15 Switch# copy running-config startup-config

Saves the auto qos voip interface configuration commands and the generated auto-QoS configuration in the configuration file.

Page 813 of the Cisco Systems 4500 user manual — MQC-Based QoS Configuration
Page 813 · click to enlarge
Page 813

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

This section includes these topics:

  • MQC-Based QoS Configuration, page 37-63
  • MQC-Based QoS on the Supervisor Engine 6-E and 6L-E, page 37-64
  • Platform-Supported Classification Criteria and QoS Features, page 37-65
  • Platform Hardware Capabilities, page 37-66
  • Prerequisites for Applying a QoS Service Policy, page 37-66
  • Restrictions for Applying a QoS Service Policy, page 37-66
  • Classification, page 37-66
  • Policing, page 37-67
  • Marking Network Traffic, page 37-69
  • Shaping, Sharing (Bandwidth), Priority Queuing, Queue-Limiting and DBL, page 37-75
  • Configuring CoS Mutation, page 37-88
  • Configuring System Queue Limit, page 37-89

MQC-Based QoS Configuration

Starting with Cisco IOS Release 12.2(40)SG, Catalyst 4900M, Catalyst 4948E, or Catalyst 4500 series switch with Supervisor Engine 6-E or Supervisor Engine 6L-E uses the MQC model of QoS. To apply QoS, you use the modular QoS command-line interface (MQC), which is a CLI structure that allows you to complete the following tasks:

  • Specify the matching criteria used to define a traffic class.
  • Create a traffic policy (policy map). The traffic policy defines the QoS policy actions to be taken for each traffic class.
  • Apply the policy actions specified in the policy map to an interface, VLAN, or port and VLAN.

For more information about the MQC, see the “Modular Quality of Service Command-Line Interface” section of the Cisco IOS Quality of Service Solutions Configuration Guide, Release 12.3.

Page 814 of the Cisco Systems 4500 user manual — O u tp u t
Page 814 · click to enlarge
Page 814

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

by default. Only when the trusted boundary feature is enabled on an interface can the port enter untrusted mode. In this mode, the switch marks the DSCP value of an IP packet and the CoS value of the VLAN tag on the Ethernet frame as 0.

MQC-Based QoS on the Supervisor Engine 6-E and 6L-E

The operation of Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E follow the QoS deployment outlined in RFCs 2597, 2598, 2474, and 2475. A high-level QoS flow is as follows:

1. The incoming packet is classified (based on different packet fields, receive port and/or VLAN) to belong to a traffic class.
2. Depending on the traffic class, the packet is rate-limited/policed and its priority is optionally marked (typically at the edge of the network) so that lower priority packets are dropped or marked with lower priority in the packet fields (DSCP and CoS).
3. After the packet has been marked, it is looked up for forwarding. This action obtains the transmit port and VLAN to transmit the packet.
4. The packet is classified in the output direction based on the transmit port and/or VLAN. The classification considerrs any marking of the packet by input QoS.
5. Depending on the output classification, the packet is policed, its priority is optionally (re-)marked, and the transmit queue for the packet is determined depending on the traffic class.
6. The transmit queue state is dynamically monitored by using the AQM (Active Queue Management) algorithm and drop threshold configuration to determine whether the packet should be dropped or enqueued for transmission.
7. If eligible for transmission, the packet is enqueued to a transmit queue. The transmit queue is selected based on output QoS classification criteria. The selected queue provides the desired behavior in terms of latency and bandwidth.

Figure 37-1 illustrates a high-level flow of QoS function on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E.

Figure 37-7 QoS Packet Processing

P a cket Reception Inp u t

Input QoS Classification

Input Policing and Marking

Port/Queue

Output Policing and Marking

O u tp u t

Output QoS Classification

Active Queue

Scheduling

Packet Transmission

Management

(Sharing/ Shaping)

203973

Forwarding · Lookup

Page 815 of the Cisco Systems 4500 user manual — Supported Qos Features Description
Page 815 · click to enlarge
Page 815

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Platform-Supported Classification Criteria and QoS Features

The following table provides a summary of various classification criteria and actions supported on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E. For details, refer to the Catalyst 4500 Series Switch Command Reference.

Supported Classification Actions Description

match access-group Configures the match criteria for a class map on the basis of the specified ACL.

match any Configures the match criteria for a class map to be successful match criteria for all packets.

match cos Matches a packet based on a Layer 2 class of service (CoS) marking.

match destination-address mac Uses the destination MAC address as a match criterion.

match source-address mac Uses the source MAC address as a match criterion.

match [ip] dscp Identifies a specific IP differentiated service code point (DSCP) value as a match criterion. Up to eight DSCP values can be included in one match statement.

match [ip] precedence Identifies IP precedence values as match criteria.

match protocol Configures the match criteria for a class map on the basis of the specified protocol.

match qos-group Identifies a specific QoS group value as a match criterion. Applies only on the egress direction.

Supported Qos Features Description

police Configures traffic policing.

police (percent) Configures traffic policing on the basis of a percentage of bandwidth available on an interface.

police (two rates) Configures traffic policing using two rates, the committed information rate (CIR) and the peak information rate (PIR).

set cos Sets the Layer 2 class of service (CoS) value of an outgoing packet.

set dscp Marks a packet by setting the differentiated services code point (DSCP) value in the type of service (ToS) byte of IPv4 or traffic class byte of IPv6 packet.

set precedence Sets the precedence value in the packet header.

set qos-group Sets a QoS group identifier (ID) that can be used later to classify packets.

table map support Unconditional marking of one packet field based on another packet field.

priority Gives priority to a class of traffic belonging to a policy map.

shape Shapes traffic to the indicated bit rate according to the algorithm specified.

bandwidth Provides a guaranteed minimum bandwidth to each of the eight queues.

dbl Dynamic buffer limit.

queue-limit Specifies the maximum number of packets a transmit queue can hold.

Page 816 of the Cisco Systems 4500 user manual — Classification
Page 816 · click to enlarge
Page 816

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Platform Hardware Capabilities

QoS Actions Numbers of Entries Supported

Classification 64 K input and 64 K output classification entries are supported.

A given policy can use at most 24 K ACLs.

Policing 16 K policers are supported. Policers are allocated to given direction in blocks of 2 K. For example, 2 K policers can be used in for input and 14 K policers can be used for output. single-rate policers uses one policer entry. Single Rate Three Color Marker (srTCM) (RFC 2697) and Two Rate Three Color Marker (trTCM) (RFC 2698) uses two policer entries.

Marking Marking of CoS and DSCP/Precedence is supported through two marking tables, each capable of supporting 512 entries. Separate tables exist for each direction.

Queuing The queue size is configurable with the maximum number of entries configurable per-port depending on the chassis and line card type.

DBL You can enable DBL action on all configured class maps.

Prerequisites for Applying a QoS Service Policy

Unlike the switch QoS model, there is no prerequisite for enabling QoS on various targets. Only attachment of a service policy enables QoS, and detachment of that policy disables QoS on that target.

Restrictions for Applying a QoS Service Policy

Traffic marking can be configured on an interface, a VLAN, or a port and VLAN. An interface can be a Layer 2 access port, a Layer 2 switch trunk, a Layer 3 routed port, or an EtherChannel. A policy is attached to a VLAN using the vlan configuration mode.

Attaching QoS service policy to VLANs and EtherChannel is described in the “Policy Associations” section on page 37-85.

Classification

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support classification of Layer 2, IP, IPv6 packets, and ARP packets. Packet marking performed on input can be matched in the output direction. The previous table lists the full set of capabilities. By default, Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E also support classification resources sharing.

By default, when the same policy is attached to a port or a VLAN or on per-port per-VLAN targets, ACL entries are shared on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E. Even though CAM entries are shared, QoS actions is unique on each target.

For example:

class-map c1 match ip any

Page 817 of the Cisco Systems 4500 user manual — Policing
Page 817 · click to enlarge
Page 817

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Policy Map p1 class ipp5 police rate 1 m burst 200000

If policy map p1 is applied to interfaces Gig 1/1 and Gig 1/2, one CAM entry is used (one ACE that matches IP packets), but two policers are allocated (one per target). All IP packets are policed to one MBps on interface Gig 1/1 and packets on interface Gig 1/2 are policed to one MBps.

Classification Statistics

They support TCAM resource sharing. When a policy map is applied on multiple targets, the command show policy-map interface displays the aggregate classification statistics, not those specific to an interface.

When a policy map is attached to a port-channel member ports, classification statistics are not displayed.

Policing

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support policers in the following operation modes:

  • Single Rate Policer Two Color Marker

This kind of policer is configured with committed rate (CIR) and normal burst, and is restricted to processing only conform and exceed actions.

  • Single Rate Three Color Marker (srTCM) (RFC 2697)
  • Two Rate Three Color Marker (trTCM) (RFC 2698)
  • Color Blind Mode

Policing accuracy of 0.75 percent of configured policer rate.

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support 16384 (16 x 1024, 16 K) single-rate, single burst policers. 16 K policers are organized as eight banks of two K policers. The policer banks are dynamically assigned (input or output policer bank) by the software depending on the QoS configuration. The 16 K policers are dynamically partitioned by software as follows:

Page 818 of the Cisco Systems 4500 user manual — Platform Restrictions
Page 818 · click to enlarge
Page 818

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

– 0 Input Policers and 16 K Output Policers

– 2 K Input Policers and 14 K Output Policers

– 4 K Input Policers and 12 K Output Policers

– 6 K Input Policers and 10 K Output Policers

– 8 K Input Policers and eight K Output Policers

– 10 K Input Policers and six K Output Policers

– 12 K Input Policers and four K Output Policers

– 14 K Input Policers and two K Output Policers

– 16 K Input Policers and zero Output Policers

These numbers represent individual policer entries in the hardware that support a single-rate and burst parameter. Based on this, Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support the following number of policers:

  • 16 K Single Rate Policer with Single Burst (Two Color Marker)
  • 8 K Single Rate Three Color Marker (srTCM)
  • 8 K Two Rate Three Color Marker (trTCM)

These policers are partitioned between input and output in chunks of 2 K policer banks. The different types of policers can all co-exist in the system. However, a specific type of policer (srTCM, trTCM) is configurable as a block of 128 policers.

Implementing Policing

For details on how to implement the policing features on a Catalyst 4500 series switch, refer to the Cisco IOS documentation at the following link:

http://www.cisco.com/en/US/docs/ios/12_2/qos/configuration/guide/qcfpolsh.html

Platform Restrictions

Platform restrictions include the following:

  • Multi-policer actions can be specified (setting CoS and IP DSCP is supported).
  • Simultaneous unconditional and policer-based marking is not supported.
  • If policer-based service-policy is attached to both a port and a VLAN, port-based policed is preferred by default. To override a specific VLAN policy on a given port, then you must configure a per-port per-VLAN policy.
  • When you delete a port channel with a per-port per-VLAN QoS policy, the switch crashes.

Before deleting the port channel, do the following:

– Remove any per-port per-VLAN QoS policies, if any.

– Remove the VLAN configuration on the port channel with the no vlan-range command.

Page 819 of the Cisco Systems 4500 user manual — Benefits of Marking Network Traffic
Page 819 · click to enlarge
Page 819

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Marking Network Traffic

Marking network traffic allows you to set or modify the attributes of traffic (that is, packets) belonging to a specific class or category. When used in conjunction with network traffic classification, marking network traffic is the foundation for enabling many quality of service (QoS) features on your network This module contains conceptual information and the configuration tasks for marking network traffic.

This section describes the following topics:

  • Information about Marking Network Traffic, page 37-69
  • Marking Action Drivers, page 37-71
  • Traffic Marking Procedure Flowchart, page 37-72
  • Restrictions for Marking Network Traffic, page 37-72
  • Multi-attribute Marking Support, page 37-73
  • Hardware Capabilities for Marking, page 37-73
  • Configuring the Policy-Map Marking Action, page 37-73
  • Marking Statistics, page 37-75

Information about Marking Network Traffic

To mark network traffic, you should understand the following concepts:

  • Purpose of Marking Network Traffic, page 37-69
  • Benefits of Marking Network Traffic, page 37-69
  • Methods for Marking Traffic Attributes, page 37-70

Purpose of Marking Network Traffic

Traffic marking is used to identify certain traffic types for unique handling, effectively partitioning network traffic into different categories.

After the network traffic is organized into classes by traffic classification, traffic marking allows you to mark (that is, set or change) a value (attribute) for the traffic belonging to a specific class. For instance, you may want to change the class of service (CoS) value from 2 to 1 in one class, or you may want to change the differentiated services code point (DSCP) value from 3 to 2 in another class. In this module, these values are referred to as attributes or marking fields.

Attributes that can be set and modified include the following:

  • CoS value of a tagged Ethernet frame
  • DSCP/Precedence value in the type of service (ToS) byte of IPv4
  • QoS group identifier (ID)
  • DSCP /Precedence value in the traffic class byte of IPv6

Benefits of Marking Network Traffic

Traffic marking allows you to fine-tune the attributes for traffic on your network. This increased granularity helps isolate traffic that requires special handling, which helps to achieve optimal application performance.

Page 820 of the Cisco Systems 4500 user manual — set Commands Traffic Attribute Packet Type
Page 820 · click to enlarge
Page 820

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Traffic marking allows you to determine how traffic will be treated, based on how the attributes for the network traffic are set. It allows you to segment network traffic into multiple priority levels or classes of service based on those attributes, as follows:

  • Traffic marking is often used to set the IP precedence or IP DSCP values for traffic entering a network. Networking devices within your network can then use the newly marked IP precedence values to determine how traffic should be treated. For example, voice traffic can be marked with a particular IP precedence or DSCP and strict priority can then be configured to put all packets of that marking into that queue. In this case, the marking was used to identify traffic for strict priority queue.
  • Traffic marking can be used to identify traffic for any class-based QoS feature (any feature available in policy-map class configuration mode, although some restrictions exist).
  • Traffic marking can be used to assign traffic to a QoS group within a switch. The switch can use the QoS groups to determine how to prioritize traffic for transmission. The QoS group value is usually used for one of the two following reasons:

– To leverage a large range of traffic classes. The QoS group value has 64 different individual markings, similar to DSCP.

– If changing the Precedence or DSCP value is undesirable.

Methods for Marking Traffic Attributes

Method One—Unconditional explicit marking (using the set command)

You specify the traffic attribute you want to change with a set command configured in a policy map. Table 37-6 lists the available set commands and the corresponding attribute. For details on the set command, refer to the Catalyst 4500 Series Switch Command Reference.

Table 37-6 set Commands and Applicable Packet Types

set Commands Traffic Attribute Packet Type

set cos Layer 2 CoS value of the outgoing traffic Ethernet IPv4, IPv6

set dscp DSCP value in the ToS byte IPv4, IPv6

set precedence precedence value in the packet header IPv4, IPv6

set qos-group QoS group ID Ethernet, IPv4, IPv6

If you are using individual set commands, those set commands are specified in a policy map. The following is a sample of a policy map configured with one of the set commands listed in Table 37-6.

In this sample configuration, the set cos command has been configured in the policy map (policy1) to mark the CoS attribute:

enable configure terminal policy map p1 class class1 set cos 3 end

Page 821 of the Cisco Systems 4500 user manual — Marking Action Drivers
Page 821 · click to enlarge
Page 821

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

For information on configuring a policy map, see the “Creating a Policy Map” section on page 37-31.

The final task is to attach the policy map to the interface. For information on attaching the policy map to the interface, see the “Attaching a Policy Map to an Interface” section on page 37-35.

Method Two—Unconditional table map-based marking

You can create a table map that can be used to mark traffic attributes. A table map is a type of two-way conversion chart that lists and maps one traffic attribute to another. A table map supports a many-to-one type of conversion and mapping scheme. The table map establishes a to-from relationship for the traffic attributes and defines the change to be made to the attribute. An attribute is set to one value that is taken from another value. The values are based on the specific attribute being changed. For instance, the Precedence attribute can be a number from 0 to 7, while the DSCP attribute can be a number from 0 to 63.

The following is a sample table map configuration:

table-map table-map1 map from 0 to 1 map from 2 to 3 exit

Table 37-7 lists the traffic attributes for which a to-from relationship can be established using the table map.

Table 37-7 Traffic Attributes for Which a To-From Relationship Can Be Established

The To Attribute The From Attribute

Precedence CoS, QoS group, DSCP, Precedence

DSCP CoS, QoS group, DSCP, Precedence

CoS DSCP, QoS group, CoS, Precedence

The following is an example of a policy map (policy2) configured to use the table map (table-map1) created earlier:

Policy map policy class class-default set cos dscp table table-map

In this example, a mapping relationship was created between the CoS attribute and the DSCP attribute as defined in the table map.

For information on configuring a policy map to use a table map, “Configuring a Policy Map” section on page 37-31.

The final task is to attach the policy map to the interface. For information on attaching the policy map to the interface, see the “Attaching a Policy Map to an Interface” section on page 37-35.

Marking Action Drivers

A marking action can be triggered based on one of the two QoS processing steps:

  • Classification-based—All the traffic matching a class is marked using either explicit or table map-based method. This method is referred to as unconditional marking.
  • Policer result-based—A class of traffic is marked differently based on the policer result (conform/exceed/violate) applicable to that packet. This method is referred to as conditional marking.

exit

Page 822 of the Cisco Systems 4500 user manual — Restrictions for Marking Network Traffic
Page 822 · click to enlarge
Page 822

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Traffic Marking Procedure Flowchart

Figure 37-8 illustrates the order of the procedures for configuring traffic marking.

Figure 37-8 Traffic-Marking Procedure Flowchart

Create a class map

Using a table map? No Yes

Create a table map

Create a policy map

Restrictions for Marking Network Traffic

The following restrictions apply to packet-marking actions:

  • QoS-group can be marked only in the input direction and can only support unconditional explicit marking.
  • Only explicit marking is supported for policer-based marking.
Show 7 more labels / short text on this page
Start · Create additional · No Yes · policy maps? · Attach policy map(s) · to interface · Finish
Page 823 of the Cisco Systems 4500 user manual — Prerequisites
Page 823 · click to enlarge
Page 823

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Multi-attribute Marking Support

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E can mark more than one QoS attribute of a packet matching a class of traffic. For example, DSCP, CoS, and QoS-group can all be set together, using either explicit or table map-based marking.

Hardware Capabilities for Marking

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E provide a 128 entry marking action table where each entry specifies the type of marking actions on CoS and DSCP/Precedence fields as well as policer action to transmit/markdown/drop a packet. One such table is supported for each direction, input and output. This table is used for both unconditional marking as well as policer-based marking. It can be used to support 128 unique marking actions or 32 unique policer-based actions or a combinations of the two.

For each of the marking fields (CoS and DSCP), Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E provide 512 entry marking tables for each direction. These are similar to mapping tables available on supervisor engines that support the switch QoS model. However, these provide an ability to have multiple unique mapping tables that are set up by the user.

For example, the ToS marking table provides marking of DSCP/Precedence fields and can be used as one of the following:

  • 8 different table maps with each mapping the 64 DSCP or qos-group values to another DSCP
  • 64 (32) different table maps with each one mapping eight CoS (16 CoS and CFi) values to DSCP in input (output) direction
  • A combination of above two types of table maps

Similar mappings are available on the 512 entry CoS marking table.

Configuring the Policy-Map Marking Action

This section describes how to establish unconditional marking action for network traffic.

Prerequisites

Perform the following:

  • Create a class map (ipp5 ) and a policy map. Refer to the “Configuring a QoS Policy” section on page 37-28.
  • Configure the marking action. Refer to the “Configuring Policy-Map Class Actions” section on page 37-31.
Page 824 of the Cisco Systems 4500 user manual — Configuring Policer Result-Based Conditional Marking
Page 824 · click to enlarge
Page 824

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Configuring Table Map-Based Unconditional Marking

To configure table map-based unconditional marking, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# table-map name Configures a table map.

Step 3 Switch(config-tablemap)# map from from_value to to_value

Creates a map from a from_value to a to_value

Step 4 Switch(config-tablemap)# exit Exits table-map configuration mode.

Step 5 Switch(config)# policy-map name Enters policy-map configuration mode.

Step 6 Switch(config-p)# class name Selects the class for QoS actions.

Step 7 Switch(config-p-c)# set cos | dscp | prec cos | dscp | prec | qos-group [table name]

Selects the marking action based on an implicit or explicit table map.

Step 8 Switch(config-p-c)# end Exits configuration mode.

Step 9 Switch# show policy-map name Verifies the configuration of the policy map.

Step 10 Switch# show table-map name Verifies the configuration of the table map.

The following example shows how to enable marking action using table map:

Switch(config)# table-map dscp2Cos Switch(config-tablemap)# map from 8 to 1 Switch(config-tablemap)# exit Switch(config)# policy-map p1 Switch(config-pmap)# class ipp5 Switch(config-pmap-c)# set cos dscp table dscp2Cos Switch(config-pmap-c)# end Switch# show policy-map p1

Policy Map p1 Class ipp5 set cos dscp table dscp2Qos

Switch# show table-map dscp2Cos

Table Map dscp2Cos from 8 to 1 default copy

Configuring Policer Result-Based Conditional Marking

To configure policer result-based conditional marking, set up a single-rate or dual-rate policer. Refer to the “Implementing Policing” section on page 37-68.

This example shows how to configure a two-rate three-color policer with explicit actions for each policer region:

Switch# configure terminal Switch(config-pmap-c)# policer cir percent 20 pir percent 30 Switch(config-pmap-c-policer)# conform-action set-cos-transmit 3 set-dscp-transmit 10 Switch(config-pmap-c-policer)# exceed-action set-cos-transmit 4 set-dscp-transmit 20 Switch(config-pmap-c-policer)# violate action drop Switch# show policy-map p1

Page 825 of the Cisco Systems 4500 user manual — Shaping, Sharing (Bandwidth), Priority Queuing, Queue-Limiting and DBL
Page 825 · click to enlarge
Page 825

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Policy Map police Class ipp5 police cir percent 20 pir percent 30 conform-action set-cos-transmit 3 conform-action set-dscp-transmit af11 exceed-action set-cos-transmit 4 exceed-action set-dscp-transmit af22 violate-action drop

Marking Statistics

The marking statistics indicate the number of packets that are marked.

For unconditional marking, the classification entry points to an entry in the marking action table that in turn indicates the fields in the packet that are marked. The classification statistics indicates the unconditional marking statistics.

For a conditional marking using policer, provided the policer is a packet rate policer, you cannot determine the number packets marked because the policer only provides byte statistics for different policing results.

Shaping, Sharing (Bandwidth), Priority Queuing, Queue-Limiting and DBL

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support the classification-based (class-based) mode for transmit queue selection. In this mode, the transmit queue selection is based on the output QoS classification lookup.

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E hardware support eight transmit queues per-port. Once the forwarding decision has been made to forward a packet out a port, the output QoS classification determines the transmit queue into which the packet needs to be enqueued.

By default, in Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E, without any service policies associated with a port, there are two queues (a control packet queue and a default queue) with no guarantee as to the bandwidth or kind of prioritization. The only exception is that system-generated control packets are enqueued into a control packet queue so that control traffic receives some minimum link bandwidth.

Queues are assigned when an output policy attached to a port with one or more queuing-related actions for one or more classes of traffic. Because there are only eight queues per-port, there can be at most eight classes of traffic (including the reserved class, class-default) with queuing action(s). Classes of traffic that do not have any queuing action are referred to as non-queuing classes. Nonqueuing class traffic uses the queue corresponding to class class-default.

When a queuing policy (a policy with queuing action) is attached, the control packet queue is deleted and the control packets are enqueued into respective queue per their classification. Note that this differs from the way control-traffic was prioritized in the Catalyst 4924, Catalyst 4948, Catalyst 4948-10GE, and the Supervisor Engines II+, II+10GE, IV, V, and V-10GE. On these platforms, by default, control traffic was guaranteed 25 percent of the link bandwidth whether QoS was configured. If this same behavior is required on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E, an egress QoS class must be configured to match IP Precedence 6 and 7 traffic, and a bandwidth guarantee must be configured.

Page 826 of the Cisco Systems 4500 user manual — Shaping
Page 826 · click to enlarge
Page 826

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Dynamic resizing of queues (queue limit class-map action) is supported using the use of the queue-limit command. Based on the chassis and line card type, all eight queues on a port are configured with equal queue size.

Shaping

Shaping enables you to delay out-of-profile packets in queues so that they conform to a specified profile. Shaping is distinct from policing. Policing drops packets that exceed a configured threshold. Shaping buffers packets so that traffic remains within a given threshold and offers greater smoothness in handling traffic than policing. You enable average-rate traffic shaping on a traffic class with the policy map class configuration command.

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support a range of 32 kbps to 10 gbps for shaping, with a precision of approximately with a precision of approximately +/- 0.75 percent.

When a queuing class is configured without any explicit shape configuration, the queue shape is set to the link rate.

To configure class-level shaping in a service policy, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# policy-map policy-map-name

Creates a policy map by entering the policy-map name, and enters policy-map configuration mode.

By default, no policy maps are defined.

Step 3 Switch(config-pmap)# class class-name Specifies the name of the class whose traffic policy you want to create or change, and enters policy-map class configuration mode.

By default, no traffic classes are defined.

Step 4 Switch(config-pmap-class)# shape average {cir-bps kbps | percent percent}

Enables average-rate traffic shaping.

You can specify the bandwidth in kbps or as a percentage:

  • For cir-bps , specify the committed information rate, the bit rate that traffic is shaped to, in bps. The range is 32000 to 10000000000 bps.
  • For percent , specify the percentage of link rate to shape the class of traffic. The range is 1 to 100.

By default, average-rate traffic shaping is disabled.

Step 5 Switch(config-pmap-class)# exit Returns to policy-map configuration mode.

Step 6 Switch(config-pmap)# exit Returns to global configuration mode.

Step 7 Switch(config)# interface interface-id Specifies a physical port and enter interface configuration mode.

Step 8 Switch(config-interface)# service-policy output policy-map-name

Specifies the policy-map name, and apply it a physical interface.

Step 9 Switch(config-interface)# end Returns to privileged EXEC mode.

Page 827 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 827 · click to enlarge
Page 827

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Step 10 Switch# show policy-map [policy-map-name [class class-map-name]]

Verifies your entries.

Switch# show policy-map interface interface-id

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To delete an existing policy map, use the no policy-map policy-map-name global configuration command. To delete an existing class, use the no class class-name policy-map configuration command. To disable the average-rate traffic shaping, use the no shape average policy-map class configuration command.

This example shows how to configure class level, average-rate shaping. It limits traffic class class1 to a data transmission rate of 256 kbps:

Switch# configure terminal Switch(config)# policy-map policy1 Switch(config-pmap)# class class1 Switch(config-pmap-c)# shape average 256000 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output policy1 Switch(config-if)# end Switch#

Switch# show policy-map policy1 Policy Map policy1 Class class1 shape average 256000

This example shows how to configure class level, average shape percentage to 32 percent of link bandwidth for queuing-class traffic:

Switch# configure terminal Switch(config)# policy-map queuing-policy Switch(config-pmap)# class queuing-class Switch(config-pmap-c)# shape average percent 32 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output queuing-policy1 Switch(config-if)# end Switch #

Switch# show policy-map queuing-policy Policy Map queuing-policy Class queuing-class Average Rate Traffic Shaping cir 32%

or

Page 828 of the Cisco Systems 4500 user manual — Sharing (Bandwidth)
Page 828 · click to enlarge
Page 828

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Sharing (Bandwidth)

The bandwidth assigned to a class of traffic is the minimum bandwidth that is guaranteed to the class during congestion. Transmit queue sharing is the process by which output link bandwidth is shared among multiple queues of a given port.

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support a range of 32 kbps to 10 Gbps for sharing, with a precision of approximately +/- 0.75 percent. The sum of configured bandwidth across all queuing classes should not exceed the link bandwidth.

To configure class-level bandwidth action in a service policy, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# policy-map policy-map-name

Creates a policy map by entering the policy-map name, and enters policy-map configuration mode.

By default, no policy maps are defined.

Step 3 Switch(config-pmap)# class class-name Specifies the name of the class whose traffic policy you want to create or change, and enter policy-map class configuration mode.

By default, no traffic classes are defined.

Step 4 Switch(config-pmap-class)# bandwidth {bandwidth-kbps | percent percent}

Specifies the minimum bandwidth provided to a class belonging to the policy map when there is traffic congestion in the switch. If the switch is not congested, the class receives more bandwidth than you specify with the bandwidth command.

By default, no bandwidth is specified.

You can specify the bandwidth in kbps or as a percentage:

  • For bandwidth-kbps , specify the bandwidth amount in kbps assigned to the class. The range is 32 to 10000000.
  • For percent , specify the percentage of available bandwidth assigned to the class. The range is 1 to 100.

Specify all the class bandwidths in either kbps or in percentages, but not a mix of both.

Step 5 Switch(config-pmap-class)# exit Returns to policy-map configuration mode.

Step 6 Switch(config-pmap)# exit Returns to global configuration mode.

Step 7 Switch(config)# interface interface-id Specifies a physical port and enters interface configuration mode.

Step 8 Switch(config-interface)# service-policy output policy-map-name

Specifies the policy-map name, and applies it a physical interface.

Step 9 Switch(config-interface)# end Returns to privileged EXEC mode.

Step 10 Switch# show policy-map [policy-map-name [class class-map-name]]

Verifies your entries.

Switch# show policy-map interface interface-id

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

or

Page 829 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 829 · click to enlarge
Page 829

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

To delete an existing policy map, use the no policy-map policy-map-name global configuration command. To delete an existing class, use the no class class-name policy-map configuration command. To return to the default bandwidth, use the no bandwidth policy-map class configuration command.

This example shows how to create a class-level policy map called policy11 for three classes called prec1, prec2, and prec3. In the policy for these classes, 30 percent of the available bandwidth is assigned to the queue for the first class, 20 percent is assigned to the queue for the second class, and 10 percent is assigned to the queue for the third class.

Switch # configure terminal Switch(config)# policy-map policy11 Switch(config-pmap)# class prec1 Switch(config-pmap-c)# bandwidth percent 30 Switch(config-pmap-c)# exit Switch(config-pmap)# class prec2 Switch(config-pmap-c)# bandwidth percent 20 Switch(config-pmap-c)# exit Switch(config-pmap)# class prec3 Switch(config-pmap-c)# bandwidth percent 10 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output policy11 Switch(config-if)# end Switch #

Switch# show policy-map policy11 Policy Map policy11 Class prec1 bandwidth percent 30 Class prec2 bandwidth percent 20 Class prec3 bandwidth percent 10

This example shows how to create a class-level policy map called policy11 for three classes called prec1, prec2, and prec3. In the policy for these classes, 300 MBps of the available bandwidth is assigned to the queue for the first class, 200 MBps is assigned to the queue for the second class, and 100 MBps is assigned to the queue for the third class.

Switch # configure terminal Switch(config)# policy-map policy11 Switch(config-pmap)# class prec1 Switch(config-pmap-c)# bandwidth 300000 Switch(config-pmap-c)# exit Switch(config-pmap)# class prec2 Switch(config-pmap-c)# bandwidth 200000 Switch(config-pmap-c)# exit Switch(config-pmap)# class prec3 Switch(config-pmap-c)# bandwidth 100000 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output policy11 Switch(config-if)# end Switch #

Switch# show policy-map policy11 Policy Map policy11 Class prec1 bandwidth 300000 (kbps) Class prec2 bandwidth 200000 (kbps)

Page 830 of the Cisco Systems 4500 user manual — Priority Queuing
Page 830 · click to enlarge
Page 830

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Class prec3 bandwidth 100000 (kbps)

When a queuing class is configured without any explicit share/bandwidth configuration, because the queue is not guaranteed any minimum bandwidth, the hardware queue is programmed to get a share of any unallocated bandwidth on the port as shown in the following example.

If there is no bandwidth remaining for the new queue or if the unallocated bandwidth is not sufficient to meet the minimum configurable rate (32 kbps) for all queues which do not have any explicit share/bandwidth configuration, then the policy association is rejected.

For example, there are two queues as follows:

policy-map queue-policy class q1 bandwidth percent 10 class q2 bandwidth percent 20

The bandwidth allocation for the queues is as follows:

q1 = 10% q2 = 20% class-default = 70%

Similarly, when another queuing class (say q3) is added without any explicit bandwidth (a shape command), then the bandwidth allocation is as follows:

q1 = 10% q2 = 20% q3 = min(35%, q3-shape-rate) class-default = max(35%, (100 - (q1 + q2 + q3 )))

Priority Queuing

On Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E, you can configure only one transmit queue (on a port) as strict priority (termed low latency queue, or LLQ).

LLQ provides strict-priority queuing for a traffic class. It enables delay-sensitive data, such as voice, to be sent before packets in other queues. The priority queue is serviced first until it is empty or until it is under its shape rate. Only one traffic stream can be destined for the priority queue per class-level policy. You enable the priority queue for a traffic class with the priority policy-map class configuration command at the class mode.

An LLQ can starve other queues unless it is rate-limited. Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E do not support conditional policing where a two-parameter policer (rate, burst) becomes effective when the queue is congested (based on queue length). However, it supports application of an unconditional policer to rate-limit packets enqueued to the strict priority queue.

When a priority queue is configured on one class of a policy map, only bandwidth remaining is accepted on other classes, guaranteeing a minimum bandwidth for other classes from the remaining bandwidth of what is left after using the priority queue. When a priority queue is configured with a policer, then either bandwidth or bandwidth remaining is accepted on other classes.

Page 831 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 831 · click to enlarge
Page 831

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

To enable class-level priority queuing in a service policy, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# policy-map policy-map-name

Creates a policy map by entering the policy-map name, and enters policy-map configuration mode.

By default, no policy maps are defined.

Step 3 Switch(config-pmap)# class class-name Specifies the name of the class whose traffic policy you want to create or change, and enter policy-map class configuration mode.

By default, no traffic classes are defined.

Step 4 Switch(config-pmap-class)# priority Enables the strict-priority queue, and gives priority to a class of traffic.

By default, strict-priority queueing is disabled.

Step 5 Switch(config-pmap-class)# exit Returns to policy-map configuration mode.

Step 6 Switch(config-pmap)# exit Returns to global configuration mode.

Step 7 Switch(config)# interface interface-id Specifies a physical port and enters interface configuration mode.

Step 8 Switch(config-interface)# service-policy output policy-map-name

Specifies the policy-map name, and applies it a physical interface.

Step 9 Switch(config-interface)# end Returns to privileged EXEC mode.

Step 10 Switch# show policy-map [policy-map-name [class class-map-name]]

Verifies your entries.

Switch# show policy-map interface interface-id

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To delete an existing policy map, use the no policy-map policy-map-name global configuration command. To delete an existing class, use the no class class-name policy-map configuration command. To disable the priority queue, use the no priority policy-map class configuration command.

This example shows how to configure a class-level policy called policy1. Class 1 is configured as the priority queue, which is serviced first until it is empty.

Switch# configure terminal Switch(config)# policy-map policy1 Switch(config-pmap)# class class1 Switch(config-pmap-c)# priority Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output policy1 Switch(config-if)# end Switch #

Switch# show policy-map policy1 Policy Map policy1 Class class1 priority

or

Page 832 of the Cisco Systems 4500 user manual — Service Policy Association
Page 832 · click to enlarge
Page 832

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Queue-limiting

When a class-based queue is instantiated on a physical port, it is set up with a default size. This size represents the number of queue entries in which packets belonging to that class of traffic can be queued. The scheduler moves packets from the queue that are ready for transmission, based on the queue shape, bandwidth, and priority configuration.

The queue-limit provides the maximum number of packets that can be in the queue at any given time. When the queue is full, an attempt to enqueue any further packets results in tail drop. However, if dynamic buffer limiting (DBL) is enabled on the queue, packets get a probabilistic drop based on the DBL algorithm, even when the queue is not full.

The queue-limit command can be configured under a class only when queue scheduling, such as bandwidth, shape, or priority is already configured. The only exception to this requirement is the support of the stand-alone queue-limit command on the class-default class.

Queue Memory

The number of queue entries that can be allocated has to be a multiple of eight and can range from 16 to 8184. When a class-based queue is instantiated on a physical port, it is given a default number of entries. This default queue size is based on the number of slots in the chassis and the number of front-panel ports in each slot.

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E have 512 K (524,288) queue entries of which the system sets aside 100 K (102,400) queue entries in a free reserve pool. Of the remaining 412 K (421,88), the drop port is provided 8184 entries and the CPU ports are assigned 11704 entries. The remaining entries are divided equally among the slots in the chassis. In a redundant chassis, the two supervisor slots are considered to be one for the purpose of this entry distribution. Within each slot, the number of queue entries are equally divided among the front-panel ports present on the line card in that slot.

When the user configuration for queue entries on an interface exceeds its dedicated quota, the system attempts to satisfy the configuration from the free reserve pool. The entries from the free reserve pool are allocated to interfaces on a first-come first-served basis.

Service Policy Association

When a QoS service-policy with queuing actions is configured, but no explicit queue-limit command is attached in the egress direction on a physical interface, each of the class-based queues gets the same number of queue entries from within the dedicated quota for that physical port. When a queue is explicitly given a size using the queue-limit command, the switch tries to allocate all the entries from within the dedicated quota for the interface. If the required number of entries is greater than the dedicated quota for the interface, the switch tries to allocate the entries from the free reserve.

The queue entries associated with a queue always have to be consecutive. This requirement can result in fragmentation of the 512 K of the queue entries that are shared across the switch. For example, an interface may not have enough entries for a queue in its dedicated quota and thus have to use the free reserve to set up that queue. In this case, the queue entries from the dedicated quota remain unused because they cannot be shared with any other port or slot.

When the QoS service policy associated with an interface is removed, any queue entries taken from the free reserve are returned to the free reserve pool. The interface queuing configuration reverts to two queues — class-default and the control-packet queue with default shape, bandwidth, and size. The control-packet queue is set up with size 16, and the default queue is set up with the maximum size possible based on the dedicated quota for that interface.

Page 833 of the Cisco Systems 4500 user manual — Queue Allocation Failure
Page 833 · click to enlarge
Page 833

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Queue Allocation Failure

The switch might not be able to meet the explicit queue size required on one or more queues on an interface because of fragmentation of queue memory or lack of enough free reserve entries. In this scenario, the switch logs an error message to notify you of the failure. The QoS service policy is left configured on the interface. You can fix the error by removing the QoS service policy and examining the current use of the queue entries from the free reserve by other ports on the switch.

To configure class-level queue-limit in a service policy, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# policy-map policy-map-name

Creates a policy map by entering the policy-map name, and enters policy-map configuration mode.

By default, no policy maps are defined.

Step 3 Switch(config-pmap)# class class-name Specifies the name of the class whose traffic policy you want to create or change, and enters policy-map class configuration mode.

By default, no traffic classes are defined.

Step 4 Switch(config-pmap-class)# shape average {cir-bps kbps | percent percent}

Enables average-rate traffic shaping.

You can specify the bandwidth in kbps or as a percentage:

  • For cir-bps , specify the committed information rate, the bit rate that traffic is shaped to, in bps. The range is 32000 to 10000000000 bps.
  • For percent , specify the percentage of link rate to shape the class of traffic. The range is 1 to 100.

By default, average-rate traffic shaping is disabled.

Step 5 Switch(config-pmap-class)# queue-limit number-of-packets

Provides an explicit queue size in packets. The size must be a multiple of eight and ranging from 16 to 8184.

Step 6 Switch(config-pmap-class)# exit Returns to policy-map configuration mode.

Step 7 Switch(config-pmap)# exit Returns to global configuration mode.

Step 8 Switch(config)# interface interface-id Specifies a physical port and enter interface configuration mode.

Step 9 Switch(config-interface)# service-policy output policy-map-name

Specifies the policy-map name, and apply it a physical interface.

Step 10 Switch(config-interface)# end Returns to privileged EXEC mode.

Step 11 Switch# show policy-map [policy-map-name [class class-map-name]]

Verifies your entries.

Switch# show policy-map interface interface-id

Step 12 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To remove the explicit queue size use the no queue-limit command under the class in a policy map.

or

Page 834 of the Cisco Systems 4500 user manual — Active Queue Management by Using Dynamic Buffer Limiting
Page 834 · click to enlarge
Page 834

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

This example shows how to configure a class-based queue with an explicit queue-limit command. It limits traffic class class1 to a queue of size 4048:

Switch# configure terminal Switch(config)# policy-map policy1 Switch(config-pmap)# class class1 Switch(config-pmap-c)# shape average 256000 Switch(config-pmap-c)# queue-limit 4048 Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output policy1 Switch(config-if)# end Switch#

Switch# show policy-map policy1 Policy Map policy1 Class class1 shape average 256000 queue-limit 4048 Switch#

Active Queue Management by Using Dynamic Buffer Limiting

Active Queue Management (AQM) provides buffering control of traffic flows prior to queuing a packet into a transmit queue of a port. In a shared-memory switch, this feature ensures that certain flows do not retain the switch packet memory.

Except for the default class of traffic (class class-default), you can configure DBL action only when at least one of the other queuing actions is configured.

To configure class-level DBL action along with shaping in a service policy, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# policy-map policy-map-name

Creates a policy map by entering the policy-map name, and enters policy-map configuration mode.

By default, no policy maps are defined.

Step 3 Switch(config-pmap)# class class-name Specifies the name of the class whose traffic policy you want to create or change, and enters policy-map class configuration mode.

By default, no traffic classes are defined.

Step 4 Switch(config-pmap-class)# shape average cir-bps

Enables average-rate traffic shaping.

Specify the committed information rate, the bit rate that traffic is shaped to, in bps. The range is 32000 to 10000000000 bps.

By default, average-rate traffic shaping is disabled.

Step 5 Switch(config-pmap-class)# dbl Enables DBL on the queue associated with this class of traffic.

Step 6 Switch(config-pmap-class)# exit Returns to policy-map configuration mode.

Page 835 of the Cisco Systems 4500 user manual — Policy Associations
Page 835 · click to enlarge
Page 835

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Step 7 Switch(config-pmap)# exit Returns to global configuration mode.

Step 8 Switch(config)# interface interface-id Specifies a physical port and enter interface configuration mode.

Step 9 Switch(config-interface)# service-policy output policy-map-name

Specifies the policy-map name, and apply it a physical interface.

Step 10 Switch(config-interface)# end Returns to privileged EXEC mode.

Step 11 Switch# show policy-map [policy-map-name [class class-map-name]]

Verifies your entries.

Switch# show policy-map interface interface-id

Step 12 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To delete an existing policy map, use the no policy-map policy-map-name global configuration command. To delete an existing class, use the no class class-name policy-map configuration command. To disable DBL on the associated queue, use the no dbl policy-map class configuration command.

The following example shows how to configure class-level, DBL action along with average-rate shaping. It enables DBL on the queue associated with traffic-class class1.

Switch# configure terminal Switch(config)# policy-map policy1 Switch(config-pmap)# class class1 Switch(config-pmap-c)# shape average 256000 Switch(config-pmap-c)# dbl Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# service-policy output policy1 Switch(config-if)# end Switch#

Switch# show policy-map policy1 Policy Map policy1 Class class1 shape average 256000

Transmit Queue Statistics

Transmit queue statistics are visible by using the show policy-map interface command.

Policy Associations

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support per-port, per-VLAN policies. The associated policies are attached to the interface, VLAN, and a specific VLAN on a given port, respectively.

A policy can be associated with a variety of objects. Table 37-8 lists the objects and the actions allowed.

or · dbl

Page 836 of the Cisco Systems 4500 user manual — Qos Policy Merging
Page 836 · click to enlarge
Page 836

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Table 37-8 Table QoS Policy Associations

Object Action

Physical port Policing, marking, and queuing

VLAN Policing and marking

Port and VLAN (PV) Policing and marking

EtherChannel Policing and marking

EtherChannel member port Queuing

QoS Action Restrictions

Action restrictions include the following:

  • The same actions cannot be performed multiple times in a given direction on different targets. In other words, it is not possible to police the packets both on port and VLAN in the input direction. However, the user can police on the input port and on the output VLAN.
  • Queuing actions are only allowed in the egress direction and only on the physical port.
  • Percentage-based actions like policer cannot be configured on a VLAN.
  • Port channel or VLAN configuration can only have a policing or a marking action, not a queueing action.

QoS Policy Priorities

Policy priorities include the following:

  • If a policy on a port and a VLAN are configured with conflicting actions (such as policing or marking actions on both a port and VLAN), the port policy is picked.
  • If policy on a VLAN on a given port must be overwritten, the user can configure PV policy.

Qos Policy Merging

Applicable policies are applied to a given packet in given direction. For example, configure egress VLAN-based police and marking, followed by selective queuing on the port, then actions from both policies will be applied for this packet.

The following policy-map configuration restrictions are imposed on an EtherChannel:

  • Only policing and marking actions are supported at the EtherChannel level.
  • Only queuing actions are supported at the physical member port level.

A packet can be marked (DSCP or CoS fields) by the EtherChannel policy. If the physical member port policy uses a classification based on DSCP or CoS fields, it must be based on the marked (modified) value. To ensure proper operation, the following restriction is placed on the EtherChannel.

The classification criteria for the policy map on the physical member ports has to based only on one type of field:

  • DSCP
  • Precedence
  • CoS
  • Any nonmarking field (no DSCP or CoS based classification)
Page 837 of the Cisco Systems 4500 user manual — High Priority Packets
Page 837 · click to enlarge
Page 837

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Classification criteria for the policy map on the physical member ports cannot be based on a combination of fields. This restriction ensures that if the EtherChannel policy is marking down DSCP or CoS, the marked (modified) value-based classification can be implemented in hardware.

Auto-QoS is not supported on EtherChannel or its member ports. A physical port configured with Auto-QoS is not allowed to become a member of a physical port.

Software QoS

At the highest level, there are two types of locally sourced traffic (such as control protocol packets, pings, and Telnet) from the switch: high priority traffic (typically the control protocol packets such as OSPF Hellos and STP) and low priority packets (all other packet types).

The QoS treatment for locally sourced packets differs for the two types.

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E provide a way to apply QoS to packets processed in the software path. The packets that get this QoS treatment in software can be classified into two types: software-switched packets and software-generated packets.

On reception, software-switched packets are sent to the CPU that in turn sends them out of another interface. For such packets, input software QoS provides input marking and output software QoS provides output marking and queue selection.

The software-generated packets are the ones locally sourced by the switch. The type of output software QoS processing applied to these packets is the same as the one applied to software switched packets. The only difference in the two is that the software-switched packets take input marking of the packet into account for output classification purpose.

As per CSCtf40934, the following change is implemented beginning with Cisco IOS Release 12.2(54)SG:

  • All locally generated v4 or v6 packets that leave the switch tagged reflect precedence value in the CoS bits.
  • For all other packets, PAK_PRIORITY is used to determine CoS as explained in the following section.

High Priority Packets

High priority packets are marked as one of the following:

  • Internally with PAK_PRIORITY
  • With IP Precedence of 6 (for IP packets)
  • With CoS of 6 (for VLAN tagged packets)

These packets operate as follows:

  • They are not dropped because of any policing, AQM, drop thresholds (or any feature that can drop a packet) configured as per the egress service policy. However, they might be dropped because of hardware resource constraints (packet buffers, queue full).
  • They are classified and marked as per the marking configuration of the egress service policy that could be a port or VLAN. Refer to the “Policy Associations” section on page 37-85.
  • These high priority packets are enqueued to queue on the egress port based on the following criteria:

– If there is no egress queuing policy on the port, the packet is queued to a control packet queue that is set up separately from the default queue and has 5 percent of the link bandwidth reserved for it.

Page 838 of the Cisco Systems 4500 user manual — Configuring CoS Mutation
Page 838 · click to enlarge
Page 838

Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

– If there is an egress queuing policy on the port, the queue is selected based on the classification criteria applicable to the packet.

As per CSCtf40934, beginning with Cisco IOS Release 12.2(54)SG, locally generated HI priority packets are handled as follows:

In the absence of a QoS policy, HI priority packets are enqueued into an internal priority queue.

In the presence of a policy, HI priority packets are enqueued into a priority queue if one is defined. If none is defined, classification criteria determines the queue. HI priority packets are never subjected to egress QoS marking. Locally generated packets that are not HI priority are treated like any other packet. For example, QoS policy is used to determine any marking and queueing action.

Low Priority Packets

Packets that are not considered high priority (as described previously) are considered unimportant. These include locally sourced pings, Telnet, and other protocol packets. They receive the same treatment as any other packet that is transmitting the given transmit port including egress classification, marking, and queuing.

Configuring CoS Mutation

CoS reflection and CoS mutation are supported on Supervisor E ngine 6-E and Catalyst 4900M. Below is an example of how to apply CoS reflection.

Let us say that traffic arrives on interface gigabit 2/5 with VLAN 10 and COS 1, 2, We want traffic to egress interface gigabit 2/6 with outer tag VLAN 11 and CoS copied from C-tag, where C-tag is VLAN 10 and COS 1, 2, ...

switchport vlan mapping 10 dot1q-tunnel 11

Show 13 more labels / short text on this page
class-map match-all c2 · match cos 2 · class-map match-all c1 · match cos 1 · ! · policy-map my · class c1 · set cos 1 · class c2 · set cos 2 · interface GigabitEthernet2/5 · switchport mode trunk · spanning-tree bpdufilter enable
Page 839 of the Cisco Systems 4500 user manual — Configuring System Queue Limit
Page 839 · click to enlarge
Page 839

Chapter 37 Configuring Quality of Service

Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Configuring System Queue Limit

With the hw-module system max-queue-limit command, the Catalyst 4500 series switch allows you to change the queue limit for all interfaces globally, instead of applying a policy with queue limit to all the interfaces.

This command allows you to change the queue limit for all interfaces globally rather than apply a policy with a queue limit to all the interfcaes

To set the queue limit globally, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# hw-module system max-queue-limit max-queue-limit

Sets the queue limit for all interfaces globally

Valid values are from 1024 to 8184.

The value must be a multiple of 8.

Step 3 Switch(config)# exit Returns to privileged EXEC mode.

Step 4 Switch# reload

Reloads standalone supervisor engine. Reloads redundancy supervisor engine in SSO mode. Reloads redundancy supervisor engine in RPR mode.

Switch# redundancy reload shelf Switch# redundancy force-switchover

This command must be followed by another redundancy force-switchover.

This is a global configuration command. It can be overriden by the per port, per class, queue-limit command.

For a standalone supervisor engine, you must reboot the engine after applying this command.

For redundant supervisors in SSO mode, you must enter the redundancy reload shelf command enforce reboot to both the supervisors.

For redundancy supervisors in RPR mode, you must execute two consecutive switchovers to enforce the system queue limit on both the supervisors.

Show 5 more labels / short text on this page
service-policy input my · ! · interface GigabitEthernet2/6 · switchport mode trunk · or
Page 840 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 840 · click to enlarge
Page 840

Chapter 37 Configuring Quality of Service Configuring Auto-QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

This example shows how to set the queue limit globally to 1024 on a standalone supervisor engine:

Switch> enable Switch# configure terminal Switch(config)# hw-module system max-queue-limit 1024 Switch(config)# exit Switch# reload (for standalone supervisors) Switch# redundancy reload shelf (for reduandancy supervisors in SSO mode) or Switch# redundancy force-switchover (followed by another redundancy force-switchover, for reduandancy supervisors in RPR mode)

Configuring Auto-QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

Unlike auto-QoS on Supervisor Engines II-Plus to V-10GE, auto-QoS on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E use the MQC model. This means that instead of using certain global configurations such as QoS and QoS DBL, auto-QoS applied to any interface on a switch with Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E configure several global class maps and policy maps.

The class maps are as follows:

class-map match-all AutoQos-VoIP-Control-Dscp26 match dscp af31 class-map match-all AutoQos-VoIP-Control-Dscp24 match dscp cs3 class-map match-all AutoQos-VoIP-Bearer-Cos match cos 5 class-map match-all AutoQos-VoIP-Control-QosGroup24 match qos-group 24 class-map match-all AutoQos-VoIP-Control-QosGroup26 match qos-group 26 class-map match-all AutoQos-VoIP-Bearer-QosGroup match qos-group 46 class-map match-all AutoQos-VoIP-Bearer-Dscp match dscp ef class-map match-all AutoQos-VoIP-Control-Cos match cos 3

The class maps are intended to identify control and data (bearer) voice traffic for either an Layer 2 or Layer 3 interface.

The policy maps are as follows:

policy-map AutoQos-VoIP-Input-Dscp-Policy class AutoQos-VoIP-Bearer-Dscp set qos-group 46 class AutoQos-VoIP-Control-Dscp26 set qos-group 26 class AutoQos-VoIP-Control-Dscp24 set qos-group 24 policy-map AutoQos-VoIP-Input-Cos-Policy class AutoQos-VoIP-Bearer-Cos set qos-group 46 class AutoQos-VoIP-Control-Cos

Page 841 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 841 · click to enlarge
Page 841

Chapter 37 Configuring Quality of Service

Configuring Auto-QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

set qos-group 24 policy-map AutoQos-VoIP-Output-Policy class AutoQos-VoIP-Bearer-QosGroup set dscp ef set cos 5 priority police cir percent 33 class AutoQos-VoIP-Control-QosGroup26 set dscp af31 set cos 3 bandwidth remaining percent 5 class AutoQos-VoIP-Control-QosGroup24 set dscp cs3 set cos 3 bandwidth remaining percent 5 class class-default dbl

The three policy maps are defined as follows:

  • policy-map AutoQos-VoIP-Input-Dscp-Policy

This policy map is applied as an input service policy on an Layer 3 interface (such as an uplink connection to a neighboring switch) when auto-QoS is configured on the port.

  • policy-map AutoQos-VoIP-Input-Cos-Policy

This policy map is applied as an input service policy on an Layer 2 interface that could be either an uplink connection or a port hooked to a Cisco IP phone.

  • policy-map AutoQos-VoIP-Output-Policy

This policy map is applied as an output policy for any port on which auto-QoS is configured, establishing policy governing egress traffic on the port based on whether it is voice data or control traffic.

The purpose of the input policy maps is to identify voice data or control traffic and mark it as such as it traverses the switch. The output policy map matches the packets on the marking occurring on ingress and then applies egress parameters such as bandwidth, policing and/or priority queuing.

The invocation of auto-QoS on a switch using Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E use the same configuration commands used on Supervisor Engines II-Plus to V-10GE.

For switch-to-switch connections, the [no] auto qos voip trust command is used to apply an input and output service policy on the interface:

The selection of the input policy depends on whether the port is Layer 2 or Layer 3. For Layer 2, the policy trusts the CoS setting in the received packets. For Layer 3 ports, it relies on the DSCP value contained in the packets.

For phone-connected ports, the [no] auto qos voice cisco-phone command is used to apply the following service policy to the port:

qos trust device cisco-phone

Show 5 more labels / short text on this page
service-policy input AutoQos-VoIP-Input-Cos-Policy · service-policy input AutoQos-VoIP-Input-Dscp-Policy · service-policy output AutoQos-VoIP-Output-Policy · service-policy input AutoQos-VoIP-Input-Cos-Policy · service-policy output AutoQos-VoIP-Output-Policy
Page 842 of the Cisco Systems 4500 user manual — Configuring Quality of Service
Page 842 · click to enlarge
Page 842

Chapter 37 Configuring Quality of Service Configuring Auto-QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E

It establishes a trusted boundary that recognizes Cisco IP phones and trusts the CoS setting of the packets from the phone. If a Cisco IP phone is not detected, the CoS field is ignored and the packets are not classified as voice traffic. Upon detecting a Cisco IP phone, the ingress packets are marked based on the CoS value in the packets. This marking is used on egress for proper traffic classification and handling.

Page 843 of the Cisco Systems 4500 user manual — About Voice Interfaces
Page 843 · click to enlarge
Page 843

C H A P T E R

Configuring Voice Interfaces

This chapter describes how to configure voice interfaces for the Catalyst 4500 series switches.

This chapter includes the following major sections:

  • About Voice Interfaces, page 38-1
  • Configuring a Port to Connect to a Cisco 7960 IP Phone, page 38-3
  • Configuring Voice Ports for Voice and Data Traffic, page 38-3
  • Overriding the CoS Priority of Incoming Frames, page 38-5
  • Configuring Power, page 38-5

Note For complete syntax and usage information for the switch commands used in this chapter, see the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Cisco Catalyst 4500 Command Reference, you can locate it in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Voice Interfaces

Catalyst 4500 series switches can connect to a Cisco 7960 IP Phone and carry IP voice traffic. If necessary, the switch can supply electrical power to the circuit connecting it to the Cisco 7960 IP Phone.

Because the sound quality of an IP telephone call can deteriorate if the data is unevenly sent, the switch uses quality of service (QoS) based on IEEE 802.1p class of service (CoS). QoS uses classification and scheduling to transmit network traffic from the switch in a predictable manner. See Chapter 37, “Configuring Quality of Service,” for more information on QoS.

You can configure the Cisco 7960 IP Phone to forward traffic with an 802.1p priority. You can use the CLI to configure a Catalyst 4500 series switch to honor or ignore a traffic priority assigned by a Cisco 7960 IP Phone.

Page 844 of the Cisco Systems 4500 user manual — Cisco IP Phone Data Traffic
Page 844 · click to enlarge
Page 844

Chapter 38 Configuring Voice Interfaces About Voice Interfaces

The Cisco 7960 IP Phone contains an integrated three-port 10/100 switch. The ports are dedicated connections as described below:

  • Port 1 connects to the Catalyst 4500 series switch or other device that supports voice-over-IP.
  • Port 2 is an internal 10/100 interface that carries the phone traffic.
  • Port 3 connects to a PC or other device.

Figure 38-1 shows one way to configure a Cisco 7960 IP Phone.

Figure 38-1 Cisco 7960 IP Phone Connected to a Catalyst 4500 Series Switch

IP Phone Catalyst 4500 Series Switch PC

IP

Cisco IP Phone Voice Traffic

You can configure an access port with an attached Cisco IP phone to use one VLAN for voice traffic and another VLAN for data traffic from a device attached to the phone. You can configure access ports on the switch to send Cisco Discovery Protocol (CDP) packets that instruct an attached phone to send voice traffic to the switch in any of these ways:

  • In the voice VLAN tagged with a Layer 2 CoS priority value
  • In the access VLAN tagged with a Layer 2 CoS priority value
  • In the access VLAN, untagged (no Layer 2 CoS priority value)

Cisco IP Phone Data Traffic

The switch can also process tagged data traffic (traffic in IEEE 802.1Q or IEEE 802.1p frame types) from the device attached to the access port on the Cisco IP phone. See Figure 38-1. You can configure Layer 2 access ports on the switch to send CDP packets that instruct the attached phone to configure the phone access port in one of these modes:

  • In trusted mode, all traffic received using the access port on the Cisco IP phone passes using the phone unchanged.
  • In untrusted mode, all traffic in IEEE 802.1Q or IEEE 802.1p frames received using the access port on the Cisco IP phone receive a configured Layer 2 CoS value. The default Layer 2 CoS value is 0. Untrusted mode is the default.
Page 845 of the Cisco Systems 4500 user manual — Configuring Voice Ports for Voice and Data Traffic
Page 845 · click to enlarge
Page 845

Chapter 38 Configuring Voice Interfaces

Configuring a Port to Connect to a Cisco 7960 IP Phone

Configuring a Port to Connect to a Cisco 7960 IP Phone

Because a Cisco 7960 IP Phone also supports connection to a PC or another device, an interface connecting a Catalyst 4500 series switch to a Cisco 7960 IP Phone can carry a mix of voice and data traffic.

The three configurations for a port connected to a Cisco 7960 IP Phone are as follows:

  • All traffic is transmitted according to the default CoS priority of the port. it is the default.
  • Voice traffic is given a higher priority by the phone (CoS priority is always 5), and all traffic is in the same VLAN.
  • Voice and data traffic are carried on separate VLANs.

To configure a port to instruct the phone to give voice traffic a higher priority and to forward all traffic using the 802.1Q native VLAN, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet} slot/port

Specifies the interface to configure.

Step 3 Switch(config-if)# switchport voice vlan dot1p Instructs the switch to use 802.1p priority tagging for voice traffic and to use VLAN 1 (default native VLAN) to carry all traffic.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show interface {fastethernet | gigabitethernet} slot/port switchport

Verifies the port configuration.

Configuring Voice Ports for Voice and Data Traffic

Because voice and data traffic can travel using the same voice port, you should specify a different VLAN for each type of traffic. You can configure a switch port to forward voice and data traffic on different VLANs.

To configure a port to receive voice and data traffic from a Cisco IP phone on different VLANs, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet} slot/port

Specifies the interface to configure.

Page 846 of the Cisco Systems 4500 user manual — Configuring Voice Interfaces
Page 846 · click to enlarge
Page 846

Chapter 38 Configuring Voice Interfaces Configuring Voice Ports for Voice and Data Traffic

Step 3 Switch(config-if)# switchport mode access Configures the interface as an access port.

The voice VLAN is active only on access ports.

Step 4 Switch(config-if)# switchport voice vlan vlan_num

Instructs the Cisco IP phone to forward all voice traffic through a specified VLAN. The Cisco IP phone forwards the traffic with an 802.1p priority of 5.

Step 5 Switch(config-if)# switchport access vlan data_vlan_num

Configures the access VLAN (the data VLAN) on the port.

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show interface {fastethernet | gigabitethernet} slot/port switchport

Verifies the configuration.

In the following example, VLAN 1 carries data traffic, and VLAN 2 carries voice traffic. In this configuration, you must connect all Cisco IP phones and other voice-related devices to switch ports that belong to VLAN 2.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastEthernet 3/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 2 Switch(config-if)# switchport access vlan 3 Switch(config-if)# end Switch# show interfaces fastEthernet 3/1 switchport Name: Fa3/1 Switchport: Enabled Administrative Mode: static access Operational Mode: static access Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: native Negotiation of Trunking: Off Access Mode VLAN: 3 (VLAN0003) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: 2 (VLAN0002) Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Unknown unicast blocked: disabled Unknown multicast blocked: disabled Appliance trust: none Switch#

Page 847 of the Cisco Systems 4500 user manual — Configuring Power
Page 847 · click to enlarge
Page 847

Chapter 38 Configuring Voice Interfaces

Overriding the CoS Priority of Incoming Frames

Overriding the CoS Priority of Incoming Frames

A PC or another data device can connect to a Cisco 7960 IP Phone port. The PC can generate packets with an assigned CoS value. You can also use the switch CLI to override the priority of frames arriving on the phone port from connected devices, and you can set the phone port to accept (trust) the priority of frames arriving on the port.

To override the CoS priority setting received from the non-voice port on the Cisco 7960 IP Phone, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet} slot/port

Specifies the interface to configure.

Step 3 Switch(config-if)# [no] qos trust extend cos 3 Sets the phone port to override the priority received from the PC or the attached device and forward the received data with a priority of 3.

Use the no keyword to return the port to its default setting.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show interface {fastethernet | gigabitethernet} slot/port switchport

Verifies the change.

Configuring Power

The Catalyst 4500 series switch recognizes that it is connected to a Cisco 7960 IP Phone. The Catalyst 4500 series switch can supply Power over Ethernet (PoE) to the Cisco 7960 IP Phone if there is no power on the circuit. The Cisco 7960 IP Phone can also be connected to an AC power source and supply its own power to the voice circuit. If there is power on the circuit, the switch does not supply it.

You can configure the switch not to supply power to the Cisco 7960 IP Phone and to disable the detection mechanism. For information on the CLI commands that you can use to supply PoE to a Cisco 7960 IP Phone, see Chapter 11, “Configuring Power over Ethernet.”

Page 848 of the Cisco Systems 4500 user manual — Configuring Voice Interfaces
Page 848 · click to enlarge
Page 848

Chapter 38 Configuring Voice Interfaces Configuring Power

Page 849 of the Cisco Systems 4500 user manual — About Private VLANs
Page 849 · click to enlarge
Page 849

C H A P T E R

Configuring Private VLANs

This chapter describes how to implement private VLANs (PVLANs) on Catalyst 4500 series switches. It also provides restrictions, procedures, and configuration examples.

This chapter includes the following major sections:

  • About Private VLANs, page 39-1
  • PVLAN Commands, page 39-10
  • Configuring PVLANs, page 39-11

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Private VLANs

The private VLAN (PVLAN) feature addresses two problems that service providers face when using VLANs:

  • The switch supports up to 4094 active VLANs. If a service provider assigns one VLAN per customer, this limits the numbers of customers the service provider can support.
  • To enable IP routing, each VLAN is assigned a subnet address space or a block of addresses, which can result in wasting the unused IP addresses, and cause IP address management problems.

To configure PVLANs, you need to understand the concepts in these sections:

  • Purpose of a PVLAN, page 39-2
  • PVLAN Terminology, page 39-3
  • PVLANs across Multiple Switches, page 39-5
  • PVLAN Modes Over Gigabit Etherchannel, page 39-8
  • Private-VLAN Interaction with Other Features, page 39-8
Page 850 of the Cisco Systems 4500 user manual — VLAN
Page 850 · click to enlarge
Page 850

Chapter 39 Configuring Private VLANs About Private VLANs

Purpose of a PVLAN

Using PVLANs provides scalability and IP address management benefits for service providers and Layer 2 security for customers. PVLANs partition a regular VLAN domain into subdomains. A subdomain is represented by a pair of VLANs: a primary VLAN and a secondary VLAN. A PVLAN can have multiple VLAN pairs, one pair for each subdomain. All VLAN pairs in a PVLAN share the same primary VLAN. The secondary VLAN ID differentiates one subdomain from another. See Figure 39-1.

Figure 39-1 Private-VLAN Domain

VLAN

VLAN VLAN domain domain

Secondary isolated VLAN or Twoway-Community

Secondary isolated VLAN or Twoway-Community

VLAN

VLAN

The three types of secondary VLANs are as follows:

  • Isolated VLANs—Ports within an isolated VLAN cannot communicate with each other at the Layer 2 level.
  • Community VLANs—Ports within a community VLAN can communicate with each other but cannot communicate with ports in other communities at the Layer 2 level.
  • Twoway-Community VLANs—Bidirectional VLAN. Ports within a twoway-community VLAN can communicate with each other but not with communities or twoway-communities at the Layer 2 level.

A promiscuous port can serve only one primary VLAN, one isolated VLAN, and multiple community (or twoway-community) VLANs. Layer 3 gateways are typically connected to the switch through a promiscuous port.

Show 8 more labels / short text on this page
Primary · Private Private · Private · VLAN domain · Subdomain Subdomain · Subdomain Subdomain · Secondary community VLAN · Secondary community VLAN
Page 851 of the Cisco Systems 4500 user manual — Term Definition
Page 851 · click to enlarge
Page 851

Chapter 39 Configuring Private VLANs

In a switched environment, you can assign an individual PVLAN and associated IP subnet to each individual or common group of end stations. The end stations need to communicate only with a default gateway to communicate outside the PVLAN.

You can use PVLANs to control access to end stations in these ways:

  • Configure selected interfaces connected to end stations as isolated ports to prevent any communication at Layer 2. For example, if the end stations are servers, this configuration prevents Layer 2 communication between the servers.
  • Configure interfaces connected to default gateways and selected end stations (such as, backup servers) as promiscuous ports to allow all end stations access to a default gateway.
  • Reduce VLAN and IP subnet consumption; you can prevent traffic between end stations even though they are in the same VLAN and IP subnet.

With a promiscuous port, you can connect a wide range of devices as access points to a PVLAN. For example, you can connect a promiscuous port to the server port of a LocalDirector to connect an isolated VLAN or a number of community (or twoway-community) VLANs to the server. LocalDirector can load balance the servers present in the isolated, community, or twoway-community VLANs, or you can use a promiscuous port to monitor or back up all the PVLAN servers from an administration workstation.

PVLAN Terminology

The following table defines the key terms used in this chapter:

Term Definition

PVLANs PVLANs are sets of VLAN pairs that share a common primary identifier and provide a mechanism for achieving layer-2 separation between ports while sharing a single layer-3 router port and IP subnet.

Secondary VLAN A type of VLAN used to implement PVLANs. Secondary VLANs are associated with a primary VLAN, and are used to carry traffic from hosts to other allowed hosts or to routers.

Community Port A community port is a host port that belongs to a community secondary VLAN. Community ports communicate with other ports in the same community VLAN and with promiscuous ports. These interfaces are isolated at Layer 2 from all other interfaces in other communities and from isolated ports within their PVLAN.

Community VLAN Community VLAN—A community VLAN is a secondary VLAN that carries upstream traffic from the community ports to the promiscuous port gateways and to other host ports in the same community. You can configure multiple community VLANs in a PVLAN.

About Private VLANs

Page 852 of the Cisco Systems 4500 user manual — Term Definition
Page 852 · click to enlarge
Page 852

Chapter 39 Configuring Private VLANs About Private VLANs

Term Definition

Isolated Port An isolated port is a host port that belongs to an isolated secondary VLAN. It has complete Layer 2 separation from other ports within the same PVLAN, except for the promiscuous ports. PVLANs block all traffic to isolated ports except traffic from promiscuous ports. Traffic received from an isolated port is forwarded only to promiscuous ports.

Isolated VLAN Isolated VLAN —A PVLAN has only one isolated VLAN. An isolated VLAN is a secondary VLAN that carries unidirectional traffic upstream from the hosts toward the promiscuous ports and the gateway.

Primary VLAN Primary VLAN—A PVLAN has only one primary VLAN. Every port in a PVLAN is a member of the primary VLAN. The primary VLAN carries unidirectional traffic downstream from the promiscuous ports to the (isolated and community) host ports and to other promiscuous ports.

PVLAN Trunk Port A PVLAN trunk port can carry multiple secondary (isolated only) and non-PVLANs. Packets are received and transmitted with secondary or regular VLAN tags on the PVLAN trunk ports.

Promiscuous Port A promiscuous port belongs to the primary VLAN and can communicate with all interfaces, including the community and isolated host ports and PVLAN trunk ports that belong to the secondary VLANs associated with the primary VLAN.

Promiscuous Trunk Port A promiscuous trunk port can carry multiple primary and normal VLANs. Packets are received and transmitted with primary or regular VLAN tags. Other than that, the port behaves just like a promiscuous access port.

Twoway-Community Ports A twoway-community port is a host port that belongs to a twoway-community secondary VLAN. Ports within a twoway-community VLAN can communicate with each other but not with ports in other communities or twoway-communities at the Layer 2 level.

These interfaces are isolated at Layer 2 from all other interfaces in other twoway communities and from isolated ports within their PVLAN.

Twoway-Community VLANs A bidirectional VLAN. Ports within a 2-way community VLAN can communicate with each other but cannot communicate with ports in other 2-way communities at the Layer 2 level.

Page 853 of the Cisco Systems 4500 user manual — VLAN 100
Page 853 · click to enlarge
Page 853

Chapter 39 Configuring Private VLANs

PVLANs across Multiple Switches

This section discusses the following topics:

  • Standard Trunk Ports, page 39-5
  • Isolated PVLAN Trunk Ports, page 39-6
  • Promiscuous PVLAN Trunk Ports, page 39-7

Standard Trunk Ports

As with regular VLANs, PVLANs can span multiple switches. A trunk port carries the primary VLAN and secondary VLANs to a neighboring switch. The trunk port treats the PVLAN as any other VLAN. A feature of PVLANs across multiple switches is that traffic from an isolated port in switch A does not reach an isolated port on Switch B. See Figure 39-2.

To maintain the security of your private-VLAN configuration and to avoid other use of the VLANs configured as PVLANs, configure PVLANs on all intermediate devices, including devices that have no private-VLAN ports.

Figure 39-2 PVLANs across Switches

VLAN 100

VLAN 100

VLAN 201

VLAN 202

VLAN 201 VLAN 202

Carries VLAN 100, 201, and 202 traffic

VLAN 100 = Primary VLAN VLAN 201 = Secondary isolated VLAN VLAN 202 = Secondary community or Twoway-community VLAN

Show 4 more labels / short text on this page
About Private VLANs · Trunk ports · Switch B · Switch A
Page 854 of the Cisco Systems 4500 user manual — Isolated PVLAN Trunk Ports
Page 854 · click to enlarge
Page 854

Chapter 39 Configuring Private VLANs About Private VLANs

Because VTP does not support PVLANs, you must manually configure PVLANs on all switches in the Layer 2 network. If you do not configure the primary and secondary VLAN association in some switches in the network, the Layer 2 databases in these switches are not merged. This can result in unnecessary flooding of private-VLAN traffic on those switches.

Isolated PVLAN Trunk Ports

You would use a isolated PVLAN trunk ports when you would anticipate using PVLAN isolated host ports to carry multiple VLANs, either normal VLANs or for multiple PVLAN domains. This makes it useful for connecting a downstream switch that does not support PVLANs such as Catalyst 2950.

Figure 39-3 Isolated PVLAN Trunk Ports

Catalyst 7200

Primary VLAN = VLAN10 Isolated VLAN = VLAN11

Catalyst 4500 switch

Isolated port

Isolated PVLAN trunk port

Non-PVLAN switch (2950)

Access ports on VLAN11

In this illustration, a Catalyst 4500 switch is being used to connect a downstream switch that does not support PVLANs.

Traffic being sent in the downstream direction towards host1 from the router is received by the Catalyst 4500 series switch on the promiscuous port and in the primary VLAN (VLAN 10). The packets are then switched out of the isolated PVLAN trunk. Rather that being tagged with the primary VLAN (VLAN 10), they are transmitted with the isolated VLAN’s tag (VLAN 11). In this way, when the packets arrive on the non-PVLAN switch, they can be bridged to the destination hosts’ access port.

router

Page 855 of the Cisco Systems 4500 user manual — Promiscuous PVLAN Trunk Ports
Page 855 · click to enlarge
Page 855

Chapter 39 Configuring Private VLANs

Traffic in the upstream direction is sent by host1 to the non-PVLAN switch, arriving in VLAN 11. The packets are then transmitted to the switch tagged with that VLAN’s tag (VLAN 11) over the trunk port. On the switch, VLAN 11 is configured as the isolated VLAN, and the traffic is forwarded as if it came from an isolated host port.

Note When an isolated trunk is used in this way, Catalyst 4500 series switch provides isolation between the isolated trunk and directly connected hosts (such as host3) but not between hosts connected to the non-PVLAN switch (such as host1 and host2). The non-PVLAN switch must provide isolation between these hosts, using a feature such as protected ports on a Catalyst 2950.

For details on protected ports, see the URL:

http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_22_ea11x/configur ation/guide/swtrafc.html#wp1158863

Promiscuous PVLAN Trunk Ports

PVLAN promiscuous trunks are used in situations where one would normally use a PVLAN promiscuous host port but where it is necessary to carry multiple VLANs, either normal VLANs or for multiple PVLAN domains. This makes it useful for connecting an upstream router that does not support PVLANs, such as a Cisco 7200.

Figure 39-4 Promiscuous PVLAN Trunk Ports

Catalyst 7200 router

Primary VLAN = VLAN10 Isolated VLAN = VLAN11 Community VLAN = VLAN12

Catalyst 4500 switch

Isolated port, VLAN11 Community port, VLAN12

In Figure 39-4, a Catalyst 4500 series switch connects a PVLAN domain to an upstream router that does not support PVLANs. Traffic being sent upstream by host1 arrives on the switch in the community VLAN (VLAN 12). When this traffic is bridged onto the promiscuous PVLAN trunk towards the router, it is tagged with the primary VLAN (VLAN 10). This way it can be routed using the correct subinterface configured on the router.

Traffic in the downstream direction is received on the promiscuous PVLAN trunk port by the switch in the primary VLAN (VLAN 10), just as if it had been received on a promiscuous host port. It can then be bridged to the destination host as in any PVLAN domain.

PVLAN promiscuous trunks interact with VLAN QoS. Refer to the section “PVLANs and VLAN ACL/QoS” section on page 39-8.

About Private VLANs

Page 856 of the Cisco Systems 4500 user manual — PVLANs and VLAN ACL/QoS
Page 856 · click to enlarge
Page 856

Chapter 39 Configuring Private VLANs About Private VLANs

PVLAN Modes Over Gigabit Etherchannel

Beginning with Cisco IOS Release 15.0(2)SG you can configure PVLAN modes over Etherchannel. These new modes are:

  • Host mode - Isolated, Community and 2-way community
  • Promiscuous mode
  • Secondary Isolated trunks
  • Promiscuous trunks

The process of bundling ports has not changed. PVLAN modes are added to already existing modes such as access, trunk, routed, tunneled etc.

Feature interactions include:

  • A primary VLAN can be associated with multiple community and twoway-community VLANs, but only one isolated VLAN.
  • An isolated or community VLAN or 2-way community VLAN can be associated with only one primary VLAN.
  • If you delete a VLAN used in a PVLAN configuration, the PVLAN ports associated with the VLAN become inactive.
  • The default native VLAN for promiscuous trunk port is VLAN 1 (management VLAN). All untagged packets are forwarded in the native VLAN. Either the primary VLANs or a regular VLAN can be configured as the native VLAN.
  • No default native VLAN set exists on an isolated secondary trunks. All untagged packets are dropped, if no native VLAN is configured.
  • Community and twoway-community VLANs cannot be propagated or carried over PVLAN trunks.
  • For IGMP Snooping, IGMP reports are learned on the primary VLAN and the platform decides if packet must be forwarded in the primary or secondary VLANs.

For details on configuring PVLANs over EtherChannel, Refer to the section “Configuring PVLAN over EtherChannel” section on page 39-24.

Private-VLAN Interaction with Other Features

PVLANs have specific interaction with some other features, described in these sections:

  • PVLANs and VLAN ACL/QoS, page 39-8
  • PVLANs and Unicast, Broadcast, and Multicast Traffic, page 39-9
  • PVLANs and SVIs, page 39-10
  • Per-Virtual Port Error-Disable on PVLANs, page 39-10

For details, see the section “PVLAN Configuration Guidelines and Restrictions” on page 12.

PVLANs and VLAN ACL/QoS

PVLAN ports use primary and secondary VLANs, as follows:

  • A packet received on a PVLAN host port belongs to the secondary VLAN.
Page 857 of the Cisco Systems 4500 user manual — PVLANs and Unicast, Broadcast, and Multicast Traffic
Page 857 · click to enlarge
Page 857

Chapter 39 Configuring Private VLANs

  • A packet received on a PVLAN trunk port belongs to the secondary VLAN if the packet is tagged with a secondary VLAN or if the packet is untagged and the native VLAN on the port is a secondary VLAN.

A packet received on a PVLAN host or trunk port and assigned to a secondary VLAN is bridged on the secondary VLAN. Because of this bridging, the secondary VLAN ACL as well as the secondary VLAN QoS (on input direction) apply.

When a packet is transmitted out of a PVLAN host or trunk port, the packet logically belongs to the primary VLAN. This relationship applies even though the packet may be transmitted with the secondary VLAN tagging for PVLAN trunk ports. In this situation, the primary VLAN ACL and the primary VLAN QoS on output apply to the packet.

  • Similarly, a packet received on a PVLAN promiscuous access port belongs to primary VLAN.
  • A packet received on a PVLAN promiscuous trunk port could belong to the primary VLAN or normal VLAN depending on incoming VLAN.

For traffic flowing in normal VLAN on promiscuous trunk ports, normal VLAN ACL and QoS policies apply. For traffic flowing in a PVLAN domain, a packet received on a promiscuous port is bridged in primary VLAN. The primary VLAN ACL and QoS policies apply on input.

For egress traffic on twoway-community host port, the secondary VLAN ACL and secondary VLAN QoS apply to egress unicast routed traffic stemming from the integrated router port.

When a packet is transmitted out of a promiscuous trunk port, the packet could logically belong to secondary VLAN if received from a secondary port, or in primary VLAN if bridged from another promiscuous port. Because we cannot differentiate between both packets, all VLAN QoS policies are ignored on packets egressing promiscuous trunk ports.

PVLANs and Unicast, Broadcast, and Multicast Traffic

In regular VLANs, devices in the same VLAN can communicate with each other at the Layer 2 level, but devices connected to interfaces in different VLANs must communicate at the Layer 3 level. In PVLANs, the promiscuous ports are members of the primary VLAN, while the host ports belong to secondary VLANs. Because the secondary VLAN is associated to the primary VLAN, members of the these VLANs can communicate with each other at the Layer 2 level.

In a regular VLAN, broadcasts are forwarded to all ports in that VLAN. PVLAN broadcast forwarding depends on the port sending the broadcast:

  • An isolated port sends a broadcast only to the promiscuous ports or trunk ports.
  • A community port sends a broadcast to all promiscuous ports, trunk ports, and ports in the same community VLAN.
  • A promiscuous port sends a broadcast to all ports in the PVLAN (other promiscuous ports, trunk ports, isolated ports, and community ports).

Multicast traffic is routed or bridged across private-VLAN boundaries and within a single community VLAN. Multicast traffic is not forwarded between ports in the same isolated VLAN or between ports in different secondary VLANs.

About Private VLANs

Page 858 of the Cisco Systems 4500 user manual — Command Purpose Location
Page 858 · click to enlarge
Page 858

Chapter 39 Configuring Private VLANs PVLAN Commands

PVLANs and SVIs

In a Layer 3 switch, a switch virtual interface (SVI) represents the Layer 3 interface of a VLAN. Layer 3 devices communicate with a PVLAN only using the primary VLAN and not through secondary VLANs. Configure Layer 3 VLAN interfaces (SVIs) only for primary VLANs. You cannot configure Layer 3 VLAN interfaces for secondary VLANs. SVIs for secondary VLANs are inactive while the VLAN is configured as a secondary VLAN.

  • If you try to configure a VLAN with an active SVI as a secondary VLAN, the configuration is not allowed until you disable the SVI.
  • If you try to create an SVI on a VLAN that is configured as a secondary VLAN and the secondary VLAN is already mapped at Layer 3, the SVI is not created, and an error is returned. If the SVI is not mapped at Layer 3, the SVI is created, but it is automatically shut down.

When the primary VLAN is associated with and mapped to the secondary VLAN, any configuration on the primary VLAN is propagated to the secondary VLAN SVIs. For example, if you assign an IP subnet to the primary VLAN SVI, this subnet is the IP subnet address of the entire PVLAN.

Per-Virtual Port Error-Disable on PVLANs

For PVLANs, per-virtual port error-disable behavior is defined as follows:

  • On a PVLAN promiscuous or promiscuous trunk ports, if a violation occurs on the primary VLAN, it is error-disabled.
  • On a PVLAN host or trunk port, if a violation occurs on the secondary VLAN, the associated primary VLAN is error-disabled.
  • On a standard trunk port that carries both primary and secondary VLANs, if a violation occurs on the primary VLAN, this VLAN and all its associated secondary VLANs are error-disabled. If a violation occurs on a secondary VLAN, the associated primary VLAN and all its associated secondary VLANs are error-disabled.

PVLAN Commands

This table lists the commands most commonly used with PVLANs.

Command Purpose Location

private-vlan {community | twoway-community | isolated | primary}

Configures a VLAN as a PVLAN. Configuring a VLAN as a PVLAN, page 39-15

private-vlan association {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

Associates the secondary VLAN with the primary VLAN.

Associating a Secondary VLAN with a Primary VLAN, page 39-16

The list can contain only one isolated VLAN ID; it can also contain multiple community VLAN IDs.

show vlan private-vlan [type] Verifies the configuration. Configuring a VLAN as a PVLAN, page 39-15

Associating a Secondary VLAN with a Primary VLAN, page 39-16

Page 859 of the Cisco Systems 4500 user manual — Configuring PVLANs
Page 859 · click to enlarge
Page 859

Chapter 39 Configuring Private VLANs

Command Purpose Location

show interface private-vlan mapping Verifies the configuration. Permitting Routing of Secondary VLAN Ingress Traffic, page 39-23

switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 interface as a PVLAN port.

Configuring PVLANs, page 39-11

switchport private-vlan mapping [trunk] primary_vlan_ID {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

Maps the PVLAN promiscuous port to a primary VLAN and to selected secondary VLANs.

Configuring a Layer 2 Interface as a PVLAN Promiscuous Port, page 39-17

Configuring a Layer 2 Interface as a Promiscuous PVLAN Trunk Port, page 39-21

Switch(config-if)# switchport private-vlan host-association primary_vlan_ID secondary_vlan_ID

Associates the Layer 2 interface with a PVLAN.

Configuring a Layer 2 Interface as a PVLAN Host Port, page 39-18

switchport private-vlan association trunk primary_vlan_ID secondary_vlan_ID

Configures association between primary VLANs and secondary VLANs the PVLAN trunk port with a PVLAN.

Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port, page 39-19

switchport private-vlan trunk allowed vlan vlan_list all | none | [add | remove | except] vlan_atom[,vlan_atom...]

Configures a list of allowed normal VLANs on a PVLAN trunk port.

Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port, page 39-19

switchport private-vlan trunk native vlan vlan_id

Configures a VLAN to which untagged packets (as in IEEE 802.1Q tagging) are assigned on a PVLAN trunk port.

Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port, page 39-19

Configuring PVLANs

These sections describe how to configure PVLANs:

  • Basic PVLAN Configuration Procedure, page 39-12
  • Default Private-VLAN Configuration, page 39-12
  • PVLAN Configuration Guidelines and Restrictions, page 39-12
  • Configuring a VLAN as a PVLAN, page 39-15
  • Associating a Secondary VLAN with a Primary VLAN, page 39-16
  • Configuring a Layer 2 Interface as a PVLAN Promiscuous Port, page 39-17
  • Configuring a Layer 2 Interface as a PVLAN Host Port, page 39-18

Configuring PVLANs

Page 860 of the Cisco Systems 4500 user manual — PVLAN Configuration Guidelines and Restrictions
Page 860 · click to enlarge
Page 860

Chapter 39 Configuring Private VLANs Configuring PVLANs

  • Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port, page 39-19
  • Configuring a Layer 2 Interface as a Promiscuous PVLAN Trunk Port, page 39-21
  • Permitting Routing of Secondary VLAN Ingress Traffic, page 39-23
  • Configuring PVLAN over EtherChannel, page 39-24

Basic PVLAN Configuration Procedure

To configure a PVLAN, follow these basic steps:

Step 1 Set VTP mode to transparent. See the “VLAN Trunking Protocol” section on page 13-7.

Step 2 Create the secondary VLANs. See the “Configuring a VLAN as a PVLAN” section on page 39-15.

Step 3 Create the primary VLAN. See the “Configuring a VLAN as a PVLAN” section on page 39-15.

Step 4 Associate the secondary VLAN to the primary VLAN. See the “Associating a Secondary VLAN with a Primary VLAN” section on page 39-16.

Step 5 Configure an interface as an isolated or community host or trunk port. See the “Configuring a Layer 2 Interface as a PVLAN Host Port” section on page 39-18 and “Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port” section on page 39-19.

Step 6 Associate the isolated port or community port to the primary-secondary VLAN pair. See the “Associating a Secondary VLAN with a Primary VLAN” section on page 39-16.

Step 7 Configure an interface as a promiscuous port. See the “Configuring a Layer 2 Interface as a PVLAN Promiscuous Port” section on page 39-17.

Step 8 Map the promiscuous port to the primary-secondary VLAN pair. See the “Configuring a Layer 2 Interface as a PVLAN Promiscuous Port” section on page 39-17.

Step 9 If you plan to use inter-VLAN routing, configure the primary SVI, and map secondary VLANs to the primary. See the “Permitting Routing of Secondary VLAN Ingress Traffic” section on page 39-23.

Step 10 Verify private-VLAN configuration. See the “Switch#” section on page 39-24.

Default Private-VLAN Configuration

No PVLANs are configured.

PVLAN Configuration Guidelines and Restrictions

When using (or configuring) PVLANs, consider these guidelines and restrictions:

  • To configure a PVLAN correctly, enable VTP in transparent mode in VTP version 1 and VTP version 2. (VTP version 3 enables you to create it in server mode).

You cannot change the VTP mode to client or server for PVLANs.

Page 861 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 861 · click to enlarge
Page 861

Chapter 39 Configuring Private VLANs

  • Do not include VLAN 1 or VLANs 1002 through 1005 in PVLANs.
  • Use only PVLAN commands to assign ports to primary, isolated, community VLANs, or twoway-community VLANs.

Layer 2 interfaces on primary, isolated, community VLANs, or twoway-community VLANs are inactive in PVLANs. Layer 2 trunk interfaces remain in the STP forwarding state.

  • You cannot configure Layer 3 VLAN interfaces for secondary VLANs.

Layer 3 VLAN interfaces for isolated and community (secondary) VLANs are inactive while the VLAN is configured as an isolated or community VLAN.

  • Do not apply dynamic access control entries (ACEs) to primary VLANs.

Cisco IOS dynamic ACL configuration applied to a primary VLAN is inactive while the VLAN is part of the PVLAN configuration.

  • To prevent spanning tree loops due to misconfigurations, enable PortFast on the PVLAN trunk ports with the spanning-tree portfast trunk command.
  • Any VLAN ACL configured on a secondary VLAN is effective in the input direction, and any VLAN ACL configured on the primary VLAN associated with the secondary VLAN is effective in the output direction. Exception case is given below.
  • On twoway-community host ports, secondary VLAN ACL and QoS are applied on egress unicast routed traffic stemming from the integrated router port
  • You can stop Layer 3 switching on an isolated or community VLAN by deleting the mapping of that VLAN with its primary VLAN.
  • PVLAN ports can be on different network devices as long as the devices are trunk-connected and the primary and secondary VLANs remain associated with the trunk
  • Isolated ports on two different devices cannot communicate with each other, but community VLAN ports can.
  • PVLANs support the following SPAN features:

– You can configure a PVLAN port as a SPAN source port.

– To monitor egress or ingress traffic separately, you can use VLAN-based SPAN (VSPAN) on primary, isolated, community VLANs, twoway-community VLANs, or use SPAN on only one VLAN.

For more information about SPAN, see Chapter 51, “Configuring SPAN and RSPAN.”

  • A primary VLAN can be associated with multiple community VLANs, or twoway-community VLANs, but only one isolated VLAN.
  • An isolated or community VLAN can be associated with only one primary VLAN.
  • If you delete a VLAN used in a PVLAN configuration, the PVLAN ports associated with the VLAN become inactive.
  • VTP does not support PVLANs. You must configure PVLANs on each device in which you plan to use PVLAN ports.
  • To maintain the security of your PVLAN configuration and avoid other use of VLANs configured as PVLANs, configure PVLANs on all intermediate devices, even if the devices have no PVLAN ports.
  • Prune the PVLANs from trunks on devices that carry no traffic in the PVLANs.

Configuring PVLANs

Page 862 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 862 · click to enlarge
Page 862

Chapter 39 Configuring Private VLANs Configuring PVLANs

  • With port ACLS functionality available, you can apply Cisco IOS ACLS to secondary VLAN ports and Cisco IOS ACLS to PVLANS (VACLs). For more information on VACLs, see Chapter 47, “Configuring Network Security with ACLs.”
  • You can apply different quality of service (QoS) configurations to primary, isolated, community VLANs, and twoway-community VLANs. See Chapter 37, “Configuring Quality of Service.” Cisco IOS ACLs applied to the Layer 3 VLAN interface of a primary VLAN automatically apply to the associated isolated, community VLANs, and twoway-community VLANs.
  • On a PVLAN trunk port a secondary VLAN ACL is applied on ingress traffic and a primary VLAN ACL is applied on egress traffic.
  • On a promiscuous port the primary VLAN ACL is applied on ingress traffic.
  • Both PVLAN secondary and promiscuous trunk ports support only IEEE 802.1q encapsulation.
  • Community VLANs cannot be propagated or carried over PVLAN trunks.
  • ARP entries learned on Layer 3 PVLAN interfaces are termed “sticky” ARP entries (we recommend that you display and verify PVLAN interface ARP entries).
  • For security reasons, PVLAN port sticky ARP entries do not age out. Connecting a device with a different MAC address but with the same IP address generates an error message and the ARP entry is not created.
  • Because PVLAN port sticky ARP entries do not age out, you must manually remove the entries if you change the MAC address. To overwrite a sticky ARP entry, first delete the entry with the no arp command, then overwrite the entry with the arp command.
  • In a DHCP environment, if you shut down your PC, it is not possible to give your IP address to someone else. To solve this problem, the Catalyst 4500 series switch supports the no ip sticky-arp command. This command promotes IP address overwriting and reuse in a DHCP environment.
  • Normal VLANs can be carried on a promiscuous or isolated trunk port.
  • The default native VLAN for promiscuous trunk port is VLAN 1, the management VLAN. All untagged packets are forwarded in the native VLAN. Either the primary VLANs or a regular VLAN can be configured as native VLAN.
  • Promiscuous trunks cannot be configured to carry secondary VLANs. If a secondary VLAN is specified in the allowed VLAN list, the configuration is accepted but the port is not operational/forwarding in the secondary VLAN. This includes even those VLANs that are of secondary but not associated with any primary VLAN on given port.
  • On a promiscuous trunk port, the primary VLAN ACL and QoS are applied on ingress traffic coming in primary VLANs.
  • On a promiscuous trunk port, no VLAN ACL or QoS is applied to the egress traffic. it is because for upstream direction, traffic in PVLAN logically flows in the secondary VLAN. Due to VLAN translation in hardware, information about received secondary VLANs has been lost. No policies are applied. This restriction also applies to traffic bridged from other ports in the same primary VLANs.
  • Do not configure port security on PVLAN promiscuous trunk port and vice versa.

If port security is enabled on a promiscuous trunk port, that port may behave in an unpredictable manner because this functionality is not supported.

  • Do not configure IEEE 802.1X on a PVLAN promiscuous trunk port.
Page 863 of the Cisco Systems 4500 user manual — Configuring a VLAN as a PVLAN
Page 863 · click to enlarge
Page 863

Chapter 39 Configuring Private VLANs

Configuring a VLAN as a PVLAN

To configure a VLAN as a PVLAN, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# vlan vlan_ID Enters VLAN configuration mode.

Step 3 Switch(config-vlan)# private-vlan {community | twoway-community | isolated | primary}

Configures a VLAN as a PVLAN.

  • This command does not take effect until you exit VLAN configuration submode.

You can use the no keyword to clear PVLAN status.

Step 4 Switch(config-vlan)# end Exits VLAN configuration mode.

Step 5 Switch# show vlan private-vlan [type] Verifies the configuration.

This example shows how to configure VLAN 202 as a primary VLAN and verify the configuration:

Switch# configure terminal Switch(config)# vlan 202 Switch(config-vlan)# private-vlan primary Switch(config-vlan)# end Switch# show vlan private-vlan Primary Secondary Type Interfaces 202 primary

This example shows how to configure VLAN 303 as a community VLAN and verify the configuration:

Switch# configure terminal Switch(config)# vlan 303 Switch(config-vlan)# private-vlan community Switch(config-vlan)# end Switch# show vlan private-vlan

Primary Secondary Type Interfaces 202 primary 303 community

This example shows how to configure VLAN 440 as an isolated VLAN and verify the configuration:

Switch# configure terminal Switch(config)# vlan 440 Switch(config-vlan)# private-vlan isolated Switch(config-vlan)# end Switch# show vlan private-vlan

Primary Secondary Type Interfaces 202 primary 303 community 440 isolated

Configuring PVLANs

Page 864 of the Cisco Systems 4500 user manual — Associating a Secondary VLAN with a Primary VLAN
Page 864 · click to enlarge
Page 864

Chapter 39 Configuring Private VLANs Configuring PVLANs

This example shows how to configure VLAN 550 as a twoway-community VLAN and verify the configuration:

Switch# configure terminal Switch(config)# vlan 550 Switch(config-vlan)# private-vlan twoway-community Switch(config-vlan)# end Switch# show vlan private-vlan

Primary Secondary Type Interfaces 202 primary 303 community 440 isolated 550 twoway-community

Associating a Secondary VLAN with a Primary VLAN

To associate secondary VLANs with a primary VLAN, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# vlan primary_vlan_ID Enters VLAN configuration mode for the primary VLAN.

Step 3 Switch(config-vlan)# private-vlan association {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

Associates the secondary VLAN with the primary VLAN.

The list can contain only one isolated VLAN ID; it can also contain multiple community or twoway-community VLAN IDs.

You can use the no keyword to clear all secondary associations.

Step 4 Switch(config-vlan)# end Exits VLAN configuration mode.

Step 5 Switch# show vlan private-vlan [type] Verifies the configuration.

When you associate secondary VLANs with a primary VLAN, note the following:

  • The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
  • The secondary_vlan_list parameter can contain multiple community or twoway-community VLAN IDs.
  • The secondary_vlan_list parameter can contain only one isolated VLAN ID.
  • Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to associate secondary VLANs with a primary VLAN.
  • Use the remove keyword with a secondary_vlan_list to clear the association between secondary VLANs and a primary VLAN.
  • The command does not take effect until you exit VLAN configuration submode.

This example shows how to associate community VLANs 303 through 307 and 309, twoway-community VLANs 550 through 552, and isolated VLAN 440 with primary VLAN 202 and verify the configuration:

Page 865 of the Cisco Systems 4500 user manual — Configuring a Layer 2 Interface as a PVLAN Promiscuous Port
Page 865 · click to enlarge
Page 865

Chapter 39 Configuring Private VLANs

Switch# configure terminal Switch(config)# vlan 202 Switch(config-vlan)# private-vlan association 303-307,309,440 Switch(config-vlan)# end Switch# show vlan private-vlan

Primary Secondary Type Interfaces 202 303 community 202 304 community 202 305 community 202 306 community 202 307 community 202 309 community 202 440 isolated 202 550 twoway-community 202 551 twoway-community 202 552 twoway-community 308 community

Configuring a Layer 2 Interface as a PVLAN Promiscuous Port

To configure a Layer 2 interface as a PVLAN promiscuous port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the LAN interface to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 interface as a PVLAN promiscuous port.

Step 4 Switch(config-if)# [no] switchport private-vlan mapping [trunk] primary_vlan_ID {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

Maps the PVLAN promiscuous port to a primary VLAN and to selected secondary VLANs.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show interfaces {fastethernet | gigabitethernet | tengigabitethernet} slot/port switchport

Verifies the configuration.

When you configure a Layer 2 interface as a PVLAN promiscuous port, note the following:

  • The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
  • Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to map the secondary VLANs to the PVLAN promiscuous port.

Configuring PVLANs

Page 866 of the Cisco Systems 4500 user manual — Configuring a Layer 2 Interface as a PVLAN Host Port
Page 866 · click to enlarge
Page 866

Chapter 39 Configuring Private VLANs Configuring PVLANs

  • Use the remove keyword with a secondary_vlan_list to clear the mapping between secondary VLANs and the PVLAN promiscuous port.

This example shows how to configure interface FastEthernet 5/2 as a PVLAN promiscuous port, map it to a PVLAN, and verify the configuration:

Switch# configure terminal Switch(config)# interface fastethernet 5/2 Switch(config-if)# switchport mode private-vlan promiscuous Switch(config-if)# switchport private-vlan mapping 200 2 Switch(config-if)# end Switch# show interfaces fastethernet 5/2 switchport Name:Fa5/2 Switchport:Enabled Administrative Mode:private-vlan promiscuous Operational Mode:private-vlan promiscuous Administrative Trunking Encapsulation:negotiate Operational Trunking Encapsulation:native Negotiation of Trunking:Off Access Mode VLAN:1 (default) Trunking Native Mode VLAN:1 (default) Voice VLAN:none Administrative Private VLAN Host Association:none Administrative Private VLAN Promiscuous Mapping:200 (VLAN0200) 2 (VLAN0002) Private VLAN Trunk Native VLAN:none Administrative Private VLAN Trunk Encapsulation:dot1q Administrative Private VLAN Trunk Normal VLANs:none Administrative Private VLAN Trunk Private VLANs:none Operational Private VLANs: 200 (VLAN0200) 2 (VLAN0002) Trunking VLANs Enabled:ALL Pruning VLANs Enabled:2-1001 Capture Mode Disabled Capture VLANs Allowed:ALL

Configuring a Layer 2 Interface as a PVLAN Host Port

To configure a Layer 2 interface as a PVLAN host port, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the LAN port to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 interface as a PVLAN host port.

Step 4 Switch(config-if)# [no] switchport private-vlan host-association primary_vlan_ID secondary_vlan_ID

Associates the Layer 2 interface with a PVLAN.

You can use the no keyword to delete all associations from the primary VLAN.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show interfaces {fastethernet | gigabitethernet | tengigabitethernet} slot/port switchport

Verifies the configuration.

Page 867 of the Cisco Systems 4500 user manual — Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port
Page 867 · click to enlarge
Page 867

Chapter 39 Configuring Private VLANs

This example shows how to configure interface FastEthernet 5/1 as a PVLAN host port and verify the configuration:

Switch# configure terminal Switch(config)# interface fastethernet 5/1 Switch(config-if)# switchport mode private-vlan host Switch(config-if)# switchport private-vlan host-association 202 440 Switch(config-if)# end

Switch# show interfaces fastethernet 5/1 switchport Name: Fa5/1 Switchport: Enabled Administrative Mode: private-vlan host Operational Mode: private-vlan host Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: native Negotiation of Trunking: Off Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Voice VLAN: none Appliance trust: none Administrative Private Vlan Host Association: 202 (VLAN0202) 440 (VLAN0440) Promiscuous Mapping: none Trunk encapsulation : dot1q Trunk vlans: Operational private-vlan(s): 202 (VLAN0202) 440 (VLAN0440) Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL

Configuring a Layer 2 Interface as an Isolated PVLAN Trunk Port

To configure a Layer 2 interface as an isolated PVLAN trunk port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the LAN port to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 interface as a PVLAN trunk port.

Configuring PVLANs

Page 868 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 868 · click to enlarge
Page 868

Chapter 39 Configuring Private VLANs Configuring PVLANs

Step 4 Switch(config-if)# [no] switchport private-vlan association trunk primary_vlan_ID secondary_vlan_ID

Configures association between primary VLANs and secondary VLANs the PVLAN trunk port with a PVLAN.

You can use the no keyword to delete all associations from the primary VLAN.

Step 5 Switch(config-if)# [no] switchport private-vlan trunk allowed vlan vlan_list all | none | [add | remove | except] vlan_atom[,vlan_atom...]

Configures a list of allowed normal VLANs on a PVLAN trunk port.

You can use the no keyword to remove all allowed normal VLANs on a PVLAN trunk port.

Step 6 Switch(config-if)# switchport private-vlan trunk native vlan vlan_id

Configures a VLAN to which untagged packets (as in IEEE 802.1Q tagging) are assigned on a PVLAN trunk port.

If there is no native VLAN configured, all untagged packets are dropped.

If the native VLAN is a secondary VLAN and the port does not have the association for the secondary VLAN, the untagged packets are dropped.

You can use the no keyword to remove all native VLANs on a PVLAN trunk port.

Step 7 Switch(config-if)# end Exits configuration mode.

Step 8 Switch# show interfaces {fastethernet | gigabitethernet | tengigabitethernet} slot/port switchport

Verifies the configuration.

This example shows how to configure interface FastEthernet 5/2 as a secondary trunk port, and verify the configuration:

Switch# configure terminal Switch(config)# interface fastethernet 5/2 Switch(config-if)# switchport mode private-vlan trunk secondary Switch(config-if)# switchport private-vlan trunk native vlan 10 Switch(config-if)# switchport private-vlan trunk allowed vlan 10. 3-4 Switch(config-if)# switchport private-vlan association trunk 3 301 Switch(config-if)# end Switch# show interfaces fastethernet 5/2 switchport Name: Fa5/2

Switchport: Enabled Administrative Mode: private-vlan trunk secondary Operational Mode: private-vlan trunk secondary Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default)

Page 869 of the Cisco Systems 4500 user manual — Configuring a Layer 2 Interface as a Promiscuous PVLAN Trunk Port
Page 869 · click to enlarge
Page 869

Chapter 39 Configuring Private VLANs

Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none A Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: 10 Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk associations: 3 (VLAN0003) 301 (VLAN0301) Administrative private-vlan trunk mappings: none Operational private-vlan: none Operational Normal VLANs: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL

Unknown unicast blockeddisabled Unknown multicast blocked: disabled Appliance trust: none

Configuring a Layer 2 Interface as a Promiscuous PVLAN Trunk Port

To configure a Layer 2 interface as a promiscuous PVLAN trunk port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port

Specifies the LAN interface to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 interface as a PVLAN promiscuous trunk port.

Step 4 Switch(config-if)# [no] switchport private-vlan mapping [trunk] primary_vlan_ID {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

Maps the promiscuous PVLAN port to a primary VLAN and to selected secondary VLANs.

This command offers 3 levels of removal. See the examples that follow this table.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show interfaces {fastethernet | gigabitethernet | tengigabitethernet} slot/port switchport

Verifies the configuration.

Note The maximum number of unique PVLAN pairs supported by the switchport private-vlan mapping trunk command is 500. For example, 500 isolated secondary VLANs could map to 500 primary VLANs, because only one isolated VLAN association per primary VLAN is supported. Or, 500 community secondary VLANs could map to one primary VLAN. Or, 250 community secondary VLANs could map to 1 primary VLAN, and another 250 community secondary VLANs could map to another primary VLAN for a total of 500 pairs.

Configuring PVLANs

Page 870 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 870 · click to enlarge
Page 870

Chapter 39 Configuring Private VLANs Configuring PVLANs

The [no] switchport private-vlan mapping command provides the following three levels of removal:

  • Remove one or more secondary VLANs from the list. For example:

Switch(config-if)# switchport private-vlan mapping trunk 2 remove 222

  • Remove the entire mapping of PVLAN promiscuous trunk port to the specified primary VLAN (and all of its selected secondary VLANs). For example:

Switch(config-if)# no switchport private-vlan mapping trunk 2

  • Remove the mapping of a PVLAN promiscuous trunk port to all previously configured primary VLANs (and all of their selected secondary VLANs). For example:

Switch(config-if)# no switchport private-vlan mapping trunk

When you configure a Layer 2 interface as a PVLAN promiscuous port, note the following:

  • Multiple PVLAN pairs can be specified using the switchport private-vlan mapping trunk command so that a promiscuous trunk port can carry multiple primary VLANs.
  • The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
  • Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to map the secondary VLANs to the PVLAN promiscuous port.
  • Use the remove keyword with a secondary_vlan_list to clear the mapping between secondary VLANs and the PVLAN promiscuous port.

This example shows how to configure interface FastEthernet 5/2 as a promiscuous trunk port and to verify the configuration:

Switch# configure terminal Switch(config)# interface fastethernet 5/2 Switch(config-if)# switchport mode private-vlan trunk promiscuous Switch(config-if)# switchport private-vlan trunk native vlan 10 Switch(config-if)# switchport private-vlan trunk allowed vlan 10, 3-4 Switch(config-if)# switchport private-vlan mapping trunk 3 301, 302 Switch(config-if)# end Switch# show interfaces fastethernet 5/2 switchport Name: Fa5/2 Switchport: Enabled Administrative Mode: private-vlan trunk promiscuous Operational Mode: private-vlan trunk promiscuous Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: 10 Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: 3-4,10 Administrative private-vlan trunk associations: none Administrative private-vlan trunk mappings: 3 (VLAN0003) 301 (VLAN0301) 302 (VLAN0302) Operational private-vlan: 3 (VLAN0003) 301 (VLAN0301) 302 (VLAN0302) Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001

Page 871 of the Cisco Systems 4500 user manual — Permitting Routing of Secondary VLAN Ingress Traffic
Page 871 · click to enlarge
Page 871

Chapter 39 Configuring Private VLANs

Capture Mode Disabled Capture VLANs Allowed: ALL

Unknown unicast blockeddisabled Unknown multicast blocked: disabled Appliance trust: none

Permitting Routing of Secondary VLAN Ingress Traffic

To permit routing of secondary VLAN ingress traffic, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface vlan primary_vlan_ID Enters interface configuration mode for the primary VLAN.

Step 3 Switch(config-if)# [no] private-vlan mapping primary_vlan_ID {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

To permit routing on the secondary VLAN ingress traffic, map the secondary VLAN to the primary VLAN.

You can use the no keyword to delete all associations from the primary VLAN.

Step 4 Switch(config-if)# end Exits configuration mode.

Step 5 Switch# show interface private-vlan mapping Verifies the configuration.

When you permit routing on the secondary VLAN ingress traffic, note the following:

  • The private-vlan mapping interface configuration command only affects PVLAN ingress traffic that is Layer 3 switched.
  • The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
  • Enter a secondary_vlan_list parameter or use the add keyword with a secondary_vlan_list parameter to map the secondary VLANs to the primary VLAN.
  • Use the remove keyword with a secondary_vlan_list parameter to clear the mapping between secondary VLANs and the primary VLAN.

This example shows how to permit routing of secondary VLAN ingress traffic from PVLANs 303 through 307, 309, and 440 and verify the configuration:

Switch# configure terminal Switch(config)# interface vlan 202 Switch(config-if)# private-vlan mapping add 303-307,309,440 Switch(config-if)# end Switch# show interfaces private-vlan mapping Interface Secondary VLAN Type vlan202 303 community vlan202 304 community vlan202 305 community vlan202 306 community vlan202 307 community

Configuring PVLANs

Page 872 of the Cisco Systems 4500 user manual — Configuring a Layer 2 Etherchannel as a PVLAN Promiscuous Port
Page 872 · click to enlarge
Page 872

Chapter 39 Configuring Private VLANs Configuring PVLANs

vlan202 309 community vlan202 440 isolated

Configuring PVLAN over EtherChannel

After creating a Layer 2 Etherchannel, you can configure it with any of the four PVLAN port modes (promiscuous host, secondary host, isolated trunk, promiscuous trunk).

This section includes the following topics:

  • Configuring a Layer 2 EtherChannel, page 39-24
  • Configuring a Layer 2 Etherchannel as a PVLAN Promiscuous Port, page 39-24
  • Configuring a Layer 2 EtherChannel as a PVLAN Host Port, page 39-26
  • Configuring a Layer 2 EtherChannel as an Isolated PVLAN Trunk Port, page 39-27
  • Configuring a Layer 2 Etherchannel as a Promiscuous PVLAN Trunk Port, page 39-28

Configuring a Layer 2 EtherChannel

Do the following:

Step 1 Configure a VLAN as a PVLAN.

Refer to the URL:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/01xo/configuration/guide/pvlans.ht ml#wp1174853

Step 2 Associate a secondary VLAN with a primary VLAN.

Refer to the URL:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/01xo/configuration/guide/pvlans.ht ml#wp1121802

Step 3 Configuring a Layer 2 EtherChannel.

Refer to the URL

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/01xo/configuration/guide/channel.ht ml#wp1020670

Configuring a Layer 2 Etherchannel as a PVLAN Promiscuous Port

Perform the following task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface port-channel interface-number

Specifies the LAN interface to configure.

Switch#

Page 873 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 873 · click to enlarge
Page 873

Chapter 39 Configuring Private VLANs

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 Etherchannel as a PVLAN promiscuous port.

Step 4 Switch(config-if)# [no] switchport private-vlan mapping [trunk] primary_vlan_ID {secondary_vlan_list | add secondary_vlan_list}

(Maps the PVLAN promiscuous port to a primary VLAN and to selected secondary VLANs.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show interface port-channel interface-number switchport

Verifies the configuration.

When you configure a Layer 2 Etherchannel as a PVLAN promiscuous port, note the following:

  • The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
  • Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to map the secondary VLANs to the PVLAN promiscuous port.
  • Use the remove keyword with a secondary_vlan_list to clear the mapping between secondary VLANs and the PVLAN promiscuous port.

This example shows how to configure interface port channel 63 as a PVLAN promiscuous port, map it to a PVLAN, and verify the configuration:

Switch# configure terminal Switch(config)# interface port-channel 63 Switch(config-if)# switchport mode private-vlan promiscuous Switch(config-if)# switchport private-vlan mapping 200 2 Switch(config-if)# end Switch# show interfaces port-channel 63 switchport Name:Po63 Switchport:Enabled Administrative Mode:private-vlan promiscuous Operational Mode:private-vlan promiscuous Administrative Trunking Encapsulation:negotiate Operational Trunking Encapsulation:native Negotiation of Trunking:Off Access Mode VLAN:1 (default) Trunking Native Mode VLAN:1 (default) Voice VLAN:none Administrative Private VLAN Host Association:none Administrative Private VLAN Promiscuous Mapping:200 (VLAN0200) 2 (VLAN0002) Private VLAN Trunk Native VLAN:none Administrative Private VLAN Trunk Encapsulation:dot1q Administrative Private VLAN Trunk Normal VLANs:none Administrative Private VLAN Trunk Private VLANs:none Operational Private VLANs: 200 (VLAN0200) 2 (VLAN0002) Trunking VLANs Enabled:ALL Pruning VLANs Enabled:2-1001 Capture Mode Disabled Capture VLANs Allowed:ALL

Configuring PVLANs

Page 874 of the Cisco Systems 4500 user manual — Configuring a Layer 2 EtherChannel as a PVLAN Host Port
Page 874 · click to enlarge
Page 874

Chapter 39 Configuring Private VLANs Configuring PVLANs

Configuring a Layer 2 EtherChannel as a PVLAN Host Port

To configure a Layer 2 EtherChannel as a PVLAN host port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface port-channel interface-number

Specifies the LAN interface to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 Etherchannel as a PVLAN host port.

Step 4 Switch(config-if)# [no] switchport private-vlan host-association primary_vlanb_ID secondary_vlan_ID

Associates the Layer 2 interface with a PVLAN.

You can use the no keyword to delete all associations from the primary VLAN.

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show interface port-channel interface-number switchport

Verifies the configuration.

This example shows how to configure interface port channel 63 as a PVLAN host port and to verify the configuration:

Switch# configure terminal Switch(config)# interface port-channel 63 Switch(config-if)# switchport mode private-vlan host Switch(config-if)# switchport private-vlan host-association 202 440 Switch(config-if)# end Switch# show interfaces port-channel 63 switchport Name: Po63 Switchport: Enabled Administrative Mode: private-vlan host Operational Mode: private-vlan host Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: native Negotiation of Trunking: Off Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Voice VLAN: none Appliance trust: none Administrative Private Vlan Host Association: 202 (VLAN0202) 440 (VLAN0440) Promiscuous Mapping: none Trunk encapsulation : dot1q Trunk vlans: Operational private-vlan(s): 202 (VLAN0202) 440 (VLAN0440) Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL

Page 875 of the Cisco Systems 4500 user manual — Configuring a Layer 2 EtherChannel as an Isolated PVLAN Trunk Port
Page 875 · click to enlarge
Page 875

Chapter 39 Configuring Private VLANs

Configuring a Layer 2 EtherChannel as an Isolated PVLAN Trunk Port

To configure a Layer 2 EtherChannel as an isolated PVLAN trunk port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface port-channel interface-number

Specifies the LAN interface to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 Etherchannel as a PVLAN trunk port.

Step 4 Switch(config-if)# [no] switchport private-vlan association trunk primary_vlanb_ID secondary_vlan_ID

(Configures association between primary VLANs and secondary VLANs the PVLAN trunk port with a PVLAN.

You can use the no keyword to delete all associations from the primary VLAN.

Step 5 Switch(config-if)# [no] switchport private-vlan trunk allowed vlan vlan_list [all | none | [add | remove | except] vlan_atom [,vlan_atom...]

(Configures a list of allowed normal VLANs on a PVLAN trunk port

You can use the no keyword to remove all allowed normal VLANs on a PVLAN trunk port.

Step 6 Switch(config-if)# switchport private-vlan trunk native vlan vlan_id

(Configures a VLAN to which untagged packets (as in IEEE 802.1Q tagging) are assigned on a PVLAN trunk port.

If there no native VLAN is configured, all untagged packets are dropped.

If the native VLAN is a secondary VLAN and the port does not have the association for the secondary VLAN, the untagged packets are dropped.

You can use the no keyword to remove all native VLANs on a PVLAN trunk port.)

Step 7 Switch(config-if)# end Exits configuration mode.

Step 8 Switch# show interfaces Port-channel interface-number switchport

Verifies the configuration.

Configuring PVLANs

Page 876 of the Cisco Systems 4500 user manual — Configuring a Layer 2 Etherchannel as a Promiscuous PVLAN Trunk Port
Page 876 · click to enlarge
Page 876

Chapter 39 Configuring Private VLANs Configuring PVLANs

This example shows how to configure interface port channel 63 as a secondary trunk port, and to verify the configuration:

Switch# configure terminal Switch(config)# interface port-channel 63 Switch(config-if)# switchport mode private-vlan trunk secondary Switch(config-if)# switchport private-vlan trunk native vlan 10 Switch(config-if)# switchport private-vlan trunk allowed vlan 10. 3-4 Switch(config-if)# switchport private-vlan association trunk 3 301 Switch(config-if)# end Switch# show interfaces port-channel 63 switchport Name: Po63 Switchport: Enabled Administrative Mode: private-vlan trunk secondary Operational Mode: private-vlan trunk secondary Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: 10 Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk associations: 3 (VLAN0003) 301 (VLAN0301) Administrative private-vlan trunk mappings: none Operational private-vlan: none Operational Normal VLANs: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Unknown unicast blocked: disabled Unknown multicast blocked: disabled Appliance trust: none

Configuring a Layer 2 Etherchannel as a Promiscuous PVLAN Trunk Port

To configure a Layer 2 Etherchannel as a promiscuous PVLAN trunk port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface port-channel interface-number

Specifies the LAN interface to configure.

Step 3 Switch(config-if)# switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}

Configures a Layer 2 Etherchannel as a PVLAN promiscuous trunk port.

Step 4 Switch(config-if)# [no] switchport private-vlan mapping [trunk] primary_vlan_ID {secondary_vlan_list | add secondary_vlan_list | remove secondary_vlan_list}

Maps the promiscuous PVLAN port to a primary VLAN and to the selected secondary VLANs.

This command offers 3 levels of removal.

Page 877 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 877 · click to enlarge
Page 877

Chapter 39 Configuring Private VLANs

Step 5 Switch(config-if)# end Exits configuration mode.

Step 6 Switch# show interfaces port-channel interface-number switchport

Verifies the configuration.

Note The maximum number of unique PVLAN pairs supported by the switchport private-vlan mapping trunk command is 500. For example, 500 isolated secondary VLANs could map to 500 primary VLANs, because only one isolated VLAN association per primary VLAN is supported. Or, 500 community secondary VLANs could map to one primary VLAN. Or, 250 community secondary VLANs could map to 1 primary VLAN, and another 250 community secondary VLANs could map to another primary VLAN for a total of 500 pairs.

The [no] switchport private-vlan mapping command provides the following three levels of removal:

  • Remove one or more secondary VLANs from the list.

For example:

Switch(config-if)# switchport private-vlan mapping trunk 2 remove 222

  • Remove the entire mapping of PVLAN promiscuous trunk port to the specified primary VLAN (and all of its selected secondary VLANs).

For example:

Switch(config-if)# no switchport private-vlan mapping trunk 2

  • Remove the mapping of a PVLAN promiscuous trunk port to all previously configured primary VLANs (and all of their selected secondary VLANs).

For example:

Switch(config-if)# no switchport private-vlan mapping trunk

When you configure a Layer 2 etherchannel as a PVLAN promiscuous trunk port, observe that multiple private VLAN pairs can be specified with the switchport private-vlan mapping trunk command so that a promiscuous trunk port can carry multiple primary VLANs.

  • The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
  • Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to map the secondary VLANs to the PVLAN promiscuous port.
  • Use the remove keyword with a secondary_vlan_list to clear the mapping between secondary VLANs and the PVLAN promiscuous port.

This example shows how to configure interface Port-channel 63 as a promiscuous trunk port and to verify the configuration:

Switch# configure terminal Switch(config)# interface port-channel 63 Switch(config-if)# switchport mode private-vlan trunk promiscuous

Configuring PVLANs

Page 878 of the Cisco Systems 4500 user manual — Configuring Private VLANs
Page 878 · click to enlarge
Page 878

Chapter 39 Configuring Private VLANs Configuring PVLANs

Switch(config-if)# switchport private-vlan trunk native vlan 10 Switch(config-if)# switchport private-vlan trunk allowed vlan 10, 3-4 Switch(config-if)# switchport private-vlan mapping trunk 3 301, 302 Switch(config-if)# end Switch# show interfaces port-channel 63 switchport Name: Po63 Switchport: Enabled Administrative Mode: private-vlan trunk promiscuous Operational Mode: private-vlan trunk promiscuous Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: 10 Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: 3-4,10 Administrative private-vlan trunk associations: none Administrative private-vlan trunk mappings: 3 (VLAN0003) 301 (VLAN0301) 302 (VLAN0302) Operational private-vlan: 3 (VLAN0003) 301 (VLAN0301) 302 (VLAN0302) Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Unknown unicast blocked: disabled Unknown multicast blocked: disabled Appliance trust: none

Page 879 of the Cisco Systems 4500 user manual — About 802.1X Port-Based Authentication
Page 879 · click to enlarge
Page 879

C H A P T E R

Configuring 802.1X Port-Based Authentication

This chapter describes how to configure IEEE 802.1X port-based authentication on the Catalyst 4500 series switch to prevent unauthorized client devices from gaining access to the network.

This chapter includes the following major sections:

  • About 802.1X Port-Based Authentication, page 40-1
  • Configuring 802.1X Port-Based Authentication, page 40-26
  • Controlling Switch Access with RADIUS, page 40-92
  • Displaying 802.1X Statistics and Status, page 40-113
  • Displaying Authentication Details, page 40-114

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About 802.1X Port-Based Authentication

802.1X defines 802.1X port-based authentication as a client-server based access control and authentication protocol that restricts unauthorized clients from connecting to a LAN through publicly accessible ports. An authentication server validates each supplicant (client) connected to an authenticator (network access switch) port before making available any services offered by the switch or the LAN.

Page 880 of the Cisco Systems 4500 user manual — Device Roles
Page 880 · click to enlarge
Page 880

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Until a client is authenticated, only Extensible Authentication Protocol over LAN (EAPOL) traffic is allowed using the port to which the client is connected. After authentication succeeds, normal traffic can pass using the port.

To configure 802.1X port-based authentication, you need to understand the concepts in these sections:

  • Device Roles, page 40-2
  • 802.1X and Network Access Control, page 40-3
  • Authentication Initiation and Message Exchange, page 40-4
  • Ports in Authorized and Unauthorized States, page 40-5
  • 802.1X Host Mode, page 40-6
  • 802.1X Violation Mode, page 40-8
  • Using MAC Move, page 40-9
  • Using MAC Replace, page 40-9
  • Using 802.1X with VLAN Assignment, page 40-10
  • Using 802.1X for Guest VLANs, page 40-11
  • Using 802.1X with MAC Authentication Bypass, page 40-12
  • Using 802.1X with Web-Based Authentication, page 40-14
  • Using 802.1X with Inaccessible Authentication Bypass, page 40-14
  • Using 802.1X with Unidirectional Controlled Port, page 40-15
  • Using 802.1X with VLAN User Distribution, page 40-16
  • Using 802.1X with Authentication Failed VLAN Assignment, page 40-17
  • Using 802.1X with Port Security, page 40-19
  • Using 802.1X Authentication with ACL Assignments and Redirect URLs, page 40-20
  • Using 802.1X with RADIUS-Provided Session Timeouts, page 40-21
  • Using 802.1X with Voice VLAN Ports, page 40-22
  • Using Multiple Domain Authentication and Multiple Authentication, page 40-22
  • 802.1X Supplicant and Authenticator Switches with Network Edge Access Topology, page 40-24
  • How 802.1X Fails on a Port, page 40-25
  • Supported Topologies, page 40-25

Device Roles

With 802.1X port-based authentication, network devices have specific roles. Figure 40-1 shows the role of each device, which is described below.

Page 881 of the Cisco Systems 4500 user manual — 802.1X and Network Access Control
Page 881 · click to enlarge
Page 881

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

Figure 40-1 802.1X Device Roles

  • Client—The workstation that requests access to the LAN, and responds to requests from the switch. The workstation must be running 802.1X-compliant client software.
  • Authenticator—Controls physical access to the network based on the authentication status of the client. The Catalyst 4500 series switch acts as an intermediary between the client and the authentication server, requesting identity information from the client, verifying that information with the authentication server, and relaying a response to the client. The switch encapsulates and decapsulates the Extensible Authentication Protocol (EAP) frames and interacts with the RADIUS authentication server.

When the switch receives EAPOL frames and relays them to the authentication server, the Ethernet header is stripped and the remaining EAP frame is reencapsulated in the RADIUS format. The EAP frames are not modified or examined during encapsulation, and the authentication server must support EAP within the native frame format. When the switch receives frames from the authentication server, the frame header is removed from the server, leaving the EAP frame, which is then encapsulated for Ethernet and sent to the client.

  • Authentication server—Performs the actual authentication of the client. The authentication server validates the identity of the client and notifies the switch that the client is authorized to access the LAN and switch services. (The only supported authentication server is the RADIUS authentication server with EAP extensions; it is available in Cisco Secure Access Control Server version 3.2 and later releases.)

802.1X and Network Access Control

Network Access Control is a feature that allows port access policies to be influenced by the antivirus posture of the authenticating device.

Antivirus posture includes such elements as the operating system running on the device, the operating system version, whether antivirus software is installed and what version of antivirus signatures is available. If the authenticating device has a NAC-aware 802.1X supplicant and the authentication server is configured to support NAC using 802.1X, antivirus posture information is automatically included as part of the 802.1X authentication exchange.

For information on NAC, refer to the URL: http://www.cisco.com/en/US/netsol/ns617/index.html

Show 5 more labels / short text on this page
Client Workstations · Catalyst 4500 Network · Access Switch RADIUS · Supplicants Authenticator Authentication · server
Page 882 of the Cisco Systems 4500 user manual — Authentication Initiation and Message Exchange
Page 882 · click to enlarge
Page 882

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Authentication Initiation and Message Exchange

The switch or the client can initiate authentication. If you enable authentication on a port by using the authentication port-control auto interface configuration command (dot1x port-control auto command in Cisco IOS Release 12.2(46)SG and earlier releases), the switch must initiate authentication when it determines that the port link state has changed. It then sends an EAP-request/identity frame to the client to request its identity (typically, the switch sends an initial identity/request frame followed by one or more requests for authentication information). Upon receipt of the frame, the client responds with an EAP-response/identity frame.

However, if during bootup, the client does not receive an EAP-request/identity frame from the switch, the client can initiate authentication by sending an EAPOL-start frame, which prompts the switch to request the client’s identity.

If 802.1X is not enabled or supported on the network access switch, any EAPOL frames from the client are dropped. If the client does not receive an EAP-request/identity frame after three attempts to start authentication, the client transmits frames as if the port is in the authorized state. A port in the authorized state means that the client was successfully authenticated. When the client supplies its identity, the switch begins its role as the intermediary, passing EAP frames between the client and the authentication server until authentication succeeds or fails. If the authentication succeeds, the switch port becomes authorized.

The specific exchange of EAP frames depends on the authentication method being used. Figure 40-2 shows a message exchange that is initiated by the client using the One-Time Password (OTP) authentication method with an authentication server.

Figure 40-2 Message Exchange

Client Workstation Catalyst 4500 Network

Show 17 more labels / short text on this page
Access Switch RADIUS · EAPOL-Start · EAP-Request/Identity · EAP-Response/Identity · RADIUS Access-Request · EAP-Request/OTP · RADIUS Access-Challenge · EAP-Response/OTP · RADIUS Access-Request · EAP-Success · RADIUS Access-Accept · Port Authorized · EAPOL-Logoff · Port Unauthorized · Supplicant Authentication · Authenticator · server
Page 883 of the Cisco Systems 4500 user manual — Ports in Authorized and Unauthorized States
Page 883 · click to enlarge
Page 883

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

Ports in Authorized and Unauthorized States

The switch port state determines whether the client is granted access to the network. The port starts in the unauthorized state. While in this state, the port disallows all ingress and egress traffic except for 802.1X protocol packets. When a client is successfully authenticated, the port transitions to the authorized state, allowing all traffic for the client to flow normally.

If a non-802.1X capable client is connected to an unauthorized 802.1X port, the switch requests the client’s identity. In this situation, the client does not respond to the request, the port remains in the unauthorized state, and the client is not granted access to the network. If a guest VLAN is configured on a port that connects to a client that does not support 802.1X, the port is placed in the configured guest VLAN and in the authorized state. For more information, see the “Using 802.1X for Guest VLANs” section on page 40-11.

In contrast, when an 802.1X-enabled client connects to a port that is not running the 802.1X protocol, the client initiates the authentication process by sending the EAPOL-start frame. When no response is received, the client sends the request a fixed number of times. Because no response is received, the client begins sending frames as if the port is in the authorized state.

You can control the port authorization state by using the authentication port-control interface configuration command (dot1x port-control auto command in Cisco IOS Release 12.2(46)SG and earlier releases) and these keywords:

  • force-authorized —Disables 802.1X authentication and causes the port to transition to the authorized state without requiring authentication exchange. The port transmits and receives normal traffic without 802.1X-based authentication of the client. This setting is the default.
  • force-unauthorized —Causes the port to remain in the unauthorized state, ignoring all attempts by the client to authenticate. The switch cannot provide authentication services to the client using the interface.
  • auto —Allows 802.1X authentication and causes the port to begin in the unauthorized state, allowing only EAPOL frames to be sent and received using the port. The authentication process begins when the link state of the port transitions from down to up or when an EAPOL-start frame is received. The switch requests the identity of the client and begins relaying authentication messages between the client and the authentication server. The switch can uniquely identify each client attempting to access the network by the client’s MAC address.

If the client is successfully authenticated (receives an Accept frame from the authentication server), the port state changes to authorized, and all frames from the authenticated client are allowed using the port. If authentication fails, the port remains in the unauthorized state, but authentication can be retried. If the authentication server cannot be reached, the switch can retransmit the request. If no response is received from the server after the specified number of attempts, authentication fails and network access is not granted.

If the link state of a port transitions from up to down, or if an EAPOL-logoff frame is received by the port, the port returns to the unauthorized state.

If Multidomain Authentication (MDA) is enabled on a port, this flow can be used with some exceptions that are applicable to voice authorization. For more information on MDA, see the “Using Multiple Domain Authentication and Multiple Authentication” section on page 40-22.

Figure 40-3 shows the authentication process.

Page 884 of the Cisco Systems 4500 user manual — 802.1X Host Mode
Page 884 · click to enlarge
Page 884

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Figure 40-3 Authentication Flowchart

Client IEEE 802.1x capable?

IEEE 802.1x authentication

The switch gets an

and the EAPOL message exchange

begins.

Start IEEE 802.1x port-based

Client identity is invalid

Client identity is valid

Client MAC address identity is valid.

Client MAC address identity is invalid.

Assign port to restricted VLAN

VLAN

VLAN

All authentication servers are down. Authentication servers are up.

All authentication servers are down.

Assign port to critically authorized

VLAN

1 = This occurs if the switch does not detect EAPOL packets from the client.

802.1X Host Mode

The 802.1X port’s host mode determines whether more than one client can be authenticated on the port and how authentication is enforced. You can configure an 802.1X port to use any of the five host modes described in the following sections. In addition, each mode can be modified to allow preauthentication open access:

  • Single-Host Mode, page 40-7
  • Multiple-Hosts Mode, page 40-7
  • Multidomain Authentication Mode, page 40-7
  • Multiauthentication Mode, page 40-8
Show 20 more labels / short text on this page
Start · No · Is MAC authentication · process times out · bypass enabled? · Yes · Yes No · EAPOL message, · Use MAC authentication · authentication · bypass · Assign port to · Assign port to · Assign port to · guest VLAN · Done · Done · Done · Done · Done
Page 885 of the Cisco Systems 4500 user manual — Multidomain Authentication Mode
Page 885 · click to enlarge
Page 885

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

  • Pre-authentication Open Access, page 40-8

Single-Host Mode

You can configure an 802.1X port for single-host or multiple-hosts mode. In single-host mode (see Figure 40-1 on page 40-3), only one client can be connected to the 802.1X-enabled switch port. The switch detects the client by sending an EAPOL frame when the port link state changes to the up state. If a client leaves or is replaced with another client, the switch changes the port link state to down, and the port returns to the unauthorized state.

Multiple-Hosts Mode

In multiple-hosts mode, you can attach multiple hosts to a single 802.1X-enabled port. Figure 40-4 on page 40-7 shows 802.1X port-based authentication in a wireless LAN. In this mode, only one of the attached clients must be authorized for all clients to be granted network access. If the port becomes unauthorized (reauthentication fails or an EAPOL-logoff message is received), the switch denies network access to all of the attached clients. In this topology, the wireless access point is responsible for authenticating the clients attached to it, and it also acts as a client to the switch.

With multiple-hosts mode enabled, you can use 802.1X authentication to authenticate the port and port security to manage network access for all MAC addresses, including that of the client.

Figure 40-4 Multiple Host Mode Example

Multidomain Authentication Mode

Beginning with Cisco IOS Release 12.2(37)SG, Catalyst 4500 series switches support Multidomain Authentication (MDA), which allows an IP phone (Cisco or third-party) and a single host behind the IP phone to authenticate independently, using 802.1X, MAC authentication bypass (MAB) or (for the host only) web-based authentication. In this application, multidomain refers to two domains — data and voice — and only two MAC addresses are allowed per-port. A switch can place the host in the data VLAN and the IP phone in the voice VLAN, even though they appear on the same switch port. The data VLAN and the voice VLAN can be specified in the CLI configuration. The devices are identified as either data or voice depending on the vendor-specific-attributes (VSAs) received from the authentication, authorization, and accounting (AAA) server. The data and voice VLANs can also be obtained from the VSAs received from the (AAA) server during authentication.

Show 4 more labels / short text on this page
Authentication · server (RADIUS) · Access point · Wireless clients
Page 886 of the Cisco Systems 4500 user manual — 802.1X Violation Mode
Page 886 · click to enlarge
Page 886

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Figure 40-5 Multidomain Authentication Mode Example

Client IP phone Switch

IP

Figure 40-5 shows a typical MDA application with a single host behind an IP phone connected to the 802.1X-enabled port. Because the client is not directly connected to the switch, the switch cannot detect a loss of port link if the client is disconnected. To prevent another device from using the established authentication of the disconnected client later, Cisco IP phones send a Cisco Discovery Protocol (CDP) host presence type length value (TLV) to notify the switch of changes in the attached client’s port link state.

For details on how to configure MDA, see the “Using Multiple Domain Authentication and Multiple Authentication” section on page 40-22.

Multiauthentication Mode

Available starting in Cisco IOS Release 12.2(50)SG, multiauthentication mode allows one client on the voice VLAN and multiple authenticated clients on the data VLAN. When a hub or access point is connected to an 802.1X port, multiauthentication mode provides enhanced security over multiple-hosts mode by requiring authentication of each connected client. For non-802.1X devices, you can use MAB or web-based authentication as the fallback method for individual host authentications, allowing you to authenticate different hosts through different methods on a single port.

Multiauthentication also supports MDA functionality on the voice VLAN by assigning authenticated devices to either a data or voice VLAN depending on the VSAs received from the authentication server.

Pre-authentication Open Access

Beginning with Cisco IOS Release 12.2(50)SG, any of the four host modes can be additionally configured to allow a device to gain network access before authentication. This preauthentication open access is useful in an application such as the Pre-boot eXecution Environment (PXE), where a device must access the network to download a bootable image containing an authentication client.

Enable preauthentication open access by entering the authentication open command after host mode configuration. It acts as an extension to the configured host mode. For example, if preauthentication open access is enabled with single-host mode, then the port allows only one MAC address. When preauthentication open access is enabled, initial traffic on the port is restricted only by whatever other access restriction, independent of 802.1X, is configured on the port. If no access restriction other than 802.1X is configured on the port, then a client device has full access on the configured VLAN.

802.1X Violation Mode

You can use the authentication violation interface configuration command to configure the violation mode: restrict, shutdown, and replace.

Authentication · server (RADIUS)

Page 887 of the Cisco Systems 4500 user manual — Using MAC Replace
Page 887 · click to enlarge
Page 887

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

In single-host mode, a security violation is triggered when more than one device are detected on the data vlan. In multidomain authentication mode, a security violation is triggered when more than one device are detected on the data or voice VLAN.

Security violation cannot be triggered in multiple-host mode or multiauthentication mode.

When security violation occurs, the port is protected depending on the configured violation action:

Shutdown—Errdisables the port; the default behavior on a port.

Restrict—The port state is unaffected. However the platform is notified to restrict the traffic from offending MAC-address.

Replace—Replaces existing host with the new host, instead of error-disabling or restricting the port.

For more information see “Configuring Violation Action” section on page 40-54.

Using MAC Move

Hosts should be able to move across ports within a switch on the same or different VLAN without restriction, as if they had moved to a port on another switch.

Prior to Cisco IOS Release 12.2(54)SG, when a MAC address is authenticated on one switch port, that address is not allowed on another 802.1X switch port. If the switch detects that same MAC address on another 802.1X port, the address is not allowed.

Beginning with Cisco IOS Release 12.2(54)SG, you can move a MAC address to another port on the same switch. it is not pertinent for directly connected hosts or for hosts behind Cisco phones, where a port-down event or proxy EAPoL-Logoff/CDP TLV is received when the initial host disconnects. It is pertinent for hosts that disconnect from behind a hub, third party phone, or legacy Cisco phone, causing the session to remain up. With MAC move you can disconnect the host from such a device and connect it directly to another port on the same switch.

You can globally enable MAC move so that the device is reauthenticated on the new port. When a host moves to a second port, the session on the first port is deleted, and the host is reauthenticated on the new port.

MAC move is supported on all host modes. (The authenticated host can move to any port on the switch, for any host mode enabled on that port.)

For more information see “Configuring MAC Move” section on page 40-53.

Using MAC Replace

Beginning with Cisco IOS Release 12.2(54)SG, you can allow new hosts to connect to abandoned ports. If the configured violation action is replace, the existing host is replaced by the new host, instead of err-disabling or restricting the port (as happens for single-host and MDA modes).

it is not an issue for directly connected hosts or for hosts behind Cisco phones, where a port-down event or proxy EAPoL-Logoff/CDP TLV is received when the initial host disconnects. It is an issue where a host disconnects from behind a hub, third party phone, or legacy Cisco phone, causing the session to remain up. New hosts connecting to this port violate the host-mode, triggering a violation. When the violation action is replace, the NAD (switch) terminates the initial session and resets the authentication sequence based on the new MAC. This applies to single-host and MDA host modes. In multiple- auth mode, no attempt is made to remove an existing session on the same port.

For more information see the “Configuring MAC Replace” section on page 40-53.

Page 888 of the Cisco Systems 4500 user manual — Using 802.1X with VLAN Assignment
Page 888 · click to enlarge
Page 888

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Using 802.1X with VLAN Assignment

You can use the VLAN assignment to limit network access for certain users. With the VLAN assignment, 802.1X-authenticated ports are assigned to a VLAN based on the username of the client connected to that port. The RADIUS server database maintains the username-to-VLAN mappings. After successful 802.1X authentication of the port, the RADIUS server sends the VLAN assignment to the switch. The VLAN can be a standard VLAN or a PVLAN.

On platforms that support PVLANs, you can isolate hosts by assigning ports into PVLANs.

When configured on the switch and the RADIUS server, 802.1X with VLAN assignment has these characteristics:

  • If no VLAN is supplied by the RADIUS server, the port is configured in its access VLAN or isolated PVLAN when authentication succeeds.
  • If the authentication server provides invalid VLAN information, the port remains unauthorized. This situation prevents ports from appearing unexpectedly in an inappropriate VLAN due to a configuration error.
  • Starting with Cisco IOS Release 15.0(2)SG, if multi-authentication mode is enabled on an 802.1X port, VLAN Assignment occurs successfully for the first authenticated host. Subsequent authorized (based on user credentials) data hosts, are considered successfully authenticated, provided either they have no VLAN assignment or have a VLAN assignment matching the first successfully authenticated host on the port. This ensures that all successfully authenticated hosts on a port are members of the same VLAN. Flexibility of VLAN assignment is only provided to the first authenticated host.
  • If the authentication server provides valid VLAN information, the port is authorized and placed in the specified VLAN when authentication succeeds.
  • If the multiple-hosts mode is enabled, all hosts are in the same VLAN as the first authenticated user.
  • If 802.1X is disabled on the port, the port is returned to the configured access VLAN.
  • A port must be configured as an access port (which can be assigned only into “regular” VLANs), or as a PVLAN host port (which can be assigned only into PVLANs). Configuring a port as a PVLAN host port implies that all hosts on the port are assigned into PVLANs, whether their posture is compliant or non-compliant. If the type of the VLAN named in the Access-Accept does not match the type of VLAN expected to be assigned to the port (regular VLAN to access port, secondary PVLAN to PVLAN host port), the VLAN assignment fails.
  • If a guest VLAN is configured to handle non-responsive hosts, the type of VLAN configured as the guest VLAN must match the port type (that is, guest VLANs configured on access ports must be standard VLANs, and guest VLANs configured on PVLAN host ports must be PVLANs). If the guest VLAN’s type does not match the port type, non-responsive hosts are treated as if no guest VLAN is configured (that is, they are denied network access).
  • To assign a port into a PVLAN, the named VLAN must be a secondary PVLAN. The switch determines the implied primary VLAN from the locally configured secondary-primary association.

To configure VLAN assignment you need to perform these tasks:

Page 889 of the Cisco Systems 4500 user manual — Usage Guidelines for Using 802.1X Authentication with Guest VLANs
Page 889 · click to enlarge
Page 889

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

  • Enable AAA authorization by using the network keyword to allow interface configuration from the RADIUS server. For an illustration of how to apply the aaa authorization network group radius command, refer to the section “Enabling 802.1X Authentication” on page 28.
  • Enable 802.1X. (The VLAN assignment feature is automatically enabled when you configure 802.1X on an access port.)
  • Assign vendor-specific tunnel attributes in the RADIUS server. To ensure proper VLAN assignment, the RADIUS server must return these attributes to the switch:

– Tunnel-Type = VLAN

– Tunnel-Medium-Type = 802

– Tunnel-Private-Group-ID = VLAN NAME

Using 802.1X for Guest VLANs

You can use guest VLANs to enable non-802.1X-capable hosts to access networks that use 802.1X authentication. For example, you can use guest VLANs while you are upgrading your system to support 802.1X authentication.

Guest VLANs are supported on a per-port basis, and you can use any VLAN as a guest VLAN as long as its type matches the type of the port. If a port is already forwarding on the guest VLAN and you enable 802.1X support on the network interface of the host, the port is immediately moved out of the guest VLAN and the authenticator waits for authentication to occur.

Enabling 802.1X authentication on a port starts the 802.1X protocol. If the host fails to respond to packets from the authenticator within a certain amount of time, the authenticator brings the port up in the configured guest VLAN.

If the port is configured as a PVLAN host port, the guest VLAN must be a secondary PVLAN. If the port is configured as an access port, the guest VLAN must be a regular VLAN. If the guest VLAN configured on a port is not appropriate for the type of the port, the switch behaves as if no guest VLAN is configured (that is, non-responsive hosts are denied network access).

For details on how to configure guest VLANs, see the “Configuring 802.1X with Guest VLANs” section on page 40-55.

Usage Guidelines for Using 802.1X Authentication with Guest VLANs

When using 802.1X authentication with guest VLANs, consider these guidelines:

  • When you reconfigure a guest VLAN to a different VLAN, any authentication failed ports are also moved and the ports stay in their current authorized state.
  • When you shut down or remove a guest VLAN from the VLAN database, any authentication failed ports are immediately moved to an unauthorized state and the authentication process is restarted.
Page 890 of the Cisco Systems 4500 user manual — Using 802.1X with MAC Authentication Bypass
Page 890 · click to enlarge
Page 890

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Usage Guidelines for Using 802.1X Authentication with Guest VLANs on Windows-XP Hosts

When using 802.1X authentication with guest VLANs on Windows-XP hosts, consider these guidelines:

  • If the host fails to respond to the authenticator, the port attempts to connect three times (with a 30 second timeout between each attempt). After this time, the login/password window does not appear on the host, so you must unplug and reconnect the network interface cable.
  • Hosts responding with an incorrect login/password fail authentication. Hosts failing authentication are not put in the guest VLAN. The first time that a host fails authentication, the quiet-period timer starts, and no activity occurs for the duration of the quiet-period timer. When the quiet-period timer expires, the host is presented with the login and password window. If the host fails authentication for the second time, the quiet-period timer starts again, and no activity occurs for the duration of the quiet-period timer. The host is presented with the login and password window a third time. If the host fails authentication the third time, the port is placed in the unauthorized state, and you must disconnect and reconnect the network interface cable.

Using 802.1X with MAC Authentication Bypass

The 802.1X protocol has 3 entities: client (supplicant), authenticator, and authentication server. Typically, the host PC runs the supplicant software and tries to authenticate itself by sending its credentials to the authenticator which in turn relays that info to the authentication server for authentication.

However, not all hosts may have supplicant functionality. Devices that cannot authenticate themselves using 802.1X but still need network access can use MAC Authentication Bypass (MAB), which uses the connecting device's MAC address to grant or deny network access.

Typically, you use this feature on ports where devices such as printers are connected. Such devices do not have 802.1X supplicant functionality.

In a typical deployment, the RADIUS server maintains a database of MAC addresses that require access. When this feature detects a new MAC address on a port, it generates a RADIUS request with both username and password as the device's MAC address. After authorization succeeds, the port is accessible to the particular device using the same code path that 802.1X authentication would take when processing an 802.1X supplicant. If authentication fails, the port moves to the guest VLAN if configured, or it remains unauthorized.

The Catalyst 4500 series switch also supports reauthentication of MACs on a per-port level. Be aware that the reauthentication functionality is provided by 802.1X and is not MAB specific. In the reauthentication mode, a port stays in the previous RADIUS-sent VLAN and tries to re-authenticate itself. If the reauthentication succeeds, the port stays in the RADIUS-sent VLAN. Otherwise, the port becomes unauthorized and moves to the guest VLAN if one is configured.

For details on how to configure MAB, see the “Configuring 802.1X with MAC Authentication Bypass” section on page 40-58.

Page 891 of the Cisco Systems 4500 user manual — Feature Interaction
Page 891 · click to enlarge
Page 891

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

Feature Interaction

This section lists feature interactions and restrictions when MAB is enabled. If a feature is not listed, assume that it interacts seamlessly with MAB (such as Unidirectional Controlled Port).

  • MAB can only be enabled if 802.1X is configured on a port. MAB functions as a fall back mechanism for authorizing MACs. If you configure both MAB and 802.1X on a port, the port attempts to authenticate using 802.1X. If the host fails to respond to EAPOL requests and MAB is configured, the 802.1X port is opened up to listen to packets and to grab a MAC address, rather than attempt to authenticate endlessly.

Based on the default 802.1X timer values, the transition between mechanisms takes approximately 90 seconds. You can shorten the time by reducing the value of the transmission period time, which affects the frequency of EAPOL transmission. A smaller timer value results in sending EAPOLs during a shorter time interval. With MAB enabled, after 802.1X performs one full set of EAPOLs, the learned MAC address is forwarded to the authentication server for processing.

The MAB module performs authorization for the first MAC address detected on the wire. The port is considered authorized once a valid MAC address is received that RADIUS approves of.

802.1X authentication can re-start if an EAPOL packet is received on a port that was initially authorized as a result of MAB.

Figure 40-6 shows the message exchange during MAB.

Figure 40-6 Message Exchange during MAC Authentication Bypass

Client Workstation Catalyst 4500 Network Access Switch RADIUS

(Device MAC) RADIUS Access-Request

  • The authentication-failed VLAN is used only with dot1x-authentication-failed users. MAB is not attempted with dot1x-authentication-failed users. If 802.1X authentication fails, a port moves to the authentication-failed VLAN (if configured) whether MAB is configured or not.
Show 8 more labels / short text on this page
EAPOL-Request/Identity · EAPOL-Request/Identity · EAPOL-Request/Identity · Packet (Device MAC) · RADIUS Access-Request · RADIUS Access-Request · RADIUS Accept · Port Authorized
Page 892 of the Cisco Systems 4500 user manual — Using 802.1X with Inaccessible Authentication Bypass
Page 892 · click to enlarge
Page 892

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

  • When both MAB and guest VLAN are configured and no EAPOL packets are received on a port, the 802.1X state-machine is moved to a MAB state where it opens the port to listen to traffic and grab MAC addresses. The port remains in this state forever waiting to see a MAC on the port. A detected MAC address that fails authorization causes the port to be moved to the guest VLAN if configured.

While in a guest VLAN, a port is open to all traffic on the specified guest VLAN. Non-802.1X supplicants that normally would be authorized but are in guest VLAN due to the earlier detection of a device that failed authorization, would remain in the guest VLAN indefinitely. However, loss of link or the detection of an EAPOL on the wire causes a transition out of the guest VLAN and back to the default 802.1X mode.

  • Once a new MAC is authenticated by MAB, the responsibility to limit access belongs to the 802.1X authenticator (or port security) to secure the port. The 802.1X default host parameter is defined only for a single host. If the port is changed to multipleuser host, port security must be used to enforce the number of MAC addresses allowed through this port.
  • Catalyst 4500 series switch supports MAB with VVID, with the restriction that the MAC address appears on a port data VLAN only. All IP phone MACs learned using CDP are allowed on voice VLANs.
  • MAB and VMPS are mutually exclusive because their functionality overlaps.

Using 802.1X with Web-Based Authentication

The web-based authentication feature, known as Web Authentication Proxy, allows you to authenticate end users on host systems that do not run the IEEE 802.1X supplicant.

When configuring web-based authentication, consider these guidelines:

  • Fallback to web-based authentication is configured on switch ports in access mode. Ports in trunk mode are not supported.
  • Fallback to web-based authentication is not supported on EtherChannels or EtherChannel members.
  • Although fallback to web-based authentication is an interface-specific configuration, the web-based authentication fallback behavior is defined in a global fallback profile. If the global fallback configuration changes, the new profile is not used until the next instance of authentication fallback.

For detailed information on configuring web-based authentication, see Chapter 42, “Configuring Web-Based Authentication.”

Using 802.1X with Inaccessible Authentication Bypass

When a switch cannot reach the configured RADIUS servers and clients (supplicants) cannot be authenticated, you can configure a switch to allow network access to hosts connected to critical ports that are enabled for Inaccessible Authentication Bypass.

When Inaccessible Authentication Bypass is enabled, a switch monitors the status of the configured RADIUS servers. If no RADIUS servers are available, clients that fail authentication due to server unavailability are authorized. Inaccessible Authentication Bypass can be enabled for data clients and voice clients. For data clients, you can specify an Inaccessible Authentication Bypass VLAN on a per-port basis. For voice clients they are authorized in the configured voice vlan. Inaccessible Authentication Bypass for voice clients can activate in Multiple Domain Authentication and Multiple Authentication modes, in which authentication is enforced for voice devices.

Page 893 of the Cisco Systems 4500 user manual — Using 802.1X with Unidirectional Controlled Port
Page 893 · click to enlarge
Page 893

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

Note Inaccessible Authentication Bypass allows a voice client to access configured voice VLAN when RADIUS becomes unavailable. For the voice device to operate properly, it must learn the voice VLAN ID through other protocols such as CDP, LLDP, or DHCP, wherever appropriate. When a RADIUS server is unavailable, it may not be possible for a switch to recognize a MAC address as that of a voice device. Therefore, when Inaccessible Authentication Bypass is configured for voice devices, it should also be configured for data. Voice devices may be authorized on both critical data and voice VLANs. If port security is enabled, this may affect the maximum port security entries enforced on the port.

By default, data clients that were already authorized when RADIUS becomes unavailable are unaffected by Inaccessible Authentication Bypass. To reauthenticate all authorized data clients on the port when RADIUS becomes unavailable, use the authentication server dead action reinitialize vlan interface configuration command. This command is intended for multiauthentication mode and is mutually exclusive with the authentication server dead action authorize vlan command.

When RADIUS becomes available, critically authorized ports can be configured to automatically reauthenticate themselves.

Inaccessible Authentication Bypass cannot activate after a port falls back to Web-based authentication. For details on how to configure Web-based authentication, see Chapter 42, “Configuring Web-Based Authentication.”

For details on how to configure Inaccessible Authentication Bypass, see Chapter 42, “Configuring Web-Based Authentication.”

Using 802.1X with Unidirectional Controlled Port

Unidirectional Controlled Port is a combined hardware and software feature that allows dormant PCs to be powered on based on the receipt of a specific Ethernet frame, known as the magic packet. Generally, Unidirectional Controlled Port is used in environments where administrators plan to manage remote systems during off-hours, when the systems usually have been powered down.

Use of Unidirectional Controlled Port with hosts attached through 802.1X ports presents a unique problem: when the host powers down, a 802.1X port becomes unauthorized. In this state, the port allows the receipt and transmission of EAPoL packets only. The Unidirectional Controlled Port magic packet cannot reach the host; without powering up, the PC cannot authenticate and open the port.

Unidirectional Controlled Port solves this problem by allowing packets to be transmitted on unauthorized 802.1X ports.

Page 894 of the Cisco Systems 4500 user manual — Using 802.1X with VLAN User Distribution
Page 894 · click to enlarge
Page 894

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

For details on how to configure 802.1X with Unidirectional Controlled Port, see the “Configuring 802.1X with Unidirectional Controlled Port” section on page 40-63.

Unidirectional State

A unidirectional controlled port is typically configured when a connected host might enter a sleeping mode or power-down state. When either occurs, the host does not exchange traffic with other devices in the network. A host connected to the unidirectional port cannot send traffic to the network; it can only receive traffic from other devices in the network.

When you configure a port as unidirectional (with the authentication control-direction in interface configuration command), the port will receive traffic in VLANs on that port, but it is not put into a spanning-tree forwarding state. If a VLAN contains only unauthenticated ports, any SVI on that VLAN will be in a down state, during which packets will not be routed into the VLAN. For the SVI to be up, and so enable packets to be routed into the VLAN, at least one port in the VLAN must either be authenticated or in the spanning-tree forwarding state.

Bidirectional State

When you configure a port as bidirectional by using the authentication control-direction both interface configuration command (or the dot1x control-direction both interface configuration command for Cisco IOS Release 12.2(46) or earlier), the port is access-controlled in both directions. In this state, except for EAPOL packets, a switch port does not receive or send packets.

Using 802.1X with VLAN User Distribution

An alternative to dynamically assigning a VLAN ID or a VLAN name is to assign a VLAN group name. The 802.1X VLAN User Distribution feature allows you to distribute users belonging to the same group (and characterized by a common VLAN group name) across multiple VLANs. You usually do this to avoid creating an overly large broadcast domain.

For example, with this feature, you can download a common VLAN group name (similar to ENG-Group, for all the users belonging to the engineering organization) from the authentication server to all the access-layer switches. The VLAN group name is then individually mapped to a different VLAN on each access-layer switch. The same VLAN number need not be spanned across separate switches. Similarly, the VLANs does not need to be renamed at the edge devices.

When the authentication server returns more than one VLAN group name or VLANs, this feature attempts to distribute users evenly across those groups. It internally maintains the count of users assigned to each VLAN on that switch by authentication or port security. Based on this information, this feature assigns a newly authenticated user to the least loaded VLAN on that switch among all the VLANs or VLAN group names obtained from the RADIUS server.

This VLAN distribution considers the load of all the valid VLANs only during initial user authentication, and not during reassignment. When some of the existing authenticated users are removed, the feature does not attempt to redistribute the remaining authenticated users. Group distribution does not guarantee perfect load distribution all the time.

Page 895 of the Cisco Systems 4500 user manual — Using 802.1X with Authentication Failed VLAN Assignment
Page 895 · click to enlarge
Page 895

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

Deployment Example

In a large campus LAN design, you might want to design the VLAN infrastructure without large Layer 2 domain. For the same employee VLAN, customers might have different VLANs at different campus access switches. When you deploy 802.1X with VLAN assignment, it does not assign one employee VLAN to all employees. You have to know the real VLANs configured on the switch. User distribution allows you to send a list of VLAN or VLAN group name(s) to the switch. Your switch can then do a local mapping to the corresponding VLAN. (Figure 40-7).

Figure 40-7 802.1X with VLAN User Distribution

Cisco Systems 4500 — Deployment Example diagram (page 895)
Fig. 7 · Deployment Example

For details on how to configure VLAN User Distribution, see the “Configuring 802.1X with VLAN User Distribution” section on page 40-65.

Using 802.1X with Authentication Failed VLAN Assignment

You can use authentication-failed VLAN assignment on a per-port basis to provide access for authentication failed users. Authentication failed users are end hosts that are 802.1X- capable but do not have valid credentials in an authentication server or end hosts that do not give any username and password combination in the authentication pop-up window on the user side.

If a user fails the authentication process, that port is placed in the authentication-failed VLAN. The port remains in the authentication-failed VLAN until the reauthentication timer expires. When the reauthentication timer expires the switch starts sending the port reauthentication requests. If the port fails reauthentication it remains in the authentication-failed VLAN. If the port is successfully reauthenticated, the port is moved either to the VLAN sent by RADIUS server or to the newly authenticated ports configured VLAN; the location depends on whether RADIUS is configured to send VLAN information.

Page 896 of the Cisco Systems 4500 user manual — Usage Guidelines for Using Authentication Failed VLAN Assignment
Page 896 · click to enlarge
Page 896

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

You can set the maximum number of authentication attempts that the authenticator sends before moving a port into the authentication-failed VLAN. The authenticator keeps a count of the failed authentication attempts for each port. A failed authentication attempt is either an empty response or an EAP failure. The authenticator tracks any mix of failed authentication attempts towards the authentication attempt count. After the maximum number of attempts is reached the port is placed in the authentication-failed VLAN until the reauthentication timer expires again.

For details on how to configure Authentication Failed VLAN Assignment, see the “Configuring 802.1X with Authentication Failed” section on page 40-68.

Usage Guidelines for Using Authentication Failed VLAN Assignment

Usage guidelines include the following:

  • You should enable reauthentication. The ports in authentication-failed VLANs do not receive reauthentication attempts if reauthentication is disabled. To start the reauthentication process the authentication-failed VLAN must receive a link-down event or an EAP logoff event from the port. If the host is behind a hub, you may never get a link-down event and may not detect the new host until the next reauthentication occurs.
  • EAP failure messages are not sent to the user. If the user failures authentication the port is moved to an authentication-failed VLAN and a EAP success message is sent to the user. Because the user is not notified of the authentication failure there may be confusion as to why there is restricted access to the network. A EAP Success message is sent for the following reasons:

– If the EAP Success message is not sent, the user tries to authenticate every 60 seconds (by default) by sending an EAP-start message.

– In some cases, users have configured DHCP to EAP-Success and unless the user sees a success, DHCP does not work on the port.

  • Sometimes a user caches an incorrect username and password combination after receiving a EAP success message from the authenticator and reuses that information in every reauthentication. Until the user passes the correct username and password combination the port remains in the authentication-failed VLAN.
  • When an authentication failed port is moved to an unauthorized state the authentication process is restarted. If you should fail the authentication process again the authenticator waits in the held state. After you have correctly reauthenticated all 802.1X ports are reinitialized and treated as normal 802.1X ports.
  • When you reconfigure an authentication-failed VLAN to a different VLAN, any authentication failed ports are also moved and the ports stay in their current authorized state.
  • When you shut down or remove an authentication-failed VLAN from the VLAN database, any authentication failed ports are immediately moved to an unauthorized state and the authentication process is restarted. The authenticator does not wait in a held state because the authentication-failed VLAN configuration still exists. While the authentication-failed VLAN is inactive, all authentication attempts are counted, and as soon as the VLAN becomes active the port is placed in the authentication-failed VLAN.
  • If you reconfigure the maximum number of authentication failures allowed by the VLAN, the change takes affect after the reauthentication timer expires.
Page 897 of the Cisco Systems 4500 user manual — Using 802.1X with Port Security
Page 897 · click to enlarge
Page 897

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

  • Internal VLANs that are used for Layer 3 ports cannot be configured as authentication-failed VLANs.
  • The authentication-failed VLAN is supported only in single-host mode (the default port mode).
  • When a port is placed in an authentication-failed VLAN the user’s MAC address is added to the mac-address-table. If a new MAC address appears on the port, it is treated as a security violation.
  • When an authentication failed port is moved to an authentication-failed VLAN, the Catalyst 4500 series switch does not transmit a RADIUS-Account Start Message as it does for standard 802.1X authentication.

Using 802.1X with Port Security

You can enable port security on an 802.1X port in either single- or multiple-host mode. (To do so, you must configure port security by using the switchport port-security interface configuration command.) When you enable port security and 802.1X on a port, 802.1X authenticates the port, and port security manages the number of MAC addresses allowed on that port, including that of the client. You can use an 802.1X port with port security enabled to limit the number or group of clients that can access the network.

For information on selecting multiple host mode, see the “Resetting the 802.1X Configuration to the Default Values” section on page 40-92.

These examples describe the interaction between 802.1X and port security on a switch:

  • When a client is authenticated, and the port security table is not full, the client’s MAC address is added to the port security list of secure hosts. The port then proceeds to come up normally.

When a client is authenticated and manually configured for port security, it is guaranteed an entry in the secure host table (unless port security static aging was enabled).

A security violation occurs if an additional host is learned on the port. The action taken depends on which feature (802.1X or port security) detects the security violation:

– If 802.1X detects the violation, the action is to error-disable the port.

– If port security detects the violation, the action is to shut down or restrict the port (the action is configurable).

The following describes when port security and 802.1X security violations occur:

– In single-host mode, after the port is authorized, any MAC address received other than the client’s causes a 802.1X security violation.

– In single-host mode, if installation of an 802.1X client’s MAC address fails because port security has already reached its limit (due to a configured secure MAC addresses), a port security violation is triggered.

– In multiple-host mode, once the port is authorized, any additional MAC addresses that cannot be installed because the port security has reached its limit triggers a port security violation.

  • When an 802.1X client logs off, the port transitions back to an unauthenticated state, and all dynamic entries in the secure host table are cleared, including the entry for the client. Normal authentication then ensues.
  • If you administratively shut down the port, the port becomes unauthenticated, and all dynamic entries are removed from the secure host table.
  • Only 802.1X can remove the client’s MAC address from the port security table. Note that in multiple-host mode, with the exception of the client’s MAC address, all MAC addresses that are learned by port security can be deleted using port security CLIs.
Page 898 of the Cisco Systems 4500 user manual — Cisco Secure ACS and AV Pairs for URL-Redirect
Page 898 · click to enlarge
Page 898

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

  • Whenever port security ages out a 802.1X client’s MAC address, 802.1X attempts to reauthenticate the client. Only if the reauthentication succeeds is the client’s MAC address be retained in the port security table.
  • All of the 802.1X client’s MAC addresses are tagged with (dot1x) when you display the port security table by using CLI.

Using 802.1X Authentication with ACL Assignments and Redirect URLs

Beginning with Cisco IOS Release 12.2(50)SG, you can download per-host policies such as ACLs and redirect URLs to the switch from the RADIUS server during 802.1X or MAB authentication of the host. ACL download is also supported with web authentication after a fallback from 802.1X or MAB.

When the 802.1X host mode of the port is either single-host, MDA, or multiple authentication, the downloaded ACLs (DACLs) are modified to use the authenticated hosts’ IP address as the source address. When the host mode is multiple-hosts, the source address is configured as ANY, and the downloaded ACLs or redirects apply to all devices on the port.

If no ACLs are provided during the authentication of a host, the static default ACL configured on the port is applied to the host. On a voice VLAN port, only the static default ACL of the port is applied to the phone.

This section includes these topics:

  • Cisco Secure ACS and AV Pairs for URL-Redirect, page 40-20
  • ACLs, page 40-21

For details on how to configure downloadable ACL and URL redirect, refer to the “Configuring 802.1X Authentication with ACL Assignments and Redirect URLs” section on page 40-38.

Cisco Secure ACS and AV Pairs for URL-Redirect

When downloadable ACL is enabled, Cisco Secure ACS provides AAA services through RADIUS.

You can set these Attribute-Value (AV) pairs on the Cisco Secure ACS with RADIUS cisco-av-pair vendor-specific attributes (VSAs):

  • CiscoSecure-Defined-ACL specifies the names of the DACLs on the Cisco Secure ACS. The switch receives the ACL name using the CiscoSecure-Defined-ACL AV pair in the format:

name is the ACL name and number is the version number (similar to 3f783768).

The Auth-Manager code verifies whether the access control entries (ACEs) of the specified downloadable ACL were previously downloaded. If not, the Auth-Manager code sends an AAA request with the downloadable ACL name as the username so that the ACEs are downloaded. The downloadable ACL is then created as a named ACL on the switch. This ACL has ACEs with a source address of any and does not have an implicit deny statement at the end. When the downloadable ACL is applied to an interface after authentication completes, the source address changes from any to the host source IP address depending on the host mode of the interface. The ACEs are prepended to the downloadable ACL applied to the switch interface to which the endpoint device is connected. If traffic matches the CiscoSecure-Defined-ACL ACEs, the appropriate actions are taken.

  • url-redirect and url-redirect-acl specify the local URL policy on the switch. The switches use these cisco-av-pair VSAs as follows:

#ACL#-IP-name-number

Page 899 of the Cisco Systems 4500 user manual — Using 802.1X with RADIUS-Provided Session Timeouts
Page 899 · click to enlarge
Page 899

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

– url-redirect =

– url-redirect-acl = switch ACL name or number

These AV pairs enable the switch to intercept an HTTP or HTTPS request from the endpoint device and forward the client web browser to the specified redirect address from which the latest antivirus files can be downloaded. The url-redirect AV pair on the Cisco Secure ACS contains the URL to which the web browser is redirected. The url-redirect-acl AV pair contains the name or number of an ACL that specifies the HTTP or HTTPS traffic to be redirected. Traffic that matches a permit entry in the redirect ACL is redirected.

ACLs

If downloadable ACL is configured for a particular client on the authentication server, you must configure a default port ACL on a client-facing switch port.

If the default ACL is configured on the switch and the Cisco Secure ACS sends a host access policy to the switch, it applies the policy to traffic from the host connected to a switch port. If the policy does not apply, the switch applies the default ACL. If the Cisco Secure ACS sends the switch a downloadable ACL, this ACL takes precedence over the default ACL already configured on the switch port. However, if the switch receives a host access policy from the Cisco Secure ACS, but the default ACL is not configured, the authorization failure is declared.

For details on how to configure a downloadable policy, refer to the “Configuring a Downloadable Policy” section on page 40-43.

Using 802.1X with RADIUS-Provided Session Timeouts

You can specify whether a switch uses a locally configured or a RADIUS-provided reauthentication timeout. If the switch is configured to use the local timeout, it reauthenticates the host when the timer expires.

If the switch is configured to use the RADIUS-provided timeout, it scans the RADIUS Access-Accept message for the Session-Timeout and optional Termination-Action attributes. The switch uses the value of the Session-Timeout attribute to determine the duration of the session, and it uses the value of the Termination-Action attribute to determine the switch action when the session's timer expires.

If the Termination-Action attribute is present and its value is RADIUS-Request, the switch reauthenticates the host. If the Termination-Action attribute is not present, or its value is Default, the switch terminates the session.

If the switch is configured to use the RADIUS-supplied timeout, but the Access-Accept message does not include a Session-Timeout attribute, the switch never reauthenticates the supplicant. This behavior is consistent with Cisco's wireless access points.

For details on how to configure RADIUS-provided session timeouts, see the “Configuring RADIUS-Provided Session Timeouts” section on page 40-51.

Page 900 of the Cisco Systems 4500 user manual — Using Multiple Domain Authentication and Multiple Authentication
Page 900 · click to enlarge
Page 900

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

Using 802.1X with Voice VLAN Ports

A voice VLAN port is a special access port associated with two VLAN identifiers:

  • Voice VLAN ID (VVID) to carry voice traffic to and from the IP phone. The VVID is used to configure the IP phone connected to the port.
  • Port VLAN ID (PVID) to carry the data traffic to and from the workstation connected to the switch using the IP phone. The PVID is the native VLAN of the port.

Each port that you configure for a voice VLAN is associated with a VVID and a PVID. This configuration allows voice traffic and data traffic to be separated onto different VLANs.

A voice VLAN port becomes active when a link exists whether the port is AUTHORIZED or UNAUTHORIZED. All traffic exiting the voice VLAN is obtained correctly and appears in the MAC address table. Cisco IP phones do not relay CDP messages from other devices. If several Cisco IP phones are connected in a series, the switch recognizes only the one directly connected to it. When 802.1X is enabled on a voice VLAN port, the switch drops packets from unrecognized Cisco IP phones more than one hop away.

When 802.1X is enabled on a port, you cannot configure a PVID that is equal to a VVID. For more information about voice VLANs, see Chapter 38, “Configuring Voice Interfaces.”

Observe the following feature interactions:

  • 802.1X VLAN assignment cannot assign to the port the same VLAN as the voice VLAN; otherwise, the 802.1X authentication fails. The same holds true for dynamic VLAN assignment.
  • 802.1X guest VLAN works with the 802.1X voice VLAN port feature. However, the guest VLAN cannot be the same as the voice VLAN.
  • 802.1X port security works with the 802.1X voice VLAN port feature and is configured per-port. Two MAC addresses must be configured: one for the Cisco IP phone MAC address on the VVID and one for the PC MAC address on PVID.

However, you cannot use the 802.1X voice VLAN port feature with 802.1X port security’s sticky MAC address configuration and statically configured MAC address configuration.

  • 802.1X accounting is unaffected by the 802.1X voice VLAN port feature.
  • When 802.1X is configured on a port, you cannot connect multiple IP phones to a Catalyst 4500 series switch through a hub.
  • Because voice VLANs cannot be configured as PVLAN host ports, and because only PVLANs can be assigned to PVLAN host ports, VLAN assignment cannot assign a PVLAN to a port with a voice VLAN configured.

For details on how to configure 802.1X with voice VLANs, see the “Configuring 802.1X with Voice VLAN” section on page 40-70.

Using Multiple Domain Authentication and Multiple Authentication

Multiple Domain Authentication (MDA) allows both a data device and a voice device, such as an IP phone (Cisco or third party non-Cisco), to authenticate on the same switch port, which is divided into a data domain and a voice domain.

Multi Auth allows multiple data devices and a voice device. When a voice VLAN is configured on a multiple- authentication port, the port can perform authentication in the voice domain as on an MDA port.

Page 901 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 901 · click to enlarge
Page 901

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

MDA does not enforce the order of device authentication. For best results, however, you should authenticate a voice device before you authenticate a data device on an MDA-enabled port.

When configuring MDA, consider the following guidelines.

  • We recommend that you enable CoPP on an MDA-enabled port to protect against a DoS attack. Refer to Chapter 44, “Configuring Control Plane Policing and Layer 2 Control Packet QoS.”
  • To configure a switch port for MDA or Multiple Authentication, see the “Configuring Multiple Domain Authentication and Multiple Authorization” section on page 40-34 .
  • You must configure the voice VLAN for the IP phone when the host mode is set to multidomain. For more information, see Chapter 38, “Configuring Voice Interfaces.”
  • To authorize a voice device, the AAA server must be configured to send a Cisco Attribute-Value (AV) pair attribute with a value of device-traffic-class=voice. Without this value, the switch treats the voice device as a data device.
  • The guest VLAN and restricted VLAN features only apply to the data devices on an MDA-enabled port. The switch treats a voice device that fails authorization as a data device.
  • If more than one device attempts authorization on either the voice or the data domain of a port, it is error-disabled.
  • Until a device is authorized, the port drops its traffic. Non-Cisco IP phones or voice devices are allowed into both the data and voice VLANs. The data VLAN allows the voice device to contact a DHCP server to obtain an IP address and acquire the voice VLAN information. After the voice device starts sending on the voice VLAN, its access to the data VLAN is blocked. A security violation may occur in MDA if the voice device continues to send traffic on the data VLAN.
  • MDA can use MAC authentication bypass as a fallback mechanism to allow the switch port to connect to devices that do not support 802.1X authentication. it is especially useful for third party phones without 802.1X supplicant. For more information, see the “Using 802.1X with MAC Authentication Bypass” section on page 40-12 .
  • When a data or a voice device is detected on a port, its MAC address is blocked until authorization succeeds. If the authorization fails, the MAC address remains blocked for 5 minutes.
  • If more than one device is detected on the data VLAN or more than one voice device is detected on the voice VLAN while a port is unauthorized, the port is error-disabled.
  • When a port host mode is changed from singleor multihost to multidomain mode, an authorized data device remains authorized on the port. However, a Cisco IP phone that was allowed on the port in the voice VLAN is automatically removed and must be reauthenticated on that port.
  • Active fallback mechanisms such as guest VLAN and restricted VLAN remain configured after a port changes from singleor multihost mode to multidomain mode.
  • Switching a port host mode from multidomain to singleor multihost mode removes all authorized devices from the port.
  • If a data domain is authorized first and placed in the guest VLAN, non-802.1X-capable voice devices need to tag their packets on the voice VLAN to trigger authentication.
  • We do not recommend per-user ACLs with an MDA-enabled port. An authorized device with a per-user ACL policy might impact traffic on both the voice and data VLANs of the port. If used, only one device on the port should enforce per-user ACLs.
Page 902 of the Cisco Systems 4500 user manual — SS w Su pplic a nt to A S ws witch
Page 902 · click to enlarge
Page 902

Chapter 40 Configuring 802.1X Port-Based Authentication About 802.1X Port-Based Authentication

802.1X Supplicant and Authenticator Switches with Network Edge Access Topology

The Network Edge Access Topology (NEAT) feature extends identity to areas outside the wiring closet (such as conference rooms).

You can enable any authentication host mode on the authenticator switch interface that connects to a supplicant switch. Once the supplicant switch authenticates successfully, the port mode changes from access to trunk. To ensure that NEAT works on all host modes, use the dot1x supplicant force-multicast global configuration command on the supplicant switch. If the access VLAN is configured on the authenticator switch, it becomes the native VLAN for the trunk port after successful authentication.

Deployment

NEAT is intended for deployment scenarios where a switch acting as 802.1X authenticator to end-hosts (PC or Cisco IP-phones) is placed in an unsecured location (outside wiring closet).

Because of this topology, the authenticator switch cannot always be trusted. For example, compact switches (8-port Catalyst 3560 and Catalyst 2960) are generally deployed outside the wiring closet. This enables hacker devices to swamp them to gain access to the network, compromising security. An edge switch must be able to authenticate itself against another switch, referred to as Network Edge Authentication Topology (NEAT).

Figure 40-8 illustrates a typical NEAT topology.

Figure 40-8 Typical NEAT Topology

Wall jack

AC S

Campus

LAN Wiring closet

Cisco Switch w Supplicant (EAP-MD5)

AAA RADIU S

Also acts as 802.1X Authenticator to hosts

SS w Su pplic a nt to A S ws witch

A S w A u thentic a tor

A u thentic a tor for client s

NEAT facilitates the following functionality in such scenarios:

Show 4 more labels / short text on this page
in conference · room · Switch · Server
Page 903 of the Cisco Systems 4500 user manual — Supported Topologies
Page 903 · click to enlarge
Page 903

Chapter 40 Configuring 802.1X Port-Based Authentication

About 802.1X Port-Based Authentication

Host Authorization— Ensures that only traffic from authorized hosts (connecting to the switch with a supplicant) is allowed on the network. The switches use Client Information Signalling Protocol (CISP) to send the MAC addresses connecting the supplicant switch to the authenticator switch.

Auto enablement—Automatically enables trunk configuration on the authenticator switch, allowing user traffic from multiple VLANs arising from supplicant switches. At the ACS, you must configure the Cisco AV pair as device-traffic-class=switch. For details on how to do this, see the “Configuring an Authenticator and a Supplicant Switch with NEAT” section on page 40-85.

How 802.1X Fails on a Port

802.1X may fail on a port in three ways: timeout, explicit failure, and protocol timeout.

Timeout—A switch attempts 802.1X at link up but the attached endpoint is not 802.1X-capable. After the configured number of retries and timeouts, the switch attempts the next authentication method if one is configured (like MAB). If MAB fails, the switch deploys the Guest VLAN (also called the no-response VLAN), if configured. The Guest VLAN is configured with the authentication event no-response interface command.

Explicit Failure—A switch and the endpoint perform the entire 802.1X authentication sequence and the result is an explicit failure (usually indicated by an Access-Reject from the RADIUS server to the switch and an EAP-Failure sent from the switch to the endpoint). In this case, the switch attempts MAB (if "authentication event failure action next-method" is configured) or deploy the AuthFail VLAN (if "authentication event failure action authorize vlan" is configured).

Protocol Timeout—A switch and the endpoint start the 802.1X authentication process but do not complete it. For example, the endpoint may send an 802.1X EAPoL-Start message and then stop responding to the switch (perhaps, because the endpoint lacks a credential or because it is waiting for end user to enter some information). In this case, the switch knows that the connected device is EAPoL-capable, so it will not deploy the Guest VLAN after timing out. Instead, it restarts authentication after a timeout. The switch continues to label the port as EAPoL-capable until a physical link down event is detected. To force the switch to deploy the Guest VLAN in the case of a protocol timeout, configure dot1x guest-vlan supplicant globally. If the port is configured for hostmode multi-domain authentication, the switch behaves as if dot1x guest-vlan supplicant is configured.

Supported Topologies

The 802.1X port-based authentication supports two topologies:

  • Point-to-point
  • Wireless LAN

In a point-to-point configuration (see Figure 40-1 on page 40-3), only one client can be connected to the 802.1X-enabled switch port when the multiple- host mode is not enabled (the default). The switch detects the client when the port link state changes to the up state. If a client leaves or is replaced with another client, the switch changes the port link state to down, and the port returns to the unauthorized state.

For 802.1X port-based authentication in a wireless LAN (Figure 40-9), you must configure the 802.1X port as a multiple-host port that is authorized as a wireless access point once the client is authenticated. (See the “Resetting the 802.1X Configuration to the Default Values” section on page 40-92.) When the port is authorized, all other hosts that are indirectly attached to the port are granted access to the network. If the port becomes unauthorized (reauthentication fails or an EAPOL-logoff message is received), the

Page 904 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 904 · click to enlarge
Page 904

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

switch denies access to the network for all wireless access point-attached clients. In this topology, the wireless access point is responsible for authenticating clients attached to it, and the wireless access point acts as a client to the switch.

Figure 40-9 Wireless LAN Example

Wireless access point Catalyst 4500 Network

Authenticator Authentication server Supplicants

Configuring 802.1X Port-Based Authentication

To configure 802.1X, follow this procedure:

Step 1 Enable 802.1X authentication. See the “Enabling 802.1X Authentication” section on page 40-28.

Step 2 Configure switch to RADIUS server communication. See the “Configuring Switch-to-RADIUS-Server Communication” section on page 40-32.

Step 3 Adjust the 802.1X timer values. See the “Changing the Quiet Period” section on page 40-81.

Step 4 Configure optional features. See the “Configuring RADIUS-Provided Session Timeouts” section on page 40-51.

These sections describe how to configure 802.1X:

  • Default 802.1X Configuration, page 40-27
  • 802.1X Configuration Guidelines, page 40-28
  • Enabling 802.1X Authentication, page 40-28 (required)
  • Configuring Switch-to-RADIUS-Server Communication, page 40-32 (required)
  • Configuring Multiple Domain Authentication and Multiple Authorization, page 40-34
  • Configuring 802.1X Authentication with ACL Assignments and Redirect URLs, page 40-38
  • Configuring 802.1X Authentication with Per-User ACL and Filter-ID ACL, page 40-44
  • Configuring RADIUS-Provided Session Timeouts, page 40-51 (optional)
  • Configuring MAC Move, page 40-53 (optional)
  • Configuring MAC Replace, page 40-53 (optional)
  • Configuring Violation Action, page 40-54 (optional)
  • Configuring 802.1X with Guest VLANs, page 40-55 (optional)
  • Configuring 802.1X with MAC Authentication Bypass, page 40-58 (optional)

Wireless · clients · Access Switch RADIUS

Page 905 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 905 · click to enlarge
Page 905

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

  • Configuring 802.1X with Inaccessible Authentication Bypass, page 40-60 (optional)
  • Configuring 802.1X with Unidirectional Controlled Port, page 40-63 (optional)
  • Configuring 802.1X with VLAN User Distribution, page 40-65
  • Configuring 802.1X with Authentication Failed, page 40-68 (optional)
  • Configuring 802.1X with Voice VLAN, page 40-70 (optional)
  • Configuring 802.1X with VLAN Assignment, page 40-71
  • Enabling Fallback Authentication, page 40-73
  • Enabling Periodic Reauthentication, page 40-78 (optional)
  • Enabling Multiple Hosts, page 40-80 (optional
  • Changing the Quiet Period, page 40-81 (optional)
  • Changing the Switch-to-Client Retransmission Time, page 40-82 (optional)
  • Setting the Switch-to-Client Frame-Retransmission Number, page 40-83 (optional)
  • Configuring an Authenticator and a Supplicant Switch with NEAT, page 40-85
  • Manually Reauthenticating a Client Connected to a Port, page 40-91 (optional)
  • Initializing the 802.1X Authentication State, page 40-91
  • Removing 802.1X Client Information, page 40-92
  • Resetting the 802.1X Configuration to the Default Values, page 40-92 (optional)

Default 802.1X Configuration

Table 40-1 shows the default 802.1X configuration.

Table 40-1 Default 802.1X Configuration

Feature Default Setting

Authentication, authorization, and accounting (AAA) Disabled

  • IP address
  • None specified
  • UDP authentication port
  • 1645
  • Key
  • None specified

Per-interface 802.1X protocol enable state Force-authorized

The port transmits and receives normal traffic without 802.1X-based authentication of the client.

Time between reauthentication attempts 3600 sec

Quiet period 60 sec

Number of seconds that the switch remains in the quiet state following a failed authentication exchange with the client.

RADIUS server · Periodic reauthentication Disabled

Page 906 of the Cisco Systems 4500 user manual — Enabling 802.1X Authentication
Page 906 · click to enlarge
Page 906

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Table 40-1 Default 802.1X Configuration (continued)

Feature Default Setting

Retransmission time 30 sec

Number of seconds that the switch should wait for a response to an EAP request/identity frame from the client before retransmitting the request.

Maximum retransmission number 2

Number of times that the switch sends an EAP-request/identity frame before restarting the authentication process.

Multiple host support Disabled

Client timeout period 30 sec

When relaying a request from the authentication server to the client, the amount of time that the switch waits for a response before retransmitting the request to the client.

Authentication server timeout period 30 sec

When relaying a response from the client to the authentication server, the amount of time that the switch waits for a reply before retransmitting the response to the server. This setting is not configurable.

802.1X Configuration Guidelines

Guidelines for configuring 802.1X authentication include the following:

  • The 802.1X protocol is supported only on Layer 2 static access, PVLAN host ports, and Layer 3 routed ports. You cannot configure 802.1X for any other port modes.
  • If you are planning to use VLAN assignment, be aware that the features use general AAA commands. For information on how to configure AAA, refer to the “Enabling 802.1X Authentication” section on page 40-28 . Alternatively, you can refer to the Cisco IOS security documentation at this location:

http://www.cisco.com/en/US/products/ps6586/products_ios_technology_home.html

Enabling 802.1X Authentication

To enable 802.1X port-based authentication, you first must enable 802.1X globally on your switch, then enable AAA and specify the authentication method list. A method list describes the sequence and authentication methods that must be queried to authenticate a user.

The software uses the first method listed in the method list to authenticate users; if that method fails to respond, the software selects the next authentication method in the list. This process continues until there is successful communication with a listed authentication method or until all defined methods are exhausted. If authentication fails at any point in this cycle, the authentication process stops, and no other authentication methods are attempted.

Page 907 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 907 · click to enlarge
Page 907

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

To configure 802.1X port-based authentication, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# dot1x system-auth-control

Enables 802.1X on your switch.

To disable 802.1X globally on the switch, use the no dot1x system-auth-control command.

Step 3 Switch(config)# aaa new-model Enables AAA.

To disable AAA, use the no aaa new-model command.

Step 4 Switch(config)# aaa authentication dot1x {default} method1 [method2...]

Creates an 802.1X AAA authentication method list.

To create a default list that is used when a named list is not specified in the authentication command, use the default keyword followed by the methods that are to be used in default situations. The default method list is automatically applied to all interfaces.

Enter at least one of these keywords:

  • group radius —Use the list of all RADIUS servers for authentication.
  • none —Use no authentication. The client is automatically authenticated by the switch without using the information supplied by the client.

To disable 802.1X AAA authentication, use the no aaa authentication dot1x {default | list-name} method1 [method2...] global configuration command.

Step 5 Switch(config)# aaa authorization network {default} group radius

(Optional) Configures the switch for user RADIUS authorization for all network-related service requests, such as VLAN assignment.

Step 6 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for 802.1X authentication.

Step 7 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 8 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 9 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 10 Switch(config-if)# end Returns to privileged EXEC mode.

Page 908 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46)SG or earlier
Page 908 · click to enlarge
Page 908

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 11 Switch # show dot1x interface interface-id details

Verifies your entries.

Check the PortControl row in the 802.1X port summary section of this display. The PortControl value is set to auto.

Step 12 Switch# show running-config Verifies your entries.

Step 13 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable 802.1X and AAA on Fast Ethernet port 2/1, and how to verify the configuration:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# dot1x system-auth-control Switch(config)# aaa new-model Switch(config)# aaa authentication dot1x default group radius Switch(config)# interface fastethernet2/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# end

Switch# show authentication sessions interface f9/2 Interface: FastEthernet9/2 MAC Address: 0007.e95d.83c4 IP Address: Unknown Status: Running Domain: UNKNOWN Oper host mode: single-host Oper control dir: both Session timeout: N/A Idle timeout: N/A Common Session ID: 0A050B160000009505106398 Acct Session ID: 0x0000009B Handle: 0x0D000095

Runnable methods listMethod State dot1x Running mab Not run

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# dot1x system-auth-control Switch(config)# aaa new-model Switch(config)# aaa authentication dot1x default group radius Switch(config)# interface fastethernet2/1

Page 909 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 909 · click to enlarge
Page 909

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x port-control auto Switch(config-if)# end

Switch# show dot1x interface f9/2 details

Dot1x Info for FastEthernet9/2 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST QuietPeriod = 60 ServerTimeout = 0 SuppTimeout = 30 ReAuthMax = 2 MaxReq = 2 TxPeriod = 30

Dot1x Authenticator Client List Supplicant = 0007.e95d.83c4 Session ID = 0A050B160000009505106398 Auth SM State = AUTHENTICATING Auth BEND SM State = REQUEST Port Status = UNAUTHORIZED

The following example illustrates when a port is authorized:

Switch# show authentication sessions int G4/5 Interface: GigabitEthernet4/5 MAC Address: 0015.e981.0531 IP Address: Unknown User-Name: ctssxp Status: Authz Success Domain: DATA Oper host mode: single-host Oper control dir: both Session timeout: N/A Idle timeout: N/A Common Session ID: 0A053F0F00000004041E6B0C Acct Session ID: 0x00000021 Handle: 0x2C000004 Runnable methods list: Method State dot1x Authc Success

Switch# show dot1x interface G4/5 details Dot1x Info for GigabitEthernet4/5 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST QuietPeriod = 60 ServerTimeout = 0 SuppTimeout = 30 ReAuthMax = 2 MaxReq = 2 TxPeriod = 30

Page 910 of the Cisco Systems 4500 user manual — Configuring Switch-to-RADIUS-Server Communication
Page 910 · click to enlarge
Page 910

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Dot1x Authenticator Client List Supplicant = 0015.e981.0531 Session ID = 0A053F0F00000004041E6B0C Auth SM State = AUTHENTICATED Auth BEND SM State = IDLE Port Status = AUTHORIZED

Configuring Switch-to-RADIUS-Server Communication

A RADIUS security server is identified by its host name or IP address, host name and specific UDP port number, or IP address and specific UDP port numbers. The combination of the IP address and UDP port number creates a unique identifier, which enables RADIUS requests to be sent to multiple UDP ports on a server at the same IP address. If two different host entries on the same RADIUS server are configured for the same service (for example, authentication), the second host entry configured acts as the failover backup to the first one. The RADIUS host entries are tried in the order they were configured.

Page 911 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 911 · click to enlarge
Page 911

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

To configure the RADIUS server parameters on the switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server host {hostname | ip-address} auth-port port-number [acct-port port-number] [test username name] [ignore-auth-port] [ignore-acct-port] [idle-time min] key string

Configures the RADIUS server parameters on the switch.

For hostname | ip-address, specify the hostname or IP address of the remote RADIUS server.

To delete the specified RADIUS server, use the no radius-server host {hostname | ip-address} global configuration command.

auth-port port-number—Specifies the UDP destination port for authentication requests. The default is 1645.

acct-port port-number—Specifies the UDP destination port for accounting requests. The default is 1646.

Use test username name to enable automated RADIUS server testing, and to detect the RADIUS server going up and down. The name parameter is the username used in the test access request sent to the RADIUS server; it does not need to be a valid user configured on the server. The ignore-auth-port and ignore-acct-port options disable testing on the authentication and accounting ports respectively.

The idle-time min parameter specifies the number of minutes before an idle RADIUS server is tested to verify that it is still up. The default is 60 minutes.

The key string specifies the authentication and encryption key used between the switch and the RADIUS daemon running on the RADIUS server. The key is a text string that must match the encryption key used on the RADIUS server.

Note Always configure the key as the last item in the radius-server host command syntax because leading spaces are ignored, but spaces within and at the end of the key are used. If you use spaces in the key, do not enclose the key in quotation marks unless the quotation marks are part of the key. This key must match the encryption used on the RADIUS daemon.

If you want to use multiple RADIUS servers, use this command multiple times.

Step 3 Switch(config-if)# radius deadtime min

(Optional) Configures the number of minutes before a dead RADIUS server is tested to check whether it has come back up. The default is 1 minute.

Step 4 Switch(config-if)# radius dead-criteria time seconds tries num

(Optional) Configures the criteria used to decide whether a RADIUS server is dead. The time parameter specifies the number of seconds after which a request to the server is unanswered before it is considered dead. The tries parameter specifies the number of times a request to the server is unanswered before it is considered dead.

The recommended values for these parameters are tries equal to radius-server retransmit and time equal to radius-server retransmit x radius-server timeout.

Page 912 of the Cisco Systems 4500 user manual — Configuring Multiple Domain Authentication and Multiple Authorization
Page 912 · click to enlarge
Page 912

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 5 Switch(config-if)# ip radius source-interface m/p

Establishes the IP address to be used as the source address for all outgoing RADIUS packets.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies your entries.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to specify the server with IP address 172.120.39.46 as the RADIUS server. The first command specifies port 1612 as the authorization port, sets the encryption key to rad123.

The second command dictates that key matches are performed on the RADIUS server:

Switch# configure terminal Switch(config)# radius-server host 172.l20.39.46 auth-port 1612 key rad123 Switch(config)# ip radius source-interface g3/2 Switch(config)# end Switch#

You can globally configure the timeout, retransmission, and encryption key values for all RADIUS servers by using the radius-server host global configuration command. If you want to configure these options on a per-server basis, use the radius-server timeout, radius-server retransmit, and the radius-server key global configuration commands.

You also need to create a AAA client setting on the RADIUS server. These settings include the IP address of the switch and the key string to be shared by both the server and the switch.

Configuring Multiple Domain Authentication and Multiple Authorization

To configure Multiple Domain Authentication (MDA) and Multiple Authorization, perform this task.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server vsa send authentication

Configures the network access server to recognize and use vendor-specific attributes (VSAs).

Step 3 Switch(config)# interface interface-id

Specifies the port to which multiple hosts are indirectly attached, and enters interface configuration mode.

Page 913 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46)SG or earlier
Page 913 · click to enlarge
Page 913

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 4 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# [no] authentication host-mode {single-host | multi-host | multi-domain} | multi-auth}

The keywords allow the following:

  • single-host— Single-host (client) on an IEEE 802.1X-authorized port.
  • multi-host —Multiple-hosts on an 802.1X-authorized port after a authenticating a single host.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# [no] dot1x host-mode {single-host | multi-host | multi-domain}

  • multi-domain— Both a host and a voice device (such as an IP phone, Cisco or non-Cisco), to authenticate on an IEEE 802.1X-authorized port.
  • multi-auth— Allows multiple hosts and a voice device, such as an IP phone (Cisco or non-Cisco), to be authenticated on an IEEE 802.1x-authorized port. This keyword requires Cisco IOS Release 12.2(50)SG or a later release.

Ensure that the dot1x port-control interface configuration command is set to auto for the specified interface.

To disable multiple hosts on the port, use the no authentication host-mode {multi-host | multi-domain | multi-auth} interface configuration command (for earlier releases, use the no dot1x host-mode {multi-host | multi-domain} interface configuration command).

Step 5 Switch(config-if)# switchport voice vlan vlan-id

(Optional) Configures the voice VLAN.

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show dot1x interface interface-id [detail]

Verifies your entries.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable 802.1X authentication and to allow multiple hosts:

Cisco IOS Release 12.2(50)SG and later

Switch(config)# interface gigabitethernet2/1 Switch(config-if)# authentication port-control auto Switch(config-if)# authentication host-mode multi-host Switch(config-if)# end

Cisco IOS Release 12.2(46)SG or earlier

Switch(config)# interface gigabitethernet2/1 Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x host-mode multi-host Switch(config-if)# end

Page 914 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46)SG or earlier
Page 914 · click to enlarge
Page 914

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

This example shows how to enable MDA and to allow both a host and a 802.1X voice device (a Cisco or third-party phone with 802.1X supplicant) on the port:

Cisco IOS Release 12.2(50)SG and later

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface FastEthernet3/1 Switch(config-if)# shut Switch(config-if)# switchport access vlan 12 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# authentication host-mode multi-domain Switch(config-if)# no shut Switch(config-if)# end Cisco IOS Release 12.2(46)SG or earlier

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface FastEthernet3/1 Switch(config-if)# shut Switch(config-if)# switchport access vlan 12 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x host-mode multi-domain Switch(config-if)# no shut Switch(config-if)# end

This example shows how to enable MDA and to allow both a host and a non-802.1X voice device on the port:

Cisco IOS Release 12.2(50)SG and later

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface FastEthernet3/1 Switch(config-if)# shut Switch(config-if)# switchport access vlan 12 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# authentication host-mode multi-domain Switch(config-if)# mab eap Switch(config-if)# no shut Switch(config-if)# end

Cisco IOS Release 12.2(46)SG or earlier

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface FastEthernet3/1 Switch(config-if)# shut Switch(config-if)# switchport access vlan 12 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator

Page 915 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 915 · click to enlarge
Page 915

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x host-mode multi-domain Switch(config-if)# dot1x mac-auth-bypass Switch(config-if)# no shut Switch(config-if)# end

This example shows how to verify the dot1x MDA settings on interface FastEthernet3/1:

Switch# show dot1x interface FastEthernet3/1 detail

Dot1x Info for FastEthernet3/1 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = MULTI_DOMAIN ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0

Dot1x Authenticator Client List Domain = DATA Supplicant = 0000.0000.ab01 Auth SM State = AUTHENTICATED Auth BEND SM Stat = IDLE Port Status = AUTHORIZED Authentication Method = Dot1x Authorized By = Authentication Server Vlan Policy = 12

Domain = VOICE Supplicant = 0060.b057.4687 Auth SM State = AUTHENTICATED Auth BEND SM Stat = IDLE Port Status = AUTHORIZED Authentication Method = Dot1x Authorized By = Authentication Server

This example shows how to enable MDA and to authentication of multiple hosts and a voice device on an IEEE 802.1x-authorized port:

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface FastEthernet3/1 Switch(config-if)# shut Switch(config-if)# switchport access vlan 12 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator

Switch#

Page 916 of the Cisco Systems 4500 user manual — Interface Configuration Example
Page 916 · click to enlarge
Page 916

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Switch(config-if)# authentication port-control auto Switch(config-if)# authentication host-mode multi-auth Switch(config-if)# map eap Switch(config-if)# no shut Switch(config-if)# end

Configuring 802.1X Authentication with ACL Assignments and Redirect URLs

This section includes these topics:

  • Downloadable ACL, page 40-38
  • URL-Redirect, page 40-40
  • Configuring a Downloadable Policy, page 40-43

Downloadable ACL

The downloadable ACL (DACL) feature allows you to download device specific authorization policies from the authentication server. These policies activate after authentication succeeds for the respective client and the client’s IP address was populated in the IP device tracking table. (Downloadable ACL is applied on the port, once the port is authenticated and the IP device tracking table has the host IP address entry).

The following sections describe the configuration that is necessary to complement the related authentication (802.1X or MAB) configuration. (No unique configuration is required on the switch. All of the configuration is on the ACS.) After authentication succeeds, enter the show ip access-list command to display the downloadable ACLs.

Configuring the Switch for Downloadable ACL

To configure the switch for downloadable ACL, follow these steps:

Step 1 Configure the IP device tracking table.

Switch(config)# ip device tracking

Step 2 Configure RADIUS VSA to forward authentication.

Switch(config)# radius-server vsa send authentication

Step 3 Configure static ACL for the interface.

Switch(config)# int g2/9 Switch(config-if)# ip access-group pacl-4 in

Interface Configuration Example

Switch# show running-configuration interface g2/9 Building configuration... Current configuration : 617 bytes ! interface GigabitEthernet2/9 switchport switchport access vlan 29 switchport mode access

Page 917 of the Cisco Systems 4500 user manual — Debug Commands for DACL
Page 917 · click to enlarge
Page 917

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

switchport voice vlan 1234 access-group mode prefer port ip access-group pacl-4 in speed 100 duplex full authentication event fail action authorize vlan 111 authentication event server dead action authorize vlan 333 authentication event server alive action reinitialize authentication host-mode multi-auth authentication order dot1x authentication port-control auto authentication timer restart 100 authentication timer reauthenticate 20 authentication timer inactivity 200 mab eap dot1x pae authenticator end Switch# Switch# show ip access-list pacl-4 10 permit ip host 1.1.1.1 host 2.2.2.2 20 permit icmp host 1.1.1.1 host 2.2.2.2 Switch#

Debug Commands for DACL

The IP device tracking table contains the host IP address learned through ARP or DHCP.

The following command displays the constraints on the IP device tracking table:

Switch# show ip device tracking all IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Interface STATE 50.0.0.12 0015.60a4.5e84 GigabitEthernet2/9 ACTIVE

The following command shows that the Policy Enforced Module (EPM) session contains the downloadable ACL obtained from ACS:

Switch# show epm session ip 50.0.0.12 Admission feature : DOT1X AAA Policies : ACS ACL : xACSACLx-IP-auth-48b79b6e

The following command displays the contents of the downloadable ACL:

Switch# show ip accesslists xACSACLx-IP-auth-48b79b6e Extended IP access list xACSACLx-IP-auth-48b79b6e (per-user) 10 permit udp any any Switch(config)#

Page 918 of the Cisco Systems 4500 user manual — URL-Redirect
Page 918 · click to enlarge
Page 918

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Cisco ACS Configuration for DACL

To ensure correct functioning of the ACS configuration required for DACL, follow these steps:

Step 1 Configure a downloadable IP ACL on the window that appears when you select Radius Shared Profile > Downloadable IP ACL Content (Figure 40-10).

Figure 40-10 Shared Profile Components

Cisco Systems 4500 — Cisco ACS Configuration for DACL diagram (page 918)
Fig. 8 · Cisco ACS Configuration for DACL

Step 2 Attach this downloadable ACL with the USER on the window that appears when you select User > DACLs (Figure 40-11).

Figure 40-11 Downloadable ACLs

Cisco Systems 4500 — Cisco ACS Configuration for DACL diagram (page 918)
Fig. 9 · Cisco ACS Configuration for DACL

URL-Redirect

To configure URL-direct, you need to configure it on the ACS, and on the switch.

Page 919 of the Cisco Systems 4500 user manual — Interface Configuration Example
Page 919 · click to enlarge
Page 919

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Configuring ACS

To configure two Cisco-AV pairs, add the following statements under the user or group Cisco IOS/PIX 6x RADIUS attributes:

url-redirect-acl=urlacl url-redirect=http://www.cisco.com

Configuring the Switch

To configure the switch for URL redirect, follow these steps:

Step 1 Configure the IP device tracking table.

Switch(config)# ip device tracking

Step 2 Configure RADIUS by using the send authentication command.

Switch(config)# radius-server vsa send authentication

Step 3 Configure the URL redirect ACL (URLACL).

Switch# ip access-list urlacl 10 permit tcp any any Switch#

Step 4 Configure static ACL (PACL) for the interface.

Switch(config)# int g2/9 Switch(config-if)# ip access-group pacl-4 in

Interface Configuration Example

Switch# show running-configuration int g2/9 Building configuration... Current configuration : 617 bytes ! interface GigabitEthernet2/9 switchport switchport access vlan 29 switchport mode access switchport voice vlan 1234 access-group mode prefer port ip access-group pacl-4 in speed 100 duplex full authentication event fail action authorize vlan 111 authentication event server dead action authorize vlan 333 authentication event server alive action reinitialize authentication host-mode multi-auth authentication order dot1x authentication port-control auto authentication timer restart 100 authentication timer reauthenticate 20 authentication timer inactivity 200 mab

Page 920 of the Cisco Systems 4500 user manual — Guideline for DACL and URL Redirect
Page 920 · click to enlarge
Page 920

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

dot1x pae authenticator end

Switch# show access-list pacl-4 10 permit ip host 1.1.1.1 host 2.2.2.2 20 permit icmp host 1.1.1.1 host 2.2.2.2 Switch#

Verify URL-redirect by using the following commands.

The show ip device tracking command displays the constraints on the IP device tracking table:

Switch(config)# show ip device tracking all IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Interface STATE 50.0.0.12 0015.60a4.5e84 GigabitEthernet2/9 ACTIVE

The show epm session ip command displays the EPM session table for a particular host. Observe the URL-redirect-acl and URL-redirect URL information that downloads from the ACS.

Switch# show epm session ip 50.0.0.12 Admission feature : DOT1X AAA Policies : URL Redirect ACL : urlacl URL Redirect : http://www.cisco.com

For more information about AV pairs that are supported by Cisco IOS software, see the ACS configuration and command reference documentation about the software releases running on the AAA clients.

Guideline for DACL and URL Redirect

For downloadable ACL or URL redirect, the ACL source must be ANY (permit TCP ANY host 1.1.1.1 eq 80 or permit TCP ANY host 1.1.1.1 eq 443).

Switch#

Page 921 of the Cisco Systems 4500 user manual — Configuring a Downloadable Policy
Page 921 · click to enlarge
Page 921

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Configuring a Downloadable Policy

To configure downloadable policies, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# access-list access-list-number {deny | permit} source [source-wildcard] [log]

Defines the default port ACL through a source address and wildcard.

The access-list-number is a decimal from 1 to 99 or 1300 to 1999.

Enter deny or permit to specify whether to deny or permit access if conditions match.

source is the address of the network or host from which the packet is sent, specified as follows:

  • The 32-bit quantity in dotted-decimal format
  • The keyword any as an abbreviation for source and source-wildcard value of 0.0.0.0 255.255.255.255

You do not need a source-wildcard value.

  • The keyword host as an abbreviation for source and source-wildcard of source 0.0.0.0.

(Optional) Applies the source-wildcard wildcard bits to the source.

(Optional) Enters log to cause an informational logging message about the packet that matches the entry to be sent to the console.

Step 3 Switch(config-if)# interface interface-id

Enters interface configuration mode.

Step 4 Switch(config-if)# ip access-group {access-list-number | name} in

Controls access to the specified interface.

This step is mandatory for a functioning downloaded policy.

Step 5 Switch(config)# exit Returns to global configuration mode.

Step 6 Switch(config)# aaa new-model Enables AAA.

Step 7 Switch(config)# aaa authorization network default local

Sets the authorization method to local. To remove the authorization method, use the no aaa authorization network default local command.

Step 8 Switch(config)# ip device tracking Enables the IP device tracking table.

To disable the IP device tracking table, use the no ip device tracking global configuration commands.

Step 9 Switch(config)# ip device tracking [probe {count count | interval interval}]

(Optional) Configures these parameters for the IP device tracking table:

  • count— Number of times that the switch sends the ARP probe. The range is 1 to 5. The default is 3.
  • interval— Number of seconds that the switch waits for a response before resending the ARP probe. The range is 30 to 300 seconds. The default is 30 seconds.

Step 10 Switch(config)# ip device tracking [probe {delay interval}]

(Optional) Configures the optional probe delay parameter for the IP device tracking table:

  • interval —Number of seconds that the switch delays sending an ARP probe, triggered by link-up and ARP probe generation by the tracked device. The range is 1 to 120 seconds. The default is 0 seconds.
Page 922 of the Cisco Systems 4500 user manual — Per-User ACL and Filter-ID ACL
Page 922 · click to enlarge
Page 922

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 11 Switch(config)# radius-server vsa send authentication

Configures the network access server to recognize and use vendor-specific attributes.

Step 12 Switch(config)# end Returns to privileged EXEC mode.

Step 13 Switch# show ip device tracking {all | interface interface-id | ip ip-address | mac mac-address}

Displays information about the entries in the IP device tracking table.

Step 14 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

The following example illustrates how to configure a switch for downloadable policy:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# aaa new-model Switch(config)# aaa authorization network default local Switch(config)# ip device tracking Switch(config)# ip access-list extended default_acl Switch(config-ext-nacl)# permit ip any any Switch(config-ext-nacl)# exit Switch(config)# radius-server vsa send authentication Switch(config)# int fastEthernet 2/13 Switch(config-if)# ip access-group default_acl in Switch(config-if)# exit

Configuring 802.1X Authentication with Per-User ACL and Filter-ID ACL

This section includes the following topics:

  • Per-User ACL and Filter-ID ACL, page 40-44
  • Configuring a Per-User ACL and Filter-ID ACL, page 40-50

Per-User ACL and Filter-ID ACL

Prior to Cisco IOS Release 12.2(52)SG, the Catalyst 4500 platform only supported downloadable ACLs, which work with the Cisco ACS server but not with third-party AAA servers. With Cisco IOS Release 12.2(52)SG, the Catalyst 4500 switch offers the Filter-ID/Per-user-acl enhancement, which allows ACL policy enforcement using a third-party AAA server.

The Filter-ID feature provides the following capabilities:

Filter-ID option allows an administrator to define the ACL name on the AAA server using IETF standard RADIUS attribute. The ACL itself must be preconfigured locally on the switch.

The Per-user-acl feature provides the following capabilities:

Per-user ACL allows an administrator to define the per-user ACL on the AAA server using Cisco RADIUS AV pairs. This action allows a third-party AAA server to interoperate by loading the Cisco RADIUS dictionary, which has Cisco Radius AV pairs configured as a VSA.

Page 923 of the Cisco Systems 4500 user manual — Per-User ACL Configuration in ACS
Page 923 · click to enlarge
Page 923

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Configuring the Switch

To configure the switch for per-user ACL and filter-ID ACL:

Step 1 Configure the IP device tracking table.

Switch(config)# ip device tracking

Step 2 Configure static ACL for the interface.

Switch(config)# int g2/9 Switch(config-if)# ip access-group pacl-4 in

Interface Configuration Example

Switch# show running-configuration interface g2/9 Building configuration... Current configuration : 617 bytes ! interface GigabitEthernet2/9 switchport switchport access vlan 29 switchport mode access switchport voice vlan 1234 access-group mode prefer port ip access-group pacl-4 in speed 100 duplex full authentication event fail action authorize vlan 111 authentication event server dead action authorize vlan 333 authentication event server alive action reinitialize authentication host-mode multi-auth authentication order dot1x authentication port-control auto authentication timer restart 100 authentication timer reauthenticate 20 authentication timer inactivity 200 mab eap dot1x pae authenticator end Switch# Switch# show ip access-list pacl-4 10 permit ip host 1.1.1.1 host 2.2.2.2 20 permit icmp host 1.1.1.1 host 2.2.2.2 Switch#

Per-User ACL Configuration in ACS

In the Group/User Setting page, scroll down to the Cisco IOS/PIX 6.x RADIUS Attributes section. Select the box next to [009\001 cisco-av-pair] and enter the elements of the per-user ACL. Per-user ACLS take this format:

protocol_#:inacl# sequence number=ACE

protocol Either ip (for IP-based ACLs) or mac (for MAC-based ACLs)

Page 924 of the Cisco Systems 4500 user manual — Filter-Id Configuration in ACS
Page 924 · click to enlarge
Page 924

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Figure 40-12 shows how members of the group you are configuring are denied all access to the 10.100.60.0 subnet, are denied HTTP access to the server at 10.100.10.116, and are permitted everywhere else.

Figure 40-12 Define the ACEs for the Per-User ACL

Cisco Systems 4500 — Configuring 802.1X Port-Based Authentication diagram (page 924)
Fig. 10 · Configuring 802.1X Port-Based Authentication

Filter-Id Configuration in ACS

In the Group/User Setting page, scroll down to the IETF RADIUS Attributes section. Select the box next to Filter-Id and enter the ACL to apply for members of this group (Figure 40-13).

The Filter-Id ia in this format:

ACL_#.in

ACL Number of the ACL that was previously configured on the switch

Page 925 of the Cisco Systems 4500 user manual — Debug Commands for Per-User ACL and Filter-ID ACL
Page 925 · click to enlarge
Page 925

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Figure 40-13 Configuring the Filter-ID Attribute

Cisco Systems 4500 — Configuring 802.1X Port-Based Authentication diagram (page 925)
Fig. 11 · Configuring 802.1X Port-Based Authentication

Debug Commands for Per-User ACL and Filter-ID ACL

The IP device tracking table contains the host IP address learned through ARP or DHCP. The following command displays the constraints on the IP device tracking table:

Switch# show ip device tracking all IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Interface STATE 50.0.0.12 0015.60a4.5e84 GigabitEthernet2/9 ACTIVE

Page 926 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 926 · click to enlarge
Page 926

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

The following command shows that the Policy Enforced Module (EPM) session contains the per-user-acl from ACS:

Switch# show epm session ip 50.0.0.12 Admission feature : DOT1X AAA Policies : Per-User ACL : deny ip any host 20.20.10.10

The following command displays the contents of the per-user-acl (note that per-user-acl are shown above as the default port ACL configured on the interface, 151 is the default port ACL in the following example):

Switch# show access-list Extended IP access list 151

deny ip host 20.20.0.3 host 20.20.10.10

10 permit ip any any (57 estimate matches)

The following command displays the number of sessions and the corresponding client IP addresses:

Switch# show epm session summary EPM Session Information

Total sessions seen so far1
Total active sessions1

Session IP Address :

50.0.0.12

The following command displays that the Policy Enforced Module (EPM) session contains the per-user-acl (both IP and MAC ACL from ACS):

Switch# show epm session ip 50.0.0.12 Admission feature : DOT1X AAA Policies : Per-User ACL : deny ip any host 20.20.10.10 Per-User ACL : deny any host 0000.AAAA.AAAA

The following command displays the contents of the per-user-acl (note that per-user-acl are shown above as the default port ACL configured on the interface, 151 is the default port ACL in the preceding example below):

Switch# show access-list Extended IP access list 151

deny ip host 20.20.0.3 host 20.20.10.10

10 permit ip any any (57 estimate matches) (check for the mac access-list created) Extended MAC access list PerUser_MAC_ACL-589079192 (per-user) deny any host 0000.aaaa.aaaa ..

·

Page 927 of the Cisco Systems 4500 user manual — Guidelines for Per-User ACL and Filter-ID ACL
Page 927 · click to enlarge
Page 927

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

The following command shows that the Policy Enforced Module (EPM) session contains the Filter-Id 155 from ACS:

Switch# show ip access-list 156 Extended IP access list 156 10 deny ip any host 155.155.155.156 20 deny ip any 156.100.60.0 0.0.0.255 30 deny tcp any host 156.100.10.116 eq www

Switch# show epm session ip 50.0.0.12 Admission feature : DOT1X AAA Policies : Filter-Id : 155

The following command displays the contents of the Filter-Id applied on the interface:

Switch# show ip access-list int <gi6/3>

Switch# show ip access-list interface gi6/3 deny ip host 20.20.0.2 host 155.155.155.156 deny ip host 20.20.0.2 156.100.60.0 0.0.0.255 deny tcp host 20.20.0.2 host 156.100.10.116 eq www

Guidelines for Per-User ACL and Filter-ID ACL

For per user ACL and Filter-ID ACL, the ACL source must be ANY (permit TCP ANY host 1.1.1.1 eq 80 or permit TCP ANY host 1.1.1.1 eq 443).

Page 928 of the Cisco Systems 4500 user manual — Configuring a Per-User ACL and Filter-ID ACL
Page 928 · click to enlarge
Page 928

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Configuring a Per-User ACL and Filter-ID ACL

To configure per-user ACL and Filter-ID ACL, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# access-list access-list-number {deny | permit} source [source-wildcard] [log]

Defines the default port ACL through a source address and wildcard.

The access-list-number is a decimal from 1 to 99 or 1300 to 1999.

Enter deny or permit to specify whether to deny or permit access if conditions match.

source is the address of the network or host from which the packet is sent, specified as follows:

  • The 32-bit quantity in dotted-decimal format
  • The keyword any as an abbreviation for source and source-wildcard value of 0.0.0.0 255.255.255.255

You do not need a source-wildcard value.

  • The keyword host as an abbreviation for source and source-wildcard of source 0.0.0.0.

(Optional) Applies the source-wildcard wildcard bits to the source.

(Optional) Enters log to cause an informational logging message about the packet that matches the entry to be sent to the console.

Step 3 Switch(config-if)# interface interface-id

Enters interface configuration mode.

Step 4 Switch(config-if)# ip access-group {access-list-number | name} in

Controls access to the specified interface.

This step is mandatory for a functioning downloaded policy.

Step 5 Switch(config)# exit Returns to global configuration mode.

Step 6 Switch(config)# aaa new-model Enables AAA.

Step 7 Switch(config)# aaa authorization network default local

Sets the authorization method to local. To remove the authorization method, use the no aaa authorization network default local command.

Step 8 Switch(config)# ip device tracking Enables the IP device tracking table.

To disable the IP device tracking table, use the no ip device tracking global configuration commands.

Step 9 Switch(config)# ip device tracking [probe {count count | interval interval}]

(Optional) Configures these parameters for the IP device tracking table:

  • count— Number of times that the switch sends the ARP probe. The range is 1 to 5. The default is 3.
  • interval— Number of seconds that the switch waits for a response before resending the ARP probe. The range is 30 to 300 seconds. The default is 30 seconds.

Step 10 Switch(config)# ip device tracking [probe {delay interval}]

(Optional) Configures the optional probe delay parameter for the IP device tracking table:

  • interval —Number of seconds that the switch delays sending an ARP probe, triggered by link-up and ARP probe generation by the tracked device. The range is 1 to 120 seconds. The default is 0 seconds.
Page 929 of the Cisco Systems 4500 user manual — Configuring RADIUS-Provided Session Timeouts
Page 929 · click to enlarge
Page 929

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 11 Switch(config)# end Returns to privileged EXEC mode.

Step 12 Switch# show ip device tracking {all | interface interface-id | ip ip-address | mac mac-address}

Displays information about the entries in the IP device tracking table.

Step 13 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

The following example illustrates how to configure a switch for downloadable policy:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# aaa new-model Switch(config)# aaa authorization network default local Switch(config)# ip device tracking Switch(config)# ip access-list extended default_acl Switch(config-ext-nacl)# permit ip any any Switch(config-ext-nacl)# exit Switch(config)# int fastEthernet 2/13 Switch(config-if)# ip access-group default_acl in Switch(config-if)# exit

Configuring RADIUS-Provided Session Timeouts

You can configure the Catalyst 4500 series switch to use a RADIUS-provided reauthentication timeout.

To configure RADIUS-provided timeouts, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication timer reauthenticate {interface | server}

Sets the reauthentication period (seconds).

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x timeout reauth-attempts {interface | server}

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show dot1x interface interface-id details

Verifies your entries.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 930 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46) or earlier
Page 930 · click to enlarge
Page 930

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

This example shows how to configure a switch to derive the reauthentication period from the server and to verify the configuration:

Cisco IOS Release 12.2(50):

Switch# configure terminal Switch(config)# interface f7/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication timer reauthenticate server Switch(config-if)# end Switch# show dot1x interface f7/1 detail

Dot1x Info for FastEthernet7/11 PAE = AUTHENTICATOR PortControl = FORCE_AUTHORIZED ControlDirection = Both HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = (From Authentication Server) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0

Dot1x Authenticator Client List Empty

Port Status = AUTHORIZED

Cisco IOS Release 12.2(46) or earlier

Switch# configure terminal Switch(config)# interface f7/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x timeout reauth-attempts server Switch(config-if)# end Switch# show dot1x interface f7/1 detail

Dot1x Info for FastEthernet7/11 PAE = AUTHENTICATOR PortControl = FORCE_AUTHORIZED ControlDirection = Both HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = (From Authentication Server) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0

Switch#

Page 931 of the Cisco Systems 4500 user manual — Configuring MAC Replace
Page 931 · click to enlarge
Page 931

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Dot1x Authenticator Client List Empty

Port Status = AUTHORIZED

Configuring MAC Move

MAC move allows an authenticated host to move from one switch port to another.

To globally enable MAC move on the switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# authentication mac-move permit

Enable MAC move globally.

Step 3 Switch(config-if)# end Returns to privileged EXEC mode.

Step 4 Switch# show run Verifies your entries.

Step 5 Switch # copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to globally enable MAC move on a switch:

Switch# configure terminal Switch(config)# authentication mac-move permit

The following syslog messages displays when MAC-move happens:

%AUTHMGR-5-SECUREMACMOVE< mac-addr > moved from < interface-name > to < interface-name >

Configuring MAC Replace

MAC replace allows new users to connect to abandoned ports.

If a user disconnects but the switch has not received the EAPoL-Logoff, the session will remain up. For single or multiple- domain modes, no new hosts can connect to that port. If a new host tries to connect, a violation is triggered on the port. Where the violation action is configured as replace, the desired behavior is for the NAD (switch) to terminate the initial session and reset the authentication sequence based on the new MAC.

To enable MAC replace on a switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode.

Switch#

Page 932 of the Cisco Systems 4500 user manual — Configuring Violation Action
Page 932 · click to enlarge
Page 932

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 3 Switch(config-if)# authentication violation [restrict | shutdown | replace]

Tears down the old session and authenticates the new host, when a new host is seen in single or multiple- domain modes.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show run Verifies your entries.

Step 6 Switch # copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to globally enable MAC replace on a switch:

Switch# configure terminal Switch(config)# interface f7/1 Switch(config-if)# authentication violation replace

The following syslog messages displays when MAC-replace occurs:

%AUTHMGR-5-SECUREMACREPLACE< mac-addr > replaced <mac-addr> on < interface-name>

Configuring Violation Action

You can configure 802.1X security violation behavior as either shutdown, restrict, or replace mode, based on the response to the violation.

To configure the violation action, performing the following task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode.

Step 3 Switch(config-if)# authentication violation [restrict | shutdown | replace]

(Optional) Configures the disposition of the port if a security violation occurs.

The default action is to shut down the port. If the restrict keyword is configured, the port does not shut down.

When a new host is seen in single or multiple- domain modes, replace mode tears down the old session and authenticates the new host.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show run Verifies your entries.

Step 6 Switch # copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to configure the violation mode shutdown on a switch:

Switch# configure terminal Switch(config)# authentication violation shutdown

A port is error-disabled when a security violation triggers on shutdown mode. The following syslog messages displays:

%AUTHMGR-5-SECURITY_VIOLATION: Security violation on the interface , new MAC address is seen.

Page 933 of the Cisco Systems 4500 user manual — Configuring 802.1X with Guest VLANs
Page 933 · click to enlarge
Page 933

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

%PM-4-ERR_DISABLEsecurity-violation error detected on <interface name>, putting <interface name> in err-disable state

Configuring 802.1X with Guest VLANs

You can configure a guest VLAN for each 802.1X port on the Catalyst 4500 series switch to provide limited services to clients, such as downloading the 802.1X client. These clients might be upgrading their system for 802.1X authentication, and some hosts, such as Windows 98 systems, might not be 802.1X-capable.

When you enable a guest VLAN on an 802.1X port, the Catalyst 4500 series switch assigns clients to a guest VLAN, provided one of the following apply:

  • The authentication server does not receive a response to its EAPOL request or identity frame.
  • The EAPOL packets are not sent by the client.

Beginning with Cisco IOS Release 12.2(25)EWA, the Catalyst 4500 series switch maintains the EAPOL packet history. If another EAPOL packet is detected on the interface during the lifetime of the link, network access is denied. The EAPOL history is reset upon loss of the link.

Any number of 802.1X-incapable clients are allowed access when the switch port is moved to the guest VLAN. If an 802.1X-capable client joins the same port on which the guest VLAN is configured, the port is put into the unauthorized state in the user-configured access VLAN, and authentication is restarted.

Guest VLANs are supported on 802.1X ports in single-host or multiple-hosts mode.

To configure 802.1X with guest VLAN on a port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for 802.1X authentication.

Step 3 Switch(config-if)# switchport mode access or Switch(config-if)# switchport mode private-vlan host

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Specifies that the ports with a valid PVLAN trunk association become active host PVLAN trunk ports.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Page 934 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(50)SG and later
Page 934 · click to enlarge
Page 934

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 5 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication event no-response action authorize vlan vlan-id

Enables a guest VLAN on a particular interface.

To disable the guest VLAN feature on a particular port, use the no authentication event no-response action authorize vlan interface configuration command (for earlier releases, use the no dot1x guest-vlan interface configuration command).

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x guest-vlan vlan-id

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 7 Switch(config-if)# end Returns to configuration mode.

Step 8 Switch(config)# end Returns to privileged EXEC mode.

This example shows how to enable regular VLAN 50 on Fast Ethernet 4/3 as a guest VLAN on a static access port:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fa4/3 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication event no-response action authorize vlan 50 Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fa4/3 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x guest-vlan 50 Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

This example shows how to enable a secondary PVLAN 100 as a guest VLAN on a PVLAN host port:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fa4/3 Switch(config-if)# switchport mode private-vlan host Switch(config-if)# authentication port-control auto Switch(config-if)# authentication event no-response action authorize vlan 100 Switch(config-if)# end Switch#

Page 935 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46)SG or earlier
Page 935 · click to enlarge
Page 935

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fa4/3 Switch(config-if)# switchport mode private-vlan host Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x guest-vlan 100 Switch(config-if)# end Switch#

To allow supplicants into a guest VLAN on a switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch# dot1x guest-vlan supplicant (Optional) Enables supplicants to be allowed into the guest VLANs globally on the switch.

To disable the supplicant guest VLAN feature on a switch, use the no dot1x guest-vlan supplicant global configuration command.

Step 3 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for 802.1X authentication.

Step 4 Switch(config-if)# switchport mode access or Switch(config-if)# switchport mode private-vlan host

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Specifies that the ports with a valid PVLAN trunk association become active host PVLAN trunk ports.

Step 5 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 6 Switch(config-if)# dot1x guest-vlan vlan-id

Specifies an active VLAN as an 802.1X guest VLAN. The range is 1 to 4094.

Step 7 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 8 Switch(config-if)# end Returns to privileged EXEC mode.

Step 9 Switch# show dot1x interface interface-id

Verifies your entries.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 936 of the Cisco Systems 4500 user manual — Configuring 802.1X with MAC Authentication Bypass
Page 936 · click to enlarge
Page 936

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

This example shows how to enable the guest VLAN feature and to specify VLAN 5 as a guest VLAN:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# dot1x guest-vlan supplicant Switch(config)# interface gigabitethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication event no-response action authorize vlan 5 Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# dot1x guest-vlan supplicant Switch(config)# interface gigabitethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x guest-vlan 5 Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

Configuring 802.1X with MAC Authentication Bypass

To enable MAC Authentication Bypass (MAB), perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Specifies the port to be configured, and enters interface configuration mode.

Step 3 Switch(config-if)# switchport mode access or Switch(config-if)# switchport mode private-vlan host

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Specifies that the ports with a valid PVLAN trunk association become active host PVLAN trunk ports.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# mab [eap]

Enables MAB on a switch.

The eap option specifies that a complete EAP conversation should be used, as opposed to standard RADIUS Access-Request, Access-Accept conversation. By default, the eap option is not enabled for MAB.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x mac-auth-bypass [eap]

Page 937 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46)SG or earlier
Page 937 · click to enlarge
Page 937

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Step 8 Switch# show mab interface interface-id details

(Optional) Verifies your entries.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Note Removing a 802.1X MAB configuration from a port does not impact the authorized or authenticated state of the port. If the port is in an unauthenticated state, it remains in that state. If the port is in an authenticated state because of MAB, the switch reverts to the 802.1X Authenticator. If the port was already authorized with a MAC address and the MAB configuration was removed, the port remains in an authorized state until reauthentication occurs. At that time, if an 802.1X supplicant is detected on the wire, the MAC address is removed.

This example shows how to enable MAB on Gigabit Ethernet interface 3/3 and to verify the configuration:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface gigabitethernet3/3 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# mab Switch(config-if)# end Switch# show mab int g3/3 details MAB details for GigabitEthernet3/3 Mac-Auth-Bypass = Enabled

MAB Client List Client MAC = 0001.0001.0001 Session ID = C0A8016F0000002304175914 MAB SM state = TERMINATE Auth Status = AUTHORIZED

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface gigabitethernet3/3 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x mac-auth-bypass Switch(config-if)# end Switch# show dot1x int g3/3 details Dot1x Info for GigabitEthernet3/3 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST ReAuthentication = Disabled

Page 938 of the Cisco Systems 4500 user manual — Configuring 802.1X with Inaccessible Authentication Bypass
Page 938 · click to enlarge
Page 938

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 1 RateLimitPeriod = 0 Mac-Auth-Bypass = Enabled Dot1x Authenticator Client List Supplicant = 0000.0000.0001 Auth SM State = AUTHENTICATED Auth BEND SM Stat = IDLE Port Status = AUTHORIZED Authentication Method = MAB Authorized By = Authentication Server Vlan Policy = N/A Switch#

Configuring 802.1X with Inaccessible Authentication Bypass

Caution You must configure the switch to monitor the state of the RADIUS server as described in the section Configuring Switch-to-RADIUS-Server Communication, page 40-32 for Inaccessible Authentication Bypass to work properly. Specifically, you must configure the RADIUS test username, idle-time, deadtime and dead-criteria. Failure to do so results in the switch failing to detect that the RADIUS server has gone down, or prematurely marking a dead RADIUS server as alive again.

To configure a port as a critical port and to enable the Inaccessible Authentication Bypass feature, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# dot1x critical eapol

(Optional) Configures whether to send an EAPOL-Success packet when a port is critically authorized partway through an EAP exchange.

The default is not to send EAPOL-Success packets when a port is critically authorized partway through an EAP exchange. If there is no ongoing EAP exchange at the time when a port is critically authorized, EAPOL-Success packet is always sent out regardless of this option.

Step 3 Cisco IOS Release 12.2(50)SG and later Switch(config)# authentication critical recovery delay msec

(Optional) Specifies a throttle rate for the reinitialization of critically authorized ports when the RADIUS server becomes available. The default throttle rate is 100 milliseconds. This means that 10 ports reinitialize per second.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config)# dot1x critical recovery delay msec

Page 939 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 939 · click to enlarge
Page 939

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 4 Switch(config)# interface interface-id

Specifies the port to be configured and enters interface configuration mode.

Step 5 Switch(config-if)# switchport mode access or Switch(config-if)# switchport mode private-vlan host

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Specifies that the ports with a valid PVLAN trunk association become active host PVLAN trunk ports.

Step 6 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 7 Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Step 8 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication event server dead action authorize [vlan vlan-id]

Enables the Inaccessible Authentication Bypass feature for data clients on the port and specifies a VLAN into which data clients are assigned. If no VLAN is specified, data clients are assigned into the configured data VLAN on the port.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x critical

To disable the feature, use the no authentication event server dead action authorize vlan interface configuration command (for earlier releases, use the no dot1x critical interface configuration command).

Alternatively, starting with Cisco IOS Release 15.0(2)SG you can enable Inaccessible Authentication Bypass for data clients using the authentication event server dead action reinitialize vlan interface configuration command which forces all authorized data clients to be reauthenticated when RADIUS becomes unavailable and a client attempts to authenticate. This only applies to data devices. Voice devices are unaffected.

Cisco IOS Release 15.0(2)SG and later Switch(config-if)# [no] authentication event server dead action reinitialize [vlan vlan-id]

To disable it, use the no authentication event server dead action reinitialize vlan interface configuration command.

Step 9 Cisco IOS Release 15.0(2)SG and later releases Switch(config-if)# authentication event server dead action authorize voice

(Optional) Enables Inaccessible Authentication Bypass for voice clients on the port. This command applies to Multiple Domain Authentication and Multiple Authentication modes.

To disable the feature, use the no authentication event server dead action authorize voice interface configuration command.

Step 10 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication event server alive action reinitialize

(Optional) Specifies that the port should be reinitialized if it is critically authorized and RADIUS becomes available.

The default is not to reinitialize the port.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x critical recovery action reinitialize

Step 11 Switch(config)# end Returns to privileged EXEC mode.

Step 12 Switch# show dot1x interface interface-id details

(Optional) Verifies your entries.

Step 13 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

or

Page 940 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(46)SG or earlier
Page 940 · click to enlarge
Page 940

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

The following example shows a full configuration of 802.1X with Inaccessible Authentication Bypass, including required AAA and RADIUS configuration as specified in the “Enabling 802.1X Authentication” section on page 40-28 and “Configuring Switch-to-RADIUS-Server Communication” section on page 40-32.

The RADIUS server configured is at IP address 10.1.2.3, using port 1645 for authentication and 1646 for accounting. The RADIUS secret key is mykey. The username used for the test server probes is randomizes. The test probes for both living and dead servers are generated once per minute. The interface FastEthernet 3/1 is configured to critically authenticate into VLAN 17 when AAA becomes unresponsive, and to reinitialize automatically when AAA becomes available again.

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# aaa new-model Switch(config)# aaa authentication dot1x default group radius Switch(config)# dot1x system-auth-control Switch(config)# radius-server host 10.1.2.3 auth-port 1645 acct-port 1646 test username randomuser idle-time 1 key mykey Switch(config)# radius deadtime 1 Switch(config)# radius dead-criteria time 15 tries 3 Switch(config)# interface f3/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# authentication event server dead action authorize vlan 17 Switch(config-if)# end Switch# show dot1x int fastethernet 3/1 details

Dot1x Info for FastEthernet3/1 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0 Critical-Auth = Enabled Critical Recovery Action = Reinitialize Critical-Auth VLAN = 17 Dot1x Authenticator Client List Supplicant = 0000.0000.0001 Auth SM State = AUTHENTICATING Auth BEND SM Stat = RESPONSE Port Status = AUTHORIZED Authentication Method = Dot1x Authorized By = Critical-Auth Operational HostMode = SINGLE_HOST Vlan Policy = 17

Cisco IOS Release 12.2(46)SG or earlier

Switch#

Page 941 of the Cisco Systems 4500 user manual — Configuring 802.1X with Unidirectional Controlled Port
Page 941 · click to enlarge
Page 941

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Switch# configure terminal Switch(config)# aaa new-model Switch(config)# aaa authentication dot1x default group radius Switch(config)# dot1x system-auth-control Switch(config)# radius-server host 10.1.2.3 auth-port 1645 acct-port 1646 test username randomuser idle-time 1 key mykey Switch(config)# radius deadtime 1 Switch(config)# radius dead-criteria time 15 tries 3 Switch(config)# interface f3/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x critical Switch(config-if)# dot1x critical vlan 17 Switch(config-if)# dot1x critical recovery action reinitialize Switch(config-if)# end Switch# show dot1x int fastethernet 3/1 details

Dot1x Info for FastEthernet3/1 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0 Critical-Auth = Enabled Critical Recovery Action = Reinitialize Critical-Auth VLAN = 17 Dot1x Authenticator Client List Supplicant = 0000.0000.0001 Auth SM State = AUTHENTICATING Auth BEND SM Stat = RESPONSE Port Status = AUTHORIZED Authentication Method = Dot1x Authorized By = Critical-Auth Operational HostMode = SINGLE_HOST Vlan Policy = 17

Configuring 802.1X with Unidirectional Controlled Port

To configure unidirectional controlled port, perform this task:

Switch#

Page 942 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(50)SG and later
Page 942 · click to enlarge
Page 942

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Specifies the port to be configured and enters interface configuration mode.

Step 3 Switch(config-if)# switchport mode access or Switch(config-if)# switchport mode private-vlan host

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Specifies that the ports with a valid PVLAN trunk association become active host PVLAN trunk ports.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication control-direction {in | both}

Enables unidirectional port control on each port.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x control-direction {in | both}

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Step 8 Switch# show dot1x interface interface-id details

(Optional) Verifies your entries.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable unidirectional port control:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface gigabitethernet3/3 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# authentication control-direction in Switch(config-if)# end Switch# show dot1x int g3/3 Dot1x Info for GigabitEthernet3/3 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = In HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30

Page 943 of the Cisco Systems 4500 user manual — Configuring the Switch
Page 943 · click to enlarge
Page 943

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0 Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface gigabitethernet3/3 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# dot1x control-direction in Switch(config-if)# end Switch# show dot1x int g3/3 Dot1x Info for GigabitEthernet3/3 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = In HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 30 SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 RateLimitPeriod = 0 Switch#

Configuring 802.1X with VLAN User Distribution

You will need to configure the switch and ACS to configure 802.1X with VLAN user distribution.

Configuring the Switch

To configure the switch, follow these steps:

Step 1 Create a VLAN group on the switch.

Enter the following commands to create a VLAN group and assign some VLANs to the VLAN group. The following example creates the VLAN group eng-group and maps VLANs 20 to 24 to that group:

Switch# configure terminal Switch(config)# vlan group eng-group vlan-list 20-24 Switch(config)# end Switch# show vlan group group-name eng-group Group Name VLANs Mapped eng-group 20-24

Page 944 of the Cisco Systems 4500 user manual — show command Purpose
Page 944 · click to enlarge
Page 944

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 2 Configure the individual ports for multidomain, single-host or multiple- host.

For details, refer to the “Enabling 802.1X Authentication” section on page 40-28.

show commands

Use the following show commands to display the member VLANs in a VLAN group:

show command Purpose

show vlan group all Displays the member VLANs for all the VLAN groups configured on the device.

show vlan group group-name vlan-group-name Displays the member VLANs in a VLAN group with the given VLAN group name.

show vlan group group-name vlan-group-name user-count

Displays the user count for each of the member VLANs of the specified VLAN group

This feature counts only authenticated users and MAC addresses added through port security for distribution. It does not consider other learned MAC addresses. As of Cisco IOS Release 12.2(54)SG, the user count for a VLAN is incremented when a host is learned through port security, 802.1X, MAB, or fallback authentication on that VLAN.

The following examples show outputs of the show vlan group command:

Switch# show vlan group all Group Name VLANs Mapped eng-dept 3-4

Switch# show vlan group group-name my_group user-count VLAN : Count 3 : 1 4 : 0 5 : 2 7 : 0 9 : 0 Switch#

In this example, VLANs 3,4, 5, 7, and 9 are members of the VLAN group my group.

Page 945 of the Cisco Systems 4500 user manual — ACS Configuration
Page 945 · click to enlarge
Page 945

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

ACS Configuration

After configuring the switch, you must provide the VLAN group name in the ACS configuration.

By default, ACS sends only one VLAN name or group per user. However, you can configure ACS to send more than one tag per attribute. To do this, you must modify the configuration in ACS for user or group. (See the example shown in Figure 40-14.)

Figure 40-14 VLAN User Distribution on ACS: Interface Configuration to Modify Tags per Attribute

Cisco Systems 4500 — ACS Configuration diagram (page 945)
Fig. 12 · ACS Configuration

After you add the number of tags required per attribute, the user or group set up presents multiple fields to be filled with values from the RADIUS server (Figure 40-15).

Page 946 of the Cisco Systems 4500 user manual — Configuring 802.1X with Authentication Failed
Page 946 · click to enlarge
Page 946

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Figure 40-15 VLAN User Distribution on ACS: Multiple VLAN Numbers Configured per User

Cisco Systems 4500 — Configuring 802.1X Port-Based Authentication diagram (page 946)
Fig. 13 · Configuring 802.1X Port-Based Authentication

After you complete these two tasks and receive authorization, ACS sends the configured VLAN group to the switch. The switch is alerted to the list of VLANs configured under the VLAN group, and the least loaded valid VLAN in the group is assigned to the port.

Configuring 802.1X with Authentication Failed

By configuring authentication-failed VLAN alignment on any Layer 2 port on the Catalyst 4500 series switch, you can provide limited network services to clients that fail the authentication process.

To configure 802.1X with authentication-failed VLAN assignment, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for 802.1X authentication.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Page 947 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(50)SG and later
Page 947 · click to enlarge
Page 947

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 5 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication event fail action authorize vlan vlan-id

Enables authentication-failed VLAN on a particular interface.

To disable the authentication-failed VLAN feature on a particular port, use the no authentication event fail action authorize vlan interface configuration command.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x auth-fail vlan vlan-id

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication event fail retry max-attempts action [authorize vlan vlan-id | next-method]

Configure a maximum number of attempts before the port is moved to authentication-failed VLAN.

Default is 3 attempts.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x auth-fail max-attempts max-attempts

Step 7 Switch(config-if)# end Returns to configuration mode.

Step 8 Switch(config)# end Returns to privileged EXEC mode.

Step 9 Switch# show dot1x interface interface-id details

(Optional) Verifies your entries.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable a regular VLAN 40 on Fast Ethernet 4/3 as a authentication-failed VLAN on a static access port:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface gigabitEthernet3/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# authentication event fail retry 5 action authorize vlan 40 Switch(config-if)# end Switch# show dot1x all Sysauthcontrol Enabled Dot1x Protocol Version 2

Dot1x Info for GigabitEthernet3/1 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST QuietPeriod = 60 ServerTimeout = 0 SuppTimeout = 30 ReAuthMax = 2 MaxReq = 2 TxPeriod = 30 Switch#

Page 948 of the Cisco Systems 4500 user manual — Configuring 802.1X with Voice VLAN
Page 948 · click to enlarge
Page 948

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface gigabitEthernet3/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x auth-fail vlan 40 Switch(config-if)# dot1x auth-fail max-attempts 3 Switch# show dot1x all Sysauthcontrol Enabled Dot1x Protocol Version 2 Critical Recovery Delay 100 Critical EAPOL Disabled

Dot1x Info for GigabitEthernet3/1 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = SINGLE_HOST ReAuthentication = Disabled QuietPeriod = 60 ServerTimeout = 0 SuppTimeout = 30 ReAuthPeriod = 3600 (Locally configured) ReAuthMax = 2 MaxReq = 2 TxPeriod = 5 RateLimitPeriod = 0 Auth-Fail-Vlan = 40 Auth-Fail-Max-attempts = 3 Switch#

Configuring 802.1X with Voice VLAN

To enable 802.1X with voice VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode.

Step 3 Switch(config-if)# switchport access vlan vlan-id

Sets the VLAN for a switched interface in access mode.

Step 4 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 5 Switch(config-if)# switchport voice vlan vlan-id

Sets the voice VLAN for the interface.

Page 949 of the Cisco Systems 4500 user manual — Configuring 802.1X with VLAN Assignment
Page 949 · click to enlarge
Page 949

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 6 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 7 Cisco IOS Release 12.2(50)SG and later and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 8 Switch(config-if)# end Returns to configuration mode.

Step 9 Switch(config)# end Returns to privileged EXEC mode.

Step 10 Switch# show dot1x interface interface-id details

(Optional) Verifies your entries.

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to enable 802.1X with voice VLAN feature on Fast Ethernet interface 5/9:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport access vlan 2 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch(config# end Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport access vlan 2 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 10 Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch(config# end Switch#

Configuring 802.1X with VLAN Assignment

For enabling dynamic VLAN assignment, no additional configuration is required in the switch. For information on configuring Multiple- authentication (MDA), refer to the “Configuring Multiple Domain Authentication and Multiple Authorization” section on page 40-34. To enable VLAN assignment, you must configure the Cisco ACS server.

Page 950 of the Cisco Systems 4500 user manual — Cisco ACS Configuration for VLAN Assignment
Page 950 · click to enlarge
Page 950

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

To enable 802.1X with VLAN assignment, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode.

Step 3 Switch(config-if)# switchport access vlan-id

Sets the VLAN for a switched interface in access mode.

Step 4 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 5 Switch(config-if)# switchport voice vlan vlan-id

Sets the voice VLAN for the interface.

Step 6 Switch(config-if)# authentication host-mode multi-domain

Enables MDA on the interface.

Step 7 Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Step 8 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 9 Switch(config)# end Returns to privileged EXEC mode.

Step 10 Switch# show dot1x interface interface-id details

(Optional) Verifies your entries.

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

The following example shows how to configure MDA on an interface and 802.1X as the authentication mechanism:

Switch(config)# interface FastEthernet3/3 Switch(config-if)# switchport access vlan 10 Switch(config-if)# switchport mode access Switch(config-if)# switchport voice vlan 16 Switch(config-if)# authentication host-mode multi-domain Switch(config-if)# authentication port-control auto Switch(config-if)# dot1x pae authenticator Switch(config-if)# end

Cisco ACS Configuration for VLAN Assignment

The procedure for enabling MDA with voice VLAN assignment is the same as that for activating MDA except for one step: Configure a VLAN for dynamic VLAN assignment after selecting User > IETF RADIUS Attributes (Figure 40-16). This step ensures correct functioning of the ACS configuration required for dynamic VLAN assignment.

Page 951 of the Cisco Systems 4500 user manual — Enabling Fallback Authentication
Page 951 · click to enlarge
Page 951

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Figure 40-16 User Set Up

Cisco Systems 4500 — Configuring 802.1X Port-Based Authentication diagram (page 951)
Fig. 14 · Configuring 802.1X Port-Based Authentication

Enabling Fallback Authentication

On a port in multiauthentication mode, either or both of MAB and web-based authentication can be configured as fallback authentication methods for non-802.1X hosts (those that do not respond to EAPOL). You can configure the order and priority of the authentication methods.

For detailed configuration information for MAB, see the “Configuring 802.1X with MAC Authentication Bypass” section on page 40-58.

For detailed configuration information for web-based authentication, see Chapter 42, “Configuring Web-Based Authentication.”

To enable fallback authentication, perform this task:

Step 1 Switch(config)# ip admission name rule-name proxy http

Configures an authentication rule for web-based authentication.

Step 2 Switch(config)# fallback profile profile-name Creates a fallback profile for web-based authentication.

Page 952 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 952 · click to enlarge
Page 952

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 3 Switch(config-fallback-profile)# ip access-group rule-name in

Specifies the default ACL to apply to network traffic before web-based authentication.

Step 4 Switch(config-fallback-profile)# ip admission name rule-name

Associates an IP admission rule with the profile and specifies that a client connecting by web-based authentication uses this rule.

Step 5 Switch(config-fallback-profile)# exit Returns to global configuration mode.

Step 6 Switch(config)# interface type slot/port Specifies the port to be configured and enters interface configuration mode.

type = fastethernet, gigabitethernet, or tengigabitethernet

Step 7 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables authentication on the port.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 8 Switch(config-if)# authentication order method1 [method2] [method3]

(Optional) Specifies the fallback order of authentication methods to be used. The three values of method, in the default order, are dot1x, mab, and webauth. The specified order also determines the relative priority of the methods for reauthentication (highest to lowest).

Step 9 Switch(config-if)# authentication priority method1 [method2] [method3]

(Optional) Overrides the relative priority of authentication methods to be used. The three values of method, in the default order of priority, are dot1x, mab, and webauth.

Step 10 Switch(config-if)# authentication event fail action next-method

Specifies that the next configured authentication method be applied if authentication fails.

Step 11 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# mab [eap]

Enables MAC authentication bypass. The optional eap keyword specifies that the EAP extension be used during RADIUS authentication.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x mac-auth-bypass [eap]

Step 12 Switch(config-if)# authentication fallback profile-name

Enables web-based authentication using the specified profile.

Step 13 Switch(config-if)# authentication violation [shutdown | restrict]

(Optional) Configures the disposition of the port if a security violation occurs. The default action is to shut down the port. If the restrict keyword is configured, the port does not shut down, but trap entries are installed for the violating MAC address, and traffic from that MAC address is dropped.

Step 14 Switch(config-if)# authentication timer inactivity {seconds | server}

(Optional) Configures the inactivity timeout value for MAB and 802.1X. By default, inactivity aging is disabled for a port.

  • seconds —Specifies inactivity timeout period. The range is from 1 to 65535 seconds.
  • server—Specifies that the inactivity timeout period value be obtained from the authentication server.
Page 953 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 953 · click to enlarge
Page 953

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 3 Switch(config-fallback-profile)# ip access-group rule-name in

Specifies the default ACL to apply to network traffic before web-based authentication.

Step 4 Switch(config-fallback-profile)# ip admission name rule-name

Associates an IP admission rule with the profile and specifies that a client connecting by web-based authentication uses this rule.

Step 5 Switch(config-fallback-profile)# exit Returns to global configuration mode.

Step 6 Switch(config)# interface type slot/port Specifies the port to be configured and enters interface configuration mode.

type = fastethernet, gigabitethernet, or tengigabitethernet

Step 7 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables authentication on the port.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 8 Switch(config-if)# authentication order method1 [method2] [method3]

(Optional) Specifies the fallback order of authentication methods to be used. The three values of method, in the default order, are dot1x, mab, and webauth. The specified order also determines the relative priority of the methods for reauthentication (highest to lowest).

Step 9 Switch(config-if)# authentication priority method1 [method2] [method3]

(Optional) Overrides the relative priority of authentication methods to be used. The three values of method, in the default order of priority, are dot1x, mab, and webauth.

Step 10 Switch(config-if)# authentication event fail action next-method

Specifies that the next configured authentication method be applied if authentication fails.

Step 11 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# mab [eap]

Enables MAC authentication bypass. The optional eap keyword specifies that the EAP extension be used during RADIUS authentication.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x mac-auth-bypass [eap]

Step 12 Switch(config-if)# authentication fallback profile-name

Enables web-based authentication using the specified profile.

Step 13 Switch(config-if)# authentication violation [shutdown | restrict]

(Optional) Configures the disposition of the port if a security violation occurs. The default action is to shut down the port. If the restrict keyword is configured, the port does not shut down, but trap entries are installed for the violating MAC address, and traffic from that MAC address is dropped.

Step 14 Switch(config-if)# authentication timer inactivity {seconds | server}

(Optional) Configures the inactivity timeout value for MAB and 802.1X. By default, inactivity aging is disabled for a port.

  • seconds —Specifies inactivity timeout period. The range is from 1 to 65535 seconds.
  • server—Specifies that the inactivity timeout period value be obtained from the authentication server.
Page 954 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 954 · click to enlarge
Page 954

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 15 Switch(config-if)# authentication timer restart seconds

(Optional) Specifies a period after which the authentication process restarts in an attempt to authenticate an unauthorized port.

  • seconds —Specifies the restart period. The range is from 1 to 65535 seconds.

Step 16 Switch(config-if)# exit Returns to global configuration mode.

Step 17 Switch(config)# ip device tracking Enables the IP device tracking table, which is required for web-based authentication.

Step 18 Switch(config)# exit Returns to privileged EXEC mode.

Step 19 Switch# show dot1x interface type slot/port Verifies your entries.

This example shows how to enable 802.1X fallback to MAB, and then to enable web-based authentication, on an 802.1X-enabled port:

Switch(config)# ip admission name rule1 proxy http Switch(config)# fallback profile fallback1 Switch(config-fallback-profile)# ip access-group default-policy in Switch(config-fallback-profile)# ip admission rule1 Switch(config-fallback-profile)# exit Switch(config)# interface gigabit5/9 Switch(config-if)# switchport mode access Switch(config-if)# authentication port-control auto Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication order dot1x mab webauth Switch(config-if)# mab eap Switch(config-if)# authentication fallback fallback1 Switch(config-if)# exit Switch(config)# ip device tracking Switch(config)# exit

To determine if a host was authenticated using 802.1X when fallback authentication is configured on the port, enter the following commands:

Switch# show authentication sessions interface g7/2 Interface: GigabitEthernet7/2 MAC Address: 0060.b057.4687 IP Address: Unknown User-Name: test2 Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: C0A8013F0000000901BAB560 Acct Session ID: 0x0000000B Handle: 0xE8000009

Runnable methods listMethod State dot1x Authc Success mab Not run

Switch# show dot1x interfaces g7/2 detail

Page 955 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 955 · click to enlarge
Page 955

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Dot1x Info for GigabitEthernet7/2 PAE = AUTHENTICATOR PortControl = AUTO ControlDirection = Both HostMode = MULTI_AUTH QuietPeriod = 60 ServerTimeout = 0 SuppTimeout = 30 ReAuthMax = 2 MaxReq = 2 TxPeriod = 2 Dot1x Authenticator Client List Supplicant = 0060.b057.4687 Session ID = C0A8013F0000000901BAB560 Auth SM State = AUTHENTICATED Auth BEND SM State = IDLE Port Status = AUTHORIZED

To determine if a host was authenticated using MAB when fallback authentication is configured on the port, enter the following commands:

Switch# show authentication sessions interface g7/2 Interface: GigabitEthernet7/2 MAC Address: 0060.b057.4687 IP Address: 192.168.22.22 User-Name: 0060b0574687 Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: C0A8013F0000000B01BBD278 Acct Session ID: 0x0000000D Handle: 0xF500000B Runnable methods list: Method State dot1x Failed over mab Authc Success

Switch# show mab interface g7/2 detail MAB details for GigabitEthernet7/2 Mac-Auth-Bypass = Enabled

MAB Client List Client MAC = 0060.b057.4687 Session ID = C0A8013F0000000B01BBD278 MAB SM state = TERMINATE Auth Status = AUTHORIZED

Page 956 of the Cisco Systems 4500 user manual — Enabling Periodic Reauthentication
Page 956 · click to enlarge
Page 956

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

To determine if a host was authenticated using web authentication when fallback authentication is configured on the port, enter the following commands:

Switch# show authentication sessions interface G4/3 Interface: GigabitEthernet4/3 MAC Address: 0015.e981.0531 IP Address: 10.5.63.13 Status: Authz Success Domain: DATA Oper host mode: single-host Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: 0A053F0F0000000200112FFC Acct Session ID: 0x00000003 Handle: 0x09000002 Runnable methods list: Method State dot1x Failed over mab Failed over webauth Authc Success

Switch# show ip admission cache Authentication Proxy Cache Total Sessions: 1 Init Sessions: 0 Client IP 10.5.63.13 Port 4643, timeout 1000, state ESTAB

Cisco IOS Release 12.2(46)SG or earlier

Switch(config)# ip admission name rule1 proxy http Switch(config)# fallback profile fallback1 Switch(config-fallback-profile)# ip access-group default-policy in Switch(config-fallback-profile)# ip admission rule1 Switch(config-fallback-profile)# exit Switch(config)# interface gigabit5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x port-control auto Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication order dot1x mab webauth Switch(config-if)# dot1x mac-auth-bypass eap Switch(config-if)# adot1x fallback fallback1 Switch(config-if)# exit Switch(config)# ip device tracking Switch(config)# exit

Enabling Periodic Reauthentication

You can enable periodic 802.1X client reauthentication and specify how often it occurs. If you do not specify a time value before enabling reauthentication, the interval between reauthentication attempts is 3600 seconds.

Automatic 802.1X client reauthentication is a per-interface setting and can be set for clients connected to individual ports. To manually reauthenticate the client connected to a specific port, see the “Changing the Quiet Period” section on page 40-81.

Page 957 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(50)SG and later
Page 957 · click to enlarge
Page 957

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

To enable periodic reauthentication of the client and to configure the number of seconds between reauthentication attempts, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for periodic reauthentication.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication periodic

Enables periodic reauthentication of the client, which is disabled by default.

To disable periodic reauthentication, use the no authentication periodic interface configuration command (for earlier releases, use the no dot1x reauthentication interface configuration command).

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x reauthentication

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication timer reauthenticate {seconds | server}

Specifies the number of seconds between reauthentication attempts or have the switch use a RADIUS-provided session timeout.

The range is 1 to 65,535; the default is 3600 seconds.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x timeout reauth-period {seconds | server}

To return to the default number of seconds between reauthentication attempts, use the no authentication timer reauthenticate global configuration command (for earlier releases, use the dot1x timeout reauth-attempts command).

This command affects the behavior of the switch only if periodic reauthentication is enabled.

Step 7 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 8 Switch(config-if)# end Returns to privileged EXEC mode.

This example shows how to enable periodic reauthentication and set the number of seconds between reauthentication attempts to 4000:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication periodic Switch(config-if)# authentication timer reauthenticate 4000 Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

Page 958 of the Cisco Systems 4500 user manual — Enabling Multiple Hosts
Page 958 · click to enlarge
Page 958

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x reauthentication Switch(config-if)# dot1x timeout reauth-period 4000 Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

Enabling Multiple Hosts

You can attach multiple hosts (clients) to a single 802.1X-enabled port as shown in Figure 40-9 on page 40-26. In this mode, when the port is authorized, all other hosts that are indirectly attached to the port are granted access to the network. If the port becomes unauthorized (reauthentication fails or an EAPOL-logoff message is received), the switch denies access to the network for all wireless access point-attached clients.

To allow multiple hosts (clients) on an 802.1X-authorized port that has the dot1x port-control interface configuration command set to auto, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to which multiple hosts are indirectly attached.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication host-mode multi-host

Allows multiple hosts (clients) on an 802.1X-authorized port.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x host-mode multi-host

To disable multiple hosts on the port, use the no authentication host-mode multi-host interface configuration command (for earlier releases, use the no dot1x host-mode multi-host interface configuration command).

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 7 Switch(config-if)# end Returns to privileged EXEC mode.

Step 8 Switch# show dot1x all interface interface-id

Verifies your entries.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 959 of the Cisco Systems 4500 user manual — Changing the Quiet Period
Page 959 · click to enlarge
Page 959

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

This example shows how to enable 802.1X on Fast Ethernet interface 5/9 and to allow multiple hosts:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication host-mode multi-host Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x host-mode multi-host Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

Changing the Quiet Period

When the switch cannot authenticate the client, the switch remains idle for a set period of time, and then tries again. The idle time is determined by the quiet-period value. A failed authentication of the client might occur because the client provided an invalid password. You can provide a faster response time to the user by entering a number smaller than the default.

To change the quiet period, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for timeout quiet-period.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Switch(config-if)# dot1x timeout quiet-period seconds

Sets the number of seconds that the switch remains in the quiet-period following a failed authentication exchange with the client.

To return to the default quiet-period, use the no dot1x timeout quiet-period configuration command.

The range is 0 to 65,535 seconds; the default is 60.

Step 6 Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Step 7 Switch(config-if)# end Returns to privileged EXEC mode.

Step 8 Switch# show dot1x all Verifies your entries.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 960 of the Cisco Systems 4500 user manual — Changing the Switch-to-Client Retransmission Time
Page 960 · click to enlarge
Page 960

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

This example shows how to set the quiet period on the switch to 30 seconds:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fastethernet4/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x timeout quiet-period 30 Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fastethernet4/1 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x timeout quiet-period 30 Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

Changing the Switch-to-Client Retransmission Time

The client responds to the EAP-request/identity frame from the switch with an EAP-response/identity frame. If the switch does not receive this response, it waits a set period of time (known as the retransmission time) and then retransmits the frame.

To change the amount of time that the switch waits for client notification, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for timeout tx-period.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Switch(config-if)# dot1x timeout tx-period seconds

Sets the number of seconds that the switch waits for a response to an EAP-request/identity frame from the client before retransmitting the request.

The range is 1 to 65,535 seconds; the default is 30.

To return to the default retransmission time, use the no dot1x timeout tx-period interface configuration command.

Page 961 of the Cisco Systems 4500 user manual — Setting the Switch-to-Client Frame-Retransmission Number
Page 961 · click to enlarge
Page 961

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Step 6 Cisco IOS Release 12.2(50)SG and later Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Cisco IOS Release 12.2(46)SG or earlier releases Switch(config-if)# dot1x port-control auto

Step 7 Switch(config-if)# end Returns to privileged EXEC mode.

Step 8 Switch# show dot1x all Verifies your entries.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to set the retransmission time to 60 seconds:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x timeout tx-period 60 Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x timeout tx-period 60 Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

Setting the Switch-to-Client Frame-Retransmission Number

In addition to changing the switch-to-client retransmission times, you can change the number of times that the switch sends EAP-Request/Identity and other EAP-Request frames to the client before restarting the authentication process. The number of EAP-Request/Identity retransmissions is controlled by the dot1x max-reauth-req command; the number of retransmissions for other EAP-Request frames is controlled by the dot1x max-req command.

Page 962 of the Cisco Systems 4500 user manual — Cisco IOS Release 12.2(50)SG and later
Page 962 · click to enlarge
Page 962

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

To set the switch-to-client frame-retransmission numbers, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and specifies the interface to be enabled for max-reauth-req and/or max-req.

Step 3 Switch(config-if)# switchport mode access

Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

Step 4 Switch(config-if)# dot1x pae authenticator

Enables 802.1X authentication on the port with default parameters.

Refer to the “Default 802.1X Configuration” section on page 40-27.

Step 5 Switch(config-if)# dot1x max-req count

Specifies the number of times EAPOL DATA packets are retransmitted (if lost or not replied to). For example, if you have a supplicant that is authenticating and it experiences a problem, the authenticator retransmits requests for data three times before abandoning the authentication request. The range for count is 1 to 10; the default is 2.

Switch(config-if)# dot1x max-reauth-req count

Specifies the timer for EAPOL-Identity-Request frames (only). If you plug in a device incapable of 802.1X, three EAPOL-Id-Req frames are sent before the state machine resets. Alternatively, if you have configured Guest-VLAN, three frames are sent before the port is enabled. This parameter has a default value of 2.

To return to the default retransmission number, use the no dot1x max-req and no dot1x max-reauth-req global configuration command.

Step 6 Switch(config-if)# authentication port-control auto

Enables 802.1X authentication on the interface.

Step 7 Switch(config-if)# end Returns to privileged EXEC mode.

Step 8 Switch# show dot1x all Verifies your entries.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to set 5 as the number of times that the switch retransmits an EAP-request/identity request before restarting the authentication process:

Cisco IOS Release 12.2(50)SG and later

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x max-reauth-req 5 Switch(config-if)# authentication port-control auto Switch(config-if)# end Switch#

or

Page 963 of the Cisco Systems 4500 user manual — Configuring Switch as an Authenticator
Page 963 · click to enlarge
Page 963

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Cisco IOS Release 12.2(46)SG or earlier

Switch# configure terminal Switch(config)# interface fastethernet5/9 Switch(config-if)# switchport mode access Switch(config-if)# dot1x pae authenticator Switch(config-if)# dot1x max-reauth-req 5 Switch(config-if)# dot1x port-control auto Switch(config-if)# end Switch#

Configuring an Authenticator and a Supplicant Switch with NEAT

Configuring NEAT requires that one switch outside a wiring closet is configured as a supplicant and is connected to an authenticator switch.

This section includes these topics:

  • Configuring Switch as an Authenticator, page 40-85
  • Configuring Switch as a Supplicant, page 40-89
  • Configuring NEAT with ASP, page 40-90
  • Configuration Guidelines, page 40-90

Configuring Switch as an Authenticator

To configure a switch as an authenticator, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# cisp enable Enables CISP.

Step 3 Switch(config)# interface interface-id

Specifies the port to be configured, and enter interface configuration mode.

Step 4 Switch(config-if)# switchport mode access

Sets the port mode to access.

Step 5 Switch(config-if)# authentication port-control auto

Sets the port-authentication mode to auto.

Step 6 Switch(config-if)# dot1x pae authenticator

Configures the interface as a port access entity (PAE) authenticator.

Step 7 Switch(config-if)# spanning-tree portfast

Enables Port Fast on an access port connected to a single workstation or server.

Step 8 Switch(config-if)# end Returns to privileged EXEC mode.

Step 9 Switch# show running-config interface interface-id

Verifies your configuration.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 964 of the Cisco Systems 4500 user manual — Cisco AV Pair Configuration
Page 964 · click to enlarge
Page 964

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

When CISP is enabled on a trunk port, the following features are inert. When CISP is neither running nor configured, these features operate as expected:

  • VLAN assignment
  • Guest, Authentication Failure, voice, and critical VLANs
  • Critical authentication
  • Wake-on-LAN
  • Web authentication
  • Port security
  • Violation modes (restrict, shut down, and shut down VLAN)

The following example shows how to enable CISP on a port. You must configure the following procedure in the Cisco ACS server. Configuring a user with Cisco AV Pair value, allows SSW to authenticate itself with the ASW. Because the user is attached with the AV pair value, upon successful authentication on ASW, the macro is executed on the interface on which SSW is authenticated:

Switch# configure terminal Switch(config)# cisp enable Switch(config)# interface GigabitEthernet5/23 Switch(config-if)# switchport mode access Switch(config-if)# spanning-tree portfast Switch(config-if)# dot1x pae authenticator Switch(config-if)# authentication port-control auto

Cisco AV Pair Configuration

Next, you need to configure a Cisco AV pair value.

Log into ACS, and Select/Create a User. Go to User Setup and scroll down to the [009\001] cisco-av-pair Tab. Enter device-traffic-class=switch (Figure 40-17).

Page 965 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 965 · click to enlarge
Page 965

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Figure 40-17 Specifying the Cisco AV Pair

Cisco Systems 4500 — Configuring 802.1X Port-Based Authentication diagram (page 965)
Fig. 15 · Configuring 802.1X Port-Based Authentication

Starting with Cisco IOS XE Release 3.2.0 SG (15.0(2)SG) the spanning-tree bpduguard feature is automatically disabled or enabled as part of a macro provided it was previously enabled in the port configuration. If the configuration did not have BPDU Guard enabled before the supplicant switch was authenticated, the spanning-tree bpduguard feature is not applied to the macro.

There are 2 scenarios:

Scenario 1With Port Level BPDU Guard Configuration

interface GigabitEthernet5/1 switchport access vlan 81 switchport mode access dot1x pae authenticator authentication port-control auto spanning-tree bpduguard enable end

Post Authorization and Application of Internal Macro

interface GigabitEthernet5/1 switchport trunk encapsulation dot1q switchport trunk native vlan 81 switchport mode trunk

Before Authorization

Page 966 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 966 · click to enlarge
Page 966

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

dot1x pae authenticator authentication port-control auto spanning-tree portfast trunk no spanning-tree bpduguard end

Scenario 2Without port level BPDU Guard Configuration (with or without globally enabling BPDU Guard)

interface GigabitEthernet5/1 switchport access vlan 81 switchport mode access dot1x pae authenticator authentication port-control auto end

Post Authorization and Application of Internal Macro

interface GigabitEthernet5/1 switchport trunk encapsulation dot1q switchport trunk native vlan 81 switchport mode trunk dot1x pae authenticator authentication port-control auto spanning-tree portfast trunk no spanning-tree bpduguard end

When the authenticator switch receives a device-traffic-class=switch AV pair, the following macro is applied to the authenticator switch port:

no switchport access vlan $AVID no switchport nonegotiate switchport mode trunk switchport trunk native vlan $AVID no spanning-tree bpduguard enable spanning-tree portfast trunk

After the supplicant switch is authenticated as a switch device, the configuration will appear as follows:

interface GigabitEthernet5/23 switchport mode trunk authentication port-control auto dot1x pae authenticator spanning-tree portfast trunk end

Radius Config (Cisco AV Pair value) device-traffic-class=switch

show running-config interface is the only command that informs you that the smart macro has been applied after the supplicant switch is authenticated:

Switch# show authentication session Interface MAC Address Method Domain Status Session ID Gi5/23 0024.9844.de23 dot1x DATA Authz Success 0909117A000000000010561C Switch# show running-configuration interface gi 5/23

Building configuration...

Before Authorization

Page 967 of the Cisco Systems 4500 user manual — Configuring Switch as a Supplicant
Page 967 · click to enlarge
Page 967

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

Current configuration : 149 bytes ! interface GigabitEthernet5/23 switchport mode trunk authentication port-control auto dot1x pae authenticator spanning-tree portfast trunk end Switch#

NEAT changes the port configuration on the authenticator switch. So, to perform ISSU from one version that supports NEAT to another that does not support NEAT, you must first deactivate NEAT on all switch ports for ISSU. Similarly, NEAT cannot activate when ISSU is in progress. If a supplicant switch tries to authenticate during ISSU, authorization would fail on the port.

Configuring Switch as a Supplicant

To configure a switch as a supplicant, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# cisp enable Enables CISP.

Step 3 Switch(config)# dot1x credentials profile

Creates 802.1x credentials profile. This must be attached to the port that is configured as supplicant.

Step 4 Switch(config)# sername suppswitch Creates a username.

Step 5 Switch(config)# password password Creates a password for the new username.

Step 6 Switch(config)# dot1x supplicant force-multicast

Forces the switch to send only multicast EAPOL packets when it receives either unicast or multicast packets.

This also allows NEAT to work on the supplicant switch in all host modes.

Step 7 Switch(config)# interface interface-id

Specifies the port to be configured, and enter interface configuration mode.

Step 8 Switch(config-if)# switchport trunk encapsulation dot1q

Sets the port to trunk mode.

Step 9 Switch(config-if)# switchport mode trunk

Configures the interface as a VLAN trunk port.

Step 10 Switch(config-if)# dot1x pae supplicant

Configures the interface as a port access entity (PAE) supplicant.

Step 11 Switch(config-if)# dot1x credentials profile-name

Attaches the 802.1x credentials profile to the interface.

Step 12 Switch(config-if)# end Returns to privileged EXEC mode.

Page 968 of the Cisco Systems 4500 user manual — Configuration Guidelines
Page 968 · click to enlarge
Page 968

Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication

Step 13 Switch# show running-config interface interface

Verifies your configuration.

Step 14 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to configure a switch as a supplicant:

Switch# configure terminal Switch(config)# cisp enable Switch(config)# dot1x credentials test Switch(config)# username suppswitch Switch(config)# password myswitch Switch(config)# dot1x supplicant force-multicast Switch(config)# interface gigabitethernet1/0/1 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# dot1x pae supplicant Switch(config-if)# dot1x credentials test Switch(config-if)# end

The following macro is applied to the authenticator switch port after the supplicant switch is deauthenticated due to a link-down or a reauthenticating event:

no switchport nonegotiate switchport mode access no switchport trunk native vlan $AVID no spanning-tree portfast trunk switchport access vlan $AVID spanning-tree bpduguard enable spanning-tree portfast

Configuring NEAT with ASP

You can also use an AutoSmart Ports user-defined macro rather than a switch VSA to configure the authenticator switch. For more information, see the Chapter 13, “Configuring Auto Smartports Macros.”

Configuration Guidelines

  • If BPDU Guard was enabled prior to supplicant switch authentication, it is re-enabled after the supplicant switch unauthenticates.
  • You can configure NEAT ports and non-NEAT ports with the same configuration. When the supplicant switch authenticates, the port mode is changed from access to trunk based on the switch vendor-specific attributes (device-traffic-class=switch).
  • To enable NEAT, you must configure the vendor-specific attributes (VSA) attribute as switch. Configuring the trunk with an 802.1X configuration and enabling CISP globally will not enable NEAT.
  • VSA device-traffic-class=switch assists the authenticator switch in identifying the supplicant as a switch-device. This identification changes the authenticator switch port mode from access to trunk and enables 802.1X trunk encapsulation. The access VLAN, if any, is converted to a native trunk VLAN. VSA does not change any of the port configurations on the supplicant.
Page 969 of the Cisco Systems 4500 user manual — Initializing the 802.1X Authentication State
Page 969 · click to enlarge
Page 969

Chapter 40 Configuring 802.1X Port-Based Authentication

Configuring 802.1X Port-Based Authentication

  • Although modified trunk parameters are retained, when the trunk link is down or authentication is cleared, the interface is reconfigured to the following:

– spanning-tree portfast

– switchport mode access

– switchport access vlan access-vlan-id

  • We recommend using 802.1X authentication mode single-host for NEAT configuration on the interface.
  • The cisco-av-pairs must be configured as device-traffic-class=switch on the ACS. This sets the interface as a trunk after the supplicant is successfully authenticated.
  • You should not modify the trunk mode configurations that are based on device-traffic-class either manually or through features such as AutoSmart Ports. it is because 802.1X configuration is not supported for trunk ports.
  • To change the host mode and apply a standard port configuration on the authenticator switch port, you can also use AutoSmart ports user-defined macros rather than the switch VSA. Doing this allows you to remove unsupported configurations on the authenticator switch port and to change the port mode from access to trunk. For details, see Chapter 13, “Configuring Auto Smartports Macros” .

Note Configuring only the Auto SmartPorts macro does not identify the end host as a supplicant switch. The switch VSA is required to identify the supplicant switch. However, when Auto Smartports macro is configured, the internal macro that reconfigures the port from access to trunk is not executed and the Auto Smartports macro should ensure that the port reconfigures as a trunk port.

Manually Reauthenticating a Client Connected to a Port

You can manually reauthenticate a client connected to a specific port at any time by entering the dot1x re-authenticate interface privileged EXEC command. If you want to enable or disable periodic reauthentication, see the “Enabling Periodic Reauthentication” section on page 40-78.

This example shows how to manually reauthenticate the client connected to Fast Ethernet port 1/1:

Switch# dot1x re-authenticate interface fastethernet1/1 Starting reauthentication on FastEthernet1/1

Initializing the 802.1X Authentication State

The dot1x initialize command causes the authentication process to be restarted regardless of its current state.

This example shows how to restart the authentication process on Fast Ethernet port 1/1:

Switch# dot1x initialize interface fastethernet1/1

This example shows how to restart the authentication process on all ports of the switch:

Page 970 of the Cisco Systems 4500 user manual — Controlling Switch Access with RADIUS
Page 970 · click to enlarge
Page 970

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Removing 802.1X Client Information

The clear dot1x command causes all existing supplicants to be completely deleted from an interface or from all the interfaces on a switch.

This example shows how to remove 802.1X client information on Fast Ethernet port 1/1:

Switch# clear dot1x interface fastethernet1/1

This example shows how to remove 802.1X client information on all ports of the switch:

Switch# clear dot1x all

Resetting the 802.1X Configuration to the Default Values

To reset the 802.1X configuration to the default values, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# dot1x default Resets the configurable 802.1X parameters to the default values.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show dot1x all Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Controlling Switch Access with RADIUS

This section describes how to enable and configure the RADIUS, which provides detailed accounting information and flexible administrative control over authentication and authorization processes. RADIUS is facilitated through AAA and can be enabled only through AAA commands.

These sections contain this configuration information:

  • Understanding RADIUS, page 40-93
  • RADIUS Operation, page 40-94
  • RADIUS Change of Authorization, page 40-94
  • Configuring RADIUS, page 40-100
  • Displaying the RADIUS Configuration, page 40-113

Switch# dot1x initialize

Page 971 of the Cisco Systems 4500 user manual — Understanding RADIUS
Page 971 · click to enlarge
Page 971

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

Understanding RADIUS

RADIUS is a distributed client/server system that secures networks against unauthorized access. RADIUS clients run on supported Cisco routers and switches. Clients send authentication requests to a central RADIUS server, which contains all user authentication and network service access information. The RADIUS host is normally a multiuser system running RADIUS server software from Cisco (Cisco Secure Access Control Server Version 3.0), Livingston, Merit, Microsoft, or another software provider. For more information, see the RADIUS server documentation.

Use RADIUS in these network environments that require access security:

  • Networks with multiple-vendor access servers, each supporting RADIUS. For example, access servers from several vendors use a single RADIUS server-based security database. In an IP-based network with multiple vendors’ access servers, dial-in users are authenticated through a RADIUS server that has been customized to work with the Kerberos security system.
  • Turnkey network security environments in which applications support the RADIUS protocol, such as in an access environment that uses a smart card access control system. In one case, RADIUS has been used with Enigma’s security cards to validates users and to grant access to network resources.
  • Networks already using RADIUS. You can add a Cisco switch containing a RADIUS client to the network. This might be the first step when you make a transition to a TACACS+ server. See Figure 40-18 on page 40-94 .
  • Network in which the user must only access a single service. Using RADIUS, you can control user access to a single host, to a single utility such as Telnet, or to the network through a protocol such as IEEE 802.1X.
  • Networks that require resource accounting. You can use RADIUS accounting independently of RADIUS authentication or authorization. The RADIUS accounting functions allow data to be sent at the start and end of services, showing the amount of resources (such as time, packets, bytes, and so forth) used during the session. An Internet service provider might use a freeware-based version of RADIUS access control and accounting software to meet special security and billing needs.

RADIUS is not suitable in these network security situations:

  • Multiprotocol access environments. RADIUS does not support AppleTalk Remote Access (ARA), NetBIOS Frame Control Protocol (NBFCP), NetWare Asynchronous Services Interface (NASI), or X.25 PAD connections.
  • Switch-to-switch or router-to-router situations. RADIUS does not provide two-way authentication. RADIUS can be used to authenticate from one device to a non-Cisco device if the non-Cisco device requires authentication.
  • Networks using a variety of services. RADIUS generally binds a user to one service model.
Page 972 of the Cisco Systems 4500 user manual — RADIUS Change of Authorization
Page 972 · click to enlarge
Page 972

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Figure 40-18 Transitioning from RADIUS to TACACS+ Services

R1

R2

T1

PC

RADIUS Operation

When a user attempts to log in and authenticate to a switch that is access controlled by a RADIUS server, these events occur:

1. The user is prompted to enter a username and password.
2. The username and encrypted password are sent over the network to the RADIUS server.
3. The user receives one of these responses from the RADIUS server:

a. ACCEPT—The user is authenticated.

b. REJECT—The user is either not authenticated and is prompted to re-enter the username and

password, or access is denied.

c. CHALLENGE—A challenge requires additional data from the user.

d. CHALLENGE PASSWORD—A response requests the user to select a new password.

The ACCEPT or REJECT response is bundled with additional data that is used for privileged EXEC or network authorization. Users must first successfully complete RADIUS authentication before proceeding to RADIUS authorization, if it is enabled. The additional data included with the ACCEPT or REJECT packets includes these items:

  • Telnet, SSH, rlogin, or privileged EXEC services
  • Connection parameters, including the host or client IP address, access list, and user timeouts

RADIUS Change of Authorization

This section provides an overview of the RADIUS interface including available primitives and how they are used during a Change of Authorization (CoA).

  • Overview, page 40-95
  • Change-of-Authorization Requests, page 40-95
  • CoA Request Response Code, page 40-96
Show 6 more labels / short text on this page
RADIUS server · RADIUS server · TACACS+ server · T2 Remote · TACACS+ server · Workstation
Page 973 of the Cisco Systems 4500 user manual — Attribute Number Attribute Name
Page 973 · click to enlarge
Page 973

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

  • CoA Request Commands, page 40-97
  • Session Reauthentication, page 40-98
  • Displaying 802.1X Statistics and Status, page 40-113

Overview

A standard RADIUS interface is typically used in a pulled model where the request originates from a network attached device and the response come from the queried servers. Catalyst switches support the RADIUS Change of Authorization (CoA) extensions defined in RFC 5176 that are typically used in a pushed model and allow for the dynamic reconfiguring of sessions from external authentication, authorization, and accounting (AAA) or policy servers.

The switch supports these per-session CoA requests:

  • Session reauthentication
  • Session termination
  • Session termination with port shut down
  • Session termination with port bounce

The RADIUS interface is enabled by default on Catalyst switches.

Change-of-Authorization Requests

Change of Authorization (CoA) requests, as described in RFC 5176, are used in a push model to allow for session identification, host reauthentication, and session termination. The model is comprised of one request (CoA-Request) and two possible response codes:

  • CoA acknowledgement (ACK) [CoA-ACK]
  • CoA non-acknowledgement (NAK) [CoA-NAK]

The request is initiated from a CoA client (typically a RADIUS or policy server) and directed to the switch that acts as a listener.

This section includes these topics:

  • CoA Request Response Code
  • CoA Request Commands
  • Session Reauthentication

RFC 5176 Compliance

The Disconnect Request message, which is also referred to as Packet of Disconnect (POD), is supported by the switch for session termination.

Table 40-2 shows the IETF attributes are supported for this feature.

Table 40-2 Supported IETF Attributes

Attribute Number Attribute Name

24 State · 31 Calling-Station-ID · 44 Acct-Session-ID

Page 974 of the Cisco Systems 4500 user manual — Session Identification
Page 974 · click to enlarge
Page 974

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Table 40-2 Supported IETF Attributes

Attribute Number Attribute Name

Table 40-3 shows the possible values for the Error-Cause attribute.

Table 40-3 Error-Cause Values

Value Explanation

201 Residual Session Context Removed

202 Invalid EAP Packet (Ignored)

403 NAS Identification Mismatch

407 Invalid Attribute Value

502 Request Not Routable (Proxy)

503 Session Context Not Found

504 Session Context Not Removable

505 Other Proxy Processing Error

508 Multiple Session Selection Unsupported

Preconditions

To use the CoA interface, a session must already exist on the switch. CoA can be used to identify a session and enforce a disconnect request. The update affects only the specified session.

CoA Request Response Code

The CoA Request response code can be used to convey a command to the switch. The supported commands are listed in Table 40-4 on page 40-97.

Session Identification

For disconnect and CoA requests targeted at a particular session, the switch locates the session based on one or more of the following attributes:

  • Calling-Station-Id (IETF attribute #31 which contains the host MAC address)
Show 10 more labels / short text on this page
80 Message-Authenticator · 101 Error-Cause · 401 Unsupported Attribute · 402 Missing Attribute · 404 Invalid Request · 405 Unsupported Service · 406 Unsupported Extension · 501 Administratively Prohibited · 506 Resources Unavailable · 507 Request Initiated
Page 975 of the Cisco Systems 4500 user manual — Command 1 Cisco VSA
Page 975 · click to enlarge
Page 975

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

  • Audit-Session-Id (Cisco VSA)
  • Acct-Session-Id (IETF attribute #44)

Unless all session identification attributes included in the CoA message match the session, the switch returns a Disconnect-NAK or CoA-NAK with the “Invalid Attribute Value” error-code attribute.

The packet format for a CoA Request code as defined in RFC 5176 consists of the fields: Code, Identifier, Length, Authenticator, and Attributes in Type:Length:Value (TLV) format.

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Authenticator | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Attributes ... +-+-+-+-+-+-+-+-+-+-+-+-+-

The attributes field is used to carry Cisco VSAs.

CoA ACK Response Code

If the authorization state is changed successfully, a positive acknowledgement (ACK) is sent. The attributes returned within CoA ACK will vary based on the CoA Request and are discussed in individual CoA Commands.

CoA NAK Response Code

A negative acknowledgement (NAK) indicates a failure to change the authorization state and can include attributes that indicate the reason for the failure. Use show commands to verify a successful CoA.

CoA Request Commands

This section includes:

  • Session Reauthentication
  • Session Termination
  • CoA Disconnect-Request
  • CoA Request: Disable Host Port
  • CoA Request: Bounce-Port

The switch supports the commands shown in Table 40-4.

Table 40-4 CoA Commands Supported on the Switch

Command 1 Cisco VSA

Reauthenticate host Cisco:Avpair=“subscriber:command=reauthenticate”

Terminate session it is a standard disconnect request that does not require a VSA.

Page 976 of the Cisco Systems 4500 user manual — Session Termination
Page 976 · click to enlarge
Page 976

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Table 40-4 CoA Commands Supported on the Switch

Command 1 Cisco VSA

Bounce host port Cisco:Avpair=“subscriber:command=bounce-host-port”

Disable host port Cisco:Avpair=“subscriber:command=disable-host-port”

1. All CoA commands must include the session identifier between the switch and the CoA client.

Session Reauthentication

The AAA server typically generates a session reauthentication request when a host with an unknown identity or posture joins the network and is associated with a restricted access authorization profile (such as a guest VLAN). A reauthentication request allows the host to be placed in the appropriate authorization group when its credentials are known.

To initiate session authentication, the AAA server sends a standard CoA-Request message which contains a Cisco vendor-specific attribute (VSA) in this form: Cisco:Avpair=“subscriber:command=reauthenticate” and one or more session identification attributes.

The current session state determines the switch response to the message. If the session is currently authenticated by IEEE 802.1x, the switch responds by sending an EAPoL1-RequestId message (see footnote 1 below) to the server.

If the session is currently authenticated by MAC authentication bypass (MAB), the switch sends an access-request to the server, passing the same identity attributes used for the initial successful authentication.

If session authentication is in progress when the switch receives the command, the switch terminates the process, and restarts the authentication sequence, starting with the method configured to be attempted first.

If the session is not yet authorized, or is authorized by using guest VLAN, or critical VLAN, or similar policies, the reauthentication message restarts the access control methods, beginning with the method configured to be attempted first. The current authorization of the session is maintained until the reauthentication leads to a different authorization result.

Session Termination

Three types of CoA requests can trigger session termination. A CoA Disconnect-Request terminates the session, without disabling the host port. This command causes re-initialization of the authenticator state machine for the specified host, but does not restrict that hosts’ access to the network.

To restrict a hosts’ access to the network, use a CoA Request with the Cisco:Avpair="subscriber:command=disable-host-port" VSA. This command is useful when a host is known to be causing problems on the network, and you need to immediately block network access for the host. When you want to restore network access on the port, reenable it using a non-RADIUS mechanism.

When a device with no supplicant, such as a printer, needs to acquire a new IP address (for example, after a VLAN change), terminate the session on the host port with port-bounce (temporarily disable and then re-enable the port).

1. Extensible Authentication Protocol over Lan
Page 977 of the Cisco Systems 4500 user manual — CoA Request: Bounce-Port
Page 977 · click to enlarge
Page 977

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

CoA Disconnect-Request

This command is a standard Disconnect-Request. Because this command is session-oriented, it must be accompanied by one or more of the session identification attributes described in the “Session Identification” section on page 40-96. If the session cannot be located, the switch returns a Disconnect-NAK message with the “Session Context Not Found” error-code attribute. If the session is located, the switch terminates the session. After the session has been completely removed, the switch returns a Disconnect-ACK.

If the switch fails-over to a standby switch before returning a Disconnect-ACK to the client, the process is repeated on the new active switch when the request is re-sent from the client. If the session is not found following re-sending, a Disconnect-ACK is sent with the “Session Context Not Found” error-code attribute.

CoA Request: Disable Host Port

This command is carried in a standard CoA-Request message that has this new VSA:

Cisco:Avpair="subscriber:command=disable-host-port"

Because this command is session-oriented, it must be accompanied by one or more of the session identification attributes described in the “Session Identification” section on page 40-96. If the session cannot be located, the switch returns a CoA-NAK message with the “Session Context Not Found” error-code attribute. If the session is located, the switch disables the hosting port and returns a CoA-ACK message.

If the switch fails before returning a CoA-ACK to the client, the process is repeated on the new active switch when the request is re-sent from the client. If the switch fails after returning a CoA-ACK message to the client but before the operation has completed, the operation is restarted on the new active switch.

CoA Request: Bounce-Port

This command is carried in a standard CoA-Request message that contains the following new VSA:

Cisco:Avpair="subscriber:command=bounce-host-port"

Because this command is session-oriented, it must be accompanied by one or more of the session identification attributes described in the “Session Identification” section on page 40-96. If the session cannot be located, the switch returns a CoA-NAK message with the “Session Context Not Found” error-code attribute. If the session is located, the switch disables the hosting port for a period of 10 seconds, re-enables it (port-bounce), and returns a CoA-ACK.

If the switch fails before returning a CoA-ACK to the client, the process is repeated on the new active switch when the request is re-sent from the client. If the switch fails after returning a CoA-ACK message to the client but before the operation has completed, the operation is re-started on the new active switch.

Page 978 of the Cisco Systems 4500 user manual — Identifying the RADIUS Server Host
Page 978 · click to enlarge
Page 978

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Configuring RADIUS

This section describes how to configure your switch to support RADIUS. At a minimum, you must identify the host or hosts that run the RADIUS server software and define the method lists for RADIUS authentication. You can optionally define method lists for RADIUS authorization and accounting.

A method list defines the sequence and methods to be used to authenticate, to authorize, or to keep accounts on a user. You can use method lists to designate one or more security protocols to be used (such as TACACS+ or local username lookup), thus ensuring a backup system if the initial method fails. The software uses the first method listed to authenticate, to authorize, or to keep accounts on users. If that method does not respond, the software selects the next method in the list. This process continues until there is successful communication with a listed method or the method list is exhausted.

You should have access to and should configure a RADIUS server before configuring RADIUS features on your switch.

  • Default RADIUS Configuration, page 40-100
  • Identifying the RADIUS Server Host, page 40-100 (required)
  • Configuring RADIUS Login Authentication, page 40-103 (required)
  • Defining AAA Server Groups, page 40-105 (optional)
  • Configuring RADIUS Authorization for User Privileged Access and Network Services, page 40-107 (optional)
  • Starting RADIUS Accounting, page 40-108 (optional)
  • Configuring Settings for All RADIUS Servers, page 40-109 (optional)
  • Configuring the Switch to Use Vendor-Specific RADIUS Attributes, page 40-109 (optional)
  • Configuring the Switch for Vendor-Proprietary RADIUS Server Communication, page 40-111 (optional)
  • Configuring CoA on the Switch, page 40-112
  • Monitoring and Troubleshooting CoA Functionality, page 40-113
  • Configuring RADIUS Server Load Balancing, page 40-113 (optional)

Default RADIUS Configuration

RADIUS and AAA are disabled by default.

To prevent a lapse in security, you cannot configure RADIUS through a network management application. When enabled, RADIUS can authenticate users accessing the switch using the CLI.

Identifying the RADIUS Server Host

Switch-to-RADIUS-server communication involves several components:

  • Hostname or IP address
  • Authentication destination port
  • Accounting destination port
  • Key string
  • Timeout period
  • Retransmission value
Page 979 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 979 · click to enlarge
Page 979

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

You identify RADIUS security servers by their hostname or IP address, hostname and specific UDP port numbers, or their IP address and specific UDP port numbers. The combination of the IP address and the UDP port number creates a unique identifier, allowing different ports to be individually defined as RADIUS hosts providing a specific AAA service. This unique identifier enables RADIUS requests to be sent to multiple UDP ports on a server at the same IP address.

If two different host entries on the same RADIUS server are configured for the same service—for example, accounting—the second host entry configured acts as a failover backup to the first one. Using this example, if the first host entry fails to provide accounting services, the %RADIUS-4-RADIUS_DEAD message appears, and then the switch tries the second host entry configured on the same device for accounting services. (The RADIUS host entries are tried in the order that they are configured.)

A RADIUS server and the switch use a shared secret text string to encrypt passwords and exchange responses. To configure RADIUS to use the AAA security commands, you must specify the host running the RADIUS server daemon and a secret text (key) string that it shares with the switch.

The timeout, retransmission, and encryption key values can be configured globally for all RADIUS servers, on a per-server basis, or in some combination of global and per-server settings. To apply these settings globally to all RADIUS servers communicating with the switch, use the three unique global configuration commands: radius-server timeout, radius-server retransmit, and radius-server key. To apply these values on a specific RADIUS server, use the radius-server host global configuration command.

You can configure the switch to use AAA server groups to group existing server hosts for authentication. For more information, see the “Defining AAA Server Groups” section on page 40-105.

Page 980 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 980 · click to enlarge
Page 980

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

To configure per-server RADIUS server communication, perform this task. This procedure is required.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server host {hostname | ip-address} [auth-port port-number] [acct-port port-number] [timeout seconds] [retransmit retries] [key string]

Specifies the IP address or hostname of the remote RADIUS server host.

  • (Optional) For auth-port port-number , specify the UDP destination port for authentication requests.
  • (Optional) For acct-port port-number , specify the UDP destination port for accounting requests.
  • (Optional) For timeout seconds , specify the time interval that the switch waits for the RADIUS server to reply before resending. The range is 1 to 1000. This setting overrides the radius-server timeout global configuration command setting. If no timeout is set with the radius-server host command, the setting of the radius-server timeout command is used.
  • (Optional) For retransmit retries , specify the number of times a RADIUS request is resent to a server if that server is not responding or responding slowly. The range is 1 to 1000. If no retransmit value is set with the radius-server host command, the setting of the radius-server retransmit global configuration command is used.
  • (Optional) For key string , specify the authentication and encryption key used between the switch and the RADIUS daemon running on the RADIUS server.

Note The key is a text string that must match the encryption key used on the RADIUS server. Always configure the key as the last item in the radius-server host command. Leading spaces are ignored, but spaces within and at the end of the key are used. If you use spaces in your key, do not enclose the key in quotation marks unless the quotation marks are part of the key.

To configure the switch to recognize more than one host entry associated with a single IP address, enter this command as many times as necessary, making sure that each UDP port number is different. The switch software searches for hosts in the order in which you specify them. Set the timeout, retransmit, and encryption key values to use with the specific RADIUS host.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To remove the specified RADIUS server, use the no radius-server host hostname | ip-address global configuration command.

This example shows how to configure one RADIUS server to be used for authentication and another to be used for accounting:

Switch(config)# radius-server host 172.29.36.49 auth-port 1612 key rad1 Switch(config)# radius-server host 172.20.36.50 acct-port 1618 key rad2

Page 981 of the Cisco Systems 4500 user manual — Configuring RADIUS Login Authentication
Page 981 · click to enlarge
Page 981

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

This example shows how to configure host1 as the RADIUS server and to use the default ports for both authentication and accounting:

Switch(config)# radius-server host host1

Configuring RADIUS Login Authentication

To configure AAA authentication, you define a named list of authentication methods and then apply that list to various ports. The method list defines the types of authentication to be performed and the sequence in which they are performed; it must be applied to a specific port before any of the defined authentication methods are performed. The only exception is the default method list (which, by coincidence, is named default). The default method list is automatically applied to all ports except those that have a named method list explicitly defined.

A method list describes the sequence and authentication methods to be queried to authenticate a user. You can designate one or more security protocols to be used for authentication, thus ensuring a backup system for authentication in case the initial method fails. The software uses the first method listed to authenticate users; if that method fails to respond, the software selects the next authentication method in the method list. This process continues until there is successful communication with a listed authentication method or until all defined methods are exhausted. If authentication fails at any point in this cycle—meaning that the security server or local username database responds by denying the user access—the authentication process stops, and no other authentication methods are attempted.

To configure login authentication, perform this task. This procedure is required.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# aaa new-model Enables AAA.

Page 982 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 982 · click to enlarge
Page 982

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Step 3 Switch(config)# aaa authentication login {default | list-name} method1 [method2...]

Creates a login authentication method list.

  • To create a default list that is used when a named list is not specified in the login authentication command, use the default keyword followed by the methods that are to be used in default situations. The default method list is automatically applied to all ports.
  • For list-name , specify a character string to name the list you are creating.
  • For method1... , specify the actual method the authentication algorithm tries. The additional methods of authentication are used only if the previous method returns an error, not if it fails.

Select one of these methods:

– enable—Use the enable password for authentication. Before you can use this authentication method, you must define an enable password by using the enable password global configuration command.

– group radius—Use RADIUS authentication. Before you can use this authentication method, you must configure the RADIUS server. For more information, see the “Identifying the RADIUS Server Host” section on page 40-100.

– line—Use the line password for authentication. Before you can use this authentication method, you must define a line password. Use the password password line configuration command.

– local—Use the local username database for authentication. You must enter username information in the database. Use the username name password global configuration command.

– local-case—Use a case-sensitive local username database for authentication. You must enter username information in the database by using the username password global configuration command.

– none—Do not use any authentication for login.

Step 4 Switch(config)# line [console | tty | vty] line-number [ending-line-number]

Enters line configuration mode, and configure the lines to which you want to apply the authentication list.

Step 5 Switch(config)# login authentication {default | list-name}

Applies the authentication list to a line or set of lines.

  • If you specify default , use the default list created with the aaa authentication login command.
  • For list-name , specify the list created with the aaa authentication login command.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies your entries.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 983 of the Cisco Systems 4500 user manual — Defining AAA Server Groups
Page 983 · click to enlarge
Page 983

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

To disable AAA, use the no aaa new-model global configuration command. To disable AAA authentication, use the no aaa authentication login {default | list-name} method1 [method2...] global configuration command. To either disable RADIUS authentication for logins or to return to the default value, use the no login authentication {default | list-name} line configuration command.

Note To secure the switch for HTTP access by using AAA methods, you must configure the switch with the ip http authentication aaa global configuration command. Configuring AAA authentication does not secure the switch for HTTP access by using AAA methods. For more information about the ip http authentication command, see the Cisco IOS Security Command Reference, Release 12.2 from the Cisco.com page under Documentation > Cisco IOS Software > 12.2 Mainline > Command References.

Defining AAA Server Groups

You can configure the switch to use AAA server groups to group existing server hosts for authentication. You select a subset of the configured server hosts and use them for a particular service. The server group is used with a global server-host list, which lists the IP addresses of the selected server hosts.

Server groups also can include multiple host entries for the same server if each entry has a unique identifier (the combination of the IP address and UDP port number), allowing different ports to be individually defined as RADIUS hosts providing a specific AAA service. If you configure two different host entries on the same RADIUS server for the same service, (for example, accounting), the second configured host entry acts as a failover backup to the first one.

You use the server group server configuration command to associate a particular server with a defined group server. You can either identify the server by its IP address or identify multiple host instances or entries by using the optional auth-port and acct-port keywords.

Page 984 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 984 · click to enlarge
Page 984

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

To define the AAA server group and associate a particular RADIUS server with it, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server host {hostname | ip-address} [auth-port port-number] [acct-port port-number] [timeout seconds] [retransmit retries] [key string]

Specifies the IP address or hostname of the remote RADIUS server host.

  • (Optional) For auth-port port-number , specify the UDP destination port for authentication requests.
  • (Optional) For acct-port port-number , specify the UDP destination port for accounting requests.
  • (Optional) For timeout seconds , specify the time interval that the switch waits for the RADIUS server to reply before resending. The range is 1 to 1000. This setting overrides the radius-server timeout global configuration command setting. If no timeout is set with the radius-server host command, the setting of the radius-server timeout command is used.
  • (Optional) For retransmit retries , specify the number of times a RADIUS request is resent to a server if that server is not responding or responding slowly. The range is 1 to 1000. If no retransmit value is set with the radius-server host command, the setting of the radius-server retransmit global configuration command is used.
  • (Optional) For key string , specify the authentication and encryption key used between the switch and the RADIUS daemon running on the RADIUS server.

Note The key is a text string that must match the encryption key used on the RADIUS server. Always configure the key as the last item in the radius-server host command. Leading spaces are ignored, but spaces within and at the end of the key are used. If you use spaces in your key, do not enclose the key in quotation marks unless the quotation marks are part of the key.

To configure the switch to recognize more than one host entry associated with a single IP address, enter this command as many times as necessary, making sure that each UDP port number is different. The switch software searches for hosts in the order in which you specify them. Set the timeout, retransmit, and encryption key values to use with the specific RADIUS host.

Step 3 Switch(config)# aaa new-model Enables AAA.

Step 4 Switch(config)# aaa group server radius group-name

Defines the AAA server-group with a group name.

This command puts the switch in a server group configuration mode.

Step 5 Switch(config)# server ip-address Associates a particular RADIUS server with the defined server group. Repeat this step for each RADIUS server in the AAA server group.

Each server in the group must be previously defined in Step 2.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies your entries.

Page 985 of the Cisco Systems 4500 user manual — Configuring RADIUS Authorization for User Privileged Access and Network Services
Page 985 · click to enlarge
Page 985

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Step 9 Enables RADIUS login authentication. See the “Configuring RADIUS Login Authentication” section on page 40-103.

To remove the specified RADIUS server, use the no radius-server host hostname | ip-address global configuration command. To remove a server group from the configuration list, use the no aaa group server radius group-name global configuration command. To remove the IP address of a RADIUS server, use the no server ip-address server group configuration command.

In this example, the switch is configured to recognize two different RADIUS group servers (group1 and group2). Group1 has two different host entries on the same RADIUS server configured for the same services. The second host entry acts as a failover backup to the first entry.

Switch(config)# radius-server host 172.20.0.1 auth-port 1000 acct-port 1001 Switch(config)# radius-server host 172.10.0.1 auth-port 1645 acct-port 1646 Switch(config)# aaa new-model Switch(config)# aaa group server radius group1 Switch(config-sg-radius)# server 172.20.0.1 auth-port 1000 acct-port 1001 Switch(config-sg-radius)# exit Switch(config)# aaa group server radius group2 Switch(config-sg-radius)# server 172.20.0.1 auth-port 2000 acct-port 2001 Switch(config-sg-radius)# exit

Configuring RADIUS Authorization for User Privileged Access and Network Services

AAA authorization limits the services available to a user. When AAA authorization is enabled, the switch uses information retrieved from the user’s profile, which is in the local user database or on the security server, to configure the user’s session. The user is granted access to a requested service only if the information in the user profile allows it.

You can use the aaa authorization global configuration command with the radius keyword to set parameters that restrict a user’s network access to privileged EXEC mode.

The aaa authorization exec radius local command sets these authorization parameters:

  • Use RADIUS for privileged EXEC access authorization if authentication was performed by using RADIUS.
  • Use the local database if authentication was not performed by using RADIUS.

To specify RADIUS authorization for privileged EXEC access and network services, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# aaa authorization network radius

Configures the switch for user RADIUS authorization for all network-related service requests.

Page 986 of the Cisco Systems 4500 user manual — Starting RADIUS Accounting
Page 986 · click to enlarge
Page 986

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Step 3 Switch(config)# aaa authorization exec radius

Configures the switch for user RADIUS authorization if the user has privileged EXEC access.

The exec keyword might return user profile information (such as autocommand information).

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable authorization, use the no aaa authorization {network | exec} method1 global configuration command.

Starting RADIUS Accounting

The AAA accounting feature tracks the services that users are accessing and the amount of network resources that they are consuming. When AAA accounting is enabled, the switch reports user activity to the RADIUS security server in the form of accounting records. Each accounting record contains accounting attribute-value (AV) pairs and is stored on the security server. This data can then be analyzed for network management, client billing, or auditing.

To enable RADIUS accounting for each Cisco IOS privilege level and for network services, perform these steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# aaa accounting network start-stop radius

Enables RADIUS accounting for all network-related service requests.

Step 3 Switch(config)# aaa accounting exec start-stop radius

Enables RADIUS accounting to send a start-record accounting notice at the beginning of a privileged EXEC process and a stop-record at the end.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable accounting, use the no aaa accounting {network | exec} {start-stop} method1... global configuration command.

Page 987 of the Cisco Systems 4500 user manual — Configuring the Switch to Use Vendor-Specific RADIUS Attributes
Page 987 · click to enlarge
Page 987

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

Configuring Settings for All RADIUS Servers

To configure global communication settings between the switch and all RADIUS servers, perform these steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server key string

Specifies the shared secret text string used between the switch and all RADIUS servers.

Step 3 Switch(config)# radius-server retransmit retries

Specifies the number of times the switch sends each RADIUS request to the server before giving up. The default is 3; the range 1 to 1000.

Step 4 Switch(config)# radius-server timeout seconds

Specifies the number of seconds a switch waits for a reply to a RADIUS request before resending the request. The default is 5 seconds; the range is 1 to 1000.

Step 5 Switch(config)# radius-server deadtime minutes

Specifies the number of minutes a RADIUS server, which is not responding to authentication requests, to be skipped, thus avoiding the wait for the request to timeout before trying the next configured server. The default is 0; the range is 1 to 1440 minutes.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show running-config Verifies your settings.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To return to the default setting for the retransmit, timeout, and deadtime, use the no forms of these commands.

Configuring the Switch to Use Vendor-Specific RADIUS Attributes

The Internet Engineering Task Force (IETF) draft standard specifies a method for communicating vendor-specific information between the switch and the RADIUS server by using the vendor-specific attribute (attribute 26). Vendor-specific attributes (VSAs) allow vendors to support their own extended attributes not suitable for general use. The Cisco RADIUS implementation supports one vendor-specific option by using the format recommended in the specification. Cisco’s vendor-ID is 9, and the supported option has vendor-type 1, which is named cisco-avpair. The value is a string with this format:

protocolattribute sep value *

Protocol is a value of the Cisco protocol attribute for a particular type of authorization. Attribute and value are an appropriate attribute-value (AV) pair defined in the Cisco TACACS+ specification, and sep is = for mandatory attributes and is * for optional attributes. The full set of features available for TACACS+ authorization can then be used for RADIUS.

Page 988 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 988 · click to enlarge
Page 988

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

For example, this AV pair activates Cisco’s multiple named ip address pools feature during IP authorization (during PPP IPCP address assignment):

cisco-avpair= ”ip:addr-pool=first“

This example shows how to provide a user logging in from a switch with immediate access to privileged EXEC commands:

cisco-avpair= ”shell:priv-lvl=15“

This example shows how to specify an authorized VLAN in the RADIUS server database:

cisco-avpair= ”tunnel-type(#64)=VLAN(13)” cisco-avpair= ”tunnel-medium-type(#65)=802 media(6)” cisco-avpair= ”tunnel-private-group-ID(#81)=vlanid”

This example shows how to apply an input ACL in ASCII format to an interface for the duration of this connection:

cisco-avpair= “ip:inacl#1=deny ip 10.10.10.10 0.0.255.255 20.20.20.20 255.255.0.0” cisco-avpair= “ip:inacl#2=deny ip 10.10.10.10 0.0.255.255 any” cisco-avpair= “mac:inacl#3=deny any any decnet-iv”

This example shows how to apply an output ACL in ASCII format to an interface for the duration of this connection:

cisco-avpair= “ip:outacl#2=deny ip 10.10.10.10 0.0.255.255 any” Other vendors have their own unique vendor-IDs, options, and associated VSAs. For more information about vendor-IDs and VSAs, see RFC 2138, “Remote Authentication Dial-In User Service (RADIUS).”

To configure the switch to recognize and use VSAs, perform these steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server vsa send [accounting | authentication]

Enables the switch to recognize and use VSAs as defined by RADIUS IETF attribute 26.

  • (Optional) Use the accounting keyword to limit the set of recognized vendor-specific attributes to only accounting attributes.
  • (Optional) Use the authentication keyword to limit the set of recognized vendor-specific attributes to only authentication attributes.

If you enter this command without keywords, both accounting and authentication vendor-specific attributes are used.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your settings.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 989 of the Cisco Systems 4500 user manual — Configuring the Switch for Vendor-Proprietary RADIUS Server Communication
Page 989 · click to enlarge
Page 989

Chapter 40 Configuring 802.1X Port-Based Authentication

Controlling Switch Access with RADIUS

Configuring the Switch for Vendor-Proprietary RADIUS Server Communication

Although an IETF draft standard for RADIUS specifies a method for communicating vendor-proprietary information between the switch and the RADIUS server, some vendors have extended the RADIUS attribute set in a unique way. Cisco IOS software supports a subset of vendor-proprietary RADIUS attributes.

As mentioned earlier, to configure RADIUS (whether vendor-proprietary or IETF draft-compliant), you must specify the host running the RADIUS server daemon and the secret text string it shares with the switch. You specify the RADIUS host and secret text string by using the radius-server global configuration commands.

To specify a vendor-proprietary RADIUS server host and a shared secret text string, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# radius-server host {hostname | ip-address} non-standard

Specifies the IP address or hostname of the remote RADIUS server host and identify that it is using a vendor-proprietary implementation of RADIUS.

Step 3 Switch(config)# radius-server key string Specifies the shared secret text string used between the switch and the vendor-proprietary RADIUS server. The switch and the RADIUS server use this text string to encrypt passwords and exchange responses.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your settings.

Step 6 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To delete the vendor-proprietary RADIUS host, use the no radius-server host {hostname | ip-address} non-standard global configuration command. To disable the key, use the no radius-server key global configuration command.

This example shows how to specify a vendor-proprietary RADIUS host and to use a secret key of rad124 between the switch and the server:

Switch(config)# radius-server host 172.20.30.15 nonstandard Switch(config)# radius-server key rad124

Page 990 of the Cisco Systems 4500 user manual — Configuring CoA on the Switch
Page 990 · click to enlarge
Page 990

Chapter 40 Configuring 802.1X Port-Based Authentication Controlling Switch Access with RADIUS

Configuring CoA on the Switch

To configure CoA on a switch, perform these steps. This procedure is required.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# aaa new-model Enables AAA.

Step 3 Switch(config)# aaa server radius dynamic-author

Configures the switch as an authentication, authorization, and accounting (AAA) server to facilitate interaction with an external policy server.

Step 4 Switch(config-locsvr-da-radius)# client {ip-address | name} [vrf vrfname] [server-key string]

Enters dynamic authorization local server configuration mode and specify a RADIUS client from which a device will accept CoA and disconnect requests.

Step 5 Switch(config-locsvr-da-radius)# server-key [0 | 7] string

Configures the RADIUS key to be shared between a device and RADIUS clients.

Step 6 Switch(config-locsvr-da-radius)# port port-number

Specifies the port on which a device listens for RADIUS requests from configured RADIUS clients.

Step 7 Switch(config-locsvr-da-radius)# auth-type {any | all | session-key}

Specifies the type of authorization the switch uses for RADIUS clients.

The client must match all the configured attributes for authorization.

Step 8 Switch(config-locsvr-da-radius)# ignore session-key

(Optional) Configures the switch to ignore the session-key.

For more information about the ignore command, see the Cisco IOS Intelligent Services Gateway Command Reference on Cisco.com.

Step 9 Switch(config-locsvr-da-radius)# ignore server-key

(Optional) Configures the switch to ignore the server-key.

For more information about the ignore command, see the Cisco IOS Intelligent Services Gateway Command Reference on Cisco.com.

Step 10 Switch(config-locsvr-da-radius)# exit

Switches to global configuration mode.

Step 11 Switch(config)# authentication command bounce-port ignore

(Optional) Configures the switch to ignore a CoA request to temporarily disable the port hosting a session. The purpose of temporarily disabling the port is to trigger a DHCP renegotiation from the host when a VLAN change occurs and there is no supplicant on the endpoint to detect the change.

Step 12 Switch(config)# authentication command disable-port ignore

(Optional) Configures the switch to ignore a nonstandard command requesting that the port hosting a session be administratively shut down. Shutting down the port results in termination of the session.

Use standard CLI or SNMP commands to re-enable the port.

Step 13 Switch# end Returns to privileged EXEC mode.

Step 14 Switch# show running-config Verifies your entries.

Step 15 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 991 of the Cisco Systems 4500 user manual — Displaying 802.1X Statistics and Status
Page 991 · click to enlarge
Page 991

Chapter 40 Configuring 802.1X Port-Based Authentication

Displaying 802.1X Statistics and Status

To disable AAA, use the no aaa new-model global configuration command. To disable the AAA server functionality on the switch, use the no aaa server radius dynamic authorization global configuration command:

Switch(config)# aaa server radius dynamic-author Switch(config-locsvr-da-radius)# client ip addr vrf vrfname Switch(config-locsvr-da-radius)# server-key cisco123 Switch(config-locsvr-da-radius)# port 3799

Switch(config)# authentication command bounce-port ignore

Monitoring and Troubleshooting CoA Functionality

The following Cisco IOS commands can be used to monitor and troubleshoot CoA functionality on the switch:

  • debug radius
  • debug aaa coa
  • debug aaa pod
  • debug aaa subsys
  • debug cmdhd [ detail | error | events ]
  • show aaa attributes protocol radius

Configuring RADIUS Server Load Balancing

This feature allows access and authentication requests to be evenly across all RADIUS servers in a server group. For more information, see the RADIUS Server Load Balancing chapter of the Cisco IOS Security Configuration Guide, Release 12.2:

http://www.ciscosystems.com/en/US/docs/ios/12_2sb/feature/guide/sbrdldbl.html

Displaying the RADIUS Configuration

To display the RADIUS configuration, use the show running-config privileged EXEC command.

Displaying 802.1X Statistics and Status

To display 802.1X statistics for all interfaces, use the show dot1x all statistics privileged EXEC command.

To display the 802.1X administrative and operational status for the switch, use the show dot1x all details privileged EXEC command. To display the 802.1X administrative and operational status for a specific interface, use the show dot1x interface details privileged EXEC command.

Page 992 of the Cisco Systems 4500 user manual — Displaying the Summary of All Auth Manager Sessions on the Switch
Page 992 · click to enlarge
Page 992

Chapter 40 Configuring 802.1X Port-Based Authentication Displaying Authentication Details

Displaying Authentication Details

This section includes these topics:

  • Determining the Authentication Methods Registered with the Auth Manager, page 40-114
  • Displaying the Auth Manager Summary for an Interface, page 40-114
  • Displaying the Summary of All Auth Manager Sessions on the Switch, page 40-114
  • Displaying a Summary of All Auth Manager Sessions on the Switch Authorized for a Specified Authentication Method, page 40-115
  • Verifying the Auth Manager Session for an Interface, page 40-115
  • Displaying MAB Details, page 40-117
  • EPM Logging, page 40-117

Determining the Authentication Methods Registered with the Auth Manager

This example show how to display the registered authentication methods:

Enter the following:

Switch# show authentication registrations Handle Priority Name 3 0 dot1x 2 1 mab 1 2 webauth

Displaying the Auth Manager Summary for an Interface

In the following example, MAB was configured for a higher priority (lower value) than 802.1X:

Switch# show authentication int gi1/5 Client list: Interface MAC Address Method Domain Status Session ID Gi1/5 000f.23c4.a401 mab DATA Authz Success 0A3462B10000000D24F80B58 Gi1/5 0014.bf5d.d26d dot1x DATA Authz Success 0A3462B10000000E29811B94

Available methods list: Handle Priority Name 3 0 dot1x 2 1 mab Runnable methods list: Handle Priority Name 2 0 mab 3 1 dot1x

Displaying the Summary of All Auth Manager Sessions on the Switch

This example shows how ti display the summary of all sessions:

Switch# show authentication sessions Interface MAC Address Method Domain Status Session ID Gi1/48 0015.63b0.f676 dot1x DATA Authz Success 0A3462B1000000102983C05C Gi1/5 000f.23c4.a401 mab DATA Authz Success 0A3462B10000000D24F80B58 Gi1/5 0014.bf5d.d26d dot1x DATA Authz Success 0A3462B10000000E29811B94

Page 993 of the Cisco Systems 4500 user manual — Verifying the Auth Manager Session for an Interface
Page 993 · click to enlarge
Page 993

Chapter 40 Configuring 802.1X Port-Based Authentication

Displaying a Summary of All Auth Manager Sessions on the Switch Authorized for a Specified Authentication Method

This example shows how to display a summary of all sessions for a specific authentication method:

Switch# show authentication method dot1x Interface MAC Address Method Domain Status Session ID Gi1/48 0015.63b0.f676 dot1x DATA Authz Success 0A3462B1000000102983C05C Gi1/5 0014.bf5d.d26d dot1x DATA Authz Success 0A3462B10000000E29811B94

Verifying the Auth Manager Session for an Interface

The Auth manage session can be verified by using the show authentication sessions command:

Switch# show authentication sessions int gi1/5 Interface: GigabitEthernet1/5 MAC Address: 000f.23c4.a401 IP Address: Unknown User-Name: 000f23c4a401 Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: 0A3462B10000000D24F80B58 Acct Session ID: 0x0000000F Handle: 0x2400000D Runnable methods list: Method State dot1x Failed over mab Authc Success Interface: GigabitEthernet1/5 MAC Address: 0014.bf5d.d26d IP Address: 20.0.0.7 User-Name: johndoe Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: 0A3462B10000000E29811B94 Acct Session ID: 0x00000010 Handle: 0x1100000E Runnable methods list: Method State dot1x Authc Success mab Not run

Displaying Authentication Details

Page 994 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 994 · click to enlarge
Page 994

Chapter 40 Configuring 802.1X Port-Based Authentication Displaying Authentication Details

The individual output can be further refined by using the handle, interface, MAC, session-id, or method keywords:

Switch# show authentication sessions mac 000f.23c4.a401 Interface: GigabitEthernet1/5 MAC Address: 000f.23c4.a401 IP Address: Unknown User-Name: 000f23c4a401 Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: 0A3462B10000000D24F80B58 Acct Session ID: 0x0000000F Handle: 0x2400000D Runnable methods list: Method State dot1x Failed over mab Authc Success

Switch# show authentication sessions session-id 0A3462B10000000D24F80B58 Interface: GigabitEthernet1/5 MAC Address: 000f.23c4.a401 IP Address: Unknown User-Name: 000f23c4a401 Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: 0A3462B10000000D24F80B58 Acct Session ID: 0x0000000F Handle: 0x2400000D Runnable methods list: Method State dot1x Failed over mab uthc Success

Switch# show authentication session method dot1x int gi1/5 Interface: GigabitEthernet1/5 MAC Address: 0014.bf5d.d26d IP Address: 20.0.0.7 User-Name: johndoe Status: Authz Success Domain: DATA Oper host mode: multi-auth Oper control dir: both Authorized By: Authentication Server Vlan Policy: N/A Session timeout: N/A Idle timeout: N/A Common Session ID: 0A3462B10000000E29811B94 Acct Session ID: 0x00000010 Handle: 0x1100000E Runnable methods list: Method State dot1x Authc Success

Page 995 of the Cisco Systems 4500 user manual — EPM Logging
Page 995 · click to enlarge
Page 995

Chapter 40 Configuring 802.1X Port-Based Authentication

Displaying MAB Details

The following commands display these details:

Switch# show mab all MAB details for FastEthernet5/9 Mac-Auth-Bypass = Enabled Inactivity Timeout = None

Switch# show mab all detail MAB details for FastEthernet5/9 Mac-Auth-Bypass = Enabled Inactivity Timeout = None MAB Client List Client MAC = 000f.23c4.a401 MAB SM state = TERMINATE Auth Status = AUTHORIZED

Switch# show mab int fa5/9 MAB details for FastEthernet5/9 Mac-Auth-Bypass = Enabled Inactivity Timeout = None

Switch# show mab int fa5/9 detail MAB details for FastEthernet5/9 Mac-Auth-Bypass = Enabled Inactivity Timeout = None MAB Client List Client MAC = 000f.23c4.a401 MAB SM state = TERMINATE Auth Status = AUTHORIZED

EPM Logging

EPM logging enables you to display EPM logging messages by using the epm logging command in global configuration mode. To disable EPM logging, enter no epm logging.

Logging messages are displayed during the following events:

  • POLICY_APP_SUCCESS—Policy application success events on Named ACLs, Proxy ACLs, and service policies, URL redirect policies.
  • POLICY_APP_FAILURE—Policy application failure conditions similar to unconfigured policies, wrong policies, download request failures and download failures from AAA.
  • IPEVENT—IP assignment, IP release and IP wait events for clients.
  • AAA—AAA events (similar to download requests, or download successes from AAA)

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z.

Displaying Authentication Details · mab Not run · Example 1

Page 996 of the Cisco Systems 4500 user manual — Configuring 802.1X Port-Based Authentication
Page 996 · click to enlarge
Page 996

Chapter 40 Configuring 802.1X Port-Based Authentication Displaying Authentication Details

Switch(config)# epm logging Switch# clear dot1x all Switch# *May 15 08:31:26.561: %EPM-6-POLICY_REQ: IP=100.0.0.222| MAC=0000.0000.0001| AUDITSESID=0A050B2C000000030004956C| AUTHTYPE=DOT1X| EVENT=REMOVE *May 15 08:31:26.581: %AUTHMGR-5-START: Starting 'dot1x' for client (0000.0000.0001) on Interface Fa9/25 *May 15 08:31:26.681: %DOT1X-5-SUCCESS: Authentication successful for client (0000.0000.0001) on Interface Fa9/25 *May 15 08:31:26.681: %AUTHMGR-7-RESULT: Authentication result 'success' from 'dot1x' for client (0000.0000.0001) on Interface Fa9/25

Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# epm logging Switch(config)# int f9/25 Switch(config-if)# shut Switch(config-if)# no shut *May 15 08:41:56.329: %EPM-6-IPEVENT: IP=100.0.0.222| MAC=0000.0000.0001| AUDITSESID=0A050B2C0000026108FB7924| AUTHTYPE=DOT1X| EVENT=IP-RELEASE *May 15 08:41:56.333: %EPM-6-IPEVENT: IP=100.0.0.222| MAC=0000.0000.0001| AUDITSESID=0A050B2C0000026108FB7924| AUTHTYPE=DOT1X| EVENT=IP-WAIT

Example 2

Page 997 of the Cisco Systems 4500 user manual — C H A P T E R
Page 997 · click to enlarge
Page 997

C H A P T E R

Configuring the PPPoE Intermediate Agent

DSL Forum TR-101 [1] offers a means by which the PPPoE Discovery packets are tagged at the service provider's access switch with subscriber line specific information. The mechanism specifies using VSA of the PPPoE Discovery packets to add the line specific information at the switch. Even though you can perform Subscriber Line Identification (SLI) in another way (recreating virtual paths and circuits using stacked VLAN tags), DSL Forum 2004-071 [4] recommends the PPPoE Intermediate Agent mechanism. It cites lower provisioning costs and simpler co-ordination between OSS systems in charge of access switch and BRAS. PPPoE Intermediate Agent helps the service provider, BRAS, distinguish between end hosts connected over Ethernet to an access switch.

This chapter describes PPPoE Intermediate Agent on Catalyst 4500 series switches. It includes the following sections:

  • About PPPoE Intermediate Agent, page 41-2
  • Enabling PPPoE IA on a Switch, page 41-2
  • Configuring the Access Node Identifier for PPPoE IA on a Switch, page 41-2
  • Configuring the Identifier String, Option, and Delimiter for PPPoE IA on an Switch, page 41-3
  • Configuring the Generic Error Message for PPPoE IA on an Switch, page 41-3
  • Enabling PPPoE IA on an Interface, page 41-4
  • Configuring the PPPoE IA Trust Setting on an Interface, page 41-4
  • Configuring PPPoE IA Rate Limiting Setting on an Interface, page 41-4
  • Configuring PPPoE IA Vendor-tag Stripping on an Interface, page 41-5
  • Configuring PPPoE IA Circuit-ID and Remote-ID on an Interface, page 41-5
  • Enabling PPPoE IA for a Specific VLAN on an Interface, page 41-5
  • Configuring PPPoE IA Circuit-ID and Remote-ID for a VLAN on an Interface, page 41-6

Note For complete syntax and usage information for the switch commands used in this chapter, see the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Cisco Catalyst 4500 Command Reference, you can locate it in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 998 of the Cisco Systems 4500 user manual — Configuring the Access Node Identifier for PPPoE IA on a Switch
Page 998 · click to enlarge
Page 998

Chapter 41 Configuring the PPPoE Intermediate Agent Related Documents

Related Documents

Related Topic Document Title

PPPoE Circuit-Id Tag Processing Refer to the PPoE Circuit-Id Tag Processing chapter

RADIUS attributes Refer to the Cisco IOS Security Configuration Guide, Release 12.4

DSL Forum Line-ID tag solution DSL Forum 2004-71: Solution for Remote-ID in PPPoE Discovery Phase

Migration to Ethernet-based DSL aggregation DSL Forum Technical Report 101

RFCs

RFC Title

RFC 2516 A Method for Transmitting PPP over Ethernet (PPPoE)

About PPPoE Intermediate Agent

PPPoE Intermediate Agent (PPPoE IA) is placed between a subscriber and BRAS to help the service provider BRAS distinguish between end hosts connected over Ethernet to an access switch. On the access switch, PPPoE IA enables Subscriber Line Identification by appropriately tagging Ethernet frames of different users. (The tag contains specific information such as which subscriber is connected to the switch and VLAN.) PPPoE IA acts as mini security firewall between host and BRAS by intercepting all PPPoE Active Discovery (PAD) messages on a per-port per-VLAN basis. It provides specific security feature such as verifying the intercepted PAD message from untrusted port, performing per-port PAD message rate limiting, inserting and removing VSA Tags into and from PAD messages, respectively.

Enabling PPPoE IA on a Switch

This functionality allows you to enable or disable PPPoE IA globally on the switch:

Switch> enable Switch# configure terminal Switch(config)# pppoe intermediate-agent

By default, PPPoE IA is disabled globally.

Configuring the Access Node Identifier for PPPoE IA on a Switch

This functionality allows you to set the Access Node Identifier of the switch. If unspecified, this parameter is derived automatically with the IP address of the management interface.

Page 999 of the Cisco Systems 4500 user manual — Configuring the Generic Error Message for PPPoE IA on an Switch
Page 999 · click to enlarge
Page 999

Chapter 41 Configuring the PPPoE Intermediate Agent

The following example shows how to set an access node identifier of abcd:

Switch> enable Switch# configure terminal Switch(config)# pppoe intermediate-agent format-type access-node-id string abcd

By default, access-node-id is not set.

Configuring the Identifier String, Option, and Delimiter for PPPoE IA on an Switch

This functionality overrides the default automatic generation of circuit-id by the system.

The options available are sp, sv, pv and spv denoting slot:port, slot-vlan, port-vlan, and slot-port-vlan combinations, respectively. Valid delimiters are # . , ; / space.

The no form of this command without WORD, options, and delimiters, reverts to the default automatic generation of circuit-id.

The following example shows how to set an identifier string word with option spv delimited by “:”:

Switch> enable Switch# configure terminal Switch(config) pppoe intermediate-agent format-type

identifier-string string word option spv delimiter:

This command does not affect the circuit ID configured explicitly per-interface or per-interface per-VLAN with the pppoe intermediate-agent format-type circuit-id or pppoe intermediate-agent vlan num format-type circuit-id commands.

Configuring the Generic Error Message for PPPoE IA on an Switch

This functionality sets the Generic-Error message of the switch. PPPoE IA sends this message only on a specific error condition. If you do not specify string {WORD}, the error message is not added.

The following example shows how to configure a generic message of packet_length>1484:

Switch> enable Switch# configure terminal Switch(config) pppoe intermediate-agent format-type

generic-error-message string packet_length>1484 PPPoE Discover packet too large to process. Try reducing the number of tags added.

By default the generic-error-message is not set. The string value is converted to UTF-8 before it is added to the response. The message similar to the following will appear:

PPPoE Discover packet too large to process. Try reducing the number of tags added.

RFCs

Page 1000 of the Cisco Systems 4500 user manual — Configuring PPPoE IA Rate Limiting Setting on an Interface
Page 1000 · click to enlarge
Page 1000

Chapter 41 Configuring the PPPoE Intermediate Agent RFCs

Enabling PPPoE IA on an Interface

This functionality enables the PPPoE IA feature on an interface. The pppoe intermediate-agent command has an effect only if the PPPoE IA feature was enabled globally with this command. (You need to enable globally to activate PPPoE IA static ACL and on an interface for PPPoE IA processing of PPPoE discovery packets received on that interface.)

This setting applies to all frames passing through this interface, regardless of the VLAN they belong to. By default the PPPoE IA feature is disabled on all interfaces. You need to run this command on every interface that requires this feature.

The following example shows how to enable PPPoE IA on FastEthernet 3/1:

Switch> enable Switch# configure terminal Switch(config) interface FastEthernet 3/1 Switch(config-if) pppoe intermediate-agent

Configuring the PPPoE IA Trust Setting on an Interface

This functionality sets a physical interface as trusted. The following example shows how to set FastEthernet interface 3/2 as trusted:

Switch> enable Switch# configure terminal Switch(config) interface FastEthernet 3/2 Switch(config-if) pppoe intermediate-agent trust

This setting is disabled by default.

Configuring PPPoE IA Rate Limiting Setting on an Interface

This functionality limits the rate (per second) at which PPPoE Discovery packets (PADI, PADO, PADR, PADS, or PADT) are received on an interface. When the incoming packet rate achieves or exceeds the configured limit, a port enters an err-disabled state.

The following example shows how to set a rate limit of 30 at FastEthernet 3/1:

Switch> enable Switch# configure terminal Switch(config) interface FastEthernet 3/1 Switch(config-if) pppoe intermediate-agent limit rate 30

Page 1001 of the Cisco Systems 4500 user manual — Enabling PPPoE IA for a Specific VLAN on an Interface
Page 1001 · click to enlarge
Page 1001

Chapter 41 Configuring the PPPoE Intermediate Agent

Configuring PPPoE IA Vendor-tag Stripping on an Interface

This functionality enables an administrator to strip the vendor-specific tag (VSA) from PADO, PADS, and PADT packets received on an interface before forwarding them to the user.

The following example shows how to enable stripping on FastEthernet 3/2:

Switch> enable Switch# configure terminal Switch(config) interface FastEthernet 3/2 Switch(config-if) pppoe intermediate-agent vendor-tag strip

This setting is disabled by default.

Note Generally, you would configure vendor-tag stripping on an interfaces connected to the PPPoE server. If you configure stripping, incoming packets are stripped of their VSAs (which carry subscriber and line identification information). For this to happen, the PPPoE Intermediate agent must be enabled to make the pppoe intermediate-agent vendor-tag strip command effective, and the interface must be set to trust. In isolation, the command has no effect.

Configuring PPPoE IA Circuit-ID and Remote-ID on an Interface

The [no] pppoe intermediate-agent format-type circuit-id command sets the circuit ID on an interface and overrides the automatic generation of circuit ID by the switch. Without this command, one default tag (for example, Ethernet x/y:z on the PPPoE to which the user is connected) inserted by an intermediate-agent.

The [no] pppoe intermediate-agent format-type remote-id command sets the remote ID on an interface.

This functionality causes tagging of PADI, PADR, and PADT packets (belonging to PPPoE Discovery stage) received on this physical interface with circuit ID or remote ID. This happens regardless s of their VLAN if PPPoE IA is not enabled for that VLAN.

You should use remote ID instead of circuit ID for subscriber line identification. You should configure this setting on every interface where you enabled PPPoE IA because it is not set by default. The default value for remote-id is the switch MAC address (for all physical interfaces).

The following example shows how to configure the circuit ID as root and the remote ID as granite:

Switch> enable Switch# configure terminal Switch(config) interface FastEthernet 3/1 Switch(config-if) pppoe intermediate-agent format-type circuit-id string root Switch(config-if) pppoe intermediate-agent format-type remote-id string granite

Enabling PPPoE IA for a Specific VLAN on an Interface

This functionality allows you to enable PPPoE IA on either a specific VLAN, a comma-separated list such as “x,y,” or a range such as “x-y.”

RFCs

Page 1002 of the Cisco Systems 4500 user manual — Displaying Configuration Parameters
Page 1002 · click to enlarge
Page 1002

Chapter 41 Configuring the PPPoE Intermediate Agent Displaying Configuration Parameters

Specific VLAN:

Switch# configure terminal Switch(config)# interface FastEthernet 3/1 Switch(config-if)# vlan-range 5 Switch(config-if-vlan-range)# pppoe intermediate-agent

Comma-separated VLAN list:

Switch# configure terminal Switch(config)# interface FastEthernet 3/1 Switch(config-if)# vlan-range 5,6 Switch(config-if-vlan-range)# pppoe intermediate-agent

VLAN range:

Switch# configure terminal Switch(config)# interface FastEthernet 3/1 Switch(config-if)# vlan-range 5-9 Switch(config-if-vlan-range)# pppoe intermediate-agent

Configuring PPPoE IA Circuit-ID and Remote-ID for a VLAN on an Interface

In this section you set the circuit ID and remote ID for a specific VLAN on an interface. The command overrides the circuit ID and remote ID specified for this physical interface and the switch uses the WORD value to tag packets received on this VLAN. This parameter is unset by default.

The default value of remote-id is the switch MAC address (for all VLANs). You would set this parameter to encode subscriber-specific information.

This example shows how to set the circuit-id to aaa and the remote-id as ccc on interface g3/7:

Switch(config)# int g3/7 Switch(config-if)# vlan-range 5 Switch(config-if)# pppoe intermediate-agent Switch(config-if-vlan-range)# pppoe intermediate-agent format-type circuit-id string aaa Switch(config-if-vlan-range)# pppoe intermediate-agent format-type remote-id string ccc

Displaying Configuration Parameters

The show pppoe intermediate-agent [info| statistics] [interface {interface}] command displays the various configuration parameters, statistics, and counters stored for PPPoE.

Page 1003 of the Cisco Systems 4500 user manual — Configuring the PPPoE Intermediate Agent
Page 1003 · click to enlarge
Page 1003

Chapter 41 Configuring the PPPoE Intermediate Agent

The info keyword appears if the PPPoE Intermediate Agent is enabled globally on an interface or on a VLAN (in an interface). It also informs you about the access node ID and generic error message of the switch, as well as the identifier string options and delimiter values configured globally by the following command:

Switch(config)# pppoe intermediate-agent format-type ? access-node-id Access Node Identifier generic-error-message Generic Error Message identifier-string Identifier String

The info keyword also displays the circuit ID, remote ID, trust and rate limit configurations, and vendor tag strip setting for all interfaces and for all VLANs pertaining to those interfaces. If any of these parameters are not set, they are not displayed.

The statistics option displays the number of PADI/PADR/PADT packets received, and the time the last packet was received on all interfaces and on all VLANs pertaining to those interfaces.

If interface is specified, information or statistics applicable only to that physical interface and pertaining VLANs is displayed.

Although PPoE IA is supported on PVLANs, be aware that no PVLAN association (primary and secondary VLAN mapping) information is displayed.

The PPPoE IA show commands such as show pppoe intermediate-agent info, show pppoe intermediate-agent info interface g3/7, or show pppoe intermediate-agent statistics) do not provide information about private VLAN association (primary and secondary VLAN mapping). However, they do provide information about VLANs regardless of private or normal VLANs, as the following example illustrate:

Switch# show pppoe intermediate-agent info Switch PPPOE Intermediate-Agent is enabled

PPPOE Intermediate-Agent trust/rate is configured on the following Interfaces:

Interface IA Trusted Vsa Strip Rate limit (pps) GigabitEthernet3/4 no yes yes unlimited PPPOE Intermediate-Agent is configured on following VLANs: 2-3 GigabitEthernet3/7 no no no unlimited PPPOE Intermediate-Agent is configured on following VLANs: 2-3

Switch# show pppoe intermediate-agent info interface g3/7 Interface IA Trusted Vsa Strip Rate limit (pps) GigabitEthernet3/7 yes no no unlimited PPPoE Intermediate-Agent is configured on following VLANs: 2-3

Switch# show pppoe intermediate-agent statistics

PPPOE IA Per-Port Statistics

Interface : GigabitEthernet3/7 Packets received All = 0 PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 0 Packets dropped: Rate-limit exceeded = 0

Displaying Configuration Parameters

Page 1004 of the Cisco Systems 4500 user manual — Debugging PPPoE Intermediate Agent
Page 1004 · click to enlarge
Page 1004

Chapter 41 Configuring the PPPoE Intermediate Agent Clearing Packet Counters

Server responses from untrusted ports = 0 Client requests towards untrusted ports = 0 Malformed PPPoE Discovery packets = 0 Vlan 2: Packets received PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 0 Vlan 3: Packets received PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 0

Switch# show pppoe intermediate-agent statistics interface g3/7 Interface : GigabitEthernet3/7 Packets received All = 3 PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 3 Packets dropped: Rate-limit exceeded = 0 Server responses from untrusted ports = 0 Client requests towards untrusted ports = 0 Malformed PPPoE Discovery packets = 0 Vlan 2: Packets received PADI = 6 PADO = 0 PADR = 6 PADS = 0 PADT = 6 Vlan 3: Packets received PADI = 4 PADO = 0 PADR = 4 PADS = 0 PADT = 4

Clearing Packet Counters

This section illustrates how to clear packet counters on all interfaces (per-port and per-port-per-VLAN).

The following example illustrates how to do this:

Switch# clear pppoe intermediate-agent statistics

Issuing of the above command clears the counters for all PPPoE discovery packets (PADI,PADO,PADR,PADS,PADT) received on DUT.

Switch# show pppoe intermediate-agent statistics interface g3/7 Interface : GigabitEthernet3/7 Packets received All = 0 PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 0 Packets dropped: Rate-limit exceeded = 0 Server responses from untrusted ports = 0 Client requests towards untrusted ports = 0 Malformed PPPoE Discovery packets = 0 Vlan 2: Packets received PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 0 Vlan 3: Packets received PADI = 0 PADO = 0 PADR = 0 PADS = 0 PADT = 0

Debugging PPPoE Intermediate Agent

The debug pppoe intermediate-agent [packet | event | all] command enables you to display useful PPPoE information that assists in debugging. This command is disabled by default.

The packet option of the command displays the contents of a packet received in the software: source and destination MAC address of Ethernet frame, code, version and type of PPPoE Discovery packet and a list of TAGs present.

Page 1005 of the Cisco Systems 4500 user manual — Troubleshooting Tips
Page 1005 · click to enlarge
Page 1005

Chapter 41 Configuring the PPPoE Intermediate Agent

The event option of the command echoes important messages (interface state change to errdisabled due to PPPoE discovery packets entering at a rate exceeding the configured limit). it is the only event shown by the debug pppoe intermediate-agent event command.

The all option enables both package and event options.

The following example illustrates how to enter the debug command with the packet option:

Switch# debug pppoe intermediate-agent packet PPPOE IA Packet debugging is on

*Sep 2 06:12:56.133: PPPOE_IA: Process new PPPoE packet, Message type: PADI, input interface: Gi3/7, vlan : 2 MAC da: ffff.ffff.ffff, MAC sa: aabb.cc00.0000 *Sep 2 06:12:56.137: PPPOE_IA: received new PPPOE packet from inputinterface (GigabitEthernet3/4) *Sep 2 06:12:56.137: PPPOE_IA: received new PPPOE packet from inputinterface (GigabitEthernet3/8) *Sep 2 06:12:56.137: PPPOE_IA: Process new PPPoE packet, Message type: PADO, input interface: Gi3/4, vlan : 2 MAC da: aabb.cc00.0000, MAC sa: 001d.e64c.6512 *Sep 2 06:12:56.137: PPPOE_IA: Process new PPPoE packet, Message type: PADO, input interface: Gi3/8, vlan : 2 MAC da: aabb.cc00.0000, MAC sa: aabb.cc80.0000 *Sep 2 06:12:56.137: PPPOE_IA: received new PPPOE packet from inputinterface (GigabitEthernet3/7) *Sep 2 06:12:56.137: PPPOE_IA: Process new PPPoE packet, Message type: PADR, input interface: Gi3/7, vlan : 2 MAC da: 001d.e64c.6512, MAC sa: aabb.cc00.0000 *Sep 2 06:12:56.145: PPPOE_IA: received new PPPOE packet from inputinterface (GigabitEthernet3/4) *Sep 2 06:12:56.145: PPPOE_IA: Process new PPPoE packet, Message type: PADS, input interface: Gi3/4, vlan : 2 MAC da: aabb.cc00.0000, MAC sa: 001d.e64c.6512

The following example illustrates how to enter the debug command with the event option:

Switch# debug pppoe intermediate-agent event PPPOE IA Event debugging is on

*Jul 30 19:00:10.254: %PPPOE_IA-4-PPPOE_IA_ERRDISABLE_WARNING: PPPOE IA received 5 PPPOE packets on interface Gi3/7 *Jul 30 19:00:10.254: %PPPOE_IA-4-PPPOE_IA_RATE_LIMIT_EXCEEDED: The interface Gi3/7 is receiving more than the threshold set *Jul 30 19:00:10.394: %PM-4-ERR_DISABLE: STANDBY:pppoe-ia-rate-limit error detected on Gi3/7, putting Gi3/7 in err-disable stat

Troubleshooting Tips

When the radius-server attribute 31 remote-id global configuration command is entered in the PPPoE Agent Remote-ID Tag and DSL Line Characteristics feature configuration on the BRAS, the debug radius privileged EXEC command can be used to generate a report that includes information about the incoming access interface, where discovery frames are received, and about the session being established in PPPoE extended NAS-Port format (format d).

Troubleshooting Tips

Page 1006 of the Cisco Systems 4500 user manual — Configuring the PPPoE Intermediate Agent
Page 1006 · click to enlarge
Page 1006

Chapter 41 Configuring the PPPoE Intermediate Agent Troubleshooting Tips

Page 1007 of the Cisco Systems 4500 user manual — About Web-Based Authentication
Page 1007 · click to enlarge
Page 1007

C H A P T E R

Configuring Web-Based Authentication

This chapter describes how to configure web-based authentication. It consists of these sections:

  • About Web-Based Authentication, page 42-1
  • Configuring Web-Based Authentication, page 42-6
  • Displaying Web-Based Authentication Status, page 42-14

Note For complete syntax and usage information for the switch commands used in this chapter, look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Web-Based Authentication

The web-based authentication feature, known as Web Authentication Proxy, enables you to authenticate end users on host systems that do not run the IEEE 802.1X supplicant.

When you initiate an HTTP session, web-based authentication intercepts ingress HTTP packets from the host and sends an HTML login page to the user. The user keys in their credentials, which the web-based authentication feature sends to the AAA server for authentication:

  • If authentication succeeds, web-based authentication sends a Login-Successful HTML page to the host and applies the access policies returned by the AAA server.
  • If authentication fails, web-based authentication forwards a Login-Fail HTML page to the user, prompting the user to retry the login. If the user exceeds the maximum number of attempts, web-based authentication forwards a Login-Expired HTML page to the host and the user is placed on a watch list for a waiting period.
Page 1008 of the Cisco Systems 4500 user manual — Host Detection
Page 1008 · click to enlarge
Page 1008

Chapter 42 Configuring Web-Based Authentication About Web-Based Authentication

These sections describe the role of web-based authentication as part of the authentication, authorization, and accounting (AAA) system:

  • Device Roles, page 42-2
  • Host Detection, page 42-2
  • Session Creation, page 42-3
  • Authentication Process, page 42-3
  • Customization of the Authentication Proxy Web Pages, page 42-4
  • Web-Based Authentication Interactions with Other Features, page 42-4

Device Roles

With web-based authentication, the devices in the network have specific roles (Figure 42-1).

Figure 42-1 Web-Based Authentication Device Roles

The roles are as follows:

  • Client —The device (workstation) that requests access to the LAN and switch services and responds to requests from the switch. The workstation must be running an HTML browser with Java Script enabled.
  • Authentication server —Performs the actual authentication of the client. The authentication server validates the identity of the client and notifies the switch that the client is authorized to access the LAN and switch services or that the client is denied.
  • Switch —Controls the physical access to the network based on the authentication status of the client. The switch acts as an intermediary (proxy) between the client and the authentication server, requesting identity information from the client, verifying that information with the authentication server, and relaying a response to the client.

Host Detection

The switch maintains an IP device tracking table to store information about detected hosts.

Show 6 more labels / short text on this page
Authentication · Catalyst switch · server (RADIUS) · or Cisco Router · Workstations · (clients)
Page 1009 of the Cisco Systems 4500 user manual — Authentication Process
Page 1009 · click to enlarge
Page 1009

Chapter 42 Configuring Web-Based Authentication

For Layer 3 interfaces, web-based authentication sets an HTTP intercept ACL when the feature is configured on the interface (or when the interface is put in service).

For Layer 2 interfaces, web-based authentication detects IP hosts using the following mechanisms:

  • ARP-based trigger—ARP redirect ACL allows web-based authentication to detect hosts with static IP address or dynamically acquired IP address.
  • Dynamic ARP inspection (DAI)
  • DHCP snooping—Web-based authentication is notified when the switch creates a DHCP binding entry for the host.

Session Creation

When web-based authentication detects a new host, it creates a session as follows:

  • Checks for Auth bypass

If the host IP is not on the exception list, web-based authentication sends a nonresponsive host (NRH) request to the server.

If the server response is Access Accepted, authorization is bypassed for this host. The session is established.

  • Sets up the HTTP Intercept ACL

If the server response to the NRH request is Access Rejected, the HTTP intercept ACL is activated and the session waits for HTTP traffic from the host.

Authentication Process

When you enable web-based authentication, the following events occur:

  • The user initiates an HTTP session.
  • The HTTP traffic is intercepted, and authorization is initiated. The switch sends the login page to the user. The user enters a username and password on the login page, and the switch sends the entries to the authentication server.
  • If the client identity is valid and the authentication succeeds, the switch downloads and activates the user’s access policy from the authentication server. The login success page is sent to the user.
  • If the authentication fails, the switch sends the login fail page. The user retries the login. If the maximum number of attempts fails, the switch sends the login expired page and the host is placed in a watch list. After the watch list times out, the user can retry the authentication process.
  • If the authentication server does not respond to the switch, and if an AAA fail policy is configured, the switch applies the failure access policy to the host. The login success page is sent to the user. See the “Customization of the Authentication Proxy Web Pages” section on page 42-4 .
  • The switch reauthenticates a client when the host does not respond to an ARP probe on a Layer 2 interface, or the host does not send any traffic within the idle timeout on a Layer 3 interface.
  • The feature applies the downloaded timeout or the locally configured session timeout.
  • If the terminate action is RADIUS, the feature sends a nonresponsive host (NRH) request to the server. The terminate action is included in the response from the server.
  • If the terminate action is default, the session is dismantled and the applied policy is removed.

About Web-Based Authentication

Page 1010 of the Cisco Systems 4500 user manual — Port Security
Page 1010 · click to enlarge
Page 1010

Chapter 42 Configuring Web-Based Authentication About Web-Based Authentication

Customization of the Authentication Proxy Web Pages

During the web-based authentication process, the internal HTTP server of the switch hosts four HTML pages for delivery to an authenticating client. The four pages allow the server to notify you of the following four states of the authentication process:

  • Login—Your credentials are requested.
  • Success—The login was successful.
  • Fail—The login failed.
  • Expire—The login session has expired because of excessive login failures.

In Cisco IOS Release 12.2(50)SG, you can substitute your custom HTML pages for the four default internal HTML pages, or you can specify a URL to which you are redirected upon successful authentication, effectively replacing the internal Success page.

Web-Based Authentication Interactions with Other Features

These sections describe web-based authentication interactions with these features:

  • Port Security, page 42-4
  • LAN Port IP, page 42-5
  • Gateway IP, page 42-5
  • ACLs, page 42-5
  • Context-Based Access Control, page 42-5
  • 802.1X Authentication, page 42-5
  • EtherChannel, page 42-5
  • Switchover, page 42-5

Port Security

You can configure web-based authentication and port security on the same port. (You configure port security on the port with the switchport port-security interface configuration command.) When you enable port security and web-based authentication on a port, web-based authentication authenticates the port, and port security manages network access for all MAC addresses, including that of the client. You can then limit the number or group of clients that can access the network using the port.

For more information about enabling port security, see Chapter 43, “Configuring Port Security.”

Page 1011 of the Cisco Systems 4500 user manual — Switchover
Page 1011 · click to enlarge
Page 1011

Chapter 42 Configuring Web-Based Authentication

LAN Port IP

You can configure LAN port IP (LPIP) and Layer 2 web-based authentication on the same port. The host is authenticated using web-based authentication first, followed by LPIP posture validation. The LPIP host policy overrides the web-based authentication host policy.

If the web-based authentication idle timer expires, the NAC policy is removed. The host is authenticated and posture is validated again.

Gateway IP

You cannot configure Gateway IP on a Layer 3 VLAN interface if web-based authentication is configured on any of the switch ports in the VLAN.

You can configure web-based authentication on the same Layer 3 interface as Gateway IP. The host policies for both features are applied in software. The GWIP policy overrides the web-based authentication host policy.

ACLs

If you configure a VLAN ACL or Cisco IOS ACL on an interface, the ACL is applied to the host traffic only after the web-based authentication host policy is applied.

For Layer 2 web-based authentication, you must configure a port ACL (PACL) as the default access policy for ingress traffic from hosts connected to the port. After authentication, the web-based authentication host policy overrides the PACL.

You cannot configure a MAC ACL and web-based authentication on the same interface.

You cannot configure web-based authentication on a port whose access VLAN is configured for VACL capture.

Context-Based Access Control

Web-based authentication cannot be configured on a Layer 2 port if context-based access control (CBAC) is configured on the Layer 3 VLAN interface of the port’s VLAN.

802.1X Authentication

You cannot configure web-based authentication on the same port as 802.1X authentication except as a fallback authentication method.

EtherChannel

You can configure web-based authentication on a Layer 2 EtherChannel interface. The web-based authentication configuration applies to all member channels.

Switchover

On Catalyst 4500 series switches with redundant supervisor engines in RPR mode, information about currently authenticated hosts is maintained during a switchover. You do not need to reauthenticate.

About Web-Based Authentication

Page 1012 of the Cisco Systems 4500 user manual — Web-Based Authentication Configuration Guidelines and Restrictions
Page 1012 · click to enlarge
Page 1012

Chapter 42 Configuring Web-Based Authentication Configuring Web-Based Authentication

Configuring Web-Based Authentication

These sections describe how to configure web-based authentication:

  • Default Web-Based Authentication Configuration, page 42-6
  • Web-Based Authentication Configuration Guidelines and Restrictions, page 42-6
  • Web-Based Authentication Configuration Task List, page 42-7
  • Configuring the Authentication Rule and Interfaces, page 42-7
  • Configuring AAA Authentication, page 42-9
  • Configuring Switch-to-RADIUS-Server Communication, page 42-9
  • Configuring the HTTP Server, page 42-11
  • Configuring the Web-Based Authentication Parameters, page 42-13
  • Removing Web-Based Authentication Cache Entries, page 42-14

Default Web-Based Authentication Configuration

Table 42-1 shows the default web-based authentication configuration.

Table 42-1 Default Web-based Authentication Configuration

Feature Default Setting

  • IP address
  • None specified
  • UDP authentication port
  • 1812
  • Key
  • None specified

Default value of inactivity timeout 3600 seconds

Web-Based Authentication Configuration Guidelines and Restrictions

When configuring web-based authentication, consider these guidelines and restrictions:

  • Web authentication requires two Cisco Attribute-Value (AV) pair attributes:

The first attribute, priv-lvl=15, must always be set to 15. This sets the privilege level of the user who is logging into the switch.

The second attribute is an access list to be applied for web-authenticated hosts. The syntax is similar to 802.1x per-user access control lists (ACLs). However, instead of ip:inacl, this attribute must begin with proxyacl, and the source field in each entry must be any. (After authentication, the client IP address replaces the any field when the ACL is applied.)

For example:

proxyacl# 10=permit ip any 10.0.0.0 255.0.0.0 proxyacl# 20=permit ip any 11.1.0.0 255.255.0.0 proxyacl# 30=permit udp any any eq syslog

AAA Disabled · RADIUS server · Inactivity timeout Enabled

Page 1013 of the Cisco Systems 4500 user manual — Configuring the Authentication Rule and Interfaces
Page 1013 · click to enlarge
Page 1013

Chapter 42 Configuring Web-Based Authentication

proxyacl# 40=permit udp any any eq tftp

  • Web-based authentication is an ingress-only feature.
  • You can configure web-based authentication only on access ports. Web-based authentication is not supported on trunk ports, EtherChannel member ports, or dynamic trunk ports.
  • You must configure the default ACL on the interface before configuring web-based authentication. Configure a port ACL for a Layer 2 interface, or a Cisco IOS ACL for a Layer 3 interface.
  • On Layer 2 interfaces, you cannot authenticate hosts with static ARP cache assignment. These hosts are not detected by the web-based authentication feature, because they do not send ARP messages.
  • By default, the IP device tracking feature is disabled on a switch. You must enable the IP device tracking feature to use web-based authentication.
  • You must configure at least one IP address to run the HTTP server on the switch. You must also configure routes to reach each host IP address. The HTTP server sends the HTTP login page to the host.
  • Hosts that are more than one hop away may experience traffic disruption if an STP topology change results in the host traffic arriving on a different port. it is because ARP and DHCP updates may not be sent after a Layer 2 (STP) topology change.
  • Web-based authentication does not support VLAN assignment as a downloadable host policy.
  • Cisco IOS Release 12.2(50)SG supports downloadable ACLs (DACLs) from the RADIUS server.
  • Web-based authentication is not supported for IPv6 traffic.

Web-Based Authentication Configuration Task List

To configure the web-based authentication feature, perform the following tasks:

  • Configuring the Authentication Rule and Interfaces, page 42-7
  • Configuring AAA Authentication, page 42-9
  • Configuring Switch-to-RADIUS-Server Communication, page 42-9
  • Configuring the HTTP Server, page 42-11
  • Configuring the Web-Based Authentication Parameters, page 42-13
  • Removing Web-Based Authentication Cache Entries, page 42-14

Configuring the Authentication Rule and Interfaces

To configure web-based authentication, perform this task:

Step 1 Switch(config)# ip admission name name proxy http Configures an authentication rule for web-based

authorization.

Switch(config)# no ip admission name name Removes the authentication rule.

Configuring Web-Based Authentication

Page 1014 of the Cisco Systems 4500 user manual — Configuring Web-Based Authentication
Page 1014 · click to enlarge
Page 1014

Chapter 42 Configuring Web-Based Authentication Configuring Web-Based Authentication

Step 2 Switch(config)# interface type slot/port Enters interface configuration mode and specifies the ingress Layer 2 or Layer 3 interface to be enabled for web-based authentication.

type can be fastethernet, gigabit ethernet, or tengigabitethernet

Step 3 Switch(config-if)# ip access-group name Applies the default ACL.

Step 4 Switch(config-if)# ip admission name Configures web-based authentication on the specified interface.

Step 5 Switch(config-if)# exit Returns to configuration mode.

Step 6 Switch(config)# ip device tracking Enables the IP device tracking table.

Step 7 Switch(config)# ip device tracking [probe {count count | interval interval}]

(Optional) Configures these parameters for the IP device tracking table:

  • count— Number of times that the switch sends the ARP probe. The range is 1 to 5. The default is 3.
  • interval— Number of seconds that the switch waits for a response before resending the ARP probe. The range is 30 to 300 seconds. The default is 30 seconds.

Step 8 Switch(config)# ip device tracking [probe {delay interval}]

(Optional) Configures the optional probe delay parameter for the IP device tracking table:

  • interval —Number of seconds that the switch delays sending an ARP probe, triggered by link-up and ARP probe generation by the tracked device. The range is 1 to 120 seconds. The default is 0 seconds.

Step 9 Switch(config)# end Returns to privileged EXEC mode.

Step 10 Switch# show ip admission configuration Displays the configuration.

This example shows how to enable web-based authentication on Fast Ethernet port 5/1:

Switch(config)# ip admission name webauth1 proxy http Switch(config)# interface fastethernet 5/1 Switch(config-if)# ip admission webauth1 Switch(config-if)# exit Switch(config)# ip device tracking

This example shows how to verify the configuration:

Switch# show ip admission configuration Authentication Proxy Banner not configured Authentication global cache time is 60 minutes Authentication global absolute time is 0 minutes Authentication global init state time is 2 minutes Authentication Proxy Watch-list is disabled

Authentication Proxy Rule Configuration Auth-proxy name webauth1 http list not specified inactivity-time 60 minutes

Authentication Proxy Auditing is disabled Max Login attempts per user is 5

Page 1015 of the Cisco Systems 4500 user manual — Configuring Switch-to-RADIUS-Server Communication
Page 1015 · click to enlarge
Page 1015

Chapter 42 Configuring Web-Based Authentication

Configuring AAA Authentication

To enable web-based authentication, perform this task:

Step 1 Switch(config)# aaa new-model Enables AAA functionality.

Switch(config)# no aaa new-model Disables AAA functionality.

Step 2 Switch(config)# aaa authentication login default group {tacacs+ | radius}

Defines the list of authentication methods at login.

Step 3 Switch(config)# aaa authorization auth-proxy default group {tacacs+ | radius}

Creates an authorization method list for web-based authorization.

Switch(config)# no aaa authorization auth-proxy default group {tacacs+ | radius}

Clears the configured method list.

Step 4 Switch(config)# tacacs-server host {hostname | ip_address}

Specifies an AAA server. For RADIUS servers, see the section “Configuring Switch-to-RADIUS-Server Communication” section on page 42-9.

Step 5 Switch(config)# tacacs-server key {key-data} Configures the authorization and encryption key used between the switch and the TACACS server.

This example shows how to enable AAA:

Switch(config)# aaa new-model Switch(config)# aaa authentication login default group tacacs+ Switch(config)# aaa authorization auth-proxy default group tacacs+

Configuring Switch-to-RADIUS-Server Communication

RADIUS security servers are identified by one of the following:

  • Host name
  • Host IP address
  • Host name and specific UDP port numbers
  • IP address and specific UDP port numbers

The combination of the IP address and UDP port number creates a unique identifier, which enables RADIUS requests to be sent to multiple UDP ports on a server at the same IP address. If two different host entries on the same RADIUS server are configured for the same service (for example, authentication) the second host entry that is configured functions as the failover backup to the first one. The RADIUS host entries are chosen in the order that they were configured.

To configure the RADIUS server parameters, perform this task:

Step 1 Switch(config)# ip radius source-interface interface_name

Specifies that the RADIUS packets have the IP address of the indicated interface.

Switch(config)# no ip radius source-interface Prevents the RADIUS packets from having the IP address of the previously indicated interface.

Configuring Web-Based Authentication

Page 1016 of the Cisco Systems 4500 user manual — Configuring Web-Based Authentication
Page 1016 · click to enlarge
Page 1016

Chapter 42 Configuring Web-Based Authentication Configuring Web-Based Authentication

Step 2 Switch(config)# radius-server host {hostname | ip-address} test username username

Specifies the host name or IP address of the remote RADIUS server.

The test username username option enables automated testing of the RADIUS server connection. The specified username does not need to be a valid user name.

The key option specifies an authentication and encryption key to be used between the switch and the RADIUS server.

To use multiple RADIUS servers, reenter this command.

Switch(config)# no radius-server host {hostname | ip-address}

Deletes the specified RADIUS server.

Step 3 Switch(config)# radius-server key string Configures the authorization and encryption key used between the switch and the RADIUS daemon running on the RADIUS server.

Step 4 Switch(config)# radius-server vsa send authentication

Enables downloading of an ACL from the RADIUS server. This feature is supported in Cisco IOS Release 12.2(50)SG.

Step 5 Switch(config)# radius-server dead-criteria tries num-tries

Specifies the number of unanswered transmits to a RADIUS server before considering the server to be inactive. The range of num-tries is 1 to 100.

When you configure the RADIUS server parameters, follow these steps:

  • Specify the key string on a separate command line.
  • For key string , specify the authentication and encryption key used between the switch and the RADIUS daemon running on the RADIUS server. The key is a text string that must match the encryption key used on the RADIUS server.
  • When you specify the key string , use spaces within and at the end of the key. If you use spaces in the key, do not enclose the key in quotation marks unless the quotation marks are part of the key. This key must match the encryption used on the RADIUS daemon.
  • You can globally configure the timeout, retransmission, and encryption key values for all RADIUS servers with the radius-server host global configuration command. If you want to configure these options on a per-server basis, use the radius-server timeout , radius-server retransmit , and the radius-server key global configuration commands. For more information, see the Cisco IOS Security Configuration Guide , Release 12.2, publication and the Cisco IOS Security Command Reference , Release 12.2, publication at this URL:

http://www.cisco.com/en/US/products/ps6586/products_ios_technology_home.html

Page 1017 of the Cisco Systems 4500 user manual — Customizing the Authentication Proxy Web Pages
Page 1017 · click to enlarge
Page 1017

Chapter 42 Configuring Web-Based Authentication

This example shows how to configure the RADIUS server parameters on a switch:

Switch(config)# ip radius source-interface Vlan80 Switch(config)# radius-server host 172.l20.39.46 test username user1 Switch(config)# radius-server key rad123 Switch(config)# radius-server dead-criteria tries 2

Configuring the HTTP Server

To use web-based authentication, you must enable the HTTP server within the switch. You can enable the server for either HTTP or HTTPS.

To enable the server, perform one of these tasks:

Switch(config)# ip http server Enables the HTTP server. The web-based authentication feature uses the HTTP server to communicate with the hosts for user authentication.

Switch(config)# ip http secure-server Enables HTTPS.

Starting with Cisco IOS Release 12.2(50)SG, you can optionally configure custom authentication proxy web pages or specify a redirection URL for successful login, as described in the following sections:

  • Customizing the Authentication Proxy Web Pages, page 42-11
  • Specifying a Redirection URL for Successful Login, page 42-13

Customizing the Authentication Proxy Web Pages

With Cisco IOS Release 12.2(50)SG, you have the option to display four substitute HTML pages to the user in place of the switch’s internal default HTML pages during web-based authentication.

To specify the use of your custom authentication proxy web pages, first store your custom HTML files on the switch’s internal disk or flash memory, then perform this task in global configuration mode:

Step 1 Switch(config)# ip admission proxy http login page file device:login-filename

Specifies the location in the switch memory file system of the custom HTML file to use in place of the default login page. The device: is either disk or flash memory, such as disk0:.

Step 2 Switch(config)# ip admission proxy http success page file device:success-filename

Specifies the location of the custom HTML file to use in place of the default login success page.

Step 3 Switch(config)# ip admission proxy http failure page file device:fail-filename

Specifies the location of the custom HTML file to use in place of the default login failure page.

Step 4 Switch(config)# ip admission proxy http login expired page file device:expired-filename

Specifies the location of the custom HTML file to use in place of the default login expired page.

Configuring Web-Based Authentication

Page 1018 of the Cisco Systems 4500 user manual — Configuring Web-Based Authentication
Page 1018 · click to enlarge
Page 1018

Chapter 42 Configuring Web-Based Authentication Configuring Web-Based Authentication

When configuring customized authentication proxy web pages, observe the following guidelines:

  • To enable the custom web pages feature, specify all four custom HTML files. If you specify fewer than four files, the internal default HTML pages are used.
  • The four custom HTML files must be present on the disk or flash of the switch. The maximum size of each HTML file is 8 KB.
  • Any images on the custom pages must be located on an accessible HTTP server. An intercept ACL must be configured within the admission rule to allow access to the HTTP server.
  • Any external link from a custom page requires configuration of an intercept ACL within the admission rule.
  • Any name resolution required for external links or images requires configuration of an intercept ACL within the admission rule to access a valid DNS server.
  • If the custom web pages feature is enabled, a configured auth-proxy-banner is not used.
  • If the custom web pages feature is enabled, the redirection URL for successful login feature is not available.
  • To remove the specification of a custom file, use the no form of the command.

Because the custom login page is a public web form, consider the following guidelines for this page:

  • The login form must accept user input for the username and password and must POST the data as uname and pwd .
  • The custom login page should follow best practices for a web form, such as page timeout, hidden password, and prevention of redundant submissions.

The following example shows how to configure custom authentication proxy web pages:

Switch(config)# ip admission proxy http login page file disk1:login.htm Switch(config)# ip admission proxy http success page file disk1:success.htm Switch(config)# ip admission proxy http fail page file disk1:fail.htm Switch(config)# ip admission proxy http login expired page file disk1:expired.htm

The following example shows how to verify the configuration of custom authentication proxy web pages:

Switch# show ip admission configuration

Authentication proxy webpage Login pagedisk1:login.htm Success page : disk1:success.htm Fail Page : disk1:fail.htm Login expired Page : disk1:expired.htm

Authentication global cache time is 60 minutes Authentication global absolute time is 0 minutes Authentication global init state time is 2 minutes Authentication Proxy Session ratelimit is 100 Authentication Proxy Watch-list is disabled Authentication Proxy Auditing is disabled Max Login attempts per user is 5

Page 1019 of the Cisco Systems 4500 user manual — Configuring the Web-Based Authentication Parameters
Page 1019 · click to enlarge
Page 1019

Chapter 42 Configuring Web-Based Authentication

Specifying a Redirection URL for Successful Login

With Cisco IOS Release 12.2(50)SG, you have the option to specify a URL to which the user is redirected upon successful authentication, effectively replacing the internal Success HTML page.

To specify a redirection URL for successful login, perform this task:

Switch(config)# ip admission proxy http success redirect url-string

Specifies a URL for redirection of the user in place of the default login success page.

When configuring a redirection URL for successful login, consider the following guidelines:

  • If the custom authentication proxy web pages feature is enabled, the redirection URL feature is disabled and is not available in the CLI. You can perform redirection in the custom login success page.
  • If the redirection URL feature is enabled, a configured auth-proxy-banner is not used.
  • To remove the specification of a redirection URL, use the no form of the command.

The following example shows how to configure a redirection URL for successful login:

Switch(config)# ip admission proxy http success redirect www.cisco.com

The following example shows how to verify the redirection URL for successful login:

Switch# show ip admission configuration

Authentication Proxy Banner not configured Customizable Authentication Proxy webpage not configured HTTP Authentication success redirect to URL: http://www.cisco.com Authentication global cache time is 60 minutes Authentication global absolute time is 0 minutes Authentication global init state time is 2 minutes Authentication Proxy Watch-list is disabled Authentication Proxy Max HTTP process is 7 Authentication Proxy Auditing is disabled Max Login attempts per user is 5

Configuring the Web-Based Authentication Parameters

You can configure the maximum number of failed login attempts allowed before the client is placed in a watch list for a waiting period.

To configure the web-based authentication parameters, perform this task:

Step 1 Switch(config)# ip admission max-login-attempts number

Sets the maximum number of failed login attempts. The default is 5.

Step 2 Switch(config)# end Returns to privileged EXEC mode.

Configuring Web-Based Authentication

Page 1020 of the Cisco Systems 4500 user manual — Displaying Web-Based Authentication Status
Page 1020 · click to enlarge
Page 1020

Chapter 42 Configuring Web-Based Authentication Displaying Web-Based Authentication Status

Step 3 Switch# show ip admission configuration Displays the authentication proxy configuration.

Step 4 Switch# show ip admission cache Displays the list of authentication entries.

This example shows how to set the maximum number of failed login attempts to 10:

Switch(config)# ip admission max-login-attempts 10

Removing Web-Based Authentication Cache Entries

To delete existing session entries, perform either of these tasks:

Switch# clear ip auth-proxy cache {* | host ip address}

Deletes authentication proxy entries. Use an asterisk to delete all cache entries. Enter a specific IP address to delete the entry for a single host.

Switch# clear ip admission cache {* | host ip address}

Deletes authentication proxy entries. Use an asterisk to delete all cache entries. Enter a specific IP address to delete the entry for a single host.

This example shows how to remove the web-based authentication session for the client at IP address 209.165.201.1:

Switch# clear ip auth-proxy cache 209.165.201.1

Displaying Web-Based Authentication Status

To display the web-based authentication settings for all interfaces or for specific ports, perform this task:

Switch# show authentication sessions [interface type slot/port]

Displays the web-based authentication settings.

type = fastethernet, gigabitethernet, or tengigabitethernet

(Optional) Use the interface keyword to display the web-based authentication settings for a specific interface.

This example shows how to view only the global web-based authentication status:

Switch# show authentication sessions

This example shows how to view the web-based authentication settings for interface Gi 3/27:

Switch# show authentication sessions interface gigabitethernet 3/27

Page 1021 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1021 · click to enlarge
Page 1021

C H A P T E R

Configuring Port Security

This chapter describes how to configure port security on the Catalyst 4500 series switch. It provides an overview of port security on the Catalyst 4500 series switch and details the configuration on various types of ports such as access, voice, trunk, and private VLAN (PVLAN).

This chapter consists of these sections:

  • Port Security Commands, page 43-2
  • About Port Security, page 43-3
  • Configuring Port Security on Access Ports, page 43-7
  • Configuring Port Security on PVLAN Ports, page 43-14
  • Configuring Port Security on Trunk Ports, page 43-17
  • Configuring Port Security on Voice Ports, page 43-22
  • Displaying Port Security Settings, page 43-27
  • Configuring Port Security with Other Features/Environments, page 43-31
  • Port Security Configuration Guidelines and Restrictions, page 43-33

Note For complete syntax and usage information for the switch commands used in this chapter, see the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Cisco Catalyst 4500 Command Reference, you can locate it in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Page 1022 of the Cisco Systems 4500 user manual — switchport port-security limit rate invalid-source-mac
Page 1022 · click to enlarge
Page 1022

Chapter 43 Configuring Port Security Port Security Commands

Port Security Commands

This table lists the commands most commonly used with port security.

Command Purpose Navigation

errdisable recovery cause psecure-violation

Brings a secure port out of error-disabled state.

Violation Actions, page 43-6

errdisable recovery interval Customizes the time to recover from a specified error disable cause.

Violation Actions, page 43-6

port-security mac-address Configures all secure MAC addresses on each VLAN.

Secure MAC Addresses, page 43-4

port-security maximum Configures a maximum number of MAC addresses on an interface.

Configuring Port Security on Access Ports, page 43-7

private-vlan association add Creates an association between a secondary VLAN and a primary VLAN.

Example of Port Security on an Isolated Private VLAN Host Port, page 43-16

private-vlan isolated Designates the VLAN as a private VLAN.

Configuring Port Security on an Isolated Private VLAN Host Port, page 43-14

private-vlan primary Specifies the VLAN as the primary private VLAN.

Configuring Port Security on an Isolated Private VLAN Host Port, page 43-14

switchport mode private-vlan host Specifies that ports with valid private VLAN trunk association become active host private VLAN trunk ports.

Configuring Port Security on an Isolated Private VLAN Host Port, page 43-14

switchport private-vlan host-association

Defines a host association on an isolated host port.

Configuring Port Security on an Isolated Private VLAN Host Port, page 43-14

switchport private-vlan mapping Defines a private VLAN for the promiscuous ports.

Configuring Port Security on an Isolated Private VLAN Host Port, page 43-14

switchport port-security Enables port security. Configuring Port Security on Access Ports, page 43-7

switchport port-security aging static Configures static aging of MAC address.

Aging Secure MAC Addresses, page 43-5

switchport port-security aging time Specifies an aging time for a port. Example 3: Setting the Aging Timer, page 43-11

switchport port-security limit rate invalid-source-mac

Sets the rate limit for bad packets. Example 7: Setting a Rate Limit for Bad Packets, page 43-13

switchport port-security mac-address Configures a secure MAC address for

Example 5Configuring a Secure MAC Address, page 43-12

an interface.

switchport port-security mac-address mac_address sticky

Specifies the sticky MAC address for an interface.

Configuring Port Security on Access Ports, page 43-7

Page 1023 of the Cisco Systems 4500 user manual — About Port Security
Page 1023 · click to enlarge
Page 1023

Chapter 43 Configuring Port Security

Command Purpose Navigation

switchport port-security mac-address sticky

Enables sticky Port Security. Sticky Addresses on a Port, page 43-5

no switchport port-security mac-address sticky

Converts a sticky secure MAC address to a dynamic MAC secure address.

Configuring Port Security on Access Ports, page 43-7

switchport port-security maximum Sets the maximum number of secure MAC addresses for an interface.

Example 1Setting Maximum Number of Secure Addresses, page 43-11

switchport port-security violation Sets the violation mode. Example 2: Setting a Violation Mode, page 43-11

no switchport port-security violation Sets the violation mode. Configuring Port Security on Access Ports, page 43-7

switchport trunk encapsulation dot1q Sets the encapsulation mode to

Example 1Configuring a Maximum Limit of Secure MAC Addresses for All VLANs, page 43-19

dot1q.

About Port Security

Port security enables you to restrict the number of MAC addresses (termed secure MAC addresses) on a port, allowing you to prevent access by unauthorized MAC addresses. It also allows you to configure a maximum number of secure MAC addresses on a given port (and optionally for a VLAN for trunk ports). When a secure port exceeds the maximum, a security violation is triggered, and a violation action is performed based on the violation action mode configured on the port.

If you configure the maximum number of secure MAC addresses as 1 on the port, the device attached to the secure port is assured sole access to the port.

If a secure MAC address is secured on a port, that MAC address is not allowed to enter on any other port off that VLAN. If it does, the packet is dropped unnoticed in the hardware. Other than using the interface or port counters, you do not receive a log message reflecting this fact. Be aware that this condition does not trigger a violation. Dropping these packets in the hardware is more efficient and can be done without putting additional load on the CPU.

Port security has the following characteristics:

  • It allows you to age out secure MAC addresses. Two types of aging are supported: inactivity and absolute.
  • It supports a sticky feature whereby the secure MAC addresses on a port are retained through switch reboots and link flaps.
  • It can be configured on various types of ports such as access, voice, trunk, EtherChannel, and private VLAN ports.

This overview contains the following topics:

  • Secure MAC Addresses, page 43-4
  • Maximum Number of Secure MAC Addresses, page 43-4
  • Aging Secure MAC Addresses, page 43-5
  • Sticky Addresses on a Port, page 43-5
  • Violation Actions, page 43-6

About Port Security

Page 1024 of the Cisco Systems 4500 user manual — Maximum Number of Secure MAC Addresses
Page 1024 · click to enlarge
Page 1024

Chapter 43 Configuring Port Security About Port Security

Secure MAC Addresses

Port security supports the following types of secure MAC addresses:

  • Dynamic or Learned—Dynamic secure MAC addresses are learned when packets are received from the host on the secure port. You might want to use this type if the user’s MAC address is not fixed (laptop).
  • Static or configured—Static secure MAC addresses are configured by the user through CLI or SNMP. You might want to use this type if your MAC address remains fixed (PC).
  • Sticky—Sticky addresses are learned such as dynamic secure MAC addresses, but persist through switch reboots and link flaps such as static secure MAC addresses. You might want to use this type if a large number of fixed MAC addresses exist and you do not want to configure MAC addresses manually (100 PCs secured on their own ports).

If a port has reached its maximum number of secure MAC addresses and you try to configure a static secure MAC address, your configuration is rejected and an error message displays. If a port has reached its maximum number of secure MAC addresses and a new dynamic secure MAC address is added, a violation action is triggered.

You can clear dynamic secure MAC addresses with the clear port-security command. You can clear sticky and static secure MAC addresses one at a time with the no form of the switchport port-security mac-address command.

Maximum Number of Secure MAC Addresses

A secure port has a default of one MAC address. You can change the default to any value between 1 and 3,000. The upper limit of 3,000 guarantees one MAC address per-port and an additional 3,000 across all ports in the system.

After you have set the maximum number of secure MAC addresses on a port, you can include the secure addresses in an address table in one of the following ways:

  • You can configure the secure MAC addresses with the switchport port-security mac-address mac_address interface configuration command.
  • You can configure all secure MAC addresses on a range of VLANs with the port-security mac-address VLAN range configuration command for trunk ports.
  • You can allow the port to dynamically configure secure MAC addresses with the MAC addresses of connected devices.
  • You can configure some of the addresses and allow the rest to be dynamically configured.
  • You can configure MAC addresses to be sticky. These can be dynamically learned or manually configured, stored in the address table, and added to the running configuration. After these addresses are saved in the configuration file, the interface does not need to dynamically relearn them when the switch restarts. Although you can manually configure sticky secure addresses, this action is not recommended.
Page 1025 of the Cisco Systems 4500 user manual — Sticky Addresses on a Port
Page 1025 · click to enlarge
Page 1025

Chapter 43 Configuring Port Security

Note On a trunk port, a maximum number of secure MAC addresses can be configured on both the port and port VLAN. The port’s maximum value can be greater than or equal to the port VLAN maximum(s) but not less than the port VLAN maximum(s). If the port’s maximum value is less than at least one of the port VLAN’s maximum (for example, if we have max set to 3 on VLAN 10 while no “sw port max” is set (defaults to 1)), the port shuts down when dynamic adds reaches 2 on VLAN 10 (see “Port Security Configuration Guidelines and Restrictions” on page 33). The port VLAN maximum enforces the maximum allowed on a given port on a given VLAN. If the maximum is exceeded on a given VLAN but the port’s maximum is not exceeded, the port still shuts down. The entire port is shut down even if one of the VLANs on the port has actually caused the violation.

Aging Secure MAC Addresses

You might want to age secure MAC addresses when the switch may be receiving more than 3,000 MAC addresses ingress.

By default, port security does not age out the secure MAC addresses. After learned, the MAC addresses remain on the port until either the switch reboots or the link goes down (unless the sticky feature is enabled). However, port security does allow you to configure aging based on the absolute or inactivity mode and aging interval (in minutes, from 1 to n).

  • Absolute mode—Ages between n and n+1
  • Inactivity mode—Ages between n+1 and n+2

Use this feature to remove and add PCs on a secure port without manually deleting the existing secure MAC addresses, while still limiting the number of secure addresses on a port.

Unless static aging is explicitly configured with the switchport port-security aging static command, static addresses are not aged even if aging is configured on the port.

Sticky Addresses on a Port

By enabling sticky port security, you can configure an interface to convert the dynamic MAC addresses to sticky secure MAC addresses and to add them to the running configuration. You might want to do this if you do not expect the user to move to another port, and you want to avoid statically configuring a MAC address on every port.

To enable sticky port security, enter the switchport port-security mac-address sticky command. When you enter this command, the interface converts all the dynamic secure MAC addresses, including those that were dynamically learned before sticky learning was enabled, to sticky secure MAC addresses.

About Port Security

Page 1026 of the Cisco Systems 4500 user manual — Violation Actions
Page 1026 · click to enlarge
Page 1026

Chapter 43 Configuring Port Security About Port Security

The sticky secure MAC addresses do not automatically become part of the configuration file, which is the startup configuration used each time the switch restarts. If you save the running config file to the configuration file, the interface does not need to relearn these addresses when the switch restarts. If you do not save the configuration, they are lost.

If sticky port security is disabled, the sticky secure MAC addresses are converted to dynamic secure addresses and are removed from the running configuration.

After the maximum number of secure MAC addresses is configured, they are stored in an address table. To ensure that an attached device has sole access of the port, configure the MAC address of the attached device and set the maximum number of addresses to one, which is the default.

A security violation occurs if the maximum number of secure MAC addresses to a port has been added to the address table and a workstation whose MAC address is not in the address table attempts to access the interface.

Violation Actions

A security violation is triggered when the number of secure MAC addresses on the port exceeds the maximum number of secure MAC addresses allowed on the port.

You can configure the interface for one of following violation modes, which are based on the response to the violation:

  • Restrict—A port security violation restricts data (that is, packets are dropped in software), causes the SecurityViolation counter to increment, and causes an SNMP Notification to be generated. You might want to configure this mode in order to provide uninterrupted service/access on a secure port.

The rate at which SNMP traps are generated can be controlled by the snmp-server enable traps port-security trap-rate command. The default value (“0”) causes an SNMP trap to be generated for every security violation.

  • Shutdown—A port security violation causes the interface to shut down immediately. You might want to configure this mode in a highly secure environment, where you do not want unsecured MAC addresses to be denied in software and service interruption is not an issue.
  • Shutdown VLAN—Use to set the security violation mode for each VLAN. In this mode, the offending VLAN is error disabled instead of the entire port when a violation occurs.

When a secure port is in the error-disabled state, you can bring it out of this state automatically by configuring the errdisable recovery cause psecure-violation global configuration command or you can manually reenable it by entering the shutdown and no shut down interface configuration commands. it is the default mode. If a port is in per-VLAN errdisable mode, you can also use clear errdisable interface name vlan range command to reenable the VLAN on the port.

You can also customize the time to recover from the specified error disable cause (default is 300 seconds) by entering the errdisable recovery interval interval command.

Page 1027 of the Cisco Systems 4500 user manual — Configuring Port Security on Access Ports
Page 1027 · click to enlarge
Page 1027

Chapter 43 Configuring Port Security

Configuring Port Security on Access Ports

Invalid Packet Handling

You might want to rate limit invalid source MAC address packets on a secure port if you anticipate that a device will send invalid packets (such as traffic generator, sniffer, and bad NICs).

The port security feature considers the following as “invalid frames”:

– Packets with a source or destination MAC address that is all zero

– Packets with a multicast or broadcast source MAC address

– Packets from an address either learned or configured on a secure interface that are observed on another secure interface in the same VLAN

You can chose to rate limit these packets. If the rate is exceeded, you can trigger a violation action for the port.

Configuring Port Security on Access Ports

These sections describe how to configure port security:

  • Configuring Port Security on Access Ports, page 43-7
  • Examples of Port Security on Access Ports, page 43-10

Configuring Port Security on Access Ports

To restrict traffic through a port by limiting and identifying MAC addresses of the stations allowed to the port, perform this task:

Step 1 Switch(config)# interface interface_id interface port-channel port_channel_number

Enters interface configuration mode and specifies the interface to configure.

Step 2 Switch(config-if)# switchport mode access Sets the interface mode.

Step 3 Switch(config-if)# [no] switchport port-security Enables port security on the interface.

To return the interface to the default condition as not secured, use the no switchport port-security command.

Page 1028 of the Cisco Systems 4500 user manual — Configuring Port Security
Page 1028 · click to enlarge
Page 1028

Chapter 43 Configuring Port Security Configuring Port Security on Access Ports

Step 4 Switch(config-if)# [no] switchport port-security maximum value

(Optional) Sets the maximum number of secure MAC addresses for the interface. The range is 1 to 3072; the default is 1.

To return the interface to the default number of secure MAC addresses, use the no switchport port-security maximum value.

Step 5 Switch(config-if)# switchport port-security [aging {static | time aging_time | type {absolute | inactivity}]

Sets the aging time and aging type for all secure addresses on a port.

Use this feature to remove and add PCs on a secure port without manually deleting the existing secure MAC addresses while still limiting the number of secure addresses on a port.

The static keyword enables aging for statically configured secure addresses on this port.

The time aging_time value specifies the aging time for this port. Valid range for aging_time is from 0 to 1440 minutes. If the time is equal to 0, aging is disabled for this port.

The type keyword sets the aging type as absolute or inactive.

  • absolute —All the secure addresses on this port ago out exactly after the time (minutes) specified and are removed from the secure address list.
  • inactive —The secure addresses on this port age out only if there is no data traffic from the secure source address for the specified time period.

To disable port security aging for all secure addresses on a port, use the no switchport port-security aging time interface configuration command.

Page 1029 of the Cisco Systems 4500 user manual — Configuring Port Security
Page 1029 · click to enlarge
Page 1029

Chapter 43 Configuring Port Security

Configuring Port Security on Access Ports

Step 6 Switch(config-if)# [no] switchport port-security violation {restrict | shutdown | shutdown vlan}

(Optional) Sets the violation mode, the action to be taken when a security violation is detected, as one of these:

  • restrict —A port security violation restricts data and causes the SecurityViolation counter to increment and send an SNMP trap notification.
  • shutdown —The interface is error-disabled when a security violation occurs.
  • shutdown vlan —Use to set the security violation mode for each VLAN. In this mode, the VLAN is error-disabled instead of the entire port when a violation occurs.

To return the violation mode to the default condition (shutdown mode), use the no switchport port-security violation shutdown command.

Step 7 Switch(config-if)# switchport port-security limit rate invalid-source-mac packets_per_sec

Sets the rate limit for bad packets.

Default is 10 pps.

Step 8 Switch(config-if)# [no] switchport port-security mac-address mac_address

(Optional) Enters a secure MAC address for the interface. You can use this command to configure a secure MAC addresses. If you configure fewer secure MAC addresses than the maximum, the remaining MAC addresses are dynamically learned.

To delete a MAC address from the address table, use the no switchport port-security mac-address mac_address command.

Step 9 Switch(config-if)# [no] switchport port-security mac-address sticky

(Optional) Enables sticky learning on the interface.

To disable sticky learning on an interface, use the no switchport port-security mac-address sticky command. The interface converts the sticky secure MAC addresses to dynamic secure addresses.

Page 1030 of the Cisco Systems 4500 user manual — Examples of Port Security on Access Ports
Page 1030 · click to enlarge
Page 1030

Chapter 43 Configuring Port Security Configuring Port Security on Access Ports

Step 10 Switch(config-if)# [no] switchport port-security mac-address mac_address sticky [vlan [voice | access]]

Specifies the sticky mac-address for the interface.

When you specify the vlan keyword, the mac-address becomes sticky in the specified VLAN.

To delete a sticky secure MAC addresses from the address table, use the no switchport port-security mac-address mac_address sticky command. To convert sticky to dynamic addresses, use the no switchport port-security mac-address sticky command.

Step 11 Switch(config-if)# end Returns to privileged EXEC mode.

Step 12 Switch# show port-security address interface interface_id Switch# show port-security address

Verifies your entries.

Note To clear dynamically learned port security MAC addresses in the CAM table, use the clear port-security dynamic command. The address keyword enables you to clear a secure MAC addresses. The interface keyword enables you to clear all secure addresses on any interface (including any port channel interface). The VLAN keyword allows you to clear port security MACs on a per-VLAN per-port basis.

Examples of Port Security on Access Ports

The following examples are provided:

  • Example 1: Setting Maximum Number of Secure Addresses, page 43-11
  • Example 2: Setting a Violation Mode, page 43-11
  • Example 3: Setting the Aging Timer, page 43-11
  • Example 4: Setting the Aging Timer Type, page 43-12
  • Example 5: Configuring a Secure MAC Address, page 43-12
  • Example 6: Configuring Sticky Port Security, page 43-13
  • Example 7: Setting a Rate Limit for Bad Packets, page 43-13
  • Example 8: Clearing Dynamic Secure MAC Addresses, page 43-14
Page 1031 of the Cisco Systems 4500 user manual — Example 3: Setting the Aging Timer
Page 1031 · click to enlarge
Page 1031

Chapter 43 Configuring Port Security

Configuring Port Security on Access Ports

Example 1: Setting Maximum Number of Secure Addresses

This example shows how to enable port security on the Fast Ethernet interface 3/12 and how to set the maximum number of secure addresses to 5. The violation mode is the default, and no secure MAC addresses are configured.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 3/12 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 5 Switch(config-if)# switchport port-security mac-address sticky Switch(config-if)# end Switch# show port-security interface fastethernet 3/12 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 0 mins Aging Type : Absolute SecureStatic Address Aging : Enabled Maximum MAC Addresses : 5 Total MAC Addresses : 0 Configured MAC Addresses : 0 Sticky MAC Addresses : 0 Last Source Address:Vlan : 0000.0000.0000:0 Security Violation Count : 0

Example 2: Setting a Violation Mode

This example shows how to set the violation mode on the Fast Ethernet interface 3/12 to restrict.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 3/12 Switch(config-if)# switchport port-security violation restrict Switch(config-if)# end Switch#

SNMP traps can be enabled with a rate-limit to detect port-security violations due to restrict mode. The following example shows how to enable traps for port-security with a rate of 5 traps per second:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# snmp-server enable traps port-security trap-rate 5 Switch(config)# end Switch#

Example 3: Setting the Aging Timer

This example shows how to set the aging time to 2 hours (120 minutes) for the secure addresses on the Fast Ethernet interface 5/1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/1 Switch(config-if)# switchport port-security aging time 120 Switch(config-if)# end Switch#

Page 1032 of the Cisco Systems 4500 user manual — Example 5: Configuring a Secure MAC Address
Page 1032 · click to enlarge
Page 1032

Chapter 43 Configuring Port Security Configuring Port Security on Access Ports

This example shows how to set the aging time to 2 minutes:

Switch(config-if)# switchport port-security aging time 2

You can verify the previous commands with the show port-security interface command.

Example 4: Setting the Aging Timer Type

This example shows how to set the aging timer type to Inactivity for the secure addresses on the Fast Ethernet interface 3/5:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 3/5 Switch(config-if)# switch port-security aging type inactivity Switch(config-if)# end Switch# show port-security interface fastethernet 3/5 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 0 mins Aging Type : Inactivity SecureStatic Address Aging : Disabled Maximum MAC Addresses : 1 Total MAC Addresses : 0 Configured MAC Addresses : 0 Sticky MAC Addresses : 0 Last Source Address:Vlan : 0000.0000.0000:0 Security Violation Count : 0

Example 5: Configuring a Secure MAC Address

This example shows how to configure a secure MAC address on Fast Ethernet interface 5/1 and to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 10 Switch(config-if)# switchport port-security mac-address 0000.0000.0003 (Static secure MAC) Switch(config-if)# end Switch# show port address Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age (mins) 1 0000.0000.0003 SecureConfigured Fa5/1 -

Total Addresses in System (excluding one mac per port) : 2 Max Addresses limit in System (excluding one mac per port) : 3072

Page 1033 of the Cisco Systems 4500 user manual — Example 7: Setting a Rate Limit for Bad Packets
Page 1033 · click to enlarge
Page 1033

Chapter 43 Configuring Port Security

Configuring Port Security on Access Ports

Example 6: Configuring Sticky Port Security

This example shows how to configure a sticky MAC address on Fast Ethernet interface 5/1 and to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fa5/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security mac-address sticky Switch(config-if)# switchport port-security maximum 5 Switch(config-if)# end

Switch# show port-security address Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age (mins) 1 0000.0000.0001 SecureSticky Fa5/1 - 1 0000.0000.0002 SecureSticky Fa5/1 - 1 0000.0000.0003 SecureSticky Fa5/1 - Total Addresses in System (excluding one mac per port) : 2 Max Addresses limit in System (excluding one mac per port) : 3072 Switch# show running-config interface fastEthernet 5/1 Building configuration...

Current configuration : 344 bytes ! interface FastEthernet5/1 switchport mode access switchport port-security switchport port-security maximum 5 switchport port-security mac-address sticky switchport port-security mac-address sticky 0000.0000.0001 switchport port-security mac-address sticky 0000.0000.0002 switchport port-security mac-address sticky 0000.0000.0003 end

Example 7: Setting a Rate Limit for Bad Packets

The following example shows how to configure rate limit for invalid source packets on Fast Ethernet interface 5/1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/1 Switch(config-if)# switchport port-security limit rate invalid-source-mac 100 Switch(config-if)# end Switch#

Switch#

Page 1034 of the Cisco Systems 4500 user manual — Configuring Port Security on an Isolated Private VLAN Host Port
Page 1034 · click to enlarge
Page 1034

Chapter 43 Configuring Port Security Configuring Port Security on PVLAN Ports

The following example shows how to configure rate limit for invalid source packets on Fast Ethernet interface 5/1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 5/1 Switch(config-if)# switchport port-security limit rate invalid-source-mac none Switch(config-if)# end Switch#

Example 8: Clearing Dynamic Secure MAC Addresses

The following example shows how to clear a dynamic secure MAC address:

Switch# clear port-security dynamic address 0000.0001.0001

The following example shows how to clear all dynamic secure MAC addresses on Fast Ethernet interface 2/1:

Switch# clear port-security dynamic interface fa2/1

The following example shows how to clear all dynamic secure MAC addresses in the system:

Switch# clear port-security dynamic

Configuring Port Security on PVLAN Ports

You can configure port security on a private VLAN port to take advantage of private VLAN functionality as well as to limit the number of MAC addresses.

These sections describe how to configure trunk port security on host and promiscuous ports:

  • Configuring Port Security on an Isolated Private VLAN Host Port, page 43-14
  • Example of Port Security on an Isolated Private VLAN Host Port, page 43-16
  • Configuring Port Security on a Private VLAN Promiscuous Port, page 43-16
  • Example of Port Security on a Private VLAN Promiscuous Port, page 43-17

Configuring Port Security on an Isolated Private VLAN Host Port

Figure 43-1 illustrates a typical topology for port security implemented on private VLAN host ports. In this topology, the PC connected through port a on the switch can communicate only with the router connected using the promiscuous port on the switch. The PC connected through port a cannot communicate with the PC connected through port b.

Page 1035 of the Cisco Systems 4500 user manual — PC PC
Page 1035 · click to enlarge
Page 1035

Chapter 43 Configuring Port Security

Configuring Port Security on PVLAN Ports

Figure 43-1 Port Security on Isolated Private VLAN Host Ports

Port security implemented on isolated VLAN host ports a and b

PC PC

To configure port security on an isolated private VLAN host port, perform this task:

Step 1 Switch# configure terminal Enter global configuration mode.

Step 2 Switch(config)# vlan sec_vlan_id Specifies a secondary VLAN.

Step 3 Switch(config-vlan)# private-vlan isolated Sets the private VLAN mode to isolated.

Step 4 Switch(config-vlan)# exit Returns to global configuration mode.

Step 5 Switch(config)# vlan pri_vlan_id Specifies a primary VLAN.

Step 6 Switch(config-vlan)# private-vlan primary Specifies the VLAN as the primary private VLAN.

Step 7 Switch(config-vlan)# private-vlan association add sec_vlan_id

Creates an association between a secondary VLAN and a primary VLAN.

Step 8 Switch(config-vlan)# exit Returns to global configuration mode.

Step 9 Switch(config)# interface interface_id Enters interface configuration mode and specifies the physical interface to configure.

Step 10 Switch(config-if)# switchport mode private-vlan host

Specifies that the ports with a valid private VLAN trunk association become active host private VLAN trunk ports.

Step 11 Switch(config-if)# switchport private-vlan host-association primary_vlan secondary_vlan

Establishes a host association on an isolated host port.

Step 12 Switch(config-if)# [no] switchport port-security Enables port security on the interface.

Step 13 Switch(config-if)# end Returns to privileged EXEC mode.

Step 14 Switch# show port-security address interface interface_id Switch# show port-security address

Verifies your entries.

Show 4 more labels / short text on this page
Router · Layer 2 switch · Promiscuous port · a b
Page 1036 of the Cisco Systems 4500 user manual — Configuring Port Security on a Private VLAN Promiscuous Port
Page 1036 · click to enlarge
Page 1036

Chapter 43 Configuring Port Security Configuring Port Security on PVLAN Ports

Example of Port Security on an Isolated Private VLAN Host Port

The following example shows how to configure port security on an isolated private VLAN host port, Fast Ethernet interface 3/12:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vlan 6 Switch(config-vlan)# private-vlan isolated Switch(config-vlan)# exit Switch(config)# vlan 3 Switch(config-vlan)# private-vlan primary Switch(config-vlan)# private-vlan association add 6 Switch(config-vlan)# exit Switch(config)# interface fastethernet 3/12 Switch(config-if)# switchport mode private-vlan host Switch(config-if)# switchport private-vlan association host 3 6 Switch(config-if)# switchport port-security Switch(config-if)# end

Configuring Port Security on a Private VLAN Promiscuous Port

To configure port security on a private VLAN promiscuous port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vlan sec_vlan_id Specifies the VLAN.

Step 3 Switch(config-vlan)# private-vlan isolated Sets the private VLAN mode to isolated.

Step 4 Switch(config-vlan)# exit Returns to global configuration mode.

Step 5 Switch(config)# vlan pri_vlan_id Specifies the VLAN.

Step 6 Switch(config-vlan)# private-vlan primary Designates the VLAN as the primary private VLAN.

Step 7 Switch(config-vlan)# private-vlan association add sec_vlan_id

Creates an association between a secondary VLAN and a primary VLAN.

Step 8 Switch(config-vlan)# exit Returns to global configuration mode.

Step 9 Switch(config)# interface interface_id Enters interface configuration mode and specifies the physical interface to configure.

Step 10 Switch(config-if)# switchport mode private-vlan promiscuous

Specifies that the ports with a valid PVLAN mapping become active promiscuous ports.

Step 11 Switch(config-if)# switchport private-vlan mapping primary_vlan secondary_vlan

Configures a private VLAN for the promiscuous ports.

Step 12 Switch(config-if)# switchport port-security Enables port security on the interface.

Step 13 Switch(config-if)# end Returns to privileged EXEC mode.

Step 14 Switch# show port-security address interface interface_id Switch# show port-security address

Verifies your entries.

Page 1037 of the Cisco Systems 4500 user manual — Configuring Trunk Port Security
Page 1037 · click to enlarge
Page 1037

Chapter 43 Configuring Port Security

Configuring Port Security on Trunk Ports

Example of Port Security on a Private VLAN Promiscuous Port

The following example shows how to configure port security on a private VLAN promiscuous port, Fast Ethernet interface 3/12:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# vlan 6 Switch(config-vlan)# private-vlan isolated Switch(config-vlan)# exit Switch(config)# vlan 3 Switch(config-vlan)# private-vlan primary Switch(config-vlan)# private-vlan association add 6 Switch(config-vlan)# exit Switch(config)# interface fastethernet 3/12 Switch(config-if)# switchport mode private-vlan promiscuous Switch(config-if)# switchport mode private-vlan mapping 3 6 Switch(config-if)# switchport port-security Switch(config-if)# end

Configuring Port Security on Trunk Ports

You might want to configure port security on trunk ports in metro aggregation to limit the number of MAC addresses per-VLAN. Trunk port security extends port security to trunk ports. It restricts the allowed MAC addresses or the maximum number of MAC addresses to individual VLANs on a trunk port. Trunk port security enables service providers to block the access from a station with a different MAC address than the ones specified for that VLAN on that trunk port. Trunk port security is also supported on private VLAN trunk ports.

These sections describe how to configure trunk port security:

  • Configuring Trunk Port Security, page 43-17
  • Examples of Trunk Port Security, page 43-19
  • Trunk Port Security Configuration Guidelines and Restrictions, page 43-21

Configuring Trunk Port Security

Trunk port security is used when a Catalyst 4500 series switch has a dot1q or isl trunk attached to a neighborhood Layer 2 switch. This may be used, for example, in metro aggregation networks (Figure 43-2).

Page 1038 of the Cisco Systems 4500 user manual — SVI 2 SV1 3
Page 1038 · click to enlarge
Page 1038

Chapter 43 Configuring Port Security Configuring Port Security on Trunk Ports

Figure 43-2 Trunk Port Security

Logical representation of switch

SVI 2 SV1 3

5/4 5/3 5/2 5/1

ISL or dot1q trunk

Metro Layer 2 switch

Access port in VLAN 2 Access port in VLAN 3

You can configure various port security related parameters on a per-port per-VLAN basis.

To configure port security related parameters on a per-VLAN per-port basis, perform this task:

Step 1 Switch(config)# interface interface_id interface port-channel port_channel_number

Enters interface configuration mode and specifies the interface to configure.

Step 2 Switch(config-if)# switchport trunk encapsulation dot1q

Sets the trunk encapsulation format to 802.1Q.

Step 3 Switch(config-if)# switchport mode trunk Sets the interface mode.

gi1/1

Page 1039 of the Cisco Systems 4500 user manual — Examples of Trunk Port Security
Page 1039 · click to enlarge
Page 1039

Chapter 43 Configuring Port Security

Configuring Port Security on Trunk Ports

Step 4 Switch(config-if)# switchport port-security maximum value vlan

Configures a maximum number of secure mac-addresses for each VLAN on the interface that are not explicitly configured with a maximum mac-address limit. See the “Maximum Number of Secure MAC Addresses” section on page 43-4.

Step 5 Switch(config-if)# vlan-range range Enters VLAN range sub-mode.

Step 6 Switch(config-if-vlan-range)# port-security maximum value

Configures a maximum number of secure MAC addresses for each VLAN.

Step 7 Switch(config-if-vlan-range)# no port-security maximum

Removes a maximum number of secure MAC addresses configuration for all the VLANs. Subsequently, the maximum value configured on the port will be used for all the VLANs.

Step 8 Switch(config-if-vlan-range)# [no] port-security mac-address mac_address

Configures a secure MAC-address on a range of VLANs.

Step 9 Switch(config-if-vlan-range)# [no] port-security mac-address sticky mac_address

Configures a sticky MAC-address on a range of VLANs.

Step 10 Switch(config-if-vlan-range)# end Returns to interface configuration mode.

Step 11 Switch(config-if)# end Returns to privileged EXEC mode.

Examples of Trunk Port Security

The following examples are provided:

  • Example 1: Configuring a Maximum Limit of Secure MAC Addresses for All VLANs, page 43-19
  • Example 2: Configuring a Maximum Limit of Secure MAC Addresses for Specific VLANs, page 43-20
  • Example 3: Configuring Secure MAC Addresses in a VLAN Range, page 43-20
Example 1Configuring a Maximum Limit of Secure MAC Addresses for All VLANs

This example shows how to configure a secure MAC-address and a maximum limit of secure MAC addresses on Gigabit Ethernet interface 1/1 for all VLANs:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface g1/1 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# sw mode trunk Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 3

Switch# show port-security in gi1/1 vlan Default maximum: 3 VLAN Maximum Current 1 3 0 2 3 0 3 3 0 4 3 0

Page 1040 of the Cisco Systems 4500 user manual — Example 3: Configuring Secure MAC Addresses in a VLAN Range
Page 1040 · click to enlarge
Page 1040

Chapter 43 Configuring Port Security Configuring Port Security on Trunk Ports

5 3 0 6 3 0 Switch#

Switch# show running interface gi1/1 Building configuration...

Current configuration : 161 bytes ! interface GigabitEthernet1/1 switchport trunk encapsulation dot1q switchport mode trunk switchport port-security switchport port-security maximum 3 vlan end

Example 2Configuring a Maximum Limit of Secure MAC Addresses for Specific VLANs

This example shows how to configure a secure MAC-address on interface g1/1 in a specific VLAN or range of VLANs:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface g1/1 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# sw mode trunk Switch(config-if)# switchport port-security Switch(config-if)# vlan-range 2-6 Switch(config-if-vlan-range)# port-security maximum 3 Switch(config-if)# exit

Switch# show port-security interface g1/1 vlan Default maximum: not set, using 3072 VLAN Maximum Current 2 3 0 3 3 0 4 3 0 5 3 0 6 3 0 Switch#

Example 3: Configuring Secure MAC Addresses in a VLAN Range

This example shows how to configure a secure MAC-address in a VLAN on interface g1/1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface g1/1 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# sw mode trunk Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security mac-address sticky Switch(config-if)# vlan-range 2-6 Switch(config-if-vlan-range)# port-security mac-address 1.1.1 Switch(config-if-vlan-range)# port-security mac-address sticky 1.1.2 Switch(config-if-vlan-range)# port-security mac-address sticky 1.1.3 Switch(config-if-vlan-range)# exit

Page 1041 of the Cisco Systems 4500 user manual — Trunk Port Security Configuration Guidelines and Restrictions
Page 1041 · click to enlarge
Page 1041

Chapter 43 Configuring Port Security

Configuring Port Security on Trunk Ports

Switch# show port-security interface g1/1 address vlan 2-4 Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age (mins) 2 0001.0001.0001 SecureConfigured Gi1/1 - 2 0001.0001.0002 SecureSticky Gi1/1 - 2 0001.0001.0003 SecureSticky Gi1/1 - 3 0001.0001.0001 SecureConfigured Gi1/1 - 3 0001.0001.0002 SecureSticky Gi1/1 - 3 0001.0001.0003 SecureSticky Gi1/1 - 4 0001.0001.0001 SecureConfigured Gi1/1 - 4 0001.0001.0002 SecureSticky Gi1/1 - 4 0001.0001.0003 SecureSticky Gi1/1 - Total Addresses: 9

Trunk Port Security Configuration Guidelines and Restrictions

When configuring port security related parameters on a per-port per-VLAN basis, consider these guidelines and restrictions:

  • A secure MAC-address cannot be configured on a VLAN that is not allowed on a regular trunk port.
  • The configuration on the primary VLAN on the private VLAN trunk is not allowed. The CLI is rejected and an error message is displayed.
  • If a specific VLAN on a port is not configured with a maximum value (directly or indirectly), the maximum configured for the port is used for that VLAN. In this situation, the maximum number of addresses that can be secured on this VLAN is limited to the maximum value configured on the port.

Each VLAN can be configured with a maximum count that is greater than the value configured on the port. Also, the sum of the maximum configured values for all the VLANs can exceed the maximum configured for the port. In either of these situations, the number of MAC addresses secured on each VLAN is limited to the lesser of the VLAN configuration maximum and the port configuration maximum. Also, the number of addresses secured on the port across all VLANs cannot exceed a maximum that is configured on the port.

  • For private VLAN trunk ports, the VLAN on which the configuration is being performed must be in either the allowed VLAN list of the private VLAN trunk or the secondary VLAN list in the association pairs. (The CLI is rejected if this condition is not met.) The allowed VLAN list on a private VLAN trunk is intended to hold the VLAN-IDs of all the regular VLANs that are allowed on the private VLAN trunk.
  • Removal of an association pair from a PVLAN trunk causes all static and sticky addresses associated with the secondary VLAN of the pair to be removed from the running configuration. Dynamic addresses associated with the secondary VLAN are deleted from the system.

Similarly, when a VLAN is removed from the list of allowed PVLAN trunks, the addresses associated with that VLAN are removed.

Switch#

Page 1042 of the Cisco Systems 4500 user manual — Configuring Port Security on Voice Ports
Page 1042 · click to enlarge
Page 1042

Chapter 43 Configuring Port Security Configuring Port Security on Voice Ports

Port Mode Changes

Generally, when a port mode changes, all dynamic addresses associated with that port are removed. All static or sticky addresses and other port security parameters configured on the native VLAN are moved to the native VLAN of the port in the new mode. All the addresses on the non-native VLANs are removed.

The native VLAN refers to the following VLAN on the specified port type:

Port Type Native VLAN

isolated secondary VLAN (from host association)

promiscuous primary VLAN (from mapping)

private VLAN trunk private VLAN trunk native VLAN

.1Q tunnel access VLAN

For example, when the mode changes from access to private VLAN trunk, all the static or sticky addresses configured on the access VLAN of the access port are moved to the private VLAN native VLAN of the private VLAN trunk port. All other addresses are removed.

Similarly, when the mode changes from private VLAN trunk to access mode, all the static or sticky addresses configured on the private VLAN native VLAN are moved to the access VLAN of the access port. All other addresses are removed.

When a port is changed from trunk to private VLAN trunk, addresses associated with a VLAN on the trunk are retained if that VLAN is present in the allowed list of private VLAN trunk or the secondary VLAN of an association on the private VLAN trunk. If the VLAN is not present in either of them, the address is removed from the running configuration.

When a port is changed from private VLAN trunk to trunk, a static or sticky address is retained if the VLAN associated with the address is present in the allowed VLAN list of the trunk. If the VLAN is not present in the allowed list, the address is removed from running configuration.

Configuring Port Security on Voice Ports

You might want to configure port security in an IP phone environment when a port is configured with a data VLAN for a PC and a voice VLAN for a Cisco IP Phone.

These sections describe how to configure port security on voice ports:

  • Configuring Port Security on Voice Ports, page 43-23
  • Examples of Voice Port Security, page 43-25
  • Voice Port Security Configuration Guidelines and Restrictions, page 43-27

access access VLAN · trunk native VLAN

Page 1043 of the Cisco Systems 4500 user manual — Configuring Port Security on Voice Ports
Page 1043 · click to enlarge
Page 1043

Chapter 43 Configuring Port Security

Configuring Port Security on Voice Ports

Configuring Port Security on Voice Ports

To configure port security on a voice port, perform this task:

Step 1 Switch(config)# interface interface_id Enters interface configuration mode and specifies the physical interface to configure.

Step 2 Switch(config-if)# switchport mode access Sets the interface mode.

Step 3 Switch(config-if)# [no] switchport port-security Enables port security on the interface.

To return the interface to the default condition as not secured, use the no switchport port-security command.

Step 4 Switch(config-if)# [no] switchport port-security violation {restrict | shutdown}

(Optional) Sets the violation mode, the action to be taken when a security violation is detected, as one of these:

  • restrict —A port security violation restricts data and causes the SecurityViolation counter to increment and send an SNMP trap notification.
  • shutdown —The interface is error-disabled when a security violation occurs.

To return the violation mode to the default condition (shutdown mode), use the no switchport port-security violation shutdown command.

Step 5 Switch(config-if)# switchport port-security limit rate invalid-source-mac packets_per_sec

Sets the rate limit for bad packets.

Default is 10 pps.

Page 1044 of the Cisco Systems 4500 user manual — Configuring Port Security
Page 1044 · click to enlarge
Page 1044

Chapter 43 Configuring Port Security Configuring Port Security on Voice Ports

Step 6 Switch(config-if)# [no] switchport port-security mac-address mac_address [vlan {voice | access}]

(Optional) Specifies a secure MAC address for the interface.

When you specify the vlan keyword, addresses are configured in the specified VLAN.

  • voice —MAC address is configured in the voice VLAN.
  • access —MAC address is configured in the access VLAN.

You can use this command to configure secure MAC addresses. If you configure fewer secure MAC addresses than the maximum, the remaining MAC addresses are dynamically learned.

To delete a MAC address from the address table, use the no switchport port-security mac-address mac_address command.

Step 7 Switch(config-if)# [no] switchport port-security mac-address sticky

(Optional) Enables sticky learning on the interface.

To disable sticky learning on an interface, use the no switchport port-security mac-address sticky command. The interface converts the sticky secure MAC addresses to dynamic secure addresses.

Step 8 Switch(config-if)# [no] switchport port-security mac-address mac_address sticky [vlan {voice | access}]

Specifies the sticky mac-address for the interface.

When you specify the vlan keyword, the mac-address becomes sticky in the specified VLAN.

  • voice —MAC address becomes sticky in the voice VLAN.
  • access —MAC address becomes sticky in the access VLAN.

To delete a sticky secure MAC addresses from the address table, use the no switchport port-security mac-address mac_address sticky command. To convert sticky to dynamic addresses, use the no switchport port-security mac-address sticky command.

Page 1045 of the Cisco Systems 4500 user manual — Example 1: Configuring Maximum MAC Addresses for Voice and Data VLANs
Page 1045 · click to enlarge
Page 1045

Chapter 43 Configuring Port Security

Configuring Port Security on Voice Ports

Step 9 Switch(config-if)# end Returns to privileged EXEC mode.

Step 10 Switch# show port-security address interface interface_id Switch# show port-security address

Verifies your entries.

Note To clear dynamically learned port security MAC addresses in the CAM table, use the clear port-security dynamic command. The address keyword enables you to clear a secure MAC addresses. The interface keyword enables you to clear all secure addresses on an interface (including any port channel interface). The VLAN keyword allows you to clear port security MACs on a per-VLAN per-port basis.

Examples of Voice Port Security

The following examples are provided:

  • Example 1: Configuring Maximum MAC Addresses for Voice and Data VLANs, page 43-25
  • Example 2: Configuring Sticky MAC Addresses for Voice and Data VLANs, page 43-26

Example 1: Configuring Maximum MAC Addresses for Voice and Data VLANs

This example shows how to designate a maximum of one MAC address for a voice VLAN (for a Cisco IP Phone, let’s say) and one MAC address for the data VLAN (for a PC, let’s say) on Fast Ethernet interface 5/1 and to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fa5/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 2 Switch(config-if)# switchport port-security mac-address sticky Switch(config-if)# switchport port-security maximum 1 vlan voice Switch(config-if)# switchport port-security maximum 1 vlan access Switch(config-if)# end

Page 1046 of the Cisco Systems 4500 user manual — Example 2: Configuring Sticky MAC Addresses for Voice and Data VLANs
Page 1046 · click to enlarge
Page 1046

Chapter 43 Configuring Port Security Configuring Port Security on Voice Ports

Switch# show port-security address Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age (mins) 1 0000.0000.0001 SecureSticky Fa5/1 - 3 0000.0000.0004 SecureSticky Fa5/1 - Total Addresses in System (excluding one mac per port) : 1 Max Addresses limit in System (excluding one mac per port) : 3072

Switch# show running-config interface fastEthernet 5/1 Building configuration...

Current configuration : 344 bytes ! interface FastEthernet5/1 switchport mode access switchport voice vlan 3 switchport port-security switchport port-security maximum 1 vlan voice switchport port-security maximum 3072 switchport port-security maximum 1 vlan access switchport port-security mac-address sticky switchport port-security mac-address sticky 0000.0000.0001 switchport port-security mac-address sticky 0000.0000.0004 vlan voice end

Example 2: Configuring Sticky MAC Addresses for Voice and Data VLANs

This example shows how to configure sticky MAC addresses for voice and data VLANs on Fast Ethernet interface 5/1 and to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fa5/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 3072 Switch(config-if)# switchport port-security mac-address sticky 0000.0000.obob vlan voice Switch(config-if)# switchport port-security mac-address sticky 0000.0000.0005 vlan access Switch(config-if)# end

Switch# show port-security address Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age (mins) 1 0000.0000.0001 SecureSticky Fa5/1 - 1 0000.0000.0002 SecureSticky Fa5/1 - 1 0000.0000.0003 SecureSticky Fa5/1 - 3 0000.0000.0004 SecureSticky Fa5/1 - 1 0000.0000.0005 SecureSticky Fa5/1 - 3 0000.0000.0b0b SecureSticky Fa5/1 -

Switch#

Page 1047 of the Cisco Systems 4500 user manual — Displaying Port Security Settings
Page 1047 · click to enlarge
Page 1047

Chapter 43 Configuring Port Security

Displaying Port Security Settings

Total Addresses in System (excluding one mac per port) : 5 Max Addresses limit in System (excluding one mac per port) : 3072

Switch# show running-config interface fastEthernet 5/1 Building configuration...

Current configuration : 344 bytes ! interface FastEthernet5/1 switchport mode access switchport voice vlan 3 switchport port-security switchport port-security maximum 3072 switchport port-security maximum 5 vlan voice switchport port-security mac-address sticky switchport port-security mac-address sticky 0000.0000.0001 switchport port-security mac-address sticky 0000.0000.0002 switchport port-security mac-address sticky 0000.0000.0003 switchport port-security mac-address sticky 0000.0000.0004 vlan voice switchport port-security mac-address sticky 0000.0000.0005 switchport port-security mac-address sticky 0000.0000.0b0b vlan voice end

Voice Port Security Configuration Guidelines and Restrictions

When using (or configuring) voice port security, consider these guidelines and restrictions:

  • You can configure sticky port security on voice ports. If sticky port security is enabled on a voice port, addresses secured on data and voice VLANs are secured as sticky addresses.
  • You can configure maximum secure addresses per-VLAN. You can set a maximum for either the data VLAN or the voice VLAN. You can also set a maximum per-port, just as with access ports.
  • You can configure port security MAC addresses on a per-VLAN basis on either the data or voice VLANs.
  • Prior to Cisco IOS Release 12.2(31)SG, you required three MAC addresses as the maximum parameter to support an IP phone and a PC. With Cisco IOS Release 12.2(31)SG and later releases, the maximum parameter must be configured to two, one for the phone and one for the PC.

Displaying Port Security Settings

Use the show port-security command to display port security settings for an interface or for the switch.

Switch#

Page 1048 of the Cisco Systems 4500 user manual — Example 1: Displaying Security Settings for the Entire Switch
Page 1048 · click to enlarge
Page 1048

Chapter 43 Configuring Port Security Displaying Port Security Settings

To display traffic control information, perform one or more of these tasks:

Switch# show interface status err-disable Displays interfaces that have been error-disabled along with the cause for which they were disabled.

Switch# show port-security [interface interface_id | interface port_channel port_channel_number]

Displays port security settings for the switch or for the specified interface, including the maximum allowed number of secure MAC addresses for each interface, the number of secure MAC addresses on the interface, the number of security violations that have occurred, and the violation mode.

The interface can be a port channel logical interface.

Switch# show port-security [interface interface_id | interface port_channel port_channel_number] address

Displays all secure MAC addresses configured on all switch interfaces or on a specified interface with aging information for each address.

Switch# show port-security [interface interface_id | interface port_channel port_channel_number] vlan vlan_list

Displays the maximum allowed number of secure MAC addresses and the current number of secure MAC addresses on a specific VLAN-list and a specific interface.

Switch# show port-security [interface interface_id | interface port_channel port_channel_number] [address [vlan vlan_list]]

Displays all secure MAC addresses configured on a specific VLAN-list and a specific interface.

Examples of Security Settings

The following examples are provided:

  • Example 1: Displaying Security Settings for the Entire Switch, page 43-28
  • Example 2: Displaying Security Settings for an Interface, page 43-29
  • Example 3: Displaying All Secure Addresses for the Entire Switch, page 43-29
  • Example 4: Displaying a Maximum Number of MAC Addresses on an Interface, page 43-30
  • Example 5: Displaying Security Settings on an Interface for a VLAN Range, page 43-30
  • Example 6: Displaying Secured MAC Addresses and Aging Information on an Interface, page 43-30
  • Example 7: Displaying Secured MAC Addresses for a VLAN Range on an Interface, page 43-31

Example 1: Displaying Security Settings for the Entire Switch

This example shows how to display port security settings for the entire switch:

Switch# show port-security Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action (Count) (Count) (Count) Fa3/1 2 2 0 Restrict Fa3/2 2 2 0 Restrict Fa3/3 2 2 0 Shutdown Fa3/4 2 2 0 Shutdown Fa3/5 2 2 0 Shutdown

Page 1049 of the Cisco Systems 4500 user manual — Example 3: Displaying All Secure Addresses for the Entire Switch
Page 1049 · click to enlarge
Page 1049

Chapter 43 Configuring Port Security

Displaying Port Security Settings

Fa3/6 2 2 0 Shutdown Fa3/7 2 2 0 Shutdown Fa3/8 2 2 0 Shutdown Fa3/10 1 0 0 Shutdown Fa3/11 1 0 0 Shutdown Fa3/12 1 0 0 Restrict Fa3/13 1 0 0 Shutdown Fa3/14 1 0 0 Shutdown Fa3/15 1 0 0 Shutdown Fa3/16 1 0 0 Shutdown Po2 3 0 0 Shutdown Total Addresses in System (excluding one mac per port) :8 Max Addresses limit in System (excluding one mac per port) :3072 Global SNMP trap control for port-security :20 (traps per second)

Example 2: Displaying Security Settings for an Interface

This example shows how to display port security settings for Fast Ethernet interface 5/1:

Switch# show port-security interface fastethernet 5/1 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 0 mins Aging Type : Absolute SecureStatic Address Aging : Disabled Maximum MAC Addresses : 1 Total MAC Addresses : 1 Configured MAC Addresses : 0 Sticky MAC Addresses : 1 Last Source Address:Vlan : 0000.0001.001a:1 Security Violation Count : 0

Example 3: Displaying All Secure Addresses for the Entire Switch

This example shows how to display all secure MAC addresses configured on all switch interfaces:

Switch# show port-security address Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age (mins) 1 0000.0001.0000 SecureConfigured Fa3/1 15 (I) 1 0000.0001.0001 SecureConfigured Fa3/1 14 (I) 1 0000.0001.0100 SecureConfigured Fa3/2 - 1 0000.0001.0101 SecureConfigured Fa3/2 - 1 0000.0001.0200 SecureConfigured Fa3/3 - 1 0000.0001.0201 SecureConfigured Fa3/3 - 1 0000.0001.0300 SecureConfigured Fa3/4 - 1 0000.0001.0301 SecureConfigured Fa3/4 - 1 0000.0001.1000 SecureDynamic Fa3/5 - 1 0000.0001.1001 SecureDynamic Fa3/5 - 1 0000.0001.1100 SecureDynamic Fa3/6 - 1 0000.0001.1101 SecureDynamic Fa3/6 - 1 0000.0001.1200 SecureSticky Fa3/7 -

Page 1050 of the Cisco Systems 4500 user manual — Example 6: Displaying Secured MAC Addresses and Aging Information on an Interface
Page 1050 · click to enlarge
Page 1050

Chapter 43 Configuring Port Security Displaying Port Security Settings

1 0000.0001.1201 SecureSticky Fa3/7 - 1 0000.0001.1300 SecureSticky Fa3/8 - 1 0000.0001.1301 SecureSticky Fa3/8 - 1 0000.0001.2000 SecureSticky Po2 - Total Addresses in System (excluding one mac per port) :8 Max Addresses limit in System (excluding one mac per port) :3072

Example 4: Displaying a Maximum Number of MAC Addresses on an Interface

This example shows how to display the maximum allowed number of secure MAC addresses and the current number of secure MAC addressees on Gigabit Ethernet interface 1/1:

Switch# show port-security interface g1/1 vlan Default maximum: 22 VLAN Maximum Current 2 22 3 3 22 3 4 22 3 5 22 1 6 22 2

Example 5: Displaying Security Settings on an Interface for a VLAN Range

This example shows how to display the port security settings on Gigabit Ethernet interface 1/1 for VLANs 2 and 3:

Switch# show port-security interface g1/1 vlan 2-3 Default maximum: 22 VLAN Maximum Current 2 22 3 3 22 3

Example 6: Displaying Secured MAC Addresses and Aging Information on an Interface

This example shows how to display all secure MAC addresses configured on Gigabit Ethernet interface 1/1 with aging information for each address.

Switch# show port-security interface g1/1 address

Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age(mins) 2 0001.0001.0001 SecureConfigured Gi1/1 - 2 0001.0001.0002 SecureSticky Gi1/1 - 2 0001.0001.0003 SecureSticky Gi1/1 - 3 0001.0001.0001 SecureConfigured Gi1/1 - 3 0001.0001.0002 SecureSticky Gi1/1 - 3 0001.0001.0003 SecureSticky Gi1/1 - 4 0001.0001.0001 SecureConfigured Gi1/1 - 4 0001.0001.0002 SecureSticky Gi1/1 - 4 0001.0001.0003 SecureSticky Gi1/1 - 5 0001.0001.0001 SecureConfigured Gi1/1 - 6 0001.0001.0001 SecureConfigured Gi1/1 - 6 0001.0001.0002 SecureConfigured Gi1/1 - Total Addresses: 12

Page 1051 of the Cisco Systems 4500 user manual — DHCP and IP Source Guard
Page 1051 · click to enlarge
Page 1051

Chapter 43 Configuring Port Security

Configuring Port Security with Other Features/Environments

Example 7Displaying Secured MAC Addresses for a VLAN Range on an Interface

This example shows how to display all secure MAC addresses configured on VLANs 2 and 3 on Gigabit Ethernet interface 1/1 with aging information for each address:

Switch# show port-security interface g1/1 address vlan 2-3

Secure Mac Address Table Vlan Mac Address Type Ports Remaining Age(mins) 2 0001.0001.0001 SecureConfigured Gi1/1 - 2 0001.0001.0002 SecureSticky Gi1/1 - 2 0001.0001.0003 SecureSticky Gi1/1 - 3 0001.0001.0001 SecureConfigured Gi1/1 - 3 0001.0001.0002 SecureSticky Gi1/1 - 3 0001.0001.0003 SecureSticky Gi1/1 - Total Addresses: 12 Switch#

Configuring Port Security with Other Features/Environments

The following topics are discussed:

  • DHCP and IP Source Guard, page 43-31
  • 802.1X Authentication, page 43-32
  • Configuring Port Security in a Wireless Environment, page 43-32
  • Configuring Port Security over Layer 2 EtherChannel, page 43-33

DHCP and IP Source Guard

You might want to configure port security with DHCP and IP Source Guard to prevent IP spoofing by unsecured MAC addresses. IP Source Guard supports two levels of IP traffic filtering:

  • Source IP address filtering
  • Source IP and MAC address filtering

When used in source IP and MAC address filtering, IP Source Guard uses private ACLs to filter traffic based on the source IP address, and uses port security to filter traffic based on the source MAC address. Port security must be enabled on the access port in this mode.

When both features are enabled, the following limitations apply:

  • The DHCP packet is not subject to port security dynamic learning.
  • If multiple IP clients are connected to a single access port, port security cannot enforce exact binding of source IP and MAC address for each client.

For example, these clients reside on an access port with the following IP and MAC address:

– client1MAC1 <---> IP1
– client2MAC2 <---> IP2
Page 1052 of the Cisco Systems 4500 user manual — Configuring Port Security in a Wireless Environment
Page 1052 · click to enlarge
Page 1052

Chapter 43 Configuring Port Security Configuring Port Security with Other Features/Environments

Any combination of the source MAC and IP address traffic will be allowed as shown here:

– MAC1 IP1, valid

– MAC2 IP2, valid

– MAC1 IP2, invalid

– MAC2 IP1, invalid

IP traffic with the correct source IP and MAC address binding will be permitted and port security will dynamically learn its MAC address. IP traffic with source addresses that are not in the binding will be treated as invalid packets and dropped by port security. To prevent a denial of service attack, you must configure port security rate limiting for the invalid source MAC address.

802.1X Authentication

You might want to configure port security with 802.1X authentication to prevent MAC spoofing. 802.1X is not supported on regular or private VLAN trunks. On access ports and PVLAN host or promiscuous ports, both port security and 802.1X can be configured simultaneously. When both are configured, hosts must be 802.1X authenticated before port security can secure the MAC address of the host. Both 802.1X and port security must approve of the host or a security violation will be triggered. The type of security violation will depend on which feature rejects the port: if the host is allowed by 802.1X (for example, because the port is in multihost mode) but is disallowed by port security, the port-security violation action will be triggered. If the host is allowed by port security but rejected by 802.1X (for example, because the host is not authorized on a single-host mode port) then the 802.1X security violation action will be triggered.

For more information on the interaction between 802.1X and port security, see “Using 802.1X with Port Security” on page 19.

Configuring Port Security in a Wireless Environment

If access points are connected to a secure port, do not configure a static MAC address for your users. A MAC address might move from one access point to another and might cause security violations if both the access points are connected on the same switch.

Figure 43-3 illustrates a typical topology of port security in a wireless environment.

Page 1053 of the Cisco Systems 4500 user manual — Port Security Configuration Guidelines and Restrictions
Page 1053 · click to enlarge
Page 1053

Chapter 43 Configuring Port Security

Port Security Configuration Guidelines and Restrictions

Figure 43-3 Port Security in a Wireless Environment

AP1 AP2

Wireless laptop "roamed" out AP2 Wireless laptop associated with AP1

Configuring Port Security over Layer 2 EtherChannel

Port security can be enabled on an EtherChannel in either trunk or access mode. Refer to the “Configuring Port Security on Access Ports” section on page 43-7 and the “Configuring Port Security on Trunk Ports” section on page 43-17 for configuration steps.)

When you do this in trunking mode, the MAC address restrictions apply to the entire port-channel on a per-VLAN basis.

In general, be aware of the following:

  • Port security on Layer 2 EtherChannel works only on access mode or trunk mode and is independent of the configuration on any physical member ports.
  • If at least one member port is secured, port security cannot be disabled on the channel interface; it is rejected by the CLI.
  • A secure port cannot join a non-secure EtherChannel; it is rejected by the CLI.
  • Port security over EtherChannel is supported in both PAgP and LACP modes. It does not apply to Layer 3 EtherChannels.

Port Security Configuration Guidelines and Restrictions

When using (or configuring) port security, consider these guidelines and restrictions:

  • After port security is configured on a port along with a "denying" PACL, the CPU will neither see any of the PACL packets denied from the given port nor learn the source MAC addresses from the denied packets. Therefore, the port security feature will not be aware of such packets.
  • A secure port cannot be a destination port for the Switch Port Analyzer (SPAN).
  • A secure port and a static MAC address configuration for an interface are mutually exclusive.

Switch

Page 1054 of the Cisco Systems 4500 user manual — Configuring Port Security
Page 1054 · click to enlarge
Page 1054

Chapter 43 Configuring Port Security Port Security Configuration Guidelines and Restrictions

  • When you enter a maximum secure address value for an interface, and the new value is greater than the previous value, the new value overwrites the previously configured value. If the new value is less than the previous value and the number of configured secure addresses on the interface exceeds the new value, the command is rejected.
  • While configuring trunk port security on a trunk port, you do not need to account for the protocol packets such as CDP and BPDU) because they are not learned and secured.
  • You cannot enable port security aging on sticky secure MAC addresses.
  • To restrict MAC spoofing using port security, you must enable 802.1X authentication.
  • You cannot configure port security on dynamic ports. You must change the mode to access before you enable port security.
  • When port security is enabled on an EtherChannel, 802.1X cannot be enabled.
  • A secure EtherChannel does not work in PVLAN mode.
Page 1055 of the Cisco Systems 4500 user manual — Configuring Control Plane Policing
Page 1055 · click to enlarge
Page 1055

C H A P T E R

Configuring Control Plane Policing and Layer 2 Control Packet QoS

This chapter contains information on how to protect your Catalyst 4500 series switch using control plane policing (CoPP). The information covered in this chapter is unique to the Catalyst 4500 series switches, and it supplements the network security information and procedures in Chapter 47, “Configuring Network Security with ACLs.” This information also supplements the network security information and procedures in these publications:

  • Cisco IOS Security Configuration Guide , Cisco IOS Release 12.4 , at this URL:

http://www.cisco.com/en/US/docs/ios/security/configuration/guide/12_4/sec_12_4_book.html

  • Cisco IOS Security Command Reference , Cisco IOS Release 12.4 , at this URL:

http://www.cisco.com/en/US/docs/ios/security/command/reference/sec_book.html

This chapter includes the following major sections:

  • Configuring Control Plane Policing, page 44-1
  • Monitoring CoPP, page 44-9
  • Configuring Layer 2 Control Packet QoS, page 44-11
  • Policing IPv6 Control Traffic, page 44-17

Note For complete syntax and usage information for the switch commands used in this chapter, see the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Cisco Catalyst 4500 Command Reference, you can locate it in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Configuring Control Plane Policing

This section includes these topics:

  • About Control Plane Policing, page 44-2
Page 1056 of the Cisco Systems 4500 user manual — Predefined Named ACL Description
Page 1056 · click to enlarge
Page 1056

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Control Plane Policing

  • General Guidelines for Control Plane Policing, page 44-3
  • Default Configuration, page 44-4
  • Configuring CoPP for Control Plane Traffic, page 44-4
  • Configuring CoPP for Data Plane and Management Plane Traffic, page 44-6
  • Control Plane Policing Configuration Guidelines and Restrictions, page 44-8
  • Policing IPv6 Control Traffic, page 44-17

About Control Plane Policing

The control plane policing (CoPP) feature increases security on the Catalyst 4500 series switch by protecting the CPU from unnecessary or DoS traffic and giving priority to important control plane and management traffic. The classification TCAM and QoS policers provide CoPP hardware support.

Traffic managed by the CPU is divided into three functional components or planes:

  • Data plane
  • Management plane
  • Control plane

You can use CoPP to protect most of CPU-bound traffic and to ensure routing stability, reachability, and packet delivery. Most importantly, you can use CoPP to protect the CPU from a DoS attack.

By default, you receive a list of predefined ACLs matching a selected set of Layer 2 and Layer 3 control plane packets. Although you can further define your preferred policing parameters for each of these packets, you cannot modify the matching criteria of these ACLs. (Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E do not have this restriction.)

The following table lists the predefined ACLs.

Predefined Named ACL Description

system-cpp-dot1x MAC DA = 0180.C200.0003

system-cpp-lldp MAC DA = 0180.C200.000E

system-cpp-mcast-cfm MAC DA = 0100.0CCC.CCC0 - 0100.0CCC.CCC7

system-cpp-ucast-cfm MAC DA = 0100.0CCC.CCC0

system-cpp-bpdu-range MAC DA = 0180.C200.0000 - 0180.C200.000F

system-cpp-cdp MAC DA = 0100.0CCC.CCCC (UDLD/DTP/VTP/Pagp)

system-cpp-sstp MAC DA = 0100.0CCC.CCCD

system-cpp-cgmp MAC DA = 01.00.0C.DD.DD.DD

system-cpp-hsrpv2 IP Protocol = UDP, IPDA = 224.0.0.102

system-cpp-ospf IP Protocol = OSPF, IP DA matches 224.0.0.0/24

Page 1057 of the Cisco Systems 4500 user manual — General Guidelines for Control Plane Policing
Page 1057 · click to enlarge
Page 1057

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Configuring Control Plane Policing

Predefined Named ACL Description

system-cpp-igmp IP Protocol = IGMP, IP DA matches 224.0.0.0/3

system-cpp-pim IP Protocol = PIM, IP DA matches 224.0.0.0/24

system-cpp-all-systems-on-subnet IP DA = 224.0.0.1

system-cpp-all-routers-on-subnet IP DA = 224.0.0.2

system-cpp-ripv2 IP DA = 224.0.0.9

system-cpp-ip-mcast-linklocal IP DA = 224.0.0.0/24

system-cpp-dhcp-cs IP Protocol = UDP, L4SrcPort = 68, L4DstPort = 67

system-cpp-dhcp-sc IP Protocol = UDP, L4SrcPort = 67, L4DstPort = 68

system-cpp-dhcp-ss IP Protocol = UDP, L4SrcPort = 67, L4DstPort = 67

For the data and management plane traffic, you can define your own ACLs to match the traffic class that you want to police.

CoPP uses MQC to define traffic classification criteria and to specify the configurable policy actions for the classified traffic. MQC uses class maps to define packets for a particular traffic class. After you have classified the traffic, you can create policy maps to enforce policy actions for the identified traffic. The control-plane global configuration command allows you to directly attach a CoPP service policy to the control plane.

The only policy map that you can attach to the control plane is system-cpp-policy. (Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E do not have this restriction.) This policy map must contain the predefined class maps in the predefined order at the beginning of the policy map. The best way to create system-cpp-policy policy map is by using the global macro system-cpp.

The system-cpp-policy policy map contains the predefined class maps for the control plane traffic. The names of all system-defined CoPP class maps and their matching ACLs contain the prefix system-cpp-. By default, no action is specified for each traffic class. You can define your own class maps matching CPU-bound data plane and management plane traffic. You can also add your defined class maps to system-cpp-policy.

General Guidelines for Control Plane Policing

Guidelines for control plane policing include the following:

  • Port security might cancel the effect of CoPP for non-IP control packets.

Although source MAC learning on a Catalyst 4500 series switch is performed in software, learning control packets’ source MAC addresses (for example, IEEE BPDU, CDP, SSTP BPDU, GARP/) is not alllowed. Once you configure port security on a port where you expect anticipate a high rate of potentially unanticipated control packets, the system generates a copy of the packet to the CPU (until the source address is learned), instead of forward it.

The current architecture of the Catalyst 4500 supervisor engine does not allow you to apply policing on the copy of packets sent to the CPU. You can only apply policing on packets that are forwarded to the CPU. Copies of packets are sent to the CPU at the same rate as control packets, and port security is not triggered because learning from control packets is not allowed. Policing is not applied because the packet copy, not the original, is sent to the CPU.

Page 1058 of the Cisco Systems 4500 user manual — Configuring CoPP for Control Plane Traffic
Page 1058 · click to enlarge
Page 1058

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Control Plane Policing

  • Beginning with Cisco IOS Release 12.2(31)SGA1, the GARP class was excluded from CoPP. To manipulate GARP traffic, you need to use ACLs and QoS. If you want to protect the CPU against GARP packets, you can also mark down GARP packets using CoPP after you define the user class for the packet. This is possible because GARP is not part of the static CAM area.

Because CoPP is tightly integrated between Cisco IOS and the platform code, an error message always appears during bootup. CoPP is not applied when you downgrade the Cisco IOS software from a prior release.

To avoid this scenario, first backup your configuration before downgrading software, then remove all CoPP entries manually from the configuration and enter the macro global apply system-cpp command.

  • ARP policing is not supported on either the classic series supervisor engines or fixed configuration switches. It is supported on the Catalyst 4900M and 4948E switches, Supervisor Engine 6-E, and Supervisor Engine 6L-E.
  • You cannot remove a macro-populated class from the list of classes within a control plane policy.
  • Prior to Cisco IOS Release 12.2(50)SG, on switches with Supervisor Engines V-10GE and earlier supervisor engines, class map hit statistics on a user-defined class map in system-cpp-policy are not updated properly. Beginning with Cisco IOS Release 12.2(50)SG, hit statistics are updated properly, with the exception of per-VLAN capture mode. In the global capture mode, hit statistics for all class maps (system-defined and user-defined) are updated properly.

For more information on per-VLAN capture mode, see the “Selecting Mode of Capturing Control Packets” section on page 47-13.

Default Configuration

CoPP is disabled by default.

Configuring CoPP for Control Plane Traffic

To configure CoPP for control plane traffic, perform this task:

Step 1 Switch# config terminal Enters global configuration mode.

Step 2 Switch(config)# qos (Optional) Enables QoS globally.

Step 3 Switch(config)# macro global apply system-cpp

(Optional) Creates the system-cpp-policy policy map and attaches it to the control plane.

Page 1059 of the Cisco Systems 4500 user manual — Configuring Control Plane Policing and Layer 2 Control Packet QoS
Page 1059 · click to enlarge
Page 1059

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Configuring Control Plane Policing

Step 4 Switch(config)# policy-map system-cpp-policy Switch(config-pmap)# class {system-cpp-dot1x | system-cpp-bpdu-range | system-cpp-cdp | service | system-cpp-sstp | system-cpp-cgmp | system-cpp-ospf | system-cpp-igmp | system-cpp-pim | system-cpp-all-systems-on-subnet | system-cpp-all-routers-on-subnet | system-cpp-ripv2 | system-cpp-hsrpv2 | system-cpp-ip-mcast-linklocal | system-cpp-dhcp-cs | system-cpp-dhcp-sc | system-cpp-dhcp-ss} Switch(config-pmap-c)# police [aggregate name] rate burst [conform-action {drop | transmit}] [{exceed-action {drop | transmit}}]}

Associates actions to one or multiple system-defined control plane traffic in the service policy map. Repeat this step if necessary.

Step 5 Switch# show policy-map system-cpp-policy (Optional) Verifies the configuration.

The following example shows how to police CDP packets:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# qos Switch(config)# macro global apply system-cpp Switch(config)# policy-map system-cpp-policy Switch(config-pmap)# class system-cpp-cdp Switch(config-pmap-c)# police 32000 1000 conform-action transmit exceed-action drop Switch(config-pmap-c)# end Switch# show policy-map system-cpp-policy Policy Map system-cpp-policy Class system-cpp-dot1x Class system-cpp-bpdu-range * Class system-cpp-cdp police 32000 bps 1000 byte conform-action transmit exceed-action drop Class system-cpp-sstp Class system-cpp-cgmp Class system-cpp-ospf Class system-cpp-hsrpv2 Class system-cpp-igmp Class system-cpp-pim Class system-cpp-all-systems-on-subnet Class system-cpp-all-routers-on-subnet Class system-cpp-ripv2 Class system-cpp-ip-mcast-linklocal Class system-cpp-dhcp-cs Class system-cpp-dhcp-sc Class system-cpp-dhcp-ss Switch#

Page 1060 of the Cisco Systems 4500 user manual — OR
Page 1060 · click to enlarge
Page 1060

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Control Plane Policing

Configuring CoPP for Data Plane and Management Plane Traffic

To configure CoPP for data plane and management plane traffic, perform this task:

Step 1 Switch(config)# qos (Optional) Enables QoS globally.

Step 2 Switch(config)# macro global apply system-cpp

(Optional) Attaches the system-cpp-policy policy map to the control plane.

Step 3 Switch(config)# {ip | mac} access-list extended {access-list-name}

Defines ACLs to match traffic:

  • permit— Sets the conditions under which a packet passes a named ACL

For an ip access list, issue Switch(config-ext-nacl)#{permit|deny} {protocol} source {source-wildcard} destination {destination-wildcard}

  • deny —Sets the conditions under which a packet does not pass a name ACL

For a mac access list, issue Switch(config-ext-macl)#{permit|deny} source {source-wildcard} destination {destination-wildcard} [protocol-family]

  • type-code— 16-bit hexadecimal number written with a leading 0x; for example, 0x6000. Specify either a Link Service Access Point (LSAP) type code for 802-encapsulated packets or a SNAP type code for SNAP-encapsulated packets. (LSAP, sometimes called SAP, refers to the type codes found in the DSAP and SSAP fields of the 802 header.)

OR

Switch(config)# access-list {access-list-name} {permit | deny} {type-code wild-mask | address mask}

  • wild-mask —16-bit hexadecimal number whose ones bits correspond to bits in the type-code argument. The wild-mask indicates which bits in the type-code argument should be ignored when making a comparison. (A mask for a DSAP/SSAP pair should always be 0x0101 because these two bits are used for purposes other than identifying the SAP code.)
  • address —48-bit Token Ring address written as a dotted triple of four-digit hexadecimal numbers. This field is used for filtering by vendor code.
  • mask— 48-bit Token Ring address written as a dotted triple of four-digit hexadecimal numbers. The ones bits in the mask are the bits to be ignored in address. This field is used for filtering by vendor code.
Page 1061 of the Cisco Systems 4500 user manual — Configuring Control Plane Policing and Layer 2 Control Packet QoS
Page 1061 · click to enlarge
Page 1061

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Configuring Control Plane Policing

Step 4 Switch(config)# class-map {traffic-class-name} Switch(config-cmap)# match access-group {access-list-number | name {access-list-name}}

Defines the packet classification criteria. To identify the traffic associated with the class, use the match statements.

Step 5 Switch(config-cmap)# exit Returns to global configuration mode.

Step 6 Switch(config)# policy-map system-cpp-policy Switch(config-pmap)# class {class-map-name} Switch(config-pmap-c)# police [aggregate name] rate burst [conform-action {drop | transmit}] [{exceed-action {drop | transmit}}]

Adds the traffic classes to the CoPP policy map. Uses the police statement to associate actions to the traffic class.

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Step 8 Switch# show policy-map system-cpp-policy Verifies your entries.

The following example shows how to configure trusted hosts with source addresses 10.1.1.1 and 10.1.1.2 to forward Telnet packets to the control plane without constraint, while allowing all remaining Telnet packets to be policed at the specific rate. This example assumes that global QoS is enabled and that the system-cpp-policy policy map was created.

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# qos Switch(config)# macro global apply system-cpp

! Allow 10.1.1.1 trusted host traffic. Switch(config)# access-list 140 deny tcp host 10.1.1.1 any eq telnet

! Allow 10.1.1.2 trusted host traffic. Switch(config)# access-list 140 deny tcp host 10.1.1.2 any eq telnet

! Rate limit all other Telnet traffic. Switch(config)# access-list 140 permit tcp any any eq telnet

! Define class-map "telnet-class." Switch(config)# class-map telnet-class Switch(config-cmap)# match access-group 140 Switch(config-cmap)# exit

! Add the class-map "telnet-class" to "system-cpp-policy" and define the proper action Switch(config)# policy-map system-cpp-policy Switch(config-pmap)# class telnet-class Switch(config-pmap-c)# police 80000 1000 conform transmit exceed drop Switch(config-pmap-c)# exit Switch(config-pmap)# exit

! Verify the above configuration steps Switch# show policy-map system-cpp-policy Policy Map system-cpp-policy Class system-cpp-dot1x Class system-cpp-bpdu-range Class system-cpp-cdp police 32000 bps 1000 byte conform-action transmit exceed-action drop Class system-cpp-sstp

Page 1062 of the Cisco Systems 4500 user manual — All supervisor engines
Page 1062 · click to enlarge
Page 1062

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Control Plane Policing

Class system-cpp-cgmp Class system-cpp-ospf Class system-cpp-hsrpv2 Class system-cpp-igmp Class system-cpp-pim Class system-cpp-all-systems-on-subnet Class system-cpp-all-routers-on-subnet Class system-cpp-ripv2 Class system-cpp-ip-mcast-linklocal Class system-cpp-dhcp-cs Class system-cpp-dhcp-sc Class system-cpp-dhcp-ss * Class telnet-class police 80000 1000 byte conform-action drop exceed-action drop

Control Plane Policing Configuration Guidelines and Restrictions

When using (or configuring) control plane policing, consider these guidelines and restrictions:

All supervisor engines

When configuring CoPP, consider these guidelines:

  • Only ingress CoPP is supported. Only the input keyword is supported in control plane-related CLIs.
  • Control plane traffic can be policed only through CoPP. Traffic cannot be policed at the input interface or VLAN even though a policy map containing the control plane traffic is accepted when the policy map is attached to an interface or VLAN.
  • Use ACLs and class maps to identify data plane and management plane traffic that are handled by the CPU. U 1 ser defined class maps should be added to the system-cpp-policy policy map for CoPP.
  • The default system-cpp-policy policy map does not define actions for the system-defined class maps (no policing).
  • The only action supported in system-cpp-policy is police.
  • You can use both MAC and IP ACLs to define data plane and management plane traffic classes. However, if a packet also matches a predefined ACL for the control plane traffic, a police (or no police) action will operate on the control plane class because the control plane classes appear above the user-defined classes in the service policy.
  • The exceeding action policed-dscp-transmit is not supported for CoPP.
  • Do not use the log keyword in CoPP policy ACLs. Instead, if you want to determine if rogue packets are arriving, view the output of the show policy-map interface command or use the span feature.

Do not apply to Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E

  • To police control plane traffic, use the system-defined class maps.
  • System-defined class maps cannot be used in policy maps for regular QoS.
  • The policy map named system-cpp-policy is dedicated for CoPP.
  • CoPP is not enabled unless global QoS is enabled and a police action is specified.
Page 1063 of the Cisco Systems 4500 user manual — Monitoring CoPP
Page 1063 · click to enlarge
Page 1063

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Monitoring CoPP

You can enter the show policy-map control-plane command to develop site-specific policies, to monitor statistics for the control plane policy, and to troubleshoot CoPP. This command displays dynamic information about the actual policy applied, including rate information and the number of bytes (and packets) that conformed or exceeded the configured policies both in hardware and in software.

The output of the show policy-map control-plane command is similar to the following:

Switch# show policy-map control-plane

Service-policy inputsystem-cpp-policy
Class-mapsystem-cpp-dot1x (match-all) 0 packets Match: access-group name system-cpp-dot1x
Class-mapsystem-cpp-bpdu-range (match-all) 0 packets Match: access-group name system-cpp-bpdu-range

* Class-map: system-cpp-cdp (match-all) 160 packets Match: access-group name system-cpp-cdp ** police: Per-interface Conform: 22960 bytes Exceed: 0 bytes * Class-map: system-cpp-sstp (match-all) 0 packets Match: access-group name system-cpp-sstp

Class-mapsystem-cpp-cgmp (match-all) 0 packets Match: access-group name system-cpp-cgmp
Class-mapsystem-cpp-hsrpv2 (match-all) 0 packets Match: access-group name system-cpp-hsrpv2
Class-mapsystem-cpp-ospf (match-all) 0 packets Match: access-group name system-cpp-ospf
Class-mapsystem-cpp-igmp (match-all) 0 packets Match: access-group name system-cpp-igmp
Class-mapsystem-cpp-pim (match-all) 0 packets Match: access-group name system-cpp-pim
Class-mapsystem-cpp-all-systems-on-subnet (match-all) 0 packets Match: access-group name system-cpp-all-systems-on-subnet
Class-mapsystem-cpp-all-routers-on-subnet (match-all) 0 packets Match: access-group name system-cpp-all-routers-on-subnet
Class-mapsystem-cpp-ripv2 (match-all) 0 packets

Monitoring CoPP · Control Plane

Page 1064 of the Cisco Systems 4500 user manual — Configuring Control Plane Policing and Layer 2 Control Packet QoS
Page 1064 · click to enlarge
Page 1064

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Monitoring CoPP

Matchaccess-group name system-cpp-ripv2
Class-mapsystem-cpp-ip-mcast-linklocal (match-all) 0 packets Match: access-group name system-cpp-ip-mcast-linklocal
Class-mapsystem-cpp-dhcp-cs (match-all) 83 packets Match: access-group name system-cpp-dhcp-cs
Class-mapsystem-cpp-dhcp-sc (match-all) 0 packets Match: access-group name system-cpp-dhcp-sc
Class-mapsystem-cpp-dhcp-ss (match-all) 0 packets Match: access-group name system-cpp-dhcp-ss

Class-map: telnet-class (match-all) 92 packets Match: access-group 140 police: cir 32000 bps, bc 1500 bytes conformed 5932 bytes; actions: transmit exceeded 0 bytes; actions: drop conformed 0000 bps, exceed 0000 bps

Class-mapclass-default (match-any) 0 packets Match: any 0 packets Switch#

To clear the counters on the control plane, enter the clear control-plane * command:

Switch# clear control-plane * Switch#

To display all the CoPP access list information, enter the show access-lists command:

Switch# show access-lists Extended IP access list system-cpp-all-routers-on-subnet 10 permit ip any host 224.0.0.2 Extended IP access list system-cpp-all-systems-on-subnet 10 permit ip any host 224.0.0.1 Extended IP access list system-cpp-dhcp-cs 10 permit udp any eq bootpc any eq bootps Extended IP access list system-cpp-dhcp-sc 10 permit udp any eq bootps any eq bootpc Extended IP access list system-cpp-dhcp-ss 10 permit udp any eq bootps any eq bootps Extended IP access list system-cpp-igmp 10 permit igmp any 224.0.0.0 31.255.255.255 Extended IP access list system-cpp-ip-mcast-linklocal 10 permit ip any 224.0.0.0 0.0.0.255 Extended IP access list system-cpp-ospf 10 permit ospf any 224.0.0.0 0.0.0.255 Extended IP access list system-cpp-pim 10 permit pim any 224.0.0.0 0.0.0.255 Extended IP access list system-cpp-ripv2 10 permit ip any host 224.0.0.9 Extended MAC access list system-cpp-bpdu-range

Page 1065 of the Cisco Systems 4500 user manual — Default Configuration
Page 1065 · click to enlarge
Page 1065

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Configuring Layer 2 Control Packet QoS

permit any 0180.c200.0000 0000.0000.000f Extended MAC access list system-cpp-cdp permit any host 0100.0ccc.cccc Extended MAC access list system-cpp-cgmp permit any host 0100.0cdd.dddd Extended MAC access list system-cpp-dot1x permit any host 0180.c200.0003 system-cpp-sstp permit any host 0100.0ccc.cccd

To display one CoPP access list, enter the show access-lists system-cpp-cdp command:

Switch# show access-list system-cpp-cdp Extended MAC access list system-cpp-cdp permit any host 0100.0ccc.cccc Switch#

Configuring Layer 2 Control Packet QoS

Layer 2 control packet QoS enables you to police control packets arriving on a physical port or LAN.

This section includes these topics:

  • Understanding Layer 2 Control Packet QoS, page 44-11
  • Default Configuration, page 44-11
  • Enabling Layer 2 Control Packet QoS, page 44-12
  • Disabling Layer 2 Control Packet QoS, page 44-13
  • Layer 2 Control Packet QoS Configuration Examples, page 44-14
  • Layer 2 Control Packet QoS Guidelines and Restrictions, page 44-16

Understanding Layer 2 Control Packet QoS

You might want to police incoming Layer 2 control packets such as STP, CDP, VTP, SSTP, BPDU, EAPOL and LLDP on a specific port before the packets reach CPU. This could serve as a first line of defense before aggregate traffic is subjected to policing (through CoPP). By default, policers cannot be applied to Layer 2 control packets in the input direction. This prevents users from inadvertently policing or dropping critical Layer 2 control packets.

While this approach protects a user who is wrongly policing control packets, it introduces a more serious problem. If a flood of Layer 2 control packets is received on any of the switch interfaces at a very high rate due to a DoS attack or to a loop introduced in the customer network because of misconfiguration, CPU utilization can increase quickly. This can have adverse impacts such as loss of protocol keep-alives and routing protocol updates. The Layer 2 control packet QoS feature allows you to police Layer 2 control packets at the port, VLAN, or port- VLAN level in the input direction.

Default Configuration

Layer 2 control packet QoS is disabled by default.

Page 1066 of the Cisco Systems 4500 user manual — 0180.C200.0002 OAM, LACP
Page 1066 · click to enlarge
Page 1066

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Layer 2 Control Packet QoS

Enabling Layer 2 Control Packet QoS

To enable Layer 2 control packet QoS, perform this task:

Step 1 Switch# config terminal Enters configuration mode.

Step 2 Switch(config)# [no] qos control-packets [bpdu-range | cdp-vtp | eapol | sstp | protocol-tunnel | lldp]

Enables QoS on all or a specific packet type.

Use the no keyword to disable QoS on all or a specific packet type.

Step 3 Switch(config)# end Exits configuration mode.

Step 4 Switch# show run | inc qos control-packets Verifies the configuration.

Table 44-1 lists the types of packets impacted by this feature.

Table 44-1 Packet Type and Actionable Address Range

Type of Packet that the Feature is Enabled On Range of Address the Feature Acts On

BPDU-range 0180.C200.0000 BPDU

0180.C200.0002 OAM, LACP

0180.C200.0003 EAPOL

CDP-VTP 0100.0CCC.CCCC

SSTP 0100.0CCC.CCCD

LLDP 0180.C200.000E

The following example shows how to enable QoS for CDP packets and to apply a policer to CDP packets arriving on interface gi3/1 and VLAN 1:

Switch# config terminal Switch(config)# qos control-packets cdp-vtp Switch(config)# end Switch# show run | inc qos control-packets qos control-packets cdp-vtp Switch# show class-map Class Map match-any system-control-packet-cdp-vtp (id 1)

Match access-group name system-control-packet-cdp-vtp

Create a policy map and attach it to interface gi3/1 , vlan 1 Switch# config terminal Switch(config)# policy-map police_cdp Switch(config-pmap)# class system-control-packet-cdp-vtp Switch(config-pmap-c)# police 32k Switch(config-pmap-c)# end

Switch(config)# interface gi3/1 Switch(config-if)# vlan 1 Switch(config-if-vlan-range)# service-policy in police_cdp

Page 1067 of the Cisco Systems 4500 user manual — Disabling Layer 2 Control Packet QoS
Page 1067 · click to enlarge
Page 1067

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Configuring Layer 2 Control Packet QoS

Switch(config-if-vlan-range)# exit Switch(config-if)# exit Switch(config)# exit Switch# show policy-map interface gi3/1

Service-policy inputpolice_cdp

Class-map: system-control-packet-cdp-vtp (match-any) 0 packets Match: access-group name system-control-packet-cdp-vtp 0 packets police: cir 32000 bps, bc 1500 bytes conformed 0 packets, 0 bytes; actions: transmit exceeded 0 packets, 0 bytes; actions: drop conformed 0000 bps, exceed 0000 bps

Class-mapclass-default (match-any) 0 packets

Disabling Layer 2 Control Packet QoS

The no qos control-packet command disables QoS for all packet types.

The following example shows how to disable QoS for CDP packets after QoS is enabled for all packet types:

Switch# show running-configuration | include qos control-packets qos control-packets bpdu-range qos control-packets cdp-vtp qos control-packets lldp qos control-packets eapol qos control-packets sstp qos control-packets protocol-tunnel

Switch# config terminal Switch(config)# no qos control-packets cdp-vtp Switch(config)# end Switch# show running-configuration | include qos control-packets qos control-packets bpdu-range qos control-packets lldp qos control-packets sstp qos control-packets protocol-tunnel

GigabitEthernet3/1 vlan 1

Page 1068 of the Cisco Systems 4500 user manual — Layer 2 Control Packet QoS Configuration Examples
Page 1068 · click to enlarge
Page 1068

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Layer 2 Control Packet QoS

Table 44-2 displays the auto-generated MACLs and class maps that are created when you enable the feature on the corresponding packet type.

Table 44-2 Packet Types and Auto-Generated MACL/Class Maps

Packet Type Auto-Generated MACL/Class Map

BPDU-range mac access-list extended system-control-packet-bpdu-range

permit any 0180.c200.0000 0000.0000.000c

match access-group name system-control-packet-bpdu-range

SSTP mac access-list extended system-control-packet-sstp

permit any host 0100.0ccc.cccd

match access-group name system-control-packet-sstp

CDP-VTP mac access-list extended system-control-packet-cdp-vtp

permit any host 0100.0ccc.cccc

match access-group name system-control-packet-cdp-vtp

EAPOL mac access-list extended system-control-packet-eapol

permit any any 0x888E

match access-group name system-control-packet-eapol

LLDP mac access-list extended system-control-packet-lldp

permit any host 0180.c200.000e

match access-group name system-control-packet-lldp

PROTOCOL TUNNEL

mac access-list extended system-control-packet-protocol-tunnel

permit any host 0100.0ccd.cdd0

match access-group name system-control-packet-protocol-tunnel

Layer 2 Control Packet QoS Configuration Examples

You can use CoPP and Layer 2 control packet QoS together to prevent DoS attacks to the CPU. In the following example, BPDUs arriving on interface gi3/1, VLAN 1 and VLAN 2 are limited to 32 Kbps and 34 Kbps, respectively. Aggregate BPDU traffic to CPU then is further rate-limited to 50 Kbps using CoPP.

Show 6 more labels / short text on this page
class-map match-any system-control-packet-bpdu-range · class-map match-any system-control-packet-sstp · class-map match-any system-control-packet-cdp-vtp · class-map match-any system-control-packet-eapol · class-map match-any system-control-packet-lldp · class-map match-any system-control-packet-protocol-tunnel
Page 1069 of the Cisco Systems 4500 user manual — Configuring Control Plane Policing and Layer 2 Control Packet QoS
Page 1069 · click to enlarge
Page 1069

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Configuring Layer 2 Control Packet QoS

Switch(config)# qos control-packets Switch(config)# policy-map police_bpdu_1 Switch(config-pmap)# class system-control-packet-bpdu-range Switch(config-pmap-c)# police 32k 1000 Switch(config-pmap-c-police)# exit Switch(config-pmap-c)# exit Switch(config-pmap)# policy-map police_bpdu_2 Switch(config-pmap)# class system-control-packet-bpdu-range Switch(config-pmap-c)# police 34k Switch(config-pmap-c-police)# exit

Configuring Layer 2 Control Packet QoS

Switch(config)# interface gi3/1 Switch(config-if)# vlan-range 1 Switch(config-if-vlan-range)# service-policy in police_bpdu_1 Switch(config-if-vlan-range)# exit Switch(config-if)# interface gi3/2 Switch(config-if)# vlan-range 2 Switch(config-if-vlan-range)# service-policy in police_bpdu_1 Switch(config-if-vlan-range)# exit

Configuring Control Plane Policy

Switch(config)# macro global apply system-cpp Switch(config)# policy-map system-cpp-policy Switch(config-pmap)# class system-cpp-bpdu-range Switch(config-pmap-c)# police 50k Switch(config-pmap-c-police)# exit Switch(config-pmap-c)# exit

To refine or modify system-generated class maps or MACLs, apply user-defined class maps and MACLs.

For example, the following are valid user-defined class map names to police Layer 2 control packets because they begin with the prefix system-control-packet:

No such restrictions exist on the names you can use for user-defined MACLs (access-groups).

system-control-packet-bpdu1 system-control-packet-control-packet

Page 1070 of the Cisco Systems 4500 user manual — Layer 2 Control Packet QoS Guidelines and Restrictions
Page 1070 · click to enlarge
Page 1070

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Configuring Layer 2 Control Packet QoS

The following example shows how to create user-defined MACLs and class maps to identify EAPOL and BPDU packets. Because the auto-generated class map system-control-packet-bpdu range matches three packet types (BPDU, EAPOL, and OAM), policing this traffic class affects all three packet types. To police BPDU and EAPOL packets at different rates, you can set user-defined MACL and class map as follows:

Switch(config)# mac access-list extended system-control-packet-bpdu Switch(config-ext-macl)# permit any host 0180.c200.0000 Switch(config-ext-macl)# exit Switch(config)# class-map match-any system-control-packet-bpdu Switch(config-cmap)# match access-group name system-control-packet-bpdu Switch(config-cmap)# exit

Switch(config)# mac access-list extended system-control-packet-eapol Switch(config-ext-macl)# permit any host 0180.c200.0003 Switch(config-ext-macl)# exit Switch(config)# class-map match-any system-control-packet-eapol Switch(config-cmap)# match access-group name system-control-packet-eapol Switch(config-cmap)# exit

Layer 2 Control Packet QoS Guidelines and Restrictions

When using (or configuring) Layer 2 control packet QoS, consider these guidelines and restrictions:

  • When you enable Layer 2 control packet QoS, it applies to all ports on the switch. If Layer 2 control packets are not explicitly classified in the policy attached to port or VLAN, the actions in class-default will be applied as per normal QoS rules.
  • Place classifiers that match control packets at the beginning of a policy map followed by other traffic classes, ensuring that Layer 2 control packets are not subjected to inadvertent QoS actions.
  • The application of default class (class-default) actions depends on the type of supervisor engine:

– Supervisor Engine V-10GE with NetFlow support—Actions associated with class-default are never applied on unmatched control packets; a default permit action is applied. Only actions associated with class maps that begin with system-control-packet are applied on control packets.

– All other supervisor engines—Actions associated with class-default are applied on unmatched control packets.

  • If you enable the feature on a BPDU range, EAPOL packets are policed only after the initial 802.1X authentication phase completes.
  • On certain hardware (Catalyst 4924, Catalyst 4948, Catalyst 4948-10GE, Supervisor Engine II-Plus, Supervisor Engine II+10GE, Supervisor Engine V, and Supervisor Engine V-10GE), Layer 2 control packets cannot be policed on a port that is in STP forwarding state and has port security enabled.
  • Layer 2 control packet QoS for protocol tunneled and EAPOL (ethertype) packets is only available on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E.
Page 1071 of the Cisco Systems 4500 user manual — Policing IPv6 Control Traffic
Page 1071 · click to enlarge
Page 1071

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS

Policing IPv6 Control Traffic

Policing IPv6 Control Traffic

On Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E, IPv6 control packets such as OSPF, PIM and MLD can be policed on a physical port, VLAN, or control plane by configuring IPv6 ACLs to classify such traffic and then applying a QoS policy to police such traffic.

The following examples show how to police OSPFv6, PIMv6 and MLD control traffic received on a port.

This example shows how to configure a traffic class to identify OSPFv6 control packets by its destination IP v6 address:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ipv6 access-list ospfv6 Switch(config-ipv6-acl)# permit ipv6 any host ff02:5 Switch(config-ipv6-acl)# exit Switch(config)# class-map ospfv6Class Switch(config-camp)# match access-group name ospfv6 Switch(config-camp)# exit

The following example shows how to configure a traffic class to identify PIMv6 control packets by its destination IPv6 address:

Switch(config)# ipv6 access-list pimv6 Switch(config-ipv6-acl)# permit ipv6 any host ff02::d Switch(config-ipv6-acl)# exit Switch(config)# class-map pimv6Class Switch(config-cmap)# match access-group name pimv6 Switch(config-cmap)# exit

The following example shows how to configure a traffic class to identify MLD protocol control packets:

Switch(config)# ipv6 access-list mldv1 Switch(config-ipv6-acl)# permit icmp any any mld-query Switch(config-ipv6-acl)# permit icmp any any mld-report Switch(config-ipv6-acl)# permit icmp any any mld-reduction Switch(config-ipv6-acl)# exit Switch(config)# class-map mldClass Switch(config-cmap)# match access-group name mldv1 Switch(config-cmap)# exit

The following example shows how to configure a QoS policy to police OSPFv6, PIMv6 and MLD traffic classes:

Switch(config)# policy-map v6_control_packet_policy Switch(config-pmap)# class mldClass Switch(config-pmap-c)# police 32k Switch(config-pmap-c-police)# class ospfv6Class Switch(config-pmap-c)# police 32k Switch(config-pmap-c)# class pimv6Class Switch(config-pmap-c)# police 32k Switch(config-pmap-c-police)# exit Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# exit Switch# show policy-map

Policy Map v6_control_packet_policy Class mldClass police cir 32000 bc 1500 conform-action transmit exceed-action drop Class ospfv6Class

Page 1072 of the Cisco Systems 4500 user manual — Configuring Control Plane Policing and Layer 2 Control Packet QoS
Page 1072 · click to enlarge
Page 1072

Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS Policing IPv6 Control Traffic

police cir 32000 bc 1500 conform-action transmit exceed-action drop Class pimv6class police cir 32000 bc 1500 conform-action transmit exceed-action drop

The following example shows how to policy to interface gi2/2 in the input direction:

Switch# config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gi2/2 Switch(config-if)# service-policy in v6_control_packet_policy Switch(config-if)# exit

Page 1073 of the Cisco Systems 4500 user manual — About Dynamic ARP Inspection
Page 1073 · click to enlarge
Page 1073

C H A P T E R

Configuring Dynamic ARP Inspection

This chapter describes how to configure Dynamic ARP Inspection (DAI) on the Catalyst 4500 series switch.

This chapter includes the following major sections:

  • About Dynamic ARP Inspection, page 46-1
  • Configuring Dynamic ARP Inspection, page 46-5

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Dynamic ARP Inspection

Dynamic ARP Inspection (DAI) is a security feature that validates Address Resolution Protocol (ARP) packets in a network. DAI allows a network administrator to intercept, log, and discard ARP packets with invalid MAC-IP pairs. This capability protects the network from certain “man-in-the-middle” attacks.

This section contains the following subsections:

  • ARP Cache Poisoning, page 46-2
  • Purpose of Dynamic ARP Inspection, page 46-2
  • Interface Trust State, Security Coverage and Network Configuration, page 46-3
  • Relative Priority of Static Bindings and DHCP Snooping Entries, page 46-4
  • Logging of Dropped Packets, page 46-4
  • Rate Limiting of ARP Packets, page 46-4
  • Port Channels Function, page 46-5
Page 1074 of the Cisco Systems 4500 user manual — Purpose of Dynamic ARP Inspection
Page 1074 · click to enlarge
Page 1074

Chapter 46 Configuring Dynamic ARP Inspection About Dynamic ARP Inspection

ARP Cache Poisoning

You can attack hosts, switches, and routers connected to your Layer 2 network by “poisoning” their ARP caches. For example, a malicious user might intercept traffic intended for other hosts on the subnet by poisoning the ARP caches of systems connected to the subnet.

Figure 46-1 shows an example of cache poisoning.

Figure 46-1 ARP Cache Poisoning

A B

HA (IA, MA)

HB (IB, MB)

HC (IC, MC)

Hosts HA, HB, and HC are connected to the switch on interfaces A, B and C, all of which are on the same subnet. Their IP and MAC addresses are shown in parentheses; for example, Host HA uses IP address IA and MAC address MA. When HA needs to communicate to HB at the IP Layer, HA broadcasts an ARP request for the MAC address associated with IB. As soon as HB receives the ARP request, the ARP cache on HB is populated with an ARP binding for a host with the IP address IA and a MAC address MA. When HB responds to HA, the ARP cache on HA is populated with a binding for a host with the IP address IB and a MAC address MB.

Host HC can “poison” the ARP caches of HA and HB by broadcasting forged ARP responses with bindings for a host with an IP address of IA (or IB) and a MAC address of MC. Hosts with poisoned ARP caches use the MAC address MC as the destination MAC address for traffic intended for IA or IB. This means that HC intercepts that traffic. Because HC knows the true MAC addresses associated with IA and IB, HC can forward the intercepted traffic to those hosts using the correct MAC address as the destination. HC has inserted itself into the traffic stream from HA to HB, the classic “man in the middle” attack.

Purpose of Dynamic ARP Inspection

To prevent ARP poisoning attacks, a switch must ensure that only valid ARP requests and responses are relayed. DAI prevents these attacks by intercepting all ARP requests and responses. Each of these intercepted packets is verified for valid MAC address to IP address bindings before the local ARP cache is updated or the packet is forwarded to the appropriate destination. Invalid ARP packets are dropped.

DAI determines the validity of an ARP packet based on valid MAC address to IP address bindings stored in a trusted database. This database is built at runtime by DHCP snooping, provided this feature is enabled on VLANs and on the switch. In addition, in order to handle hosts that use statically configured IP addresses, DAI can also validate ARP packets against user-configured ARP ACLs.

DAI can also be configured to drop ARP packets when the IP addresses in the packet are invalid or when the MAC addresses in the body of the ARP packet do not match the addresses specified in the Ethernet header.

Page 1075 of the Cisco Systems 4500 user manual — Interface Trust State, Security Coverage and Network Configuration
Page 1075 · click to enlarge
Page 1075

Chapter 46 Configuring Dynamic ARP Inspection

About Dynamic ARP Inspection

Interface Trust State, Security Coverage and Network Configuration

DAI associates a trust state with each interface on the system. Packets arriving on trusted interfaces bypass all DAI validation checks, while those arriving on untrusted interfaces go using the DAI validation process. In a typical network configuration for DAI, all ports connected to host ports are configured as untrusted, while all ports connected to switches are configured as trusted. With this configuration, all ARP packets entering the network from a given switch pass the security check.

Figure 46-2 Validation of ARP Packets on a DAI-Enabled VLAN

Switch S1 Switch S2

Host H1 Host H2

Use the trust state configuration carefully. Configuring interfaces as untrusted when they should be trusted can result in a loss of connectivity. If we assume that both S1 and S2 (in Figure 46-2) run DAI on the VLAN ports that contains H1 and H2, and if H1 and H2 were to acquire their IP addresses from the DHCP server connected to S1, then only S1 binds the IP to MAC address of H1. If the interface between S1 and S2 is untrusted, the ARP packets from H1 get dropped on S2. This condition would result in a loss of connectivity between H1 and H2.

Configuring interfaces to be trusted when they are actually untrusted leaves a security hole in the network. If S1 were not running DAI, then H1 can easily poison the ARP of S2 (and H2, if the inter- switch link is configured as trusted). This condition can occur even though S2 is running DAI.

DAI ensures that hosts (on untrusted interfaces) connected to a switch running DAI do not poison the ARP caches of other hosts in the network. It does not, however, ensure that hosts from other portions of the network do not poison the caches of the hosts connected to it.

To handle cases in which some switches in a VLAN run DAI and other switches do not, the interfaces connecting such switches should be configured as untrusted. To validate the bindings of packets from non-DAI switches, however, the switch running DAI should be configured with ARP ACLs. When it is not feasible to determine such bindings, switches running DAI should be isolated from non-DAI switches at Layer 3.

DHCP server · Fa6/3 Fa3/3 · Fa6/4 Fa3/4

Page 1076 of the Cisco Systems 4500 user manual — Rate Limiting of ARP Packets
Page 1076 · click to enlarge
Page 1076

Chapter 46 Configuring Dynamic ARP Inspection About Dynamic ARP Inspection

Relative Priority of Static Bindings and DHCP Snooping Entries

As mentioned previously, DAI populates its database of valid MAC address to IP address bindings through DHCP snooping. It also validates ARP packets against statically configured ARP ACLs. It is important to note that ARP ACLs have precedence over entries in the DHCP snooping database. ARP packets are first compared to user-configured ARP ACLs. If the ARP ACL denies the ARP packet, then the packet is denied even if a valid binding exists in the database populated by DHCP snooping.

Logging of Dropped Packets

When the switch drops a packet, it places an entry in the log buffer and then generates system messages on a rate-controlled basis. After the message is generated, the switch clears the entry from the log buffer. Each log entry contains flow information, such as the receiving VLAN, the port number, the source and destination IP addresses, and the source and destination MAC addresses.

You use the ip arp inspection log-buffer global configuration command to configure the number of entries in the buffer and the number of entries needed in the specified interval to generate system messages. You specify the type of packets that are logged by using the ip arp inspection vlan logging global configuration command. For configuration information, see the “Configuring the Log Buffer” section on page 46-14.

Rate Limiting of ARP Packets

DAI performs validation checks in the CPU, so the number of incoming ARP packets is rate-limited to prevent a denial of service attack. By default, the rate for untrusted interfaces is set to 15 pps second but tusted interfaces have no rate limit. When the rate of incoming ARP packets exceeds the configured limit, the port is placed in the error-disable state. The port remains in that state until an administrator intervenes. With the errdisable recovery global configuration command, you can enable error-disable recovery so that ports emerge from this state automatically after a specified timeout period.

You use the ip arp inspection limit global configuration command to limit the rate of incoming ARP requests and responses on the interface. Unless a rate limit is explicitly configured on an interface, changing the trust state of the interface also changes its rate limit to the default value for that trust state; that is, 15 packets per second for untrusted interfaces and unlimited for trusted interfaces. Once a rate limit is configured explicitly, the interface retains the rate limit even when its trust state is changed. At any time, the interface reverts to its default rate limit if the no form of the rate limit command is applied. For configuration information, see the “Limiting the Rate of Incoming ARP Packets” section on page 46-16.

Note When you enable DAI, all ARP packets are forwarded by CPU (software forwarding, the slow path). With this mechanism, whenever a packet exits through multiple ports, the CPU must create as many copies of the packet as there are egress ports. The number of egress ports is a multiplying factor for the CPU. When QoS policing is applied on egress packets that were forwarded by CPU, QoS must be applied in the CPU as well. (You cannot apply QoS in hardware on CPU generated packets because the hardware forwarding path is turned off for CPU generated packets.) Both factors can drive the CPU to a very high utilization level.

Page 1077 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection in DHCP Environments
Page 1077 · click to enlarge
Page 1077

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

Port Channels Function

A given physical port can join a channel only when the trust state of the physical port and of the channel match. Otherwise, the physical port remains suspended in the channel. A channel inherits its trust state from the first physical port that joined the channel. Consequently, the trust state of the first physical port need not match the trust state of the channel.

Conversely, when the trust state is changed on the channel, the new trust state is configured on all the physical ports that comprise the channel.

The rate limit check on port channels is unique. The rate of incoming packets on a physical port is checked against the port channel configuration rather than the physical ports’ configuration.

The rate limit configuration on a port channel is independent of the configuration on its physical ports.

The rate limit is cumulative across all physical ports; that is, the rate of incoming packets on a port channel equals the sum of rates across all physical ports.

When you configure rate limits for ARP packets on trunks, you must account for VLAN aggregation because a high rate limit on one VLAN can cause a denial of service attack to other VLANs when the port is error-disabled by software. Similarly, when a port channel is error-disabled, a high rate limit on one physical port can cause other ports in the channel to go down.

Configuring Dynamic ARP Inspection

These sections describe how to configure DAI on your switch:

  • Configuring Dynamic ARP Inspection in DHCP Environments, page 46-5 (required)
  • DAI Configuration Example, page 46-7
  • Configuring ARP ACLs for Non-DHCP Environments, page 46-11 (optional)
  • Configuring the Log Buffer, page 46-14 (optional)
  • Limiting the Rate of Incoming ARP Packets, page 46-16 (optional)
  • Performing Validation Checks, page 46-19 (optional)

Configuring Dynamic ARP Inspection in DHCP Environments

This procedure shows how to configure dynamic ARP inspection when two switches support this feature. Host 1 is connected to Switch A, and Host 2 is connected to Switch B as shown in Figure 46-3. Both switches are running DAI on VLAN 100 where the hosts are located. A DHCP server is connected to Switch A. Both hosts acquire their IP addresses from the same DHCP server. Switch A has the bindings for Host 1, and Switch B has the bindings for Host 2.

Page 1078 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1078 · click to enlarge
Page 1078

Chapter 46 Configuring Dynamic ARP Inspection Configuring Dynamic ARP Inspection

Figure 46-3 ARP Packet Validation on a VLAN Enabled for DAI

Switch A Switch B

Port 1 Port 3

Host 1 Host 2

For information on how to configure DAI when only one switch supports the feature, see the “Configuring ARP ACLs for Non-DHCP Environments” section on page 46-11.

To configure DAI, perform this task on both switches:

Step 1 Switch# show cdp neighbors Verifies the connection between the switches.

Step 2 Switch# configure terminal Enters global configuration mode.

Step 3 Switch(config)# [no] ip arp inspection vlan vlan-range

Enables DAI on a per-VLAN basis. By default, DAI is disabled on all VLANs.

To disable DAI, use the no ip arp inspection vlan vlan-range global configuration command.

For vlan-range, specify a single VLAN identified by VLAN ID number, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094.

Specify the same VLAN ID for both switches.

Step 4 Switch(config)# interface interface-id Specifies the interface connected to the other switch, and enter interface configuration mode.

DHCP server

Page 1079 of the Cisco Systems 4500 user manual — Switch A
Page 1079 · click to enlarge
Page 1079

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

Step 5 Switch(config-if)# ip arp inspection trust Configures the connection between the switches as trusted.

To return the interfaces to an untrusted state, use the no ip arp inspection trust interface configuration command.

By default, all interfaces are untrusted.

The switch does not check ARP packets that it receives from the other switch on the trusted interface. It forwards the packets.

For untrusted interfaces, the switch intercepts all ARP requests and responses. It verifies that the intercepted packets have valid IP-to-MAC address bindings before updating the local cache and before forwarding the packet to the appropriate destination. The switch drops invalid packets and logs them in the log buffer according to the logging configuration specified with the ip arp inspection vlan logging global configuration command. For more information, see the “Configuring the Log Buffer” section on page 46-14.

Step 6 Switch(config-if)# end Returns to privileged EXEC mode.

Step 7 Switch# show ip arp inspection interfaces Switch# show ip arp inspection vlan vlan-range

Verifies the DAI configuration.

Step 8 Switch# show ip dhcp snooping binding Verifies the DHCP bindings.

Step 9 Switch# show ip arp inspection statistics vlan vlan-range

Checks the DAI statistics.

Step 10 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

DAI Configuration Example

This example shows how to configure DAI on Switch A in VLAN 100. You would perform a similar procedure on Switch B.

Switch A

SwitchA# show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID SwitchB Gig 3/48 179 R S I WS-C4506 Gig 3/46 SwitchA# configure terminal SwitchA(config)# ip arp inspection vlan 100 SwitchA(config)# interface g3/48 SwitchA(config-if)# ip arp inspection trust SwitchA(config-if)# end SwitchA# show ip arp inspection interfaces

Interface Trust State Rate (pps) Burst Interval Gi1/1 Untrusted 15 1 Gi1/2 Untrusted 15 1

Page 1080 of the Cisco Systems 4500 user manual — Table of contents
Page 1080 · click to enlarge
Page 1080

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1081 of the Cisco Systems 4500 user manual — Switch B
Page 1081 · click to enlarge
Page 1081

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

SwitchA# show ip dhcp snooping binding MacAddress IpAddress Lease(sec) Type VLAN Interface 00:01:00:01:00:01 170.1.1.1 3597 dhcp-snooping 100 GigabitEthernet3/27 Total number of bindings: 1

SwitchA# show ip arp inspection statistics vlan 100

Vlan Forwarded Dropped DHCP Drops ACL Drops 100 15 0 0 0

Vlan DHCP Permits ACL Permits Source MAC Failures 100

Vlan Dest MAC Failures IP Validation Failures Invalid Protocol Data 100 SwitchA#

Switch B

SwitchB# show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID SwitchA Gig 3/46 163 R S I WS-C4507R Gig 3/48 SwitchB# SwitchB# configure terminal Enter configuration commands, one per line. End with CNTL/Z. SwitchB(config)# ip arp inspection vlan 100 SwitchB(config)# interface g3/46 SwitchB(config-if)# ip arp inspection trust SwitchB(config-if)# end SwitchB# SwitchB# show ip arp inspection interfaces

Interface Trust State Rate (pps) Burst Interval Gi1/1 Untrusted 15 1 Gi1/2 Untrusted 15 1 Gi3/1 Untrusted 15 1 Gi3/2 Untrusted 15 1 Gi3/3 Untrusted 15 1 Gi3/4 Untrusted 15 1 Gi3/5 Untrusted 15 1 Gi3/6 Untrusted 15 1 Gi3/7 Untrusted 15 1 Gi3/8 Untrusted 15 1 Gi3/9 Untrusted 15 1 Gi3/10 Untrusted 15 1 Gi3/11 Untrusted 15 1 Gi3/12 Untrusted 15 1 Gi3/13 Untrusted 15 1 Gi3/14 Untrusted 15 1 Gi3/15 Untrusted 15 1 Gi3/16 Untrusted 15 1 Gi3/17 Untrusted 15 1 Gi3/18 Untrusted 15 1 Gi3/19 Untrusted 15 1

Page 1082 of the Cisco Systems 4500 user manual — Table of contents
Page 1082 · click to enlarge
Page 1082

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1083 of the Cisco Systems 4500 user manual — Configuring ARP ACLs for Non-DHCP Environments
Page 1083 · click to enlarge
Page 1083

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

Configuring ARP ACLs for Non-DHCP Environments

This procedure shows how to configure DAI when Switch B shown in Figure 46-3 does not support DAI or DHCP snooping.

If you configure port 1 on Switch A as trusted, a security hole is created because both Switch A and Host 1 could be attacked by either Switch B or Host 2. To prevent this possibility, you must configure port 1 on Switch A as untrusted. To permit ARP packets from Host 2, you must set up an ARP ACL and apply it to VLAN 100. If the IP address of Host 2 is not static, such that it is impossible to apply the ACL configuration on Switch A, you must separate Switch A from Switch B at Layer 3 and use a router to route packets between them.

To configure an ARP ACL (on switch A in a non-DHCP environment), perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# arp access-list acl-name Defines an ARP ACL, and enter ARP access-list configuration mode. By default, no ARP access lists are defined.

Step 3 Switch(config-arp-nac)# permit ip host sender-ip mac host sender-mac [log]

Permits ARP packets from the specified host (Host 2).

  • For sender-ip , enter the IP address of Host 2.
  • For sender-mac , enter the MAC address of Host 2.
  • (Optional) Specify log to log a packet in the log buffer when it matches the access control entry (ACE). Matches are logged if you also configure the matchlog keyword in the ip arp inspection vlan logging global configuration command. For more information, see the “Configuring the Log Buffer” section on page 46-14 .

Step 4 Switch(config-arp-nac)# exit Returns to global configuration mode.

Page 1084 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1084 · click to enlarge
Page 1084

Chapter 46 Configuring Dynamic ARP Inspection Configuring Dynamic ARP Inspection

Step 5 Switch(config)# ip arp inspection filter arp-acl-name vlan vlan-range [static]

Applies the ARP ACL to the VLAN. By default, no defined ARP ACLs are applied to any VLAN.

  • For arp-acl-name , specify the name of the ACL created in Step 2.
  • For vlan-range , specify the VLAN that the switches and hosts are in. You can specify a single VLAN identified by VLAN ID number, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094.
  • (Optional) Specify static to treat implicit denies in the ARP ACL as explicit denies and to drop packets that do not match any previous clauses in the ACL. DHCP bindings are not used.

If you do not specify this keyword, it means that there is no explicit deny in the ACL that denies the packet, and DHCP bindings determine whether a packet is permitted or denied if the packet does not match any clauses in the ACL.

ARP packets containing only IP-to-MAC address bindings are compared against the ACL. Packets are permitted only if the access list permits them.

Step 6 Switch(config)# interface interface-id Specifies the Switch A interface that is connected to Switch B, and enter interface configuration mode.

Step 7 Switch(config-if)# no ip arp inspection trust Configures the Switch A interface that is connected to Switch B as untrusted.

By default, all interfaces are untrusted.

For untrusted interfaces, the switch intercepts all ARP requests and responses. It verifies that the intercepted packets have valid IP-to-MAC address bindings before updating the local cache and before forwarding the packet to the appropriate destination. The switch drops invalid packets and logs them in the log buffer according to the logging configuration specified with the ip arp inspection vlan logging global configuration command. For more information, see the “Configuring the Log Buffer” section on page 46-14.

Step 8 Switch(config-if)# end Returns to privileged EXEC mode.

Step 9 Switch# show arp access-list [acl-name] Switch# show ip arp inspection vlan vlan-range Switch# show ip arp inspection interfaces

Verifies the DAI configuration.

Step 10 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 1085 of the Cisco Systems 4500 user manual — Table of contents
Page 1085 · click to enlarge
Page 1085

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1086 of the Cisco Systems 4500 user manual — Configuring the Log Buffer
Page 1086 · click to enlarge
Page 1086

Chapter 46 Configuring Dynamic ARP Inspection Configuring Dynamic ARP Inspection

Gi3/35 Untrusted 15 1 Gi3/36 Untrusted 15 1 Gi3/37 Untrusted 15 1 Gi3/38 Untrusted 15 1 Gi3/39 Untrusted 15 1 Gi3/40 Untrusted 15 1 Gi3/41 Untrusted 15 1 Gi3/42 Untrusted 15 1 Gi3/43 Untrusted 15 1 Gi3/44 Untrusted 15 1 Gi3/45 Untrusted 15 1 Gi3/46 Untrusted 15 1 Gi3/47 Untrusted 15 1 Gi3/48 Untrusted 15 1

SwitchA# show ip arp inspection statistics vlan 100

Vlan Forwarded Dropped DHCP Drops ACL Drops 100 15 169 160 9

Vlan DHCP Permits ACL Permits Source MAC Failures 100

Vlan Dest MAC Failures IP Validation Failures Invalid Protocol Data 100 SwitchA#

Configuring the Log Buffer

When the switch drops a packet, it places an entry in the log buffer and then generates system messages on a rate-controlled basis. After the message is generated, the switch clears the entry from the log buffer. Each log entry contains flow information, such as the receiving VLAN, the port number, the source and destination IP addresses, and the source and destination MAC addresses.

A log-buffer entry can represent more than one packet. For example, if an interface receives many packets on the same VLAN with the same ARP parameters, the switch combines the packets as one entry in the log buffer and generates a single system message for the entry.

If the log buffer overflows, it means that a log event does not fit into the log buffer, and the display for the show ip arp inspection log privileged EXEC command is affected. No other statistics are provided for the entry.

Page 1087 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1087 · click to enlarge
Page 1087

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

To configure the log buffer, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip arp inspection log-buffer {entries number | logs number interval seconds}

Configures the DAI logging buffer.

By default, when DAI is enabled, denied or dropped ARP packets are logged. The number of log entries is 32. The number of system messages is limited to 5 per second. The logging-rate interval is 1 second.

The keywords have these meanings:

  • For entries number , specify the number of entries to be logged in the buffer. The range is 0 to 1024.
  • For logs number interval seconds , specify the number of entries to generate system messages in the specified interval.

For logs number, the range is 0 to 1024. A 0 value means that the entry is placed in the log buffer, but a system message is not generated.

For interval seconds, the range is 0 to 86400 seconds (1 day). A 0 value means that a system message is immediately generated (and the log buffer is always empty).

An interval setting of 0 overrides a log setting of 0.

The logs and interval settings interact. If the logs number X is greater than interval seconds Y, X divided by Y (X/Y) system messages are sent every second. Otherwise, one system message is sent every Y divided by X (Y/X) seconds.

Step 3 Switch(config)# [no] ip arp inspection vlan vlan-range logging {acl-match {matchlog | none} | dhcp-bindings {all | none | permit}}

Controls the type of packets that are logged per-VLAN. By default, all denied or all dropped packets are logged. The term logged means the entry is placed in the log buffer and a system message is generated.

The keywords have these meanings:

  • For vlan-range , specify a single VLAN identified by VLAN ID number, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094.
  • For acl-match matchlog , log packets based on the ACE logging configuration. If you specify the matchlog keyword in this command and the log keyword in the permit or deny ARP access-list configuration command, ARP packets permitted or denied by ACEs with log keyword are logged.
  • For acl-match none , do not log packets that match ACLs.
  • For dhcp-bindings all , log all packets that match DHCP bindings.
  • For dhcp-bindings none , do not log packets that match DHCP bindings.
  • For dhcp-bindings permit , log DHCP-binding permitted packets.

Step 4 Switch(config)# exit Returns to privileged EXEC mode.

Page 1088 of the Cisco Systems 4500 user manual — Limiting the Rate of Incoming ARP Packets
Page 1088 · click to enlarge
Page 1088

Chapter 46 Configuring Dynamic ARP Inspection Configuring Dynamic ARP Inspection

Step 5 Switch# show ip arp inspection log

Verifies your settings.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To return to the default log buffer settings, use the no ip arp inspection log-buffer global configuration command. To return to the default VLAN log settings, use the no ip arp inspection vlan vlan-range logging {acl-match | dhcp-bindings} global configuration command. To clear the log buffer, use the clear ip arp inspection log privileged EXEC command.

This example shows how to configure the number of entries for the log buffer to 1024. It also shows how to configure your Catalyst 4500 series switch so that the logs must be generated from the buffer at the rate of 100 per 10 seconds.

SwitchB# configure terminal Enter configuration commands, one per line. End with CNTL/Z. SwitchB(config)# ip arp inspection log-buffer entries 1024 SwitchB(config)# ip arp inspection log-buffer logs 100 interval 10 SwitchB(config)# end SwitchB# show ip arp inspection log Total Log Buffer Size : 1024 Syslog rate : 100 entries per 10 seconds.

Interface Vlan Sender MAC Sender IP Num Pkts Reason Time Gi3/31 100 0002.0002.0003 170.1.1.2 5 DHCP Deny 02:05:45 UTC Fri Feb 4 2005 SwitchB#

Limiting the Rate of Incoming ARP Packets

The switch CPU performs DAI validation checks; therefore, the number of incoming ARP packets is rate-limited to prevent a denial-of-service attack.

Note Unless you explicitly configure a rate limit on an interface, changing the trust state of the interface also changes its rate limit to the default value for that trust state. After you configure the rate limit, the interface retains the rate limit even when its trust state is changed. If you enter the no ip arp-inspection limit interface configuration command, the interface reverts to its default rate limit.

By default, the switch places the port in the error-disabled state when the rate of incoming ARP packets exceeds the configured limit. To prevent the port from shutting down, you can use the errdisable detect cause arp-inspection action shutdown vlan global configuration command to shut down just the offending VLAN on the port where the violation occurred.

When a port is in the error-disabled state, you can bring it out of this state automatically by configuring the errdisable recovery cause arp-inspection global configuration command or you can manually reenable it by entering the shutdown and no shut down interface configuration commands. If a port is in per-VLAN error-disable mode, you can also use clear errdisable interface name vlan range command to reenable the VLAN on the port.

Page 1089 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1089 · click to enlarge
Page 1089

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

To limit the rate of incoming ARP packets, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# errdisable detect cause arp-inspection [action shutdown vlan]

Enables per-VLAN error-disable detection.

Step 3 Switch(config)# interface interface-id

Specifies the interface to be rate-limited, and enters interface configuration mode.

Step 4 Switch(config-if)# [no] ip arp inspection limit {rate pps [burst interval second] | none}

Limits the rate of incoming ARP requests and responses on the interface.

The default rate is 15 pps on untrusted interfaces and unlimited on trusted interfaces. The burst interval is 1 second.

The keywords have these meanings:

  • For rate pps , specify an upper limit for the number of incoming packets processed per second. The range is 0 to 2048 pps.
  • (Optional) For burst interval seconds , specify the consecutive interval in seconds, over which the interface is monitored for a high rate of ARP packets.The range is 1 to 15.
  • For rate none , specify no upper limit for the rate of incoming ARP packets that can be processed.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# errdisable recovery {cause arp-inspection | interval interval}

(Optional) Enables error recovery from the DAI error-disable state.

By default, recovery is disabled, and the recovery interval is 300 seconds.

For interval interval, specify the time in seconds to recover from the error-disable state. The range is 30 to 86400.

Step 7 Switch(config)# exit Returns to privileged EXEC mode.

Step 8 Switch# show ip arp inspection interfaces

Verifies your settings.

Step 9 Switch# show errdisable recovery Verifies your settings.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To return to the default rate-limit configuration, use the no ip arp inspection limit interface configuration command. To disable error recovery for DAI, use the no errdisable recovery cause arp-inspection global configuration command.

This example shows how to set an upper limit for the number of incoming packets (100 pps) and to specify a burst interval (1 second):

SwitchB# configure terminal Enter configuration commands, one per line. End with CNTL/Z. SwitchB(config)# interface g3/31 SwitchB(config-if)# ip arp inspection limit rate 100 burst interval 1 SwitchB(config-if)# exit SwitchB(config)# errdisable recovery cause arp-inspection SwitchB(config)# exit

Page 1090 of the Cisco Systems 4500 user manual — Table of contents
Page 1090 · click to enlarge
Page 1090

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1091 of the Cisco Systems 4500 user manual — Performing Validation Checks
Page 1091 · click to enlarge
Page 1091

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

vmps Disabled pagp-flap Disabled dtp-flap Disabled link-flap Disabled l2ptguard Disabled psecure-violation Disabled gbic-invalid Disabled dhcp-rate-limit Disabled unicast-flood Disabled storm-control Disabled arp-inspection Enabled

Timer interval300 seconds

Interfaces that will be enabled at the next timeout:

SwitchB# 1w2d: %SW_DAI-4-PACKET_RATE_EXCEEDED: 101 packets received in 739 milliseconds on Gi3/31. 1w2d: %PM-4-ERR_DISABLE: arp-inspection error detected on Gi3/31, putting Gi3/31 in err-disable state SwitchB# show clock *02:21:43.556 UTC Fri Feb 4 2005 SwitchB# SwitchB# show interface g3/31 status

Port Name Status Vlan Duplex Speed Type Gi3/31 err-disabled 100 auto auto 10/100/1000-TX SwitchB# SwitchB# 1w2d: %PM-4-ERR_RECOVER: Attempting to recover from arp-inspection err-disable state on Gi3/31 SwitchB# show interface g3/31 status

Port Name Status Vlan Duplex Speed Type Gi3/31 connected 100 a-full a-100 10/100/1000-TX SwitchB# show clock *02:27:40.336 UTC Fri Feb 4 2005 SwitchB#

Performing Validation Checks

DAI intercepts, logs, and discards ARP packets with invalid IP-to-MAC address bindings. You can configure the switch to perform additional checks on the destination MAC address, the sender and target IP addresses, and the source MAC address.

Page 1092 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1092 · click to enlarge
Page 1092

Chapter 46 Configuring Dynamic ARP Inspection Configuring Dynamic ARP Inspection

To perform specific checks on incoming ARP packets, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip arp inspection validate {[src-mac] [dst-mac] [ip]}

Performs a specific check on incoming ARP packets. By default, no additional checks are performed.

The keywords have these meanings:

  • For src-mac , check the source MAC address in the Ethernet header against the sender MAC address in the ARP body. This check is performed on both ARP requests and responses. When enabled, packets with different MAC addresses are classified as invalid and are dropped.
  • For dst-mac , check the destination MAC address in the Ethernet header against the target MAC address in ARP body. This check is performed for ARP responses. When enabled, packets with different MAC addresses are classified as invalid and are dropped.
  • For ip , check the ARP body for invalid and unexpected IP addresses. Addresses include 0.0.0.0, 255.255.255.255, and all IP multicast addresses. Sender IP addresses are checked in all ARP requests and responses, and target IP addresses are checked only in ARP responses.

You must specify at least one of the keywords. Each command overrides the configuration of the previous command; that is, if a command enables src and dst mac validations, and a second command enables IP validation only, the src and dst mac validations are disabled as a result of the second command.

Step 3 Switch(config)# exit Returns to privileged EXEC mode.

Step 4 Switch# show ip arp inspection vlan vlan-range

Verifies your settings.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable checking, use the no ip arp inspection validate [src-mac] [dst-mac] [ip] global configuration command. To display statistics for forwarded, dropped, MAC validation failure, and IP validation failure packets, use the show ip arp inspection statistics privileged EXEC command.

This example shows how to configure source mac validation. Packets are dropped and an error message may be generated when the source address in the Ethernet header does not match the sender hardware address in the ARP body.

SwitchB# configure terminal Enter configuration commands, one per line. End with CNTL/Z. SwitchB(config)# ip arp inspection validate src-mac SwitchB(config)# exit SwitchB# show ip arp inspection vlan 100

Source Mac ValidationEnabled Destination Mac Validation : Disabled IP Address Validation : Disabled
Page 1093 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1093 · click to enlarge
Page 1093

Chapter 46 Configuring Dynamic ARP Inspection

Configuring Dynamic ARP Inspection

Vlan Configuration Operation ACL Match Static ACL 100 Enabled Active

Vlan ACL Logging DHCP Logging 100 Deny Deny SwitchB# 1w2d: %SW_DAI-4-INVALID_ARP: 9 Invalid ARPs (Req) on Gi3/31, vlan 100.([0002.0002.0002/170.1.1.2/0001.0001.0001/170.1.1.1/02:30:24 UTC Fri Feb 4 2005])

Page 1094 of the Cisco Systems 4500 user manual — Configuring Dynamic ARP Inspection
Page 1094 · click to enlarge
Page 1094

Chapter 46 Configuring Dynamic ARP Inspection Configuring Dynamic ARP Inspection

Page 1095 of the Cisco Systems 4500 user manual — About DHCP Snooping
Page 1095 · click to enlarge
Page 1095

C H A P T E R

Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

This chapter describes how to configure Dynamic Host Configuration Protocol (DHCP) snooping, IP source guard, and IP source guard (IPSG) for static hosts on Catalyst 4500 series switches. It provides guidelines, procedures, and configuration examples.

This chapter consists of the following major sections:

  • About DHCP Snooping, page 45-1
  • Configuring DHCP Snooping, page 45-6
  • Displaying DHCP Snooping Information, page 45-18
  • Displaying IP Source Binding Information, page 45-23
  • Configuring IP Source Guard, page 45-20
  • Displaying IP Source Binding Information, page 45-23
  • Configuring IP Source Guard for Static Hosts, page 45-24

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About DHCP Snooping

DHCP snooping is a DHCP security feature that provides security by filtering untrusted DHCP messages and by building and maintaining a DHCP snooping binding table. An untrusted message is a message that is received from outside the network or firewall and that can cause traffic attacks within your network.

Page 1096 of the Cisco Systems 4500 user manual — About the DHCP Snooping Database Agent
Page 1096 · click to enlarge
Page 1096

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts About DHCP Snooping

The DHCP snooping binding table contains the MAC address, IP address, lease time, binding type, VLAN number, and interface information that corresponds to the local untrusted interfaces of a switch; it does not contain information regarding hosts interconnected with a trusted interface. An untrusted interface is an interface that is configured to receive messages from outside the network or firewall. A trusted interface is an interface that is configured to receive only messages from within the network.

DHCP snooping acts such as a firewall between untrusted hosts and DHCP servers. It also gives you a way to differentiate between untrusted interfaces connected to the end-user and trusted interfaces connected to the DHCP server or another switch.

You can configure DHCP snooping for switches and VLANs. When you enable DHCP snooping on a switch, the interface acts as a Layer 2 bridge, intercepting and safeguarding DHCP messages going to a Layer 2 VLAN. When you enable DHCP snooping on a VLAN, the switch acts as a Layer 2 bridge within a VLAN domain.

This section includes these topics:

  • Trusted and Untrusted Sources, page 45-2
  • About the DHCP Snooping Database Agent, page 45-2
  • Option 82 Data Insertion, page 45-4

Trusted and Untrusted Sources

The DHCP snooping feature determines whether traffic sources are trusted or untrusted. An untrusted source may initiate traffic attacks or other hostile actions. To prevent such attacks, the DHCP snooping feature filters messages and rate-limits traffic from untrusted sources.

In an enterprise network, devices under your administrative control are trusted sources. These devices include the switches, routers and servers in your network. Any device beyond the firewall or outside your network is an untrusted source. Host ports are generally treated as untrusted sources.

In a service provider environment, any device that is not in the service provider network is an untrusted source (such as a customer switch). Host ports are untrusted sources.

In the Catalyst 4500 series switch, you indicate that a source is trusted by configuring the trust state of its connecting interface.

The default trust state of all interfaces is untrusted. You must configure DHCP server interfaces as trusted. You can also configure other interfaces as trusted if they connect to devices (such as switches or routers) inside your network. You usually do not configure host port interfaces as trusted.

About the DHCP Snooping Database Agent

To retain the bindings across switch reloads, you must use the DHCP snooping database agent. Without this agent, the bindings established by DHCP snooping are lost upon switch reload. Connectivity is lost as well.

Page 1097 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1097 · click to enlarge
Page 1097

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

The mechanism for the database agent stores the bindings in a file at a configured location. Upon reload, the switch reads the file to build the database for the bindings. The switch keeps the file current by writing to the file as the database changes.

The format of the file that contains the bindings is as follows:

TYPE DHCP-SNOOPING VERSION 1 BEGIN END

Each entry in the file is tagged with a checksum that is used to validate the entries whenever the file is read. The entry on the first line helps distinguish entries associated with the latest write from entries that are associated with a previous write.

it is a sample bindings file:

3ebe1518 TYPE DHCP-SNOOPING VERSION 1 BEGIN 1.1.1.1 512 0001.0001.0005 3EBE2881 Gi1/1 e5e1e733 1.1.1.1 512 0001.0001.0002 3EBE2881 Gi1/1 4b3486ec 1.1.1.1 1536 0001.0001.0004 3EBE2881 Gi1/1 f0e02872 1.1.1.1 1024 0001.0001.0003 3EBE2881 Gi1/1 ac41adf9 1.1.1.1 1 0001.0001.0001 3EBE2881 Gi1/1 34b3273e END

Each entry holds an IP address, VLAN, MAC address, lease time (in hex), and the interface associated with a binding. At the end of each entry is a checksum that accounts for all the bytes from the start of the file through all the bytes associated with the entry. Each entry consists of 72 bytes of data, followed by a space, followed by a checksum.

Upon bootup, when the calculated checksum equals the stored checksum, a switch reads entries from the file and adds the bindings to the DHCP snooping database. When the calculated checksum does not equal the stored checksum, the entry read from the file is ignored and so are all the entries following the failed entry. The switch also ignores all those entries from the file whose lease time has expired. (This situation is possible because the lease time might indicate an expired time.) An entry from the file is also ignored if the interface referred to in the entry no longer exists on the system or if it is a router port or a DHCP snooping-trusted interface.

When a switch learns of new bindings or when it loses some bindings, the switch writes the modified set of entries from the snooping database to the file. The writes are performed with a configurable delay to batch as many changes as possible before the actual write happens. Associated with each transfer is a timeout after which a transfer is aborted if it is not completed. These timers are referred to as the write delay and abort timeout.

About DHCP Snooping

Page 1098 of the Cisco Systems 4500 user manual — VLAN 10
Page 1098 · click to enlarge
Page 1098

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts About DHCP Snooping

Option 82 Data Insertion

In residential, metropolitan Ethernet-access environments, DHCP can centrally manage the IP address assignments for a large number of subscribers. When the DHCP Option 82 feature is enabled on the switch, a subscriber device is identified by the switch port through which it connects to the network (in addition to its MAC address). Multiple hosts on the subscriber LAN can be connected to the same port on the access switch and are uniquely identified.

Figure 45-1 is an example of a metropolitan Ethernet network in which a centralized DHCP server assigns IP addresses to subscribers connected to the switch at the access layer. Because the DHCP clients and their associated DHCP server do not reside on the same IP network or subnet, a DHCP relay agent (the Catalyst switch) is configured with a helper address to enable broadcast forwarding and to transfer DHCP messages between the clients and the server.

Figure 45-1 DHCP Relay Agent in a Metropolitan Ethernet Network

Catalyst switch (DHCP relay agent)

VLAN 10

Host A (DHCP client)

Host B (DHCP client)

When you enable the DHCP snooping information Option 82 on the switch, this sequence of events occurs:

  • The host (DHCP client) generates a DHCP request and broadcasts it on the network.
  • When the switch receives the DHCP request, it adds the Option 82 information in the packet. By default, the remote ID suboption is the switch MAC address, and the circuit ID suboption is the port identifier, vlan-mod-port , from which the packet is received. Beginning with Cisco IOS Release 12.2(40)SG, you can configure the remote ID and circuit ID. For information on configuring these suboptions, see the “Enabling DHCP Snooping and Option 82” section on page 45-10 .
  • If the IP address of the relay agent is configured, the switch adds this IP address in the DHCP packet.
  • The switch forwards the DHCP request that includes the Option 82 field to the DHCP server.
  • The DHCP server receives the packet. If the server is Option 82-capable, it can use the remote ID, the circuit ID, or both to assign IP addresses and implement policies, such as restricting the number of IP addresses that can be assigned to a single remote ID or circuit ID. The DHCP server then echoes the Option 82 field in the DHCP reply.

DHCP server · Access layer · Subscribers

Page 1099 of the Cisco Systems 4500 user manual — Remote ID Suboption Frame Format
Page 1099 · click to enlarge
Page 1099

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

  • The DHCP server unicasts the reply to the switch if the request was relayed to the server by the switch. The switch verifies that it originally inserted the Option 82 data by inspecting the remote ID and possibly the circuit ID fields. The switch removes the Option 82 field and forwards the packet to the switch port that connects to the DHCP client that sent the DHCP request.

In the default suboption configuration, when the described sequence of events occurs, the values in these fields in Figure 45-2 do not change:

  • Circuit ID suboption fields

– Length of the suboption type

– Circuit ID type

– Length of the circuit ID type

  • Remote ID suboption fields

– Length of the suboption type

– Remote ID type

– Length of the remote ID type

Figure 45-2 shows the packet formats for the remote ID suboption and the circuit ID suboption when the default suboption configuration is used. For the circuit ID suboption, the module number corresponds to the switch module number. The switch uses the packet formats when you globally enable DHCP snooping and enter the ip dhcp snooping information option global configuration command.

Figure 45-2 Suboption Packet Formats

Circuit ID Suboption Frame Format

Circuit ID type Suboption

4 0 6 1

VLAN

1 byte 1 byte 1 byte

1 byte 1 byte 2 bytes

Remote ID Suboption Frame Format

6 0 8 2

1 byte 1 byte 1 byte 1 byte

Show 14 more labels / short text on this page
About DHCP Snooping · – Suboption type · – Suboption type · type · Length Length · Module Port · 1 byte · Suboption · Remote · type · ID type · Length Length · MAC address · 6 bytes
Page 1100 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping
Page 1100 · click to enlarge
Page 1100

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring DHCP Snooping

Figure 45-3 shows the packet formats for user-configured remote ID and circuit ID suboptions. The switch uses these packet formats when DHCP snooping is globally enabled and when the ip dhcp snooping information option format remote-id global configuration command and the ip dhcp snooping vlan information option format-type circuit-id string interface configuration command are entered.

The values for these fields in the packets change from the default values when you configure the remote ID and circuit ID suboptions:

  • Circuit ID suboption fields

– The circuit ID type is 1.

– The length values are variable, depending on the length of the string that you configure.

  • Remote ID suboption fields

– The remote ID type is 1.

– The length values are variable, depending on the length of the string that you configure.

Figure 45-3 User-Configured Suboption Packet Formats

Circuit ID Suboption Frame Format (for user-configured string):

Circuit ID type Suboption

N 1 N+2 1

ASCII Circuit ID string

1 byte 1 byte 1 byte N bytes (N = 3-63)

Remote ID Suboption Frame Format (for user-configured string):

N 1 N+2 2

ASCII Remote ID string or hostname

1 byte 1 byte 1 byte 1 byte

N bytes (N = 1-63)

Configuring DHCP Snooping

When you configure DHCP snooping on your switch, you are enabling the switch to differentiate untrusted interfaces from trusted interfaces. You must enable DHCP snooping globally before you can use DHCP snooping on a VLAN. You can enable DHCP snooping independently from other DHCP features.

These sections describe how to configure DHCP snooping:

  • Default Configuration for DHCP Snooping, page 45-7
  • Enabling DHCP Snooping, page 45-7
Show 8 more labels / short text on this page
type · Length Length · 1 byte · Suboption · Remote · type · ID type · Length Length
Page 1101 of the Cisco Systems 4500 user manual — Enabling DHCP Snooping
Page 1101 · click to enlarge
Page 1101

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

  • Enabling DHCP Snooping on the Aggregration Switch, page 45-9
  • Enabling DHCP Snooping and Option 82, page 45-10
  • Enabling DHCP Snooping on Private VLAN, page 45-12
  • Configuring DHCP Snooping on Private VLAN, page 45-12
  • Configuring DHCP Snooping with an Ethernet Channel Group, page 45-12
  • Enabling the DHCP Snooping Database Agent, page 45-13
  • Limiting the Rate of Incoming DHCP Packets, page 45-13
  • Configuration Examples for the Database Agent, page 45-15

Default Configuration for DHCP Snooping

DHCP snooping is disabled by default. Table 45-1 shows all the default configuration values for each DHCP snooping option.

Table 45-1 Default Configuration Values for DHCP Snooping

Option Default Value/State

DHCP snooping information option Enabled

DHCP snooping information option allow-untrusted

DHCP snooping limit rate Infinite (functions as if rate limiting were disabled)

DHCP snooping trust Untrusted

DHCP snooping vlan Disabled

If you want to change the default configuration values, see the “Enabling DHCP Snooping” section.

Enabling DHCP Snooping

Configuring DHCP Snooping · DHCP snooping Disabled · Disabled

Page 1102 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1102 · click to enlarge
Page 1102

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring DHCP Snooping

To enable DHCP snooping, perform this task:

Step 1 Switch(config)# ip dhcp snooping Enables DHCP snooping globally.

You can use the no keyword to disable DHCP snooping.

Step 2 Switch(config)# ip dhcp snooping vlan number [number] | vlan {vlan range}]

Enables DHCP snooping on your VLAN or VLAN range.

Step 3 Switch(config)# errdisable recovery {cause dhcp-rate-limit | interval interval}

(Optional) Configures the amount of time required for recovery from a specified errfdisable cause.

Step 4 Switch(config)# errdisable detect cause dhcp-rate-limit {action shutdown vlan}

(Optional) Enables per-VLAN errdisable detection.

Step 5 Switch(config-if)# ip dhcp snooping trust Configures the interface as trusted or untrusted.

You can use the no keyword to configure an interface to receive messages from an untrusted client.

Step 6 Switch(config-if)# ip dhcp snooping limit rate rate

Configures the number of DHCP packets per second (pps) that an interface can receive.1

Step 7 Switch(config)# end Exits configuration mode.

Step 8 Switch# show ip dhcp snooping Verifies the configuration.

1. We recommend not configuring the untrusted interface rate limit to more than 100 packets per second. The recommended rate limit for each untrusted client is 15 packets per second. Normally, the rate limit applies to untrusted interfaces. If you want to set up rate limiting for trusted interfaces, keep in mind that trusted interfaces aggregate all DHCP traffic in the switch, and you will need to adjust the rate limit to a higher value. You should fine tune this threshold depending on the network configuration. The CPU should not receive DHCP packets at a sustained rate of more than 1,000 packets per second.

You can configure DHCP snooping for a single VLAN or a range of VLANs. To configure a single VLAN, enter a single VLAN number. To configure a range of VLANs, enter a beginning and an ending VLAN number or a dash and range of VLANs.

The number of incoming DHCP packets is rate-limited to prevent a denial-of-service attack. When the rate of incoming DHCP packets exceeds the configured limit, the switch places the port in the errdisabled state. To prevent the port from shutting down, you can use the errdisable detect cause dhcp-rate-limit action shutdown vlan global configuration command to shut down just the offending VLAN on the port where the violation occurred.

When a secure port is in the errdisabled state, you can bring it out of this state automatically by configuring the errdisable recovery cause dhcp-rate-limit global configuration command or you can manually reenable it by entering the shutdown and no shut down interface configuration commands. If a port is in per-VLAN errdisable mode, you can also use clear errdisable interface name vlan range command to reenable the VLAN on the port.

This example shows how to enable DHCP snooping on VLAN 500 through 555:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip dhcp snooping Switch(config)# ip dhcp snooping vlan 500 555 Switch(config)# ip dhcp snooping information option format remote-id string switch123 Switch(config)# interface GigabitEthernet 5/1 Switch(config-if)# ip dhcp snooping trust Switch(config-if)# ip dhcp snooping limit rate 100

Page 1103 of the Cisco Systems 4500 user manual — Enabling DHCP Snooping on the Aggregration Switch
Page 1103 · click to enlarge
Page 1103

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Switch(config-if)# ip dhcp snooping vlan 555 information option format-type circuit-id string customer-555 Switch(config-if)# interface FastEthernet 2/1 Switch(config-if)# ip dhcp snooping vlan 555 information option format-type circuit-id string customer-500 Switch(config)# end Switch# show ip dhcp snooping Switch DHCP snooping is enabled DHCP snooping is configured on following VLANs: 500,555 DHCP snooping is operational on following VLANs: 500,555 DHCP snooping is configured on the following L3 Interfaces:

Insertion of option 82 is enabled circuit-id default format: vlan-mod-port remote-id: switch123 (string) Option 82 on untrusted port is not allowed Verification of hwaddr field is enabled DHCP snooping trust/rate is configured on the following Interfaces:

Interface Trusted Rate limit (pps) FastEthernet5/1 yes 100 Custom circuit-ids: VLAN 555: customer-555 FastEthernet2/1 no unlimited Custom circuit-ids: VLAN 500: customer-500

The following configuration describes the DHCP snooping configuration steps if routing is defined on another Catalyst switch (for example, a Catalyst 6500 series switch):

// Trust the uplink gigabit Ethernet trunk port

interface range GigabitEthernet 1/1 – 2 switchport mode trunk switchport trunk encapsulation dot1q ip dhcp snooping trust

interface VLAN 14 ip address 10.33.234.1 255.255.254.0 ip helper-address 10.5.1.2

Note If you are enabling trunking on uplink gigabit interfaces, and the above routing configuration is defined on a Catalyst 6500 series switch, you must configure the “trust” relationship with downstream DHCP snooping (on a Catalyst 4500 series switch) which adds Option 82. On a Catalyst 6500 series switch, this task is accomplished with the ip dhcp relay information trusted VLAN configuration command.

Enabling DHCP Snooping on the Aggregration Switch

To enable DHCP snooping on an aggregation switch, configure the interface connecting to a downstream switch as a snooping untrusted port. If the downstream switch (or a device such as a DSLAM in the path between the aggregation switch and the DHCP clients) adds DHCP information Option 82 to the DHCP packets, the DHCP packets would be dropped on arriving on a snooping untrusted port. If you configure

Configuring DHCP Snooping · Switch# · !

Page 1104 of the Cisco Systems 4500 user manual — Enabling DHCP Snooping and Option 82
Page 1104 · click to enlarge
Page 1104

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring DHCP Snooping

the ip dhcp snooping information option allow-untrusted global configuration command on the aggregation switch, the aggregation switch can accept DHCP requests with Option 82 information from any snooping untrusted port.

Enabling DHCP Snooping and Option 82

To enable DHCP snooping and Option 82 on the switch, perform the following steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip dhcp snooping Enables DHCP snooping globally.

Step 3 Switch(config)# ip dhcp snooping vlan vlan-range

Enables DHCP snooping on a VLAN or range of VLANs. The range is 1 to 4094.

You can enter a single VLAN ID identified by VLAN ID number, a series of VLAN IDs separated by commas, a range of VLAN IDs separated by hyphens, or a range of VLAN IDs separated by entering the starting and ending VLAN IDs separated by a space.

Step 4 Switch(config)# ip dhcp snooping information option

Enables the switch to insert and remove DHCP relay information (Option 82 field) in forwarded DHCP request messages to the DHCP server. it is the default setting.

Step 5 Switch(config)# ip dhcp snooping information option format remote-id [string ASCII-string | hostname]

(Optional) Configures the remote ID suboption.

You can configure the remote ID to be:

  • String of up to 63 ASCII characters (no spaces)
  • Configured hostname for the switch

If the hostname is longer than 63 characters, it is truncated to 63 characters in the remote ID configuration.

The default remote ID is the switch MAC address.

Step 6 Switch(config)# ip dhcp snooping information option allow-untrusted

(Optional) If the switch is an aggregation switch connected to an edge switch, enables the switch to accept incoming DHCP snooping packets with Option 82 information from the edge switch.

The default setting is disabled.

Step 7 Switch(config)# interface interface-id

Specifies the interface to be configured, and enter interface configuration mode.

Step 8 Switch(config-if)# ip dhcp snooping vlan vlan information option format-type circuit-id [override] string ASCII-string

(Optional) Configures the circuit ID suboption for the specified interface.

Specify the VLAN and port identifier, using a VLAN ID in the range of 1 to 4094. The default circuit ID is the port identifier, in the format vlan-mod-port.

You can configure the circuit ID to be a string of 3 to 63 ASCII characters (no spaces).

Optional) Use the override keyword when you do not want the circuit-ID suboption inserted in TLV format to define subscriber information.

Page 1105 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1105 · click to enlarge
Page 1105

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Step 9 Switch(config-if)# ip dhcp snooping trust

(Optional) Configures the interface as trusted or untrusted. You can use the no keyword to configure an interface to receive messages from an untrusted client. The default setting is untrusted.

Step 10 Switch(config-if)# ip dhcp snooping limit rate rate

(Optional) Configures the number of DHCP packets per second that an interface can receive. The range is 1 to 2048. By default, no rate limit is configured.

Step 11 Switch(config-if)# exit Returns to global configuration mode.

Step 12 Switch(config)# ip dhcp snooping verify mac-address

(Optional) Configures the switch to verify that the source MAC address in a DHCP packet that is received on untrusted ports matches the client hardware address in the packet. The default is to verify that the source MAC address matches the client hardware address in the packet.

Step 13 Switch(config)# end Returns to privileged EXEC mode.

Step 14 Switch# show running-config Verifies your entries.

Step 15 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable DHCP snooping, use the no ip dhcp snooping global configuration command. To disable DHCP snooping on a VLAN or range of VLANs, use the no ip dhcp snooping vlan vlan-range global configuration command. To disable the insertion and removal of the Option 82 field, use the no ip dhcp snooping information option global configuration command. To configure an aggregation switch to drop incoming DHCP snooping packets with Option 82 information from an edge switch, use the no ip dhcp snooping information option allow-untrusted global configuration command.

This example shows how to enable DHCP snooping globally and on VLAN 10 and to configure a rate limit of 100 packets per second on a port:

Switch(config)# ip dhcp snooping Switch(config)# ip dhcp snooping vlan 10 Switch(config)# ip dhcp snooping information option Switch(config)# interface gigabitethernet2/0/1 Switch(config-if)# ip dhcp snooping limit rate 100

The following example shows how to enable DHCP snooping on VLAN 500 through 555 and option 82 circuit-id:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip dhcp snooping Switch(config)# ip dhcp snooping vlan 500 555 Switch(config)# ip dhcp snooping information option format remote-id string switch123 Switch(config)# interface GigabitEthernet 5/1 Switch(config-if)# ip dhcp snooping trust Switch(config-if)# ip dhcp snooping limit rate 100 Switch(config-if)# ip dhcp snooping vlan 555 information option format-type circuit-id string customer-555 Switch(config-if)# interface FastEthernet 2/1 Switch(config-if)# ip dhcp snooping vlan 555 information option format-type circuit-id string customer-500 Switch(config)# end

Configuring DHCP Snooping

Page 1106 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping with an Ethernet Channel Group
Page 1106 · click to enlarge
Page 1106

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring DHCP Snooping

This example shows how to configure the Option 82 circuit-ID override suboption:

Switch(config-if)# ip dhcp snooping vlan 250 information option format-type circuit-id override string testcustomer

Enabling DHCP Snooping on Private VLAN

DHCP snooping can be enabled on private VLANs, which provide isolation between Layer 2 ports within the same VLAN. If DHCP snooping is enabled (or disabled), the configuration is propagated to both the primary VLAN and its associated secondary VLANs. You cannot enable (or disable) DHCP snooping on a primary VLAN without reflecting this configuration change on the secondary VLANs.

Configuring DHCP snooping on a secondary VLAN is still allowed, but it does not take effect if the associated primary VLAN is already configured. If the associated primary VLAN is configured, the effective DHCP snooping mode on the secondary VLAN is derived from the corresponding primary VLAN. Manually configuring DHCP snooping on a secondary VLAN causes the switch to issue this warning message:

DHCP Snooping configuration may not take effect on secondary vlan XXX

The show ip dhcp snooping command displays all VLANs (both primary and secondary) that have DHCP snooping enabled.

Configuring DHCP Snooping on Private VLAN

DHCP snooping, IPSG, and DAI are Layer 2-based security features that can be enabled and disabled on an individual VLAN, including auxillary/voice VLAN. You need to enable DHCP snooping on a voice VLAN for a Cisco IP phone to function properly.

Configuring DHCP Snooping with an Ethernet Channel Group

When you configure DHCP snooping, you need to configure trunk interfaces that transmit DHCP packets as trusted interfaces by adding ip dhcp snooping trust to the physical interface configuration. However, if DHCP packets will be transmitted over an Ethernet channel group, you must configure ip dhcp snooping trust on the logical port channel interface, for example:

Switch# show run int port-channel50 Building configuration...

Current configuration : 150 bytes ! interface Port-channel50 switchport switchport trunk native vlan 4092 switchport mode trunk switchport nonegotiate ip dhcp snooping trust end

Switch#

Page 1107 of the Cisco Systems 4500 user manual — Limiting the Rate of Incoming DHCP Packets
Page 1107 · click to enlarge
Page 1107

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Enabling the DHCP Snooping Database Agent

To configure the database agent, perform one or more of the following tasks:

Switch(config)# ip dhcp snooping database { url | write-delay seconds | timeout seconds }

(Required) Configures a URL for the database agent (or file) and the related timeout values.

Switch(config)# no ip dhcp snooping database [write-delay | timeout]

Switch# show ip dhcp snooping database [detail] (Optional) Displays the current operating state of the database agent and statistics associated with the transfers.

Switch# clear ip dhcp snooping database statistics (Optional) Clears the statistics associated with the database agent.

Switch# renew ip dhcp snooping database [validation none] [url]

(Optional) Requests the read entries from a file at the given URL.

Switch# ip dhcp snooping binding mac-addr vlan vlan ipaddr interface ifname expiry lease-in-seconds

(Optional) Adds or deletes bindings to the snooping database.

Switch# no ip dhcp snooping binding mac-addr vlan vlan ipaddr interface ifname

Note Because both NVRAM and bootflash have limited storage capacity, you should use TFTP or network-based files. If you use flash to store the database file, new updates (by the agent) result in the creation of new files (flash fills quickly). Moreover, due to the nature of the file system used on the flash, a large number of files can cause slow access. When a file is stored in a remote location accessible through TFTP, an RPR or SSO standby supervisor engine can take over the binding list when a switchover occurs.

Limiting the Rate of Incoming DHCP Packets

The switch CPU performs DHCP validation checks; therefore, the number of incoming DHCP packets is rate-limited to prevent a denial-of-service attack.

When the rate of incoming DHCP packets exceeds the configured limit, the switch places the port in the errdisabled state. The port remains in that state until you intervene or you enable errdisable recovery so that ports automatically emerge from this state after a specified timeout period.

Note Unless you explicitly configure a rate limit on an interface, changing the trust state of the interface also changes its rate limit to the default value for that trust state. After you configure the rate limit, the interface retains the rate limit even when its trust state is changed. If you enter the no ip dhcp snooping limit rate interface configuration command, the interface reverts to its default rate limit.

Configuring DHCP Snooping

Page 1108 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1108 · click to enlarge
Page 1108

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring DHCP Snooping

To prevent the port from shutting down, you can use the errdisable detect cause dhcp-rate-limit action shutdown vlan global configuration command to shut down just the offending VLAN on the port where the violation occurred.

To limit the rate of incoming DHCP packets, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# errdisable detect cause dhcp-rate-limit [action shutdown vlan]

Enables per-VLAN errdisable detection.

Step 3 Switch(config)# interface interface-id

Specifies the interface to be rate-limited, and enter interface configuration mode.

Step 4 Switch(config-if)# [no] ip dhcp snooping limit rate

Limits the rate of incoming DHCP requests and responses on the interface.

The default rate is disabled.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# errdisable recovery {cause dhcp-rate-limit | interval interval}

(Optional) Enables error recovery from the DHCP errdisable state.

By default, recovery is disabled, and the recovery interval is 300 seconds.

For interval interval, specify the time in seconds to recover from the errdisable state. The range is 30 to 86400.

Step 7 Switch(config)# exit Returns to privileged EXEC mode.

Step 8 Switch# show interfaces status Verifies your settings.

Step 9 Switch# show errdisable recovery Verifies your settings.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To return to the default rate-limit configuration, use the no ip dhcp-rate-limit interface configuration command. To disable error recovery for DHCP inspection, use the no errdisable recovery cause dhcp-rate-limit global configuration command.

This example shows how to set an upper limit for the number of incoming packets (100 pps) and to specify a burst interval (1 second):

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface g3/31 Switch(config-if)# ip dhcp-rate-limit rate 100 burst interval 1 Switch(config-if)# exit Switch(config)# errdisable recovery cause dhcp-rate-limit Switch(config)# exit Switch# show interfaces status

Port Name Status Vlan Duplex Speed Type Te1/1 connected 1 full 10G 10GBase-LR Te1/2 connected vl-err-dis full 10G 10GBase-LR

Page 1109 of the Cisco Systems 4500 user manual — Example 1: Enabling the Database Agent
Page 1109 · click to enlarge
Page 1109

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Switch# show errdisable recovery ErrDisable Reason Timer Status udld Disabled bpduguard Disabled security-violatio Disabled channel-misconfig Disabled vmps Disabled pagp-flap Disabled dtp-flap Disabled link-flap Disabled l2ptguard Disabled psecure-violation Disabled gbic-invalid Disabled dhcp-rate-limit Disabled unicast-flood Disabled storm-control Disabled arp-inspection Enabled

Timer interval300 seconds

Interfaces that will be enabled at the next timeout:

Switch# 1w2d: %SW_DAI-4-PACKET_RATE_EXCEEDED: 101 packets received in 739 milliseconds on Gi3/31. 1w2d: %PM-4-ERR_DISABLE: arp-inspection error detected on Gi3/31, putting Gi3/31 in err-disable state Switch# show clock *02:21:43.556 UTC Fri Feb 4 2005 SwitchB# SwitchB# show interface g3/31 status

Port Name Status Vlan Duplex Speed Type Gi3/31 err-disabled 100 auto auto 10/100/1000-TX Switch# Switch# 1w2d: %PM-4-ERR_RECOVER: Attempting to recover from arp-inspection err-disable state on Gi3/31 SwitchB# show interface g3/31 status

Port Name Status Vlan Duplex Speed Type Gi3/31 connected 100 a-full a-100 10/100/1000-TX Switch# show clock *02:27:40.336 UTC Fri Feb 4 2005 Switch#

Configuration Examples for the Database Agent

The following examples show how to configuration commands in the previous procedure:

Example 1: Enabling the Database Agent

The following example shows how to configure the DHCP snooping database agent to store the bindings at a given location and to view the configuration and operating state:

Switch# configure terminal Switch(config)# ip dhcp snooping database tftp://10.1.1.1/directory/file Switch(config)# end

Configuring DHCP Snooping

Page 1110 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1110 · click to enlarge
Page 1110

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring DHCP Snooping

Switch# show ip dhcp snooping database detail Agent URL : tftp://10.1.1.1/directory/file Write delay Timer : 300 seconds Abort Timer : 300 seconds

Agent RunningNo Delay Timer Expiry : 7 (00:00:07) Abort Timer Expiry : Not Running

Last Succeded Time : None Last Failed Time : 17:14:25 UTC Sat Jul 7 2001 Last Failed Reason : Unable to access URL.

Total Attempts : 21 Startup Failures : 0 Successful Transfers : 0 Failed Transfers : 21 Successful Reads : 0 Failed Reads : 0 Successful Writes : 0 Failed Writes : 21 Media Failures : 0

First successful accessRead

Last ignored bindings counters : Binding Collisions : 0 Expired leases : 0 Invalid interfaces : 0 Unsupported vlans : 0 Parse failures : 0 Last Ignored Time : None

Total ignored bindings counters: Binding Collisions : 0 Expired leases : 0 Invalid interfaces : 0 Unsupported vlans : 0 Parse failures : 0

The first three lines of output show the configured URL and related timer configuration values. The next three lines show the operating state and the amount of time left for expiry of write delay and abort timers.

Among the statistics shown in the output, startup failures indicate the number of attempts the read or create of the file has failed upon bootup.

Note Because the location is based off in the network, you must create a temporary file on the TFTP server. You can create a temporary file on a typical UNIX workstation by creating a 0 byte file “file” in the directory “directory” that can be referenced by the TFTP server daemon. With some server implementations on UNIX workstations, the file should be provided with full (777) permissions for write access to the file.

DHCP snooping bindings are keyed on the MAC address and VLAN combination. If an entry in the remote file has an entry for a given MAC address and VLAN set, for which the switch already has a binding, the entry from the remote file is ignored when the file is read. This condition is referred to as the binding collision.

An entry in a file may no longer be valid because the lease indicated by the entry may have expired by the time it is read. The expired leases counter indicates the number of bindings ignored because of this condition. The Invalid interfaces counter refers to the number of bindings that have been ignored when the interface referred by the entry either does not exist on the system or is a router or DHCP snooping trusted interface if it exists, when the read happened. Unsupported VLANs refers to the number of entries that have been ignored because the indicated VLAN is not supported on the system. The Parse failures counter provides the number of entries that have been ignored when the switch is unable to interpret the meaning of the entries from the file.

Switch#

Page 1111 of the Cisco Systems 4500 user manual — Example 2: Reading Binding Entries from a TFTP File
Page 1111 · click to enlarge
Page 1111

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

The switch maintains two sets of counters for these ignored bindings. One provides the counters for a read that has at least one binding ignored by at least one of these conditions. These counters are shown as the “Last ignored bindings counters.” The total ignored bindings counters provides a sum of the number of bindings that have been ignored because of all the reads since the switch bootup. These two set of counters are cleared by the clear command. The total counter set may indicate the number of bindings that have been ignored since the last clear.

Example 2: Reading Binding Entries from a TFTP File

To manually read the entries from a TFTP file, perform this task:

Step 1 Switch# show ip dhcp snooping database Displays the DHCP snooping database agent statistics.

Step 2 Switch# renew ip dhcp snoop data url Directs the switch to read the file from given URL.

Step 3 Switch# show ip dhcp snoop data Displays the read status.

Step 4 Switch# show ip dhcp snoop bind Verifies whether the bindings were read successfully.

it is an example of how to manually read entries from the tftp://10.1.1.1/directory/file:

Switch# show ip dhcp snooping database Agent URL : Write delay Timer : 300 seconds Abort Timer : 300 seconds

Agent RunningNo Delay Timer Expiry : Not Running Abort Timer Expiry : Not Running

Last Succeded Time : None Last Failed Time : None Last Failed Reason : No failure recorded.

Total Attempts : 0 Startup Failures : 0 Successful Transfers : 0 Failed Transfers : 0 Successful Reads : 0 Failed Reads : 0 Successful Writes : 0 Failed Writes : 0 Media Failures : 0 Switch# Switch# renew ip dhcp snoop data tftp://10.1.1.1/directory/file Loading directory/file from 10.1.1.1 (via GigabitEthernet1/1): ! [OK - 457 bytes] Database downloaded successfully.

Switch# 00:01:29: %DHCP_SNOOPING-6-AGENT_OPERATION_SUCCEEDED: DHCP snooping database Read succeeded. Switch# Switch# show ip dhcp snoop data Agent URL : Write delay Timer : 300 seconds Abort Timer : 300 seconds

Agent RunningNo Delay Timer Expiry : Not Running Abort Timer Expiry : Not Running

Configuring DHCP Snooping

Page 1112 of the Cisco Systems 4500 user manual — Displaying DHCP Snooping Information
Page 1112 · click to enlarge
Page 1112

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Displaying DHCP Snooping Information

Last Succeded Time : 15:24:34 UTC Sun Jul 8 2001 Last Failed Time : None Last Failed Reason : No failure recorded.

Total Attempts : 1 Startup Failures : 0 Successful Transfers : 1 Failed Transfers : 0 Successful Reads : 1 Failed Reads : 0 Successful Writes : 0 Failed Writes : 0 Media Failures : 0 Switch# Switch# show ip dhcp snoop bind MacAddress IpAddress Lease(sec) Type VLAN Interface 00:01:00:01:00:05 1.1.1.1 49810 dhcp-snooping 512 GigabitEthernet1/1 00:01:00:01:00:02 1.1.1.1 49810 dhcp-snooping 512 GigabitEthernet1/1 00:01:00:01:00:04 1.1.1.1 49810 dhcp-snooping 1536 GigabitEthernet1/1 00:01:00:01:00:03 1.1.1.1 49810 dhcp-snooping 1024 GigabitEthernet1/1 00:01:00:01:00:01 1.1.1.1 49810 dhcp-snooping 1 GigabitEthernet1/1 Switch# Switch# clear ip dhcp snoop bind Switch# show ip dhcp snoop bind MacAddress IpAddress Lease(sec) Type VLAN Interface Switch#

Example 3: Adding Information to the DHCP Snooping Database

To manually add a binding to the DHCP snooping database, perform this task:

Step 1 Switch# show ip dhcp snooping binding Views the DHCP snooping database.

Step 2 Switch# ip dhcp snooping binding binding-id vlan vlan-id interface interface expiry lease-time

Adds the binding using the ip dhcp snooping exec command.

Step 3 Switch# show ip dhcp snooping binding Checks the DHCP snooping database.

This example shows how to manually add a binding to the DHCP snooping database:

Switch# show ip dhcp snooping binding MacAddress IpAddress Lease(sec) Type VLAN Interface Switch# Switch# ip dhcp snooping binding 1.1.1 vlan 1 1.1.1.1 interface gi1/1 expiry 1000

Switch# show ip dhcp snooping binding MacAddress IpAddress Lease(sec) Type VLAN Interface 00:01:00:01:00:01 1.1.1.1 992 dhcp-snooping 1 GigabitEthernet1/1 Switch#

Displaying DHCP Snooping Information

You can display a DHCP snooping binding table and configuration information for all interfaces on a switch.

Page 1113 of the Cisco Systems 4500 user manual — About IP Source Guard
Page 1113 · click to enlarge
Page 1113

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

About IP Source Guard

Displaying a Binding Table

The DHCP snooping binding table for each switch contains binding entries that correspond to untrusted ports. The table does not contain information about hosts interconnected with a trusted port because each interconnected switch has its own DHCP snooping binding table.

This example shows how to display the DHCP snooping binding information for a switch:

Switch# show ip dhcp snooping binding MacAddress IpAddress Lease(sec) Type VLAN Interface 00:02:B3:3F:3B:99 55.5.5.2 6943 dhcp-snooping 10 FastEthernet6/10 Switch#

Table 45-2 describes the fields in the show ip dhcp snooping binding command output.

Table 45-2 show ip dhcp snooping binding Command Output

Field Description

MAC Address Client hardware MAC address

IP Address Client IP address assigned from the DHCP server

Lease (seconds) IP address lease time

Type Binding type; dynamic binding learned by DHCP snooping or statically-configured binding.

VLAN VLAN number of the client interface

Interface Interface that connects to the DHCP client host

Displaying the DHCP Snooping Configuration

This example shows how to display the DHCP snooping configuration for a switch.

Switch# show ip dhcp snooping Switch DHCP snooping is enabled. DHCP Snooping is configured on the following VLANs: 10 30-40 100 200-220 Insertion of option 82 is enabled Option82 on untrusted port is not allowed Verification of hwaddr field is enabled Interface Trusted Rate limit (pps) FastEthernet2/1 yes 10 FastEthernet3/1 yes none GigabitEthernet1/1 no 20 Switch#

About IP Source Guard

The IP source guard feature is enabled on a DHCP snooping untrusted Layer 2 port. Initially, all IP traffic on the port is blocked except for DHCP packets that are captured by the DHCP snooping process. When a client receives a valid IP address from the DHCP server, or when you configure a static IP source binding, a per-port and VLAN access control list (VACL) is installed on the port. This process restricts

Page 1114 of the Cisco Systems 4500 user manual — Configuring IP Source Guard
Page 1114 · click to enlarge
Page 1114

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring IP Source Guard

the client IP traffic to those source IP addresses configured in the binding; any IP traffic with a source IP address other than that in the IP source binding is filtered out. This filtering limits the ability of a host to attack the network by claiming a neighbor host’s IP address.

IP source guard supports the Layer 2 port only, including both access and trunk. For each untrusted Layer 2 port, there are two levels of IP traffic security filtering:

  • Source IP address filter

IP traffic is filtered based on its source IP address. Only IP traffic with a source IP address that matches the IP source binding entry is permitted.

An IP source address filter is changed when a new IP source entry binding is created or deleted on the port. The port VACL is recalculated and reapplied in the hardware to reflect the IP source binding change. By default, if the IP filter is enabled without any IP source binding on the port, a default PVACL that denies all IP traffic is installed on the port. Similarly, when the IP filter is disabled, any IP source filter PVACL is removed from the interface.

  • Source IP and MAC address filter

IP traffic is filtered based on its source IP address as well as its MAC address; only IP traffic with source IP and MAC addresses matching the IP source binding entry are permitted.

Note When IP source guard is enabled in IP and MAC filtering mode, the DHCP snooping Option 82 must be enabled to ensure that the DHCP protocol works properly. Without Option 82 data, the switch cannot locate the client host port to forward the DHCP server reply. Instead, the DHCP server reply is dropped, and the client cannot obtain an IP address.

Configuring IP Source Guard

To enable IP source guard, perform this task:

Step 1 Switch(config)# ip dhcp snooping Enables DHCP snooping globally.

You can use the no keyword to disable DHCP snooping.

Step 2 Switch(config)# ip dhcp snooping vlan number [number]

Enables DHCP snooping on your VLANs.

Page 1115 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1115 · click to enlarge
Page 1115

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Configuring IP Source Guard

Step 3 Switch(config-if)# no ip dhcp snooping trust Configures the interface as trusted or untrusted.

You can use the no keyword of to configure an interface to receive only messages from within the network.

Step 4 Switch(config-if)# ip verify source vlan dhcp-snooping port-security

Enables IP source guard, source IP, and source MAC address filtering on the port.

Step 5 Switch(config-if)# switchport port-security limit rate invalid-source-mac N

Enables security rate limiting for learned source MAC addresses on the port.

Step 6 Switch(config)# ip source binding mac-address Vlan vlan-id ip-address interface interface-name

Configures a static IP binding on the port.

Step 7 Switch(config)# end Exits configuration mode.

Step 8 Switch# show ip verify source interface interface-name

Verifies the configuration.

If you want to stop IP source guard with static hosts on an interface, use the following commands in interface configuration submode:

Switch(config-if)# no ip verify source Switch(config-if)# no ip device tracking max

If the no ip device tracking command is used in interface configuration submode, it actually runs in global configuration mode and causes IP device tracking to be disabled globally. For all the interfaces using the ip verify source tracking [port-security] command, disabling IP device tracking globally will cause IP source guard with static hosts to deny all IP traffic from those interfaces.

Static IP source binding can only be configured on switch port.

This example shows how to enable per-Layer 2 port IP source guard on VLAN 10 through 20:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip dhcp snooping Switch(config)# ip dhcp snooping vlan 10 20 Switch(config)# interface fa6/1 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# switchport trunk native vlan 10 Switch(config-if)# switchport trunk allowed vlan 11-20 Switch(config-if)# no ip dhcp snooping trust Switch(config-if)# ip verify source vlan dhcp-snooping Switch(config)# end

Page 1116 of the Cisco Systems 4500 user manual — Displaying IP Source Guard Information
Page 1116 · click to enlarge
Page 1116

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Displaying IP Source Guard Information

Switch# show ip verify source interface f6/1 Interface Filter-type Filter-mode IP-address Mac-address Vlan Fa6/1 ip-mac active 10.0.0.1 10 Fa6/1 ip-mac active deny-all 11-20 Switch#

The output shows that there is one valid DHCP binding to VLAN 10.

Configuring IP Source Guard on Private VLANs

For IP source guard to be effective on PVLAN ports, you must enable DHCP snooping on primary VLANs. IP source guard on a primary VLAN is automatically propagated to a secondary VLAN. You can configure static IP source binding on a secondary VLAN, but it does not work. When manually configuring a static IP source binding on a secondary VLAN, you receive the following message:

IP source filter may not take effect on a secondary VLAN where IP source binding is configured. If the private VLAN feature is enabled, IP source filter on the primary VLAN will automatically propagate to all secondary VLAN.

Displaying IP Source Guard Information

You can display IP source guard PVACL information for all interfaces on a switch using the show ip verify source command, as the following examples show:

  • This example shows displayed PVACLs if DHCP snooping is enabled on VLAN 10 through 20, if interface fa6/1 is configured for IP filtering, or if there is an existing IP address binding 10.0.01 on VLAN 10:

Interface Filter-type Filter-mode IP-address Mac-address Vlan fa6/1 ip active 10.0.0.1 10 fa6/1 ip active deny-all 11-20

  • This example shows displayed PVACL for a trusted port:

Interface Filter-type Filter-mode IP-address Mac-address Vlan fa6/2 ip inactive-trust-port

  • This example shows displayed PVACL for a port in a VLAN not configured for DHCP snooping:

Interface Filter-type Filter-mode IP-address Mac-address Vlan fa6/3 ip inactive-no-snooping-vlan

  • This example shows displayed PVACLs for a port with multiple bindings configured for an IP-to-MAC filtering:

Interface Filter-type Filter-mode IP-address Mac-address Vlan fa6/4 ip-mac active 10.0.0.2 aaaa.bbbb.cccc 10 fa6/4 ip-mac active 11.0.0.1 aaaa.bbbb.cccd 11 fa6/4 ip-mac active deny-all deny-all 12-20

Page 1117 of the Cisco Systems 4500 user manual — Field Description
Page 1117 · click to enlarge
Page 1117

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Displaying IP Source Binding Information

  • This example shows displayed PVACLs for a port configured for IP-to-MAC filtering but not for port security:

Interface Filter-type Filter-mode IP-address Mac-address Vlan fa6/5 ip-mac active 10.0.0.3 permit-all 10 fa6/5 ip-mac active deny-all permit-all 11-20

  • This example shows displayed error message when entering the show ip verify source command on a port that does not have an IP source filter mode configured:

IP Source Guard is not configured on the interface fa6/6.

You can also use the show ip verify source command to display all interfaces on the switch that have IP source guard enabled, as follows:

Interface Filter-type Filter-mode IP-address Mac-address Vlan fa6/1 ip active 10.0.0.1 10 fa6/1 ip active deny-all 11-20 fa6/2 ip inactive-trust-port fa6/3 ip inactive-no-snooping-vlan fa6/4 ip-mac active 10.0.0.2 aaaa.bbbb.cccc 10 fa6/4 ip-mac active 11.0.0.1 aaaa.bbbb.cccd 11 fa6/4 ip-mac active deny-all deny-all 12-20 fa6/5 ip-mac active 10.0.0.3 permit-all 10 fa6/5 ip-mac active deny-all permit-all 11-20

Displaying IP Source Binding Information

You can display all IP source bindings configured on all interfaces on a switch using the show ip source binding command.

Switch# show ip source binding MacAddress IpAddress Lease(sec) Type VLAN Interface 00:02:B3:3F:3B:99 55.5.5.2 6522 dhcp-snooping 10 FastEthernet6/10 00:00:00:0A:00:0B 11.0.0.1 infinite static 10 FastEthernet6/10 Switch#

Table 45-3 describes the fields in the show ip source binding command output.

Table 45-3 show ip source binding Command Output

Field Description

MAC Address Client hardware MAC address

IP Address Client IP address assigned from the DHCP server

Lease (seconds) IP address lease time

Type Binding type; static bindings configured from CLI to dynamic binding learned from DHCP snooping

Page 1118 of the Cisco Systems 4500 user manual — About IP Source Guard for Static Hosts
Page 1118 · click to enlarge
Page 1118

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring IP Source Guard for Static Hosts

Table 45-3 show ip source binding Command Output (continued)

Field Description

VLAN VLAN number of the client interface

Interface Interface that connects to the DHCP client host

Configuring IP Source Guard for Static Hosts

IP source guard (IPSG) for static hosts extends the IPSG capability to non-DHCP and static environments.

This section includes these topics:

  • About IP Source Guard for Static Hosts, page 45-24
  • Configuring IPSG for Static Hosts on a Layer 2 Access Port, page 45-25
  • IPSG for Static Hosts on a PVLAN Host Port, page 45-28

About IP Source Guard for Static Hosts

The prior feature, IPSG, uses the entries created by the DHCP snooping feature to validate the hosts connected to a switch. Any traffic received from a host without a valid DHCP binding entry is dropped. A DHCP environment is a prerequisite for IPSG to work. The IPSG for static hosts feature removes IPSG’ dependency on DHCP. The switch creates static entries based on ARP requests or other IP packets and uses them to maintain the list of valid hosts for a given port. In addition, you can specify the number of hosts that would be allowed to send traffic to a given port. it is equivalent to port security at Layer 3.

Note Some IP hosts with multiple network interfaces may inject some invalid packets into a network interface. Those invalid packets contain the IP-to-MAC address for another network interface of that host as the source address. It may cause IIPSG for static hosts in the switch, which connects to the host, to learn the invalid IP-to-MAC address bindings and reject the valid bindings. You should consult the vendor of the corresponding operating system and/or the network device of that host to prevent it from injecting invalid packets.

IPSG for static hosts initially learns IP /MAC bindings dynamically through an ACL-based snooping method. IP-to-MAC bindings are learned from static hosts by using ARP and IP packets and are stored using the device tracking database. Once the number of IP addresses that have been dynamically learned or statically configured on a given port reaches a maximum limit, any packet with a new IP address is dropped in hardware. To handle hosts that have moved or gone away for any reason, the IPSG for static hosts feature uses the IP device tracking functionality to age out dynamically learned IP address bindings. This feature can be used in conjunction with DHCP snooping. Multiple bindings will be established on a port that is connected to both DHCP and static hosts (that is, bindings will be stored in both the device tracking database as well as the DHCP snooping binding database).

Page 1119 of the Cisco Systems 4500 user manual — Configuring IPSG for Static Hosts on a Layer 2 Access Port
Page 1119 · click to enlarge
Page 1119

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Configuring IP Source Guard for Static Hosts

Configuring IPSG for Static Hosts on a Layer 2 Access Port

You can configure IPSG for static hosts on a Layer 2 access port.

To enable IPSG for static hosts with IP filters on a Layer 2 access port, perform this task:

Step 1 Switch(config)# ip device tracking Turns on the IP host table.

Step 2 Switch(config)# ip device tracking [probe {count count | interval interval}]

(Optional) Configures these parameters for the IP device tracking table:

  • count— Number of times that the switch sends the ARP probe. The range is 1 to 5. The default is 3.
  • interval— Number of seconds that the switch waits for a response before resending the ARP probe. The range is 30 to 300 seconds. The default is 30 seconds.

Step 3 Switch(config)# ip device tracking [probe {delay interval}]

(Optional) Configures the optional probe delay parameter for the IP device tracking table:

  • interval —Number of seconds that the switch delays sending an ARP probe, triggered by link-up and ARP probe generation by the tracked device. The range is 1 to 120 seconds. The default is 0 seconds.

Step 4 Switch(config)# interface fastEthernet a/b Enters IP configuration mode.

Step 5 Switch(config-if)# switchport mode access Configures a port as access.

Step 6 Switch(config-if)# switchport access vlan n Configures the VLAN for this port.

Step 7 Switch(config-if)# ip device tracking maximum n Establishes a maximum limit for the bindings on this port.

Upper bound for the maximum is 10.

Step 8 Switch(config-if)# switchport port-security (Optional) Activates port security for this port.

Step 9 Switch(config-if)# switchport port-security maximum n

(Optional) Establishes a maximum number of MAC addresses for this port.

Step 10 Switch(config-if)# ip verify source tracking [port-security]

Activates IPSG for static hosts on this port.

Step 11 Switch(config-if)# end Exits configuration interface mode.

Step 12 Switch# show ip verify source interface-name Verifies the configuration.

Step 13 Switch# show ip device track all [active | inactive] count

Verifies the configuration by displaying the IP-to-MAC binding for a given host on the switch interface.

  • all active— Displays only the active IP-to-MAC binding entries.
  • all inactive— Displays only the inactive IP-to-MAC binding entries.
  • all —Displays the active and inactive IP-to-MAC binding entries.
Page 1120 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1120 · click to enlarge
Page 1120

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring IP Source Guard for Static Hosts

To stop IPSG with static hosts on an interface, use the following commands in interface configuration submode:

Switch(config-if)# no ip verify source Switch(config-if)# no ip device tracking max"

To enable IPSG with static hosts on a port, enter the following commands:

Switch(config)# ip device tracking ****enable IP device tracking globally Switch(config)# ip device tracking max <n> ****set an IP device tracking maximum on int Switch(config-if)# ip verify source tracking [port-security] ****activate IPSG on the port

This example shows how to enable IPSG for static hosts with IP filters on a Layer 2 access port and to verify the three valid IP bindings on the interface Fa4/3:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip device tracking Switch(config)# interface fastEthernet 4/3 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 10 Switch(config-if)# ip device tracking maximum 5 Switch(config-if)# ip verify source tracking Switch(config-if)# end

Switch# show ip verify source Interface Filter-type Filter-mode IP-address Mac-address Vlan Fa4/3 ip trk active 40.1.1.24 10 Fa4/3 ip trk active 40.1.1.20 10 Fa4/3 ip trk active 40.1.1.21 10

The following example shows how to enable IPSG for static hosts with IP MAC filters on a Layer 2 access port, to verify the five valid IP-MAC bindings on the interface Fa4/3, and to verify that the number of bindings on this interface has reached the maximum limit:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip device tracking Switch(config)# interface fastEthernet 4/3 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 1 Switch(config-if)# ip device tracking maximum 5 Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 5 Switch(config-if)# ip verify source tracking port-security Switch(config-if)# end

Switch# show ip verify source Interface Filter-type Filter-mode IP-address Mac-address Vlan Fa4/3 ip-mac trk active 40.1.1.24 00:00:00:00:03:04 1 Fa4/3 ip-mac trk active 40.1.1.20 00:00:00:00:03:05 1 Fa4/3 ip-mac trk active 40.1.1.21 00:00:00:00:03:06 1 Fa4/3 ip-mac trk active 40.1.1.22 00:00:00:00:03:07 1 Fa4/3 ip-mac trk active 40.1.1.23 00:00:00:00:03:08 1

Page 1121 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1121 · click to enlarge
Page 1121

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Configuring IP Source Guard for Static Hosts

The following example displays all IP-to-MAC binding entries for all interfaces. The CLI displays all active as well as inactive entries. When a host is learned on a interface, the new entry is marked as active. When the same host is disconnected from the current interface and connected to a different interface, a new IP-to-MAC binding entry is displayed as active as soon as the host is detected. The old entry for this host on the previous interface is now marked as inactive.

Switch# show ip device tracking all IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Vlan Interface STATE 200.1.1.8 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.9 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.10 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.1 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.1 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.2 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.2 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.3 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.3 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.4 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.4 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.5 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.5 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.6 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.7 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE

The following example displays all active IP-to-MAC binding entries for all interfaces:

Switch# show ip device tracking all active IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Vlan Interface STATE 200.1.1.1 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.2 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.3 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.4 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE 200.1.1.5 0001.0600.0000 9 GigabitEthernet4/1 ACTIVE

The following example displays all inactive IP-to-MAC binding entries for all interfaces. The host was first learned on GigabitEthernet 3/1 then moved to GigabitEthernet 4/1. The IP-to-MAC binding entries learned on GigabitEthernet 3/1 are marked as inactive.

Switch# show ip device tracking all inactive IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Vlan Interface STATE 200.1.1.8 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.9 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.10 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.1 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.2 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.3 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.4 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE

Page 1122 of the Cisco Systems 4500 user manual — IPSG for Static Hosts on a PVLAN Host Port
Page 1122 · click to enlarge
Page 1122

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring IP Source Guard for Static Hosts

200.1.1.5 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.6 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE 200.1.1.7 0001.0600.0000 8 GigabitEthernet3/1 INACTIVE

The following example display the count of all IP device tracking host entries for all interfaces:

Switch# show ip device tracking all count Total IP Device Tracking Host entries: 5 Interface Maximum Limit Number of Entries Fa4/3 5

IPSG for Static Hosts on a PVLAN Host Port

You can configure IPSG for static hosts on a PVLAN host port.

To enable IPSG for static hosts with IP filters on a PVLAN host port, perform this task:

Step 1 Switch(config)# vlan n1 Enters configuration VLAN mode.

Step 2 Switch(config-vlan)# private-vlan primary Establishes a primary VLAN on a PVLAN port.

Step 3 Switch(config-vlan)# exit Exits VLAN configuration mode.

Step 4 Switch(config)# vlan n2 Enters configuration VLAN mode.

Step 5 Switch(config-vlan)# private-vlan isolated Establishes an isolated VLAN on a PVLAN port.

Step 6 Switch(config-vlan)# exit Exits VLAN configuration mode.

Step 7 Switch(config)# vlan n1 Enters configuration VLAN mode.

Step 8 Switch(config-vlan)# private-vlan association 201 Associates the VLAN on an isolated PVLAN port.

Step 9 Switch(config-vlan)# exit Exits VLAN configuration mode.

Step 10 Switch(config)# interface fastEthernet a/b Enters interface configuration mode.

Step 11 Switch(config-if)# switchport mode private-vlan host

(Optional) Establishes a port as a PVLAN host.

Step 12 SSwitch(config-if)# switchport private-vlan host-association a b

(Optional) Associates this port with the corresponding PVLAN.

Step 13 Switch(config-if)# ip device tracking maximum n Establishes a maximum limit for the bindings on this port.

Step 14 Switch(config-if)# ip verify source tracking [port-security]

Activates IPSG for static hosts on this port.

Step 15 Switch(config-if)# end Exits configuration interface mode.

Step 16 Switch# show ip device tracking all Verifies the configuration.

Step 17 Switch# show ip verify source interface-name Verifies the configuration.

This example shows how to enable IPSG for static hosts with IP filters on a PVLAN host port:

Switch(config)# vlan 200 Switch(config-vlan)# private-vlan primary Switch(config-vlan)# exit Switch(config)# vlan 201 Switch(config-vlan)# private-vlan isolated

Page 1123 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1123 · click to enlarge
Page 1123

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts

Configuring IP Source Guard for Static Hosts

Switch(config-vlan)# exit Switch(config)# vlan 200 Switch(config-vlan)# private-vlan association 201 Switch(config-vlan)# exit Switch(config)# int fastEthernet 4/3 Switch(config-if)# switchport mode private-vlan host Switch(config-if)# switchport private-vlan host-association 200 201 Switch(config-if)# ip device tracking maximum 8 Switch(config-if)# ip verify source tracking

Switch# show ip device tracking all IP Device Tracking = Enabled IP Device Tracking Probe Count = 3 IP Device Tracking Probe Interval = 30 IP Address MAC Address Vlan Interface STATE 40.1.1.24 0000.0000.0304 200 FastEthernet4/3 ACTIVE 40.1.1.20 0000.0000.0305 200 FastEthernet4/3 ACTIVE 40.1.1.21 0000.0000.0306 200 FastEthernet4/3 ACTIVE 40.1.1.22 0000.0000.0307 200 FastEthernet4/3 ACTIVE 40.1.1.23 0000.0000.0308 200 FastEthernet4/3 ACTIVE

The output shows the five valid IP-to-MAC bindings that have been learned on the interface Fa4/3. For the PVLAN, the bindings are associated with primary VLAN ID. In this example, the primary VLAN ID, 200, is shown in the table.

Switch# show ip verify source Interface Filter-type Filter-mode IP-address Mac-address Vlan Fa4/3 ip trk active 40.1.1.23 200 Fa4/3 ip trk active 40.1.1.24 200 Fa4/3 ip trk active 40.1.1.20 200 Fa4/3 ip trk active 40.1.1.21 200 Fa4/3 ip trk active 40.1.1.22 200 Fa4/3 ip trk active 40.1.1.23 201 Fa4/3 ip trk active 40.1.1.24 201 Fa4/3 ip trk active 40.1.1.20 201 Fa4/3 ip trk active 40.1.1.21 201 Fa4/3 ip trk active 40.1.1.22 201

The output shows that the five valid IP-to-MAC bindings are on both the primary and secondary VLAN.

Page 1124 of the Cisco Systems 4500 user manual — Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts
Page 1124 · click to enlarge
Page 1124

Chapter 45 Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hosts Configuring IP Source Guard for Static Hosts

Page 1125 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1125 · click to enlarge
Page 1125

C H A P T E R

Configuring Network Security with ACLs

This chapter describes how to use access control lists (ACLs) to configure network security on the Catalyst 4500 series switches.

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

This chapter consists of the following major sections:

  • About ACLs, page 47-2
  • Hardware and Software ACL Support, page 47-6
  • TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor Engine V-10GE, page 47-7
  • TCAM Programming and ACLs for Supervisor Engine 6-E and Supervisor Engine 6L-E, page 47-16
  • Layer 4 Operators in ACLs, page 47-16
  • Configuring Unicast MAC Address Filtering, page 47-20
  • Configuring Named MAC Extended ACLs, page 47-20
  • Configuring EtherType Matching, page 47-22
  • Configuring Named IPv6 ACLs, page 47-23
  • Applying IPv6 ACLs to a Layer 3 Interface, page 47-24
  • Configuring VLAN Maps, page 47-24
  • Displaying VLAN Access Map Information, page 47-32
Page 1126 of the Cisco Systems 4500 user manual — Overview
Page 1126 · click to enlarge
Page 1126

Chapter 47 Configuring Network Security with ACLs About ACLs

  • Using VLAN Maps with Router ACLs, page 47-32
  • Configuring PACLs, page 47-35
  • Using PACL with VLAN Maps and Router ACLs, page 47-41
  • Configuring RA Guard, page 47-43

About ACLs

This section includes these topics:

  • Overview, page 47-2
  • Supported Features That Use ACLs, page 47-3
  • Router ACLs, page 47-3
  • Port ACLs, page 47-4
  • Dynamic ACLs, page 47-5
  • VLAN Maps, page 47-5

Overview

An ACL is a collection of sequential permit and deny conditions that applies to packets. When a packet is received on an interface, the switch compares the fields in the packet against any applied ACLs to verify that the packet has the permissions required to be forwarded, based on the conditions specified in the access lists. It tests the packets against the conditions in an access list one-by-one. The first match determines whether the switch accepts or rejects the packets. Because the switch stops testing conditions after the first match, the order of conditions in the list is critical. If no conditions match, the switch drops the packet. If no restrictions exist, the switch forwards the packet; otherwise, the switch drops the packet.

Switches traditionally operate at Layer 2, switching traffic within a VLAN. Routers route traffic between VLANs at Layer 3. The Catalyst 4500 series switch can accelerate packet routing between VLANs by using Layer 3 switching. The Layer 3 switch bridges the packet, and then routes the packet internally without going to an external router. The packet is then bridged again and sent to its destination. During this process, the switch can control all packets, including packets bridged within a VLAN.

You configure access lists on a router or switch to filter traffic and provide basic security for your network. If you do not configure ACLs, all packets passing using the switch could be allowed on all parts of the network. You can use ACLs to control which hosts can access different parts of a network or to decide which types of traffic are forwarded or blocked at router interfaces. For example, you can allow e-mail traffic to be forwarded but not Telnet traffic. ACLs can be configured to block inbound traffic, outbound traffic, or both. However, on Layer 2 interfaces, you can apply ACLs only in the inbound direction.

An ACL contains an ordered list of access control entries (ACEs). Each ACE specifies permit or deny and a set of conditions the packet must satisfy in order to match the ACE. The meaning of permit or deny depends on the context in which the ACL is used.

Page 1127 of the Cisco Systems 4500 user manual — Router ACLs
Page 1127 · click to enlarge
Page 1127

Chapter 47 Configuring Network Security with ACLs

The Catalyst 4500 series switch supports three types of ACLs:

  • IP ACLs, which filter IP traffic, including TCP, the User Datagram Protocol (UDP), Internet Group Management Protocol (IGMP), and Internet Control Message Protocol (ICMP).
  • IPv6 ACLs (applies only to Supervisor Engine 6E).
  • MAC ACLs which match based on Ethernet addresses and Ether Type.

Supported Features That Use ACLs

The switch supports two applications of ACLs to filter traffic:

  • Router ACLs are applied to Layer 3 interfaces. They control the access of routed traffic between VLANs. All Catalyst 4500 series switches can create router ACLs, but you must have a Cisco IOS software image on your switch to apply an ACL to a Layer 3 interface and filter packets routed between VLANs.
  • Port ACLs perform access control on traffic entering a Layer 2 interface. If insufficient hardware CAM entries exist, the output port ACL is not applied to the port and a warning message is given to user. (This restriction applies to all access group modes for output port ACLs.) When sufficient CAM entries exist, the output port ACL may be reapplied.

If there is any output port ACL configured on a Layer 2 port, then no VACL or router ACL can be configured on the VLANs that the Layer 2 port belongs to. Also, the reverse is true: port ACLs and VLAN-based ACLs (VACLs and router ACLs) are mutually exclusive on a Layer 2 port. This restriction applies to all access group modes. On the input direction, port ACLs, VLAN-based ACLs, and router ACLs can co-exist.

You can apply one IPv4 access list, one IPv6 access list and one MAC access list for a Layer 2 interface.

  • VLAN ACLs or VLAN maps control the access of all packets (bridged and routed). You can use VLAN maps to filter traffic between devices in the same VLAN. You do not need the enhanced image to create or apply VLAN maps. VLAN maps are configured to control access based on Layer 3 addresses for IP. MAC addresses using Ethernet ACEs control the access of unsupported protocols. After you apply a VLAN map to a VLAN, all packets (routed or bridged) entering the VLAN are checked against that map. Packets can either enter the VLAN through a switch port or through a routed port after being routed.

You can use both router ACLs and VLAN maps on the same switch.

Router ACLs

You can apply one access list of each supported type to an interface.

Multiple features can use one ACL for a given interface, and one feature can use multiple ACLs. When a single router ACL is used by multiple features, it is examined multiple times. The access list type determines the input to the matching operation:

  • Standard IP access lists use source addresses for matching operations.

About ACLs

Page 1128 of the Cisco Systems 4500 user manual — Port ACLs
Page 1128 · click to enlarge
Page 1128

Chapter 47 Configuring Network Security with ACLs About ACLs

  • Extended IP access lists use source and destination addresses and optional protocol type information for matching operations.

The switch examines ACLs associated with features configured on a given interface and a direction. As packets enter the switch on an interface, ACLs associated with all inbound features configured on that interface are examined. After packets are routed and before they are forwarded to the next hop, all ACLs associated with outbound features configured on the egress interface are examined.

ACLs permit or deny packet forwarding based on how the packet matches the entries in the ACL. For example, you can use access lists to allow one host to access a part of a network, but prevent another host from accessing the same part. In Figure 47-1, ACLs applied at the router input allow Host A to access the Human Resources network, but prevent Host B from accessing the same network.

Figure 47-1 Using ACLs to Control Traffic to a Network

Catalyst 4500 series switch

= ACL denying traffic from Host B and permitting traffic from Host A = Packet

Port ACLs

You can also apply ACLs to Layer 2 interfaces on a switch. Port ACLs are supported on physical interfaces and EtherChannel interfaces.

The following access lists are supported on Layer 2 interfaces:

  • Standard IP access lists using source addresses
  • Extended IP access lists using source and destination addresses and optional protocol type information
  • IPv6 access lists using source and destination addresses and optional protocol type information
  • MAC extended access lists using source and destination MAC addresses and optional protocol type information
Show 6 more labels / short text on this page
Si Host A · Host B · Human Resources · Research & Development · network · network
Page 1129 of the Cisco Systems 4500 user manual — VLAN Maps
Page 1129 · click to enlarge
Page 1129

Chapter 47 Configuring Network Security with ACLs

As with router ACLs, the switch examines ACLs associated with features configured on a given interface and permits or denies packet forwarding based on how the packet matches the entries in the ACL. In the example in Figure 47-1, if all workstations were in the same VLAN, ACLs applied at the Layer 2 input would allow Host A to access the Human Resources network, but prevent Host B from accessing the same network.

When you apply a port ACL to a trunk port, the ACL filters traffic on all VLANs present on the trunk port. When you apply a port ACL to a port with voice VLAN, the ACL filters traffic on both data and voice VLANs.

With port ACLs, you can filter IP traffic by using IP access lists and non-IP traffic by using MAC addresses. You can filter both IP and non-IP traffic on the same Layer 2 interface by applying both an IP access list and a MAC access list to the interface.

With port ACLs, you can filter IPv4 traffic with IPv4 access lists, IPv6 traffic with IPv6 access lists, and non-IP traffic with MAC access lists. You can filter multiple types of traffic simultaneously by applying ACLs of the appropriate type to the Layer 2 interface simultaneously.

Note You cannot simultaneously apply more than one access list of a given type to a Layer 2 interface. If an IPv4, IPv6, or MAC access list is already configured on a Layer 2 interface, and you apply a new IPv4, IPv6 or MAC access list to the interface, the new ACL replaces the previously configured ACL of the same type.

Dynamic ACLs

Various security features, such as 802.1X, NAC and Web Authentication, are capable of downloading ACLs from a central server and applying them to interfaces. Prior to Cisco IOS Release 12.2(54)SG, these features required the explicit configuration of a standard port ACL

Starting with Cisco IOS Release 12.2(54)SG, a port ACL does not require configuration. For more details refer to the “Removing the Requirement for a Port ACL” section on page 47-36.

VLAN Maps

VLAN maps can control the access of all traffic in a VLAN. You can apply VLAN maps on the switch to all packets that are routed into or out of a VLAN or are bridged within a VLAN. VLAN maps are not defined by direction (input or output).

You can configure VLAN maps to match Layer 3 addresses for IP traffic. Access of all non-IP protocols is controlled with a MAC address and an Ethertype using MAC ACLs in VLAN maps. (IP traffic is not controlled by MAC ACLs in VLAN maps.) You can enforce VLAN maps only on packets heading to the switch; you cannot enforce VLAN maps on traffic between hosts on a hub or on another switch connected to this switch.

With VLAN maps, forwarding packets is permitted or denied, based on the action specified in the map. Figure 47-2 illustrates how a VLAN map is applied to deny a specific type of traffic from Host A in VLAN 10 from being forwarded.

About ACLs

Page 1130 of the Cisco Systems 4500 user manual — Hardware and Software ACL Support
Page 1130 · click to enlarge
Page 1130

Chapter 47 Configuring Network Security with ACLs Hardware and Software ACL Support

Figure 47-2 Using VLAN Maps to Control Traffic

Catalyst 4500 series switch

Host B (VLAN 10) Host A (VLAN 10)

= VLAN map denying specific type of traffic from Host A = Packet

Hardware and Software ACL Support

This section describes how to determine whether ACLs are processed in hardware or in software:

  • Flows that match a deny statement in standard and extended ACLs are dropped in hardware if ICMP unreachable messages are disabled.
  • Flows that match a permit statement in standard ACLs are processed in hardware.
  • The following ACL types are not supported in software:

– Standard Xerox Network Systems (XNS) Protocol access list

– Extended XNS access list

– DECnet access list

– Protocol type-code access list

– Standard Internet Packet Exchange (IPX) access list

– Extended IPX access list

By default, the Catalyst 4500 series switch sends ICMP unreachable messages when a packet is denied by an access list; these packets are not dropped in hardware but are forwarded to the switch so that it can generate the ICMP unreachable message.

To drop access list denied packets in hardware on the input interface, you must disable ICMP unreachable messages using the no ip unreachables interface configuration command. The ip unreachables command is enabled by default.

Si

Page 1131 of the Cisco Systems 4500 user manual — Configuring Network Security with ACLs
Page 1131 · click to enlarge
Page 1131

Chapter 47 Configuring Network Security with ACLs

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor Engine V-10GE

TCAM entry and mask utilization on the Catalyst 4500 series switch is based on the following elements:

  • ACL configuration
  • Supervisor engine model
  • Cisco IOS software release

For Supervisor Engine II-Plus-10GE, Supervisor Engine V-10GE, and the Catalyst 4948-10GE switch, the entry and mask utilization equals the number of ACEs in the ACL configuration divided by the number of entries in the TCAM region, regardless of the Cisco IOS software release. Optimzed TCAM utilization is not required.

For Supervisor Engine II-Plus-TS, Supervisor Engines IV, Supervisor Engines V, and the Catalyst 4948 switch, up to eight entries share a single mask in the TCAM regardless of the Cisco IOS software release. TCAM utilization depends on the ACL configuration. It also depends on the order of configuring each ACL; TCAM utilization may differ if one ACL is configured before another and vice versa. Copying the same ACL configuration to the running-config may also cause TCAM utilization to change.

Depending on the ACL configuration and the Cisco IOS software release, you can optimize TCAM utilization on the Catalyst 4948 switch and on Supervisor Engines II-Plus-TS, IV, and V. For instance, Cisco IOS Release 12.2(31)SGA and later releases preserve masks by automatically reordering order-independent ACL entries. Two ACEs are order-independent if a single packet can match only one of them. For example, the following two ACEs are order-independent:

permit ip host 10.1.1.10 any permit ip host 10.1.1.20 any

Any packet that would match the first ACE would not match the second, and vice versa. In contrast, the following two ACEs are not order-independent:

permit ip host 10.1.1.10 any permit ip any host 10.1.1.20

A packet with source IP address 10.1.1.10 and destination IP address 10.1.1.20 would be able to match both ACEs, so their order matters.

When estimating TCAM utilization for Supervisor Engines II-Plus-TS, IV, V, and the Catalyst 4948 switch prior to deployment, start with the default configuration. Because of the dynamic nature of programming ACEs that share masks, estimating TCAM utilization is unpredictable when ACLs are already programmed.

Beginning with Cisco IOS Release 12.2(31)SGA, you can estimate TCAM utilization for an IP ACL if the TCAM is empty. For each IP ACL, four ACEs are added automatically to the ACL: two static ACEs, an appended IP deny-all ACE, and an appended permit-all ACE. The minimum number of masks for an IP ACL is five. To find the number of masks utilized by the remaining ACEs, count the number of different masks, adding one for every different mask with more than eight ACEs.

Page 1132 of the Cisco Systems 4500 user manual — TCAM Programming Algorithms
Page 1132 · click to enlarge
Page 1132

Chapter 47 Configuring Network Security with ACLs TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor

For Supervisor Engines II-Plus-TS, IV, V, and the Catalyst 4948 switch running the Cisco IOS software prior to Release 12.2(31)SGA, ACLs are not automatically optimized before the TCAM is programmed. Grouping ACEs with similar masks prior to configuring the ACL may improve mask utilization.

TCAM Programming Algorithms

Beginning with Cisco IOS Release 12.2(25)EWA, two TCAM programming algorithms are supported on Catalyst 4500 and 4900 series switches: packed and scattered. The packed mode algorithm programs the entries in the same 8-entry TCAM block if the entries’ masks match. If the current entry’ mask differs from previous entries, the switch software programs the entry in a new 8-entry block. If the mask does not change, or if the mask changes every eight entries across ACLs from the beginning to the end of the configuration, the TCAM may be fully utilized in packed mode for Supervisor Engines II-Plus-TS, IV, V, and the Catalyst 4948 series switch.

In scattered mode, the entries from a single ACL are distributed across different 8-entry blocks until the ACL is fully programmed. If successive ACLs have the same mask pattern as the first ACL, the TCAM on Supervisor Engines II-Plus-TS, IV, V, and the Catalyst 4948 series switch may be fully utilized.

Scattered mode is recommended for IP Source Guard configurations on Supervisor Engines II-Plus-TS, IV, V, and the Catalyst 4948 switch. it is because the mask pattern for per-VLAN ACLs is the same for all ports configured for IP Source Guard: permit ARP packets, permit Layer 2 traffic if port security is not configured, permit IP traffic from a particular source IP address with a 32-bit mask, deny unknown, and permit all.

Page 1133 of the Cisco Systems 4500 user manual — Changing the Programming Algorithm
Page 1133 · click to enlarge
Page 1133

Chapter 47 Configuring Network Security with ACLs

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and

This is a summary of scenarios that cause TCAM utilization to change:

  • Adding or deleting ACLs or ACEs in the running-config
  • Copying or recopying the ACL configuration from bootflash, a TFTP server, or CompactFlash memory to the running-config
  • Changing the TCAM programming algorithm
  • Saving the running-config to NVRAM and reloading the switch
  • Resizing the feature ACL or QoS regions of the TCAM by using the access list hardware region [ feature | qos ] [ input | output ] balance percent command on Cisco IOS Release 12.2(31)SGA and later.
  • Upgrading from images based on Cisco IOS Release 12.2(25)EWA to images based on Cisco IOS Release 12.2(31)SGA

Two types of hardware resources are consumed when you program ACLs: entries and masks. If either one of these resources is exhausted, no additional ACLs can be programmed into hardware.

If you run out of resources, refer to the following sections:

  • Changing the Programming Algorithm, page 47-9
  • Resizing the TCAM Regions, page 47-11
  • Selecting Mode of Capturing Control Packets, page 47-13

Changing the Programming Algorithm

If the masks on a system are exhausted, but entries are available, changing the programming scheme from packed to scattered might free up masks, allowing additional ACLs to be programmed into hardware.

The goal is to use TCAM resources more efficiently by minimizing the number of masks per ACL entry.

The following table shows how to change the algorithm that controls TCAM utilization:

Task... Command...

Compare TCAM utilization when using the scattered or packed algorithms.

Switch# show platform hardware acl statistics utilization brief

Change the algorithm from packed to scattered.

Switch(config)# access-list hardware entries scattered

Change the algorithm from scattered to packed.

Switch(config)# access-list hardware entries packed

Page 1134 of the Cisco Systems 4500 user manual — Configuring Network Security with ACLs
Page 1134 · click to enlarge
Page 1134

Chapter 47 Configuring Network Security with ACLs TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor

The following output was collected from a switch running in packed mode. Observe that 89 percent of the masks are required to program only 49 percent of the ACL entries.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# access-list hardware entries packed Switch(config)# end Switch# 01:15:34: %SYS-5-CONFIG_I: Configured from console by console Switch# Switch# show platform hardware acl statistics utilization brief Entries/Total(%) Masks/Total(%) Input Acl(PortAndVlan) 2016 / 4096 ( 49) 460 / 512 ( 89) Input Acl(PortOrVlan) 6 / 4096 ( 0) 4 / 512 ( 0) Input Qos(PortAndVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Input Qos(PortOrVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Acl(PortAndVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Acl(PortOrVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Qos(PortAndVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Qos(PortOrVlan) 0 / 4096 ( 0) 0 / 512 ( 0)

L4Opsused 2 out of 64

The following output was collected after the algorithm was switched to scattered. Observe that the number of masks required to program 49 percent of the entries has decreased to 49 percent.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# access-list hardware entries scattered Switch(config)# end Switch# 01:39:37: %SYS-5-CONFIG_I: Configured from console by console Switch# Switch# show platform hardware acl statistics utilization brief Entries/Total(%) Masks/Total(%) Input Acl(PortAndVlan) 2016 / 4096 ( 49) 252 / 512 ( 49) Input Acl(PortOrVlan) 6 / 4096 ( 0) 5 / 512 ( 0) Input Qos(PortAndVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Input Qos(PortOrVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Acl(PortAndVlan) 0 / 4096 ( 0) 0 / 512 ( 0)

Page 1135 of the Cisco Systems 4500 user manual — Supervisor Engine Entries Masks
Page 1135 · click to enlarge
Page 1135

Chapter 47 Configuring Network Security with ACLs

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and

Output Acl(PortOrVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Qos(PortAndVlan) 0 / 4096 ( 0) 0 / 512 ( 0) Output Qos(PortOrVlan) 0 / 4096 ( 0) 0 / 512 ( 0)

L4Opsused 2 out of 64 Switch#

Resizing the TCAM Regions

The TCAM is divided into regions, each of which holds different kinds of entries. Four main TCAM types exist: Input ACL, Output ACL, Input QoS, and Output QoS. Each is divided into a PortAndVlan region and a PortOrVlan region. By default the PortAndVlan region and PortOrVlan region are of equal size.

The following table lists the entries and mask counts for each of the supported supervisor engines. The entry and mask counts for the various supervisor engines are for each TCAM type; for example, the input feature TCAM has 16,000 entries, and the output feature TCAM has 16,000 entries.

Supervisor Engine Entries Masks

Supervisor Engine III 16,000 2,000

Supervisor Engine IV 16,000 2,000

Supervisor Engine V 16,000 2,000

Supervisor Engine II-Plus 8,000 1,000

Supervisor Engine II-Plus-TS 8,000 1,000

Supervisor Engine V-10GE 16,000 16,000

Supervisor Engine II-Plus-10GE TBP TBP

Note One region in a TCAM type might be filled while the other region still has free space. When this occurs, the regions can be resized to move the free entries from the region where they are not needed to the region where they are needed. Regions are resized using the access-list hardware region {feature | qos} {input | output} balance command. Each TCAM type has its own independent region balance.

Page 1136 of the Cisco Systems 4500 user manual — Troubleshooting High CPU Due to ACLs
Page 1136 · click to enlarge
Page 1136

Chapter 47 Configuring Network Security with ACLs TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor

To determine whether region resizing would be beneficial, enter the following command:

Switch# show platform hardware acl statistics utilization brief

Input Acl(PortAndVlan) 2346 / 8112 ( 29) 1014 / 1014 (100) Input Acl(PortOrVlan) 0 / 8112 ( 0) 0 / 1014 ( 0) Input Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0) Input Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0) Output Acl(PortOrVlan) 0 / 8112 ( 0) 0 / 1014 ( 0) Output Acl(PortOrVlan) 0 / 8112 ( 0) 0 / 1014 ( 0) Output Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0) Output Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0)

L4Opsused 2 out of 64

The above output indicates that the Input ACL PortAndVlan region is out of masks, but there is free space in the Input ACL PortOrVlan region that could be repurposed.

The following example shows how to change the region balance of the Input ACL TCAM so that 75 percent of the entries are allocated to the PortAndVlan region and only 25 percent to the PortOrVlan region.

Switch# configure terminal Switch(config)# access-list hardware region feature input balance 75

After adjusting the region balance, the PortAndVlan region has more resources allocated to it, and the PortOrVlan region has fewer resources.

Switch# show platform hardware acl statistics utilization brief

Input Acl(PortAndVlan) 2346 / 12160 ( 19) 1014 / 1520 ( 67) Input Acl(PortOrVlan) 0 / 4064 ( 0) 0 / 508 ( 0) Input Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0) Input Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0) Output Acl(PortOrVlan) 0 / 8112 ( 0) 0 / 1014 ( 0) Output Acl(PortOrVlan) 0 / 8112 ( 0) 0 / 1014 ( 0) Output Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0) Output Qos(PortOrVlan) 0 / 8128 ( 0) 0 / 1016 ( 0)

L4Opsused 2 out of 64 Switch#

Troubleshooting High CPU Due to ACLs

Packets that match entries in fully programmed ACLs are processed in hardware. However, large ACL and IPSG configurations may exhaust TCAM masks on Supervisor Engines II-Plus-TS, IV, V, and the Catalyst 4948 switch before the ACLs are fully programmed.

Page 1137 of the Cisco Systems 4500 user manual — Selecting Mode of Capturing Control Packets
Page 1137 · click to enlarge
Page 1137

Chapter 47 Configuring Network Security with ACLs

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and

Packets that match entries in partially programmed ACLs are processed in software using the CPU. This may cause high CPU utilization and packets to be dropped. To determine whether packets are being dropped due to high CPU utilization, reference the following: http://www.cisco.com/en/US/products/hw/switches/ps663/products_tech_note09186a00804cef15.shtml

If the ACL and/or IPSG configuration is partially programmed in hardware, upgrading to Cisco IOS Release 12.2(31)SGA or later and resizing the TCAM regions may enable the ACLs to be fully programmed.

Selecting Mode of Capturing Control Packets

In some deployments, you might want to bridge control packets in hardware rather than globally capture and forward them in software (at the expense of the CPU). The per-VLAN capture mode feature allows a Catalyst 4500 series switch to capture control packets only on selected VLANs and bridge traffic in hardware on all other VLANs.

With Supervisor Engine 6-E and 6L-E, when you use per-VLAN capture mode on your switch, it partially disables the global TCAM capture entries internally and attaches feature-specific capture ACLs on those VLANs that are enabled for snooping features. (All IP capture entries, and other non-IP entries are still captured through global TCAM.)

For all other supervisor engines, when you use per-VLAN capture mode on your switch, it partially disables the global TCAM capture entries internally and attaches feature-specific capture ACLs on those VLANs that are enabled for snooping or routing features. (All IP capture entries, CGMP, and other non-IP entries are still captured through global TCAM.)

Because this feature controls specific control packets, they are captured only on the VLANs on which the internal ACLs are installed. On all other VLANs, the control traffic is bridged in hardware rather than forwarded to CPU.

The per-VLAN capture mode allows you to apply user-defined ACLs and QoS policers (in hardware) on control packets. You can also subject the aggregate control traffic ingressing the CPU to control plane policing.

When you use per-VLAN capture mode, the following four protocol groups are selectable per-VLAN. The breakdown of protocols intercepted by each group is as follows:

  • IGMP Snooping—Cgmp, Ospf, Igmp, RipV2, Pim, 224.0.0.1, 224.0.0.2, 224.0.0.*
  • DHCP Snooping—Client to Server, Server to Client, Server to Server

The following bullets only apply to supervisor engines other than 6-E and 6L-E.

  • Unicast Routing—Ospf, Rip v2, 224.0.0.1, 224.0.0.2, 224.0.0.*
  • Multicast Routing—Ospf, Rip v2, Igmp, Pim, 224.0.0.1, 224.0.0.2, 224.0.0.*

Because some of the groups have multiple overlapping ACEs (for example, 224.0.0.* is present in all the groups except for DHCP Snooping), turning on a certain group will also trigger the interception of some protocols from other groups.

Following are the programming triggers for the four protocol groups per-VLAN:

  • IGMP Snooping should be enabled globally on a given VLAN.
Page 1138 of the Cisco Systems 4500 user manual — Guidelines and Restrictions
Page 1138 · click to enlarge
Page 1138

Chapter 47 Configuring Network Security with ACLs TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and Supervisor

  • DHCP Snooping should be enabled globally on a given VLAN.

The following bullets only apply to supervisor engines other than 6-E and 6L-E.

  • Unicast Routing should be enabled and SVI (or a Layer 3 physical) interface should be up and configured with an IP protocol address. it is because interfaces immediately become part of the routing process once the SVI interface comes up and the protocol family address is configured.
  • Multicast Routing should be enabled and one of the multicast routing protocols should be configured on the interface (IGMP, PIMv1, PIMv2, MBGP, MOSPF, DVMRP, and IGMP snooping).

Guidelines and Restrictions

The following guidelines and restrictions apply to per-VLAN capture mode:

  • Starting with Cisco IOS Release 15.0(2)SG, for Supervisor Engine 6-E and Supervisor Engine 6L-E, globally reserved static ACL entries in the TCAM region for Layer 3 control packets are removed. The per-VLAN CTI command is not needed and does not apply for Layer 3 control packets because these packets are captured in per-VLAN fashion by default.

The following still function:

– Global static capture and CTI commands for IGMP or PIM packets (both use MAC addresses 224.0.0.1 and 224.0.0.2)

– Global and per-VLAN CTI for DHCP packets

With Cisco IOS Release 15.0(2)SG, per-VLAN capture of Layer 3 control packets is driven by SVI configuration. Except for IGMP, PIM, or DHCP, no special configuration is required.

  • Enabling per-VLAN capture mode consumes additional entries in the ACL/feature TCAM.

The number of available TCAM entries depends on the type of supervisor engine. The entry and mask count further limits the utilization of the ACL/feature TCAM.

  • Certain configurations can exhaust TCAM resource earlier in per-VLAN capture mode than in global capture mode (such as, when IP Source Guard is enabled on several interfaces or on a user-configured PACL).

You can resize TCAM regions to make more entries available to the PortAndVlan or PortOrVlan region based on the configuration. This allows more entries to be programmed in hardware before reaching the limit. When TCAM resources are exhausted, the packets are forwarded in software.

  • In per-VLAN capture mode, you can configure ACLs to permit or deny control traffic on a VLAN or port.

Because security ACLs are terminated by an implicit deny, you must ensure that the ACLs are configured to permit the control packets necessary for the feature (protocol) to operate. However, this rule does not differ from the default behavior.

Page 1139 of the Cisco Systems 4500 user manual — CamIndex Entry Type Active Hit Count CamRegion
Page 1139 · click to enlarge
Page 1139

Chapter 47 Configuring Network Security with ACLs

TCAM Programming and ACLs for Supervisor Engine II-Plus, Supervisor Engine IV, Supervisor Engine V, and

Selecting Control Packet Capture

To select the mode of capturing control packets, perform this task:

Step 1 Switch# conf terminal Enters configuration mode.

Step 2 Switch(config)# [no] access-list hardware capture mode [vlan | global]

Selects mode of capturing control packets.

The no form of the access-list hardware capture mode command restores the capture mode to the default, which is global.

Step 3 Switch(config)# end Returns to enable mode.

This example shows how to configure a Catalyst 4500 series switch to capture control packets only on VLANs where features are enabled:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# access-list hardware capture mode vlan Switch(config)# end Switch#

This example shows how to configure a Catalyst 4500 series switch to capture control packets globally across all VLANs (using static ACL, the default mode):

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# access-list hardware capture mode global Switch(config)# end Switch#

When the capture mode changes from global to VLAN, the static CAM entries are invalidated. This creates a window during which control packets may pass through a Catalyst 4500 series switch without being intercepted to the CPU. This temporary situation is restored when the new per-VLAN capture entries are programmed in the hardware.

When you configure per-VLAN capture mode, you should examine the show commands for individual features to verify the appropriate behavior. In per-VLAN capture mode, the invalidated static CAM entries will appear as inactive in the output of the show platform hardware acl input entries static command. For example, the hit count for inactive entries will remain frozen because those entries are invalidated and applied per-VLAN where the feature is enabled. The following table lists the CamIndex entry types and the Cam regions.

CamIndex Entry Type Active Hit Count CamRegion

50 PermitSharedStp Y 3344 ControlPktsTwo

51 PermitLoopbackTest Y 0 ControlPktsTwo

52 PermitProtTunnel Y 0 ControlPktsTwo

53 CaptureCgmp N 440 ControlPktsTwo

55 CaptureIgmp N 0 ControlPktsTwo

0 IgmpPimv1ToCpu N N/A 0 (estimate)

0 IgmpGeneralQueryToCpu N N/A 0 (estimate)

Page 1140 of the Cisco Systems 4500 user manual — Restrictions for Layer 4 Operations
Page 1140 · click to enlarge
Page 1140

Chapter 47 Configuring Network Security with ACLs TCAM Programming and ACLs for Supervisor Engine 6-E and Supervisor Engine 6L-E

CamIndex Entry Type Active Hit Count CamRegion

2 IgmpToCpu N N/A 0 (estimate)

3 IgmpPimv2ToCpu N N/A 0 (estimate)

2048 Ipv6MldGeneralQueryCopyToCpu N N/A 0 (estimate)

2050 Ipv6MldGeneralQueryCopyToCpu N N/A 0 (estimate)

2052 Ipv6MldQueryOrReportV1ToCpu N N/A 0 (estimate)

2054 Ipv6MldQueryOrReportV1ToCpu N N/A 0 (estimate)

2056 Ipv6MldReportV2ToCpu N N/A 0 (estimate)

2058 Ipv6MldReportV2ToCpu N N/A 0 (estimate)

2060 Ipv6MldDoneToCpu N N/A 0 (estimate)

2064 Ipv6MldPimv2ToCpu N N/A 0 (estimate)

TCAM Programming and ACLs for Supervisor Engine 6-E and Supervisor Engine 6L-E

You apply three types of hardware resources when you program ACLs and ACL-based features on the Supervisor Engine 6-E and 6L-E: mapping table entries (MTEs), profiles, and TCAM value/mask entries. If any of these resources are exhausted, packets are sent to the CPU for software-based processing.

If you exhaust resources on the Supervisor Engine 6-E and 6L-E, you should try reducing the complexity of your configuration.

Layer 4 Operators in ACLs

The following sections provide guidelines and restrictions for configuring ACLs that include Layer 4 port operations:

  • Restrictions for Layer 4 Operations, page 47-16
  • Configuration Guidelines for Layer 4 Operations, page 47-17
  • How ACL Processing Impacts CPU, page 47-18

Restrictions for Layer 4 Operations

You can specify these operator types, each of which uses one Layer 4 operation in the hardware:

Page 1141 of the Cisco Systems 4500 user manual — Configuration Guidelines for Layer 4 Operations
Page 1141 · click to enlarge
Page 1141

Chapter 47 Configuring Network Security with ACLs

Layer 4 Operators in ACLs

  • gt (greater than)
  • lt (less than)
  • neq (not equal)
  • range (inclusive range)

For Supervisor Engine II+ through V-10GE, you should not specify more than six different operations on the same ACL. If you exceed this number, each new operation might cause the affected ACE (access control entry) to be translated into multiple ACEs in hardware. If you exceed this number, the affected ACE might be processed in software.

For Supervisor Engine 6-E and 6L-E, the limits on the number of Layer 4 operations differ for each type of ACL, and can also vary based on other factors: whether an ACL is applied to incoming or outgoing traffic, whether the ACL is a security ACL or is used as a match condition for a QoS policy, and whether IPv6 ACLs are being programmed using the compressed flow label format.

Note The IPv6 compressed flow label format uses the Layer 2 Address Table to compress a portion of the IPv6 source address of each ACE in the ACL. The extra space freed in the flow label can then be used to support more Layer 4 operations. For this compression to be used, the IPv6 ACL cannot contain any ACEs that mask in only a portion of the bottom 48 bits of the source IPv6 address.

Generally, you will receive at most the following number of Layer 4 operations on the same ACL:

Direction Protocol Type Operations Input IPv4 Security 16 Input IPv6 Compressed Security 16 Input IPv6 Uncompressed Security 7 Input IPv4 QoS 5 Input IPv6 Compressed QoS 12 Input IPv6 Uncompressed QoS 8 Output IPv4 Security 17 Output IPv6 Compressed Security 17 Output IPv6 Uncompressed Security 8 Output IPv4 QoS 5 Output IPv6 Compressed QoS 12 Output IPv6 Uncompressed QoS 8

If you exceed the number of available Layer 4 operations, each new operation might cause the affected ACE to be translated into multiple ACEs in the hardware. If this translation fails, packets are sent to the CPU for software processing.

Configuration Guidelines for Layer 4 Operations

When using Layer 4 operators, consider these guidelines:

  • Layer 4 operations are considered different if the operator or operand differ. For example, the following ACL contains three different Layer 4 operations because gt 10 and gt 11 are considered two different Layer 4 operations:

... gt 10 permit ... lt 9 deny ... gt 11 deny

Page 1142 of the Cisco Systems 4500 user manual — How ACL Processing Impacts CPU
Page 1142 · click to enlarge
Page 1142

Chapter 47 Configuring Network Security with ACLs Layer 4 Operators in ACLs

  • Layer 4 operations are considered different if the same operator/operand couple applies once to a source port and once to a destination port, as in the following example:

... Src gt 10 Dst gt 10

A more detailed example follows:

access-list 101 ... (dst port) gt 10 permit ... (dst port) lt 9 deny ... (dst port) gt 11 deny ... (dst port) neq 6 permit ... (src port) neq 6 deny ... (dst port) gt 10 deny

access-list 102 ... (dst port) gt 20 deny ... (src port) lt 9 deny ... (src port) range 11 13 deny ... (dst port) neq 6 permit

Access lists 101 and 102 use the following Layer 4 operations:

  • Access list 101 Layer 4 operations: 5

– gt 10 permit and gt 10 deny both use the same operation because they are identical and both operate on the destination port.

  • Access list 102 Layer 4 operations: 4
  • Total Layer 4 operations: 8 (due to sharing between the two access lists)

– neq6 permit is shared between the two ACLs because they are identical and both operate on the same destination port.

  • A description of the Layer 4 operations usage is as follows:

– Layer 4 operation 1 stores gt 10 permit and gt 10 deny from ACL 101

– Layer 4 operation 2 stores lt 9 deny from ACL 101

– Layer 4 operation 3 stores gt 11 deny from ACL 101

– Layer 4 operation 4 stores neg 6 permit from ACL 101 and 102

– Layer 4 operation 5 stores neg 6 deny from ACL 101

– Layer 4 operation 6 stores gt 20 deny from ACL 102

– Layer 4 operation 7 stores lt 9 deny from ACL 102

– Layer 4 operation 8 stores range 11 13 deny from ACL 102

How ACL Processing Impacts CPU

ACL processing can impact the CPU in two ways:

Page 1143 of the Cisco Systems 4500 user manual — Examples
Page 1143 · click to enlarge
Page 1143

Chapter 47 Configuring Network Security with ACLs

Layer 4 Operators in ACLs

  • For some packets, when the hardware runs out of resources, the software must perform the ACL matches:

– For Supervisor Engine 2-Plus to V-10GE, the TCP flag combinations rst ack and syn fin rst are processed in hardware. rst ack is equivalent to the keyword established. Other TCP flag combinations are supported in software.

– For Supervisor Engine 6-E and 6L-E, the TCP flag combinations rst ack, syn fin rst, urg and psh are processed in hardware. rst ack is equivalent to the keyword established. Other TCP flag combinations are supported in software.

– For Supervisor Engine 2-Plus to V-10GE, you can specify up to six Layer 4 operations (lt, gt, neq, and range) in an ACL to ensure that all operations are processed in hardware. More than six Layer 4 operations trigger an attempt to translate the excess operations into multiple ACEs in hardware. If this attempt fails, packets are processed in software. The translation process is less likely to succeed on large ACLs with a great number of Layer 4 operations, and on switches with large numbers of ACLs configured. The precise limit depends on how many other ACLs are configured and which specific Layer 4 operations are used by the ACLs being translated. The eq operator does not require any Layer 4 operations and can be used any number of times.

– For Supervisor Engine and 6L-E, refer to the “Restrictions for Layer 4 Operations” section on page 47-16.

– If the total number of Layer 4 operations in an ACL is less than six, you can distribute the operations in any way you choose.

Examples

The following access lists are processed completely in hardware:

access-list 104 permit tcp any any established access-list 105 permit tcp any any rst ack access-list 107 permit tcp any synfin rst

Access lists 104 and 105 are identical; established is shorthand for rst and ack.

Access list 101, is processed completely in software:

access-list 101 permit tcp any any syn

Because four source and two destination operations exist, access list 106 is processed in hardware:

access-list 106 permit tcp any range 100 120 any range 120 140 access-list 106 permit tcp any range 140 160 any range 180 200 access-list 106 permit tcp any range 200 220 access-list 106 deny tcp any range 220 240

In the following code, the Layer 4 operations for the third ACE trigger an attempt to translate dst lt 1023 into multiple ACEs in hardware, because three source and three destination operations exist. If the translation attempt fails, the third ACE is processed in software.

access-list 102 permit tcp any lt 80 any gt 100 access-list 102 permit tcp any range 100 120 any range 120 1024 access-list 102 permit tcp any gt 1024 any lt 1023

Similarly, for access list 103, the third ACE triggers an attempt to translate dst gt 1023 into multiple ACEs in hardware. If the attempt fails, the third ACE is processed in software. Although the operations for source and destination ports look similar, they are considered different Layer 4 operations.

access-list 103 permit tcp any lt 80 any lt 80 access-list 103 permit tcp any range 100 120 any range 100 120

Page 1144 of the Cisco Systems 4500 user manual — Configuring Named MAC Extended ACLs
Page 1144 · click to enlarge
Page 1144

Chapter 47 Configuring Network Security with ACLs Configuring Unicast MAC Address Filtering

access-list 103 permit tcp any gt 1024 any gt 1023

  • Some packets must be sent to the CPU for accounting purposes, but the action is still performed by the hardware. For example, if a packet must be logged, a copy is sent to the CPU for logging, but the forwarding (or dropping) is performed in the hardware. Although logging slows the CPU, it does not affect the forwarding rate. This sequence of events would happen under the following conditions:

– When a log keyword is used

– When an output ACL denies a packet

– When an input ACL denies a packet, and on the interface where the ACL is applied, ip unreachable is enabled (ip unreachable is enabled by default on all the interfaces)

Configuring Unicast MAC Address Filtering

To block all unicast traffic to or from a MAC address in a specified VLAN, perform this task:

Switch(config)# mac-address-table static mac_address vlan vlan_ID drop

Blocks all traffic to or from the configured unicast MAC address in the specified VLAN.

To clear MAC address-based blocking, use the no form of this command without the drop keyword.

This example shows how to block all unicast traffic to or from MAC address 0050.3e8d.6400 in VLAN 12:

Switch# configure terminal Switch(config)# mac-address-table static 0050.3e8d.6400 vlan 12 drop

Configuring Named MAC Extended ACLs

You can filter non-IP traffic on a VLAN and on a physical Layer 2 port by using MAC addresses and named MAC extended ACLs. The procedure is similar to that of configuring other extended named ACLs. You can use a number to name the access list, but MAC access list numbers from 700 to 799 are not supported.

Page 1145 of the Cisco Systems 4500 user manual — Configuring Network Security with ACLs
Page 1145 · click to enlarge
Page 1145

Chapter 47 Configuring Network Security with ACLs

Configuring Named MAC Extended ACLs

For more information about the supported non-IP protocols in the mac access-list extended command, refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference.

To create a named MAC extended ACL, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] mac access-list extended name

Defines an extended MAC access list using a name.

To delete the entire ACL, use the no mac access-list extended name global configuration command. You can also delete individual ACEs from named MAC extended ACLs.

Step 3 Switch(config-ext-macl)# {deny | permit} {any | host source MAC address | source MAC address mask} {any | host destination MAC address | destination MAC address mask} [protocol-family {appletalk | arp-non-ipv4 | decnet | ipx | ipv6 (not supported on Sup 6-E and 6L-E)| rarp-ipv4 | rarp-non-ipv4 | vines | xns]

In extended MAC access-list configuration mode, specify to permit or deny any source MAC address, a source MAC address with a mask, or a specific host source MAC address and any destination MAC address, destination MAC address with a mask, or a specific destination MAC address.

Supervisor Engines II-Plus to V-10GE:

  • [ protocol-family [ appletalk | arp-non-ipv4 | decnet | ipx | ipv6 | rarp-ipv4 | rarp-non-ipv4 | vines | xns ]

Supervisor Engine 6-E and 6L-E:

  • [ protocol-family [ appletalk | arp-non-ipv4 | decnet | ipx | rarp-ipv4 | rarp-non-ipv4 | vines | xns ]

Note On Supervisor Engine 6-E and 6L-E, IPv6 packets do not generate Layer 2 ACL lookup keys. They do not match on MAC ACLs in the same way that IPv4 packets would not match against MAC ACLs in Supervisor Engines II-Plus to V-10GE. protocol-family ipv6 is applicable to MAC ACLs on Supervisor Engines II-Plus to V-10GE, but not on Supervisor Engine 6-E and 6L-E.

Step 4 Switch(config-ext-macl)# end Returns to privileged EXEC mode.

Step 5 Switch# show access-lists [number | name] Shows the access list configuration.

Step 6 Switch(config)# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to create and display an access list named mac1, denying only EtherType DECnet Phase IV traffic, but permitting all other types of traffic:

Switch(config)# mac access-list extended mac1 Switch(config-ext-macl)# deny any any decnet-iv (old) protocol-family decnet (new) Switch(config-ext-macl)# permit any any Switch(config-ext-macl)# end Switch # show access-lists Extended MAC access list mac1 deny any any decnet-iv (old) protocol-family decnet (new) permit any any

The following example shows how to enable or disable hardware statistics while configuring ACEs in the access list:

Switch# config t Enter configuration commands, one per line. End with CNTL/Z.

Page 1146 of the Cisco Systems 4500 user manual — Configuring EtherType Matching
Page 1146 · click to enlarge
Page 1146

Chapter 47 Configuring Network Security with ACLs Configuring EtherType Matching

Switch(config)# mac access-list extended mac1 Switch(config-ext-nacl)# hardware statistics Switch(config-ext-nacl)# end Switch# show access-lists Extended MAC access list macl deny any any decnet-iv (old) protocol-family decnet (new) permit any any

Configuring EtherType Matching

You can classify non-IP traffic based on the EtherType value using the existing MAC access list commands. When you classify non-IP traffic by EtherType, you can apply security ACLs and QoS policies to traffic that carry the same EtherType.

EtherType matching allows you to classify tagged and untagged IP packets based on the EtherType value. Tagged packets present a potential operation problem:

  • While single-tagged packets are supported on the access and trunk ports, double-tagged packets are not.
  • Single and double-tagged packets are not supported if the port mode is dot1qtunnel.

For more information about the mac access-list extended command, refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference.

To create a named MAC extended ACL, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] mac access-list extended name

Defines an extended MAC access list using a name.

To delete the entire ACL, use the no mac access-list extended name global configuration command. You can also delete individual ACEs from named MAC extended ACLs.

Step 3 Switch(config-ext-macl)# {deny | permit} {any | host source MAC address | source MAC address mask} {any | host destination MAC address | destination MAC address mask} [protocol-family {appletalk | arp-non-ipv4 | decnet | ipx | ipv6 (not supported on Sup 6-E and 6L-E)| rarp-ipv4 | rarp-non-ipv4 | vines | xns} | ethertype]

In extended MAC access-list configuration mode, specify to permit or deny any based upon the EtherTypes value, valid values are 15636-65535.

Step 4 Switch(config-ext-macl)# end Returns to privileged EXEC mode.

Step 5 Switch# show access-lists [number | name] Shows the access list configuration.

Step 6 Switch(config)# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to create and display an access list named matching, permitting the 0x8863 and 0x8040 EtherType values:

hardware statistics

Page 1147 of the Cisco Systems 4500 user manual — Configuring Named IPv6 ACLs
Page 1147 · click to enlarge
Page 1147

Chapter 47 Configuring Network Security with ACLs

Configuring Named IPv6 ACLs

Switch(config)# mac access-list extended matching Switch(config-ext-macl)# permit any any 0x8863 Switch(config-ext-macl)# permit any any 0x8040 Switch(config-ext-macl)# end Switch # show access-lists matching Extended MAC access list matching permit any any 0x8863 permit any any netbios Switch #

Configuring Named IPv6 ACLs

Supervisor Engine 6-E and 6L-E also support hardware-based IPv6 ACLs to filter unicast, multicast and broadcast IPv6 traffic on Layer 2 and Layer 3 interfaces. You can only configure such access lists on Layer 3 interfaces that are configured with an IPv6 address.

To create a named IPv6 ACLs, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ipv6 access-list name Defines an IPv6 access list using a name.

To delete the IPv6 ACL, use the no form of the command. You can also delete individual ACEs from the IPv6 access list.

Step 3 Switch(config-ipv6-acl)# {deny | permit} {any | proto} {host ipv6-addr | ipv6-prefix} host ipv6-addr | ipv6-prefix}

Specifies each IPv6 ACE.

Step 4 Switch(config-ipv6-acl)# hardware statistics

(Optional) Enables hardware statistics for the IPv6 ACL.

Step 5 Switch(config-ipv6-acl)# end Returns to privileged EXEC mode.

Step 6 Switch# show ipv6 access-list Display the IPv6 access list configuration.

The following example shows how to create and display an IPv6 access list named v6test, denying only one IPv6 traffic with one particular source and destination address, but permitting all other types of IPv6 traffic:

Switch(config)# ipv6 access-list v6test Switch(config-ipv6-acl)# deny ipv6 host 2020::10 host 2040::10 Switch(config-ipv6-acl)# permit any any Switch(config-ipv6-acl)# end Switch# show ipv6 access-list IPv6 access list v6test deny ipv6 host 2020::10 host 2040::10 sequence 10 permit ipv6 any any sequence 20

To enable hardware statistics, enter the following commands while configuring ACEs in the access list:

Switch(config)# ipv6 access-list v6test Switch(config-ipv6-acl)# hardware statistics Switch(config-ipv6-acl)# end

Page 1148 of the Cisco Systems 4500 user manual — Configuring VLAN Maps
Page 1148 · click to enlarge
Page 1148

Chapter 47 Configuring Network Security with ACLs Applying IPv6 ACLs to a Layer 3 Interface

Applying IPv6 ACLs to a Layer 3 Interface

To apply an IPv6 ACL to a Layer 3 interface, perform the following task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-type slot/interface

Specifies the interface to be configured.

Step 3 Switch(config-if)# ipv6 traffic-filter ipv6-acl {in|out}

Apply the IPv6 ACL to a Layer 3 interface.

The following example applies the extended-named IPv6 ACL simple-ipv6-acl to SVI 300 routed ingress traffic:

Switch# configure terminal Switch(config)# interface vlan 300 Switch(config-if)# ipv6 traffic-filter simple-ipv6-acl in

The following conditions may cause a RACL to malfunction (no workaround):

  • ACLs are applied on the output direction of the interface.
  • IPv6 ACL contain Ace to match on the ICMP option fields (ICMP Type or ICMP Code).

The following examples of nonfunctioning RACLs:

IPv6 access list a1 permit icmp any any nd-ns sequence 10 deny ipv6 any any sequence 20

IPv6 access list a2 permit icmp 2020::/96 any nd-ns sequence 10 deny ipv6 any any sequence 20

Configuring VLAN Maps

This section includes these topics:

Page 1149 of the Cisco Systems 4500 user manual — VLAN Map Configuration Guidelines
Page 1149 · click to enlarge
Page 1149

Chapter 47 Configuring Network Security with ACLs

  • VLAN Map Configuration Guidelines, page 47-25
  • Creating and Deleting VLAN Maps, page 47-26
  • Applying a VLAN Map to a VLAN, page 47-29
  • Using VLAN Maps in Your Network, page 47-29

This section describes how to configure VLAN maps, which is the only way to control filtering within a VLAN. VLAN maps have no direction. To filter traffic in a specific direction by using a VLAN map, you need to include an ACL with specific source or destination addresses. If there is a match clause for that type of packet (IP or MAC) in the VLAN map, the default action is to drop the packet if the packet does not match any of the entries within the map. If there is no match clause for that type of packet, the default is to forward the packet.

To create a VLAN map and apply it to one or more VLANs, follow these steps:

Step 1 Create the standard or extended IP ACLs or named MAC extended ACLs that you want to apply to the VLAN.

Step 2 Enter the vlan access-map global configuration command to create a VLAN ACL map entry.

In access map configuration mode, you have the option to enter an action (forward [the default] or drop) and enter the match command to specify an IP packet or a non-IP packet and to match the packet against one or more ACLs (standard or extended). If a match clause is not specified, the action is applied to all packets. The match clause can be used to match against multiple ACLs. If a packet matches any of the specified ACLs, the action is applied.

Step 3 Use the vlan filter global configuration command to apply a VLAN map to one or more VLANs.

VLAN Map Configuration Guidelines

When configuring VLAN maps, consider these guidelines:

  • VLAN maps do not filter IPv4 ARP packets.
  • If there is no router ACL configured to deny traffic on a routed VLAN interface (input or output), and no VLAN map configured, all traffic is permitted.
  • Each VLAN map consists of a series of entries. The order of entries in a VLAN map is important. A packet that comes into the switch is tested against the first entry in the VLAN map. If it matches, the action specified for that part of the VLAN map is taken. If there is no match, the packet is tested against the next entry in the map.

Configuring VLAN Maps

Page 1150 of the Cisco Systems 4500 user manual — Examples of ACLs and VLAN Maps
Page 1150 · click to enlarge
Page 1150

Chapter 47 Configuring Network Security with ACLs Configuring VLAN Maps

  • If the VLAN map has at least one match clause for the type of packet (IP or MAC) and the packet does not match any of these match clauses, the default is to drop the packet. If there is no match clause for that type of packet in the VLAN map, the default is to forward the packet.
  • The system might take longer to boot if you have configured a very large number of ACLs.

Creating and Deleting VLAN Maps

Each VLAN map consists of an ordered series of entries. To create, add to, or delete a VLAN map entry, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vlan access-map name [number]

Creates a VLAN map, and give it a name and (optionally) a number. The number is the sequence number of the entry within the map.

When you create VLAN maps with the same name, numbers are assigned sequentially in increments of 10. When modifying or deleting maps, you can enter the number of the map entry that you want to modify or delete.

This command enables access-map configuration mode.

Step 3 Switch(config-access-map)# action {drop | forward}

(Optional) Sets the action for the map entry. The default is to forward.

Step 4 Switch(config-access-map)# match {ip | mac} address {name | number} [name | number]

Matches the packet (using either the IP or MAC address) against one or more standard or extended access lists. Note that packets are matched only against access lists of the correct protocol type. IP packets are compared with standard or extended IP access lists. Non-IP packets are only compared with named MAC extended access lists. If a match clause is not specified, the action is taken on all packets.

Step 5 Switch(config-access-map)# end Returns to global configuration mode.

Step 6 Switch(config)# show running-config Displays the access list configuration.

Step 7 Switch(config)# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

You can use the no vlan access-map name global configuration command to delete a map. You can use the no vlan access-map name number global configuration command to delete a single sequence entry from within the map. You can use the no action access-map configuration command to enforce the default action, which is to forward.

VLAN maps do not use the specific permit or deny keywords. To deny a packet by using VLAN maps, create an ACL that would match the packet, and then set the action to drop. A permit in the ACL is the same as a match. A deny in the ACL means no match.

Examples of ACLs and VLAN Maps

These examples show how to create ACLs and VLAN maps for specific purposes.

Page 1151 of the Cisco Systems 4500 user manual — Example 2
Page 1151 · click to enlarge
Page 1151

Chapter 47 Configuring Network Security with ACLs

Example 1

This example shows how to create an ACL and a VLAN map to deny a packet. In the first map, any packets that match the ip1 ACL (TCP packets) would be dropped. You first create the ip1 ACL to permit any TCP packet and no other packets. Because there is a match clause for IP packets in the VLAN map, the default action is to drop any IP packet that does not match any of the match clauses.

Switch(config)# ip access-list extended ip1 Switch(config-ext-nacl)# permit tcp any any Switch(config-ext-nacl)# exit

Switch(config)# vlan access-map map_1 10 Switch(config-access-map)# match ip address ip1 Switch(config-access-map)# action drop

This example shows how to create a VLAN map to permit a packet. ACL ip2 permits UDP packets; and any packets that match the ip2 ACL are forwarded.

Switch(config)# ip access-list extended ip2 Switch(config-ext-nacl)# permit udp any any Switch(config-ext-nacl)# exit Switch(config)# vlan access-map map_1 20 Switch(config-access-map)# match ip address ip2 Switch(config-access-map)# action forward

In this map, any IP packets that did not match any of the previous ACLs (that is, packets that are not TCP packets or UDP packets) would get dropped.

Example 2

In this example, the VLAN map is configured to drop IP packets and to forward MAC packets by default. By applying standard ACL 101 and the extended named access lists igmp-match and tcp-match, the VLAN map is configured to do the following:

  • Forward all UDP packets
  • Drop all IGMP packets
  • Forward all TCP packets
  • Drop all other IP packets
  • Forward all non-IP packets

Switch(config)# access-list 101 permit udp any any Switch(config)# ip access-list extended igmp-match Switch(config-ext-nacl)# permit igmp any any Switch(config)# ip access-list extended tcp-match Switch(config-ext-nacl)# permit tcp any any Switch(config-ext-nacl)# exit Switch(config)# vlan access-map drop-ip-default 10 Switch(config-access-map)# match ip address 101 Switch(config-access-map)# action forward Switch(config-access-map)# exit Switch(config)# vlan access-map drop-ip-default 20 Switch(config-access-map)# match ip address igmp-match Switch(config-access-map)# action drop Switch(config-access-map)# exit Switch(config)# vlan access-map drop-ip-default 30 Switch(config-access-map)# match ip address tcp-match Switch(config-access-map)# action forward

Configuring VLAN Maps

Page 1152 of the Cisco Systems 4500 user manual — Example 4
Page 1152 · click to enlarge
Page 1152

Chapter 47 Configuring Network Security with ACLs Configuring VLAN Maps

Example 3

In this example, the VLAN map is configured to drop MAC packets and forward IP packets by default. By applying MAC extended access lists, good-hosts and good-protocols, the VLAN map is configured to do the following:

  • Forward MAC packets from hosts 0000.0c00.0111 and 0000.0c00.0211
  • Forward MAC packets of DECnet or VINES (Virtual Integrated Network Service) protocol-family
  • Drop all other non-IP packets
  • Forward all IP packets

Switch(config)# mac access-list extended good-hosts Switch(config-ext-macl)# permit host 000.0c00.0111 any Switch(config-ext-macl)# permit host 000.0c00.0211 any Switch(config-ext-nacl)# exit Switch(config)# mac access-list extended good-protocols Switch(config-ext-macl)# permit any any protocol-family decnet Switch(config-ext-macl)# permit any any protocol-family vines Switch(config-ext-nacl)# exit Switch(config)# vlan access-map drop-mac-default 10 Switch(config-access-map)# match mac address good-hosts Switch(config-access-map)# action forward Switch(config-access-map)# exit Switch(config)# vlan access-map drop-mac-default 20 Switch(config-access-map)# match mac address good-protocols Switch(config-access-map)# action forward

Example 4

In this example, the VLAN map is configured to drop all packets (IP and non-IP). By applying access lists tcp-match and good-hosts, the VLAN map is configured to do the following:

  • Forward all TCP packets
  • Forward MAC packets from hosts 0000.0c00.0111 and 0000.0c00.0211
  • Drop all other IP packets
  • Drop all other MAC packets

Switch(config)# vlan access-map drop-all-default 10 Switch(config-access-map)# match ip address tcp-match Switch(config-access-map)# action forward Switch(config-access-map)# exit Switch(config)# vlan access-map drop-all-default 20 Switch(config-access-map)# match mac address good-hosts Switch(config-access-map)# action forward

Page 1153 of the Cisco Systems 4500 user manual — Using VLAN Maps in Your Network
Page 1153 · click to enlarge
Page 1153

Chapter 47 Configuring Network Security with ACLs

Applying a VLAN Map to a VLAN

To apply a VLAN map to one or more VLANs, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# vlan filter mapname vlan-list list

Applies the VLAN map to one or more VLAN IDs.

The list can be a single VLAN ID (22), a consecutive list (10-22), or a string of VLAN IDs (12, 22, 30). Spaces around comma, and dash, are optional.

Step 3 Switch(config)# show running-config Displays the access list configuration.

Step 4 Switch(config)# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to apply VLAN map 1 to VLANs 20 through 22:

Switch(config)# vlan filter map 1 vlan-list 20-22

Using VLAN Maps in Your Network

Figure 47-3 shows a typical wiring closet configuration. Host X and Host Y are in different VLANs, connected to wiring closet switches A and C. Traffic moving from Host X to Host Y is routed by Switch B. Access to traffic moving from Host X to Host Y can be controlled at the entry point of Switch A. In the following configuration, the switch can support a VLAN map and a QoS classification ACL.

Configuring VLAN Maps

Page 1154 of the Cisco Systems 4500 user manual — Configuring Network Security with ACLs
Page 1154 · click to enlarge
Page 1154

Chapter 47 Configuring Network Security with ACLs Configuring VLAN Maps

Figure 47-3 Wiring Closet Configuration

Catalyst 4500 series switch

Switch A Switch C

VLAN mapDeny HTTP

from X to Y

Host X 10.1.1.32 Host Y 10.1.1.34 VLAN 1 VLAN 2 Packet

For example, if you do not want HTTP traffic to be switched from Host X to Host Y, you could apply a VLAN map on Switch A to drop all HTTP traffic moving from Host X (IP address 10.1.1.32) to Host Y (IP address 10.1.1.34) at Switch A and not bridge the traffic to Switch B. To configure this scenario, you would do the following.

First, define an IP access list HTTP to permit (match) any TCP traffic on the HTTP port, as follows:

Switch(config)# ip access-list extended http Switch(config-ext-nacl)# permit tcp host 10.1.1.32 host 10.1.1.34 eq www Switch(config-ext-nacl)# exit

Next, create a VLAN access map named map2 so that traffic that matches the HTTP access list is dropped and all other IP traffic is forwarded, as follows:

Switch(config)# vlan access-map map2 10 Switch(config-access-map)# match ip address http Switch(config-access-map)# action drop Switch(config-access-map)# exit

Switch(config)# ip access-list extended match_all Switch(config-ext-nacl)# permit ip any any Switch(config-ext-nacl)# exit Switch(config)# vlan access-map map2 20 Switch(config-access-map)# match ip address match_all Switch(config-access-map)# action forward

You then apply the VLAN access map named map2 to VLAN 1, as follows:

Switch(config)# vlan filter map2 vlan 1

Show 4 more labels / short text on this page
Si · Switch B · HTTP is dropped · at entry point
Page 1155 of the Cisco Systems 4500 user manual — Denying Access to a Server on Another VLAN
Page 1155 · click to enlarge
Page 1155

Chapter 47 Configuring Network Security with ACLs

Denying Access to a Server on Another VLAN

Figure 47-4 shows how to restrict access to a server on another VLAN. In this example, server 10.1.1.100 in VLAN 10 has the following access restrictions:

  • Hosts in subnet 10.1.2.0/8 in VLAN 20 should not have access.
  • Hosts 10.1.1.4 and 10.1.1.8 in VLAN 10 should not have access.

Figure 47-4 Deny Access to a Server on Another VLAN

10.1.1.100

Subnet 10.1.2.0/8

10.1.1.4

Catalyst 4500 series switch Host (VLAN 20) Host (VLAN 10)

10.1.1.8

This procedure configures ACLs with VLAN maps to deny access to a server on another VLAN. The VLAN map SERVER 1_ACL denies access to hosts in subnet 10.1.2.0/8, host 10.1.1.4, and host 10.1.1.8. Then it permits all other IP traffic. In Step 3, VLAN map SERVER1 is applied to VLAN 10.

To configure this scenario, follow these steps:

Step 1 Define the IP ACL to match and permit the correct packets.

Switch(config)# ip access-list extended SERVER1_ACL Switch(config-ext-nacl))# permit ip 10.1.2.0 0.0.0.255 host 10.1.1.100 Switch(config-ext-nacl))# permit ip host 10.1.1.4 host 10.1.1.100 Switch(config-ext-nacl))# permit ip host 10.1.1.8 host 10.1.1.100 Switch(config-ext-nacl))# exit

Step 2 Define a VLAN map using the ACL to drop IP packets that match SERVER1_ACL and forward IP packets that do not match the ACL.

Switch(config)# vlan access-map SERVER1_MAP Switch(config-access-map)# match ip address SERVER1_ACL Switch(config-access-map)# action drop Switch(config)# vlan access-map SERVER1_MAP 20 Switch(config-access-map)# action forward Switch(config-access-map)# exit

Step 3 Apply the VLAN map to VLAN 10.

Switch(config)# vlan filter SERVER1_MAP vlan-list 10.

Show 5 more labels / short text on this page
Configuring VLAN Maps · VLAN map · Server (VLAN 10) · Host (VLAN 10) · Packet
Page 1156 of the Cisco Systems 4500 user manual — Guidelines for Using Router ACLs and VLAN Maps on the Same VLAN
Page 1156 · click to enlarge
Page 1156

Chapter 47 Configuring Network Security with ACLs Displaying VLAN Access Map Information

Displaying VLAN Access Map Information

To display information about VLAN access maps or VLAN filters, perform one of these commands:

Switch# show vlan access-map [mapname] Shows information about all VLAN access maps or the specified access map.

Switch# show vlan filter [access-map name | vlan vlan-id]

Shows information about all VLAN filters or about a specified VLAN or VLAN access map.

it is a sample output of the show vlan access-map command:

Switch# show vlan access-map Vlan access-map "map_1" 10 Match clauses: ip address: ip1 Action: drop Vlan access-map "map_1" 20 Match clauses: mac address: mac1 Action: forward Vlan access-map "map_1" 30 Match clauses: Action: drop

it is a sample output of the show vlan filter command:

Switch# show vlan filter VLAN Map map_1 is filtering VLANs: 20-22

Using VLAN Maps with Router ACLs

If the VLAN map has a match clause for a packet type (IP or MAC) and the packet does not match the type, the default is to drop the packet. If there is no match clause in the VLAN map, and no action is specified, the packet is forwarded if it does not match any VLAN map entry.

Guidelines for Using Router ACLs and VLAN Maps on the Same VLAN

Because the switch hardware performs one lookup for each direction (input and output), you must merge a router ACL and a VLAN map when they are configured on the same VLAN. Merging the router ACL with the VLAN map can significantly increase the number of ACEs.

Page 1157 of the Cisco Systems 4500 user manual — ACLs and Switched Packets
Page 1157 · click to enlarge
Page 1157

Chapter 47 Configuring Network Security with ACLs

Using VLAN Maps with Router ACLs

When possible, try to write the ACL so that all entries have a single action except for the final, default action. You should write the ACL using one of these two forms:

permit... permit... permit... deny ip any any

deny... deny... deny... permit ip any any

To define multiple permit or deny actions in an ACL, group each action type together to reduce the number of entries.

If you need to specify the full-flow mode and the ACL contains both IP ACEs and TCP/UDP/ICMP ACEs with Layer 4 information, put the Layer 4 ACEs at the end of the list. Doing this gives priority to the filtering of traffic based on IP addresses.

Examples of Router ACLs and VLAN Maps Applied to VLANs

These examples show how router ACLs and VLAN maps are applied on a VLAN to control the access of switched, bridged, routed, and multicast packets. Although the following illustrations show packets being forwarded to their destination, each time a packet crosses a line indicating a VLAN map or an ACL, the packet could be dropped rather than forwarded.

ACLs and Switched Packets

Figure 47-5 shows how an ACL processes packets that are switched within a VLAN. Packets switched within the VLAN are not processed by router ACLs.

or

Page 1158 of the Cisco Systems 4500 user manual — VLAN 10 VLAN 20
Page 1158 · click to enlarge
Page 1158

Chapter 47 Configuring Network Security with ACLs Using VLAN Maps with Router ACLs

Figure 47-5 Applying ACLs on Switched Packets

Catalyst 4500 series switch

VLAN 10

VLAN 20

ACL

ACL

Host A (VLAN 10)

Host C (VLAN 10)

VLAN 10 VLAN 20

ACLs and Routed Packets

Figure 47-6 shows how ACLs are applied on routed packets. For routed packets, the ACLs are applied in this order:

1. VLAN map for input VLAN
2. Input router ACL
3. Output router ACL
4. VLAN map for output VLAN
Show 8 more labels / short text on this page
Input router · Output · router · map · map · Frame · Routing function · Packet
Page 1159 of the Cisco Systems 4500 user manual — Creating a PACL
Page 1159 · click to enlarge
Page 1159

Chapter 47 Configuring Network Security with ACLs

Figure 47-6 Applying ACLs on Routed Packets

Catalyst 4500 series switch

VLAN 10

VLAN 20

ACL

ACL

Host A (VLAN 10)

Host B (VLAN 20)

VLAN 10

VLAN 20

Configuring PACLs

This section describes how to configure PACLs, which are used to control filtering on Layer 2 interfaces. PACLs can filter traffic to or from Layer 2 interfaces based on Layer 3 information, Layer 4 head information or non-IP Layer 2 information.

This section includes these topics:

  • Creating a PACL, page 47-35
  • PACL Configuration Guidelines, page 47-36
  • Removing the Requirement for a Port ACL, page 47-36
  • Webauth Fallback, page 47-37
  • Configuring IPv4, IPv6, and MAC ACLs on a Layer 2 Interface, page 47-38
  • Using PACL with Access-Group Mode, page 47-39
  • Configuring Access-group Mode on Layer 2 Interface, page 47-39
  • Applying ACLs to a Layer 2 Interface, page 47-40
  • Displaying an ACL Configuration on a Layer 2 Interface, page 47-40

Creating a PACL

To create a PACL and apply it to one or more interfaces, follow these steps:

Step 1 Create the standard or extended IPv4 ACLs, IPv6 ACLs, or named MAC extended ACLs that you want to apply to the interface.

Show 9 more labels / short text on this page
Configuring PACLs · Input router · Output · router · map · map · Frame · Routing function · Packet
Page 1160 of the Cisco Systems 4500 user manual — Removing the Requirement for a Port ACL
Page 1160 · click to enlarge
Page 1160

Chapter 47 Configuring Network Security with ACLs Configuring PACLs

Step 2 Use the IP access-group, IPv6 traffic-filter, or mac access-group interface command to apply IPv4, IPv6, or MAC ACLs to one or more Layer 2 interfaces.

PACL Configuration Guidelines

When configuring PACLs, consider these guidelines:

  • There can be at most one IPv4, one IPv6, and one MAC access list applied to the same Layer 2 interface per direction.
  • The IPv4 access list filters only IPv4 packets, the IPv6 access list filters only IPv6 packets, and the MAC access list filters only non-IP packets.
  • The number of ACLs and ACEs that can be configured as part of a PACL are bounded by the hardware resources on the switch. Those hardware resources are shared by various ACL features (for example, RACL, VACL) that are configured on the system. If insufficient hardware resources to program PACL exist in hardware, the actions for input and output PACLs differ:

– For input PACLs, some packets are sent to CPU for software forwarding.

– For output PACLs, the PACL is disabled on the port.

  • These restrictions pertain to output PACLs only:

– If insufficient hardware resources exist to program the PACL, the output PACL is not applied to the port, and you receive a warning message.

– On Supervisor Engine II+, if an output PACL is configured on a Layer 2 port, then neither a VACL nor a Router ACL can be configured on the VLANs to which the Layer 2 port belongs.

If any VACL or Router ACL is configured on the VLANs to which the Layer 2 port belongs, the output PACL cannot be configured on the Layer 2 port. PACLs and VLAN-based ACLs (VACL and Router ACL) are mutually exclusive on Layer 2 ports.

  • The input ACL logging option is supported, although logging is not supported for output ACLs.
  • The access group mode can change the way PACLs interact with other ACLs. To maintain consistent behavior across Cisco platforms, use the default access group mode.
  • If a PACL is removed when there are active sessions on a port, a hole (permit ip any any) is installed on the port.

Removing the Requirement for a Port ACL

Prior to Cisco IOS Release 12.2(54)SG, a standard port ACL was necessary if you planned to download an ACL from a AAA server. This was because ACL infrastructure was insufficient to provide dynamic creation of access control entries without associating an ACL with the port.

Starting with Cisco IOS Release 12.2(54)SG, configuring a port ACL is not mandatory. If a port ACL is not configured on the port (by entering the ip access-group number in command), a default ACL (AUTH-DEFAULT-ACL) is attached automatically to the port when an ACL is downloaded. It allows only DHCP traffic and consists of the following ACEs:

permit udp any range bootps 65347 any range bootpc 65348 permit udp any any range bootps 65347 deny ip any any.

AUTH-DEFAULT-ACL is automatically created. To modify it, enter the following command:

Page 1161 of the Cisco Systems 4500 user manual — Webauth Fallback
Page 1161 · click to enlarge
Page 1161

Chapter 47 Configuring Network Security with ACLs

ip access-list extended AUTH-DEFAULT-ACL

This ACL is not nvgened. AUTH-DEFAULT-ACL is attached provided there are sessions applying dynamic ACLs (Per-user/Filter-Id/DACL). AUTH-DEFAULT-ACL is removed when the last authenticated session with policies is cleared. It remains attached to the port provided at least one session is applying dynamic policies.

Configuration Restrictions

The following restrictions apply:

  • Starting with Cisco IOS Release 12.2(54)SG, the port ACL does not require configuration; the default ACL is created automatically.
  • Even if AUTH-DEFAULT-ACL is modified, it is not nvgened.

Debugging Considerations

Syslog messages appear when AUTH-DEFAULT-ACL is attached or detached from an interface provided you enter the epm logging command in configuration mode.

The following syslog displays when the default ACL is attached:

%EPM-6-AUTH_ACLPOLICY Auth-Default-ACL| EVENT CREATE-ATTACH-SUCCESS

The following syslog displays when the ACL is detached:

%EPM-6-AUTH_ACLPOLICY Auth-Default-ACL| EVENT DETACH-SUCCESS %EPM-6-AUTH_ACL: POLICY Auth-Default-ACL| EVENT DELETE-SUCCESS

Webauth Fallback

Many authentication methods require specific capabilities on the end-point device to respond to the network authenticating device with its identity or credentials. If the end-point lacks the required capability, the authenticator must fallback to alternative methods to gather host or user credentials. If the 802.1X/MAB authentication mechanism fails, a fallback to webauth might occur.

Prior to Cisco IOS Release 12.2(54)SG, webauth fallback implementation required a fallback profile configured on the authenticating device. As part of this profile, an admission rule must be configured along with the access policies (the fallback ACL).

Consider a situation where no port ACL is configured on a port. The first few hosts authenticated through 802.1X/MAB do not download any ACLs. All traffic from these hosts is allowed through. Now, suppose a host connects to the port, and there is a fallback to webauth to authenticate the host. The fallback ACL will be installed on the port, and traffic from previously authenticated hosts will also be restricted by this fallback ACL.

Starting with Cisco IOS Release 12.2(54)SG, Cisco uses a different approach to address this issue. When a host falls back to webauth for authentication, the ACE entries in the fallback ACL are converted into entries with Host IP insertion for a host that has fallen back and will be applied until the host authenticates. Once the host successfully authenticates, the fallback ACL is removed. The resultant host ACLS will be: dynamic ACLs and Port ACL/AUTH-DEFAULT-ACL. Refer to the previous section for an explanation of AUTH-DEFAULT -ACL.

Configuring PACLs

Page 1162 of the Cisco Systems 4500 user manual — Configuring IPv4, IPv6, and MAC ACLs on a Layer 2 Interface
Page 1162 · click to enlarge
Page 1162

Chapter 47 Configuring Network Security with ACLs Configuring PACLs

Configuring IPv4, IPv6, and MAC ACLs on a Layer 2 Interface

Standard (numbered, named), Extended (numbered, named) IP ACLs, and Extended Named MAC ACLs are also supported.

To apply IPv4 or MAC ACLs on a Layer 2 interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface Enters interface configuration mode.

Step 3 Switch(config-if)# [no] {ip | mac} access-group {name | number} {in | out}

Applies numbered or named ACL to the Layer 2 interface. The no form deletes the IP or MAC ACL from the Layer 2 interface.

Step 4 Switch(config)# show running-config Displays the access list configuration.

To apply IPv6 ACLs on a Layer 2 interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface Enters interface configuration mode.

Step 3 Switch(config-if)# [no] ipv6 traffic-filter name {in | out}

Applied the specified IPv6 ACL to the Layer 2 interface. The no form deletes the IPv6 ACL from the Layer 2 interface.

Step 4 Switch(config)# show running-config Displays the access list configuration.

The following example shows how to configure the Extended Named IP ACL simple-ip-acl to permit all TCP traffic and implicitly deny all other IP traffic:

Switch(config)# interface Gi3/1 Switch(config-if)# ip access-list extended simple-ip-acl Switch(config-ext-nacl)# permit tcp any any Switch(config-ext-nacl)# end

The following example shows how to configure the Extended Named MACL simple-mac-acl to permit source host 000.000.011 to any destination host:

Switch(config)# interface Gi3/1 Switch(config-if)# mac access-list extended simple-mac-acl Switch(config-ext-macl)# permit host 000.000.011 any Switch(config-ext-macl)# end

Page 1163 of the Cisco Systems 4500 user manual — Configuring Access-group Mode on Layer 2 Interface
Page 1163 · click to enlarge
Page 1163

Chapter 47 Configuring Network Security with ACLs

Using PACL with Access-Group Mode

You can use the access group mode to change the way PACLs interact with other ACLs. For example, if a Layer 2 interface belongs to VLAN100, VACL (VLAN filter) V1 is applied on VLAN100, and PACL P1 is applied on the Layer 2 interface. In this situation, you must specify how P1 and V1 impact the traffic with the Layer 2 interface on VLAN100. In a per-interface method, you can use the access-group mode command to specify one of the following desired modes:

  • prefer port mode — If PACL is configured on a Layer 2 interface, then PACL takes effect and overwrites the effect of other ACLs (Router ACL and VACL). If no PACL feature is configured on the Layer 2 interface, other features applicable to the interface are merged and applied on the interface. it is the default access group mode.
  • prefer VLAN mode — VLAN-based ACL features take effect on the port if they have been applied on the port and no PACLs are in effect. If no VLAN-based ACL features are applicable to the Layer 2 interface, then the PACL feature already on the interface is applied.
  • merge mode — Merges applicable ACL features before they are programmed into the hardware.

Configuring Access-group Mode on Layer 2 Interface

To configure an access mode on a Layer 2 interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface Enters interface configuration mode.

Step 3 Switch(config-if)# [no] access-group mode {prefer {port | vlan} | merge}

Applies numbered or named ACL to the Layer 2 interface. The no form deletes the IP or MAC ACL from the Layer 2 interface.

Step 4 Switch(config)# show running-config Displays the access list configuration.

This example shows how to merge and apply features other than PACL on the interface:

Switch# configure terminal Switch(config)# interface fast 6/1 Switch(config-if)# access-group mode prefer port

This example shows how to merge applicable ACL features before they are programmed into hardware:

Switch# configure terminal Switch(config)# interface fast 6/1 Switch(config-if)# access-group mode merge

Configuring PACLs

Page 1164 of the Cisco Systems 4500 user manual — Displaying an ACL Configuration on a Layer 2 Interface
Page 1164 · click to enlarge
Page 1164

Chapter 47 Configuring Network Security with ACLs Configuring PACLs

Applying ACLs to a Layer 2 Interface

To apply IPv4, IPv6, and MAC ACLs to a Layer 2 interface, perform one of these tasks:

Switch(config-if)# ip access-group ip-acl {in | out} Applies an IPv4 ACL to the Layer 2 interface.

Switch(config-if)# ipv6 traffic-filter ipv6-acl {in | out} Applies an IPv6 ACL to the Layer 2 interface.

Switch(config-if)# mac access-group mac-acl {in | out} Applies a MAC ACL to the Layer 2 interface.

This example applies the extended named IP ACL simple-ip-acl to interface FastEthernet 6/1 ingress traffic:

Switch# configure terminal Switch(config)# interface fast 6/1 Switch(config-if)# ip access-group simple-ip-acl in

This example applies the IPv6 ACL simple-ipv6-acl to interface FastEthernet 6/1 ingress traffic:

Switch# configure terminal Switch(config)# interface fast 6/1 Switch(config-if)# ipv6 traffic-filter simple-ipv6-acl in

This example applies the extended named MAC ACL simple-mac-acl to interface FastEthernet 6/1 egress traffic:

Switch# configure terminal Switch(config)# interface fast 6/1 Switch(config-if)# mac access-group simple-mac-acl out

Displaying an ACL Configuration on a Layer 2 Interface

To display information about an ACL configuration on Layer 2 interfaces, perform one of these tasks:

Switch# show ip interface [interface-name] Shows the IP access group configuration on the interface.

Switch# show mac access-group interface [interface-name]

Shows the MAC access group configuration on the interface.

Switch# show access-group mode interface [interface-name]

Shows the access group mode configuration on the interface.

This example shows that the IP access group simple-ip-acl is configured on the inbound direction of interface fa6/1:

Switch# show ip interface fast 6/1 FastEthernet6/1 is up, line protocol is up Inbound access list is simple-ip-acl Outgoing access list is not set

Page 1165 of the Cisco Systems 4500 user manual — ACL Type(s) PACL
Page 1165 · click to enlarge
Page 1165

Chapter 47 Configuring Network Security with ACLs

Using PACL with VLAN Maps and Router ACLs

This example shows that MAC access group simple-mac-acl is configured on the inbound direction of interface fa6/1:

Switch# show mac access-group interface fast 6/1 Interface FastEthernet6/1: Inbound access-list is simple-mac-acl Outbound access-list is not set

This example shows that access group merge is configured on interface fa6/1:

Switch# show access-group mode interface fast 6/1 Interface FastEthernet6/1: Access group mode is: merge

Using PACL with VLAN Maps and Router ACLs

On Supervisor Engine II+, for output PACLs, there is no interaction with VACL or output Router ACLs. See the restrictions listed in the “PACL Configuration Guidelines” section on page 47-36. For PACLs, the interaction with Router ACLs and VACLs depends on the interface access group mode as shown in Table 47-1.

Table 47-1 Interaction between PACLs, VACLs, and Router ACLs

ACL Type(s) PACL

1. Input Router ACL PACL applied Ingress: Input Router ACL applied
IngressInput PACL, Input Router ACL (merged) applied in order
EgressOutput Router ACL, output PACL applied in order
EgressOutput Router ACL applied
2. VACL PACL applied VACL applied
IngressInput PACL, VACL (merged) applied in order
EgressVACL, PACL applied in order
3. VACL + Input Router ACL
PACL applied IngressVACL + Input Router ACL applied
IngressPACL, VACL, Input Router ACL (merged) applied in order
EgressOutput Router ACL, VACL, PACL applied in order
EgressVACL + Output Router ACL applied

Each ACL type listed in Table 47-1 corresponds with these scenarios:

Scenario 1: Host A is connected to an interface in VLAN 20, which has an SVI configured. The interface has input PACL configured, and the SVI has input Router ACL configured as shown in Figure 47-7:

prefer port mode · prefer VLAN mode · merge mode

Page 1166 of the Cisco Systems 4500 user manual — VLAN 10
Page 1166 · click to enlarge
Page 1166

Chapter 47 Configuring Network Security with ACLs Using PACL with VLAN Maps and Router ACLs

Figure 47-7 Scenario 1PACL Interaction with an Input Router ACL

Catalyst 4500 series switch

ACL

PACL

Host A (VLAN 10)

Host B (VLAN 20)

VLAN 10

VLAN 20

If the interface access group mode is prefer port, then only the input PACL is applied on the ingress traffic from Host A. If the mode is prefer VLAN, then only the input Router ACL is applied to ingress traffic from Host A that requires routing. If the mode is merge, then the input PACL is first applied to the ingress traffic from Host A, and the input Router ACL is applied on the traffic that requires routing.

Scenario 2: Host A is connected to an interface in VLAN 10, which has a VACL (VLAN Map) configured and an input PACL configured as shown in Figure 47-8:

Figure 47-8 Scenario 2PACL Interaction with a VACL

Catalyst 4500 series switch

VLAN 10

Host A (VLAN 10)

Host B (VLAN 10)

VLAN 10

If the interface access group mode is prefer port, then only the input PACL is applied on the ingress traffic from Host A. If the mode is prefer VLAN, then only the VACL is applied to the ingress traffic from Host A. If the mode is merge, the input PACL is first applied to the ingress traffic from Host A, and the VACL is applied on the traffic.

Show 10 more labels / short text on this page
Input router · Input PACL · Output · Frame · Routing function · Packet · Input PACL · map · Frame · Packet
Page 1167 of the Cisco Systems 4500 user manual — Introduction
Page 1167 · click to enlarge
Page 1167

Chapter 47 Configuring Network Security with ACLs

Scenario 3: Host A is connected to an interface in VLAN 10, which has a VACL and an SVI configured. The SVI has an input Router ACL configured and the interface has an input PACL configured, as shown in Figure 47-9:

Figure 47-9 Scenario 3VACL and Input Router ACL

Catalyst 4500 series switch

VLAN 10

VLAN 20

ACL

ACL

Host A (VLAN 10)

Host B (VLAN 20)

VLAN 10

VLAN 20

If the interface access group mode is prefer port, then only the input PACL is applied on the ingress traffic from Host A. If the mode is prefer VLAN, then the merged results of the VACL and the input Router ACL are applied to the ingress traffic from Host A. If the mode is merge, the input PACL is first applied to the ingress traffic from Host A, the VACL is applied on the traffic and finally, and the input Router ACL is applied to the traffic that needs routing. (that is, the merged results of the input PACL, VACL, and input Router ACL are applied to the traffic).

Configuring RA Guard

This section includes these topics:

  • Introduction, page 47-43
  • Deployment, page 47-44
  • Configuring RA Guard, page 47-45
  • Examples, page 47-45
  • Usage Guidelines, page 47-46

Introduction

When deploying IPv6 networks, routers are configured to use IPv6 Router Advertisements to convey configuration information to hosts onlink. Router Advertisement is a critical part of the autoconfiguration process. The conveyed information includes the implied default router address

Show 9 more labels / short text on this page
Configuring RA Guard · Input router · Output · map Input PACL · router · map · Frame · Routing function · Packet
Page 1168 of the Cisco Systems 4500 user manual — Deployment
Page 1168 · click to enlarge
Page 1168

Chapter 47 Configuring Network Security with ACLs Configuring RA Guard

obtained from the observed source address of the Router-Advertisement (RA) message. However, in some networks, invalid RAs are observed. This may happen because of misconfigurations or a malicious attacks on the network.

Devices acting as rogue routers may send illegitimate RAs.When using IPv6 within a single Layer 2 network segment, you can enable Layer 2 devices to drop rogue RAs before they reach end-nodes.

RA Guard examines incoming Router-Advertisement and Router-Redirect packets and decides whether to switch or block them based solely on information found in the message and in the Layer 2 device configuration.

You can configure RA Guard in two modes (host and router) based on the device connected to the port.

  • Host mode—All the Router-Advertisement and Router-Redirect messages are disallowed on the port.
  • Router mode—All messages (RA/RS/Redirect) are allowed on the port; only host mode is supported.

You can configure Catalyst 4500 host ports to allow or disallow RA messages. Once a port is configured to disallow the Router-Advertisement and Router-Redirect packets, it filters the content of the received frames on that port and blocks Router-Advertisement or Router-Redirect frames.

When RA Guard is configured on a port, the following packets are dropped in hardware:

  • Router-Advertisement packets —IPv6 ICMP packets with ICMP type = 134
  • Router-Redirect packets—IPv6 ICMP packets with ICMP type = 137

Per port RA Guard ACL statistics are supported and displayed when you enter a show ipv6 snooping counters interface command. The statistics output displays the number of packets that have been dropped per port due to the RA Guard.

Deployment

Figure 47-10 illustrates a deployment scenario for RA Guard. We drop RA packets from ports that are connected to hosts and permit RA packets from ports connected to the Router.

Page 1169 of the Cisco Systems 4500 user manual — Examples
Page 1169 · click to enlarge
Page 1169

Chapter 47 Configuring Network Security with ACLs

Figure 47-10 Typical RA Guard Deployment

Catalyst 4500 Series Switch

RA

RA

Configuring RA Guard

To configure RA Guard, perform this step:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 1 Switch(config)# interface interface Enters interface mode.

Step 2 Switch(config-if)# [no] ipv6 nd raguard

Enables RA Guard on the switch.

Step 3 Switch(config-if)# end Returns to privileged EXEC mode.

Step 4 Switch# show ipv6 first-hop policies interface

Shows the list of interfaces on which RA Guard has been enabled. The interface option allows you to determine whether RA Guard is configured on an interface.

Step 5 Switch# show ipv6 first-hop counters interface

Shows the number of packets dropped per port due to RA Guard. The counters can be displayed for a particular interface by using the interface option.

Step 6 Switch# clear ipv6 first-hop counters interface

Clears RA Guard counters on a particular interface.

The counters on all interfaces are cleared if the interface option is absent.

Examples

This examples shows how to enable RA Guard on the switch:

Switch(config)# int gi1/1 Switch(config-if)# ipv6 nd raguard Switch(config-if)# end Switch# show running-configuration interface gi1/1

Building configuration...

Current configuration53 bytes
Show 6 more labels / short text on this page
Configuring RA Guard · Block incoming · Allow incoming · Host A Router · Block incoming RA · Host B
Page 1170 of the Cisco Systems 4500 user manual — Usage Guidelines
Page 1170 · click to enlarge
Page 1170

Chapter 47 Configuring Network Security with ACLs Configuring RA Guard

The following example shows a sample output of the show ipv6 commands:

Switch# show ipv6 snooping counters int gi 2/48 Received messages on Gi2/48: Protocol Protocol message ICMPv6 RS RA NS NA REDIR CPS CPA 0

Bridged messages from Gi2/48: Protocol Protocol message ICMPv6 RS RA NS NA REDIR CPS CPA 0

Dropped messages on Gi2/48Feature/Message RS RA NS NA REDIR CPS CPA
Dropped reasons on Gi2/48Switch#

Switch# show ipv6 first-hop policies RA guard policies configured:

Policy Interface Vlan default Gi2/48 all

Usage Guidelines

Observe the following restrictions:

  • RA Guard is an ingress feature; only IPv6 Router-Advertisement and Router-Redirect packets entering through the port are filtered.
  • RA Guard does not offer protection in environments where IPv6 traffic is tunneled.
  • This feature is supported only in hardware; packets are not punted to software except under resource exhaustion (for example, TCAM memory exhaustion).
Show 5 more labels / short text on this page
! · interface GigabitEthernet1/1 · ipv6 nd raguard · end · Switch#
Page 1171 of the Cisco Systems 4500 user manual — Configuring Network Security with ACLs
Page 1171 · click to enlarge
Page 1171

Chapter 47 Configuring Network Security with ACLs

  • RA Guard is purely an Layer 2 port based feature and can be configured only on switchports. It works irrespective of whether IPv6 routing is enabled. It is not supported on router interfaces and VLANs.
  • RA Guard is supported on trunk ports; filtering is performed on packets arriving from all the allowed VLANs.
  • RA Guard is supported on EtherChannel; the RA Guard configuration (whether present or not) on the EtherChannel overrides the RA Guard configuration on the member ports.
  • RA Guard is supported on ports that belong to PVLANs (for example, isolated secondary host ports, community secondary host ports, promiscuous primary host ports, (primary/secondary) trunk ports. Primary VLAN features are inherited and merged with port features.
  • Because of hardware limitations, it may not be possible for Supervisor Engine 6-E and 6L-E to collect statistics for RA Guard in hardware. If so, an error message is displayed. The show ipv6 snooping counter interface commands display the estimated counters .

Configuring RA Guard

Page 1172 of the Cisco Systems 4500 user manual — Configuring Network Security with ACLs
Page 1172 · click to enlarge
Page 1172

Chapter 47 Configuring Network Security with ACLs Configuring RA Guard

Page 1173 of the Cisco Systems 4500 user manual — About IPv6
Page 1173 · click to enlarge
Page 1173

C H A P T E R

Support for IPv6

This chapter lists the IP version 6 (IPv6) features supported on the Catalyst 4500 and Catalyst 4900 series switches.

The IPv6 for Cisco IOS software feature documentation provides implementation and command reference information for IPv6 features supported in the Cisco IOS software. Not all IPv6 features are supported on the Catalyst 4500 and Catalyst 4900 series switches. We strongly recommend that you read this entire chapter before reading the other IPv6 for Cisco IOS software feature documentation.

Finding Feature Information

Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://tools.cisco.com/ITDIT/CFN/ An account on Cisco.com is not required.

The Cisco IOS IPv6 Configuration Guide is located at the following website:

http://www.cisco.com/en/US/docs/ios-xml/ios/ipv6/configuration/15-2s/ip6-15-2s-book.html

The Cisco IOS IPv6 Command Reference is located at the following website:

http://www.cisco.com/en/US/docs/ios/ipv6/command/reference/ipv6_book.html

This chapter consists of these sections:

  • About IPv6, page 48-1
  • IPv6 Default States, page 48-7

About IPv6

IPv6 provides services such as end-to-end security, quality of service (QoS), and globally unique addresses. The IPv6 address space reduces the need for private addresses and Network Address Translation (NAT) processing by border routers at network edges.

Catalyst 4500 Switch Software Configuration Guide OL-23818-01

Page 1174 of the Cisco Systems 4500 user manual — 2031:0:130F::09C0:080F:130B
Page 1174 · click to enlarge
Page 1174

Chapter 48 Support for IPv6 About IPv6

For information about how Cisco Systems implements IPv6, go to this URL:

http://www.cisco.com/en/US/products/ps6553/products_ios_technology_home.html

This section describes the features that are supported for IPv6:

  • IPv6 Addressing and Basic Connectivity, page 48-2
  • DHCP, page 48-3
  • Security, page 48-3
  • QoS, page 48-3
  • Management, page 48-4
  • Multicast, page 48-4
  • Static Routes, page 48-5
  • First-Hop Redundancy Protocols, page 48-5
  • Unicast Routing, page 48-5
  • Tunneling, page 48-7

IPv6 Addressing and Basic Connectivity

The switch supports only IPv6 unicast addresses. It does not support site-local unicast addresses or multicast addresses.

The IPv6 128-bit addresses are represented as a series of eight 16-bit hexadecimal fields separated by colons in the format: n:n:n:n:n:n:n:n. it is an example of an IPv6 address:

2031:0000:130F:0000:0000:09C0:080F:130B

The leading zeros in each field are optional, implementation is easier without them. it is the same address without leading zeros:

2031:0:130F:0:0:9C0:80F:130B

You can also use two colons (::) to represent successive hexadecimal fields of zeros, but you can use this short version only once in each address:

2031:0:130F::09C0:080F:130B

The switch supports the following features:

  • IPv6 address types: Anycast
  • IPv6 default router preferences
  • IPv6 MTU path discovery
  • Neighbor discovery duplicate address detection
  • Cisco Discovery Protocol — IPv6 address family support for neighbor information
  • ICMPv6 redirect
  • ICMP rate limiting
  • DNS lookups over an IPv6 transport
  • uRPF
  • ICMPv6
  • AAAA DNS lookups over an IPv4 transport
Page 1175 of the Cisco Systems 4500 user manual — QoS
Page 1175 · click to enlarge
Page 1175

Chapter 48 Support for IPv6

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-addrg_bsc_con.html

DHCP

The following DHCP features are supported for IPv6 on the Catalyst 4500 series switch:

  • Relay agent
  • Relay agent notification for prefix delegation
  • Reload persistent interface ID option
  • Ethernet remote ID option
  • Stateless auto-configuration

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-dhcp.html

Security

The following security features are supported for IPv6 on the Catalyst 4500 series switch:

  • Secure Shell (SSH) support over IPv6
  • Traffic filters
  • standard access control lists (ACL)
  • extended access control lists
  • ACL accounting
  • ACL addressing
  • ACL DSCP
  • ACL flags
  • ACL flows
  • ACL fragments
  • ACL ICMP codes
  • ACL logging
  • ACL protocols

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-sec_trfltr_fw.html

QoS

The following QoS features are supported for IPv6 on the Catalyst 4500 series switch:

  • MQC packet classification
  • MQC traffic shaping

Catalyst 4500 Switch Software Configuration Guide OL-23818-01

About IPv6

Page 1176 of the Cisco Systems 4500 user manual — Multicast
Page 1176 · click to enlarge
Page 1176

Chapter 48 Support for IPv6 About IPv6

  • MQC traffic policing
  • MQC packing marking and remarking
  • Queueing

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-qos.html

Management

The following management features are supported for IPv6 on the Catalyst 4500 series switch:

  • Ping
  • Syslog
  • Netconf support
  • SNMP
  • SOAP
  • HTTP(s)

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-mng_apps.html

Multicast

Traditional IP communication allows a host to send packets to a single host (unicast transmission) or to all hosts (broadcast transmission). IPv6 multicast, allows a host to send a single data stream to a subset of all hosts (group transmission) simultaneously.

The following multicast features are supported for IPv6 on the Catalyst 4500 series switch:

  • Multicast Listener Discovery (MLD) protocol, versions 1 and 2

You can find information about IPv6 MLD Snooping at this location:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/53SG/configuration/mldsnoop.h tml

  • PIM Sparse Mode (PIM-SM)
  • PIM Source Specific Multicast (PIM-SSM)
  • Scope boundaries
  • MLD access group
  • PIM embedded Rendezvous Point (RP) support
  • Static multicast routing (mroute)
  • Explicit tracking of receivers
  • Bootstrap routers (BSR)
  • MLD snooping

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-multicast.html

Page 1177 of the Cisco Systems 4500 user manual — RIP
Page 1177 · click to enlarge
Page 1177

Chapter 48 Support for IPv6

Static Routes

Networking devices forward packets using route information that is either manually configured or dynamically learned using a routing protocol. Static routes are manually configured and define an explicit path between two networking devices. Unlike a dynamic routing protocol, static routes are not automatically updated and must be manually reconfigured if the network topology changes. The benefits of using static routes include security and resource efficiency. Static routes use less bandwidth than dynamic routing protocols and no CPU cycles are used to calculate and communicate routes. The main disadvantage to using static routes is the lack of automatic reconfiguration if the network topology changes.

Static routes can be redistributed into dynamic routing protocols but routes generated by dynamic routing protocols cannot be redistributed into the static routing table. No algorithm exists to prevent the configuration of routing loops that use static routes.

Static routes are useful for smaller networks with only one path to an outside network and to provide security for a larger network for certain types of traffic or links to other networks that need more control. In general, most networks use dynamic routing protocols to communicate between networking devices but may have one or two static routes configured for special cases.

You can find more information regarding static routes at:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-stat_routes.html

First-Hop Redundancy Protocols

IPv6 routing protocols ensure router-to-router resilience and failover. However, in situations in which the path between a host and the first-hop router fails, or the first-hop router itself fails, First-Hop Redundancy Protocols (FHRPs) ensure host-to-router resilience and failover.

The Hot Standby Router Protocol (HSRP) protects data traffic in case of a gateway failure.

You can find more information about First-Hop Redundancy Protocols at:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-fhrp.html

Unicast Routing

These sections describe the IPv6 unicast routing protocol features supported by the switch:

  • RIP, page 48-5
  • OSPF, page 48-6
  • EIGRP, page 48-6
  • IS-IS, page 48-6
  • Multiprotocol BGP, page 48-6

RIP

Routing Information Protocol (RIP) for IPv6 is a distance-vector protocol that uses hop count as a routing metric. It includes support for IPv6 addresses and prefixes and the all-RIP routers multicast group address FF02::9 as the destination address for RIP update messages.

You can find more about RIP at this location:

Catalyst 4500 Switch Software Configuration Guide OL-23818-01

About IPv6

Page 1178 of the Cisco Systems 4500 user manual — Multiprotocol BGP
Page 1178 · click to enlarge
Page 1178

Chapter 48 Support for IPv6 About IPv6

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-rip.html

OSPF

The switch running the IP services feature set supports Open Shortest Path First (OSPF) for IPv6, a link-state protocol for IP.

You can find more information about OSPF at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-ospf.html

EIGRP

The switch running the IP-services feature set supports Enhanced Interior Gateway Routing Protocol (EIGRP) for IPv6. It is configured on the interfaces on which it runs and does not require a global IPv6 address.

Before running, an instance of EIGRP IPv6 requires an implicit or explicit router ID. An implicit router ID is derived from a local IPv4 address, so any IPv4 node always has an available router ID. However, EIGRP IPv6 might be running in a network with only IPv6 nodes and therefore might not have an available IPv4 router ID.

You can find more information about EIGRP at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-eigrp.html

IS-IS

Intermediate System-to-Intermediate System (IS-IS) is an Interior Gateway Protocol (IGP) that advertises link-state information throughout the network to create a picture of the network topology. IS-IS is an Open Systems Interconnection (OSI) hierarchical routing protocol that designates an intermediate system as a Level 1 or Level 2 device. Level 2 devices route between Level 1 areas to create an intradomain routing backbone. Integrated IS-IS uses a single routing algorithm to support several network address families, such as IPv6, IPv4, and OSI.

You can find more information about Is-IS at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-is-is.html

Multiprotocol BGP

Multiprotocol Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) used mainly to connect separate routing domains that contain independent routing policies (autonomous systems). Connecting to a service provider for access to the Internet is a common use for BGP. BGP can also be used within an autonomous system, which is referred to as internal BGP (iBGP). Multiprotocol BGP is an enhanced BGP that carries routing information for multiple network layer protocol address families, for example, IPv6 address family and for IP multicast routes. All BGP commands and routing policy capabilities can be used with multiprotocol BGP.

You can find more information about multiprotocol BGP at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-mptcl_bgp.html

Page 1179 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 1179 · click to enlarge
Page 1179

Chapter 48 Support for IPv6

Tunneling

The following tunneling features are supported for IPv6 on the Catalyst 4500 series switch:

  • Automatic 6to4
  • ISATAP
  • Configured tunnels

You can find information about these features at this location:

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-tunnel.html

IPv6 Default States

Table 48-1 shows the default states of IPv6 configuration.

Table 48-1 Default IPv6 Configuration

Feature Default Setting

IPv6 routing Disabled globally and on all interfaces

CEFv6 or dCEFv6 Disabled (IPv4 CEF and dCEF are enabled by default)

IPv6 addresses None configured

Catalyst 4500 Switch Software Configuration Guide OL-23818-01

IPv6 Default States

Page 1180 of the Cisco Systems 4500 user manual — Support for IPv6
Page 1180 · click to enlarge
Page 1180

Chapter 48 Support for IPv6 IPv6 Default States

Page 1181 of the Cisco Systems 4500 user manual — Configuring Port Blocking
Page 1181 · click to enlarge
Page 1181

C H A P T E R

Port Unicast and Multicast Flood Blocking

This chapter describes how to configure multicast and unicast flood blocking on the Catalyst 4000 family switch. This chapter contains these topics:

  • About Flood Blocking, page 49-1
  • Configuring Port Blocking, page 49-1

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Flood Blocking

Occasionally, unknown unicast or multicast traffic is flooded to a switch port because a MAC address has timed out or has not been learned by the switch. (This condition is especially undesirable for a private VLAN isolated port.) To guarantee that no unicast and multicast traffic is flooded to the port, use the switchport block unicast and switchport block multicast commands to enable flood blocking on the switch.

Configuring Port Blocking

By default, a switch floods packets with unknown destination MAC addresses to all ports. If unknown unicast and multicast traffic is forwarded to a switch port, there might be security issues. To prevent forwarding such traffic, you can configure a port to block unknown unicast or multicast packets.

Page 1182 of the Cisco Systems 4500 user manual — Blocking Flooded Traffic on an Interface
Page 1182 · click to enlarge
Page 1182

Chapter 49 Port Unicast and Multicast Flood Blocking Configuring Port Blocking

Blocking Flooded Traffic on an Interface

To disable the flooding of multicast and unicast packets to an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode and enter the type and number of the switch port interface (for example, GigabitEthernet 1/1).

Step 3 Switch(config-if)# switchport block multicast

Blocks unknown multicast forwarding to the port.

Step 4 Switch(config-if)# switchport block unicast Blocks unknown unicast forwarding to the port.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show interface interface-id switchport

Verifies your entry.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to block unicast and multicast flooding on a GigabitEthernet interface1/1 and how to verify the configuration:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet1/1 Switch(config-if)# switchport block multicast Switch(config-if)# switchport block unicast Switch(config-if)# end Switch# show interface gigabitethernet1/1 switchport Name: Gi1/3 Switchport: Enabled

Port ProtectedOn Unknown Unicast Traffic: Not Allowed Unknown Multicast Traffic: Not Allowed

Page 1183 of the Cisco Systems 4500 user manual — Resuming Normal Forwarding on a Port
Page 1183 · click to enlarge
Page 1183

Chapter 49 Port Unicast and Multicast Flood Blocking

Broadcast Suppression Level100 Multicast Suppression Level: 100 Unicast Suppression Level: 100

Resuming Normal Forwarding on a Port

To resume normal forwarding on a port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id

Enters interface configuration mode and enter the type and number of the switch port interface (GigabitEthernet1/1).

Step 3 Switch(config-if)# no switchport block multicast

Enables unknown multicast flooding to the port.

Step 4 Switch(config-if)# no switchport block unicast

Enables unknown unicast flooding to the port.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show interface interface-id switchport

Verifies your entry.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Configuring Port Blocking

Page 1184 of the Cisco Systems 4500 user manual — Port Unicast and Multicast Flood Blocking
Page 1184 · click to enlarge
Page 1184

Chapter 49 Port Unicast and Multicast Flood Blocking Configuring Port Blocking

Page 1185 of the Cisco Systems 4500 user manual — About Storm Control
Page 1185 · click to enlarge
Page 1185

C H A P T E R

Configuring Storm Control

This chapter describes how to configure port-based traffic control on the Catalyst 4500 series switch.

This chapter consists of these sections:

  • About Storm Control, page 50-1
  • Enabling Broadcast Storm Control, page 50-3
  • Enabling Multicast Storm Control, page 50-4
  • Disabling Broadcast Storm Control, page 50-6
  • Disabling Multicast Storm Control, page 50-7
  • Displaying Storm Control, page 50-8

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About Storm Control

This section contains the following subsections:

  • Hardware-Based Storm Control Implementation, page 50-2
  • Software-Based Storm Control Implementation, page 50-3

Storm control prevents LAN interfaces from being disrupted by a broadcast storm. A broadcast storm occurs when broadcast packets flood the subnet, creating excessive traffic and degrading network performance. Errors in the protocol-stack implementation or in the network configuration can cause a broadcast storm.

Page 1186 of the Cisco Systems 4500 user manual — S5706
Page 1186 · click to enlarge
Page 1186

Chapter 50 Configuring Storm Control About Storm Control

Note Storm control and Multicast storm control are supported in hardware on all ports on the WS-X4516, WS-X4013+10GE, WS-X4516-10GE, WS-C4948, WS-C4948-10GE, WS-C4900M, WS-C4948E, WS-X45-Sup6-E, and WS-X45-Sup6L-E. In contrast, the supervisor engines WS-X4515, WS-X4014, and WS-X4013+ support storm control in hardware on non-blocking gigabit ports and in software on all other ports, implying that the counters for these interfaces are approximate and computed.

Hardware-Based Storm Control Implementation

Broadcast suppression uses filtering that measures broadcast activity in a subnet over a one-second interval and compares the measurement with a predefined threshold. If the threshold is reached, further broadcast activity is suppressed for the duration of the interval. Broadcast suppression is disabled by default.

Figure 50-1 shows the broadcast traffic patterns on a LAN interface over a given interval. In this example, broadcast suppression occurs between times T1 and T2 and between T4 and T5. During those intervals, the amount of broadcast traffic exceeded the configured threshold.

Figure 50-1 Storm Control Example—Hardware-based Implementation

Total number of broadcast packets or bytes

S5706

0 T1

T2 T4 T5

The broadcast suppression threshold numbers and the time interval combination make the broadcast suppression algorithm work with different levels of granularity. A higher threshold allows more broadcast packets to pass through.

Broadcast suppression on the Catalyst 4500 series switches (Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E) is implemented in hardware. The suppression circuitry monitors packets passing from a LAN interface to the switching bus. If the packet destination address is broadcast, then the broadcast suppression circuitry tracks the current count of broadcasts within the one-second interval, and when a threshold is reached, it filters out subsequent broadcast packets.

Because hardware broadcast suppression uses a bandwidth-based method to measure broadcast activity, the most significant implementation factor is setting the percentage of total available bandwidth that can be used by broadcast traffic. Because packets do not arrive at uniform intervals, the one-second interval during which broadcast activity is measured can affect the behavior of broadcast suppression.

Threshold · T3 Time

Page 1187 of the Cisco Systems 4500 user manual — Enabling Broadcast Storm Control
Page 1187 · click to enlarge
Page 1187

Chapter 50 Configuring Storm Control

Enabling Broadcast Storm Control

Software-Based Storm Control Implementation

When storm control is enabled on an interface, the switch monitors packets received on the interface and determines whether the packets are broadcast. The switch monitors the number of broadcast packets received within a one-second time interval. When the interface threshold is met, all incoming data traffic on the interface is dropped. This threshold is specified as a percentage of total available bandwidth that can be used by broadcast traffic. If the lower threshold is specified, all data traffic is forwarded as soon as the incoming traffic falls below that threshold.

Enabling Broadcast Storm Control

To enable storm control, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode and enter the port to configure.

Step 3 Switch(config-if)# storm-control broadcast level [high level] [lower level]

Configures broadcast storm control.

Specifies the upper threshold levels for broadcast traffic. The storm control action occurs when traffic utilization reaches this level.

(Optional) Specifies the falling threshold level. The normal transmission restarts (if the action is filtering) when traffic drops below this level for interfaces that support software-based suppression.

Step 4 Switch(config-if)# storm-control action {shutdown | trap}

Specifies the action to be taken when a storm is detected.

The default is to filter out the broadcast traffic and not to send out traps.

The shutdown keyword sets the port to error-disable state during a storm. If the recover interval is not set, the port remains in shutdown state.

Step 5 Switch(config-if)# exit Returns to configuration mode.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show storm-control [interface] broadcast

Displays the number of packets suppressed.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 1188 of the Cisco Systems 4500 user manual — Enabling Multicast Storm Control
Page 1188 · click to enlarge
Page 1188

Chapter 50 Configuring Storm Control Enabling Multicast Storm Control

The following example shows how to enable storm control on interface:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fa3/1 Switch(config-if)# storm-control broadcast level 50 Switch(config-if)# end

Switch# show storm-control //Supervisor Engine 6-E Interface Filter State Broadcast Multicast Level Fi3/1 Forwarding Enabled Disabled 50.00%

Switch# show int fa2/1 capabilities //Supervisor Engine 6-E FastEthernet2/1 Model: WS-X4148-RJ45V-RJ-45 Type: 10/100BaseTX Speed: 10,100,auto Duplex: half,full,auto Auto-MDIX: no Trunk encap. type: 802.1Q Trunk mode: on,off,desirable,nonegotiate Channel: yes Broadcast suppression: percentage(0-100), hw Multicast suppression: percentage(0-100), hw <===== unique to Sup Engine 6-E systems Flowcontrol: rx-(none),tx-(none) VLAN Membership: static, dynamic Fast Start: yes CoS rewrite: yes ToS rewrite: yes Inline power: yes (Cisco Voice Protocol) SPAN: source/destination UDLD: yes Link Debounce: no Link Debounce Time: no Port Security: yes Dot1x: yes Maximum MTU: 1552 bytes (Baby Giants) Multiple Media Types: no Diagnostic Monitoring: N/A

Enabling Multicast Storm Control

This section includes these topics:

  • Enabling Multicast Suppression on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E, page 50-5
  • Enabling Multicast Suppression on the WS-X4515, WS-X4014, and WS-X4013+ Supervisor Engines, page 50-5
  • Enabling Multicast Suppression on All Other Supervisor Engines, page 50-6
Page 1189 of the Cisco Systems 4500 user manual — Enabling Multicast Suppression on the WS-X4515, WS-X4014, and WS-X4013+ Supervisor Engines
Page 1189 · click to enlarge
Page 1189

Chapter 50 Configuring Storm Control

Enabling Multicast Storm Control

Enabling Multicast Suppression on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E

Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E support per-interface multicast suppression. This allows you to subject incoming multicast and broadcast traffic on an interface to suppression.

To enable multicast suppression, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode and enter the port to configure.

Step 3 Switch(config-if)# storm-control broadcast include multicast

Enables multicast suppression.

Step 4 Switch(config-if)# exit Returns to configuration mode.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show storm-control Verifies the configuration.

The following example shows how to enable multicast suppression on ports that have broadcast suppression already enabled:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# int fa3/1 Switch(config-if)# storm-control broadcast include multicast Switch(config-if)# end Switch# Switch# show storm-control Interface Filter State Broadcast Multicast Level Fi3/1 Forwarding Enabled Enabled 50.00%

Enabling Multicast Suppression on the WS-X4515, WS-X4014, and WS-X4013+ Supervisor Engines

Hardware does not provide support for multicast suppression on the WS-X4515, WS-X4014, and WS-X4013+ supervisor engines. One consequence of using software-based broadcast suppression on these modules is that all incoming data packets are dropped. Irrespective of your selecting to configure broadcast suppression only, multicast packets are filtered as well on stub and blocking gigabit ports. The non blocking gigabit ports that do provide broadcast suppression in hardware also do not filter multicast packets.

Page 1190 of the Cisco Systems 4500 user manual — Disabling Broadcast Storm Control
Page 1190 · click to enlarge
Page 1190

Chapter 50 Configuring Storm Control Disabling Broadcast Storm Control

Enabling Multicast Suppression on All Other Supervisor Engines

Multicast suppression can be enabled on a WS-X4516, WS-X4013+10GE, WS-X4516-10GE, WS-C4948, and WS-C4948-10GE supervisor engines for all ports that have storm control enabled. Multicast suppression applies to all ports that have broadcast suppression configured on them. It also applies to ports that are configured for broadcast storm-control in the future; you cannot suppress multicast traffic only.

Separate thresholds cannot be provided for broadcast and/or multicast traffic. The threshold you configure for broadcast suppression applies to both the incoming multicast traffic and broadcast traffic.

To enable multicast suppression on WS-X4516, WS-X4013+10GE, WS-X4516-10GE, and WS-C4948 supervisor engines, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode and enter the port to configure.

Step 3 Switch(config-if)# storm-control broadcast include multicast

Enable multicast suppression.

Step 4 Switch(config-if)# exit Returns to configuration mode.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

The following example shows how to enable multicast suppression on ports that have broadcast suppression already enabled:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# storm-control broadcast include multicast Switch(config)# end Switch#

Disabling Broadcast Storm Control

To disable storm control, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode and enter the port to configure.

Step 3 Switch(config-if)# no storm-control broadcast level

Disables port storm control.

Step 4 Switch(config-if)# no storm-control action {shutdown | trap}

Disables the specified storm control action and returns to default filter action.

Step 5 Switch(config-if)# exit Returns to configuration mode.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Page 1191 of the Cisco Systems 4500 user manual — Disabling Multicast Storm Control
Page 1191 · click to enlarge
Page 1191

Chapter 50 Configuring Storm Control

Disabling Multicast Storm Control

Step 7 Switch# show storm-control broadcast Verifies your entries.

Step 8 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

The following example shows how to disable storm control on interface.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# int fa3/1 Switch(config-if)# no storm-control broadcast level Switch(config-if)# end Switch# show storm-control //Supervisor Engine 2+ to V-10GE Interface Filter State Upper Lower Current Switch#

Switch# show storm-control //Supervisor Engine 6-E Interface Filter State Broadcast Multicast Level Switch#

Disabling Multicast Storm Control

To disable multicast suppression on WS-X4516, WS-X4515, WS-X4014, and WS-X4013+ supervisor engines, perform the following task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode and enter the port to configure.

Step 3 Switch(config-if)# [no] storm-control broadcast include multicast

Enables multicast suppression.

Step 4 Switch(config-if)# end Returns to configuration mode.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

To disable multicast suppression on the Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, or Supervisor Engine 6L-E, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] storm-control broadcast include multicast

Enables and disables multicast suppression.

Step 3 Switch(config-if)# no storm-control broadcast level

Disables port storm control (broadcast and multicast).

Step 4 Switch(config-if)# end Returns to configuration mode.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Page 1192 of the Cisco Systems 4500 user manual — Displaying Storm Control
Page 1192 · click to enlarge
Page 1192

Chapter 50 Configuring Storm Control Displaying Storm Control

Displaying Storm Control

The following example shows an interface that supports broadcast suppression in software (sw):

Switch# show int fa2/1 capabilities FastEthernet2/1 Model: WS-X4148-RJ45V-RJ-45 Type: 10/100BaseTX Speed: 10,100,auto Duplex: half,full,auto Auto-MDIX: no Trunk encap. type: 802.1Q Trunk mode: on,off,desirable,nonegotiate Channel: yes Broadcast suppression: percentage(0-100), hw Multicast suppression: percentage(0-100), hw <=====unique to Sup Engine 6-E Flowcontrol: rx-(none),tx-(none) VLAN Membership: static, dynamic Fast Start: yes CoS rewrite: yes ToS rewrite: yes Inline power: yes (Cisco Voice Protocol) SPAN: source/destination UDLD: yes Link Debounce: no Link Debounce Time: no Port Security: yes Dot1x: yes Maximum MTU: 1552 bytes (Baby Giants) Multiple Media Types: no Diagnostic Monitoring: N/A

Switch# show interfaces counters storm-control Port Broadcast Multicast Level TotalSuppressedPackets Fa2/1 Enabled Disabled 10.00% 46516510 Gi3/1 Enabled Enabled 50.00% 0

The following example shows the output of the show storm-control command:

Switch# show storm-control //Supervisor Engine 2+ to V-10GE Interface Filter State Upper Lower Current Gi4/4 Forwarding 2.00% 2.00% N/A Switch

Switch# show storm-control //Supervisor Engine 6-E Interface Filter State Broadcast Multicast Level Fa2/1 Blocking Enabled Disabled 10.00% Gi3/1 Link Down Enabled Enabled 50.00%

Page 1193 of the Cisco Systems 4500 user manual — About SPAN and RSPAN
Page 1193 · click to enlarge
Page 1193

C H A P T E R

Configuring SPAN and RSPAN

This chapter describes how to configure the Switched Port Analyzer (SPAN) and Remote SPAN (RSPAN) on the Catalyst 4500 series switches. SPAN selects network traffic for analysis by a network analyzer, such as a SwitchProbe device or other Remote Monitoring (RMON) probe.

This chapter consists of the following sections:

  • About SPAN and RSPAN, page 51-1
  • Configuring SPAN, page 51-7
  • CPU Port Sniffing, page 51-10
  • Encapsulation Configuration, page 51-12
  • Ingress Packets, page 51-12
  • Access List Filtering, page 51-13
  • Packet Type Filtering, page 51-15
  • Configuration Example, page 51-16
  • Configuring RSPAN, page 51-16
  • Displaying SPAN and RSPAN Status, page 51-25

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

About SPAN and RSPAN

This sections includes the following subsections:

  • SPAN and RSPAN Concepts and Terminology, page 51-3
  • SPAN and RSPAN Session Limits, page 51-6
Page 1194 of the Cisco Systems 4500 user manual — RSPAN
Page 1194 · click to enlarge
Page 1194

Chapter 51 Configuring SPAN and RSPAN About SPAN and RSPAN

  • Default SPAN and RSPAN Configuration, page 51-6

SPAN mirrors traffic from one or more source interfaces on any VLAN or from one or more VLANs to a destination interface for analysis. In Figure 51-1, all traffic on Ethernet interface 5 (the source interface) is mirrored to Ethernet interface 10. A network analyzer on Ethernet interface 10 receives all network traffic from Ethernet interface 5 without being physically attached to it.

For SPAN configuration, the source interfaces and the destination interface must be on the same switch.

SPAN does not affect the switching of network traffic on source interfaces; copies of the packets received or transmitted by the source interfaces are sent to the destination interface.

Figure 51-1 Example SPAN Configuration

1 2 3 4 5 6 7 8 9 10 11 12 Port 5 traffic mirrored on port 10

E6 E7

E5

E8

E11

E4

E9

E12

E3 E2 E1

E10

S6884

RSPAN extends SPAN by enabling remote monitoring of multiple switches across your network. The traffic for each RSPAN session is carried over a user-specified RSPAN VLAN that is dedicated for that RSPAN session in all participating switches. The SPAN traffic from the sources is copied onto the RSPAN VLAN and then forwarded over trunk ports that are carrying the RSPAN VLAN to any RSPAN destination sessions monitoring the RSPAN VLAN, as shown in Figure 51-2.

Figure 51-2 Example of RSPAN Configuration

Source switch Intermediate switch Destination switch

RSPAN

RSPAN

VLAN

VLAN

SPAN and RSPAN do not affect the switching of network traffic on source ports or source VLANs; a copy of the packets received or sent by the sources is sent to the destination. Except for traffic that is required for the SPAN or RSPAN session, by default, destination ports do not receive or forward traffic.

You can use the SPAN or RSPAN destination port to forward transmitted traffic from a network security device. For example, if you connect a Cisco Intrusion Detection System (IDS) sensor appliance to a destination port, the IDS device can send TCP reset packets to close down the TCP session of a suspected attacker.

Network analyzer · RSPAN source port · RSPAN destination port

Page 1195 of the Cisco Systems 4500 user manual — Traffic Types
Page 1195 · click to enlarge
Page 1195

Chapter 51 Configuring SPAN and RSPAN

About SPAN and RSPAN

SPAN and RSPAN Concepts and Terminology

This section describes concepts and terminology associated with SPAN and RSPAN configuration and includes the following subsections:

  • SPAN Session, page 51-3
  • Traffic Types, page 51-3
  • Source Port, page 51-4
  • Destination Port, page 51-5
  • VLAN-Based SPAN, page 51-5
  • SPAN Traffic, page 51-6

SPAN Session

A local SPAN session associates a destination port with source ports. You can monitor incoming or outgoing traffic on a series or range of ports and source VLANs. An RSPAN session associates source ports and source VLANs across your network with an RSPAN VLAN. The destination source is the RSPAN VLAN.

You configure SPAN sessions by using parameters that specify the source of network traffic to monitor.

You can configure multiple SPAN or RSPAN sessions with separate or overlapping sets of SPAN sources. Both switched and routed ports can be configured as SPAN sources or destination ports.

An RSPAN source session associates SPAN source ports or VLANs with a destination RSPAN VLAN. An RSPAN destination session associates an RSPAN VLAN with a destination port.

SPAN sessions do not interfere with the normal operation of the switch; however, an oversubscribed SPAN destination (for example, a 10-Mbps port monitoring a 100-Mbps port) results in dropped or lost packets.

You can configure SPAN sessions on disabled ports; however, a SPAN session does not become active unless you enable the destination port and at least one source port or VLAN for that session.

A SPAN session remains inactive after system startup until the destination port is operational.

Traffic Types

SPAN sessions include these traffic types:

  • Receive (Rx) SPAN—The goal of receive (or ingress) SPAN is to monitor as much as possible all packets received by the source interface or VLAN before any modification or processing is performed by the switch. A copy of each packet received by the source is sent to the destination port for that SPAN session. You can monitor a series or range of ingress ports or VLANs in a SPAN session.

On tagged packets (Inter-Switch Link [ISL] or IEEE 802.1Q), the tagging is removed at the ingress port. At the destination port, if tagging is enabled, the packets appear with the ISL or 802.1Q headers. If no tagging is specified, packets appear in the native format.

Packets that are modified because of routing are copied without modification for Rx SPAN; that is, the original packet is copied. Packets that are modified because of quality of service (QoS)—for example, modified Differentiated Services Code Point (DSCP)—are copied without modification for Rx SPAN.

Page 1196 of the Cisco Systems 4500 user manual — Source Port
Page 1196 · click to enlarge
Page 1196

Chapter 51 Configuring SPAN and RSPAN About SPAN and RSPAN

Some features that can cause a packet to be dropped during receive processing have no effect on SPAN; the destination port receives a copy of the packet even if the actual incoming packet is dropped. These features include IP standard and extended input access control lists (ACLs), IP standard and extended output ACLs for unicast and ingress QoS policing, VLAN maps, ingress QoS policing, and policy-based routing. Switch congestion that causes packets to be dropped also has no effect on SPAN.

  • Transmit (Tx) SPAN—The goal of transmit (or egress) SPAN is to monitor as much as possible all packets sent by the source interface after the switch performs all modification and processing. After the packet is modified, the source sends a copy of each packet to the destination port for that SPAN session. You can monitor a range of egress ports in a SPAN session.

Packets that are modified because of routing—for example, with a time-to-live (TTL) or MAC-address modification—are duplicated at the destination port. On packets that are modified because of QoS, the modified packet might not have the same DSCP (IP packet) or CoS (non-IP packet) as the SPAN source.

Some features that can cause a packet to be dropped during transmit processing might also affect the duplicated copy for SPAN. These features include VLAN maps, IP standard and extended output ACLs on multicast packets, and egress QoS policing. In the case of output ACLs, if the SPAN source drops the packet, the SPAN destination would also drop the packet. In the case of egress QoS policing, if the SPAN source drops the packet, the SPAN destination might not drop it. If the source port is oversubscribed, the destination ports have different dropping behavior.

  • Both—In a SPAN session, you can monitor a single port series or a range of ports for both received and sent packets.

Source Port

A source port (also called a monitored port) is a switched or routed port that you monitor for network traffic analysis. In a single local SPAN session or RSPAN source session, you can monitor source port traffic, such as received (Rx), transmitted (Tx), or bidirectional (both). The switch supports any number of source ports (up to the maximum number of available ports on the switch) and any number of source VLANs.

A source port has these characteristics:

  • It can be any port type (for example, EtherChannel, Fast Ethernet, Gigabit Ethernet, and so forth).
  • It can be monitored in multiple SPAN sessions.
  • It cannot be a destination port.
  • Each source port can be configured with a direction (ingress, egress, or both) to monitor. For EtherChannel sources, the monitored direction would apply to all physical ports in the group.
  • Source ports can be in the same or different VLANs.
  • For VLAN SPAN sources, all active ports in the source VLAN are included as source ports.

You can configure a trunk port as a source port. By default, all VLANs active on the trunk are monitored. You can limit SPAN traffic monitoring on trunk source ports to specific VLANs by using VLAN filtering. Only switched traffic in the selected VLANs is sent to the destination port. This feature affects only traffic forwarded to the destination SPAN port and does not affect the switching of normal traffic. This feature is not allowed in sessions with VLAN sources.

Page 1197 of the Cisco Systems 4500 user manual — VLAN-Based SPAN
Page 1197 · click to enlarge
Page 1197

Chapter 51 Configuring SPAN and RSPAN

About SPAN and RSPAN

Destination Port

Each local SPAN session or RSPAN destination session must have a destination port (also called a monitoring port) that receives a copy of traffic from the source ports and VLANs.

A destination port has these characteristics:

  • A destination port must reside on the same switch as the source port (for a local SPAN session).
  • A destination port can be any Ethernet physical port.
  • A destination port can participate in only one SPAN session at a time. (A destination port in one SPAN session cannot be a destination port for a second SPAN session.)
  • A destination port cannot be a source port.
  • A destination port cannot be an EtherChannel group.
  • A destination port can be a physical port that is assigned to an EtherChannel group, even if the EtherChannel group has been specified as a SPAN source. The port is removed from the group while it is configured as a SPAN destination port.
  • The port does not transmit any traffic except that traffic required for the SPAN session unless learning is enabled. If learning is enabled, the port also transmits traffic directed to hosts that have been learned on the destination port.
  • If ingress traffic forwarding is enabled for a network security device, the destination port forwards traffic at Layer 2.
  • A destination port does not participate in spanning tree while the SPAN session is active.
  • When it is a destination port, it does not participate in any of the Layer 2 protocols (STP, VTP, CDP, DTP, PagP).
  • A destination port that belongs to a source VLAN of any SPAN session is excluded from the source list and is not monitored.
  • A destination port receives copies of sent and received traffic for all monitored source ports. If a destination port is oversubscribed, it could become congested and result in packet drops at the destination port. This congestion does not affect traffic forwarding on the source ports.

VLAN-Based SPAN

VLAN-based SPAN (VSPAN) is the monitoring of the network traffic in one or more VLANs.

Use these guidelines for VSPAN sessions:

  • Traffic on RSPAN VLANs is not monitored by VLAN-based SPAN sessions.
  • Only traffic on the monitored VLAN is sent to the destination port.
  • If a destination port belongs to a source VLAN, it is excluded from the source list and is not monitored.
  • If ports are added to or removed from the source VLANs, the traffic on the source VLAN received by those ports is added to or removed from the sources being monitored.
  • VLAN pruning and the VLAN allowed list have no effect on SPAN monitoring.
Page 1198 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 1198 · click to enlarge
Page 1198

Chapter 51 Configuring SPAN and RSPAN About SPAN and RSPAN

  • VSPAN monitors only traffic that enters the switch, not traffic that is routed between VLANs. For example, if a VLAN is being Rx-monitored, and the multilayer switch routes traffic from another VLAN to the monitored VLAN, that traffic is not monitored and is not received on the SPAN destination port.
  • You cannot use filter VLANs in the same session with VLAN sources.
  • You can monitor only Ethernet VLANs.

SPAN Traffic

You can use local SPAN to monitor all network traffic, including multicast and bridge protocol data unit (BPDU) packets, Cisco Discovery Protocol (CDP), VLAN Trunk Protocol (VTP), Dynamic Trunking Protocol (DTP), Spanning Tree Protocol (STP), and Port Aggregation Protocol (PAgP) packets. You cannot use RSPAN to monitor Layer 2 protocols. See the “RSPAN Configuration Guidelines” section on page 51-16 for more information.)

In some SPAN configurations, multiple copies of the same source packet are sent to the SPAN destination port. For example, a bidirectional (both Rx and Tx) SPAN session is configured for the sources a1 Rx monitor and the a2 Rx and Tx monitor to destination port d1. If a packet enters the switch through a1 and is switched to a2, both incoming and outgoing packets are sent to destination port d1. Both packets are the same (unless a Layer-3 rewrite occurs, in which case the packets are different because of the added Layer 3 information).

SPAN and RSPAN Session Limits

You can configure up to eight simultaneous SPAN sessions containing ingress sources and up to eight simultaneous SPAN sessions containing egress sources. Bidirectional sources count as both ingress and egress. RSPAN destination sessions count as a session containing an ingress source.

Note Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, and Supervisor Engine 6L-E allow a maximum of 16 SPAN/RSPAN sessions ( 8 concurrent sessions with Rx sources and 8 concurrent sessions with Tx sources). Bidirectional sources count as both Rx and Tx. All other supervisor engines allow a maximum of 6 sessions (2 concurrent sessions with RX sources and 4 concurrent sessions with Txsources).

Default SPAN and RSPAN Configuration

Table 51-1 shows the default SPAN and RSPAN configuration.

Table 51-1 Default SPAN and RSPAN Configuration

Feature Default Setting

SPAN state Disabled.

Source port traffic to monitor Both received and sent traffic (both).

Filters All VLANs, all packet types, all address types.

Encapsulation type (destination port) Native form (no encapsulation type header).

Ingress forwarding (destination port) Disabled.

Host learning (destination port) Disabled.

Page 1199 of the Cisco Systems 4500 user manual — SPAN Configuration Guidelines and Restrictions
Page 1199 · click to enlarge
Page 1199

Chapter 51 Configuring SPAN and RSPAN

Configuring SPAN

The following sections describe how to configure SPAN:

  • SPAN Configuration Guidelines and Restrictions, page 51-7
  • Configuring SPAN Sources, page 51-8
  • Configuring SPAN Destinations, page 51-9
  • Monitoring Source VLANs on a Trunk Interface, page 51-9
  • Configuration Scenario, page 51-10
  • Verifying a SPAN Configuration, page 51-10

SPAN Configuration Guidelines and Restrictions

Follow these guidelines and restrictions when configuring SPAN:

  • You must use a network analyzer to monitor interfaces.
  • You cannot mix source VLANs and filter VLANs within a SPAN session. You can have source VLANs or filter VLANs, but not both at the same time.
  • EtherChannel interfaces can be SPAN source interfaces; they cannot be SPAN destination interfaces.
  • When you specify source interfaces and do not specify a traffic type (Tx, Rx, or both), “both” is used by default. To change from both to either “tx” or “rx,” unconfigure the corresponding other type “rx” or “tx” with the no monitor session { session_number } { source { interface interface_list | { vlan vlan_IDs | cpu [ queue queue_ids] } { rx | tx } command.
  • If you specify multiple SPAN source interfaces, the interfaces can belong to different VLANs.
  • You must enter the no monitor session number command with no other parameters to clear the SPAN session number .
  • The no monitor command clears all SPAN sessions.
  • SPAN destinations never participate in any spanning tree instance. SPAN includes BPDUs in the monitored traffic, so any BPDUs seen on the SPAN destination are from the SPAN source.
  • SPAN is limited to one destination port per session.
  • When you create a SPAN session, it sets the packet filter to good automatically and hence you will see another configuration line:

monitor session 1 filter packet-type good rx

Reenter the monitor session 1 filter packet-type good rx command.

Configuring SPAN

Page 1200 of the Cisco Systems 4500 user manual — Configuring SPAN Sources
Page 1200 · click to enlarge
Page 1200

Chapter 51 Configuring SPAN and RSPAN Configuring SPAN

Configuring SPAN Sources

To configure the source for a SPAN session, perform this task:

Switch(config)# [no] monitor session {session_number} {source {interface interface_list | {vlan vlan_IDs | cpu [queue queue_ids] } [rx | tx | both]

Specifies the SPAN session number (1 through 6), the source interfaces (FastEthernet or GigabitEthernet), VLANs (1 through 4094), whether traffic received or sent from the CPU is copied to the session destination, and the traffic direction to be monitored.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface-list, specifies the source port to monitor. Valid interfaces include physical interfaces and port-channel logical interfaces (port-channel port-channel-number).

For vlan_IDs, specifies the source VLAN.

For queue_ids, specifies the queue(s) involved.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both transmitted (Tx) and received (Rx) traffic. Only received traffic can be monitored on additional source ports.

  • Rx —Monitor received traffic.
  • Tx —Monitor transmitted traffic.
  • both —Monitor both received and transmitted traffic (bidirectional).

Queues may be identified either by number or by name. Queue names may subsume multiple numbered queues for convenience.

Use the no keyword to restore the defaults.

This example shows how to configure SPAN session 1 to monitor bidirectional traffic from source interface Fast Ethernet 5/1:

Switch(config)# monitor session 1 source interface fastethernet 5/1

This example shows how to configure sources with differing directions within a SPAN session:

Switch(config)# monitor session 1 source interface fa2/3 rx Switch(config)# monitor session 1 source interface fa2/2 tx Switch(config)#

Page 1201 of the Cisco Systems 4500 user manual — Monitoring Source VLANs on a Trunk Interface
Page 1201 · click to enlarge
Page 1201

Chapter 51 Configuring SPAN and RSPAN

Configuring SPAN Destinations

To configure the destination for a SPAN session, perform this task:

Switch(config)# [no] monitor session destination interface [encapsulation {isl | dot1q}] [ingress [vlan vlan_IDs] [learning}]

Specifies the SPAN session number (1 through 6) and the destination interfaces or VLANs.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface, specifies the destination interface.

For vlan_IDs, specifies the destination VLAN.

Use the no keyword to restore the defaults.

This example shows how to configure interface Fast Ethernet 5/48 as the destination for SPAN session 1:

Switch(config)# monitor session 1 destination interface fastethernet 5/48

Monitoring Source VLANs on a Trunk Interface

To monitor specific VLANs when the SPAN source is a trunk interface, perform this task:

Switch(config)# [no] monitor session {session_number} filter {vlan vlan_IDs [, | - ]} | {packet-type {good | bad}} | {address-type {unicast | multicast | broadcast} [rx | tx | both]}

Monitors specific VLANs when the SPAN source is a trunk interface. The filter keyword restricts monitoring to traffic that is on the specified VLANs; it is typically used when monitoring a trunk interface.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan_IDs, specifies the VLAN.

Monitoring is established through all the ports in the specified VLANs

Use the no keyword to restore the defaults.

This example shows how to monitor VLANs 1 through 5 and VLAN 9 when the SPAN source is a trunk interface:

Switch(config)# monitor session 2 filter vlan 1 - 5 , 9

Configuring SPAN

Page 1202 of the Cisco Systems 4500 user manual — CPU Port Sniffing
Page 1202 · click to enlarge
Page 1202

Chapter 51 Configuring SPAN and RSPAN CPU Port Sniffing

Configuration Scenario

This example shows how to use the commands described in this chapter to completely configure and unconfigure a span session. Assume that you want to monitor bidirectional traffic from source interfaces Fast Ethernet 4/10, 4/11 and 4/12, Interface 4/10 is configured as a trunk interface carrying VLANs 1 through 4094. Interface Fast Ethernet 4/11 is configured as an access port in VLAN 57 and interface Fast Ethernet 4/12 is configured as an access port in VLAN 58. You want to monitor only traffic in VLAN 57 in that session. Using Fast Ethernet 4/15 as your destination interface, you would enter the following commands:

Switch(config)# monitor session 1 source interface fastethernet 4/10 - 12 Switch(config)# monitor session 1 filter vlan 57 Switch(config)# monitor session 1 destination interface fastethernet 4/15

You are now monitoring traffic from interface Fast Ethernet 4/10 that is on VLAN 57 out of interface FastEthernet 4/15. To disable the span session enter the following command:

Switch(config)# no monitor session 1

Verifying a SPAN Configuration

This example shows how to verify the configuration of SPAN session 2:

Switch# show monitor session 2 Session 2 Source Ports: RX Only: Fa5/12 TX Only: None Both: None Source VLANs: RX Only: None TX Only: None Both: None Destination Ports: Fa5/45 Filter VLANs: 1-5,9 Switch#

CPU Port Sniffing

When configuring a SPAN session, you can specify the CPU (or a subset of CPU queues) as a SPAN source. Queues may be specified either by number or by name. When such a source is specified, traffic going to the CPU through one of the specified queues is mirrored and sent out of the SPAN destination port in the session. This traffic includes both control packets and regular data packets that are sent to or from the CPU (due to software forwarding).

You can mix the CPU source with either regular port sources or VLAN sources.

Page 1203 of the Cisco Systems 4500 user manual — Configuring SPAN and RSPAN
Page 1203 · click to enlarge
Page 1203

Chapter 51 Configuring SPAN and RSPAN

To configure CPU source sniffing, perform this task:

Switch(config)# [no] monitor session {session_number} {source {interface interface_list | {vlan vlan_IDs | cpu [queue queue_ids] } [rx | tx | both]

Specifies that the CPU causes traffic received by or sent from the CPU to be copied to the destination of the session. The queue identifier optionally allows sniffing-only traffic (received) on the specified CPU queue(s).

For session_number, specifies the session number identified with this SPAN session (1 through 6).

For interface-list, specifies the source port to monitor. Valid interfaces include physical interfaces and port-channel logical interfaces (port-channel port-channel-number).

For vlan_IDs, specifies the source VLAN.

For queue_ids, specifies the queue(s) involved.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both transmitted (Tx) and received (Rx) traffic. Only received traffic can be monitored on additional source ports.

  • Rx —Monitor received traffic.
  • Tx —Monitor transmitted traffic.
  • both —Monitor both received and transmitted traffic (bidirectional).

Queues may be identified either by number or by name. Queue names may subsume multiple numbered queues for convenience.

Use the no keyword to restore the defaults.

This example shows how to configure a CPU source to sniff all packets received by the CPU:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# monitor session 1 source cpu rx

This example shows how to use queue names and queue number ranges for the CPU as a SPAN source on Supervisor Engines 2+ to V 10-GE:

Switch(config)# monitor session 2 source cpu queue control-packet rx Switch(config)# monitor session 3 source cpu queue 21 -23 rx

CPU Port Sniffing

Page 1204 of the Cisco Systems 4500 user manual — Ingress Packets
Page 1204 · click to enlarge
Page 1204

Chapter 51 Configuring SPAN and RSPAN Encapsulation Configuration

This example shows how to use queue names and queue number ranges for the CPU as a SPAN source on Catalyst 4900M, Catalyst 4948E, Supervisor Engine 6-E, or Supervisor Engine 6L-E:

Switch(config)# monitor session 2 source cpu queue control-packet rx Switch(config)# monitor session 3 source cpu queue 10 rx

Encapsulation Configuration

When configuring a SPAN destination port, you can explicitly specify the encapsulation type used by the port. Packets sent out the port are tagged in accordance with the specified mode. (The encapsulation mode also controls how tagged packets are handled when the ingress packet option is enabled.) The Catalyst 4500 series switch supervisor engines support ISL encapsulation and 802.1q encapsulation, as well as untagged packets.

The “replicate” encapsulation type (in which packets are transmitted from the destination port using whatever encapsulation applied to the original packet) is not supported. If no encapsulation mode is specified, the port default is untagged.

Ingress Packets

When ingress is enabled, the SPAN destination port accepts incoming packets (potentially tagged depending on the specified encapsulation mode) and switches them normally. When configuring a SPAN destination port, you can specify whether the ingress feature is enabled and what VLAN to use to switch untagged ingress packets. (Specifying an ingress VLAN is not required when ISL encapsulation is configured, as all ISL encapsulated packets have VLAN tags.) Although the port is STP forwarding, it does not participate in the STP, so use caution when configuring this feature lest a spanning-tree loop be introduced in the network. When both ingress and a trunk encapsulation are specified on a SPAN destination port, the port goes forwarding in all active VLANs. Configuring a non-existent VLAN as an ingress VLAN is not allowed.

By default, host learning is disabled on SPAN destination ports with ingress enabled. The port is also removed from VLAN floodsets, so regular traffic is not switched out of the destination port. If learning is enabled, then traffic for hosts learned on the destination port is switched out the destination port. A host connected to the SPAN destination port will not receive broadcast ARP requests and will not respond. You can also configure static host entries (including a static ARP entry and a static entry in the MAC-address table) on SPAN destination ports.

Page 1205 of the Cisco Systems 4500 user manual — ACL Configuration Guidelines
Page 1205 · click to enlarge
Page 1205

Chapter 51 Configuring SPAN and RSPAN

To configure ingress packets and encapsulation, perform this task:

Switch(config)# [no] monitor session session_number destination interface interface [encapsulation {isl | dot1q}] [ingress [vlan vlan_IDs] [learning]]

Specifies the configuration of the ingress packet and the encapsulation type of the destination port.

For session_number, specifies the session number identified with this SPAN session (1 through 6).

For interface, specifies the destination interface.

For vlan_IDs, specifies the destination VLAN.

Use the no keyword to restore the defaults.

This example shows how to configure a destination port with 802.1q encapsulation and ingress packets using native VLAN 7:

Switch(config)# monitor session 1 destination interface fastethernet 5/48 encapsulation dot1q ingress vlan 7

With this configuration, traffic from SPAN sources associated with session 1 would be copied out of interface Fast Ethernet 5/48, with 802.1q encapsulation. Incoming traffic would be accepted and switched, with untagged packets being classified into VLAN 7.

Access List Filtering

When configuring a SPAN session, you can apply access list filtering. Access list filtering applies to all packets passing through a SPAN destination port that might be sniffed in the egress or ingress direction. Access list filters are allowed on local SPAN sessions only. If the SPAN destination is an RSPAN VLAN, the access list filter is rejected.

ACL Configuration Guidelines

You can configure ACLs on a SPAN session. Use these guidelines for ACL/SPAN sessions:

  • If an ACL is associated with a SPAN session, the rules associated with that ACL are applied against all packets exiting the SPAN destination interface. Rules pertaining to other VACLs or RACLs previously associated with the SPAN destination interface are not applied.
  • Only one ACL can be associated with a SPAN session.

Access List Filtering

Page 1206 of the Cisco Systems 4500 user manual — Configuring Access List Filtering
Page 1206 · click to enlarge
Page 1206

Chapter 51 Configuring SPAN and RSPAN Access List Filtering

  • When no ACLs are applied to packets exiting a SPAN destination interface, all traffic is permitted regardless of the PACLs, VACLs, or RACLs that have been previously applied to the destination interface or VLAN to which the SPAN destination interface belongs.
  • If an ACL is removed from a SPAN session, all traffic is permitted once again.
  • If SPAN configuration is removed from the SPAN session, all rules associated with the SPAN destination interface are applied once again.
  • If a SPAN destination port is configured as a trunk port and the VLANs to which it belongs have ACLs associated with them, the traffic is not subjected to the VACLs.
  • ACL configuration applies normally to the RSPAN VLAN and to trunk ports carrying the RSPAN VLAN. This configuration enables you to apply VACLs on RSPAN VLANs. If a user attempts to configure an ACL on a SPAN session with the destination port as an RSPAN VLAN, the configuration is rejected.
  • If CAM resources are exhausted and packets are passed to the CPU for lookup, any output port ACLs associated with a SPAN session are not applied.
  • If a named IP ACL is configured on a SPAN session before an ACL is created, the configuration is accepted, and the software creates an empty ACL with no ACEs. (An empty ACL permits all packets.) Subsequently, the rules can be added to the ACL.
  • The ACLs associated with a SPAN session are applied on the destination interface on output.
  • No policing is allowed on traffic exiting SPAN ports.
  • Only IP ACLs are supported on SPAN sessions.

Configuring Access List Filtering

To configure access list filtering, perform this task:

Switch(config)# [no] monitor session {session_number} filter {ip access-group [name | id] }{vlan vlan_IDs [, | - ] } | {packet-type {good | bad}} | {address-type {unicast | multicast | broadcast} [rx | tx | both]}

Specifies filter sniffing based on the access list.

For session_number, specify the session number identified with this SPAN session (1 through 6).

You can specify either a name or a numeric ID for the access list.

For name, specify the IP access list name.

For id, specify a standard (1 to 199) or extended (1300-2699) IP access list.

Page 1207 of the Cisco Systems 4500 user manual — Packet Type Filtering
Page 1207 · click to enlarge
Page 1207

Chapter 51 Configuring SPAN and RSPAN

This example shows how to configure IP access group 10 on a SPAN session and verify that an access list has been configured:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# monitor session 1 source interface fa6/1 both Switch(config)# monitor session 1 destination interface fa6/2 Switch(config)# monitor session 1 filter vlan 1 Switch(config)# monitor session 1 filter ip access-group 10 Switch(config)# exit Switch# show monitor

Session 1 Type : Local Session Source Ports : Both : Fa6/1 Destination Ports : Fa6/2 Encapsulation : Native Ingress : Disabled Learning : Disabled Filter VLANs : 1 IP Access-group : 10

Packet Type Filtering

When configuring a SPAN session, you can specify packet filter parameters similar to VLAN filters. When specified, the packet filters indicate types of packets that may be sniffed. If no packet filters are specified, packets of all types may be sniffed. Different types of packet filters may be specified for ingress and egress traffic.

The two categories of packet filtering are packet-based (good, error) or address-based (unicast/multicast/broadcast). Packet-based filters can only be applied in the ingress direction. Packets are classified as broadcast, multicast, or unicast by the hardware based on the destination address.

To configure packet type filtering, perform this task:

Switch(config)# [no] monitor session {session_number} filter {vlan vlan_IDs [, | - ] } | {packet-type {good | bad}} | {address-type {unicast | multicast | broadcast} [rx | tx | both]}

Specifies filter sniffing of the specified packet types in the specified directions.

For session_number, specifies the session number identified with this SPAN session (1 through 6).

For vlan_IDs, specifies the VLAN.

You can specify both Rx and Tx type filters, as well as specify multiple type filters at the same time (such as good and unicast to only sniff non-error unicast frames). As with VLAN filters, if no type or filter is specified, then the session sniffs all packet types.

Use the no keyword to restore the defaults.

Packet Type Filtering

Page 1208 of the Cisco Systems 4500 user manual — RSPAN Configuration Guidelines
Page 1208 · click to enlarge
Page 1208

Chapter 51 Configuring SPAN and RSPAN Configuration Example

This example shows how to configure a session to accept only unicast packets in the ingress direction:

Switch(config)# monitor session 1 filter address-type unicast rx

Configuration Example

The following is an example of SPAN configuration using some of the SPAN enhancements.

In this example, you configure a session to sniff unicast traffic arriving on interface Gi1/1. The traffic is mirrored out of interface Gi1/2 with ISL encapsulation. Ingress traffic is permitted.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# monitor session 1 source interface gi1/1 rx Switch(config)# monitor session 1 destination interface gi1/2 encapsulation isl ingress Switch(config)# monitor session 1 filter address-type unicast rx Switch(config)# exit Switch# show monitor

Session 1 Type : Local Session Source Ports : RX Only : Gi1/1 Destination Ports : Gi1/2 Encapsulation : ISL Ingress : Enabled Learning : Disabled Filter Addr Type : RX Only : Unicast

Configuring RSPAN

This section describes how to configure RSPAN on your switch and it contains this configuration information:

  • RSPAN Configuration Guidelines, page 51-16
  • Creating an RSPAN Session, page 51-17
  • Creating an RSPAN Destination Session, page 51-19
  • Creating an RSPAN Destination Session and Enabling Ingress Traffic, page 51-20
  • Removing Ports from an RSPAN Session, page 51-21
  • Specifying VLANs to Monitor, page 51-22
  • Specifying VLANs to Filter, page 51-23

RSPAN Configuration Guidelines

Follow these guidelines when configuring RSPAN:

Page 1209 of the Cisco Systems 4500 user manual — Creating an RSPAN Session
Page 1209 · click to enlarge
Page 1209

Chapter 51 Configuring SPAN and RSPAN

  • RSPAN sessions can coexist with SPAN sessions within the limits described in the “SPAN and RSPAN Session Limits” section on page 51-6 .
  • For RSPAN configuration, you can distribute the source ports and the destination ports across multiple switches in your network.
  • RSPAN does not support BPDU packet monitoring or other Layer 2 switch protocols.
  • The RSPAN VLAN is configured only on trunk ports and not on access ports. To avoid unwanted traffic in RSPAN VLANs, make sure that all participating switches support the VLAN remote-span feature. Access ports on the RSPAN VLAN are silently disabled.
  • You should create an RSPAN VLAN before configuring an RSPAN source or destination session.
  • If you enable VTP and VTP pruning, RSPAN traffic is pruned in the trunks to prevent the unwanted flooding of RSPAN traffic across the network for VLAN-IDs that are lower than 1005.
  • Because RSPAN traffic is carried across a network on an RSPAN VLAN, the original VLAN association of the mirrored packets is lost. RSPAN can only support forwarding of traffic from an IDS device onto a single user-specified VLAN.

Creating an RSPAN Session

First create an RSPAN VLAN that does not exist for the RSPAN session in any of the switches that participate in RSPAN. With VTP enabled in the network, you can create the RSPAN VLAN in one switch, and then VTP propagates it to the other switches in the VTP domain for VLAN-IDs that are lower than 1005.

Use VTP pruning to get efficient flow of RSPAN traffic, or manually delete the RSPAN VLAN from all trunks that do not need to carry the RSPAN traffic.

To start an RSPAN source session and to specify the source (monitored) ports and the destination RSPAN VLAN, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no monitor session {session_number | all | local | remote}

Clears any existing RSPAN configuration for the session.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

Specifies all to remove all RSPAN sessions, local to remove all local sessions, or remote to remove all remote SPAN sessions.

Step 3 Switch(config)# vlan {remote_vlan_ID} Specifies a remote VLAN ID.

Ensure that the VLAN ID is not being used for any user traffic.

Step 4 Switch(config-vlan)# remote-span Converts the VLAN ID to a remote VLAN ID.

Step 5 Switch(config-vlan)# exit Returns to global configuration mode.

Configuring RSPAN

Page 1210 of the Cisco Systems 4500 user manual — Configuring SPAN and RSPAN
Page 1210 · click to enlarge
Page 1210

Chapter 51 Configuring SPAN and RSPAN Configuring RSPAN

Step 6 Switch(config)# [no] monitor session {session_number} {source {interface interface_list | {vlan vlan_IDs | cpu [queue queue_ids]} [rx | tx | both]

Specifies the RSPAN session and the source port (monitored port).

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface-list, specifies the source port to monitor. Valid interfaces include physical interfaces and port-channel logical interfaces (port-channel port-channel-number).

For vlan-IDs, specifies the source VLAN or VLANs to monitor. Valid VLANs are in the range from 1 to 4094.

For queue_ids, specifies either a set of CPU queue numerical identifiers from 1 to 32, or a named queue.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both transmitted (Tx) and received (Rx) traffic. Only received traffic can be monitored on additional source ports.

  • Rx —Monitor received traffic.
  • Tx —Monitor transmitted traffic.
  • both —Monitor both received and transmitted traffic (bidirectional).

Step 7 Switch(config)# monitor session session_number destination remote vlan vlan-ID

Specifies the RSPAN session and the destination remote VLAN.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan-ID, specifies the RSPAN VLAN to carry the monitored traffic to the destination port.

Step 8 Switch(config)# end Returns to privileged EXEC mode.

Step 9 Switch# show monitor [session session_number]

Verifies your entries.

Step 10 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to clear any existing RSPAN configuration for session 1, configure RSPAN session 1 to monitor multiple source interfaces, and configure the destination RSPAN VLAN.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# no monitor session 1 Switch(config)# monitor session 1 source interface fastEthernet3/10 tx Switch(config)# monitor session 1 source interface fastEthernet3/2 rx Switch(config)# monitor session 1 source interface fastEthernet3/3 rx Switch(config)# monitor session 1 source interface port-channel 102 rx Switch(config)# monitor session 1 destination remote vlan 901 Switch(config)# end

Page 1211 of the Cisco Systems 4500 user manual — Creating an RSPAN Destination Session
Page 1211 · click to enlarge
Page 1211

Chapter 51 Configuring SPAN and RSPAN

Creating an RSPAN Destination Session

To create an RSPAN destination session and to specify the source RSPAN VLAN and the destination port, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# monitor session session_number source remote vlan vlan-ID

Specifies the RSPAN session and the source RSPAN VLAN.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan-ID, specifies the source RSPAN VLAN to monitor.

Step 3 Switch(config)# [no] monitor session session_number destination interface interface [encapsulation {isl | dot1q}] [ingress [vlan vlan_IDs] [learning]]

Specifies the RSPAN session and the destination interface.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface, specifies the destination interface.

For vlan_IDs, specifies the ingress VLAN, if necessary.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both sent and received traffic. Only received (rx) traffic can be monitored on additional source ports.

  • isl —Use ISL encapsulation.
  • dot1q —Use 802.1Q encapsulation.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show monitor [session session_number]

Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

This example shows how to configure VLAN 901 as the source remote VLAN and port 5 as the destination interface:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# monitor session 1 source remote vlan 901 Switch(config)# monitor session 1 destination interface gigabitEthernet1/2 Switch(config)# end

Configuring RSPAN

Page 1212 of the Cisco Systems 4500 user manual — Creating an RSPAN Destination Session and Enabling Ingress Traffic
Page 1212 · click to enlarge
Page 1212

Chapter 51 Configuring SPAN and RSPAN Configuring RSPAN

Creating an RSPAN Destination Session and Enabling Ingress Traffic

To create an RSPAN destination session, to specify the source RSPAN VLAN, and to enable ingress traffic on the destination port for a network security device (such as a Cisco IDS [Intrusion Detection System] sensor appliance), perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# monitor session {session_number} source vlan vlan_IDs

Specifies the RSPAN session and the source RSPAN VLAN.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan_IDs, specifies the source VLAN or VLANs to monitor. Valid VLANs are in the range from 1 to 4094.

Step 3 Switch(config)# [monitor session session_number destination interface interface-id [encapsulation {dot1q [ingress vlan vlan id] | ISL [ingress]} | ingress vlan vlan id] [learning]]

Specifies the RSPAN session, the destination port, the packet encapsulation, and the ingress VLAN.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface-id, specifies the destination port. Valid interfaces include physical interfaces.

(Optional) Specifies the encapsulation of the packets transmitted on the RSPAN destination port. If no encapsulation is specified, all transmitted packets are sent in native format (untagged).

  • Enter encapsulation dot1q to send native VLAN packets untagged, and all other VLAN tx packets tagged dot1q .
  • Enter encapsulation isl to send all tx packets encapsulated using ISL.

(Optional) Specifies whether forwarding is enabled for ingress traffic on the RSPAN destination port.

  • For native (untagged) and dot1q encapsulation, specify ingress vlan vlan id to enable ingress forwarding with vlan id as the native VLAN; vlan id is also used as the native VLAN for transmitted packets.
  • Specify ingress to enable ingress forwarding when using ISL encapsulation.
  • Specify learning to enable learning when ingress is enabled.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show monitor [session session_number]

Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 1213 of the Cisco Systems 4500 user manual — Removing Ports from an RSPAN Session
Page 1213 · click to enlarge
Page 1213

Chapter 51 Configuring SPAN and RSPAN

This example shows how to configure VLAN 901 as the source remote VLAN and how to configure the destination port for ingress traffic on VLAN 5 by using a security device that supports 802.1Q encapsulation:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# monitor session 1 source remote vlan 901 Switch(config)# monitor session 1 destination interface gigabitEthernet1/2 ingress vlan 5 Switch(config)# end

Removing Ports from an RSPAN Session

To remove a port as an RSPAN source for a session, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] monitor session {session_number} {source {interface interface_list | {vlan vlan_IDs | cpu [queue queue_ids]} [rx | tx | both]

Specifies the characteristics of the RSPAN source port (monitored port) to remove.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface-list, specifies the source port to no longer monitor. Valid interfaces include physical interfaces and port-channel logical interfaces (port-channel port-channel-number).

For vlan_IDs, specifies the source vlan or vlans to monitor. Valid VLANs are in the range from 1 to 4094.

For queue_ids, specifies either a set of CPU queue numerical identifiers from 1 to 32, or a named queue.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both transmitted (Tx) and received (Rx) traffic. Only received traffic can be monitored on additional source ports.

  • Rx —Monitor received traffic.
  • Tx —Monitor transmitted traffic.
  • both —Monitor both received and transmitted traffic (bidirectional).

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show monitor [session session_number]

Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Configuring RSPAN

Page 1214 of the Cisco Systems 4500 user manual — Specifying VLANs to Monitor
Page 1214 · click to enlarge
Page 1214

Chapter 51 Configuring SPAN and RSPAN Configuring RSPAN

This example shows how to remove port 1 as an RSPAN source for RSPAN session 1:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# no monitor session 1 source interface gigabitEthernet1/1 Switch(config)# end

This example shows how to disable received traffic monitoring on port 1, which was configured for bidirectional monitoring:

Switch(config)# no monitor session 1 source interface gigabitEthernet1/1 rx

The monitoring of traffic received on port 1 is disabled, but traffic transmitted from this port continues to be monitored.

Specifying VLANs to Monitor

VLAN monitoring is similar to port monitoring. To specify VLANs to monitor, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no monitor session {session_number | all | local | remote}

Clears any existing SPAN configuration for the session.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

Specify all to remove all SPAN sessions, local to remove all local sessions, or remote to remove all remote SPAN sessions.

Step 3 Switch(config)# [no] monitor session {session_number} {source {interface interface_list | {vlan vlan_IDs | cpu [queue queue_ids]} [rx | tx | both]

Specifies the RSPAN session and the source VLANs (monitored VLANs). You can monitor only received (rx) traffic on VLANs.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface-list, specifies the source port to no longer monitor. Valid interfaces include physical interfaces and port-channel logical interfaces (port-channel port-channel-number).

For vlan-IDs, the range is 1 to 4094; do not enter leading zeros.

For queue_ids, specifies the source queue.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both transmitted (Tx) and received (Rx) traffic. Only received traffic can be monitored on additional source ports.

  • Rx —Monitor received traffic.
  • Tx —Monitor transmitted traffic.
  • both —Monitor both received and transmitted traffic (bidirectional).
Page 1215 of the Cisco Systems 4500 user manual — Specifying VLANs to Filter
Page 1215 · click to enlarge
Page 1215

Chapter 51 Configuring SPAN and RSPAN

Step 4 Switch(config)# monitor session session_number destination remote vlan vlan-id

Specifies the RSPAN session, the destination remote VLAN.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan-id, specifies the RSPAN VLAN to carry the monitored traffic to the destination port.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show monitor [session session_number]

Verifies your entries.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To remove one or more source VLANs from the RSPAN session, use the no monitor session session_number source vlan vlan-id rx global configuration command.

This example shows how to clear any existing configuration on RSPAN session 2, configure RSPAN session 2 to monitor received traffic on all ports belonging to VLANs 1 through 3, and send it to destination remote VLAN 902. The configuration is then modified to also monitor received traffic on all ports belonging to VLAN 10.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# no monitor session 2 Switch(config)# monitor session 2 source vlan 1 - 3 rx Switch(config)# monitor session 2 destination remote vlan 902 Switch(config)# monitor session 2 source vlan 10 rx Switch(config)# end

Specifying VLANs to Filter

To limit RSPAN source traffic to specific VLANs, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no monitor session {session_number | all | local | remote}

Clears any existing SPAN configuration for the session.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

Specify all to remove all SPAN sessions, local to remove all local sessions, or remote to remove all remote SPAN sessions.

Configuring RSPAN

Page 1216 of the Cisco Systems 4500 user manual — Configuring SPAN and RSPAN
Page 1216 · click to enlarge
Page 1216

Chapter 51 Configuring SPAN and RSPAN Configuring RSPAN

Step 3 Switch(config)# [no] monitor session {session_number} {source {interface interface_list | {vlan vlan_IDs | cpu [queue queue_ids]} [rx | tx | both]

Specifies the characteristics of the source port (monitored port) and RSPAN session.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For interface-list, specifies the source port to monitor. The interface specified must already be configured as a trunk port.

For vlan-IDs, the range is 1 to 4094; do not enter leading zeros.

For queue_ids, specifies the source queue.

(Optional) [, | -] Specifies a series or range of interfaces. Enter a space after the comma; enter a space before and after the hyphen.

(Optional) Specifies the direction of traffic to monitor. If you do not specify a traffic direction, the source interface sends both transmitted (Tx) and received (Rx) traffic. Only received traffic can be monitored on additional source ports.

  • Rx —Monitor received traffic.
  • Tx —Monitor transmitted traffic.
  • both —Monitor both received and transmitted traffic (bidirectional).

Step 4 Switch(config)# monitor session session_number filter vlan vlan-id [, | -]

Limits the RSPAN source traffic to specific VLANs.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan-id, the range is 1 to 4094; do not enter leading zeros.

(Optional) Use a comma (,) to specify a series of VLANs or use a hyphen (-) to specify a range of VLANs. Enter a space after the comma; enter a space before and after the hyphen.

Step 5 Switch(config)# monitor session session_number destination remote vlan vlan-id

Specifies the RSPAN session, the destination remote VLAN.

For session_number, specifies the session number identified with this RSPAN session (1 through 6).

For vlan-id, specifies the RSPAN VLAN to carry the monitored traffic to the destination port.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Step 7 Switch# show monitor [session session_number]

Verifies your entries.

Step 8 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To monitor all VLANs on the trunk port, use the no monitor session session_number filter vlan global configuration command.

Page 1217 of the Cisco Systems 4500 user manual — Displaying SPAN and RSPAN Status
Page 1217 · click to enlarge
Page 1217

Chapter 51 Configuring SPAN and RSPAN

Displaying SPAN and RSPAN Status

This example shows how to clear any existing configuration on RSPAN session 2, configure RSPAN session 2 to monitor traffic received on trunk port 4, and send traffic for only VLANs 1 through 5 and 9 to destination remote VLAN 902.

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# no monitor session 2 Switch(config)# monitor session 2 source interface gigabitethernet1/1 rx Switch(config)# monitor session 2 filter vlan 1 - 5 , 9 Switch(config)# monitor session 2 destination remote vlan 902 Switch(config)# end

Displaying SPAN and RSPAN Status

To display the status of the current SPAN or RSPAN configuration, use the show monitor privileged EXEC command.

This example displays the output for the show monitor command for SPAN source session 1:

Switch# show monitor session 1 Session 1 Type: Local Source Session Source Ports: RX Only: Fa3/13 TX Only: None Both: None

Source VLANs: RX Only: None TX Only: None Both: None Source RSPAN VLAN: None Destination Ports: None

Encapsulation: DOT1Q Ingress:Enabled, default VLAN=5 Filter VLANs: None Dest RSPAN VLAN: None Ingress : Enabled, default VLAN=2 Learning : Disabled

Page 1218 of the Cisco Systems 4500 user manual — Configuring SPAN and RSPAN
Page 1218 · click to enlarge
Page 1218

Chapter 51 Configuring SPAN and RSPAN Displaying SPAN and RSPAN Status

Page 1219 of the Cisco Systems 4500 user manual — About System Message Logging
Page 1219 · click to enlarge
Page 1219

C H A P T E R

Configuring System Message Logging

This chapter describes how to configure system message logging on the Catalyst 4500 series switch.

This chapter consists of these sections:

  • About System Message Logging, page 52-1
  • Configuring System Message Logging, page 52-2
  • Displaying the Logging Configuration, page 52-12

About System Message Logging

By default, a switch sends the output from system messages and debug privileged EXEC commands to a logging process. The logging process controls the distribution of logging messages to various destinations, such as the logging buffer, terminal lines, or a UNIX syslog server, depending on your configuration. The process also sends messages to the console.

When the logging process is disabled, messages are sent only to the console. The messages are sent as they are generated, so message and debug output are interspersed with prompts or output from other commands. Messages are displayed on the console after the process that generated them has finished.

You can set the severity level of the messages to control the type of messages displayed on the consoles and each of the destinations. You can time-stamp log messages or set the syslog source address to enhance real-time debugging and management. For information on possible messages, see the system message guide for this release.

Page 1220 of the Cisco Systems 4500 user manual — System Log Message Format
Page 1220 · click to enlarge
Page 1220

Chapter 52 Configuring System Message Logging Configuring System Message Logging

You can access logged system messages by using the switch command-line interface (CLI) or by saving them to a properly configured syslog server. The switch software saves syslog messages in an internal buffer on the switch. If the switch fails, the log is lost unless you had saved it to flash memory.

You can remotely monitor system messages by viewing the logs on a syslog server or by accessing the switch through Telnet or using the console port.

Configuring System Message Logging

These sections describe how to configure system message logging:

  • System Log Message Format, page 52-2
  • Default System Message Logging Configuration, page 52-3
  • Disabling Message Logging, page 52-4
  • Setting the Message Display Destination Device, page 52-5
  • Synchronizing Log Messages, page 52-6
  • Enabling and Disabling Timestamps on Log Messages, page 52-7
  • Enabling and Disabling Sequence Numbers in Log Messages (Optional), page 52-7
  • Defining the Message Severity Level (Optional), page 52-8
  • Limiting Syslog Messages Sent to the History Table and to SNMP (Optional), page 52-9
  • Configuring UNIX Syslog Servers, page 52-10

System Log Message Format

System log messages can contain up to 80 characters and a percent sign (%), which follows the optional sequence number or time-stamp information, if configured. Messages are displayed in this format:

seq no:timestamp: %facility-severity-MNEMONIC:description

The part of the message preceding the percent sign depends on the setting of the service sequence-numbers, service timestamps log datetime, service timestamps log datetime [localtime] [msec] [show-timezone] command or the service timestamps log uptime global configuration command.

Table 52-1 describes the elements of syslog messages.

Page 1221 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 1221 · click to enlarge
Page 1221

Chapter 52 Configuring System Message Logging

Configuring System Message Logging

Table 52-1 System Log Message Elements

Element Description

seq no: Stamps log messages with a sequence number only if the service sequence-numbers global configuration command is configured.

For more information, see the “Enabling and Disabling Sequence Numbers in Log Messages (Optional)” section on page 52-7.

timestamp formats:

Date and time of the message or event. This information appears only if the service timestamps log [datetime | log] global configuration command is configured.

mm/dd hh:mm:ss

For more information, see the “Enabling and Disabling Timestamps on Log Messages” section on page 52-7.

hh:mm:ss (short uptime)

d h (long uptime)

facility The facility to which the message refers (for example, SNMP, SYS, and so forth). For a list of supported facilities, see Table 52-4 on page 52-12.

severity Single-digit code from 0 to 7 that is the severity of the message. For a description of the severity levels, see Table 52-3 on page 52-9.

MNEMONIC Text string that uniquely describes the message.

description Text string containing detailed information about the event being reported.

This example shows a partial switch system message:

00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up 00:00:47: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/1, changed state to up 00:00:47: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/2, changed state to up 00:00:48: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down 00:00:48: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down 2 *Mar 1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36) 18:47:02: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36) *Mar 1 18:48:50.483 UTC: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)

Default System Message Logging Configuration

Table 52-2 shows the default system message logging configuration.

Table 52-2 Default System Message Logging Configuration

Feature Default Setting

System message logging to the console Enabled.

Console severity Debugging (and numerically lower levels; see Table 52-3 on page 52-9).

Logging file configuration No filename specified.

Logging buffer size 4096 bytes.

Logging history size 1 message.

Timestamps Disabled.

or · or

Page 1222 of the Cisco Systems 4500 user manual — Disabling Message Logging
Page 1222 · click to enlarge
Page 1222

Chapter 52 Configuring System Message Logging Configuring System Message Logging

Table 52-2 Default System Message Logging Configuration (continued)

Feature Default Setting

Synchronous logging Disabled.

Logging server Disabled.

Syslog server IP address None configured.

Server facility Local7 (see Table 52-4 on page 52-12).

Server severity Informational (and numerically lower levels; see Table 52-3 on page 52-9).

Disabling Message Logging

Message logging is enabled by default. It must be enabled to send messages to any destination other than the console. When enabled, log messages are sent to a logging process, which logs messages to designated locations asynchronously to the processes that generated the messages.

To disable message logging, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no logging on Disables message logging.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config or show logging

Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Disabling the logging process can slow down the switch because a process must wait until the messages are written to the console before continuing. When the logging process is disabled, messages are displayed on the console as soon as they are produced, often appearing in the middle of command output.

The logging synchronous global configuration command also affects the display of messages to the console. When this command is enabled, messages appear only after you press Return. For more information, see the “Synchronizing Log Messages” section on page 52-6.

To reenable message logging after it has been disabled, use the logging on global configuration command.

Page 1223 of the Cisco Systems 4500 user manual — Setting the Message Display Destination Device
Page 1223 · click to enlarge
Page 1223

Chapter 52 Configuring System Message Logging

Configuring System Message Logging

Setting the Message Display Destination Device

If message logging is enabled, you can send messages to specific locations in addition to the console.

To specify the locations that receive messages, perform this task, beginning in privileged EXEC mode:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# logging buffered [size]

Logs messages to an internal buffer on the switch. The default buffer size is 4096. The range is 4096 to 2147483647 bytes.

If the switch, the log file is lost unless you previously saved it to flash memory. See Step 4.

Step 3 Switch(config)# logging host Logs messages to a UNIX syslog server host.

For host, specify the name or IP address of the host to be used as the syslog server.

To build a list of syslog servers that receive logging messages, enter this command more than once.

For complete syslog server configuration steps, see the “Configuring UNIX Syslog Servers” section on page 52-10.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# terminal monitor Logs messages to a nonconsole terminal during the current session.

Terminal parameter-setting commands are set locally and do not remain in effect after the session has ended. You must perform this step for each session to see the debugging messages.

Step 6 Switch# show running-config Verifies your entries.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

The logging buffered global configuration command copies logging messages to an internal buffer. The buffer is circular, so newer messages overwrite older messages after the buffer is full. To display the messages that are logged in the buffer, use the show logging privileged EXEC command. The first message displayed is the oldest message in the buffer. To clear the contents of the buffer, use the clear logging privileged EXEC command.

To disable logging to the console, use the no logging console global configuration command. To disable logging to a file, use the no logging file [severity-level-number | type] global configuration command.

Page 1224 of the Cisco Systems 4500 user manual — line vty 2
Page 1224 · click to enlarge
Page 1224

Chapter 52 Configuring System Message Logging Configuring System Message Logging

Synchronizing Log Messages

You can synchronize unsolicited messages and debug privileged EXEC command output with solicited device output and prompts for a specific console port line or virtual terminal line. You can identify the types of messages to be output asynchronously based on the level of severity. You can also configure the maximum number of buffers for storing asynchronous messages for the terminal after which messages are dropped.

When synchronous logging of unsolicited messages and debug command output is enabled, unsolicited device output appears on the console or printed after solicited device output appears or printed. Unsolicited messages and debug command output appears on the console after the prompt for user input is returned. Unsolicited messages and debug command output are not interspersed with solicited device output and prompts. After the unsolicited messages are displayed, the console again displays the user prompt.

To configure synchronous logging, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# line [console | vty] line-number [ending-line-number]

Specifies the line to be configured for synchronous logging of messages.

  • Use the console keyword for configurations that occur using the switch console port.
  • Use the line vty line-number command to specify which vty lines are to have synchronous logging enabled. You use a vty connection for configurations that occur through a Telnet session. The range of line numbers is from 0 to 15.

You can change the setting of all 16 vty lines at once by entering:

line vty 0 15

Or you can change the setting of the single vty line being used for your current connection. For example, to change the setting for vty line 2, enter:

line vty 2

When you enter this command, the mode changes to line configuration.

Step 3 Switch(config)# logging synchronous [level [severity-level | all] | limit number-of-buffers]

Enables synchronous logging of messages.

  • (Optional) For level severity-level , specify the message severity level. Messages with a severity level equal to or higher than this value are printed asynchronously. Low numbers mean greater severity and high numbers mean lesser severity. The default is 2.
  • (Optional) Specifying level all means that all messages are printed asynchronously regardless of the severity level.
  • (Optional) For limit number-of-buffers , specify the number of buffers to be queued for the terminal after which new messages are dropped. The range is 0 to 2147483647. The default is 20.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Page 1225 of the Cisco Systems 4500 user manual — Enabling and Disabling Sequence Numbers in Log Messages (Optional)
Page 1225 · click to enlarge
Page 1225

Chapter 52 Configuring System Message Logging

Configuring System Message Logging

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable synchronization of unsolicited messages and debug output, use the no logging synchronous [level severity-level | all] [limit number-of-buffers] line configuration command.

Enabling and Disabling Timestamps on Log Messages

To enable time-stamping of log messages, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# service timestamps log uptime or Switch(config)# service timestamps log datetime [msec] [localtime] [show-timezone]

Enables log time-stamps.

The first command enables time-stamps on log messages, showing the time since the system was rebooted.

The second command enables time-stamps on log messages. Depending on the options selected, the timestamp can include the date, time in milliseconds relative to the local time zone, and the time zone name.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To disable time-stamps for both debug and log messages, use the no service timestamps global configuration command.

This example shows part of a logging display with the service timestamps log datetime global configuration command enabled:

*Mar 1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)

This example shows part of a logging display with the service timestamps log uptime global configuration command enabled:

00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

Enabling and Disabling Sequence Numbers in Log Messages (Optional)

Because more than one log message can have the same timestamp, you can display messages with sequence numbers so that you can unambiguously refer to a single message. By default, sequence numbers in log messages are not displayed.

Page 1226 of the Cisco Systems 4500 user manual — Defining the Message Severity Level (Optional)
Page 1226 · click to enlarge
Page 1226

Chapter 52 Configuring System Message Logging Configuring System Message Logging

To enable sequence numbers in log messages, perform this task, which is optional.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# service sequence-numbers

Enables sequence numbers.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable sequence numbers, use the no service sequence-numbers global configuration command.

This example shows part of a logging display with sequence numbers enabled:

000019%SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)

Defining the Message Severity Level (Optional)

You can limit messages displayed to the selected device by specifying the severity level of the message, which are described in Table 52-3.

To define the message severity level, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# logging console level Limits messages logged to the console.

By default, the console receives debugging messages and numerically lower levels (see Table 52-3 on page 52-9).

Step 3 Switch(config)# logging monitor level Limits messages logged to the terminal lines.

By default, the terminal receives debugging messages and numerically lower levels (see Table 52-3 on page 52-9).

Step 4 Switch(config)# logging trap level Limits messages logged to the syslog servers.

By default, syslog servers receive informational messages and numerically lower levels (see Table 52-3 on page 52-9).

For complete syslog server configuration steps, see the “Configuring UNIX Syslog Servers” section on page 52-10.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show running-config or Switch# show logging

Verifies your entries.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 1227 of the Cisco Systems 4500 user manual — Limiting Syslog Messages Sent to the History Table and to SNMP (Optional)
Page 1227 · click to enlarge
Page 1227

Chapter 52 Configuring System Message Logging

Configuring System Message Logging

To disable logging to the console, use the no logging console global configuration command. To disable logging to a terminal other than the console, use the no logging monitor global configuration command. To disable logging to syslog servers, use the no logging trap global configuration command.

Table 52-3 describes the level keywords. It also lists the corresponding UNIX syslog definitions from the most severe level to the least severe level.

Table 52-3 Message Logging Level Keywords

Level Keyword Level Description Syslog Definition

emergencies 0 System unstable LOG_EMERG

alerts 1 Immediate action needed LOG_ALERT

critical 2 Critical conditions LOG_CRIT

errors 3 Error conditions LOG_ERR

notifications 5 Normal but significant condition LOG_NOTICE

informational 6 Informational messages only LOG_INFO

debugging 7 Debugging messages LOG_DEBUG

The software generates four other categories of messages:

  • Error messages about software or hardware malfunctions, displayed at levels warnings through emergencies . These types of messages mean that the functionality of the switch is affected. For information on how to recover from these malfunctions, see the system message guide for this release.
  • Output from the debug commands, displayed at the debugging level. Debug commands are typically used only by the Technical Assistance Center.
  • Interface up or down transitions and system restart messages, displayed at the notifications level. This message is only for information; switch functionality is not affected.
  • Reload requests and low-process stack messages, displayed at the informational level. This message is only for information; switch functionality is not affected.

Limiting Syslog Messages Sent to the History Table and to SNMP (Optional)

If you enabled syslog message traps to be sent to an SNMP network management station by using the snmp-server enable trap global configuration command, you can change the level of messages sent and stored in the switch history table. You also can change the number of messages that are stored in the history table.

Messages are stored in the history table because SNMP traps are not guaranteed to reach their destination. By default, one message of the level warning and numerically lower levels (see Table 52-3 on page 52-9) are stored in the history table even if syslog traps are not enabled.

Page 1228 of the Cisco Systems 4500 user manual — Logging Messages to a UNIX Syslog Daemon
Page 1228 · click to enlarge
Page 1228

Chapter 52 Configuring System Message Logging Configuring System Message Logging

To change the level and history table size defaults, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# logging history level1

Changes the default level of syslog messages stored in the history file and sent to the SNMP server.

See Table 52-3 on page 52-9 for a list of level keywords.

By default, warnings, errors, critical, alerts, and emergencies messages are sent.

Step 3 Switch(config)# logging history size number Specifies the number of syslog messages that can be stored in the history table.

The default is to store one message. The range is 0 to 500 messages.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

1. Table 52-3 lists the level keywords and severity level. For SNMP usage, the severity level values increase by 1. For example, emergencies equal 1, not 0, and critical equals 3, not 2.

When the history table is full (it contains the maximum number of message entries specified with the logging history size global configuration command), the oldest message entry is deleted from the table to allow the new message entry to be stored.

To return the logging of syslog messages to the default level, use the no logging history global configuration command. To return the number of messages in the history table to the default value, use the no logging history size global configuration command.

Configuring UNIX Syslog Servers

The next sections describe how to configure the UNIX server syslog daemon and how to define the UNIX system logging facility.

Logging Messages to a UNIX Syslog Daemon

Before you can send system log messages to a UNIX syslog server, you must configure the syslog daemon on a UNIX server. This procedure is optional.

Page 1229 of the Cisco Systems 4500 user manual — Configuring the UNIX System Logging Facility
Page 1229 · click to enlarge
Page 1229

Chapter 52 Configuring System Message Logging

Configuring System Message Logging

Log in as root, and perform these steps:

Step 1 Add a line such as the following to the file /etc/syslog.conf:

local7.debug /usr/adm/logs/cisco.log

The local7 keyword specifies the logging facility to be used; see Table 52-4 on page 52-12 for information on the facilities. The debug keyword specifies the syslog level; see Table 52-3 on page 52-9 for information on the severity levels. The syslog daemon sends messages at this level or at a more severe level to the file specified in the next field. The file must already exist, and the syslog daemon must have permission to write to it.

Step 2 Create the log file by entering these commands at the UNIX shell prompt:

$ touch /var/log/cisco.log $ chmod 666 /var/log/cisco.log

Step 3 Ensure that the syslog daemon reads the new changes:

$ kill -HUP `cat /etc/syslog.pid`

For more information, see the man syslog.conf and man syslogd commands on your UNIX system.

Configuring the UNIX System Logging Facility

When sending system log messages to an external device, you can cause the switch to identify its messages as originating from any of the UNIX syslog facilities.

To configure UNIX system facility message logging, perform this task (which is optional):

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# logging host Logs messages to a UNIX syslog server host by entering its IP address.

To build a list of syslog servers that receive logging messages, enter this command more than once.

Step 3 Switch(config)# logging trap level Limits messages logged to the syslog servers.

Be default, syslog servers receive informational messages and lower. See Table 52-3 on page 52-9 for level keywords.

Step 4 Switch(config)# logging facility facility-type Configures the syslog facility. See Table 52-4 on page 52-12 for facility-type keywords.

The default is local7.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show running-config Verifies your entries.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 1230 of the Cisco Systems 4500 user manual — Displaying the Logging Configuration
Page 1230 · click to enlarge
Page 1230

Chapter 52 Configuring System Message Logging Displaying the Logging Configuration

To remove a syslog server, use the no logging host global configuration command, and specify the syslog server IP address. To disable logging to syslog servers, enter the no logging trap global configuration command.

Table 52-4 lists the UNIX system facilities supported by the software. For more information about these facilities, consult the operator’s manual for your UNIX operating system.

Table 52-4 Logging Facility-Type Keywords

Facility Type Keyword Description

local0-7 Locally defined messages

lpr Line printer system

uucp UNIX-to-UNIX copy system

Displaying the Logging Configuration

To display the logging configuration and the contents of the log buffer, use the show logging privileged EXEC command. For information about the fields in this display, see the Cisco IOS Configuration Fundamentals Command Reference, Release 12.3.

Show 9 more labels / short text on this page
auth Authorization system · cron Cron facility · daemon System daemon · kern Kernel · mail Mail system · news USENET news · sys9-14 System use · syslog System log · user User process
Page 1231 of the Cisco Systems 4500 user manual — Prerequisites for OBFL
Page 1231 · click to enlarge
Page 1231

C H A P T E R

Onboard Failure Logging (OBFL)

  • Prerequisites for OBFL, page 53-1
  • Restrictions for OBFL, page 53-2
  • Information About OBFL, page 53-2
  • Default Settings for OBFL, page 53-9
  • Enabling OBFL, page 53-9
  • Configuration Examples for OBFL, page 53-10

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Series Switch Command Reference, it will be found in the larger Cisco IOS library. Refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Prerequisites for OBFL

None.

Page 1232 of the Cisco Systems 4500 user manual — OBFL Data Overview
Page 1232 · click to enlarge
Page 1232

Chapter 53 Onboard Failure Logging (OBFL) Restrictions for OBFL

Restrictions for OBFL

They include:

  • Software Restrictions—If a device (router or switch) intends to use linear flash memory as its OBFL storage media, Cisco IOS software must reserve a minimum of two physical sectors (or physical blocks) for the OBFL feature. Because an erase operation for a linear flash device is done on per-sector (or per-block) basis, one extra physical sector is needed. Otherwise, the minimum amount of space reserved for the OBFL feature on any device must be at least 8 KB.
  • Firmware Restrictions—If a line card or port adapter runs an operating system or firmware that is different from the Cisco IOS operating system, the line card or port adapter must provide device driver level support or an interprocess communications (IPC) layer that allows the OBFL file system to communicate to the line card or port adapter. This requirement is enforced to allow OBFL data to be recorded on a storage device attached to the line card or port adapter.
  • Hardware Restrictions—To support the OBFL feature, a device must have at least 8 KB of nonvolatile memory space reserved for OBFL data logging.

Information About OBFL

  • Overview of OBFL, page 53-2
  • Information about Data Collected by OBFL, page 53-2

Overview of OBFL

The Onboard Failure Logging (OBFL) feature collects data such as operating temperatures, hardware uptime, interrupts, and other important events and messages from system hardware installed in a Cisco router or switch. The data is stored in nonvolatile memory and helps technical personnel diagnose hardware problems.

Information about Data Collected by OBFL

  • OBFL Data Overview, page 53-2
  • Temperature, page 53-3
  • Operational Uptime, page 53-4
  • Interrupts, page 53-7
  • Message Logging, page 53-8

OBFL Data Overview

The OBFL feature records operating temperatures, hardware uptime, interrupts, and other important events and messages that can assist with diagnosing problems with hardware cards (or modules) installed in a Cisco router or switch. Data is logged to files stored in nonvolatile memory. When the onboard hardware is started up, a first record is made for each area monitored and becomes a base value for subsequent records. The OBFL feature provides a circular updating scheme for collecting continuous records and archiving older (historical) records, ensuring accurate data about the system. Data is

Page 1233 of the Cisco Systems 4500 user manual — Temperature Example
Page 1233 · click to enlarge
Page 1233

Chapter 53 Onboard Failure Logging (OBFL)

recorded in one of two formats: continuous information that displays a snapshot of measurements and samples in a continuous file, and summary information that provides details about the data being collected. The data is displayed using the show logging onboard command. The message “No historical data to display” is seen when historical data is not available.

Temperature

Temperatures surrounding hardware modules can exceed recommended safe operating ranges and cause system problems such as packet drops. Higher than recommended operating temperatures can also accelerate component degradation and affect device reliability. Monitoring temperatures is important for maintaining environmental control and system reliability. Once a temperature sample is logged, the sample becomes the base value for the next record. From that point on, temperatures are recorded either when there are changes from the previous record or if the maximum storage time is exceeded. Temperatures are measured and recorded in degrees Celsius.

Temperature Example

Switch# sh logging onboard temperature TEMPERATURE SUMMARY INFORMATION Number of sensors : 7 Sampling frequency : 1 minutes Maximum time of storage : 10 minutes Sensor | ID | Maximum Temperature 0C Stub A 0 43 Stub B 1 37 XPP 2 51 VFE 3 61 NFE 4 50 CPU 5 55 FPGA 6 44 Temp Sensor ID 0C 1 2 3 4 5 6 7 1 9y 15 0m 71h 0m 16 0m 183h 0m Temp Sensor ID 0C 1 2 3 4 5 6 7 17 0m 142m 0m 18 0m 190m 19 0m 30m 20 113h 0m 21 37h 0m 101h 22 107h 0m 106h 23 110m 12m 0m 47h 24 10m 122m 0m 182m 25 0m 120m 26 0m 56h 0m 30m 27 0m 368h 0m 28 0m 8y 0m 29 134m 8y 0m 0m 139h 0m 0m 30 0m 682h 83h 0m 116h 0m 0m 31 90m 738h 31h 0m 200m 0m 95m

Information About OBFL

Page 1234 of the Cisco Systems 4500 user manual — Operational Uptime
Page 1234 · click to enlarge
Page 1234

Chapter 53 Onboard Failure Logging (OBFL) Information About OBFL

32 209h 935h 138h 0m 120m 141h 258h 33 331h 934h 192m 0m 0m 113h 316h 34 579h 8y 190m 0m 0m 182m 432h 35 17y 149h 80m 0m 0m 150m 8y 36 914h 20m 10m 8y 37 838h 270m 0m 140h 26m 0m 8y 38 47d 0m 0m 102h 108m 0m 790h 39 8y 0m 0m 948m 20m 0m 421h Temp Sensor ID 0C 1 2 3 4 5 6 7 40 414h 0m 2m 100m 78h 0m 288h 41 74h 0m 113h 40m 340h 134m 113h 42 10m 0m 380h 0m 198h 0m 446m 43 270m 0m 8y 0m 373h 0m 0m 44 0m 0m 8y 0m 683h 45h 10m 45 0m 0m 8y 2m 17y 274h 0m 46 0m 0m 897h 105m 64d 257h 0m 47 0m 0m 785h 27m 8y 169h 0m 48 0m 0m 639h 4m 319h 666h 0m 49 0m 0m 379h 92h 786m 17y 0m 50 0m 0m 94h 330h 270m 61d 0m 51 0m 0m 106m 192h 0m 48d 0m 52 0m 0m 0m 190h 0m 8y 0m 53 0m 0m 0m 573h 0m 227h 0m 54 0m 0m 0m 736h 0m 180m 0m 55 0m 0m 0m 716h 0m 260m 0m 56 0m 0m 0m 902h 0m 0m 0m 57 0m 0m 0m 8y 0m 0m 0m 58 0m 0m 0m 8y 0m 0m 0m 59 0m 0m 0m 8y 0m 0m 0m 60 0m 0m 0m 226h 0m 0m 0m 61 0m 0m 0m 629m 0m 0m 0m

To interpret this data:

  • Number of sensors is the total number of temperature sensors that will be recorded. A column for each sensor is displayed with temperatures listed under the number of each sensor, as available.
  • Sampling frequency is the time between measurements.
  • Maximum time of storage determines the maximum amount of time, in minutes, that can pass when the temperature remains unchanged and the data is not saved to storage media. After this time, a temperature record will be saved even if the temperature has not changed.
  • The Sensor column lists the name of the sensor.
  • The ID column lists an assigned identifier for the sensor.
  • Maximum Temperature 0C shows the highest recorded temperature per sensor.
  • Temp indicates a recorded temperature in degrees Celsius in the historical record. Columns following show the total time each sensor has recorded that temperature.
  • Sensor ID is an assigned number, so that temperatures for the same sensor can be stored together.

Operational Uptime

The operational uptime tracking begins when the module is powered on, and information is retained for the life of the module.

Switch#

Page 1235 of the Cisco Systems 4500 user manual — Operational Uptime Example
Page 1235 · click to enlarge
Page 1235

Chapter 53 Onboard Failure Logging (OBFL)

Operational Uptime Example

Switch# sh logging onboard uptime detail UPTIME SUMMARY INFORMATION First customer power on : 04/13/2010 19:45:08 Total uptime : 1 years 34 weeks 3 days 12 hours 50 minutes Total downtime : 1 years 7 weeks 3 days 18 hours 12 minutes Number of resets : 1409 Number of slot changes : 19 Current reset reason : 0x0 Current reset timestamp : 01/29/2013 21:56:43 Current slot : 5 Current subslot : 0 Current uptime : 0 years 0 weeks 0 days 0 hours 20 minutes Reset | | Reason | Count | No historical data to display

UPTIME CONTINUOUS INFORMATION Time Stamp | Reset | Uptime MM/DD/YYYY HH:MM:SS | Reason | years weeks days hours minutes 04/13/2010 19:45:08 0x04/13/2010 22:26:50 0x9 0 0 0 2 0 04/14/2010 18:54:42 0x9 0 0 0 20 0 04/14/2010 21:31:00 0x9 0 0 0 2 0 04/14/2010 22:04:15 0x9 0 25 04/14/2010 22:22:20 0x9 0 5 04/14/2010 23:05:58 0x9 0 5 04/15/2010 19:03:11 0x9 0 0 0 19 0 04/15/2010 21:29:22 0x9 0 0 0 2 0 04/15/2010 21:49:49 0x8 0 10 04/16/2010 18:46:03 0x9 0 0 0 20 0 04/16/2010 19:25:37 0x9 0 25 04/16/2010 19:34:59 0x9 04/16/2010 19:46:06 0x9 04/16/2010 19:57:16 0x9 0 5 04/16/2010 20:17:55 0x9 0 Time Stamp | Reset | Uptime MM/DD/YYYY HH:MM:SS | Reason | years weeks days hours minutes 04/16/2010 20:31:28 0x9 04/16/2010 20:50:07 0x9 0 10 04/16/2010 22:45:15 0x9 04/18/2010 19:55:25 0x9 04/18/2010 20:01:52 0x9 04/19/2010 00:21:42 0x9 04/19/2010 01:20:33 0x0 30 04/19/2010 19:25:04 0x9 0 0 0 15 0 04/19/2010 20:05:04 0x9 0 15 04/19/2010 20:55:43 0x9 04/19/2010 21:11:52 0x9 04/19/2010 21:20:35 0x9 04/19/2010 21:39:45 0x9 0 10 04/19/2010 21:54:50 0x9 0 5 04/19/2010 22:11:48 0x9 0 5

Information About OBFL

Page 1236 of the Cisco Systems 4500 user manual — Operational Uptime
Page 1236 · click to enlarge
Page 1236

Chapter 53 Onboard Failure Logging (OBFL) Information About OBFL

04/19/2010 22:35:38 0x9 0 5 04/19/2010 22:49:41 0x9 04/19/2010 23:12:58 0x9 0 10 04/20/2010 00:36:04 0x9 0 0 0 1 0 04/20/2010 00:49:19 0x9 0 5 04/20/2010 00:58:29 0x9 04/20/2010 16:51:06 0x9 0 0 0 15 0

The operational uptime application tracks the following events:

  • Date and time the customer first powered on a component.
  • Total uptime and downtime for the component in years, weeks, days, hours, and minutes.
  • Total number of component resets.
  • Total number of slot (module) changes.
  • Current reset timestamp to include the date and time.
  • Current slot (module) number of the component.
  • Current uptime in years, weeks, days, hours, and minutes.

Switch#

Page 1237 of the Cisco Systems 4500 user manual — Interrupts Example
Page 1237 · click to enlarge
Page 1237

Chapter 53 Onboard Failure Logging (OBFL)

Interrupts

Interrupts are generated by system components that require attention from the CPU such as ASICs and NMIs. Interrupts are generally related to hardware limit conditions or errors that need to be corrected.

The continuous format records each time a component is interrupted, and this record is stored and used as base information for subsequent records. Each time the list is saved, a timestamp is added. Time differences from the previous interrupt are counted, so that technical personnel can gain a complete record of the component’s operational history when an error occurs.

Interrupts Example

Switch# sh logging onboard interrupt detail INTERRUPT SUMMARY INFORMATION Name | ID | Offset | Bit | Count dropped 2 0x0004 0 27323 ipp 6 0x5A00 0 983763 ipp high 10 0x700A 0 34105 ipp low 11 0x9000 0 30211

CONTINUOUS INTERRUPT INFORMATION MM/DD/YYYY HH:MM:SS mmm | Name | ID | Offset | Bit 12/12/2011 16:06:43 0 ipp high 10 0x7AEA 7 12/12/2011 16:06:43 0 dropped 2 0x0006 0 12/12/2011 16:06:46 0 ipp high 10 0x7AEC 0 12/12/2011 16:06:46 0 ipp high 10 0x7AEC 1 12/12/2011 16:06:46 0 ipp high 10 0x7AEC 4 12/12/2011 16:06:46 0 ipp high 10 0x7AEC 5 12/12/2011 16:06:46 0 ipp low 11 0xC000 0 12/12/2011 16:06:46 0 ipp low 11 0xC000 1 12/12/2011 16:06:46 0 ipp low 11 0xC000 4 12/12/2011 16:06:46 0 ipp low 11 0xC000 5 12/12/2011 16:06:46 0 ipp high 10 0x7AEA 0 12/12/2011 16:06:46 0 ipp high 10 0x7AEA 2 12/12/2011 16:06:46 0 ipp high 10 0x7AEA 3 12/12/2011 16:06:46 0 ipp high 10 0x7AEA 4 12/12/2011 16:06:46 0 ipp high 10 0x7AEA 6 12/12/2011 16:06:46 0 ipp high 10 0x7AEA 7 12/12/2011 16:06:46 0 dropped 2 0x0006 0 12/12/2011 16:06:49 0 ipp high 10 0x7AEC 0 12/12/2011 16:06:49 0 ipp high 10 0x7AEC 1

To interpret this data:

  • Name is a description of the component including its position in the device.
  • ID is an assigned field for data storage.
  • Offset is the register offset from a component register’s base address.
  • Bit is the interrupt bit number recorded from the component’s internal register.
  • The timestamp shows the date and time that an interrupt occurred down to the millisecond.

Information About OBFL · Switch#

Page 1238 of the Cisco Systems 4500 user manual — Error Message Log Example
Page 1238 · click to enlarge
Page 1238

Chapter 53 Onboard Failure Logging (OBFL) Information About OBFL

Message Logging

The OBFL feature logs standard system messages. Instead of displaying the message to a terminal, the message is written to and stored in a file, so the message can be accessed and read at a later time. System messages range from level 1 alerts to level 7 debug messages, and these levels can be specified in the hw module logging onboard command.

Error Message Log Example

Switch# sh logging onboard message det ERROR MESSAGE SUMMARY INFORMATION Facility-Sev-Name | Count | Persistence Flag MM/DD/YYYY HH:MM:SS %CAT4K-3-DIAGNOSTICS_PASSED : 22 LAST 11/24/2010 15:46:20 module passed diagnostics %CAT4K-2-DIAGNOSTIC_STATUS : 22 LAST 11/24/2010 15:46:20 diagnostic Packet memory Skipped

ERROR MESSAGE CONTINUOUS INFORMATION MM/DD/YYYY HH:MM:SS Facility-Sev-Name 12/15/2010 11:32:39 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/15/2010 11:32:39 %CAT4K-2-DIAGNOSTIC_STATUS : diagnostic Packet memory Skipped 12/15/2010 13:03:41 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/15/2010 13:03:41 %CAT4K-2-DIAGNOSTIC_STATUS : diagnostic Packet memory Skipped 12/15/2010 13:25:02 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/15/2010 13:25:02 %CAT4K-2-DIAGNOSTIC_STATUS : diagnostic Packet memory Skipped 12/15/2010 13:45:34 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/15/2010 13:45:34 %CAT4K-2-DIAGNOSTIC_STATUS : diagnostic Packet memory Skipped 12/15/2010 14:05:01 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/15/2010 14:05:01 %CAT4K-2-DIAGNOSTIC_STATUS : diagnostic Packet memory Skipped 12/15/2010 14:35:51 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/15/2010 14:35:51 %CAT4K-2-DIAGNOSTIC_STATUS : diagnostic Packet memory Skipped

To interpret this data:

  • A timestamp shows the date and time the message was logged.
  • Facility-Sev-Name is a coded naming scheme for a system message, as follows:

– The Facility code consists of two or more uppercase letters that indicate the hardware device (facility) to which the message refers.

– Sev is a single-digit code from 1 to 7 that reflects the severity of the message.

– Name is one or two code names separated by a hyphen that describe the part of the system from where the message is coming.

  • The error message follows the Facility-Sev-Name codes. For more information about system messages, see the Cisco IOS System and Error Messages guide.
  • Count indicates the number of instances of this message that is allowed in the history file. Once that number of instances has been recorded, the oldest instance will be removed from the history file to make room for new ones.

Switch#

Page 1239 of the Cisco Systems 4500 user manual — Command or Action Purpose
Page 1239 · click to enlarge
Page 1239

Chapter 53 Onboard Failure Logging (OBFL)

Default Settings for OBFL

  • The Persistence Flag gives a message priority over others that do not have the flag set.

Default Settings for OBFL

The OBFL feature is enabled by default. Because of the valuable information this feature offers technical personnel, it should not be disabled.

Enabling OBFL

To enable OBFL, perform this task:

Command or Action Purpose

Step 1 Router> enable Enables privileged EXEC mode (enter your password if prompted).

Step 2 Router# configure terminal Enters global configuration mode.

Step 3 Router(config)# hw-module module module-number logging onboard [message level {1-7}]

Enables OBFL on the specified hardware module.

Step 4 Router(config)# end Ends global configuration mode.

Page 1240 of the Cisco Systems 4500 user manual — OBFL Message Log: Example
Page 1240 · click to enlarge
Page 1240

Chapter 53 Onboard Failure Logging (OBFL) Configuration Examples for OBFL

Configuration Examples for OBFL

The important OBFL feature is the information that is displayed by the show logging onboard module privileged EXEC command. This section provides the following examples of how to enable and display OBFL records.

  • Enabling OBFL Message Logging: Example
  • OBFL Message Log: Example
  • OBFL Component Uptime Report: Example
  • OBFL Report for a Specific Time: Example

Enabling OBFL Message Logging: Example

The following example shows how to configure OBFL message logging at level 3:

Router(config)# hw-module module 1 logging onboard message level 3

OBFL Message Log: Example

The following example shows how to display the system messages that are being logged for module 2:

Switch# show logging onboard module 2 message continuous --- ERROR MESSAGE CONTINUOUS INFORMATION --- MM/DD/YYYY HH:MM:SS Facility-Sev-Name --- 12/13/2012 18:12:32 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/14/2012 17:50:55 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/20/2012 17:45:55 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/20/2012 19:55:27 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/20/2012 20:37:27 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/21/2012 16:09:15 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/07/2013 02:43:06 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/07/2013 04:59:38 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/16/2013 15:36:34 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/17/2013 12:41:44 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 14:03:24 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 14:16:09 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 14:21:59 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 15:23:04 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 15:41:29 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/22/2013 14:59:10 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/24/2013 11:47:27 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/24/2013 16:40:58 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics Switch#

Page 1241 of the Cisco Systems 4500 user manual — OBFL Report for a Specific Time: Example
Page 1241 · click to enlarge
Page 1241

Chapter 53 Onboard Failure Logging (OBFL)

Configuration Examples for OBFL

OBFL Component Uptime Report: Example

The following example shows how to display a summary report for component uptimes for module 2:

Switch# show logging onboard module 2 uptime --- UPTIME SUMMARY INFORMATION --- First customer power on : 12/13/2012 18:12:53 Total uptime : 0 years 0 weeks 4 days 15 hours 55 minutes Total downtime : 0 years 6 weeks 0 days 12 hours 18 minutes Number of resets : 20 Number of slot changes : 1 Current reset reason : 0x0 Current reset timestamp : 01/29/2013 21:56:18 Current slot : 2 Current subslot : 0 Current uptime : 0 years 0 weeks 0 days 0 hours 30 minutes --- Reset | | Reason | Count | --- No historical data to display Switch#

OBFL Report for a Specific Time: Example

The following example shows how to display continuous reports for all components during a specific time period:

Switch# show logging onboard module 2 continuous start 18:12:32 13 Dec 2012 end 16:40:58 24 Jan 2013 PID: WS-C4510R+E , VID: 6 , SN: FOX1503GL5V

UPTIME CONTINUOUS INFORMATION Time Stamp | Reset | Uptime MM/DD/YYYY HH:MM:SS | Reason | years weeks days hours minutes 12/13/2012 18:12:53 0x0 12/14/2012 17:51:14 0x0 23 0 12/20/2012 17:45:52 0x0 1 0 12/20/2012 19:55:22 0x0 2 0 12/20/2012 20:37:26 0x0 40 12/21/2012 16:09:14 0x0 10 01/07/2013 02:43:04 0x0 2 0 01/07/2013 04:59:35 0x0 2 0 01/16/2013 15:36:32 0x0 0 0 1 17 0 01/17/2013 12:41:42 0x0 3 0 01/18/2013 14:03:21 0x0 0 0 1 1 0 01/18/2013 14:16:08 0x0 10 01/18/2013 14:21:58 0x01/18/2013 15:23:02 0x0 1 0 01/18/2013 15:41:25 0x0 15 01/22/2013 14:59:05 0x0 3 0

Page 1242 of the Cisco Systems 4500 user manual — OBFL Component Uptime Report: Example
Page 1242 · click to enlarge
Page 1242

Chapter 53 Onboard Failure Logging (OBFL) Configuration Examples for OBFL

Time Stamp | Reset | Uptime MM/DD/YYYY HH:MM:SS | Reason | years weeks days hours minutes 01/24/2013 11:47:25 0x0 3 0 01/24/2013 16:40:56 0x0 3 0

ENVIRONMENT CONTINUOUS INFORMATION MM/DD/YYYY HH:MM:SS Device Name IOS Version F/W Ver RAM(KB) Event VID PID TAN Serial No 12/13/2012 18:12:57 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 12/14/2012 17:50:55 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 12/20/2012 17:45:55 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 12/20/2012 19:55:27 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 12/20/2012 20:37:27 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 12/21/2012 16:09:15 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/07/2013 02:43:06 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/07/2013 04:59:38 slot-2: NA NA 0 Inserted ENVIRONMENT CONTINUOUS INFORMATION MM/DD/YYYY HH:MM:SS Device Name IOS Version F/W Ver RAM(KB) Event VID PID TAN Serial No Cis WS-C4510R+E NA FOX1503GL5V 01/16/2013 15:36:34 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/17/2013 12:41:44 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/18/2013 14:03:24 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/18/2013 14:16:09 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/18/2013 14:21:59 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/18/2013 15:23:04 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/18/2013 15:41:29 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/22/2013 14:59:10 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/24/2013 11:47:27 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V 01/24/2013 16:40:58 slot-2: NA NA 0 Inserted Cis WS-C4510R+E NA FOX1503GL5V TEMPERATURE CONTINUOUS INFORMATION Sensor | ID |

Page 1243 of the Cisco Systems 4500 user manual — Table of contents
Page 1243 · click to enlarge
Page 1243

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1244 of the Cisco Systems 4500 user manual — Table of contents
Page 1244 · click to enlarge
Page 1244

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1245 of the Cisco Systems 4500 user manual — OBFL Component Uptime Report: Example
Page 1245 · click to enlarge
Page 1245

Chapter 53 Onboard Failure Logging (OBFL)

Configuration Examples for OBFL

ERROR MESSAGE CONTINUOUS INFORMATION MM/DD/YYYY HH:MM:SS Facility-Sev-Name 12/13/2012 18:12:32 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/14/2012 17:50:55 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/20/2012 17:45:55 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/20/2012 19:55:27 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/20/2012 20:37:27 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 12/21/2012 16:09:15 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/07/2013 02:43:06 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/07/2013 04:59:38 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/16/2013 15:36:34 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/17/2013 12:41:44 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 14:03:24 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 14:16:09 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 14:21:59 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 15:23:04 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/18/2013 15:41:29 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/22/2013 14:59:10 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics 01/24/2013 11:47:27 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics ERROR MESSAGE CONTINUOUS INFORMATION MM/DD/YYYY HH:MM:SS Facility-Sev-Name

01/24/2013 16:40:58 %CAT4K-3-DIAGNOSTICS_PASSED : module passed diagnostics

Switch#

Page 1246 of the Cisco Systems 4500 user manual — OBFL Component Uptime Report: Example
Page 1246 · click to enlarge
Page 1246

Chapter 53 Onboard Failure Logging (OBFL) Configuration Examples for OBFL

Page 1247 of the Cisco Systems 4500 user manual — About SNMP
Page 1247 · click to enlarge
Page 1247

C H A P T E R

Configuring SNMP

This chapter describes how to configure the Simple Network Management Protocol (SNMP) on the Catalyst 4500 series switch.

This chapter consists of these sections:

  • About SNMP, page 54-1
  • Configuring SNMP, page 54-5
  • Displaying SNMP Status, page 54-16

About SNMP

SNMP is an application-layer protocol that provides a message format for communication between managers and agents. The SNMP system consists of an SNMP manager, an SNMP agent, and a MIB. The SNMP manager can be part of a network management system (NMS) such as CiscoWorks. The agent and MIB reside on the switch. To configure SNMP on the switch, you define the relationship between the manager and the agent.

The SNMP agent contains MIB variables whose values the SNMP manager can request or change. A manager can get a value from an agent or store a value into the agent. The agent gathers data from the MIB, the repository for information about device parameters and network data. The agent can also respond to a manager’s requests to get or set data.

An agent can send unsolicited traps to the manager. Traps are messages alerting the SNMP manager to a condition on the network. Traps can mean improper user authentication, restarts, link status (up or down), MAC address tracking, closing of a Transmission Control Protocol (TCP) connection, loss of connection to a neighbor, or other significant events.

Page 1248 of the Cisco Systems 4500 user manual — SNMP Versions
Page 1248 · click to enlarge
Page 1248

Chapter 54 Configuring SNMP About SNMP

This section includes information about these topics:

  • SNMP Versions, page 54-2
  • SNMP Manager Functions, page 54-3
  • SNMP Agent Functions, page 54-4
  • SNMP Community Strings, page 54-4
  • Using SNMP to Access MIB Variables, page 54-4
  • SNMP Notifications, page 54-5

SNMP Versions

The Catalyst 4500 series switch supports these SNMP versions:

  • SNMPv1—The Simple Network Management Protocol, a Full Internet Standard, defined in RFC 1157.
  • SNMPv2C replaces the Party-based Administrative and Security Framework of SNMPv2Classic with the community-string-based Administrative Framework of SNMPv2C while retaining the bulk retrieval and improved error handling of SNMPv2Classic. It has these features:

– SNMPv2—Version 2 of the Simple Network Management Protocol, a Draft Internet Standard, defined in RFCs 1902 through 1907.

– SNMPv2C—The community-string-based Administrative Framework for SNMPv2, an Experimental Internet Protocol defined in RFC 1901.

  • SNMPv3—Version 3 of the SNMP is an interoperable standards-based protocol defined in RFCs 2273 to 2275. SNMPv3 provides secure access to devices by authenticating and encrypting packets over the network and includes these security features:

– Message integrity—Ensures that a packet was not tampered with in transit

– Authentication—Determines that the message is from a valid source

– Encryption—Mixes the contents of a package to prevent it from being read by an unauthorized source

Both SNMPv1 and SNMPv2C use a community-based form of security. The community of managers able to access the agent’s MIB is defined by an IP address access control list and password.

SNMPv2C includes a bulk retrieval mechanism and more detailed error message reporting to management stations. The bulk retrieval mechanism retrieves tables and large quantities of information, minimizing the number of round-trips required. The SNMPv2C improved error-handling includes expanded error codes that distinguish different kinds of error conditions; these conditions are reported through a single error code in SNMPv1. Error return codes in SNMPv2C report the error type.

SNMPv3 provides for both security models and security levels. A security model is an authentication strategy set up for a user and the group within which you reside. A security level is the permitted level of security within a security model. A combination of the security level and the security model determine which security mechanism is used when handling an SNMP packet. Available security models are SNMPv1, SNMPv2C, and SNMPv3.

Page 1249 of the Cisco Systems 4500 user manual — Operation Description
Page 1249 · click to enlarge
Page 1249

Chapter 54 Configuring SNMP

The following table identifies the characteristics of the different combinations of security models and levels.

Model Level Authentication Encryption Result

SNMPv1 noAuthNoPriv Community string No Uses a community string match for authentication.

SNMPv2C noAuthNoPriv Community string No Uses a community string match for authentication.

SNMPv3 noAuthNoPriv Username No Uses a username match for authentication.

SNMPv3 authNoPriv MD5 or SHA No Provides authentication based on the HMAC-MD5 or HMAC-SHA algorithms.

SNMPv3 authPriv (requires the cryptographic software image)

MD5 or SHA DES Provides authentication based on the HMAC-MD5 or HMAC-SHA algorithms. Provides DES 56-bit encryption in addition to authentication based on the CBC-DES (DES-56) standard.

You must configure the SNMP agent to use the SNMP version supported by the management station. Because an agent can communicate with multiple managers, you can configure the software to support communications using SNMPv1, and SNMPv2C, and SNMPv3 protocols.

SNMP Manager Functions

The SNMP manager uses information in the MIB to perform the operations described in Table 54-1.

Table 54-1 SNMP Operations

Operation Description

get-request Retrieves a value from a specific variable.

get-next-request Retrieves a value from a variable within a table.1

Retrieves large blocks of data, such as multiple rows in a table, that would otherwise require the transmission of many small blocks of data.

get-response Replies to a get-request, get-next-request, and set-request sent by an NMS.

set-request Stores a value in a specific variable.

trap An unsolicited message sent by an SNMP agent to an SNMP manager when some event has occurred.

1. With this operation, an SNMP manager does not need to know the exact variable name. A sequential search is performed to find the needed variable from within a table.
2. The get-bulk command only works with SNMPv2 or later.

About SNMP · get-bulk-request2

Page 1250 of the Cisco Systems 4500 user manual — NMS
Page 1250 · click to enlarge
Page 1250

Chapter 54 Configuring SNMP About SNMP

SNMP Agent Functions

The SNMP agent responds to SNMP manager requests as follows:

  • Get a MIB variable—The SNMP agent begins this function in response to a request from the NMS. The agent retrieves the value of the requested MIB variable and responds to the NMS with that value.
  • Set a MIB variable—The SNMP agent begins this function in response to a message from the NMS. The SNMP agent changes the value of the MIB variable to the value requested by the NMS.

The SNMP agent also sends unsolicited trap messages to notify an NMS that a significant event has occurred on the agent. Examples of trap conditions include, but are not limited to, when a port or module goes up or down, when spanning-tree topology changes occur, and when authentication failures occur.

SNMP Community Strings

SNMP community strings authenticate access to MIB objects and function as embedded passwords. In order for the NMS to access the switch, the community string definitions on the NMS must match at least one of the three community string definitions on the switch.

A community string can have one of these attributes:

  • Read-only (RO)—Gives read access to authorized management stations to all objects in the MIB except the community strings, but does not allow write access
  • Read-write (RW)—Gives read and write access to authorized management stations to all objects in the MIB, but does not allow access to the community strings
  • Read-write-all—Gives read and write access to authorized management stations to all objects in the MIB, including the community strings

Using SNMP to Access MIB Variables

An example of an NMS is the CiscoWorks network management software. CiscoWorks 2000 software uses the switch MIB variables to set device variables and to poll devices on the network for specific information. The results of a poll can be displayed as a graph and analyzed to troubleshoot internetworking problems, increase network performance, verify the configuration of devices, monitor traffic loads, and more.

As shown in Figure 54-1, the SNMP agent gathers data from the MIB. The agent can send traps, or notification of certain events, to the SNMP manager, which receives and processes the traps. Traps alert the SNMP manager to a condition on the network such as improper user authentication, restarts, link status (up or down), MAC address tracking, and so forth. The SNMP agent also responds to MIB-related queries sent by the SNMP manager in get-request, get-next-request, and set-request format.

Figure 54-1 SNMP Network

Get-request, Get-next-request, Get-bulk, Set-request

NMS

Show 4 more labels / short text on this page
Network device · Get-response, traps · MIB SNMP Agent · SNMP Manager
Page 1251 of the Cisco Systems 4500 user manual — Default SNMP Configuration
Page 1251 · click to enlarge
Page 1251

Chapter 54 Configuring SNMP

SNMP Notifications

SNMP allows the switch to send notifications to SNMP managers when particular events occur. SNMP notifications can be sent as traps or inform requests. In command syntax, unless there is an option in the command to select either traps or informs, the keyword traps refers to either traps or informs, or both. Use the snmp-server host command to specify whether to send SNMP notifications as traps or informs.

Traps are unreliable because the receiver does not send an acknowledgment when it receives a trap, and the sender cannot determine if the trap was received. When an SNMP manager receives an inform request, it acknowledges the message with an SNMP response protocol data unit (PDU). If the sender does not receive a response, the inform request can be sent again. Because they can be resent, informs are more likely than traps to reach their intended destination.

The characteristics that make informs more reliable than traps also consume more resources in the switch and in the network. Unlike a trap, which is discarded as soon as it is sent, an inform request is held in memory until a response is received or the request times out. Traps are sent only once, but an inform might be resent or retried several times. The retries increase traffic and contribute to a higher overhead on the network. Traps and informs require a trade-off between reliability and resources. If it is important that the SNMP manager receive every notification, use inform requests. If traffic on the network or memory in the switch is a concern and notification is not required, use traps.

Configuring SNMP

This section describes how to configure SNMP on your switch. It contains this configuration information:

  • Default SNMP Configuration, page 54-5
  • SNMP Configuration Guidelines, page 54-6
  • Disabling the SNMP Agent, page 54-7
  • Configuring Community Strings, page 54-7
  • Configuring SNMP Groups and Users, page 54-9
  • Configuring SNMP Notifications, page 54-11
  • Setting the Agent Contact and Location Information, page 54-14
  • Limiting TFTP Servers Used Through SNMP, page 54-15
  • SNMP Examples, page 54-15

Default SNMP Configuration

Table 54-2 shows the default SNMP configuration.

Configuring SNMP

Page 1252 of the Cisco Systems 4500 user manual — SNMP Configuration Guidelines
Page 1252 · click to enlarge
Page 1252

Chapter 54 Configuring SNMP Configuring SNMP

Table 54-2 Default SNMP Configuration

Feature Default Setting

SNMP trap receiver None configured

SNMP traps None enabled except the trap for TCP connections (tty)

SNMP version If no version keyword is present, the default is Version 1.

SNMPv3 authentication If no keyword is entered, the default is the noauth (noAuthNoPriv) security level.

SNMP notification type If no type is specified, all notifications are sent.

SNMP Configuration Guidelines

An SNMP group is a table that maps SNMP users to SNMP views. An SNMP user is a member of an SNMP group. An SNMP host is the recipient of an SNMP trap operation. An SNMP engine ID is a name for the local or remote SNMP engine.

When configuring SNMP, follow these guidelines:

  • When configuring an SNMP group, do not specify a notify view. The snmp-server host global configuration command autogenerates a notify view for you and then adds it to the group associated with that user. Modifying the group's notify view affects all users associated with that group. For information about when you should configure notify views, see the Cisco IOS Configuration Fundamentals Command Reference, Release 12.2 .
  • To configure a remote user, specify the IP address or port number for the remote SNMP agent of the device where you reside.
  • Before you configure remote users for a particular agent, configure the SNMP engine ID, using the snmp-server engineID global configuration with the remote option. The remote agent's SNMP engine ID and user password are used to compute the authentication and privacy digests. If you do not configure the remote engine ID first, the configuration command fails.
  • When configuring SNMP informs, you need to configure the SNMP engine ID for the remote agent in the SNMP database before you can send proxy requests or informs to it.
  • If a local user is not associated with a remote host, the switch does not send informs for the auth (authNoPriv) and the priv (authPriv) authentication levels.
  • Changing the value of the SNMP engine ID has important side effects. A user's password (entered on the command line) is converted to an MD5 or SHA security digest based on the password and the local engine ID. The command-line password is then destroyed, as required by RFC 2274. Because of this deletion, if the value of the engine ID changes, the security digests of SNMPv3 users become invalid, and you need to reconfigure SNMP users by using the snmp-server user username global configuration command. Similar restrictions require the reconfiguration of community strings when the engine ID changes.

SNMP agent Enabled

Page 1253 of the Cisco Systems 4500 user manual — Configuring Community Strings
Page 1253 · click to enlarge
Page 1253

Chapter 54 Configuring SNMP

Disabling the SNMP Agent

To disable the SNMP agent, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# no snmp-server Disables the SNMP agent operation.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show running-config Verifies your entries.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

The no snmp-server global configuration command disables all running versions (Version 1, Version 2C, and Version 3) on the device. No specific Cisco IOS command exists to enable SNMP. The first snmp-server global configuration command that you enter enables all versions of SNMP.

Configuring Community Strings

You use the SNMP community string to define the relationship between the SNMP manager and the agent. The community string acts like a password to permit access to the agent on the switch. Optionally, you can specify one or more of these characteristics associated with the string:

  • An access list of IP addresses of the SNMP managers that are permitted to use the community string to gain access to the agent
  • A MIB view, which defines the subset of all MIB objects accessible to the given community
  • Read and write or read-only permission for the MIB objects accessible to the community

Configuring SNMP

Page 1254 of the Cisco Systems 4500 user manual — Configuring SNMP
Page 1254 · click to enlarge
Page 1254

Chapter 54 Configuring SNMP Configuring SNMP

To configure a community string on the switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# [no] snmp-server community string [view view-name] [ro | rw] [access-list-number]

Configures the community string.

  • For string , specify a string that acts like a password and permits access to the SNMP protocol. You can configure one or more community strings up to 117 characters.
  • (Optional) For view , specify the view record accessible to the community.
  • (Optional) Specify either read-only ( ro ) if you want authorized management stations to retrieve MIB objects, or specify read-write ( rw ) if you want authorized management stations to retrieve and modify MIB objects. By default, the community string permits read-only access to all objects.
  • (Optional) For access-list-number , enter an IP standard access list numbered from 1 to 99 and 1300 to 1999.

To remove a specific community string, use the no snmp-server community string global configuration command.

Step 3 Switch(config)# access-list access-list-number {deny | permit} source [source-wildcard]

(Optional) If you specified an IP standard access list number in Step 2, create the list, repeating the command as many times as necessary.

  • For access-list-number , enter the access list number specified in Step 2.
  • The deny keyword denies access if the conditions are matched. The permit keyword permits access if the conditions are matched.
  • For source , enter the IP address of the SNMP managers that are permitted to use the community string to gain access to the agent.
  • (Optional) For source-wildcard , enter the wildcard bits in dotted decimal notation to be applied to the source. Place ones in the bit positions that you want to ignore.

Recall that the access list is always terminated by an implicit deny statement for everything.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Page 1255 of the Cisco Systems 4500 user manual — Configuring SNMP Groups and Users
Page 1255 · click to enlarge
Page 1255

Chapter 54 Configuring SNMP

This example shows how to assign the string comaccess to SNMP, to allow read-only access, and to specify that IP access list 4 can use the community string to gain access to the switch SNMP agent:

Switch(config)# snmp-server community comaccess ro 4

Configuring SNMP Groups and Users

You can specify an identification name (engine ID) for the local or remote SNMP server engine on the switch. You can configure an SNMP server group that maps SNMP users to SNMP views, and you can add new users to the SNMP group.

To configure SNMP on the switch, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp-server engineID {local engineid-string | remote ip-address [udp-port port-number] engineid-string}

Configures a name for either the local or remote copy of SNMP.

  • The engineid-string is a 24-character ID string with the name of the copy of SNMP. You need not specify the entire 24-character engine ID if it has trailing zeros. Specify only the portion of the engine ID up to the point where only zeros remain in the value. For example, to configure an engine ID of 123400000000000000000000, you can enter this: snmp-server engineID local 1234
  • If you select remote , specify the ip-address of the device that contains the remote copy of SNMP and the optional UDP port on the remote device. The default is 162.

Configuring SNMP

Page 1256 of the Cisco Systems 4500 user manual — Configuring SNMP
Page 1256 · click to enlarge
Page 1256

Chapter 54 Configuring SNMP Configuring SNMP

Step 3 Switch(config)# snmp-server group groupname {v1 | v2c | v3 [auth | noauth | priv]} [read readview] [write writeview] [notify notifyview] [access access-list]

Configures a new SNMP group on the remote device.

  • For groupname, specify the name of the group.
  • Specify a security model:

– v1 is the least secure of the possible security models.

– v2c is the second least secure model. It allows transmission of informs and integers twice the normal width.

– v3, the most secure, requires you to select an authentication level:

auth—Enables the Message Digest 5 (MD5) and the Secure Hash Algorithm (SHA) packet authentication.

noauth—The noAuthNoPriv security level. it is the default if no keyword is specified.

priv—Enables Data Encryption Standard (DES) packet encryption (also called privacy).

  • (Optional) Enter read readview with a string (not to exceed 64 characters) that is the name of the view in which you can only view the contents of the agent.
  • (Optional) Enter write writeview with a string (not to exceed 64 characters) that is the name of the view in which you enter data and configure the contents of the agent.
  • (Optional) Enter notify notifyview with a string (not to exceed 64 characters) that is the name of the view in which you specify a notify, inform, or trap.
  • (Optional) Enter access access-list with a string (not to exceed 64 characters) that is the name of the access list.
Page 1257 of the Cisco Systems 4500 user manual — Notification Type Keyword Description
Page 1257 · click to enlarge
Page 1257

Chapter 54 Configuring SNMP

Step 4 Switch(config)# snmp-server user username groupname [remote host [udp-port port]] {v1 | v2c | v3 [auth {md5 | sha} auth-password]} [encrypted] [access access-list]

Configures a new user to an SNMP group.

  • The username is your name on the host that connects to the agent.
  • The groupname is the name of the group to which you are associated.
  • (Optional) Enter remote to specify a remote SNMP entity to which you belong and the hostname or IP address of that entity with the optional UDP port number. The default is 162.
  • Enter the SNMP version number ( v1 ,or v2c , or v3 ). If you enter v3 , you have these additional options:

– auth is an authentication level setting session, which can be either the HMAC-MD5-96 or the HMAC-SHA-96 authentication level, and requires a password string (not to exceed 64 characters).

– encrypted specifies that the password appears in encrypted format.

  • (Optional) Enter access access-list with a string (not to exceed 64 characters) that is the name of the access list.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show running-config Verifies your entries.

Step 7 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Configuring SNMP Notifications

A trap manager is a management station that receives and processes traps. Traps are system alerts that the switch generates when certain events occur. By default, no trap manager is defined, and no traps are sent. Switches running Cisco IOS Release 12.2(31)SG and later releases can have an unlimited number of trap managers.

Table 54-3 describes the supported switch traps (notification types). You can enable any or all of these traps and configure a trap manager to receive them.

Table 54-3 Switch Notification Types

Notification Type Keyword Description

bgp Generates BGP state change traps.

bridge Generates STP bridge MIB traps.

Configuring SNMP

Page 1258 of the Cisco Systems 4500 user manual — Notification Type Keyword Description
Page 1258 · click to enlarge
Page 1258

Chapter 54 Configuring SNMP Configuring SNMP

Table 54-3 Switch Notification Types (continued)

Notification Type Keyword Description

config Generates a trap for SNMP configuration changes.

config-copy Generates a trap for SNMP copy configuration changes.

cpu Allows cpu-related traps.

eigrp Enable BGP traps.

entity Generates a trap for SNMP entity changes.

envmon Generates environmental monitor traps. You can enable any or all of these environmental traps: fan, shutdown, supply, temperature.

flash Generates SNMP FLASH notifications.

fru-ctrl Enable SNMP entity FRU control traps.

hsrp Generates a trap for Hot Standby Router Protocol (HSRP) changes.

ipmulticast Generates a trap for IP multicast routing changes.

isis Enable IS-IS traps.

mac-notification Generates a trap for MAC address notifications.

msdp Generates a trap for Multicast Source Discovery Protocol (MSDP) changes.

ospf Generates a trap for Open Shortest Path First (OSPF) changes. You can enable any or all of these traps: Cisco specific, errors, link-state advertisement, rate limit, retransmit, and state changes.

pim Generates a trap for Protocol-Independent Multicast (PIM) changes. You can enable any or all of these traps: invalid PIM messages, neighbor changes, and rendezvous point (RP)-mapping changes.

port-security Generates SNMP port security traps. You can also set a maximum trap rate per second. The range is from 0 to 1000; the default is 0, which means that there is no rate limit.

rf Enable all SNMP traps defined in Cisco-RF-MIB.

snmp Generates a trap for SNMP-type notifications for authentication, cold start, warm start, link up or link down.

storm-control Generates a trap for SNMP storm-control. You can also set a maximum trap rate per second. The range is from 0 to 1000; the default is 0 (no limit is imposed; a trap is sent at every occurrence).

stpx Generates SNMP STP Extended MIB traps.

syslog Generates SNMP syslog traps.

Page 1259 of the Cisco Systems 4500 user manual — Notification Type Keyword Description
Page 1259 · click to enlarge
Page 1259

Chapter 54 Configuring SNMP

Table 54-3 Switch Notification Types (continued)

Notification Type Keyword Description

tty Generates a trap for TCP connections. This trap is enabled by default.

vlan-membership Generates a trap for SNMP VLAN membership changes.

vlancreate Generates SNMP VLAN created traps.

vlandelete Generates SNMP VLAN deleted traps.

vtp Generates a trap for VLAN Trunking Protocol (VTP) changes.

You can use the snmp-server host global configuration command to a specific host to receive the notification types listed in Table 54-3.

To configure the switch to send traps or informs to a host, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp-server engineID remote ip-address engineid-string

Specifies the engine ID for the remote host.

Step 3 Switch(config)# snmp-server user username groupname remote host [udp-port port] {v1 | v2c | v3 [auth {md5 | sha} auth-password]} [encrypted] [access access-list]

Configures an SNMP user to be associated with the remote host created in Step 2.

Step 4 Switch(config)# snmp-server host host-addr [traps | informs] [version {1 | 2c | 3 [auth | noauth | priv]}] community-string [udp-port port] [notification-type]

Specifies the recipient of an SNMP trap operation.

  • For host-addr, specify the name or Internet address of the host (the targeted recipient).
  • (Optional) Enter traps (the default) to send SNMP traps to the host.
  • (Optional) Enter informs to send SNMP informs to the host.
  • (Optional) Specify the SNMP version ( 1 , 2c , or 3 ). SNMPv1 does not support informs.
  • (Optional) For Version 3, select authentication level auth, noauth , or priv.
  • For community-string , enter the password-like community string sent with the notification operation.
  • (Optional) For udp-port port , enter the remote device UDP port.
  • (Optional) For notification-type , use the keywords listed in Table 54-3 on page 54-11 . If no type is specified, all notifications are sent.

Configuring SNMP

Page 1260 of the Cisco Systems 4500 user manual — Setting the Agent Contact and Location Information
Page 1260 · click to enlarge
Page 1260

Chapter 54 Configuring SNMP Configuring SNMP

Step 5 Switch(config)# snmp-server enable traps notification-types

Enables the switch to send traps or informs and specify the type of notifications to be sent. For a list of notification types, see Table 54-3 on page 54-11, or enter this: snmp-server enable traps ?

To enable multiple types of traps, you must enter a separate snmp-server enable traps command for each trap type.

Step 6 Switch(config)# snmp-server trap-source interface-id

(Optional) Specifies the source interface, which provides the IP address for the trap message. This command also sets the source IP address for informs.

Step 7 Switch(config)# snmp-server queue-length length

(Optional) Establishes the message queue length for each trap host. The range is 1 to 1000; the default is 10.

Step 8 Switch(config)# snmp-server trap-timeout seconds

(Optional) Defines how often to resend trap messages. The range is 1 to 1000; the default is 30 seconds.

Step 9 Switch(config)# end Returns to privileged EXEC mode.

Step 10 Switch# show running-config Verifies your entries.

Step 11 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

The snmp-server host command specifies which hosts receive the notifications. The snmp-server enable trap command globally enables the mechanism for the specified notification (for traps and informs). To enable a host to receive an inform, you must configure an snmp-server host informs command for the host and globally enable informs by using the snmp-server enable traps command.

To remove the specified host from receiving traps, use the no snmp-server host host global configuration command. The no snmp-server host command with no keywords disables traps, but not informs, to the host. To disable informs, use the no snmp-server host informs global configuration command. To disable a specific trap type, use the no snmp-server enable traps notification-types global configuration command.

Setting the Agent Contact and Location Information

To set the system contact and location of the SNMP agent so that these descriptions can be accessed using the configuration file, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp-server contact text

Sets the system contact string.

For example:

snmp-server contact Dial System Operator at beeper 21555.

Step 3 Switch(config)# snmp-server location text

Sets the system location string.

For example:

snmp-server location Building 3/Room 222

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Page 1261 of the Cisco Systems 4500 user manual — SNMP Examples
Page 1261 · click to enlarge
Page 1261

Chapter 54 Configuring SNMP

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

Limiting TFTP Servers Used Through SNMP

To limit the TFTP servers used for saving and loading configuration files through SNMP to the servers specified in an access list, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp-server tftp-server-list access-list-number

Limits TFTP servers used for configuration file copies through SNMP to the servers in the access list.

For access-list-number, enter an IP standard access list numbered from 1 to 99 and 1300 to 1999.

Step 3 Switch(config)# access-list access-list-number {deny | permit} source [source-wildcard]

Creates a standard access list, repeating the command as many times as necessary.

  • For access-list-number , enter the access list number specified in Step 2.
  • The deny keyword denies access if the conditions are matched. The permit keyword permits access if the conditions are matched.
  • For source , enter the IP address of the TFTP servers that can access the switch.
  • (Optional) For source-wildcard , enter the wildcard bits, in dotted decimal notation, to be applied to the source. Place ones in the bit positions that you want to ignore.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

SNMP Examples

This example shows how to enable all versions of SNMP. The configuration permits any SNMP manager to access all objects with read-only permissions using the community string public. This configuration does not cause the switch to send any traps.

Switch(config)# snmp-server community public

Configuring SNMP

Page 1262 of the Cisco Systems 4500 user manual — Displaying SNMP Status
Page 1262 · click to enlarge
Page 1262

Chapter 54 Configuring SNMP Displaying SNMP Status

This example shows how to permit any SNMP manager to access all objects with read-only permission using the community string public. The switch also sends VTP traps to the hosts 192.180.1.111 and 192.180.1.33 using SNMPv1 and to the host 192.180.1.27 using SNMPv2C. The community string public is sent with the traps.

Switch(config)# snmp-server community public Switch(config)# snmp-server enable traps vtp Switch(config)# snmp-server host 192.180.1.27 version 2c public Switch(config)# snmp-server host 192.180.1.111 version 1 public Switch(config)# snmp-server host 192.180.1.33 public

This example shows how to allow read-only access for all objects to members of access list 4 that use the comaccess community string. No other SNMP managers have access to any objects. SNMP Authentication Failure traps are sent by SNMPv2C to the host cisco.com using the community string public.

Switch(config)# snmp-server community comaccess ro 4 Switch(config)# snmp-server enable traps snmp authentication Switch(config)# snmp-server host cisco.com version 2c public

This example shows how to send Entity MIB traps to the host cisco.com. The community string is restricted. The first line enables the switch to send Entity MIB traps in addition to any traps previously enabled. The second line specifies the destination of these traps and overwrites any previous snmp-server host commands for the host cisco.com.

Switch(config)# snmp-server enable traps entity Switch(config)# snmp-server host cisco.com restricted entity

This example shows how to enable the switch to send all traps to the host myhost.cisco.com using the community string public:

Switch(config)# snmp-server enable traps Switch(config)# snmp-server host myhost.cisco.com public

This example shows how to associate a user with a remote host and to send auth (authNoPriv) authentication-level informs when you enter global configuration mode:

Switch(config)# snmp-server engineID remote 192.180.1.27 00000063000100a1c0b4011b Switch(config)# snmp-server group authgroup v3 auth Switch(config)# snmp-server user authuser authgroup remote 192.180.1.27 v3 auth md5 mypassword Switch(config)# snmp-server user authuser authgroup v3 auth md5 mypassword Switch(config)# snmp-server host 192.180.1.27 informs version 3 auth authuser config Switch(config)# snmp-server enable traps Switch(config)# snmp-server inform retries 0

Displaying SNMP Status

To display SNMP input and output statistics, including the number of illegal community string entries, errors, and requested variables, use the show snmp privileged EXEC command.You can also use the other privileged EXEC commands in Table 54-4 to display SNMP information. For information about the fields in the output displays, see the Cisco IOS Configuration Fundamentals Command Reference, Release 12.4.

Page 1263 of the Cisco Systems 4500 user manual — Feature Default Setting
Page 1263 · click to enlarge
Page 1263

Chapter 54 Configuring SNMP

Table 54-4 Commands for Displaying SNMP Information

Feature Default Setting

show snmp Displays SNMP statistics.

show snmp engineID Displays information on the local SNMP engine and all remote engines that have been configured on the device.

show snmp group Displays information on each SNMP group on the network.

show snmp pending Displays information on pending SNMP requests.

show snmp sessions Displays information on the current SNMP sessions.

show snmp user Displays information on each SNMP user name in the SNMP users table.

Displaying SNMP Status

Page 1264 of the Cisco Systems 4500 user manual — Configuring SNMP
Page 1264 · click to enlarge
Page 1264

Chapter 54 Configuring SNMP Displaying SNMP Status

Page 1265 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1265 · click to enlarge
Page 1265

C H A P T E R

Configuring NetFlow-lite

This chapter describes how to configure NetFlow-lite on the Catalyst 4948E switch. NetFlow-lite provides traffic monitoring capabilities similar to those provided through NetFlow.

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

The following topics are included:

  • About NetFlow Packet Sampling, page 55-2
  • Feature Interaction, page 55-2
  • Configuring NetFlow Packet Sampling, page 55-2
  • Display Commands, page 55-8
  • Clear Commands, page 55-9
Page 1266 of the Cisco Systems 4500 user manual — Configuring NetFlow Packet Sampling
Page 1266 · click to enlarge
Page 1266

Chapter 55 Configuring NetFlow-lite About NetFlow Packet Sampling

About NetFlow Packet Sampling

The Netflow-lite feature is based on ingress packet sampling at a monitoring point that can be an interface on the switch. By exporting NetFlow sampled packets, it provides visibility into traffic that is switched through the device. The rate at which input packets are sampled is configurable and a wide range of sampling rates are supported. The sampled packets can be exported with Netflow V9 or IPFIX format.

Feature Interaction

Feature interactions exists on three levels:

System-wide Restrictions

  • WCCP output redirect is not supported when NetFlow-lite is configured on any interface.
  • Configuring NetFlow-lite monitor on any interface causes Layer 3 Deny ACLs to not generate ICMP unreachable packets.
  • Enabling Netflow-lite monitoring reduces the available TCAM usage and packet forwarding bandwidth.

Interface-level Restrictions

  • NetFlow-lite monitoring and ingress QoS policy cannot coexist on the same interface. QoS policy takes precedence over NetFlow-lite monitoring.
  • NetFlow-lite monitoring and the WCCP Exclude feature cannot coexist on the same interface.
  • NetFlow-lite and SPAN cannot coexist on the same interface. NetFlow-lite takes precedence over SPAN.

Monitor-level Restrictions

  • Port channel with an aggregate bandwidth exceeding 20 Gigabit support the highest sampling rate of 1 in 64; those with an aggregate bandwidth exceeding 40 Gigabit support 1 in 128.
  • When running PIM bidirectional mode, NetFlow-lite monitoring for multicast packets does not work when the RP or DF and any of the receivers are on the same VLAN.

Configuring NetFlow Packet Sampling

To configure the NetFlow-lite feature, complete the tasks in these sections:

  • Configuring Information about the External Collector, page 55-3
  • Configuring Sampling Parameters, page 55-4
  • Activating Sampling on an Interface or VLAN, page 55-5
Page 1267 of the Cisco Systems 4500 user manual — Example
Page 1267 · click to enlarge
Page 1267

Chapter 55 Configuring NetFlow-lite

Configuring NetFlow Packet Sampling

Configuring Information about the External Collector

To configure the external collector, perform this task:

Step 1 Switch# config terminal Enters configuration mode

Step 2 Switch(config)# netflow-lite exporter exporter Defines an exporter and to enter NetFlow-lite exporter submode

Step 3 Switch(config-netflow-lite-exporter)# destination source-address

Specifies a destination address

Step 4 Switch(config-netflow-lite-exporter)# source source-address

Specifies a source Layer 3 interface

Step 5 Switch(config-netflow-lite-exporter)# vrf source-address

Specifies a VRF label

Step 6 Switch(config-netflow-lite-exporter)# transport udp destination-port

Specifies a UDP transport destination port

Step 7 Switch(config-netflow-lite-exporter)# ttl ttl-value Specifies a ttl value

Step 8 Switch(config-netflow-lite-exporter)# cos cos-value Specifies a cos value

Step 9 Switch(config-netflow-lite-exporter)# dscp dscp-value Specifies a dscp value

Step 10 Switch(config-netflow-lite-exporter)# template data timeout timeout

Specifies a template data timeout

Step 11 Switch(config-netflow-lite-exporter)# options {sampler-table | interface-table} timeout timeout

Specifies an options timeout

Step 12 Switch(config-netflow-lite-exporter)# export-protocol {netflow-v9 | ipfix}

Specifies the export protocol

Step 13 Switch(config-netflow-lite-exporter)# exit Returns to global configuration mode

Step 14 Switch(config)# exit Returns to EXEC mode

Step 15 Switch# show netflow-lite exporter exporter Displays the exporter configuration

Example

This example shows how configure the external collector and to verify the exporter configuration:

Switch# config terminal Switch(config)# netflow-lite exporter exporter1 Switch(config-netflow-lite-exporter)# destination 5.5.5.6 Switch(config-netflow-lite-exporter)# source 5.5.5.5 Switch(config-netflow-lite-exporter)# transport udp 8188 Switch(config-netflow-lite-exporter)# ttl 128 Switch(config-netflow-lite-exporter)# cos 7 Switch(config-netflow-lite-exporter)# dscp 32 Switch(config-netflow-lite-exporter)# template data timeout 1 Switch(config-netflow-lite-exporter)# options sampler-table timeout 1 Switch(config-netflow-lite-exporter)# options interface-table timeout 1 Switch(config-netflow-lite-exporter)# export-protocol netflow-v9 Switch(config-netflow-lite-exporter)# exit Switch(config)# exit Switch# show netflow-lite exporter exporter1 Netflow-lite Exporter exporter1: Network Protocol Configuration: Destination IP address: 5.5.5.6 Source IP Address: 5.5.5.5

Page 1268 of the Cisco Systems 4500 user manual — Configuring Sampling Parameters
Page 1268 · click to enlarge
Page 1268

Chapter 55 Configuring NetFlow-lite Configuring NetFlow Packet Sampling

VRF label: none DSCP: 0x20 TTL: 128 COS: 7 Transport Protocol Configuration: Transport Protocol: UDP Source Port: 50441 Destination Port: 8188 Destination Ports to Load-share: 1 Export Protocol Configuration: Export Protocol: netflow-v9 Template data timeout: 1800 Options sampler-table timeout: 1800 Options interface-table timeout: 1800 Exporter Statistics: Packets Exported: 56

Usage Guidelines

The collector's IP address and UDP port can be specified. Optionally a vrf label can be provided in which the collector is reachable. The exporter agent's address is specified as the source interface. We support either IPFIX or Netflow V9 export.

The exporter's name can be specified when activating sampling at a monitor. This can be done in interface or VLAN mode. If no exporter is specified for a sampling instance, then no samples are exported.

The exporter submode also allows you to specify the refresh frequency for the NetFlow templates. Metadata about the NetFlow packet sampling process like sampler configuration parameters and SNMP interface table mapping can also be exported periodically to the collector.

Mandatory parameters for a minimal exporter configuration are the destination address of the collector, the source Layer 3 interface, and the UDP destination port of the collector.

The VRF label is ignored if the collector's address is IPv6. The default global routing table is used to route the IPv6 export packets to the collector.

The CoS CLI option is used to set the CoS value of VLAN tags for packet samples exported by fpga alone.

Configuring Sampling Parameters

This task configures packet and counter sampling parameters as reusable named entities.

To configure the NetFlow cache and enable switched IP flow collection, perform this task:

Step 1 Switch# config terminal Enters configuration mode.

Step 2 Switch(config)# netflow-lite sampler sampler Configure packet sampling parameters as a reusable named entity and to enter NetFlow-lite sampler submode.

Step 3 Switch(config-netflow-lite-sampler)# packet-rate rate Specifies the specify a packet sampling rate in NetFlow-lite sampler submode.

Step 4 Switch(config-netflow-lite-sampler)# packet-section size size

Specifies a sampled header size in NetFlow-lite submode.

Page 1269 of the Cisco Systems 4500 user manual — Activating Sampling on an Interface or VLAN
Page 1269 · click to enlarge
Page 1269

Chapter 55 Configuring NetFlow-lite

Configuring NetFlow Packet Sampling

Step 5 Switch(config-netflow-lite-sampler)# packet-offset offset

Specifies a starting packet offset in NetFlow-lite submode.

Step 6 Switch(config-netflow-lite-sampler)# exit Exits NetFlow-lite sampler submode.

Step 7 Switch(config)# exit Exits global configuration mode.

Step 8 Switch# show netflow-lite sampler sampler Displays information about a sampler.

Example

This example shows how to configure sampling parameters and to display the sampler configuration:

Switch# config terminal Switch(config)# netflow-lite sampler sampler1 Switch(config-netflow-lite-sampler)# packet-rate 32 Switch(config-netflow-lite-sampler)# packet-section size 128 Switch(config-netflow-lite-sampler)# packet-offset 16 Switch(config-netflow-lite-sampler)# exit Switch(config)# exit Switch#

Switch# show netflow-lite sampler sampler1 Netflow-lite Sampler sampler1: Id : 1 Packet Sampling rate: 1 out of 32 Packet Section Size: 64 bytes Packet offset: 16 bytes

You can verify your settings with the show netflow-lite sampler privileged EXEC command

Usage Guidelines

The packet sampling rate can range from 32 to 2^15 in powers of 2. To troubleshoot two 1 Gigabit ports, a rate of 1 is allowed. This is equivalent to rx span only. It cannot be configured on 10 Gigabit ports because the bandwidth demand for export will be too high.

Mandatory parameters are packet rate. A maximum of 2 x 1Gigabit ports can be configured with 1-in-1 sampling. The best packet sampling rate that can be configured on any 1 Gigabit or 10 Gigabit port is 1-in-32. Packet sampling rates can be configured in powers of 2 (like 1-in-64 and 1-in-128).

You can update a sampler at a target interface, but you cannot remove or unconfigure mandatory parameters.

All mandatory parameters must be present to validate a sampler. Any unspecified non-mandatory parameters take on default values.

Activating Sampling on an Interface or VLAN

This task defines a monitor instance on an interface or VLAN, identifying the sampler and exporter to use.

Page 1270 of the Cisco Systems 4500 user manual — Examples
Page 1270 · click to enlarge
Page 1270

Chapter 55 Configuring NetFlow-lite Configuring NetFlow Packet Sampling

To activate sampling on an interface, perform this task:

Step 1 Switch# config terminal Enters configuration mode.

Step 2 Switch(config)# interface interface-id Enters interface configuration mode.

Step 3 Switch(config-if)# netflow-lite monitor monitor Defines a monitor instance on an interface and enters NetFlow-lite monitor submode.

Step 4 Switch(config-netflow-lite-monitor)# sampler sampler Activates sampling on an interface in NetFlow-lite monitor submode.

Step 5 Switch(config-netflow-lite-monitor)# exporter exporter

Assigns an exporter in NetFlow-lite monitor submode

Step 6 Switch(config-netflow-lite-monitor)# average-packet-size size

Specifies the average packet size at the observation point in NetFlow-lite monitor submode.

Step 7 Switch(config-netflow-lite-monitor)# exit Exits NetFlow-lite monitor submode.

Step 8 Switch(config)# exit Exits global configuration mode.

Step 9 Switch# show netflow-lite monitor monitor interface interface-name

Displays information about a particular packet or per data source stats.

To activate sampling on an interface, perform this task:

Step 1 Switch# config terminal Enters configuration mode.

Step 2 Switch(config)# vlan config 2 Enters interface configuration mode.

Step 3 Switch(config-vlan-config)# netflow-lite monitor monitor

Defines a monitor instance on an interface and enters NetFlow-lite monitor submode.

Step 4 Switch(config-netflow-lite-monitor)# average-packet-size size

Specifies the average packet size at the observation point in NetFlow-lite monitor submode.

Step 5 Switch(config-netflow-lite-monitor)# exporter exporter

Assigns an exporter in NetFlow-lite monitor submode.

Step 6 Switch(config-netflow-lite-monitor)# sampler sampler Activates sampling on an interface in NetFlow-lite monitor submode.

Step 7 Switch(config-netflow-lite-monitor)# exit Exits NetFlow-lite monitor submode

Step 8 Switch(config)# exit Exits global configuration mode.

Step 9 Switch# show netflow-lite monitor monitor vlan vlan Displays information about a particular packet or per data source stats.

Examples

The following example shows how to configure a monitor on a port interface Gigabit 1/3:

Switch# config terminal Switch(config)# int GigabitEthernet1/3 Switch(config-if)# netflow-lite monitor 1 Switch(config-netflow-lite-monitor)# sampler sampler1 Switch(config-netflow-lite-monitor)# average-packet-size 128

Page 1271 of the Cisco Systems 4500 user manual — Usage Guidelines
Page 1271 · click to enlarge
Page 1271

Chapter 55 Configuring NetFlow-lite

Configuring NetFlow Packet Sampling

Switch(config-netflow-lite-monitor)# exporter exporter1 Switch(config-netflow-lite-monitor)# exit Switch(config-if)# exit Switch(config)# exit Switch(config)# Switch# show netflow-lite monitor 1 interface gi1/3 Interface GigabitEthernet1/3: Netflow-lite Monitor-1: Active: TRUE Sampler: sampler1 Exporter: exporter1 Average Packet Size: 0 Statistics: Packets exported: 0 Packets observed: 0 Packets dropped: 0 Average Packet Size observed: 64 Average Packet Size used: 64

Similarly, you can configure a monitor on a VLAN in VLAN config mode:

Switch# config terminal Switch(config)# vlan config 2 Switch(config-vlan-config)# netflow-lite monitor 1 Switch(config-netflow-lite-monitor)# average-packet-size 128 Switch(config-netflow-lite-monitor)# exporter exporter1 Switch(config-netflow-lite-monitor)# sampler sampler1 Switch(config-netflow-lite-monitor)# exit Switch(config-vlan-config)# exit Switch(config)# Switch# show netflow-lite monitor 1 vlan 2 VlanID-2: Netflow-lite Monitor-1: Active: TRUE Sampler: sampler1 Exporter: exporter1 Average Packet Size: 0 Statistics: Packets exported: 0 Packets observed: 0 Packets dropped: 0 Average Packet Size observed: 64 Average Packet Size used: 64

You can verify your settings with the show policy-map privileged EXEC command.

Usage Guidelines

Only a single packet sampling instance is supported on a monitor. These commands are entered under the physical port interface mode, port channel interface, or config vlan mode. Monitor is not supported on other interfaces. If the physical port is a member of a port channel, applying the monitor to the port has no effect. Instead, the monitor must be applied to the port channel.

When configuring a monitor, the mandatory parameters are sampler and exporter. If no exporter is associated with a monitor, no samples are exported. If no sampler is specified, no input packet sampling occurs for that target interface.

The packet sampling mechanism tries to achieve random 1-in-N sampling. The accuracy of the algorithm is dependent on the size of the packets arriving at a given interface. To tune the relative accuracy of the algorithm, use the average-packet-size parameter. The whole system supports a maximum of 200 monitors.

Page 1272 of the Cisco Systems 4500 user manual — Display Commands
Page 1272 · click to enlarge
Page 1272

Chapter 55 Configuring NetFlow-lite Display Commands

The system automatically determines the average packet size at an interface based on observation of input traffic and uses that value in rate DBL sampling.

Valid range of packet sizes that can be used by the algorithm is 64 - 9216 bytes. A value of 0 is taken to mean that automatic determination of average packet size is desired.

The sampler and exporter must be valid for packet sampling. If any mandatory parameters are missing, a warning message indicating that sampler or exporter is invalid is displayed.

Display Commands

To view the configured value of the minimum mask, use the following commands for each aggregation scheme, as needed:

Switch# show netflow-lite sampler sampler_name

Displays information about a sampler.

Switch# show netflow-lite monitor monitor interface interface_name Switch# show netflow-lite monitor monitor vlan vlan_id

The following commands display information about a particular packet and per monitor stats. The interface can be either a physical port or a VLAN.

They display the following packet sampling statistics:

  • Total # of packet (samples) exported
  • Total # of packet (samples) dropped due to lack of local resources
  • Total# of packets seen at the monitor

Switch# show netflow-lite exporter exporter_nsme

Displays information about the collector and global stats.

The following example shows how to displays information about a sampler:

Switch# show netflow-lite sampler low-rate Netflow-lite Sampler low-rate: Description: Sampler Sampling rate: 1 out of 256 Packet Section Size: 64 bytes Packet offset: 0 bytes

The following example shows how to display information about a particular packet and per monitor stats on a physical port:

Switch# show netflow-lite monitor 1 interface gi1/3 Interface GigabitEthernet1/3: Netflow-lite Monitor-1: Active: TRUE Sampler: sampler1 Exporter: exporter1 Average Packet Size: 0 Statistics: Packets exported: 0 Packets observed: 0 Packets dropped: 0

Page 1273 of the Cisco Systems 4500 user manual — Clear Commands
Page 1273 · click to enlarge
Page 1273

Chapter 55 Configuring NetFlow-lite

Average Packet Size observed64 Average Packet Size used: 64

The following example shows how to display information about a particular packet and per monitor stats on a VLAN:

Switch# show netflow-lite monitor 1 vlan 2 VlanID-2: Netflow-lite Monitor-1: Active: TRUE Sampler: sampler1 Exporter: exporter1 Average Packet Size: 0 Statistics: Packets exported: 0 Packets observed: 0 Packets dropped: 0 Average Packet Size observed: 64 Average Packet Size used: 64

The following example shows how to display the total number of export packets sent:

Switch# show netflow-lite e1 Netflow-lite Exporter e1: Description: Exporter Network Protocol Configuration: Destination IP address: 192.168.1.1 VRF label: cisc Source IP Address: 10.1.1.5 DSCP: 0x1 TTL: 30 COS: 1 Transport Protocol Configuration: Transport Protocol: UDP Destination Port: 1234 Source Port: 65535 Export Protocol Configuration: Export Protocol: netflow-v9 Exporter Statistics: Export packets sent: 36

Clear Commands

To clear statistics of a packet sampler at a monitor, use the following commands, as needed:

Switch# clear netflow-lite monitor monitor_id statistics interface interface name Switch# clear netflow-lite monitor monitor_id statistics vlan vlan_id

Clear the statistics of a packet sampler at a datasource

Switch# clear netflow-lite exporter exporter_ name statistics

Clear the collector statistics

Clear Commands

Page 1274 of the Cisco Systems 4500 user manual — Configuring NetFlow-lite
Page 1274 · click to enlarge
Page 1274

Chapter 55 Configuring NetFlow-lite Clear Commands

Page 1275 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1275 · click to enlarge
Page 1275

C H A P T E R

Configuring NetFlow

This chapter describes how to configure NetFlow Statistics on the Catalyst 4500 series switches. It also provides guidelines, procedures, and configuration examples.

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

The following topics are included:

  • About NetFlow Statistics Collection, page 56-2
  • Configuring NetFlow Statistics Collection, page 56-6
  • NetFlow Statistics Collection Configuration Example, page 56-13
  • NetFlow Configuration Examples, page 56-14
Page 1276 of the Cisco Systems 4500 user manual — Bytes Content Description
Page 1276 · click to enlarge
Page 1276

Chapter 56 Configuring NetFlow About NetFlow Statistics Collection

About NetFlow Statistics Collection

A network flow is defined as a unidirectional stream of packets between a given source and destination —both defined by a network-layer IP address and transport-layer port number. Specifically, a flow is identified as the combination of the following fields: source IP address, destination IP address, source port number, destination port number, protocol type, type of service, and input interface.

NetFlow Statistics is a global traffic monitoring feature that allows flow-level monitoring of all IPv4-routed traffic through the switch using NetFlow Data Export (NDE). Collected statistics can be exported to an external device (NetFlow Collector/Analyzer) for further processing. Network planners can selectively enable NetFlow Statistics (and NDE) on a per-device basis to gain traffic performance, control, or accounting benefits in specific network locations.

NetFlow exports flow information in UDP datagrams in one of two formats. The version 1 format was the initial released version, and version 5 is a later enhancement to add Border Gateway Protocol (BGP) autonomous system (AS) information and flow sequence numbers. In version 1 and version 5 format, the datagram consists of a header and one or more flow records. The first field of the header contains the version number of the export datagram.

This section contains the following subsections:

  • Information Derived from Hardware, page 56-3
  • Information Derived from Software, page 56-4
  • Assigning the Input and Output Interface and AS Numbers, page 56-4
  • Feature Interaction of NetFlow Statistics with UBRL and Microflow Policing, page 56-5
  • VLAN Statistics, page 56-5

NDE Versions

The Catalyst 4500 series switch supports NDE versions 1 and 5 for the captured statistics. NetFlow aggregation requires NDE version 8.

Depending on the current flow mask, some fields in the flow records might not have values. Unsupported fields contain a zero (0).

The following tables describe the supported fields for NDE version 5:

  • Table 56-1 —Version 5 header format
  • Table 56-2 —Version 5 flow record format

Table 56-1 NDE Version 5 Header Format

Bytes Content Description

0–1 version NetFlow export format version number

2–3 count Number of flows exported in this packet (1–30)

4–7 SysUptime Current time in milliseconds since the switch booted

8–11 unix_secs Current seconds since 0000 UTC 1970

12–15 unix_nsecs Residual nanoseconds since 0000 UTC 1970

16–19 flow_sequence Sequence counter of total flows seen

20–21 engine_type Type of flow switching engine

21–23 engine_id Slot number of the flow switching engine

Page 1277 of the Cisco Systems 4500 user manual — Information Derived from Hardware
Page 1277 · click to enlarge
Page 1277

Chapter 56 Configuring NetFlow

About NetFlow Statistics Collection

Table 56-2 NDE Version 5 Flow Record Format

  • Flow masks:
  • X=Populated
  • A=Additional field

Destination

Interface

Interface

Source

Source

Full

Bytes Content Description

0–3 srcaddr Source IP address X

4–7 dstaddr Destination IP address X

8–11 nexthop Next hop switch’s IP address A1

A

12–13 input Ingress interface SNMP ifIndex X X

14–15 output Egress interface SNMP ifIndex A1 A

16–19 dPkts Packets in the flow X

20–23 dOctets Octets (bytes) in the flow X

24–27 first SysUptime at start of the flow X

28–31 last SysUptime at the time the last packet of the flow was received

X

32–33 srcport Layer 4 source port number or equivalent X2

34–35 dstport Layer 4 destination port number or equivalent X X

36 pad1 Unused (zero) byte

37 tcp_flags Cumulative OR of TCP flags

38 prot Layer 4 protocol (for example, 6=TCP, 17=UDP)

39 tos IP type-of-service byte

40–41 src_as Autonomous system number of the source, either origin or peer

X

42–43 dst_as Autonomous system number of the destination, either origin or peer

X

44–45 src_mask Source address prefix mask bits X

46–47 dst_mask Destination address prefix mask bits X

48 pad2 Pad 2 is unused (zero) bytes

1. With the destination flow mask, the “Next hop switch’s IP address” field and the “Output interface’s SNMP ifIndex” field might not contain information that is accurate for all flows.
2. In PFC3BXL or PFC3B mode, ICMP traffic contains the ICMP code and type values.

Information Derived from Hardware

Information available in a typical NetFlow record from hardware includes the following:

  • Packet and byte counts
  • Start and end timestamps
Show 4 more labels / short text on this page
Destination · Destination · Source · Full
Page 1278 of the Cisco Systems 4500 user manual — Assigning the Input Interface and Input-Related Inferred Fields
Page 1278 · click to enlarge
Page 1278

Chapter 56 Configuring NetFlow About NetFlow Statistics Collection

  • Source and destination IP addresses
  • IP protocol
  • Source and destination port numbers

Information Derived from Software

Information available in a typical NetFlow record from software includes the following:

  • Input and output identifiers
  • Routing information, including next-hop address, origin and peer AS, source and destination prefix mask

Assigning the Input and Output Interface and AS Numbers

The following topics are discussed:

  • Assigning the Inferred Fields, page 56-4
  • Assigning the Output Interface and Output-Related Inferred Fields, page 56-4
  • Assigning the Input Interface and Input-Related Inferred Fields, page 56-4

Assigning the Inferred Fields

The Catalyst 4500 series switch collects netflow flows in hardware. The hardware collects a sub-set of all the NetFlow flow fields. The rest of the fields are then filled in by the software when the software examines the routing state.

The NetFlow Services Card does not provide enough information to accurately and consistently determine the input interface, output interface and other routing information associated with NetFlow flows. The Catalyst 4500 series switch has a software mechanism to compensate for this. The mechanism is described in the next paragraph.

Assigning the Output Interface and Output-Related Inferred Fields

Software determines the output interface information by looking up the Forwarding Information Base (FIB) entry in the default FIB table (based on the destination IP address). From this FIB entry, the software gains access to the destination AS number for this destination IP address, as well as the appropriate adjacency that stores the interface information. The output interface is based solely on the destination IP address. If load balancing is enabled on the switch, the load balancing hash, instead of looking at the adjacency in the FIB entry, is applied to access the appropriate FIB path and access the appropriate adjacency. Although this process typically yields correct results, an inaccuracy can occur when using a PBR that shares IP addresses with the default FIB table. Under these circumstances, there would then be multiple FIB table entries and associated adjacencies for the same destination IP address.

Assigning the Input Interface and Input-Related Inferred Fields

Similarly, the input interface and the source AS number for the source IP address are determined by looking up the FIB entry in the default FIB table based on the source IP address. The input interface is based solely on the source IP address and a reverse lookup is done to determine to which interface a

Page 1279 of the Cisco Systems 4500 user manual — VLAN Statistics
Page 1279 · click to enlarge
Page 1279

Chapter 56 Configuring NetFlow

About NetFlow Statistics Collection

packet with this IP destination address needs to be routed. This process assumes that the forwarding paths are symmetrical. However, if this process yields multiple input interfaces, a deterministic algorithm is applied to pick one of them the one with the lowest IP address. Although this process typically yields correct values, there are scenarios where the values are inaccurate:

  • If load balancing is being applied by an upstream adjacent switch, one input interface must be chosen arbitrarily out of the multiple input interfaces available. This action is necessary because the input interface that would be used depends on the type of load balancing algorithm being deployed by the adjacent upstream switch. It is not always feasible to know the algorithm. All flow statistics are attributed to one input interface. Software selects the interface with the lowest IP subnet number.
  • In an asymmetric routing scheme in which the traffic for an IP subnet might be received on one interface and sent on another, the inferences noted previously for selecting an input interface, based on a reverse lookup, would be incorrect and cannot be verified.
  • If PBR or VRF is enabled on the switch and the flow is destined to an address that resides in the PBR or VRF range or is sourced from an address that resides in the PBR or VRF range, the information is incorrect. The input and output interface most likely points to the default route (if configured) or have no value at all (NULL)
  • If VRF is enabled on the switch on some interfaces and the flow comes from a VRF interface, the information is incorrect. The input and output interface most likely points to the default route (if configured) or have no value (NULL).

Feature Interaction of NetFlow Statistics with UBRL and Microflow Policing

On systems with Supervisor Engine V-10GE, there is a feature interaction between NetFlow Statistics and UBRL (User Based Rate Limiting). As part of correctly configuring UBRL on a given interface, the class map must specify a flow mask. In turn, this flow mask is used to create hardware-based NetFlow statistics for the flow. By default, for traditional full-flow NetFlow statistics, the full-flow mask is used. With UBRL, however, the masks can differ. If UBRL is configured on a given interface, the statistics are collected based on the mask configured for UBRL. Consequently, the system does not collect full-flow statistics for traffic transiting an interface configured with UBRL. For more details, refer to the “Configuring User-Based Rate-Limiting” section on page 37-37.

VLAN Statistics

With NetFlow support, you can report Layer 2 output VLAN statistics, as well as VLAN statistics for routed traffic in and out of a VLAN.

The following example shows the CLI output for a specific VLAN:

Switch# show vlan counters or show vlan id 22 count * Multicast counters include broadcast packets Vlan Id :22 L2 Unicast Packets :38 L2 Unicast Octets :2432 L3 Input Unicast Packets :14344621 L3 Input Unicast Octets :659852566 L3 Output Unicast Packets :8983050 L3 Output Unicast Octets :413220300

Page 1280 of the Cisco Systems 4500 user manual — Checking for Required Hardware
Page 1280 · click to enlarge
Page 1280

Chapter 56 Configuring NetFlow Configuring NetFlow Statistics Collection

L3 Output Multicast Packets :0 L3 Output Multicast Octets :0 L3 Input Multicast Packets :0 L3 Input Multicast Octets :0 L2 Multicast Packets :340 L2 Multicast Octets :21760

Configuring NetFlow Statistics Collection

To configure NetFlow switching, complete the tasks in these sections:

  • Checking for Required Hardware, page 56-6
  • Enabling NetFlow Statistics Collection, page 56-7
  • Configuring Switched/Bridged IP Flows, page 56-8
  • Exporting NetFlow Statistics, page 56-9
  • Managing NetFlow Statistics Collection, page 56-9
  • Configuring an Aggregation Cache, page 56-10
  • Configuring a NetFlow Minimum Prefix Mask for Router-Based Aggregation, page 56-11
  • Configuring NetFlow Aging Parameters, page 56-12

Checking for Required Hardware

To ensure that the necessary hardware is enabled, enter the show module command, as follows:

Switch# show module all Chassis Type : WS-C4507R

Power consumed by backplane40 Watts

Mod Ports Card Type Model Serial No. ---+ 1 2 1000BaseX (GBIC) Supervisor(active) WS-X4515 JAB062604KB 2 2 1000BaseX (GBIC) Supervisor(standby) WS-X4515 JAB062408CB 6 48 10/100BaseTX (RJ45) WS-X4148 JAB032305UH

M MAC addresses Hw Fw Sw Status --+ +---+ + + 1 0001.6442.2c00 to 0001.6442.2c01 0.4 12.1(14r)EW( 12.1(20030513:00 Ok 2 0001.6442.2c02 to 0001.6442.2c03 0.4 12.1(14r)EW( 12.1(20030513:00 Ok 6 0050.3ed8.6780 to 0050.3ed8.67af 1.6 12.1(14r)EW( 12.1(20030513:00 Ok

Page 1281 of the Cisco Systems 4500 user manual — Enabling NetFlow Statistics Collection
Page 1281 · click to enlarge
Page 1281

Chapter 56 Configuring NetFlow

Configuring NetFlow Statistics Collection

Mod Submodule Model Serial No. Hw Status + 1 Netflow Services Card WS-F4531 JAB062209CG 0.2 Ok 2 Netflow Services Card WS-F4531 JAB062209AG 0.2 Ok

The effective size of the hardware flow cache table is 65,000 flows. (The hardware flow cache for the Supervisor Engine V-10GE is 85,000 flows.) If more than 85,000 flows are active simultaneously, statistics may be lost for some of the flows.

The effective size of the software flow table is 256, 000 flows. The NetFlow software manages the consistency between the hardware and software tables, keeping the hardware table open by purging inactive hardware flows to the software table.

User-configured timeout settings dictate when the flows are purged and exported through NDE from the software cache. Hardware flow management ensures consistency between hardware flow purging and the user-configured timeout settings.

Software-forwarded flows are also monitored. Moreover, statistics overflow if any flow receives traffic at a sustained rate exceeding 2 gigabits per second. Generally, this situation should not occur because a port cannot transmit at a rate higher than 1 gigabit per second.

Enabling NetFlow Statistics Collection

To enable NetFlow switching, first configure the switch for IP routing as described in the IP configuration chapters in the Cisco IOS IP and IP Routing Configuration Guide. After you configure IP routing, perform one of these tasks:

Switch(config)# ip flow ingress Enables NetFlow for IP routing.

Switch(config)# ip flow ingress infer-fields

Enables NetFlow with inferred input/output interfaces and source/destination BGP as information.

The inter-fields option must be configured for AS information to be determined.

Switch#

Page 1282 of the Cisco Systems 4500 user manual — Configuring Switched/Bridged IP Flows
Page 1282 · click to enlarge
Page 1282

Chapter 56 Configuring NetFlow Configuring NetFlow Statistics Collection

Configuring Switched/Bridged IP Flows

NetFlow is defined as a collection of routed IP flows created and tracked for all routed IP traffic. In switching environments, considerable IP traffic is switched within a VLAN and is not routed. This traffic is termed switched/bridged IP traffic; the associated flow is termed switched/bridged IP flows. NetFlow hardware is capable of creating and tracking this type of flow. The NetFlow Switched IP Flows feature allows you to create, track, and export switched IP flows (that is, it creates and tracks flows for IP traffic that is being switched and not routed).

Be aware of the following:

  • Switched IP flow collection cannot be enabled in isolation on Catalyst 4500 series switches. You need to enable both routed flow and switched flow collection to start collecting switched IP flows.
  • Generally, the input and output interface information are NULL. If the traffic is being switched on a VLAN that is associated with an SVI, the input and output interface information points to the same Layer 3 interface.
  • Switched flows are exported according to regular export configurations; a separate export CLI does not exist.
  • In the main cache, because of a hardware limitation, IP flows and routed IP flows are indistinguishable.

To configure the NetFlow cache and enable switched IP flow collection, perform this task:

Step 1 Switch# conf terminal Enters configuration mode.

Step 2 Switch(config)# ip flow ingress Enables routed flow collection.

Step 3 Switch(config)# ip flow ingress layer2-switched

Enables switched flow collection.

This example shows how to display the contents of an IP flow cache that contains switch IP flows:

Switch# show ip cache flow IP Flow Switching Cache, 17826816 bytes 2 active, 262142 inactive, 2 added 6 ager polls, 0 flow alloc failures Active flows timeout in 30 minutes Inactive flows timeout in 15 seconds IP Sub Flow Cache, 1081480 bytes 2 active, 65534 inactive, 2 added, 2 added to flow 0 alloc failures, 0 force free 1 chunk, 1 chunk added last clearing of statistics never

Page 1283 of the Cisco Systems 4500 user manual — Managing NetFlow Statistics Collection
Page 1283 · click to enlarge
Page 1283

Chapter 56 Configuring NetFlow

Configuring NetFlow Statistics Collection

Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec) Flows /Sec /Flow /Pkt /Sec /Flow /Flow

SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Pkts Fa1 150.1.1.1 Fa1 13.1.1.1 11 003F 003F 425K Fa1 13.1.1.1 Fa1 150.1.1.1 11 003F 003F 425K Switch#

Exporting NetFlow Statistics

To configure the switch to export NetFlow Statistics to a workstation when a flow expires, perform one of these tasks:

Switch(config)# ip flow-export destination {hostname | ip-address} udp-port

(Required) Configures the switch to export NetFlow cache entries to a specific destination (for example, a workstation).

Switch(config)# ip flow-export version {1 | {5 [origin-as | peer-as]}}

(Optional) Configures the switch to export NetFlow cache entries to a workstation if you are using receiving software that requires version 1 or 5. Version 1 is the default.

origin-as causes NetFlow to determine the origin BGP autonomous system of both the source and the destination hosts of the flow.

peer-as causes NetFlow to determine the peer BGP autonomous system of both the input and output interfaces of the flow.

Switch(config)# ip flow-export source interface (Optional) Specifies an interface whose IP address is used as the source IP address in the IP header of the NetFlow Data Export (NDE) packet. Default is the NDE output interface.

Managing NetFlow Statistics Collection

You can display and clear NetFlow Statistics, including IP flow switching cache information and flow information, such as the protocol, total flow, flows per second, and so forth. You can also use the resulting information to obtain information about your switch traffic.

To manage NetFlow switching statistics, perform one or both of following tasks:

Switch# show ip cache flow Displays the NetFlow switching statistics.

Switch# clear ip flow stats Clears the NetFlow switching statistics.

Page 1284 of the Cisco Systems 4500 user manual — Verifying Aggregation Cache Configuration and Data Export
Page 1284 · click to enlarge
Page 1284

Chapter 56 Configuring NetFlow Configuring NetFlow Statistics Collection

Configuring an Aggregation Cache

Aggregation of NetFlow Statistics is typically performed by NetFlow collection tools on management workstations. By extending this support to the Catalyst 4500 series switch, you can do the following:

  • Reduce the required bandwidth between the switch and workstations, because fewer NDE packets are exported.
  • Reduce the number of collection workstations required.
  • Provide visibility to aggregated flow statistics at the CLI.

To configure an aggregation cache, you must enter the aggregation cache configuration mode, and you must decide which type of aggregation scheme you would like to configure: autonomous system, destination prefix, protocol prefix, or source prefix aggregation cache. Once you define the aggregation scheme, define the operational parameters for that scheme. More than one aggregation cache can be configured concurrently.

To configure an aggregation cache, perform this task:

Step 1 Switch(config)# ip flow-aggregation cache as Enters aggregation cache configuration mode and enables an aggregation cache scheme (autonomous system, destination-prefix, prefix, protocol-port, or source-prefix).

Step 2 Switch(config-flow-cache)# cache timeout inactive 199

Specifies the number of seconds (in this example, 199) in which an inactive entry is allowed to remain in the aggregation cache before it is deleted.

Step 3 Switch(config-flow-cache)# cache timeout active 45

Specifies the number of minutes (in this example, 45) in which an active entry is active.

Step 4 Switch(config-flow-cache)# export destination 10.42.41.1 9991

Enables the data export.

Step 5 Switch(config-flow-cache)# enabled Enables aggregation cache creation.

Verifying Aggregation Cache Configuration and Data Export

To verify the aggregation cache information, perform this task:

Switch# show ip cache flow aggregation destination-prefix

Displays the specified aggregation cache information.

To confirm data export, perform the following task:

Switch# show ip flow export Displays the statistics for the data export including the main cache and all other enabled caches.

Page 1285 of the Cisco Systems 4500 user manual — Configuring the Minimum Mask of a Destination-Prefix Aggregation Scheme
Page 1285 · click to enlarge
Page 1285

Chapter 56 Configuring NetFlow

Configuring NetFlow Statistics Collection

Configuring a NetFlow Minimum Prefix Mask for Router-Based Aggregation

The minimum prefix mask specifies the shortest subnet mask that is used for aggregating flows within one of the IP-address based aggregation caches (source-prefix, destination-prefix, prefix). In these caches, flows are aggregated based upon the IP address (source, destination, or both, respectively) and masked by the longer of the Minimum Prefix mask and the subnet mask of the route to the source/destination host of the flow (as found in the switch routing table).

To configure a minimum prefix mask for the Router-Based Aggregation feature, perform the tasks described in the following sections. Each task is optional.

  • Configuring the Minimum Mask of a Prefix Aggregation Scheme, page 56-11
  • Configuring the Minimum Mask of a Destination-Prefix Aggregation Scheme, page 56-11
  • Configuring the Minimum Mask of a Source-Prefix Aggregation Scheme, page 56-12
  • Monitoring and Maintaining Minimum Masks for Aggregation Schemes, page 56-12

Configuring the Minimum Mask of a Prefix Aggregation Scheme

To configure the minimum mask of a prefix aggregation scheme, perform this task:

Step 1 Switch(config)# ip flow-aggregation cache prefix Configures the prefix aggregation cache.

Step 2 Switch(config-flow-cache)# mask source minimum value Specifies the minimum value for the source mask.

Step 3 Switch(config-flow-cache)# mask destination minimum value Specifies minimum value for the destination mask.

Configuring the Minimum Mask of a Destination-Prefix Aggregation Scheme

To configure the minimum mask of a destination-prefix aggregation scheme, perform this task:

Step 1 Switch(config)# ip flow-aggregation cache destination-prefix Configures the destination aggregation

cache.

Step 2 Switch(config-flow-cache)# mask destination minimum value Specifies the minimum value for the destination mask.

Page 1286 of the Cisco Systems 4500 user manual — Configuring NetFlow Aging Parameters
Page 1286 · click to enlarge
Page 1286

Chapter 56 Configuring NetFlow Configuring NetFlow Statistics Collection

Configuring the Minimum Mask of a Source-Prefix Aggregation Scheme

To configure the minimum mask of a source-prefix aggregation scheme, perform this task:

Step 1 Switch(config)# ip flow-aggregation cache source-prefix Configures the source-prefix aggregation cache.

Step 2 Switch(config-flow-cache)# mask source minimum value Specifies the minimum value for the source mask.

Monitoring and Maintaining Minimum Masks for Aggregation Schemes

To view the configured value of the minimum mask, use the following commands for each aggregation scheme, as needed:

Switch# show ip cache flow aggregation prefix Displays the configured value of the minimum mask in the prefix aggregation scheme.

Switch# show ip cache flow aggregation destination-prefix

Displays the configured value of the minimum mask in the destination-prefix aggregation scheme.

Switch# show ip cache flow aggregation source-prefix

Displays the configured value of the minimum mask in the source-prefix aggregation scheme.

Configuring NetFlow Aging Parameters

You can control when flows are purged from the software flow cache (and, if configured, reported through NDE) with the configuration aging parameters, Active and Inactive, of the ip flow-cache timeout command.

Active Aging specifies the period of time in which a flow should be removed from the software flow cache after the flow is created. Generally, this parameter is used to periodically notify external collection devices about active flows. This parameter operates independently of existing traffic on the flow. Active timeout settings are usually measured in minutes (default is 30 minutes).

Inactive Aging specifies how long to wait before removing a flow after the last packet is seen. The inactive parameter clears the flow cache of stale flows, which prevents new flows from starving (due to lack of resources). Inactive timeout settings are generally on the order of seconds (default is 15 seconds).

Page 1287 of the Cisco Systems 4500 user manual — NetFlow Statistics Collection Configuration Example
Page 1287 · click to enlarge
Page 1287

Chapter 56 Configuring NetFlow

NetFlow Statistics Collection Configuration Example

NetFlow Statistics Collection Configuration Example

The following example shows how to modify the configuration to enable NetFlow switching. It also shows how to export the flow statistics for further processing to UDP port 9991 on a workstation with the IP address of 40.0.0.2. In this example, existing NetFlow Statistics are cleared, which ensures that the show ip cache flow command displays an accurate summary of the NetFlow switching statistics:

Switch# config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# ip route-cache flow Switch(config)# ip flow-export destination 40.0.0.2 9991 Switch(config)# ip flow-export version 5 Switch(config)# end Switch# show ip flow export Flow export is enabled Exporting flows to 40.0.0.2 (9991) Exporting using source IP address 40.0.0.1 Version 5 flow records 2 flows exported in 1 udp datagrams 0 flows failed due to lack of export packet 0 export packets were sent up to process level 0 export packets were dropped due to no fib 0 export packets were dropped due to adjacency issues 0 export packets were dropped due to fragmentation failures 0 export packets were dropped due to encapsulation fixup failures Switch#

Switch# show ip cache flow

IP Flow Switching Cache, 17826816 bytes 69 active, 262075 inactive, 15087 added 4293455 ager polls, 0 flow alloc failures Active flows timeout in 30 minutes Inactive flows timeout in 15 seconds IP Sub Flow Cache, 1081480 bytes 0 active, 65536 inactive, 0 added, 0 added to flow 0 alloc failures, 0 force free 1 chunk, 1 chunk added last clearing of statistics never Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec) Flows /Sec /Flow /Pkt /Sec /Flow /Flow TCP-Telnet 28 0.0 167 40 0.0 20.9 11.9 TCP-other 185 0.0 2 48 0.0 6.2 15.4 UDP-DNS 4 0.0 1 61 0.0 0.0 15.5 UDP-other 13466 0.0 3396586 46 91831.3 139.3 15.9 ICMP 97 0.0 2 95 0.0 2.3 15.4 IGMP 1 0.0 2 40 0.0 0.9 15.1 IP-other 1120 0.0 38890838 46 87453.0 1354.5 24.0 Total: 14901 0.0 5992629 46 179284.3 227.8 16.5

SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Pkts SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Pkts Gi6/2 30.20.1.18 Gi6/1 30.10.1.18 11 4001 4001 537K Gi6/2 30.20.1.19 Gi6/1 30.10.1.19 11 4001 4001 537K Gi6/2 30.20.1.16 Gi6/1 30.10.1.16 11 4001 4001 537K Gi6/2 30.20.1.17 Gi6/1 30.10.1.17 11 4001 4001 537K Gi6/2 30.20.1.20 Gi6/1 30.10.1.20 11 4001 4001 537K Gi6/2 30.20.1.10 Gi6/1 30.10.1.10 11 4001 4001 539K

Page 1288 of the Cisco Systems 4500 user manual — NetFlow Aggregation Configuration Examples
Page 1288 · click to enlarge
Page 1288

Chapter 56 Configuring NetFlow NetFlow Configuration Examples

Gi6/2 30.20.1.11 Gi6/1 30.10.1.11 11 4001 4001 539K Gi6/2 30.20.1.14 Gi6/1 30.10.1.14 11 4001 4001 539K Gi6/2 30.20.1.15 Gi6/1 30.10.1.15 11 4001 4001 539K Gi6/2 30.20.1.12 Gi6/1 30.10.1.12 11 4001 4001 539K Gi6/2 30.20.1.13 Gi6/1 30.10.1.13 11 4001 4001 539K Gi5/48 171.69.23.149 Local 172.20.64.200 06 8214 0017 759 Gi6/1 30.10.1.12 Gi6/2 30.20.1.12 11 4001 4001 539K Gi6/1 30.10.1.13 Gi6/2 30.20.1.13 11 4001 4001 539K Gi6/1 30.10.1.14 Gi6/2 30.20.1.14 11 4001 4001 539K Gi6/1 30.10.1.15 Gi6/2 30.20.1.15 11 4001 4001 539K Gi6/1 30.10.1.10 Gi6/2 30.20.1.10 11 4001 4001 539K Gi6/1 30.10.1.11 Gi6/2 30.20.1.11 11 4001 4001 539K Gi6/1 30.10.1.20 Gi6/2 30.20.1.20 11 4001 4001 537K Gi6/1 30.10.1.16 Gi6/2 30.20.1.16 11 4001 4001 537K Gi6/1 30.10.1.17 Gi6/2 30.20.1.17 11 4001 4001 537K Gi6/1 30.10.1.18 Gi6/2 30.20.1.18 11 4001 4001 537K Gi6/1 30.10.1.19 Gi6/2 30.20.1.19 11 4001 4001 537K Switch#

NetFlow Configuration Examples

This section provides the following basic configuration examples:

  • NetFlow Enabling Scheme Examples, page 56-14
  • NetFlow Aggregation Configuration Examples, page 56-14
  • NetFlow Minimum Prefix Mask Router-Based Aggregation Scheme Examples, page 56-16

NetFlow Enabling Scheme Examples

This example shows how to enable NetFlow globally:

Switch# configure terminal Switch(config)# ip flow ingress

This example shows how to enable NetFlow with support for inferred fields:

Switch# configure terminal Switch(config)# ip flow ingress infer-fields

NetFlow Aggregation Configuration Examples

This section provides the following aggregation cache configuration examples:

  • Autonomous System Configuration, page 56-15
  • Destination Prefix Configuration, page 56-15
  • Prefix Configuration, page 56-15
  • Protocol Port Configuration, page 56-15
  • Source Prefix Configuration, page 56-16
Page 1289 of the Cisco Systems 4500 user manual — Protocol Port Configuration
Page 1289 · click to enlarge
Page 1289

Chapter 56 Configuring NetFlow

Autonomous System Configuration

This example shows how to configure an autonomous system aggregation cache with an inactive timeout of 200 seconds, a cache active timeout of 45 minutes, an export destination IP address of 10.42.42.1, and a destination port of 9992:

Switch(config)# ip flow-aggregation cache as Switch(config-flow-cache)# cache timeout inactive 200 Switch(config-flow-cache)# cache timeout active 45 Switch(config-flow-cache)# export destination 10.42.42.1 9992 Switch(config-flow-cache)# enabled

Destination Prefix Configuration

This example shows how to configure a destination prefix aggregation cache with an inactive timeout of 200 seconds, a cache active timeout of 45 minutes, an export destination IP address of 10.42.42.1, and a destination port of 9992:

Switch(config)# ip flow-aggregation cache destination-prefix Switch(config-flow-cache)# cache timeout inactive 200 Switch(config-flow-cache)# cache timeout active 45 Switch(config-flow-cache)# export destination 10.42.42.1 9992 Switch(config-flow-cache)# enabled

Prefix Configuration

This example shows how to configure a prefix aggregation cache with an inactive timeout of 200 seconds, a cache active timeout of 45 minutes, an export destination IP address of 10.42.42.1, and a destination port of 9992:

Switch(config)# ip flow-aggregation cache prefix Switch(config-flow-cache)# cache timeout inactive 200 Switch(config-flow-cache)# cache timeout active 45 Switch(config-flow-cache)# export destination 10.42.42.1 9992 Switch(config-flow-cache)# enabled

Protocol Port Configuration

This example shows how to configure a protocol port aggregation cache with an inactive timeout of 200 seconds, a cache active timeout of 45 minutes, an export destination IP address of 10.42.42.1, and a destination port of 9992:

Switch(config)# ip flow-aggregation cache protocol-port Switch(config-flow-cache)# cache timeout inactive 200 Switch(config-flow-cache)# cache timeout active 45 Switch(config-flow-cache)# export destination 10.42.42.1 9992 Switch(config-flow-cache)# enabled

NetFlow Configuration Examples

Page 1290 of the Cisco Systems 4500 user manual — Source-Prefix Aggregation Scheme
Page 1290 · click to enlarge
Page 1290

Chapter 56 Configuring NetFlow NetFlow Configuration Examples

Source Prefix Configuration

This example shows how to configure a source prefix aggregation cache with an inactive timeout of 200 seconds, a cache active timeout of 45 minutes, an export destination IP address of 10.42.42.1, and a destination port of 9992:

Switch(config)# ip flow-aggregation cache source-prefix Switch(config-flow-cache)# cache timeout inactive 200 Switch(config-flow-cache)# cache timeout active 45 Switch(config-flow-cache)# export destination 10.42.42.1 9992 Switch(config-flow-cache)# enabled

NetFlow Minimum Prefix Mask Router-Based Aggregation Scheme Examples

This section provides examples for the NetFlow minimum prefix mask aggregation cache configuration:

  • Prefix Aggregation Scheme, page 56-16
  • Destination-Prefix Aggregation Scheme, page 56-16
  • Source-Prefix Aggregation Scheme, page 56-16

Prefix Aggregation Scheme

it is an example of a prefix aggregation cache configuration:

! ip flow-aggregation cache prefix mask source minimum 24 mask destination minimum 28

In this example, assume the following configuration:

ip route 118.42.20.160 255.255.255.224 110.42.13.2 ip route 122.16.93.160 255.255.255.224 111.22.21.2

Both routes have a 27-bit subnet mask in the routing table on the switch.

Flows travelling from the 118.42.20.160 subnet to the 122.16.93.160 subnet whose source IP addresses match with a mask of 27 bits and whose destination IP addresses match with a mask of 28 bits are aggregated together in the cache statistics.

Destination-Prefix Aggregation Scheme

it is an example of a destination-prefix aggregation cache configuration:

! ip flow-aggregation cache destination-prefix mask destination minimum 32 !

Source-Prefix Aggregation Scheme

it is an example of a source-prefix aggregation cache configuration:

ip flow-aggregation cache source-prefix mask source minimum 30

Page 1291 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1291 · click to enlarge
Page 1291

C H A P T E R

Configuring Ethernet OAM and CFM

Ethernet Operations, Administration, and Maintenance (OAM) is a protocol for installing, monitoring, and troubleshooting Ethernet networks to increase management capability within the context of the overall Ethernet infrastructure. Starting with Cisco IOS Release 15.0(2)SG, the Catalyst 4500 series switch supports Standardized (Draft 8.1) IEEE 802.1ag Connectivity Fault Management (CFM) and IEEE 802.3ah Ethernet OAM discovery, link monitoring, remote fault detection, and remote loopback. It also supports IP Service Level Agreements (SLAs) for CFM, and ITU-T Y.1731 fault management. Ethernet OAM manager controls the interworking between CFM and 802.3ah OAM protocols.

This chapter provides information about configuring CFM and the Ethernet OAM protocol. It defines the differences between the ratified CFM 802.1ag standard (draft 8.1) and the previous version supported on the switch in Cisco IOS (draft 1.0). It also includes configuration information for CFM ITU-TY.1731 fault management support in this release.

For complete command and configuration information for Ethernet OAM, CFM, and Y.1731, see the Cisco IOS Carrier Ethernet Configuration Guide at this URL:

http://www.cisco.com/en/US/docs/ios-xml/ios/cether/configuration/15-mt/ce-15-mt-book.html

For complete syntax of the commands used in this chapter, see the command reference for this release and the Cisco IOS Carrier Ethernet Command Reference at this URL:

http://www.cisco.com/en/US/docs/ios-xml/ios/cether/command/ce-cr-book.html

This chapter contains these sections:

  • About Ethernet CFM, page 57-2
  • Configuring Ethernet CFM, page 57-6
  • Understanding CFM ITU-T Y.1731 Fault Management, page 57-27
  • Configuring Y.1731 Fault Management, page 57-29
  • Managing and Displaying Ethernet CFM Information, page 57-31
  • About Ethernet OAM Protocol, page 57-33
  • Enabling and Configuring Ethernet OAM, page 57-35
  • Displaying Ethernet OAM Protocol Information, page 57-49
Page 1292 of the Cisco Systems 4500 user manual — CFM Domain
Page 1292 · click to enlarge
Page 1292

Chapter 57 Configuring Ethernet OAM and CFM About Ethernet CFM

  • Ethernet CFM and Ethernet OAM Interaction, page 57-51

About Ethernet CFM

Ethernet CFM is an end-to-end per-service-instance (per-VLAN) Ethernet layer OAM protocol. It includes proactive connectivity monitoring, fault verification, and fault isolation. End-to-end can be provider-edge-to provider-edge (PE-to-PE) device or customer-edge-to-customer-edge (CE-to-CE) device. Ethernet CFM, as specified by IEEE 802.1ag, is the standard for Layer 2 ping, Layer 2 traceroute, and end-to-end connectivity verification of the Ethernet network.

These sections contain conceptual information about Ethernet CFM:

  • Ethernet CFM and OAM Definitions, page 57-2
  • CFM Domain, page 57-2
  • Maintenance Associations and Maintenance Points, page 57-4
  • CFM Messages, page 57-5
  • Crosscheck Function and Static Remote MEPs, page 57-5
  • SNMP Traps and Fault Alarms, page 57-5
  • Configuration Error List, page 57-6
  • IP SLAs Support for CFM, page 57-6

Ethernet CFM and OAM Definitions

The following table describes many of the terms in this chapter that are related to OAM and CFM features:

Term Definition

CFM Connectivity Fault Management

EI Ethernet Infrastructure or EVC Infrastructure

EVC Ethernet Virtual Circuit

MIP Maintenance Intermediate Point

OAM Operations Administration and Maintenance

UNI User to Network Interface

CFM Domain

A CFM maintenance domain is a management space on a network that is owned and operated by a single entity and defined by a set of internal boundary ports. You assign a unique maintenance level (from 0 to 7) to define the domain hierarchy. The larger the domain, the higher the level. For example, as shown in Figure 57-1, a service-provider domain would be larger than an operator domain and might have a maintenance level of 6, while the operator domain maintenance level would be 3 or 4.

CC Continuity Check · MEP Maintenance Endpoint

Page 1293 of the Cisco Systems 4500 user manual — MEP MEP MIP MIP
Page 1293 · click to enlarge
Page 1293

Chapter 57 Configuring Ethernet OAM and CFM

As shown in Figure 57-2, domains cannot intersect or overlap because that would require management by more than one entity, which is not allowed. Domains can touch or nest (if the outer domain has a higher maintenance level than the nested domain). Nesting domains can be useful when a service provider contracts with one or more operators to provide Ethernet service. Each operator has its own maintenance domain and the service provider domain is a superset of the operator domains. Maintenance levels of nesting domains should be communicated among the administrating organizations. CFM exchanges messages and performs operations on a per-domain basis.

Figure 57-1 CFM Maintenance Domains

Service Provider Domain Level 6

Operator 1 PE 1 CE 1 CE 2 PE 2 PE 3 PE 4 Operator 2

MEP

MIP

MIP MEP

Level 4 Level 4

MEP MEP MIP MIP

MEP MEP

MIP MIP

Figure 57-2 Allowed Domain Relationships

Scenario ATouching Domains OK
Scenario BNested Domains OK
Scenario CIntersecting Domains Not Allowed
Show 4 more labels / short text on this page
About Ethernet CFM · Operator Domains · Level 3 · Level 2
Page 1294 of the Cisco Systems 4500 user manual — Maintenance Associations and Maintenance Points
Page 1294 · click to enlarge
Page 1294

Chapter 57 Configuring Ethernet OAM and CFM About Ethernet CFM

Maintenance Associations and Maintenance Points

A maintenance association (MA) identifies a service that can be uniquely identified within the maintenance domain. The CFM protocol runs within a maintenance association.A maintenance point is a demarcation point on an interface that participates in CFM within a maintenance domain. Maintenance points drop all lower-level frames and forward all higher-level frames. There are two types of maintenance points:

  • Maintenance end points (MEPs) are points at the edge of the domain that define the boundaries and confine CFM messages within these boundaries. Outward facing or Down MEPs communicate through the wire side (connected to the port). Inward facing or Up MEPs communicate through the relay function side, not the wire side.

CFM draft 1 supported only up MEPs on a per-port or per-VLAN basis. CFM 802.1ag supports up and down per-VLAN MEPs, as well as port MEPs, which are untagged down MEPs that are not associated with a VLAN. Port MEPs are configured to protect a single hop and used to monitor link state through CFM. If a port MEP is not receiving continuity check messages from its peer (static remote MEP), for a specified interval, the port is put into an operational down state in which only CFM and OAM packets pass through, and all other data and control packets are dropped.

– An up MEP sends and receives CFM frames through the relay function. It drops all CFM frames at its level or lower that come from the wire side, except traffic going to the down MEP. For CFM frames from the relay side, it processes the frames at its level and drops frames at a lower level. The MEP transparently forwards all CFM frames at a higher level, regardless of whether they are received from the relay or wire side. If the port on which MEP is configured is blocked by STP, the MEP can still send or receive CFM messages through the relay function. CFM runs at the provider maintenance level (UPE-to-UPE), specifically with up MEPs at the user network interface (UNI).

– A down MEP sends and receives CFM frames through the wire connected to the port on which the MEP is configured. It drops all CFM frames at its level or lower that come from the relay side. For CFM frames from the wire side, it processes all CFM frames at its level and drops CFM frames at lower levels except traffic going to the other lower-level down MEP. The MEP transparently forwards all CFM frames at a higher level, regardless of whether they are received from the relay or through the wire

  • Maintenance intermediate points (MIPs) are internal to a domain, not at the boundary, and respond to CFM only when triggered by traceroute and loopback messages. They forward CFM frames received from MEPs and other MIPs, drop all CFM frames at a lower level (unless MIP filtering is enabled), and forward all CFM frames at a higher level and at a lower level and regardless of whether they are received from the relay or wire side. When MIP filtering is enabled, the MIP drops CFM frames at a lower level. MIPs also catalog and forward continuity check messages (CCMs), but do not respond to them.

In the first draft of CFM, MIP filtering was always enabled. In draft 8.1, MIP filtering is disabled by default, and you can configure it to be enabled or disabled. When MIP filtering is disabled, all CFM frames are forwarded.

You can manually configure a MIP or configure the switch to automatically create a MIP. You can configure a MEP without a MIP. In case of a configuration conflict, manually created MIPs take precedence over automatically created MIPs.

Page 1295 of the Cisco Systems 4500 user manual — SNMP Traps and Fault Alarms
Page 1295 · click to enlarge
Page 1295

Chapter 57 Configuring Ethernet OAM and CFM

If port on which the MEP is configured is blocked by Spanning-Tree Protocol (STP), the MIP can receive and might respond to CFM messages from both the wire and relay side, but cannot forward any CFM messages. This differs from CFM draft 1, where STP blocked ports could not send or receive CFM messages.

CFM Messages

CFM uses standard Ethernet frames distinguished by EtherType or (for multicast messages) by MAC address. All CFM messages are confined to a maintenance domain and to a service-provider VLAN (S-VLAN). These CFM messages are supported:

  • Continuity Check (CC) messages —multicast heartbeat messages exchanged periodically between MEPs that allow MEPs to discover other MEPs within a domain and allow MIPs to discover MEPs. CC messages are configured to a domain or VLAN. Enter the continuity-check Ethernet service configuration command to enable CCM.

The default continuity check message (CCM) interval on the switch is 10 seconds. You can set it to be 100 ms, 1 second, 1 minute, or 10 minutes by entering the continuity-check interval Ethernet service mode command. Because faster CCM rates are more CPU intensive, we do not recommend configuring a large number of MEPs running at 100 ms intervals.

  • Loopback messages —unicast or multicast frames transmitted by a MEP at administrator request to verify connectivity to a particular maintenance point, indicating if a destination is reachable. A loopback message is similar to an Internet Control Message Protocol (ICMP) ping message. Refer to the ping ethernet privileged EXEC command.
  • Traceroute messages —multicast frames transmitted by a MEP at administrator request to track the path (hop-by-hop) to a destination MEP. Traceroute messages are similar in concept to UDP traceroute messages. Refer to the traceroute ethernet privileged EXEC command.

Crosscheck Function and Static Remote MEPs

The crosscheck function verifies a post-provisioning timer-driven service between dynamically configured MEPs (using crosscheck messages) and expected MEPs (by configuration) for a service. It verifies that all endpoints of a multipoint service are operational. The crosscheck function is performed only one time and is initiated from the command-line interface (CLI).

CFM 802.1ag also supports static remote MEPs or static RMEP check. Unlike the crosscheck function, which is performed only once, configured static RMEP checks run continuously. To configure static RMEP check, enter the continuity-check static rmep Ethernet CFM service mode command.

SNMP Traps and Fault Alarms

The MEPs generate two types of SNMP traps: CC traps and crosscheck traps. Supported CC traps are MEP up, MEP down, cross-connect (a service ID does not match the VLAN), loop, and configuration error. The crosscheck traps are service up, MEP missing (an expected MEP is down), and unknown MEP.

Fault alarms are unsolicited notifications sent to alert the system administrator when CFM detects a fault. In CFM draft 1, fault alarms were sent instantaneously when detected. In CFM 802.1ag, you can configure the priority level of alarms that trigger an SNMP trap or syslog message. You can also configure a delay period before a fault alarm is sent and the time before the alarm is reset.

About Ethernet CFM

Page 1296 of the Cisco Systems 4500 user manual — Configuring Ethernet CFM
Page 1296 · click to enlarge
Page 1296

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Configuration Error List

CFM configuration errors in CFM 802.1ag can be misconfigurations or extra configuration commands detected during MEP configuration. They can be caused by overlapping maintenance associations. For example, if you create a maintenance association with a VLAN list and a MEP on an interface, a potential leak error could occur if other maintenance associations associated with the same VLAN exist at a higher level without any MEPs configured. You can display the configuration error list, which is informational only, by entering the show ethernet cfm errors configuration privileged EXEC command.

IP SLAs Support for CFM

The switch supports CFM with IP Service Level Agreements (SLAs), which gathers Ethernet layer network performance metrics. Available statistical measurements for the IP SLAs CFM operation include round-trip time, jitter (interpacket delay variance), and packet loss. You can schedule multiple IP SLA operations and use Simple Network Management Protocol (SNMP) trap notifications and syslog messages to monitor threshold violations proactively.

IP SLA integration with CFM gathers Ethernet layer statistical measurements by sending and receiving Ethernet data frames between CFM MEPs. Performance is measured between the source MEP and the destination MEP. Unlike other IP SLA operations that provide performance metrics for only the IP layer, IP SLAs with CFM provide performance metrics for Layer 2.

You can manually configure individual Ethernet ping or jitter operations. You can also configure an IP SLA automatic Ethernet operation that queries the CFM database for all MEPs in a given maintenance domain and VLAN. The operation then automatically creates individual Ethernet ping or jitter operations based on the discovered MEPs.

Because IP SLAs is a Cisco proprietary feature, interoperability between CFM draft 1 and CFM 802.1ag is handled automatically by the switch.

For more information about IP SLA operation with CFM, see the IP SLAs for Metro-Ethernet feature module at this URL:

http://www.cisco.com/en/US/docs/ios/12_2sr/12_2srb/feature/guide/sr_meth.html

Configuring Ethernet CFM

CFM draft 8.1 on Catalyst 4500 series switch mandates that you enter the ethernet cfm ieee command before configuring any other CFM CLI. Without this command, no other CFM CLIs are applied. Configuring Ethernet CFM requires that you configure the CFM domain. You can optionally configure and enable other CFM features (such as crosschecking, static remote MEP, port MEPs, CVLAN MEPs/MIPs, SNMP traps, and fault alarms). Some of the configuration commands and procedures differ from those used in CFM draft 1. CLIs in draft 1 that have been changed are no longer available; they have been deprecated and are not allowed. Only the CLIs mentioned in the following sections are required for draft 8.1.

Page 1297 of the Cisco Systems 4500 user manual — Ethernet CFM Configuration Guidelines
Page 1297 · click to enlarge
Page 1297

Chapter 57 Configuring Ethernet OAM and CFM

To configure Ethernet CFM you must prepare the network and configuring services. You can optionally configure and enable crosschecking. These sections are included:

  • Ethernet CFM Default Configuration, page 57-7
  • Ethernet CFM Configuration Guidelines, page 57-7
  • Configuring the CFM Domain, page 57-8
  • Configuring Ethernet CFM Crosscheck, page 57-11
  • Configuring Static Remote MEP, page 57-13
  • Configuring a Port MEP, page 57-14
  • Configuring SNMP Traps, page 57-16
  • Configuring Fault Alarms, page 57-16
  • Configuring IP SLAs CFM Operation, page 57-18
  • Configuring CFM on C-VLAN (Inner VLAN), page 57-24

Ethernet CFM Default Configuration

CFM is globally disabled.

CFM is enabled on all interfaces when CFM is globally enabled.

A port can be configured as a flow point (MIP/MEP), a transparent port, or disabled (CFM disabled). By default, ports are transparent ports until configured as MEP, MIP, or disabled.

There are no MEPs or MIPs configured.

When configuring a MA, if you do not configure direction, the default is up (inward facing).

Ethernet CFM Configuration Guidelines

When configuring Ethernet CFM, consider these guidelines and restrictions:

  • You must enter the ethernet cfm ieee global configuration command before configuring any other CFM CLI. If not, all other CFM CLIs are not applied.
  • CFM is not supported on and cannot be configured on either routed ports or Layer 3 EtherChannels.
  • You can configure a Layer 2 EtherChannel port channel as Up MEP, Down MEP, or MIP. However, such configurations are not supported on individual ports that belong to an EtherChannel. You cannot add a port with this configuration to an EtherChannel group.
  • Port MEP is not supported and cannot be configured on Layer 2 EtherChannels.
  • CFM is not supported and cannot be configured on VLAN interfaces.
  • On isolated host, community host, or a promiscuous access port, only Down MEP is supported on isolated, community and primary VLANs, respectively.
  • Up MEP is supported only on regular VLANs on PVLAN trunks. Down MEP is supported on regular VLANs as well as isolated VLANs on PVLAN secondary trunks. Similarly, Down MEP is supported on regular VLANs as well as primary VLANs on promiscuous trunk ports.
  • The CFM service on a PVLAN ends at the PVLAN port. The translation of CFM service between PVLANs is not supported between the PVLAN ports.

Configuring Ethernet CFM

Page 1298 of the Cisco Systems 4500 user manual — Configuring the CFM Domain
Page 1298 · click to enlarge
Page 1298

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

  • CFM Unicast packets (Loopback Messages and Traceroute Reply), are not allowed on Down MEP on STP blocked ports. The blocked port cannot respond to ping and traceroute. You must configure a port MEP at a lower level than any service (VLAN) MEPs on an interface.
  • An 802.1Q (QinQ) tunnel port can be an Up MEP or a port MEP.
  • A QinQ port cannot be a Down MEP or a MIP; you can configure the port as a MIP, but it is not active or visible in traceroute. Port MEP frames received on a QinQ interface are not tunneled and are processed locally.
  • CFM on a C-VLAN is supported on Traditional and Selective QinQ and not supported on One-to-One VLAN Mapping on Trunk ports.
  • Do not configure a port with tunnel mode using the native VLAN as the S-VLAN or the C-VLAN.
  • For port MEP on a QinQ port, do not enter the vlan dot1q tag native global configuration command to enable tagging on native VLAN frames.
  • If you are running CFM draft 1 and upgrade to a software version that supports CFM draft 8.1, the switch silently drops the draft 1 configuration on draft 8.1 image. Some of the CLIs have been changed from draft1 to draft8.1. You need to reconfigure all the required configurations on draft 8.1 image.

Configuring the CFM Domain

To configure the Ethernet CFM domain, configure a service to connect the domain to a VLAN, or configure a port to act as a MEP, perform this task. You can also enter the optional commands to configure other parameters, such as continuity checks.

Step 1 configure terminal Enter global configuration mode.

Step 2 ethernet cfm ieee A must have configuration for draft 8.1. This is required to be configured before any other configuration.

Step 3 ethernet cfm global Globally enable Ethernet CFM on the switch.

Step 4 ethernet cfm traceroute cache [size entries | hold-time minutes]

(Optional) Configure the CFM traceroute cache. You can set a maximum cache size or hold time.

  • (Optional) For size , enter the cache size in number of entry lines. The range is from 1 to 4095; the default is 100 lines.
  • (Optional) For hold-time , enter the maximum cache hold time in minutes. The range is from 1 to 65535; the default is 100 minutes.

Step 5 ethernet cfm mip auto-create level level-id vlan vlan-id

(Optional) Configure the switch to automatically create MIPs for VLAN IDS that are not associated with specific maintenance associations at the specified level. The level range is 0 to 7.

Step 6 ethernet cfm mip filter (Optional) Enable MIP filtering, which means that all CFM frames at a lower level are dropped. The default is disabled.

Page 1299 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1299 · click to enlarge
Page 1299

Chapter 57 Configuring Ethernet OAM and CFM

Step 7 ethernet cfm domain domain-name level level-id Define a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 8 id {mac-address domain_number | dns name | null}

(Optional) Assign a maintenance domain identifier.

  • mac-address domain_number —Enter the MAC address and a domain number. The number can be from 0 to 65535.
  • dns name —Enter a DNS name string. The name can be a maximum of 43 characters.
  • null —Assign no domain name.

Step 9 service {ma-name | ma-number | vpn-id vpn} {vlan vlan-id [direction down] | port}

Define a customer service maintenance association (MA) name or number or VPN ID to be associated with the domain, a VLAN ID or port MEP, and enter ethernet-cfm-service configuration mode.

  • ma-name —a string of no more than 100 characters that identifies the MAID.
  • ma-number —a value from 0 to 65535.
  • vpn-id vpn —enter a VPN ID as the ma-name .
  • vlan vlan-id —VLAN range is from 1 to 4094. You cannot use the same VLAN ID for more than one domain at the same level.
  • (Optional) direction down —specify the service direction as down.
  • port —Configure port MEP, a down MEP that is untagged and not associated with a VLAN.

Step 10 continuity-check Enable sending and receiving of continuity check messages.

Step 11 continuity-check interval value (Optional) Set the interval at which continuity check messages are sent. The available values are 100 ms, 1 second, 10 seconds, 1 minute and 10 minutes. The default is 10 seconds.

Step 12 continuity-check loss-threshold threshold-value

(Optional) Set the number of continuity check messages to be missed before declaring that an MEP is down. The range is 2 to 255; the default is 3.

Step 13 maximum meps value (Optional) Configure the maximum number of MEPs allowed across the network. The range is from 1 to 65535. The default is 100.

Configuring Ethernet CFM

Page 1300 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1300 · click to enlarge
Page 1300

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Step 14 sender-id {chassis | none} (Optional) Include the sender ID TLVs, attributes containing type, length, and values for neighbor devices.

  • chassis —Send the chassis ID (host name).
  • none —Do not include information in the sender ID.

Step 15 mip auto-create [lower-mep-only | none] (Optional) Configure auto creation of MIPs for the service.

  • lower-mep-only —Create a MIP only if there is a MEP for the service in another domain at the next lower active level.
  • none —No MIP auto-create.

Step 16 exit Return to ethernet-cfm configuration mode.

Step 17 mip auto-create [lower-mep-only] (Optional) Configure auto creation of MIPs for the domain.

  • lower-mep-only —Create a MIP only if there is a MEP for the service in another domain at the next lower active level.

Step 18 mep archive-hold-time minutes (Optional) Set the number of minutes that data from a missing maintenance end point is kept before it is purged. The range is 1 to 65535; the default is 100 minutes.

Step 19 exit Return to global configuration mode.

Step 20 interface interface-id Specify an interface to configure, and enter interface configuration mode.

Step 21 switchport mode trunk (Optional) Configure the port as a trunk port.

Step 22 ethernet cfm mip level level-id (Optional) Configure a customer level or service-provider level maintenance intermediate point (MIP) for the interface. The MIP level range is 0 to 7.

Step 23 ethernet cfm mep domain domain-name mpid identifier {vlan vlan-id | port}

Configure maintenance end points for the domain, and enter ethernet cfm mep mode.

  • domain domain-name —Specify the name of the created domain.
  • mpid identifier —Enter a maintenance end point identifier. The identifier must be unique for each VLAN (service instance). The range is 1 to 8191.
  • vlan vlan-id —Enter the service provider VLAN ID or IDs as a VLAN-ID (1 to 4094), a range of VLAN-IDs separated by a hyphen, or a series of VLAN IDs separated by comma.
  • port —Configure port MEP.

Step 24 cos value (Optional) Specify the class of service (CoS) value to be sent with the messages. The range is 0 to 7.

Page 1301 of the Cisco Systems 4500 user manual — Configuring Ethernet CFM Crosscheck
Page 1301 · click to enlarge
Page 1301

Chapter 57 Configuring Ethernet OAM and CFM

Step 25 end Return to privileged EXEC mode.

Step 26 show ethernet cfm maintenance-points {local | remote}

Verify the configuration.

Step 27 show ethernet cfm errors [configuration] (Optional) Display the configuration error list.

Step 28 copy running-config startup-config (Optional) Save your entries in the configuration file.

Use the no versions of the commands to remove the configuration or return to the default configurations.

This is an example of the basic CFM configuration:

Switch(config)# ethernet cfm ieee Switch(config)# ethernet cfm global Switch(config)# ethernet cfm domain abc level 3 Switch(config-ecfm)# service test vlan 5 Switch(config-ecfm-srv)# continuity-check Switch(config-ecfm-srv)# exit Switch(config-ecfm)# exit Switch(config)# interface gigabitethernet1/0/2 Switch(config-if)# ethernet cfm mep domain abc mpid 222 vlan 5 Switch(config-if-ecfm-mep)# exit

Configuring Ethernet CFM Crosscheck

To configure Ethernet CFM crosscheck, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ethernet cfm mep crosscheck start-delay delay

Configures the number of seconds that the device waits for remote MEPs to come up before the crosscheck is started. The range is 1 to 65535; the default is 30 seconds.

Step 3 Switch(config)# ethernet cfm domain domain-name level level-id

Defines a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 4 Switch(config)# service {ma-name | ma-number | vpn-id vpn} {vlan vlan-id}

Define a customer service maintenance association name or number or VPN ID to be associated with the domain, and a VLAN ID, and enter ethernet-cfm-service configuration mode.

  • ma-name— A string of no more than 100 characters that identifies the MAID.
  • ma-number —A value from 0 to 65535.
  • vpn-id vpn —Enter a VPN ID as the ma-name.
  • vlan vlan-id —VLAN range is from 1 to 4094. You cannot use the same VLAN ID for more than one domain at the same level.

Step 5 Switch(config-ether-cfm)# mep mpid identifier Define the MEP maintenance end point identifier in the domain and service. The range is 1 to 8191.

Step 6 Switch(config)# end Returns to privileged EXEC mode.

Configuring Ethernet CFM

Page 1302 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1302 · click to enlarge
Page 1302

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Step 7 Switch# ethernet cfm mep crosscheck {enable | disable} domain domain-name {vlan {vlan-id | any} | port}

  • Enable or disable CFM crosscheck for one or more VLANs or a port MEP in the domain.
  • domain domain-name —Specify the name of the created domain.
  • vlan { vlan-id | any }—Enter the service provider VLAN ID or IDs as a VLAN-ID (1 to 4094), a range of VLAN-IDs separated by a hyphen, or a series of VLAN IDs separated by comma. Enter any for any VLAN.
  • port —Identify a port MEP

Step 8 Switch# show ethernet cfm maintenance-points remote crosscheck

Verifies the configuration.

Step 9 Switch# show ethernet cfm errors [configuration]

Enter this command after you enable CFM crosscheck to display the results of the crosscheck operation. Enter the configuration keyword to display the configuration error list.

Step 10 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no form of each command to remove a configuration or to return to the default settings.

The following example illustrates how to configure Ethernet CFM crosscheck:

Switch(config)# ethernet cfm mep crosscheck start-delay 60 Switch(config)# ethernet cfm domain abc level 3 Switch(config-ecfm)# service test vlan 5 Switch(config-ecfm-srv)# mep mpid 23 Switch(config-ecfm-srv)# mep mpid 34 Switch(config-ecfm-srv)# end Switch# ethernet cfm mep crosscheck enable domain abc vlan 5

Switch# show ethernet cfm maintenance-points remote crosscheck MPID Domain Name Lvl Type Id Mep-Up MA Name 23 abc 3 Vlan 5 No test 34 abc 3 Vlan 5 No test

Switch# show ethernet cfm errors MPID Domain Id Mac Address Type Id MA Name Reason Lvl Age 34 abc 0000.0000.0000 Vlan 5 test RMEP missing 3 95s 23 abc 0000.0000.0000 Vlan 5 test RMEP missing 3 95s Switch#

Page 1303 of the Cisco Systems 4500 user manual — Configuring Static Remote MEP
Page 1303 · click to enlarge
Page 1303

Chapter 57 Configuring Ethernet OAM and CFM

Configuring Static Remote MEP

To configure Ethernet CFM static remote MEP, perform this task:

Step 1 configure terminal Enter global configuration mode.

Step 2 ethernet cfm domain domain-name level level-id Define a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 3 service {ma-name | ma-number | vpn-id vpn} {vlan vlan-id [direction down] | port}

Define a customer service maintenance association name or number or a VPN ID to be associated with the domain, and a VLAN ID or peer MEP, and enter ethernet-cfm-service configuration mode.

  • ma-name —a string of no more than 100 characters that identifies the MAID.
  • ma-number —a value from 0 to 65535.
  • vpn-id —enter a VPN ID as the ma-name .
  • vlan vlan-id —VLAN range is from 1 to 4094. You cannot use the same VLAN ID for more than one domain at the same level.
  • (Optional) direction down —specify the service direction as down.
  • port —Configure port MEP, a down MEP that is untagged and not associated with a VLAN.

Step 4 continuity-check Enable sending and receiving of continuity check messages.

Step 5 mep mpid identifier Define the static remote maintenance end point identifier. The range is 1 to 8191.

Step 6 continuity-check static rmep Enable checking of the incoming continuity check message from a remote MEP that is configured in the MEP list.

Step 7 end Return to privileged EXEC mode.

Step 8 show ethernet cfm maintenance-points remote static

Verify the configuration.

Step 9 show ethernet cfm errors [configuration] Enter this command after you enable CFM crosscheck to display the results of the crosscheck operation. Enter the configuration keyword to display the configuration error list.

Step 10 copy running-config startup-config (Optional) Save your entries in the configuration file.

Use the no form of each command to remove a configuration or to return to the default settings.

The following example illustrates how to configure Ethernet CFM static remote MEP:

Switch(config)# ethernet cfm domain abc level 3 Switch(config-ecfm)# service test vlan 5 Switch(config-ecfm-srv)# continuity-check Switch(config-ecfm-srv)# mep mpid 23

Configuring Ethernet CFM

Page 1304 of the Cisco Systems 4500 user manual — Configuring a Port MEP
Page 1304 · click to enlarge
Page 1304

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Switch(config-ecfm-srv)# mep mpid 34 Switch(config-ecfm-srv)# continuity-check static rmep

Switch# show ethernet cfm maintenance-points remote static MPID Domain Name Lvl Type Id Mep-Up MA Name 23 abc 3 Vlan 5 No test 34 abc 3 Vlan 5 No test Switch# show ethernet cfm errors MPID Domain Id Mac Address Type Id MA Name Reason Lvl Age 34 abc 0000.0000.0000 Vlan 5 test RMEP missing 3 421s 23 abc 0000.0000.0000 Vlan 5 test RMEP missing 3 421s Switch#

Configuring a Port MEP

A port MEP is a down MEP that is not associated with a VLAN and that uses untagged frames to carry CFM messages. You configure port MEPs on two connected interfaces. Port MEPs are always configured at a lower domain level than native VLAN MEPs.

To configure Ethernet CFM port MEPs, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ethernet cfm domain domain-name level level-id

Defines a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 3 Switch(config-ecfm)# service {ma-name | ma-number | vpn-id} port

Defines a customer service maintenance association name or number or VPN ID to be associated with the domain, define a port MEP, and enter ethernet-cfm-service configuration mode.

  • ma-name —a string of no more than 100 characters that identifies the MAID.
  • ma-number —a value from 0 to 65535.
  • vpn-id vpn —enter a VPN ID as the ma-name .

Step 4 Switch(config-ecfm-srv)# mep mpid identifier Defines the static remote maintenance end point identifier in the domain and service. The range is 1 to 8191.

Step 5 Switch(config-ecfm-srv)# continuity-check Enables sending and receiving of continuity check messages.

Page 1305 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1305 · click to enlarge
Page 1305

Chapter 57 Configuring Ethernet OAM and CFM

Step 6 Switch(config-ecfm-srv)# continuity-check interval value

(Optional) Sets the interval at which continuity check messages are sent. The available values are 1 second, 10 seconds, 1 minute, and 10 minutes. The default is 10 seconds.

Step 7 Switch(config-ecfm-srv)# continuity-check loss-threshold threshold-value

(Optional) Sets the number of continuity check messages to be missed before declaring that an MEP is down. The range is 2 to 255; the default is 3.

Step 8 Switch(config-ecfm-srv)# continuity-check static rmep

Enables checking of the incoming continuity check message from a remote MEP that is configured in the MEP list.

Step 9 Switch(config-ecfm-srv)# exit Returns to ethernet-cfm configuration mode.

Step 10 Switch(config-ecfm)# exit Returns to global configuration mode.

Step 11 Switch(config)# interface interface-id Identifies the port MEP interface and enter interface configuration mode.

Step 12 Switch(config-if)# ethernet cfm mep domain domain-name mpid identifier port

Configures the interface as a port MEP for the domain.

  • domain domain-name —Specify the name of the created domain.
  • mpid identifier —Enter a maintenance end point identifier. The identifier must be unique for each VLAN (service instance). The range is 1 to 8191.

Step 13 Switch(config-if)# end Returns to privileged EXEC mode.

Step 14 Switch)# show ethernet cfm maintenance-points remote static

Verifies the configuration.

Step 15 Switch)# show ethernet cfm errors [configuration]

Enters this command after you enable CFM crosscheck to display the results of the crosscheck operation. Enter the configuration keyword to display the configuration error list.

Step 16 Switch)# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no form of each command to remove a configuration or to return to the default settings.

This is a sample configuration for a port MEP:

Switch(config)# ethernet cfm domain abc level 3 Switch(config-ecfm)# service PORTMEP port Switch(config-ecfm-srv)# mep mpid 222 Switch(config-ecfm-srv)# continuity-check Switch(config-ecfm-srv)# continuity-check static rmep Switch(config-ecfm-srv)# exit Switch(config-ecfm)# exit Switch(config)# interface gigabitethernet1/0/1 Switch(config-if)# ethernet cfm mep domain abc mpid 111 port Switch(config-if)# end

Configuring Ethernet CFM

Page 1306 of the Cisco Systems 4500 user manual — Configuring Fault Alarms
Page 1306 · click to enlarge
Page 1306

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Configuring SNMP Traps

To configure traps for Ethernet CFM, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# snmp-server enable traps ethernet cfm cc [mep-up] [mep-down] [config] [loop] [cross-connect]

(Optional) Enables Ethernet CFM continuity check traps.

Step 3 Switch(config)# snmp-server enable traps ethernet cfmalarm

(Optional) Enables Ethernet CFM fault alarm trap.

Step 4 Switch(config)# snmp-server enable traps ethernet cfm crosscheck [mep-unknown] [mep-missing] [service-up]

(Optional) Enable s Ethernet CFM crosscheck traps.

Step 5 Switch(config)# end Returns to privileged EXEC mode.

Step 6 Switch# show running-config Verifies your entries.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no form of each command to remove a configuration or to return to the default settings.

The following example illustrates how to configure SNMP traps:

Switch(config)# snmp-server enable traps ethernet cfm alarm Switch(config)# snmp-server enable traps ethernet cfm cc mep-down Switch(config)# snmp-server enable traps ethernet cfm crosscheck mep-missing

Configuring Fault Alarms

To configure Ethernet CFM fault alarms, perform this task.

Page 1307 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1307 · click to enlarge
Page 1307

Chapter 57 Configuring Ethernet OAM and CFM

Step 1 configure terminal Enters global configuration mode.

Step 2 ethernet cfm alarm notification {all | error-xcon | mac-remote-error-xcon | none | remote-error-xcon | xcon}

Globally enables Ethernet CFM fault alarm notification for the specified defects:

  • all —report all defects.
  • error-xcon —Report only error and connection defects.
  • mac-remote-error-xcon —Report only MAC-address, remote, error, and connection defects.
  • none —Report no defects.
  • remote-error-xcon —Report only remote, error, and connection defects.
  • xcon —Report only connection defects.

Step 3 ethernet cfm alarm delay value (Optional) Sets a delay period before a CFM fault alarm is sent. The range is 2500 to 10000 milliseconds (ms). The default is 2500 ms.

Step 4 ethernet cfm alarm reset value (Optional) Specifies the time period before the CFM fault alarm is reset. The range is 2500 to 10000 milliseconds (ms). The default is 10000 ms.

Step 5 ethernet cfm logging alarm ieee Configures the switch to generate system logging messages for the alarms.

Step 6 interface interface-id (Optional) Specifies an interface to configure, and enter interface configuration mode.

Step 7 ethernet cfm mep domain domain-name mpid identifier vlan vlan-id

Configures maintenance end points for the domain, and enter ethernet cfm interface mep mode.

  • domain domain-name —Specify the name of the created domain.
  • mpid identifier —Enter a maintenance end point identifier. The identifier must be unique for each VLAN (service instance). The range is 1 to 8191.
  • vlan vlan-id —Enter the service provider VLAN ID or IDs as a VLAN-ID (1 to 4094), a range of VLAN-IDs separated by a hyphen, or a series of VLAN IDs separated by comma.

Step 8 alarm notification {all | error-xcon | mac-remote-error-xcon | none | remote-error-xcon | xcon}

(Optional) Enables Ethernet CFM fault alarm notification for the specified defects on the interface.

Step 9 alarm {delay value | reset value} (Optional) Sets an alarm delay period or a reset period.

Configuring Ethernet CFM

Page 1308 of the Cisco Systems 4500 user manual — Configuring IP SLAs CFM Operation
Page 1308 · click to enlarge
Page 1308

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Step 10 end Returns to privileged EXEC mode.

Step 11 show running-config Verifies your entries.

Step 12 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no form of each command to remove a configuration or to return to the default settings.

The following example illustrates how to configure Ethernet CFM fault alarms:

Switch(config)# ethernet cfm alarm notification remote-error-xcon Switch(config)# ethernet cfm logging alarm ieee Switch(config)# interface gigabitethernet1/2 Switch(config-if)# ethernet cfm mep domain abc mpid 222 vlan 5 Switch(config-if-ecfm-mep)# alarm notification mac-remote-error-xcon Switch(config-if)# end

Configuring IP SLAs CFM Operation

You can manually configure an IP SLA’s Ethernet ping or jitter echo operation, or you can configure IP SLAs Ethernet operation with endpoint discovery. You can also configure multiple operation scheduling. For accurate one-way delay statistics, the clocks on the endpoint switches must be synchronized. You can configure the endpoint switches with Network Time Protocol (NTP) so that the switches are synchronized to the same clock source.

For detailed information about configuring IP SLAs Ethernet operations, see the Cisco IOS IP SLAs for Metro-Ethernet feature module at this URL: http://www.cisco.com/en/US/docs/ios-xml/ios/ipsla/configuration/15-1s/Configuring_Cisco_IOS_IP_S LAs_for_Metro-Ethernet.html

For detailed information about IP SLAs operations, see the Cisco IOS IP SLAs Configuration Guide, Release 12.4T at this URL: http://www.cisco.com/en/US/products/ps6441/products_installation_and_configuration_guides_list.ht ml

For detailed information about IP SLAs commands, see the command reference at this URL: http://www.cisco.com/en/US/docs/ios/ipsla/command/reference/sla_book.html

This section includes these procedures:

  • Manually Configuring an IP SLAs CFM Probe or Jitter Operation, page 57-19
  • Configuring an IP SLAs Operation with Endpoint Discovery, page 57-21
Page 1309 of the Cisco Systems 4500 user manual — Manually Configuring an IP SLAs CFM Probe or Jitter Operation
Page 1309 · click to enlarge
Page 1309

Chapter 57 Configuring Ethernet OAM and CFM

Manually Configuring an IP SLAs CFM Probe or Jitter Operation

To manually configure an IP SLAs Ethernet echo (ping) or jitter operation, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip sla operation-number Creates an IP SLAs operation, and enters IP SLAs configuration mode.

Step 3 Switch(config-ip-sla)# ethernet echo mpid identifier domain domain-name vlan vlan-id

Configures the IP SLAs operation as an echo (ping) or jitter operation, and enter IP SLAs Ethernet echo configuration mode.

  • Enter echo for a ping operation or jitter for a jitter operation.

ethernet jitter mpid identifier domain domain-name vlan vlan-id [interval interpacket-interval] [num-frames number-of frames transmitted]

  • For mpid identifier , enter a maintenance endpoint identifier. The identifier must be unique for each VLAN (service instance). The range is 1 to 8191.
  • For domain domain-name , enter the CFM domain name.
  • For vlan vlan-id , the VLAN range is from 1 to 4095.
  • (Optional—for jitter only) Enter the interval between sending of jitter packets.
  • (Optional—for jitter only) Enter the num-frames and the number of frames to be sent.

Step 4 Switch(config-ip-sla-ethernet-monitor)# cos cos-value

(Optional) Sets a class of service value for the operation.

Before configuring the cos parameter on the switch, you must globally enable QoS by entering the mls qos global configuration command.

Step 5 Switch(config-ip-sla-ethernet-monitor)# frequency seconds

(Optional) Sets the rate at which the IP SLAs operation repeats. The range is from 1 to 604800 seconds; the default is 60 seconds.

Step 6 Switch(config-ip-sla-ethernet-monitor)# history history-parameter

(Optional) Specifies parameters for gathering statistical history information for the IP SLAs operation.

Step 7 Switch(config-ip-sla-ethernet-monitor)# owner owner-id

(Optional) Configures the SNMP owner of the IP SLAs operation.

Step 8 Switch(config-ip-sla-ethernet-monitor)# request-data-size bytes

(Optional) Specifies the protocol data size for an IP SLAs request packet. The range is from 0 to the maximum size allowed by the protocol being used; the default is 66 bytes.

Step 9 Switch(config-ip-sla-ethernet-monitor)# tag text

(Optional) Creates user-specified identifier for an IP SLAs operation.

Step 10 Switch(config-ip-sla-ethernet-monitor)# threshold milliseconds

(Optional) Specifies the upper threshold value in milliseconds (ms) for calculating network monitoring statistics. The range is 0 to 2147483647; the default is 5000.

Configuring Ethernet CFM · or

Page 1310 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1310 · click to enlarge
Page 1310

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Step 11 Switch(config-ip-sla-ethernet-monitor)# timeout milliseconds

(Optional) Specifies the amount of time in ms that the IP SLAs operation waits for a response from its request packet. The range is 0 to 604800000; the default value is 5000.

Step 12 Switch(config-ip-sla-ethernet-monitor)# exit Returns to global configuration mode.

Step 13 Switch(config)# ip sla schedule operation-number [ageout seconds] [life {forever | seconds}] [recurring] [start-time {hh:mm {:ss} [month day | day month] | pending | now | after hh:mm:ss}]

Schedules the time parameters for the IP SLAs operation.

  • operation-number —Enter the IP SLAs operation number.
  • (Optional) ageout seconds —Enter the number of seconds to keep the operation in memory when it is not actively collecting information. The range is 0 to 2073600 seconds. The default is 0 seconds.
  • (Optional) life —Set the operation to run indefinitely ( forever ) or for a specific number of seconds . The range is from 0 to 2147483647. The default is 3600 seconds (1 hour)
  • (Optional) recurring —Set the probe to be automatically scheduled every day.
  • (Optional) start-time —Enter the time for the operation to begin collecting information:

– To start at a specific time, enter the hour, minute, second (in 24-hour notation), and day of the month.

– Enter pending to select no information collection until a start time is selected.

– Enter now to start the operation immediately.

– Enter after hh:mm:ss to show that the operation should start after the entered time has elapsed.

Step 14 Switch(config)# end Returns to privileged EXEC mode.

Step 15 Switch# show ip sla configuration [operation-number]

Shows the configured IP SLAs operation.

Step 16 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To remove an IP SLAs operation, enter the no ip sla operation-number global configuration command.

The following example illustrates how to configurean IP SLA CFM Probe or Jitter Operation:

Switch(config)# ip sla 1 Switch(config-ip-sla)# ethernet echo mpid 23 domain abc vlan 5 Switch(config-ip-sla-ethernet-echo)# exit Switch(config)# ip sla schedule 1 start-time now

Switch# show ip sla configuration 1 IP SLAs, Infrastructure Engine-II.

Entry number1 Owner: Tag: Type of operation to perform: 802.1ag Echo
Page 1311 of the Cisco Systems 4500 user manual — Configuring an IP SLAs Operation with Endpoint Discovery
Page 1311 · click to enlarge
Page 1311

Chapter 57 Configuring Ethernet OAM and CFM

Target domain: abc Target MPID: 23 Target VLAN ID: 5 Request size (Padding portion): 0 Operation timeout (milliseconds): 5000 Class Of Service parameters: 0 Schedule: Operation frequency (seconds): 60 Next Scheduled Start Time: Start Time already passed Group Scheduled : FALSE Randomly Scheduled : FALSE Life (seconds): 3600 Entry Ageout (seconds): never Recurring (Starting Everyday): FALSE Status of entry (SNMP RowStatus): Active Threshold (milliseconds): 5000 Distribution Statistics: Number of statistic hours kept: 2 Number of statistic distribution buckets kept: 1 Statistic distribution interval (milliseconds): 20 Enhanced History: History Statistics: Number of history Lives kept: 0 Number of history Buckets kept: 15 History Filter Type: None

Configuring an IP SLAs Operation with Endpoint Discovery

To use IP SLAs to automatically discover the CFM endpoints for a domain and VLAN ID, perform this task. You can configure ping or jitter operations to the discovered endpoints.

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip sla ethernet-monitor operation-number

Begins configuration of an IP SLAs automatic Ethernet operation, and enter IP SLAs Ethernet monitor configuration mode.

Configuring Ethernet CFM · Switch#

Page 1312 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1312 · click to enlarge
Page 1312

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Step 3 Switch(config-ip-sla-ethernet-monitor)# type echo domain domain-name vlan vlan-id [exclude-mpids mp-ids]

Configures the automatic Ethernet operation to create echo (ping) or jitter operation and enters IP SLAs Ethernet echo configuration mode.

  • Enter type echo for a ping operation or type jitter for a jitter operation.
  • For mpid identifier , enter a maintenance endpoint identifier. The range is 1 to 8191.

type jitter domain domain-name vlan vlan-id [exclude-mpids mp-ids] [interval interpacket-interval] [num-frames number-of frames transmitted]

  • For domain domain-name , enter the CFM domain name.
  • For vlan vlan-id , the VLAN range is from 1 to 4095.
  • (Optional) Enter exclude-mpids mp-ids to exclude the specified maintenance endpoint identifiers.
  • (Optional—for jitter only) Enter the interval between sending of jitter packets.
  • (Optional—for jitter only) Enter the num-frames and the number of frames to be sent.

Step 4 Switch(config-ip-sla-ethernet-echo)# cos cos-value

(Optional) Sets a class of service value for the operation.

Step 5 Switch(config-ip-sla-ethernet-echo)# owner owner-id

(Optional) Configures the SNMP owner of the IP SLAs operation.

Step 6 Switch(config-ip-sla-ethernet-echo)# request-data-size bytes

(Optional) Specifies the protocol data size for an IP SLAs request packet. The range is from 0 to the maximum size allowed by the protocol being used; the default is 66 bytes.

Step 7 Switch(config-ip-sla-ethernet-echo)# tag text (Optional) Creates a user-specified identifier for an IP SLAs operation.

Step 8 Switch(config-ip-sla-ethernet-echo)# threshold milliseconds

(Optional) Specifies the upper threshold value in milliseconds for calculating network monitoring statistics. The range is 0 to 2147483647; the default is 5000.

Step 9 Switch(config-ip-sla-ethernet-echo)# timeout milliseconds

(Optional) Specifies the amount of time in milliseconds that the IP SLAs operation waits for a response from its request packet. The range is 0 to 604800000; the default value is 5000.

Step 10 Switch(config-ip-sla-ethernet-echo)# exit Returns to global configuration mode.

or

Page 1313 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1313 · click to enlarge
Page 1313

Chapter 57 Configuring Ethernet OAM and CFM

Step 11 Switch(config)# ip sla schedule operation-number [ageout seconds] [life {forever | seconds}] [recurring] [start-time {hh:mm {:ss} [month day | day month] | pending | now | after hh:mm:ss}]

Schedules the time parameters for the IP SLAs operation.

  • operation-number —Enter the IP SLAs operation number.
  • (Optional) ageout seconds —Enter the number of seconds to keep the operation in memory when it is not actively collecting information. The range is 0 to 2073600 seconds. The default is 0 seconds.
  • (Optional) life —Set the operation to run indefinitely ( forever ) or for a specific number of seconds . The range is from 0 to 2147483647. The default is 3600 seconds (1 hour)
  • (Optional) recurring —Set the probe to be automatically scheduled every day.
  • (Optional) start-time —Enter the time for the operation to begin collecting information:

– To start at a specific time, enter the hour, minute, second (in 24-hour notation), and day of the month.

– Enter pending to select no information collection until a start time is selected.

– Enter now to start the operation immediately.

– Enter after hh:mm:ss to show that the operation should start after the entered time has elapsed.

Step 12 Switch(config)# end Returns to privileged EXEC mode.

Step 13 Switch# show ip sla ehternet-monitor configuration [operation-number]

Shows the configured IP SLAs Auto Ethernet Monitor operation.

Step 14 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To remove an IP SLAs operation, enter the no ip sla operation-number global configuration command.

The following example illustrates how to configurean an IP SLAs Operation with Endpoint Discovery:

Switch(config)# ip sla ethernet-monitor 10 Switch(config- ip-sla-ethernet-monitor)#type echo domain abc vlan 34 Switch(config-ip-sla-ethernet-params)# exit Switch(config)# ip sla ethernet-monitor schedule 10 schedule-period 60 start-time now Switch(config)# exit

Switch# show ip sla ethernet-monitor configuration 10 Entry Number : 10 Modification time : *10:12:01.725 UTC Mon Nov 29 2010 Operation Type : echo Domain Name : abc VLAN ID : 5 Excluded MPIDs : Owner : Tag : Timeout(ms) : 5000 Threshold(ms) : 5000 Frequency(sec) : 60

Configuring Ethernet CFM

Page 1314 of the Cisco Systems 4500 user manual — Configuring CFM on C-VLAN (Inner VLAN)
Page 1314 · click to enlarge
Page 1314

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Operations List : Empty Schedule Period(sec): 60 Request size : 0 CoS : 0 Start Time : Start Time already passed SNMP RowStatus : Active

Configuring CFM on C-VLAN (Inner VLAN)

IEEE 802.1ag CFM brings in a support that allows customers to provision maintenance intermediate points (MIPs) and Up maintenance endpoints (MEPs) on the C-VLAN (inner VLAN) component of QinQ ports to provide visibility on the C-VLAN. C-VLANs are now supported on 802.1q tunnel ports. This allows monitoring or troubleshooting when QinQ is enabled on the provider edge (PE) device.

For more information about this feature and the supported commands, see: http://www.cisco.com/en/US/docs/ios/cether/configuration/guide/ce_cfm-ieee_cvlan.html

The switch supports 802.1q-tunnel-port mode.

To configure Ethernet CFM CVLAN Up MEPs, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ethernet cfm domain domain-name level level-id

Define a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 3 Switch(config-ecfm)# service {ma-name | ma-number | vpn-id} vlan svlan-id inner-vlan cvlan-id

Define a customer service maintenance association name or number or VPN ID to be associated with the domain, define a CVLAN service, and enter ethernet-cfm-service configuration mode.

  • ma-name —a string of no more than 100 characters that identifies the MAID.
  • ma-number— a value from 0 to 65535.
  • vpn-id vpn —enter a VPN ID as the ma-name.
  • vlan svlan-id— VLAN range is from 1 to 4094. This identifies the outer VLAN (service provider vlan id) that CFM frames go out with.
  • inner-vlan cvlan-id— VLAN range is from 1 to 4094. This identifies the inner vlan(customer VLAN) that is monitored through CFM.

Step 4 Switch(config-ecfm-arv)# continuity-check Enables sending and receiving of continuity check messages.

Switch#

Page 1315 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1315 · click to enlarge
Page 1315

Chapter 57 Configuring Ethernet OAM and CFM

Step 5 Switch(config-ecfm-arv)# continuity-check interval value

(Optional) Set the interval at which continuity check messages are sent. The available values are 1 second, 10 seconds, 1 minute and 10 minutes. The default is 10 seconds.

Step 6 Switch(config-ecfm-arv)# continuity-check loss-threshold threshold-value

(Optional) Set the number of continuity check messages to be missed before declaring that an MEP is down. The range is 2 to 255; the default is 3.

Step 7 Switch(config-ecfm-arv)# exit Returns to Return to ethernet-cfm configuration mode.

Step 8 Switch(config-ecfm)# exit Returns to global configuration mode.

Step 9 Switch(config)# interface interface-id Identify the CVLAN MEP interface and enter interface configuration mode.

Step 10 Switch(config-if)# ethernet cfm mep domain domain-name mpid identifier service {ma-name | ma-number | vpn-id}]

Configure the interface as a CVLAN Up MEP for the domain.

  • domain domain-name —Specify the name of the created domain.
  • mpid identifier— Enter a maintenance end point identifier. The identifier must be unique for each VLAN (service instance). The range is 1 to 8191.
  • service { ma-name | ma-number | vpn-id }—Use the same service identifier that was used for configuring CVLAN Service above in Step3.

Step 11 Switch(config-if)# end Returns to privileged EXEC mode.

Step 12 Switch# show ethernet cfm maintenance-points local

Verify the configuration.

Step 13 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no form of each command to remove a configuration or to return to the default settings.

This is a sample configuration for a CVLAN Up MEP:

Switch(config)# ethernet cfm domain abc level 3 Switch(config-ecfm)# service CVLANMEP vlan 10 inner-vlan 20 Switch(config-ecfm-srv)# continuity-check Switch(config-ecfm-srv)# exit Switch(config-ecfm)# exit Switch(config)# interface gigabitethernet1/1 Switch(config-if)# ethernet cfm mep domain abc mpid 1020 service CVLANMEP Switch(config-if)# end

Similarly, a manual configuration of MIP for CVLAN is configured using the ethernet cfm mip level level-id vlan svlan-id inner-vlan cvlan-id command.

Configuring Ethernet CFM

Page 1316 of the Cisco Systems 4500 user manual — Platform Restrictions and Limitations
Page 1316 · click to enlarge
Page 1316

Chapter 57 Configuring Ethernet OAM and CFM Configuring Ethernet CFM

Feature Support and Behavior

CFM S-VLAN component support:

  • Up MEPs at any level (0 to 7).

Up MEPs use the port access VLAN ID (the outer tag or S-VLAN).

CFM frames sent and received by Up MEPs have a single VLAN tag, and the VLAN identifier is the port access VLAN ID (S-VLAN). Because the 802.1q tunnel interface marks the endpoint of the S-VLAN, the associated S-VLAN component should mark the endpoint of the CFM domain running over the S-VLAN space.

CFM C-VLAN component support:

  • Up MEP functions at any level (0 to 7).

Up MEPs use two tags: an outer tag with a VLAN ID that is the port access VLAN (S-VLAN) and an inner tag with a selected C-VLAN that is allowed through the 802.1q tunnel port. CFM frames sent and received by these Up MEPs are always double-tagged.

  • MIP functions at any level (0 to 7).

MIPs process CFM frames that are single-tagged when coming from the wire-side and double-tagged when coming from the relay-function side.

  • Transparent point functions.

Supported maintenance points on 802.1q tunnels:

  • Up MEP on the C-VLAN component for selective or all-to-one bundling
  • Up MEP on the S-VLAN
  • Port MEP
  • MIP support on C-VLAN component for selective or all-to-one bundling

Platform Restrictions and Limitations

  • Maximum supported MEPs per switch at each continuity check message (CCM) interval:

– 1600 MEP local and 1600 MEP remote (on C-VLAN and S-VLAN) with 10-second intervals

– 250 MEP local and 250 MEP remote (on C-VLAN and S-VLAN) with 1-second intervals

  • Maximum supported MIPs at each CCM interval:

– 300 MIPs at 10 seconds

– 125 MIPs at 1 second

  • There could be issues detecting cross-connect errors on the Catalyst 4500 Series Switch.
  • These features are not supported:

– CFM C-component on the native VLAN

– Down MEP on S or C-VLAN (provider network port)

– MIP on S-VLAN (provider network port)

– CFM C-VLAN alarm indication signal (AIS)

Page 1317 of the Cisco Systems 4500 user manual — Y.1731 Terminology
Page 1317 · click to enlarge
Page 1317

Chapter 57 Configuring Ethernet OAM and CFM

Understanding CFM ITU-T Y.1731 Fault Management

– 802.3ah interworking with CFM C-VLAN

– CFM C-VLAN IP SLAs

– CFM C-VLAN MIP autocreation

– CFM C-VLAN with One-to-One VLAN mapping on Trunk ports.

Understanding CFM ITU-T Y.1731 Fault Management

The ITU-T Y.1731 feature provides new CFM functionality for fault and performance management for service providers in large network. The switch supports Ethernet Alarm Indication Signal (ETH-AIS), Ethernet Remote Defect Indication (ETH-RDI), Ethernet Locked Signal (ETH-LCK), and Ethernet Multicast Loopback Message (MCAST-LBM) functionality for fault detection, verification, and isolation.

  • Y.1731 Terminology, page 57-27
  • Alarm Indication Signals, page 57-28
  • Ethernet Remote Defect Indication, page 57-28
  • Multicast Ethernet Loopback, page 57-29

Y.1731 Terminology

  • Server MEP—the combination of the server layer termination function and server or Ethernet adaptation layer termination function or server or Ethernet adaptation function, where the server layer termination function is expected to run OAM mechanisms specific to the server layer. The supported mechanisms are link up, link down, and 802.3ah.
  • Server layer—a virtual MEP layer capable of detecting fault conditions.
  • Defect conditions:
– Loss of continuity (LOC)the MEP stopped receiving CCM frames from a peer MEP

– Mismerge: the MEP received a CCM frame with a correct maintenance level (matching the MEP level) but an incorrect maintenance ID.

– Unexpected MEP: the MEP received a CCM frame with the correct maintenance level (matching the MEP’s level) and correct maintenance ID, but an unexpected MEP ID.

– Unexpected maintenance level: the MEP received a CCM frame with an incorrect maintenance level.

– Unexpected period: the MEP received a CCM frame with a correct maintenance level, a correct maintenance ID, a correct MEP ID, but a different transmission period field.

  • Signal fail—the MEP declares a signal fail condition when it detects a defect condition.
  • Alarm Indication Signal (AIS) condition—the MEP received an AIS frame.
  • Remote Defect Indication (RDI) condition—The MEP received a CCM frame with the RDI field set.
Page 1318 of the Cisco Systems 4500 user manual — Ethernet Remote Defect Indication
Page 1318 · click to enlarge
Page 1318

Chapter 57 Configuring Ethernet OAM and CFM Understanding CFM ITU-T Y.1731 Fault Management

Alarm Indication Signals

The Ethernet Alarm Signal function (ETH-AIS) is used to suppress alarms after defects are detected at the server (sub) layer, which is a virtual MEP layer capable of detecting fault conditions. A fault condition could be a signal fail condition, an AIS condition, or a LCK condition.

When a MEP or a service MEP (SMEP) detects a connectivity fault at a specific maintenance association level, it multicasts AIS frames in the direction away from the detected failure at the client maintenance association level. The frequency of AIS frame transmission is based on the AIS transmission period. The first AIS frame is always sent immediately following the detection of the defect condition. We recommend a transition period of 1 second in a network of only a few VLANs to ensure that the first AIS frame is sent immediately following error detection. We recommend a 60-second interval in a network of multiple (up to 4094) VLANs to prevent stressing the network with 1-second transmissions.

A MEP that receives a frame with ETH-AIS information cannot determine the specific server with the defect condition or the set of peer MEPs for which it should suppress alarms. Therefore, it suppresses alarms for all peer MEPs, whether or not they are connected.

When a MEP receives an AIS frame, it examines it to be sure that the Maintenance Entity Group (MEG) level matches its own MEG and then detects the AIS default condition. (A MEG is Y.1731 terminology for maintenance association in 802.1ag.) After this detection, if no AIS frames are received for an interval of 3.5 times the AIS transmission period, the MEP clears the AIS defect condition. For example, if the AIS timer is set for 60 seconds, the AIS timer period expires after 3.5 times 60, or 210 seconds.

The AIS condition is terminated when a valid CCM is received with all error conditions cleared or when the AIS period timer expires (the default time is 60 seconds).

Ethernet Remote Defect Indication

When Ethernet OAM continuity check (ETH-CC) transmission is enabled, the Ethernet Remote Defect Indication (ETH-RDI) function uses a bit in the CFM CC message to communicate defect conditions to the MEP peers. For ETH-RDI functionality, you must configure the MEP MEG level, the ETH-CC transmission period, and the ETH-CC frame priority. ETH-RDI does not require any MIP configuration.

When a MEP receives frames with ETH-RDI information, it determines that its peer MEP has encountered a defect condition and sets the RDI files in the CCM frames for the duration of the defect condition. When the defect condition clears, the MEP clears the RDI field.

When a MEP receives a CCM frame, it examines it to ensure that its MEG level is the same and if the RDI field is set, it detects an RDI condition. For point-to-point Ethernet connections, a MEP can clear the RDI condition when it receives the first frame from its peer MEP with the RDI field cleared. However, for multipoint Ethernet connectivity, the MEP cannot determine the associated subset of peer MEPs with which the sending MEP has seen the defect condition. It can clear the RDI condition after it receives CCM frames with the RDI field cleared from its entire list of peer MEPs.

Page 1319 of the Cisco Systems 4500 user manual — Configuring ETH-AIS
Page 1319 · click to enlarge
Page 1319

Chapter 57 Configuring Ethernet OAM and CFM

Configuring Y.1731 Fault Management

Multicast Ethernet Loopback

The multicast Ethernet loopback (ETH-LB) function verifies bidirectional connectivity of a MEP with its peer MEPs and is an on-demand OAM function. When the feature is invoked on a MEP by entering the ping privileged EXEC command, the MEP sends a multicast frame with ETH-LB request information to peer MEPs in the same MEG. The MEP expects to receive a unicast frame with ETH-LB reply information from its peer MEPs within a specified time period. A MEP receiving a multicast frame with ETH-LB request information validates the frame and transmits a frame with reply information.

To configure multicast ETH-LB, you configure the MEG level of the MEP and the priority of the multicast frames with ETH-LB requests. Multicast frames with ETH-LB request information are always marked as drop ineligible. No MIP configuration is required.

The MEP sends multicast LB message frames on an on-demand basis. After sending a multicast LBM frame, the MEP expects to receive LB reply frames within 5 seconds.

When a MEP receives a valid LBM frame, it generates an LB reply frame and sends it to the requested MEP after a random delay in the range of 0 to 1 second. The validity of the frame is determined on its having the correct MEG level.

When a MEP sends a multicast LBM frame and receives an LB reply frame within 5 seconds, the LB reply frame is valid.

Configuring Y.1731 Fault Management

To configure Y.1731 fault management, you must enable CFM and configure MIPs on the participating interfaces. AIS messages are generated only on interfaces with a configured MIP.

  • Default Y.1731 Configuration, page 57-29
  • Configuring ETH-AIS, page 57-29
  • Using Multicast Ethernet Loopback, page 57-31

Default Y.1731 Configuration

ETH-AIS and ETH-LCK are enabled by default when CFM is enabled.

When you configure ETH-AIS or ETH-LCK, you must configure CFM before ETH-AIS or ETH-LCK is operational.

ETH-RDI is set automatically when continuity check messages are enabled.

Configuring ETH-AIS

Beginning in privileged EXEC mode, follow these steps to configure Ethernet AIS on a switch:

Step 1 configure terminal Enters global configuration mode.

Step 2 ethernet cfm ais link-status global Configures AIS-specific SMEP commands by entering config-ais-link-cfm mode.

Page 1320 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1320 · click to enlarge
Page 1320

Chapter 57 Configuring Ethernet OAM and CFM Configuring Y.1731 Fault Management

Step 3 level level-id

Configures the maintenance level for sending AIS frames transmitted by the SMEP. The range is 0 to 7.

Disables generation of ETH-AIS frames.

Step 4 period value Configures the SMEP AIS transmission period interval. Allowable values are 1 second or 60 seconds.

Step 5 exit Returns to global configuration mode.

Step 6 ethernet cfm domain domain-name level level-id Defines a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 7 service {ma-name | ma-number | vpn-id vpn} {vlan vlan-id [direction down] | port}

Defines a customer service maintenance association (MA) name or number to be associated with the domain, or a VLAN ID or VPN-ID, and enter ethernet-cfm-service configuration mode.

  • ma-name —a string of no more than 100 characters that identifies the MAID.
  • ma-number —a value from 0 to 65535.
  • vpn-id —enter a VPN ID as the ma-name .
  • vlan vlan-id —VLAN range is from 1 to 4094. You cannot use the same VLAN ID for more than one domain at the same level.
  • (Optional) direction down —specify the service direction as down.
  • port —Configure port MEP, a down MEP that is untagged and not associated with a VLAN.

Step 8 ais level level-id (Optional) Configures the maintenance level for sending AIS frames transmitted by the MEP. The range is 0 to 7.

Step 9 ais period value (Optional) Configures the MEP AIS transmission period interval. Allowable values are 1 second or 60 seconds.

Step 10 ais expiry-threshold value (Optional) Sets the expiring threshold for the MA as an integer. The range is 2 to 255. The default is 3.5.

Step 11 no ais suppress-alarms (Optional) Overrides the suppression of redundant alarms when the MEP goes into an AIS defect condition after receiving an AIS message.

Step 12 exit Returns to ethernet-cfm configuration mode.

Step 13 exit Returns to global configuration mode.

Step 14 interface interface-id Specifies an interface ID, and enter interface configuration mode.

Step 15 [no] ethernet cfm ais link-status Enables or disable sending AIS frames from the SMEP on the interface.

Step 16 ethernet cfm ais link-status period value Configures the ETH-AIS transmission period generated by the SMEP on the interface. Allowable values are 1 second or 60 seconds.

or disable · or

Page 1321 of the Cisco Systems 4500 user manual — Managing and Displaying Ethernet CFM Information
Page 1321 · click to enlarge
Page 1321

Chapter 57 Configuring Ethernet OAM and CFM

Managing and Displaying Ethernet CFM Information

Step 17 ethernet cfm ais link-status level level-id Configures the maintenance level for sending AIS frames transmitted by the SMEP on the interface. The range is 0 to 7.

Step 18 end Returns to privileged EXEC mode.

Step 19 show ethernet cfm smep [interface interface-id] Verifies the configuration.

Step 20 show ethernet cfm error Displays received ETH-AIS frames and other errors.

Step 21 copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no form of the commands to return to the default configuration or to remove a configuration. To disable the generation of ETH-AIS frames, enter the disable config-ais-link-cfm mode command.

This is an example of the output from the show ethernet cfm smep command when Ethernet AIS has been enabled:

Switch# show ethernet cfm smep SMEP Settings: Interface: GigabitEthernet1/0/3 LCK-Status: Enabled LCK Period: 60000 (ms) Level to transmit LCK: Default AIS-Status: Enabled AIS Period: 60000 (ms) Level to transmit AIS: Default Defect Condition: AIS

Using Multicast Ethernet Loopback

You can use the ping privileged EXEC command to verify bidirectional connectivity of a MEP, as in this example:

Switch# ping ethernet multicast domain CD vlan 10 Type escape sequence to abort. Sending 5 Ethernet CFM loopback messages to 0180.c200.0037, timeout is 5 seconds: Reply to Multicast request via interface FastEthernet1/0/3, from 001a.a17e.f880, 8 ms Total Loopback Responses received: 1

Managing and Displaying Ethernet CFM Information

You can use the privileged EXEC commands in these tables to clear Ethernet CFM information.

Table 57-1 Clearing CFM Information

clear ethernet cfm ais domain domain-name mpid id {vlan vlan-id | port}

Clears MEPs with matching domain and VLAN ID out of AIS defect condition.

clear ethernet cfm ais link-status interface interface-id

Clears a SMEP out of AIS defect condition.

clear ethernet cfm error Clears all CFM error conditions, including AIS.

Page 1322 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1322 · click to enlarge
Page 1322

Chapter 57 Configuring Ethernet OAM and CFM Managing and Displaying Ethernet CFM Information

You can use the privileged EXEC commands in Table 57-2 to display Ethernet CFM information.

Table 57-2 Displaying CFM Information

show ethernet cfm domain [brief] Displays CFM domain information or brief domain information.

show ethernet cfm errors [configuration | domain-id]

Displays CFM continuity check error conditions logged on a device since it was last reset or the log was last cleared. When CFM crosscheck is enabled, displays the results of the CFM crosscheck operation.

show ethernet cfm maintenance-points local [detail | domain | interface | level | mep | mip]

Displays maintenance points configured on a device.

show ethernet cfm maintenance-points remote [crosscheck | detail | domain | static]

Displays information about a remote maintenance point domains or levels or details in the CFM database.

show ethernet cfm mpdb Displays information about entries in the MIP continuity-check database.

show ethernet cfm smep [interface interface-id]

Displays Ethernet CFM SMEP information.

show ethernet cfm traceroute-cache Displays the contents of the traceroute cache.

This is an example of output from the show ethernet cfm domain brief command:

Switch# show ethernet cfm domain brief Domain Name Index Level Services Archive(min) level5 1 5 1 100 level3 2 3 1 100 test 3 3 3 100 name 4 3 1 100 test1 5 2 1 100 lck 6 1 1 100Total Services : 1

This is an example of output from the show ethernet cfm errors command:

Switch# show ethernet cfm errors MPID Domain Id Mac Address Type Id Lvl MAName Reason Age 6307 level3 0021.d7ee.fe80 Vlan 7 3 vlan7 Receive RDI 5s

This is an example of output from the show ethernet cfm maintenance-points local detail command:

Switch# show ethernet cfm maintenance-points local detail Local MEPs: MPID: 7307 DomainName: level3 Level: 3 Direction: Up Vlan: 7 Interface: Gi0/3 CC-Status: Enabled CC Loss Threshold: 3 MAC: 0021.d7ef.0700 LCK-Status: Enabled LCK Period: 60000(ms) LCK Expiry Threshold: 3.5

Page 1323 of the Cisco Systems 4500 user manual — About Ethernet OAM Protocol
Page 1323 · click to enlarge
Page 1323

Chapter 57 Configuring Ethernet OAM and CFM

About Ethernet OAM Protocol

Level to transmit LCK: Default Defect Condition: No Defect presentRDI: FALSE AIS-Status: Enabled AIS Period: 60000(ms) AIS Expiry Threshold: 3.5 Level to transmit AIS: Default Suppress Alarm configuration: Enabled Suppressing Alarms: No

MIP Settings: Local MIPs: * = MIP Manually Configured Level Port MacAddress SrvcInst Type Id *5 Gi0/3 0021.d7ef.0700 N/A Vlan 2,7

This is an example of output from the show ethernet cfm traceroute command:

Switch# show ethernet cfm traceroute Current Cache-size: 0 Hops Max Cache-size: 100 Hops Hold-time: 100 Minutes

You can use the privileged EXEC commands in Table 57-3 to display IP SLAs Ethernet CFM information.

Table 57-3 Displaying IP SLAs CFM Information

show ip sla configuration [entry-number] Displays configuration values including all defaults for all IP SLAs operations or a specific operation.

show ip sla ethernet-monitor configuration [entry-number]

Displays the configuration of the IP SLAs automatic Ethernet operation.

show ip sla statistics [entry-number | aggregated | details]

Displays current or aggregated operational status and statistics.

About Ethernet OAM Protocol

The Ethernet OAM protocol for installing, monitoring, and troubleshooting Metro Ethernet networks and Ethernet WANs relies on an optional sublayer in the data link layer of the OSI model. Normal link operation does not require Ethernet OAM. You can implement Ethernet OAM on any full-duplex point-to-point or emulated point-to-point Ethernet link for a network or part of a network (specified interfaces).

OAM frames, called OAM protocol data units (OAM PDUs) use the slow protocol destination MAC address 0180.c200.0002. They are intercepted by the MAC sublayer and cannot propagate beyond a single hop within an Ethernet network. Ethernet OAM is a relatively slow protocol, with a maximum transmission rate of 10 frames per second, resulting in minor impact to normal operations. However, because the CPU must poll error counters frequently, when you enable link monitoring, the number of required CPU cycles is proportional to the number of interfaces that must be polled.

Page 1324 of the Cisco Systems 4500 user manual — OAM Messages
Page 1324 · click to enlarge
Page 1324

Chapter 57 Configuring Ethernet OAM and CFM About Ethernet OAM Protocol

Ethernet OAM has two major components:

  • The OAM client establishes and manages Ethernet OAM on a link and enables and configures the OAM sublayer. During the OAM discovery phase, the OAM client monitors OAM PDUs received from the remote peer and enables OAM functionality. After the discovery phase, it manages the rules of response to OAM PDUs and the OAM remote loopback mode.
  • The OAM sublayer presents two standard IEEE 802.3 MAC service interfaces facing the superior and inferior MAC sublayers. It provides a dedicated interface for the OAM client to pass OAM control information and PDUs to and from the client. The sublayer includes these components:

– The control block provides the interface between the OAM client and other OAM sublayer internal blocks.

– The multiplexer manages frames from the MAC client, the control block, and the parser and passes OAM PDUs from the control block and loopback frames from the parser to the subordinate layer.

– The parser classifies frames as OAM PDUs, MAC client frames, or loopback frames and sends them to the appropriate entity: OAM PDUs to the control block, MAC client frames to the superior sublayer, and loopback frames to the multiplexer.

OAM Features

These OAM features are defined by IEEE 802.3ah:

  • Discovery identifies devices in the network and their OAM capabilities. It uses periodic OAM PDUs to advertise OAM mode, configuration, and capabilities; PDU configuration; and platform identity. An optional phase allows the local station to accept or reject the configuration of the peer OAM entity.
  • Link monitoring detects and indicates link faults under a variety of conditions and uses the event notification OAM PDU to notify the remote OAM device when it detects problems on the link. Error events include when the number of symbol errors, the number of frame errors, the number of frame errors within a specified number of frames, or the number of error seconds within a specified period exceeding a configured threshold.
  • Remote failure indication conveys a slowly deteriorating quality of an OAM entity to its peers by communicating these conditions: Link Fault means a loss of signal, Dying Gasp means an unrecoverable condition, and Critical Event means an unspecified vendor-specific critical event. The switch can receive and process but not generate Link Fault or Critical Event OAM PDUs. It can generate Dying Gasp OAM PDUs to show that Ethernet OAM is disabled, the interface is shut down, the interface enters the error-disabled state, or the switch is reloading. It can respond to, but not generate, Dying Gasp PDUs based on loss of power.
  • Remote loopback mode ensures link quality with a remote peer during installation or troubleshooting. In this mode, when the switch receives a frame that is not an OAM PDU or a pause frame, it sends it back on the same port. The link appears to you to be functioning. You can use the returned loopback acknowledgement to test delay, jitter, and throughput.

OAM Messages

Ethernet OAM messages or PDUs are standard length, untagged Ethernet frames between 64 and 1518 bytes. They do not go beyond a single hop and have a maximum transmission rate of 10 OAM PDUs per second. Message types are information, event notification, loopback control, or vendor-specific OAM PDUs.

Page 1325 of the Cisco Systems 4500 user manual — Ethernet OAM Configuration Guidelines
Page 1325 · click to enlarge
Page 1325

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

Enabling and Configuring Ethernet OAM

This section includes this information:

  • Ethernet OAM Default Configuration, page 57-35
  • Ethernet OAM Configuration Guidelines, page 57-35
  • Enabling Ethernet OAM on an Interface, page 57-36
  • Enabling Ethernet OAM Remote Loopback, page 57-37
  • Configuring Ethernet OAM Link Monitoring, page 57-38
  • Configuring Ethernet OAM Remote Failure Indications, page 57-42
  • Configuring Ethernet OAM Templates, page 57-45

Ethernet OAM Default Configuration

The default configuration is as follows:

  • Ethernet OAM is disabled on all interfaces.
  • When Ethernet OAM is enabled on an interface, link monitoring is automatically turned on.
  • Remote loopback is disabled.
  • No Ethernet OAM templates are configured.

Ethernet OAM Configuration Guidelines

Follow these guidelines when configuring Ethernet OAM:

  • The switch does not support monitoring of egress frames sent with cyclic redundancy code (CDC) errors. The ethernet oam link-monitor transmit crc interface-configuration or template-configuration commands are visible but are not supported on the switch. The commands are accepted but are not applied to an interface.
  • For a remote failure indication, the switch does not generate Link Fault or Critical Event OAM PDUs. However, if these PDUs are received from a link partner, they are processed. The switch generates and receives Dying Gasp OAM PDUs when Ethernet OAM is disabled, the interface is shut down, the interface enters the error-disabled state, or the switch is reloading. It can respond to, but not generate, Dying Gasp PDUs based on loss of power.
  • The switch does not support Ethernet OAM loopback on ports that belong to an EtherChannel, ISL trunk, and promiscuous trunk.
Page 1326 of the Cisco Systems 4500 user manual — Enabling Ethernet OAM on an Interface
Page 1326 · click to enlarge
Page 1326

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

Enabling Ethernet OAM on an Interface

To enable Ethernet OAM on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Defines an interface to configure as an EOM interface, and enters interface configuration mode.

Step 3 Switch(config-if)# ethernet oam Enables Ethernet OAM on the interface.

Step 4 Switch(config-if)# ethernet oam [max-rate oampdus | min-rate seconds | mode {active | passive} | timeout seconds]

Configures these optional OAM parameters:

  • (Optional) Enter max-rate oampdus to configure the maximum number of OAM PDUs sent per second. The range is from 1 to 10.
  • (Optional) Enter min-rate seconds to configure the minimum transmission rate in seconds when one OAM PDU is sent per second. The range is from 1 to 10.
  • (Optional) Enter mode active to set OAM client mode to active. active is the default.
  • (Optional) Enter mode passive to set OAM client mode to passive.
  • (Optional) Enter timeout seconds to set a time for OAM client timeout. The range is from 2 to 30.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show ethernet oam status [interface interface-id]

Verifies the configuration.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Enter the no ethernet oam interface configuration command to disable Ethernet OAM on the interface.

This example shows how to set basic OAM parameters on the switch:

Switch(config)# int gi1/3 Switch(config-if)# ethernet oam Switch(config-if)# ethernet oam max-rate 9 Switch(config-if)# ethernet oam mode passive Switch(config-if)# end Switch# show ethernet oam status int gi1/2 GigabitEthernet1/2

General Admin state: enabled Mode: passive PDU max rate: 9 packets per second PDU min rate: 1 packet per 1 second Link timeout: 5 seconds High threshold action: no action

Page 1327 of the Cisco Systems 4500 user manual — Enabling Ethernet OAM Remote Loopback
Page 1327 · click to enlarge
Page 1327

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

Link fault actionno action Dying gasp action: no action Critical event action: no action
Link Monitoring --------------- Statussupported (on)
Symbol Period Error Window100 x 1048576 symbols Low threshold: 1 error symbol(s) High threshold: none
Frame Error Window10 x 100 milliseconds Low threshold: 1 error frame(s) High threshold: none
Frame Period Error Window1000 x 10000 frames Low threshold: 1 error frame(s) High threshold: none
Frame Seconds Error Window100 x 100 milliseconds Low threshold: 1 error second(s) High threshold: none
Receive-Frame CRC Error Window10 x 100 milliseconds Low threshold: 10 error frame(s) High threshold: none
Transmit-Frame CRC ErrorNot Supported

Enabling Ethernet OAM Remote Loopback

You must enable Ethernet OAM remote loopback on an interface for the local OAM client to initiate OAM remote loopback operations. Changing this setting causes the local OAM client to exchange configuration information with its remote peer. Remote loopback is disabled by default.

Remote loopback has these limitations:

  • Only data packets are looped back.
  • You cannot configure Ethernet OAM remote loopback on ISL ports or ports that belong to an EtherChannel.
  • Remote loopback can be supported on a max of 16 ports.

To enable Ethernet OAM remote loopback on an interface, follow these steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Defines an interface to configure as an EOM interface, and enters interface configuration mode.

Page 1328 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM Link Monitoring
Page 1328 · click to enlarge
Page 1328

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

Step 3 Switch(config-if)# ethernet oam remote-loopback {supported | timeout seconds}

Enables Ethernet remote loopback on the interface or set a loopback timeout period.

  • Enter supported to enable remote loopback.
  • Enter timeout seconds to set a remote loopback timeout period. The range is from 1 to 10 seconds.

Step 4 Switch(config-if)# ethernet oam remote-loopback {start | stop} {interface interface-id}

Turns on or turn off Ethernet OAM remote loopback on an interface.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show ethernet oam status [interface interface-id]

Verifies the configuration.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no ethernet oam remote-loopback {supported | timeout} interface configuration command to disable remote loopback support or remove the timeout setting.

This example shows how to enable OAM Remote Loopback:

Switch(config)# int gi1/3 Switch(config-if)# ethernet oam Switch(config-if)# ethernet oam remote-loopback supported Switch(config-if)# end Switch# show running int gi1/1 Building configuration...

Current configuration : 209 bytes ! interface GigabitEthernet1/1 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,19 switchport mode trunk ethernet oam remote-loopback supported ethernet oam end

Switch# ethernet oam remote-loopback start int gi1/1 it is a intrusive loopback. Therefore, while you test Ethernet OAM MAC connectivity, you will be unable to pass traffic across that link. Proceed with Remote Loopback? [confirm]

Switch# ethernet oam remote-loopback stop int gi1/1 Switch# *Apr 9 12:52:39.793: %ETHERNET_OAM-6-LOOPBACK: Interface Gi1/1 has exited the master loopback mode.

Configuring Ethernet OAM Link Monitoring

You can configure high and low thresholds for link-monitoring features. If no high threshold is configured, the default is none; no high threshold is set. If you do not set a low threshold, the default is a value lower than the high threshold.

Link event PDUs for rxcrc and trxcrc errors are not generated because they are nonstandard.

Page 1329 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1329 · click to enlarge
Page 1329

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

To configure Ethernet OAM link monitoring on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Defines an interface, and enters interface configuration mode.

Step 3 Switch(config-if)# ethernet oam link-monitor supported

Enables the interface to support link monitoring. it is the default.

You need to enter this command only if it has been disabled by previously entering the no ethernet oam link-monitor supported command.

Step 4 Switch(config-if)# ethernet oam link-monitor symbol-period {threshold {high {high symbols | none} | low {low-symbols}} | window symbols}

(Optional) Configures high and low thresholds for an error-symbol period that trigger an error-symbol period link event.

Repeat this step to configure both high and low thresholds.

  • Enter threshold high high-symbols to set a high threshold in number of symbols. The range is 1 to 65535. The default is none .
  • Enter threshold high none to disable the high threshold if it was set. it is the default.
  • Enter threshold low low-symbols to set a low threshold in number of symbols. The range is 0 to 65535. It must be lower than the high threshold.
  • Enter window symbols to set the window size (in number of symbols) of the polling period. The range is 1 to 65535 symbols.

Step 5 Switch(config-if)# ethernet oam link-monitor frame {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds}

(Optional) Configures high and low thresholds for error frames that trigger an error-frame link event.

  • Enter threshold high high-frames to set a high threshold in number of frames. The range is 1 to 65535. The default is none .

Repeat this step to configure both high and low thresholds.

  • Enter threshold high none to disable the high threshold if it was set. it is the default.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 0 to 65535. The default is 1.
  • Enter window milliseconds to set the a window and period of time during which error frames are counted. The range is 10 to 600 and represents the number of milliseconds in multiples of 100. The default is 100.
Page 1330 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1330 · click to enlarge
Page 1330

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

Step 6 Switch(config-if)# ethernet oam link-monitor frame-period {threshold {high {high-frames | none} | low {low-frames}} | window frames}

(Optional) Configures high and low thresholds for the error-frame period that triggers an error-frame-period link event.

Repeat this step to configure both high and low thresholds.

  • Enter threshold high high-frames to set a high threshold in number of frames. The range is 1 to 65535. The default is none .
  • Enter threshold high none to disable the high threshold if it was set. it is the default.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 0 to 65535. The default is 1.
  • Enter window frames to set the a polling window size in number of frames. The range is 1 to 65535; each value is a multiple of 10000 frames. The default is 1000.

Step 7 Switch(config-if)# ethernet oam link-monitor frame-seconds {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds}

(Optional) Configures high and low thresholds for the frame-seconds error that triggers an error-frame-seconds link event.

Repeat this step to configure both high and low thresholds.

  • Enter threshold high high-frames to set a high error frame-seconds threshold in number of seconds. The range is 1 to 900. The default is none.
  • Enter threshold high none to disable the high threshold if it was set. it is the default.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 1 to 900. The default is 1.
  • Enter window frames to set the a polling window size in number of milliseconds. The range is 100 to 9000; each value is a multiple of 100 milliseconds. The default is 1000.
Page 1331 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1331 · click to enlarge
Page 1331

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

Step 8 Switch(config-if)# ethernet oam link-monitor receive-crc {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds}

(Optional) Configures thresholds for monitoring ingress frames received with cyclic redundancy code (CRC) errors for a period of time.

Repeat this step to configure both high and low thresholds.

  • Enter threshold high high-frames to set a high threshold for the number of frames received with CRC errors. The range is 1 to 65535 frames.
  • Enter threshold high none to disable the high threshold.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 0 to 65535. The default is 1.
  • Enter window milliseconds to set the a window and period of time during which frames with CRC errors are counted. The range is 10 to 1800 and represents the number of milliseconds in multiples of 100. The default is 100.

Step 9 Switch(config-if)# [no] ethernet link-monitor on

(Optional) Starts or stop (when the no keyword is entered) link-monitoring operations on the interface. Link monitoring operations start automatically when support is enabled.

Step 10 Switch(config-if)# end Returns to privileged EXEC mode.

Step 11 Switch# show ethernet oam status [interface interface-id]

Verifies the configuration.

Step 12 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

The ethernet oam link-monitor transmit-crc {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds} command is visible on the switch and you can enter it, but it is not supported. Enter the no form of the command to disable the configuration. Use the no form of each command to disable the threshold setting.

Symbol error counters are supported on the following line cards and supervisor engine cards:

  • Supervisor engine cards: WS-X4515, WS-X4516, WS-X4013+, WS-X4013+TS, WS-X4516-10GE, WS-X4013+10GE
  • Line cards: WS-X4148-RJ, WS-X4124-RJ, WS-X4232, WS-X4232-RJ-XX, WS-X4148-RJ21, WS-X4504-FX-MT, WS-X4224-RJ21-XX, WS-X4124-FX-MT, WS-X4232-L3

The rest of the cards do not support symbol error counters.

This example shows how to configure Ethernet OAM link monitoring:

Switch(config)# interface g1/1 Switch(config-if)# ethernet oam link-monitor receive-crc threshold high 1000 Switch(config-if)# ethernet oam link-monitor receive-crc threshold low 10 Switch(config-if)# ethernet oam link-monitor symbol-period threshold high 5000 Switch(config-if)# ethernet oam link-monitor symbol-period threshold low 5 Switch(config-if)# ethernet oam link-monitor frame threshold high 8000 Switch(config-if)# ethernet oam link-monitor frame threshold low 8 Switch(config-if)# ethernet oam link-monitor frame-period threshold hig 9000 Switch(config-if)# ethernet oam link-monitor frame-period threshold low 9

Switch# show ethernet oam status int gi1/1

Page 1332 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM Remote Failure Indications
Page 1332 · click to enlarge
Page 1332

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

GigabitEthernet1/1 General Admin state: enabled Mode: active PDU max rate: 10 packets per second PDU min rate: 1 packet per 1 second Link timeout: 5 seconds High threshold action: error disable interface Link fault action: no action Dying gasp action: no action Critical event action: no action

Link Monitoring --------------- Statussupported (on)
Symbol Period Error Window100 x 1048576 symbols Low threshold: 5 error symbol(s) High threshold: 5000 error symbol(s)
Frame Error Window10 x 100 milliseconds Low threshold: 8 error frame(s) High threshold: 8000 error frame(s)
Frame Period Error Window1000 x 10000 frames Low threshold: 9 error frame(s) High threshold: 9000 error frame(s)
Frame Seconds Error Window100 x 100 milliseconds Low threshold: 1 error second(s) High threshold: none
Receive-Frame CRC Error Window10 x 100 milliseconds Low threshold: 10 error frame(s) High threshold: 1000 error frame(s)
Transmit-Frame CRC ErrorNot Supported

Configuring Ethernet OAM Remote Failure Indications

You can configure an error-disable action to occur on an interface when the following occur:

  • Crossing the high thresholds configured on the interface for link monitoring
  • On reception of Dying Gasp, executing shut on the interface
  • On reception of Dying Gasp, executing reload command
  • On reception of Dying Gasp, executing no ethernet oam command on the interface
Page 1333 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1333 · click to enlarge
Page 1333

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

To enable Ethernet OAM remote-failure indication actions on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config# interface interface-id Defines an interface and enters interface configuration mode.

Step 3 Switch(config-if)# ethernet oam remote-failure [dying-gasp] action error-disable-interface

Configures the Ethernet OAM remote-failure action on the interface. You can configure disabling the interface by selecting dying-gasp to shut down the interface when Ethernet OAM is disabled or the interface enters the error-disabled state.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show ethernet oam status [interface interface-id]

Verifies the configuration.

Step 6 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

This example shows how to configure Ethernet OAM remote-failure action on the switch interface:

Switch# conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# int gi1/1 Switch(config-if)# ethernet oam remote-failure dying-gasp action error Switch(config-if)# ethernet oam link-monitor high-threshold action error Switch(config-if)# end Switch# show running-config int gi1/1 Building configuration...

Current configuration : 353 bytes ! interface GigabitEthernet1/1 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,19 switchport mode trunk ethernet oam remote-loopback supported ethernet oam link-monitor high-threshold action error-disable-interface ethernet oam remote-failure dying-gasp action error-disable-interface ethernet oam end Switch# show ethernet oam status int gi1/1 GigabitEthernet1/1 General Admin state: enabled Mode: active PDU max rate: 10 packets per second PDU min rate: 1 packet per 1 second Link timeout: 5 seconds High threshold action: error disable interface Link fault action: no action Dying gasp action: error disable interface Critical event action: no action

Page 1334 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1334 · click to enlarge
Page 1334

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

Link Monitoring --------------- Statussupported (on)
Symbol Period Error Window100 x 1048576 symbols Low threshold: 1 error symbol(s) High threshold: none
Frame Error Window10 x 100 milliseconds Low threshold: 1 error frame(s) High threshold: none
Frame Period Error Window1000 x 10000 frames Low threshold: 1 error frame(s) High threshold: none
Frame Seconds Error Window100 x 100 milliseconds Low threshold: 1 error second(s) High threshold: none
Receive-Frame CRC Error Window10 x 100 milliseconds Low threshold: 10 error frame(s) High threshold: none
Transmit-Frame CRC ErrorNot Supported

To enable Ethernet OAM failover action on an EtherChannel interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface port-channel interface-id

Defines an interface and enters interface configuration mode.

Step 3 Switch(config-if)# switchport mode mode Configures the mode of the EtherChannel interface.

Step 4 Switch(config-if)# ethernet oam link-monitor high-threshold action failover

Configures the Ethernet OAM remote-failure action on the port channel interface to failover. This action is configurable only for link monitoring RFI.

If failover is configured on the EtherChannel interface, the interface is not error-disabled if it is the last member port of the EtherChannel.

Step 5 Switch(config-if)# end Returns to privileged EXEC mode.

Step 6 Switch# show ethernet oam status [interface interface-id]

Verifies the configuration.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

The switch does not generate Link Fault or Critical Event OAM PDUs. However, if these PDUs are received from a link partner, they are processed. The switch supports sending and receiving Dying Gasp OAM PDUs when Ethernet OAM is disabled, the interface is shut down, the interface enters the

Page 1335 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM Templates
Page 1335 · click to enlarge
Page 1335

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

error-disabled state, or the switch is reloading. It can respond to but not generate Dying Gasp PDUs based on loss of power. Enter the no ethernet remote-failure {critical-event | dying-gasp | link-fault} action command to disable the remote failure indication action.

Configuring Ethernet OAM Templates

You can create a template for configuring a common set of options on multiple Ethernet OAM interfaces. The template can be configured to monitor frame errors, frame-period errors, frame-second errors, received CRS errors, and symbol-period errors and thresholds. You can also set the template to put the interface in error-disabled state if any high thresholds are exceeded. These steps are optional and can be performed in any sequence or repeated to configure different options.

To configure an Ethernet OAM template and to associate it with an interface, follow these steps:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# template template-name Creates a template and enters template configuration mode.

Step 3 Switch(config-template)# ethernet oam link-monitor receive-crc {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds}

(Optional) Configures thresholds for monitoring ingress frames received with cyclic redundancy code (CRC) errors for a period of time.

  • Enter threshold high high-frames to set a high threshold for the number of frames received with CRC errors. The range is 1 to 65535 frames.
  • Enter threshold high none to disable the high threshold.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 0 to 65535. The default is 1.
  • Enter window milliseconds to set the a window and period of time during which frames with CRC errors are counted. The range is 10 to 1800 and represents the number of milliseconds in multiples of 100. The default is 100.
Page 1336 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1336 · click to enlarge
Page 1336

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

Step 4 Switch(config-template)# ethernet oam link-monitor symbol-period {threshold {high {high symbols | none} | low {low-symbols}} | window symbols}

(Optional) Configures high and low thresholds for an error-symbol period that triggers an error-symbol period link event.

  • Enter threshold high high-symbols to set a high threshold in number of symbols. The range is 1 to 65535.
  • Enter threshold high none to disable the high threshold.
  • Enter threshold low low-symbols to set a low threshold in number of symbols. The range is 0 to 65535. It must be lower than the high threshold.
  • Enter window symbols to set the window size (in number of symbols) of the polling period. The range is 1 to 65535 symbols.

Step 5 Switch(config-template)# ethernet oam link-monitor frame {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds}

(Optional) Configures high and low thresholds for error frames that trigger an error-frame link event.

  • Enter threshold high high-frames to set a high threshold in number of frames. The range is 1 to 65535. You must enter a high threshold.
  • Enter threshold high none to disable the high threshold.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 0 to 65535. The default is 1.
  • Enter window milliseconds to set the a window and period of time during which error frames are counted. The range is 10 to 600 and represents the number of milliseconds in a multiple of 100. The default is 100.

Step 6 Switch(config-template)# ethernet oam link-monitor frame-period {threshold {high {high-frames | none} | low {low-frames}} | window frames}

(Optional) Configures high and low thresholds for the error-frame period that triggers an error-frame-period link event.

  • Enter threshold high high-frames to set a high threshold in number of frames. The range is 1 to 65535. You must enter a high threshold.
  • Enter threshold high none to disable the high threshold.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 0 to 65535. The default is 1.
  • Enter window frames to set the a polling window size in number of frames. The range is 1 to 65535; each value is a multiple of 10000 frames. The default is 1000.
Page 1337 of the Cisco Systems 4500 user manual — Step 8 Switch(config-template)# ethernet oam link-monitor high threshold action error-disable-interface
Page 1337 · click to enlarge
Page 1337

Chapter 57 Configuring Ethernet OAM and CFM

Enabling and Configuring Ethernet OAM

Step 7 Switch(config-template)# ethernet oam link-monitor frame-seconds {threshold {high {high-seconds | none} | low {low-seconds}} | window milliseconds}

(Optional) Configures frame-seconds high and low thresholds for triggering an error-frame-seconds link event.

  • Enter threshold high high-seconds to set a high threshold in number of seconds. The range is 1 to 900. You must enter a high threshold.
  • Enter threshold high none to disable the high threshold.
  • Enter threshold low low-frames to set a low threshold in number of frames. The range is 1 to 900. The default is 1.
  • Enter window frames to set the a polling window size in number of frames. The range is 100 to 9000; each value is a multiple of 100 milliseconds. The default is 1000.

Step 8 Switch(config-template)# ethernet oam link-monitor high threshold action error-disable-interface

(Optional) Configures the switch to put an interface in an error disabled state when a high threshold for an error is exceeded.

Step 9 Switch(config-template)# exit Returns to global configuration mode.

Step 10 Switch(config# interface interface-id Defines an Ethernet OAM interface and enters interface configuration mode.

Step 11 Switch(config-if# source-template template-name

Associates the template to apply the configured options to the interface.

Step 12 Switch(config-if# end Returns to privileged EXEC mode.

Step 13 Switch# show ethernet oam status [interface interface-id]

Verifies the configuration.

Step 14 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

The switch does not support monitoring egress frames with CRC errors. The ethernet oam link-monitor transmit-crc {threshold {high {high-frames | none} | low {low-frames}} | window milliseconds} command is visible on the switch and you can enter it, but it is not supported. Use the no form of each command to remove the option from the template. Use the no source-template template-name command to remove the source template association.

The following example illustrates how to configure an Ethernet OAM template and to associate it with an interface:

Switch# conf t Switch(config)# template oam Switch(config-template)# ethernet oam link-monitor receive-crc threshold high 1000 Switch(config-template)# ethernet oam link-monitor receive-crc threshold low 10 Switch(config-template)# ethernet oam link-monitor symbol-period threshold high 5000 Switch(config-template)# ethernet oam link-monitor symbol-period threshold low 5 Switch(config-template)# ethernet oam link-monitor frame threshold high 8000 Switch(config-template)# ethernet oam link-monitor frame threshold low 8 Switch(config-template)# ethernet oam link-monitor frame-period threshold hig 9000 Switch(config-template)# ethernet oam link-monitor frame-period threshold low 9 Switch(config-template)# ethernet oam link-monitor high action error-disable-interface Switch(config-template)# exit Switch(config)# int gi1/2 Switch(config-if)# source template oam Switch(config-if)# end

Page 1338 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1338 · click to enlarge
Page 1338

Chapter 57 Configuring Ethernet OAM and CFM Enabling and Configuring Ethernet OAM

Switch# show ethernet oam status int gi1/2 GigabitEthernet1/2 General Admin state: enabled Mode: active PDU max rate: 10 packets per second PDU min rate: 1 packet per 1 second Link timeout: 5 seconds High threshold action: error disable interface Link fault action: no action Dying gasp action: no action Critical event action: no action

Link Monitoring --------------- Statussupported (on)
Symbol Period Error Window100 x 1048576 symbols Low threshold: 5 error symbol(s) High threshold: 5000 error symbol(s)
Frame Error Window10 x 100 milliseconds Low threshold: 8 error frame(s) High threshold: 8000 error frame(s)
Frame Period Error Window1000 x 10000 frames Low threshold: 9 error frame(s) High threshold: 9000 error frame(s)
Frame Seconds Error Window100 x 100 milliseconds Low threshold: 1 error second(s) High threshold: none
Receive-Frame CRC Error Window10 x 100 milliseconds Low threshold: 10 error frame(s) High threshold: 1000 error frame(s)
Transmit-Frame CRC ErrorNot Supported
Page 1339 of the Cisco Systems 4500 user manual — Displaying Ethernet OAM Protocol Information
Page 1339 · click to enlarge
Page 1339

Chapter 57 Configuring Ethernet OAM and CFM

Displaying Ethernet OAM Protocol Information

Displaying Ethernet OAM Protocol Information

To display Ethernet OAM protocol information, you can use the privileged EXEC commands in Table 57-4.

Table 57-4 Displaying Ethernet OAM Protocol Information

show ethernet oam discovery [interface interface-id]

Displays discovery information for all Ethernet OAM interfaces or the specified interface.

show ethernet oam statistics [interface interface-id]

Displays detailed information about Ethernet OAM packets.

show ethernet oam status [interface interface-id]

Displays Ethernet OAM configuration for all interfaces or the specified interface.

show ethernet oam summary Displays active Ethernet OAM sessions on the switch.

These examples show how to apply these commands:

Switch# show ethernet oam discovery GigabitEthernet1/1 Local client Administrative configurations: Mode: active Unidirection: not supported Link monitor: supported (on) Remote loopback: supported MIB retrieval: not supported Mtu size: 1500

Operational statusPort status: operational Loopback status: no loopback PDU revision: 10
Remote client ------------- MAC address000f.8f03.3591 Vendor(oui): 00000C(cisco)

Administrative configurations: PDU revision: 2 Mode: active Unidirection: not supported Link monitor: supported Remote loopback: supported MIB retrieval: not supported Mtu size: 1500

Switch# show ethernet oam statistics GigabitEthernet1/1 Counters: Information OAMPDU Tx : 101163 Information OAMPDU Rx : 51296 Unique Event Notification OAMPDU Tx : 0

Page 1340 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1340 · click to enlarge
Page 1340

Chapter 57 Configuring Ethernet OAM and CFM Displaying Ethernet OAM Protocol Information

Unique Event Notification OAMPDU Rx : 0 Duplicate Event Notification OAMPDU TX : 0 Duplicate Event Notification OAMPDU RX : 0 Loopback Control OAMPDU Tx : 12 Loopback Control OAMPDU Rx : 0 Variable Request OAMPDU Tx : 0 Variable Request OAMPDU Rx : 0 Variable Response OAMPDU Tx : 0 Variable Response OAMPDU Rx : 0 Cisco OAMPDU Tx : 7 Cisco OAMPDU Rx : 8 Unsupported OAMPDU Tx : 0 Unsupported OAMPDU Rx : 0 Frames Lost due to OAM : 0

Local Faults: 0 Link Fault records 2 Dying Gasp records Total dying gasps : 7 Time stamp : 1d01h

Total dying gasps6 Time stamp : 1d01h

0 Critical Event records

Remote Faults: 0 Link Fault records 2 Dying Gasp records Total dying gasps : 8 Time stamp : 1d01h

Total dying gasps7 Time stamp : 1d01h

0 Critical Event records

Local event logs: 0 Errored Symbol Period records 0 Errored Frame records 0 Errored Frame Period records 0 Errored Frame Second records

Remote event logs: 0 Errored Symbol Period records 0 Errored Frame records 0 Errored Frame Period records 0 Errored Frame Second records

Switch# show ethernet oam summary Symbols: * - Master Loopback State, # - Slave Loopback State & - Error Block State Capability codes: L - Link Monitor, R - Remote Loopback U - Unidirection, V - Variable Retrieval Local Remote Interface MAC Address OUI Mode Capability

Gi1/1 000f.8f03.3591 00000C active L R

Page 1341 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM Interaction with CFM
Page 1341 · click to enlarge
Page 1341

Chapter 57 Configuring Ethernet OAM and CFM

Ethernet CFM and Ethernet OAM Interaction

Ethernet CFM and Ethernet OAM Interaction

You can also configure the OAM Manager infrastructure to interact between CFM and Ethernet OAM. When the Ethernet OAM protocol is running on an interface that has CFM MEPs configured, Ethernet OAM informs CFM of the state of the interface. Interaction is unidirectional from the Ethernet OAM to the CFM protocol, and the only information exchanged is your (user) network interface port status.

The Ethernet OAM protocol notifies CFM when these conditions occur:

  • Error thresholds are crossed at the local interface.

CFM responds to the notification by sending a port status of Local_Excessive_Errors in the Port StatusType Length Value (TLV).

  • Ethernet OAM receives an OAM PDU from the remote side showing that an error threshold is exceeded on the remote endpoint.

CFM responds to the notification by sending a port status of Remote_Excessive_Errors in the Port Status TLV.

  • The local port is set into loopback mode.

CFM responds by sending a port status of Test in the Port Status TLV.

  • The remote port is set into loopback mode.

CFM responds by sending a port status of Test in the Port Status TLV.

This section includes this information:

  • Configuring Ethernet OAM Interaction with CFM, page 57-51
  • Example: Configuring Ethernet OAM and CFM, page 57-53

For more information about CFM and interaction with Ethernet OAM, see the Ethernet Connectivity Fault Management feature module at this URL:

http://www.cisco.com/en/US/docs/ios/12_2sr/12_2sra/feature/guide/srethcfm.html

Configuring Ethernet OAM Interaction with CFM

For Ethernet OAM to function with CFM, you must configure an Ethernet Virtual Circuit (EVC) and the OAM manager, and associate the EVC with CFM. You must use an inward facing MEP for interaction with the OAM manager.

Page 1342 of the Cisco Systems 4500 user manual — Enabling Ethernet OAM
Page 1342 · click to enlarge
Page 1342

Chapter 57 Configuring Ethernet OAM and CFM Ethernet CFM and Ethernet OAM Interaction

Configuring the OAM Manager

To configure the OAM manager on a PE device, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config# interface interface-id Defines an interface to configure as an Ethernet OAM interface and enter interface configuration mode.

Step 3 Switch(config-if)# ethernet cfm domain domain-name level level-id

Defines a CFM domain, set the domain level, and enter ethernet-cfm configuration mode for the domain. The maintenance level number range is 0 to 7.

Step 4 Switch(config-if)# service csi-id vlan vlan-id Defines a universally unique customer service instance (CSI) and VLAN ID within the maintenance domain.

  • csi-id —String of no more than 100 characters that identifies the CSI.
  • vlan-id —VLAN range is from 1 to 4095. You cannot use the same VLAN ID for more than one domain at the same level.

Step 5 Switch(config-if)# exit Returns to global configuration mode.

Step 6 Switch(config)# ethernet evc evc-id Defines an EVC, and enter EVC configuration mode

Step 7 Switch(config-evc)# oam protocol cfm svlan vlan-id domain domain-name

Configures the EVC OAM protocol as CFM, and identify the service provider VLAN-ID (S-VLAN-ID) for the CFM domain maintenance level as configured in Steps 2 and 3.

Step 8 Switch(config-evc)# exit Returns to global configuration mode.

Step 9 Repeat Steps 2 through 7 to define other CFM domains that you want OAM manager to monitor.

Step 10 Switch(config)# ethernet cfm enable Globally enables CFM.

Step 11 Switch(config)# end Returns to privileged EXEC mode.

Step 12 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Enabling Ethernet OAM

To enable Ethernet OAM on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config# interface interface-id Defines an interface to configure as an Ethernet OAM interface and enter interface configuration mode.

Page 1343 of the Cisco Systems 4500 user manual — Example: Configuring Ethernet OAM and CFM
Page 1343 · click to enlarge
Page 1343

Chapter 57 Configuring Ethernet OAM and CFM

Ethernet CFM and Ethernet OAM Interaction

Step 3 Switch(config-if)# ethernet oam [max-rate oampus | min-rate seconds | mode {active | passive} | timeout seconds]

Enables Ethernet OAM on the interface

  • (Optional) Enter max-rate oampdus t o set the maximum rate (per second) to send OAM PDUs. The range is 1 to 10 PDUs per second; the default is 10.
  • (Optional) Enter min-rate seconds to set the minimum rate in seconds.The range is 1 to 10 seconds.
  • (Optional) Set the OAM client mode as active or passive. The default is active.
  • (Optional) Enter timeout seconds to set the time after which a device declares the OAM peer to be nonoperational and resets its state machine. The range is 2 to 30 seconds; the default is 5 seconds.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Step 6 Switch# show ethernet cfm maintenance points remote

(Optional) Displays the port states as reported by Ethernet OAM.

Example: Configuring Ethernet OAM and CFM

These are configuration examples of the interworking between Ethernet OAM and CFM in a sample service provider network. This example network would contain a provider-edge switch connected to a customer edge switch at each endpoint. You must configure CFM, E-LMI, and Ethernet OAM between the customer edge and the provider edge switch.

Customer-edge switch 1 (CE1) configuration:

Switch# config terminal Switch(config)# interface GigabitEthernet1/1 Switch(config-if)# switchport trunk allowed vlan 10 Switch(config-if)# switchport mode trunk Switch(config-if)# ethernet oam remote-loopback supported Switch(config-if)# ethernet oam Switch(config-if)# exit

Provider-edge switch 1 (PE1) configuration:

Switch# config terminal Switch(config)# interface FastEthernet1/20 Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# ethernet cfm mip level 7 Switch(config-if)# ethernet cfm mep level 4 mpid 100 vlan 100 Switch(config-if)# ethernet oam remote-loopback supported Switch(config-if)# ethernet oamt

Provider-edge switch 2 (PE2) configuration:

Switch# config terminal Switch(config)# interface GigabitEthernet1/20 Switch(config-if)# switchport mode trunk Switch(config-if)# ethernet cfm mip level 7 Switch(config-if)# ethernet cfm mep level 4 mpid 101 vlan 10 Switch(config-if)# ethernet oam remote-loopback supported

Page 1344 of the Cisco Systems 4500 user manual — Configuring Ethernet OAM and CFM
Page 1344 · click to enlarge
Page 1344

Chapter 57 Configuring Ethernet OAM and CFM Ethernet CFM and Ethernet OAM Interaction

Customer-edge switch 2 (CE2) configuration:

Switch# config terminal Switch(config)# interface GigabitEthernet1/1 Switch(config-if)# switchport trunk allowed vlan 10 Switch(config-if)# switchport mode trunk Switch(config-if)# ethernet oam remote-loopback supported Switch(config-if)# ethernet oam Switch(config-if)# exit

These output examples show provider-edge switch port status of the configuration. Port status shows as UP at both switches.

Switch PE1:

Switch# show ethernet cfm maintenance points remote MPID Level Mac Address Vlan PortState InGressPort Age(sec) Service ID 101 * 4 0015.633f.6900 10 UP Gi1/1 27 blue

Switch PE2:

Switch# show ethernet cfm maintenance points remote MPID Level Mac Address Vlan PortState InGressPort Age(sec) Service ID 100 * 4 0012.00a3.3780 10 UP Gi1/1 8 blue Total Remote MEPs: 1

This example shows the output when you start remote loopback on CE1 (or PE1). The port state on the remote PE switch shows as Test and the remote CE switch enters into error-disable mode.

Switch# ethernet oam remote-loopback start interface gigabitethernet 1/1 it is a intrusive loopback. Therefore, while you test Ethernet OAM MAC connectivity, you will be unable to pass traffic across that link. Proceed with Remote Loopback? [confirm]

Switch PE1:

Switch# show ethernet cfm maintenance points remote MPID Level Mac Address Vlan PortState InGressPort Age(sec) Service ID 101 * 4 0015.633f.6900 10 UP Gi1/1 27 blue

Switch PE2:

Switch# show ethernet cfm maintenance points remote MPID Level Mac Address Vlan PortState InGressPort Age(sec) Service ID 100 * 4 0012.00a3.3780 10 TEST Gi1/1 8 blue Total Remote MEPs: 1

In addition, if you shut down the CE1 interface that connects to PE1, the remote PE2 port shows a PortState of Down.

Switch(config-if)# ethernet oam

Page 1345 of the Cisco Systems 4500 user manual — Term Definition
Page 1345 · click to enlarge
Page 1345

C H A P T E R

Configuring Y.1731 (AIS and RDI)

The Catalyst 4500 series switch supports Y.1731 Ethernet Alarm Indication Signal function (ETH-AIS) and Ethernet Remote Defect Indication function (ETH-RDI) to provide fault and performance management for service providers in large networks. This chapter describes how to configure Y.1731 ETH-AIS and ETH-RDI.

This chapter contains these sections:

  • AIS and RDI Terminology, page 58-1
  • About Y.1731, page 58-2
  • Configuring Y.1731, page 58-4
  • Displaying Y.1731 Information, page 58-6

AIS and RDI Terminology

Term Definition

CC Ethernet OAM Continuity Check

CCM Ethernet OAM Continuity Check Message

CCDB Ethernet OAM Continuity Check Database

CFM Ethernet Connectivity Fault Management

EI Ethernet Infrastructure or EVC Infrastructure

EVC Ethernet Virtual Circuit

MIP Maintenance Intermediate Point

LMEP Local Mep · MEP Maintenance Endpoint

Page 1346 of the Cisco Systems 4500 user manual — Alarm Indication Signal
Page 1346 · click to enlarge
Page 1346

Chapter 58 Configuring Y.1731 (AIS and RDI) About Y.1731

Term Definition

OAM Operations Administration and Maintenance

Service VLAN The VLAN tag that uniquely identifies a Customer Service Instance within the Provider network

About Y.1731

These sections contain conceptual information about Y.1731:

  • Server MEP, page 58-2
  • Alarm Indication Signal, page 58-2
  • Ethernet Remote Defect Indication, page 58-3

The advent of Ethernet as a metropolitan and WAN technology imposes a new set of Operations, Administration, and Maintenance (OAM) requirements on Ethernet's traditionally Enterprise-oriented functions. The expansion of this technology into the larger and more complex wider user base makes operational management of link uptime crucial. Isolating and responding to failures quickly directly affects the competitiveness of the service provider.

Server MEP

A Server MEP is a combined function of the server layer termination function and the server and ETH adaptation function. It issues frames with ETH-AIS information upon detecting a defect at the Server layer by the server layer termination function or the adaptation function.

A Virtual MEP represents the logical termination point of Connectivity Fault Management (CFM) MAs defined at the link or transport layer. A server MEP runs or is defined at Maintenance Level -1. For example, you could associate an outward-facing Server MEP with each termination point of IEEE 802.3ah OAM, or with each termination point of MPLS PW OAM.

Alarm Indication Signal

ETH-AIS allows you to suppress alarms when defects are detected at the server (sub) layer. Because of STP’s ability to restore, you would not expect to apply ETH-AIS in the STP environments. For the Catalyst 4500 Metro switch, an administrator can enable and disable AIS in the STP environment.

You can enable or disable transmission of frames with ETH-AIS information on an MEP (or on a Server MEP).

You also can issue frames with ETH-AIS information at the client Maintenance Level by a MEP, including a Server MEP upon detecting defect conditions.

The defect conditions may include:

  • Signal fail conditions with ETH-CC enabled
  • AIS condition with ETH-CC disabled
Page 1347 of the Cisco Systems 4500 user manual — Ethernet Remote Defect Indication
Page 1347 · click to enlarge
Page 1347

Chapter 58 Configuring Y.1731 (AIS and RDI)

About Y.1731

For multipoint ETH connectivity, a MEP cannot determine the specific server (sub) layer entity that has encountered defect conditions upon receiving a frame with ETH-AIS information. More importantly, it cannot determine the associated subset of its peer MEPs for which it should suppress alarms because the received ETH-AIS information does not contain that information. When a MEP receives a frame with ETH-AIS information, it suppresses alarms for all peer MEPs whether there is still connectivity or not.

For a point-to-point ETH connection, however, a MEP has only one peer MEP. There is no ambiguity regarding the peer MEP for which it should suppress alarms when it receives the ETH-AIS information.

Only a MEP, including a Server MEP, is configured to issue frames with ETH-AIS information. Once the MEP detects a defect condition, it immediately starts transmitting periodic frames with ETH-AIS information at a configured client maintenance level. We send the AIS frames at a configured MIP level for an interface. A MEP continues to transmit periodic frames with ETH-AIS information until the defect condition is removed. Upon receiving a frame with ETH-AIS information, a MEP detects AIS condition and suppresses loss of continuity alarms associated with all its peer MEPs. A MEP resumes loss of continuity alarm generation upon detecting loss of continuity defect conditions in the absence of AIS condition.

Ethernet Remote Defect Indication

A MEP can use ETH-RDI to notify its peer MEPs that it detects a defect condition. ETH-RDI is used only when ETH-CC transmission is enabled.

ETH-RDI has the following two applications:

  • Single-ended fault management—The receiving MEP detects an RDI defect condition, which is correlated with other defect conditions in this MEP and may cause a fault. The absence of received ETH-RDI information in a single MEP indicates the absence of defects in the entire maintenance.
  • Contribution to far-end performance monitoring— It reflects a defect condition in the far-end which serves as input to the performance monitoring process.

A MEP that is in a defect condition transmits frames with ETH-RDI information. A MEP, upon receiving frames with ETH-RDI information, determines that its peer MEP has encountered a defect condition. For multipoint ETH connectivity, however, a MEP, upon receiving frames with ETH-RDI information, cannot determine the associated subset of its peer MEPs with which the MEP transmitting RDI information encounters defect conditions. it is because the transmitting MEP itself does not always have that information.

Page 1348 of the Cisco Systems 4500 user manual — Y.1731 Configuration Guidelines
Page 1348 · click to enlarge
Page 1348

Chapter 58 Configuring Y.1731 (AIS and RDI) Configuring Y.1731

Figure 58-1 Generating and Propagating AIS Messages Upon a Defect (Link Fail)

Customer Equipment Operator A Bridges Operator B Bridges

M M

M

M L L

M

L M M L

M

M M M

M

M

= Maintenance End Point = Maintenance Intermediate Point = AIS = CC with RDI

Configuring Y.1731

These sections are included:

  • Y.1731 Configuration Guidelines, page 58-4
  • Configuring AIS Parameters, page 58-5
  • Clearing MEP from the AIS Defect Condition, page 58-6
  • Clearing SMEP from the AIS Defect Condition, page 58-6

Y.1731 Configuration Guidelines

Configuration guidelines and restrictions for Y.1731 include the following:

  • Because of STP’s restoration capability, do not expect ETH-AIS to be applied in the STP environments.
  • AIS is enabled by default on a CFM maintenance domain. The following section illustrates the commands you can use to disable AIS on a maintenance domain. Likewise, RDI is a flag bit in the CC message. Provided CC transmission is enabled, the present RDI flag of the CC message is set to true or false.

Customer Equipment

Page 1349 of the Cisco Systems 4500 user manual — Configuring AIS Parameters
Page 1349 · click to enlarge
Page 1349

Chapter 58 Configuring Y.1731 (AIS and RDI)

Configuring Y.1731

Configuring AIS Parameters

To set the parameters for AIS, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch (config)# ethernet cfm ais domain name vlan range

Enters config-ais-mep-cfm submode to configure parameters for all local Meps belonging to that per Maintenance Association (MA).

name refers to the domain name.

range represents VLAN IDs 100, 200-300, 400, 500, or 1-4095

For the domain name vlan range command only configurations that are VLAN disjoint or congruent are accepted.

Step 3 Switch(config-ais-mep-cfm)# disable Disables AIS transmission.

Step 4 Switch(config-ais-mep-cfm)# period period Sets the AIS transmission period.

Step 5 Switch(config-ais-mep-cfm)# level level Establishes a maintenance level to send AIS frames for MEPs belonging to MA.

Valid levels are 0 to 7.

Step 6 Switch(config-ais-mep-cfm)# expiry-threshold threshold

Sets the AIS expiry threshold.

By default, expiry threshold is 3.5. With this CLI we can change the expiry threshold parameter for MA.

Step 7 Switch(config-ais-mep-cfm)# express alarm Configures alarm suppression when an AIS message causes the MEP enters an AIS defect condition.

Step 8 Switch(config-ais-mep-cfm)# exit Returns to global configuration.

Step 9 Switch(config)# [no] ethernet cfm ais link-status global

Enters config-ais-link-cfm submode, enabling you to configure parameters required to follow when link status goes down.

Step 10 Switch(config-if)# [no] ethernet cfm ais link-status period period

Configures ETH-AIS transmission period generated by the link-status on the interface.

Step 11 Switch(config-if)# [no] ethernet cfm ais link-status level level

Configures maintenance level to send AIS frames transmitted by the link-status on the interface.

Step 12 end Returns to privileged EXEC mode.

Step 13 Switch# show ethernet cfm smep interface name Switch# show ethernet cfm maintenance-points local detail Switch# show ethernet cfm maintenance-points remote detail Switch# show ethernet cfm error

Verifies the configuration.

Step 14 Switch# show running-config Verifies your entries.

Step 15 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Use the no versions of the commands to remove the configuration or return to the default configurations.

Page 1350 of the Cisco Systems 4500 user manual — Displaying Y.1731 Information
Page 1350 · click to enlarge
Page 1350

Chapter 58 Configuring Y.1731 (AIS and RDI) Displaying Y.1731 Information

Clearing MEP from the AIS Defect Condition

To clear the MEP, enter one of the following commands:

Switch# clear ethernet cfm ais domain domain name mpid local mpid vlan vlan# Switch# clear ethernet cfm ais domain domain name mpid local mpid evc evc_name

Clearing SMEP from the AIS Defect Condition

To clear the CSMP, enter one of the following commands:

Switch# clear ethernet cfm ais link-status interface interface_name Switch# clear ethernet cfm error

Displaying Y.1731 Information

To display Y.1731 information, you can use the following commands (Table 58-1).

Table 58-1 Displaying Y.1731 Information

show ethernet cfm maintenance-point local detail

Displays AIS status and defect condition on local maintenance points.

show ethernet cfm smep [interface <name>] Displays AIS status and defect condition on SMEP.

show ethernet cfm error Displays errors due to AIS defect condition.

show ethernet cfm maintenance-points remote [detail

Displays AIS status and defect Condition on remote maintenance points.

This example shows how to track the RDI defect and to verify the configuration parameters:

Switch# show ethernet cfm main local detail MEP Settings: MPID: 1109 DomainName: PROVIDER_DOMAIN Level: 4 Direction: I EVC: evc_1 Interface: Gi3/1 CC-Status: Enabled MAC: 001b.d550.91fd Defect Condition: No Defect presentRDI: FALSE (RDI defect is NOT present) AIS-Status: Enabled AIS Period: 60000(ms) AIS Expiry Threshold: 3.5 Level to transmit AIS: Default Suppress Alarm configuration: Enabled Suppressing Alarms: No

MIP Settings-------------
Page 1351 of the Cisco Systems 4500 user manual — Configuring Y.1731 (AIS and RDI)
Page 1351 · click to enlarge
Page 1351

Chapter 58 Configuring Y.1731 (AIS and RDI)

Displaying Y.1731 Information

Level Type Port MAC 7 MIP Gi3/1 001b.d550.91fd 4 MIP Te1/2 001b.d550.91fd Switch# *Feb 18 05:40:35.659: %ETHER_CFM-6-ENTER_AIS: local mep with mpid 1109 level 4 id 100 dir I Interface GigabitEthernet3/1 enters AIS defect condition (gi3/2 enters AIS state) Switch# show ethernet cfm main local detail MEP Settings: MPID: 1109 DomainName: PROVIDER_DOMAIN Level: 4 Direction: I EVC: evc_1 Interface: Gi3/1 CC-Status: Enabled MAC: 001b.d550.91fd Defect Condition: AIS presentRDI: TRUE (RDI defect IS present) AIS-Status: Enabled AIS Period: 60000(ms) AIS Expiry Threshold: 3.5 Level to transmit AIS: Default Suppress Alarm configuration: Enabled Suppressing Alarms: Yes

MIP Settings: Level Type Port MAC 7 MIP Gi3/1 001b.d550.91fd 4 MIP Te1/2 001b.d550.91fd Switch# show ethernet cfm error Level Vlan MPID Remote MAC Reason Service ID 4 100 2101 001d.4566.aa3d 0 lifetime TLV customerX 4 100 - 001b.d550.91fd Receive AIS customerX Switch# *Feb 18 05:51:08.567: %ETHER_CFM-6-EXIT_AIS: local mep with mpid 1109 level 4 id 100 dir I Interface GigabitEthernet3/1 exited AIS defect condition (gi3/1 exits AIS state) Switch# show ethernet cfm main local detail MEP Settings: MPID: 1109 DomainName: PROVIDER_DOMAIN Level: 4 Direction: I EVC: evc_1 Interface: Gi3/1 CC-Status: Enabled MAC: 001b.d550.91fd Defect Condition: No Defect presentRDI: FALSE (RDI defect is not present anymore) AIS-Status: Enabled AIS Period: 60000(ms) AIS Expiry Threshold: 3.5 Level to transmit AIS: Default Suppress Alarm configuration: Enabled Suppressing Alarms: No

MIP Settings------------- Level Type Port MAC 7 MIP Gi3/1 001b.d550.91fd 4 MIP Te1/2 001b.d550.91fd Switch#
Page 1352 of the Cisco Systems 4500 user manual — Configuring Y.1731 (AIS and RDI)
Page 1352 · click to enlarge
Page 1352

Chapter 58 Configuring Y.1731 (AIS and RDI) Displaying Y.1731 Information

Page 1353 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1353 · click to enlarge
Page 1353

C H A P T E R

Configuring Call Home

This chapter describes how to configure the Call Home feature in Catalyst 4500 Series Switch.

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

This chapter includes the following sections:

  • About Call Home, page 59-2
  • Obtaining Smart Call Home, page 59-2
  • Configuring Call Home, page 59-3
  • Configuring Contact Information, page 59-4
  • Configuring Destination Profiles, page 59-5
  • Subscribing to Alert Groups, page 59-6
  • Configuring General E-Mail Options, page 59-9
  • Enabling Call Home, page 59-10
  • Testing Call Home Communications, page 59-10
  • Configuring and Enabling Smart Call Home, page 59-13
  • Displaying Call Home Configuration Information, page 59-14
  • Call Home Default Settings, page 59-18
  • Alert Group Trigger Events and Commands, page 59-18
  • Message Contents, page 59-21
Page 1354 of the Cisco Systems 4500 user manual — Obtaining Smart Call Home
Page 1354 · click to enlarge
Page 1354

Chapter 59 Configuring Call Home About Call Home

About Call Home

Call Home provides e-mail-based and web-based notification of critical system events. A versatile range of message formats are available for optimal compatibility with pager services, standard e-mail, or XML-based automated parsing applications. Common uses of this feature may include direct paging of a network support engineer, e-mail notification to a Network Operations Center, XML delivery to a support website, and utilization of Cisco Smart Call Home services for direct case generation with the Cisco Systems Technical Assistance Center (TAC).

The Call Home feature can deliver alert messages containing information on configuration, diagnostics, environmental conditions, inventory, and syslog events.

The Call Home feature can deliver alerts to multiple recipients, referred to as Call Home destination profiles, each with configurable message formats and content categories. A predefined destination profile is provided for sending alerts to the Cisco TAC (callhome@cisco.com), and you also can define your own destination profiles.

Flexible message delivery and format options make it easy to integrate specific support requirements.

The Call Home feature offers the following advantages:

  • Multiple message-format options:

– Short Text—Suitable for pagers or printed reports.

– Plain Text—Full formatted message information suitable for human reading.

– XML—Matching readable format using Extensible Markup Language (XML) and Adaptive Markup Language (AML) document type definitions (DTDs). The XML format enables communication with the Cisco TAC.

  • Multiple concurrent message destinations.
  • Multiple message categories including configuration, diagnostics, environmental conditions, inventory, and syslog events.
  • Filtering of messages by severity and pattern matching.
  • Scheduling of periodic message sending.

Obtaining Smart Call Home

If you have a service contract directly with Cisco Systems, you can register your devices for the Smart Call Home service. Smart Call Home provides fast resolution of system problems by analyzing Call Home messages sent from your devices and providing background information and recommendations. For issues that can be identified as known, particularly GOLD diagnostics failures, Automatic Service Requests will be generated with the Cisco TAC.

Smart Call Home offers the following features:

  • Boot-up diagnostics alerts for line cards and supervisor engines in the chassis.
  • Analysis of Call Home messages from your device, and where appropriate Automatic Service Request generation, routed to the appropriate TAC team, including detailed diagnostic information to speed problem resolution.
  • Secure message transport directly from your device or through a downloadable Transport Gateway (TG) aggregation point. You can use a TG aggregation point in cases requiring support for multiple devices or in cases where security requirements mandate that your devices may not be connected directly to the Internet.
Page 1355 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1355 · click to enlarge
Page 1355

Chapter 59 Configuring Call Home

  • Web-based access to Call Home messages and recommendations, inventory and configuration information for all Call Home devices. Provides access to associated field notices, Security Advisories, and End-of-Life information.

You need to register the following items:

  • The SMARTnet contract number for your switch
  • Your e-mail address
  • Your <a href="http://Cisco.com" rel="nofollow noopener" target="_blank">Cisco.com</a> ID

For detailed information on Smart Call Home, refer to the Smart Call Home page at this URL:

http://supportforums.cisco.com/community/netpro/solutions/smart_services/smartcallhome

Configuring Call Home

How you configure Call Home depends on how you intend to use the feature. Consider the following information before you configure Call Home:

  • At least one destination profile (predefined or user-defined) must be configured. The destination profile(s) used depends on whether the receiving entity is a pager, e-mail, or automated service such as Cisco Smart Call Home.

– If the destination profile uses e-mail message delivery, you must specify a Simple Mail Transfer Protocol (SMTP) server.

– If the destination profile uses secure HTTP (HTTPS) message transport, you must configure a trustpoint certificate authority (CA).

  • The contact e-mail, phone, and street address information should be configured so that the receiver can determine the origin of messages received.
  • The switch must have IP connectivity to an e-mail server or the destination HTTP server using the ip domain name command.
  • If Cisco Smart Call Home is used, an active service contract must cover the device being configured.

To configure Call Home, follow these steps:

Step 1 Configure your site’s contact information.

Step 2 Configure destination profiles for each of your intended recipients.

Step 3 Subscribe each destination profile to one or more alert groups, and set alert options.

Step 4 Configure e-mail settings or HTTPS settings (including CA certificate), depending on the transport method.

Step 5 Enable the Call Home feature.

Step 6 Test Call Home messages.

Configuring Call Home

Page 1356 of the Cisco Systems 4500 user manual — Configuring Contact Information
Page 1356 · click to enlarge
Page 1356

Chapter 59 Configuring Call Home Configuring Call Home

Home service. The script, provided on an as-is basis, can be downloaded from this URL: http://supportforums.cisco.com/community/netpro/solutions/smart_services/smartcallhome

Configuring Contact Information

Each switch must include a contact e-mail address. You can optionally include a phone number, street address, contract ID, customer ID, and site ID.

To assign the contact information, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# call-home Enters the Call Home configuration submode.

Step 3 Switch(cfg-call-home)# contact-email-addr email-address

Assigns the customer’s e-mail address. Enter up to 200 characters in e-mail address format with no spaces.

Step 4 Switch(cfg-call-home)# phone-number +phone-number

(Optional) Assigns the customer’s phone number.

Step 5 Switch(cfg-call-home)# street-address street-address

(Optional) Assigns the customer’s street address where RMA equipment can be shipped. Enter up to 200 characters. If you include spaces, you must enclose your entry in quotes (“”).

Step 6 Switch(cfg-call-home)# customer-id text (Optional) Identifies the customer ID. Enter up to 64 characters. If you include spaces, you must enclose your entry in quotes (“”).

Step 7 Switch(cfg-call-home)# site-id text (Optional) Identifies the customer site ID. Enter up to 200 characters. If you include spaces, you must enclose your entry in quotes (“”).

Step 8 Switch(cfg-call-home)# contract-id text (Optional) Identifies the customer’s contract ID for the switch. Enter up to 64 characters. If you include spaces, you must enclose your entry in quotes (“”).

This example shows the configuration of contact information:

Switch# configure terminal

Page 1357 of the Cisco Systems 4500 user manual — Configuring Destination Profiles
Page 1357 · click to enlarge
Page 1357

Chapter 59 Configuring Call Home

Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# call-home Switch(cfg-call-home)# contact-email-addr username@example.com Switch(cfg-call-home)# phone-number +1-800-555-4567 Switch(cfg-call-home)# street-address “1234 Picaboo Street, Any city, Any state, 12345” Switch(cfg-call-home)# customer-id Customer1234 Switch(cfg-call-home)# site-id Site1ManhattanNY Switch(cfg-call-home)# contract-id Company1234 Switch(cfg-call-home)# exit Switch(config)#

Configuring Destination Profiles

A destination profile contains the required delivery information for an alert notification. At least one destination profile is required. You can configure multiple destination profiles of one or more types.

You can use the predefined destination profile or define a desired profile. If you define a new destination profile, you must assign a profile name.

You can configure the following attributes for a destination profile:

  • Profile name—A string that uniquely identifies each user-defined destination profile. The profile name is limited to 31 characters and is not case-sensitive. You cannot use all as a profile name.
  • Transport method—The transport mechanism, either e-mail or HTTP (including HTTPS), for delivery of alerts.

– For user-defined destination profiles, e-mail is the default, and you can enable either or both transport mechanisms. If you disable both methods, e-mail will be enabled.

– For the predefined Cisco TAC profile, you can enable either transport mechanism, but not both.

  • Destination address—The actual address related to the transport method to which the alert should be sent.
  • Message formatting—The message format used for sending the alert.

– For user-defined destination profiles, the format options are long-text, short-text, or XML. The default is XML.

– For the predefined Cisco TAC profile, only XML is allowed.

  • Message size—The maximum destination message size. The valid range is 50 to 3,145,728 bytes and the default is 3,145,728 bytes.

To create and configure a destination profile, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# call-home Enters the Call Home configuration submode.

Step 3 Switch(cfg-call-home)# profile name Enters the Call Home destination profile configuration submode for the specified destination profile. If the specified destination profile does not exist, it is created.

Step 4 Switch(cfg-call-home-profile)# [no] destination transport-method {email | http}

(Optional) Enables the message transport method. The no option disables the method.

Configuring Call Home

Page 1358 of the Cisco Systems 4500 user manual — Subscribing to Alert Groups
Page 1358 · click to enlarge
Page 1358

Chapter 59 Configuring Call Home Configuring Call Home

Step 5 Switch(cfg-call-home-profile)# destination address {email email-address | http url}

Configures the destination e-mail address or URL to which Call Home messages will be sent.

Step 6 Switch(cfg-call-home-profile)# destination preferred-msg-format {long-text | short-text | xml}

(Optional) Configures a preferred message format. The default is XML.

Step 7 Switch(cfg-call-home-profile)# destination message-size-limit bytes

(Optional) Configures a maximum destination message size for the destination profile.

Step 8 Switch(cfg-call-home-profile)# active

Enables the destination profile. By default, the profile is enabled when it is created.

Step 9 Switch(cfg-call-home-profile)# exit Exits the Call Home destination profile configuration submode and returns to the Call Home configuration submode.

Step 10 Switch(cfg-call-home)# end Returns to privileged EXEC mode.

Step 11 Switch# show call-home profile {name | all}

Displays the destination profile configuration for a specified profile or all configured profiles.

Copying a Destination Profile

To create a new destination profile by copying an existing profile, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# call-home Enters the Call Home configuration submode.

Step 3 Switch(cfg-call-home)# copy profile source-profile target-profile

Creates a new destination profile with the same configuration settings as the existing destination profile.

Subscribing to Alert Groups

An alert group is a predefined subset of Call Home alerts supported on the switch. Different types of Call Home alerts are grouped into different alert groups depending on their type. These alert groups are available:

  • Configuration
  • Diagnostic
  • Environment
  • Inventory
  • Syslog

The triggering events for each alert group are listed in the “Alert Group Trigger Events and Commands” section on page 59-18, and the contents of the alert group messages are listed in the “Message Contents” section on page 59-21.

Page 1359 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1359 · click to enlarge
Page 1359

Chapter 59 Configuring Call Home

You can select one or more alert groups to be received by a destination profile.

To subscribe a destination profile to an alert group, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# call-home Enters Call Home configuration submode.

Step 3 Switch(cfg-call-home)# alert-group {all|configuration|diagnostic| environment|inventory|syslog}

Enables the specified alert group. Use the keyword all to enable all alert groups. By default, all alert groups are enabled.

Step 4 Switch(cfg-call-home)# profile name Enters the Call Home destination profile configuration submode for the specified destination profile.

Step 5 Switch(cfg-call-home-profile)# subscribe-to-alert-group configuration [periodic {daily hh:mm | monthly date hh:mm | weekly day hh:mm}]

Subscribes this destination profile to the Configuration alert group. The Configuration alert group can be configured for periodic notification, as described in the “Configuring Periodic Notification” section on page 59-8.

Subscribes to all available alert groups.

Step 6 Switch(cfg-call-home-profile)# subscribe-to-alert-group diagnostic [severity catastrophic|disaster| fatal|critical|major|minor|warning| notification|normal|debugging]

Subscribes this destination profile to the Diagnostic alert group. The Diagnostic alert group can be configured to filter messages based on severity, as described in the “Configuring Message Severity Threshold” section on page 59-8.

Step 7 Switch(cfg-call-home-profile)# subscribe-to-alert-group environment [severity catastrophic|disaster| fatal|critical|major|minor|warning| notification|normal|debugging]

Subscribes this destination profile to the Environment alert group. The Environment alert group can be configured to filter messages based on severity, as described in the “Configuring Message Severity Threshold” section on page 59-8.

Step 8 Switch(cfg-call-home-profile)# subscribe-to-alert-group inventory [periodic {daily hh:mm | monthly date hh:mm | weekly day hh:mm}]

Subscribes this destination profile to the Inventory alert group. The Inventory alert group can be configured for periodic notification, as described in the “Configuring Periodic Notification” section on page 59-8.

Configuring Call Home · Switch(cfg-call-home-profile)# subscribe-to-alert-group all

Page 1360 of the Cisco Systems 4500 user manual — Level Keyword Syslog Level Description
Page 1360 · click to enlarge
Page 1360

Chapter 59 Configuring Call Home Configuring Call Home

Step 9 Switch(cfg-call-home-profile)# subscribe-to-alert-group syslog [severity catastrophic|disaster| fatal|critical|major|minor|warning| notification|normal|debugging] [pattern string]

Subscribes this destination profile to the Syslog alert group. The Syslog alert group can be configured to filter messages based on severity, as described in the “Configuring Message Severity Threshold” section on page 59-8. You can specify a pattern to be matched in the syslog message. If the pattern contains spaces, you must enclose it in quotes (“”).

Step 10 Switch(cfg-call-home-profile)# exit Exits the Call Home destination profile configuration submode.

Configuring Periodic Notification

When you subscribe a destination profile to either the Configuration or the Inventory alert group, you can choose to receive the alert group messages asynchronously or periodically at a specified time. The sending period can be one of the following:

  • Daily—Specify the time of day to send, using an hour:minute format hh:mm , with a 24-hour clock (for example, 14:30).
  • Weekly—Specify the day of the week and time of day in the format day hh:mm , where the day of the week is spelled out (for example, monday).
  • Monthly—Specify the numeric date, from 1 to 31, and the time of day, in the format date hh:mm .

Configuring Message Severity Threshold

When you subscribe a destination profile to the Diagnostic, Environment, or Syslog alert group, you can set a threshold for sending alert group messages based on the message’s level of severity. Any message with a value lower than the threshold is not sent to the destination.

The severity threshold is configured using the keywords in Table 59-1, and ranges from catastrophic (level 9, highest level of urgency) to debugging (level 0, lowest level of urgency). If no severity threshold is configured, the default is normal (level 1).

Table 59-1 Severity and Syslog Level Mapping

Level Keyword Syslog Level Description

9 catastrophic N/A Network-wide catastrophic failure

8 disaster N/A Significant network impact

7 fatal Emergency (0) System unusable

6 critical Alert (1) Critical conditions, immediate attention needed

5 major Critical (2) Major conditions

4 minor Error (3) Minor conditions

3 warning Warning (4) Warning conditions

Page 1361 of the Cisco Systems 4500 user manual — Configuring General E-Mail Options
Page 1361 · click to enlarge
Page 1361

Chapter 59 Configuring Call Home

Table 59-1 Severity and Syslog Level Mapping (continued)

Level Keyword Syslog Level Description

2 notification Notice (5) Basic notification and informational messages; possibly independently insignificant

1 normal Information (6) Normal event signifying return to normal state

0 debugging Debug (7) Debugging messages

Configuring Syslog Pattern Matching

When you subscribe a destination profile to the Syslog alert group, you can optionally specify a text pattern to be matched within each syslog message. If you configure a pattern, a Syslog alert group message will be sent only if it contains the specified pattern and meets the severity threshold. If the pattern contains spaces, you must enclose it in quotes (“”) when configuring it. You can specify up to five patterns for each destination profile.

Configuring General E-Mail Options

To use the e-mail message transport, you must configure at least one Simple Mail Transfer Protocol (SMTP) e-mail server address. You can configure the from and reply-to e-mail addresses, and you can specify up to four backup e-mail servers. You can also set a rate limit on e-mail or HTTP messages.

Starting with Cisco IOS Release 15.0(2)SG, you can configure the vrf and source interface or source IP address to send the e-mail messages. If you want to configure similar options to send http messages, you must enter the ip http client source-interface interface-name command where the source-interface can be associated with the vrf you want to set.

To configure general e-mail options, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# call-home Enters Call Home configuration submode.

Step 3 Switch(cfg-call-home)# mail-server {ipv4-address | name} priority number

Assigns an e-mail server address and its relative priority among configured e-mail servers.

Provide either of these:

  • The e-mail server’s IP address
  • The e-mail server’s fully qualified domain name (FQDN) of 64 characters or less.

Assign a priority number between 1 (highest priority) and 100 (lowest priority).

Step 4 Switch(cfg-call-home)# sender from email-address

(Optional) Assigns the e-mail address that will appear in the from field in Call Home e-mail messages. If no address is specified, the contact e-mail address is used.

Step 5 Switch(cfg-call-home)# sender reply-to email-address

(Optional) Assigns the e-mail address that will appear in the reply-to field in Call Home e-mail messages.

Step 6 Switch(cfg-call-home)# rate-limit number

(Optional) Specifies a limit on the number of messages sent per minute, from 1 to 60. The default is 20.

Configuring Call Home

Page 1362 of the Cisco Systems 4500 user manual — Testing Call Home Communications
Page 1362 · click to enlarge
Page 1362

Chapter 59 Configuring Call Home Configuring Call Home

Step 7 Switch(cfg-call-home)# vrf vrf-name (Optional) Specifies the VRF instance to send Call Home e-mail messages. If no VRF is specified, the global routing table is used.

Step 8 Switch(cfg-call-home)# source-interface interface-name

(Optional) Specifies the source interface name to send Call Home e-mail messages. If no source interface name or source ip address is specified, an interface in the routing table is used.

Step 9 Switch(cfg-call-home)# source-ip-address ip-address

(Optional) Specifies the source IP address to send Call Home e-mail messages. If no source IP address or source interface name is specified, an interface in the routing table is used.

The following notes apply when configuring general e-mail options:

  • Backup e-mail servers can be defined by repeating the mail-server command using different priority numbers.
  • The mail-server priority number parameter can be configured from 1 to 100. The server with the highest priority (lowest priority number) will be tried first.

This example shows the configuration of general e-mail parameters, including a primary and secondary e-mail server:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# call-home Switch(cfg-call-home)# mail-server smtp.example.com priority 1 Switch(cfg-call-home)# mail-server 192.168.0.1 priority 2 Switch(cfg-call-home)# sender from username@example.com Switch(cfg-call-home)# sender reply-to username@example.com Switch(cfg-call-home)# exit Switch(config)#

Enabling Call Home

To enable or disable the Call Home feature, perform this task:

Step 1 Switch# configure terminal Enters configuration mode.

Step 2 Switch(config)# service call-home Enables the Call Home feature.

Testing Call Home Communications

You can test Call Home communications by sending messages manually using two command types.

  • To send a user-defined Call Home test message, use the call-home test command.
  • To send a specific alert group message, use the call-home send command.
Page 1363 of the Cisco Systems 4500 user manual — Sending a Call Home Alert Group Message Manually
Page 1363 · click to enlarge
Page 1363

Chapter 59 Configuring Call Home

Sending a Call Home Test Message Manually

To manually send a Call Home test message, perform this task:

Step 1 Switch# call-home test [“test-message”] profile name

Sends a test message to the specified destination profile. The user-defined test message text is optional, but must be enclosed in quotes (“”) if it contains spaces. If no user-defined message is configured, a default message will be sent.

This example shows how to manually send a Call Home test message:

Switch# call-home test “test of the day” profile Ciscotac1

Sending a Call Home Alert Group Message Manually

To manually trigger a Call Home alert group message, perform this task:

Step 1 Switch# call-home send alert-group configuration [profile name]

Sends a configuration alert group message to one destination profile if specified, or to all subscribed destination profiles.

Switch# call-home send alert-group diagnostic {module number | slot/subslot | slot/bay} [profile name]

Sends a diagnostic alert group message to the configured destination profile if specified, or to all subscribed destination profiles. You must specify the module or port whose diagnostic information should be sent.

Switch# call-home send alert-group inventory [profile name]

Sends an inventory alert group message to one destination profile if specified, or to all subscribed destination profiles.

When manually sending Call Home alert group messages, note the following guidelines:

  • You can only manually send the configuration, diagnostic, and inventory alert groups.
  • When you manually trigger a configuration, diagnostic, or inventory alert group message and you specify a destination profile name, a message is sent to the destination profile regardless of the profile’s active status, subscription status, or severity setting.
  • When you manually trigger a configuration or inventory alert group message and do not specify a destination profile name, a message is sent to all active profiles that have either a normal or periodic subscription to the specified alert group.
  • When you manually trigger a diagnostic alert group message and do not specify a destination profile name, the command will cause the following actions:

– For any active profile that subscribes to diagnostic events with a severity level of less than minor, a message is sent regardless of whether the module or interface has observed a diagnostic event.

Configuring Call Home

Page 1364 of the Cisco Systems 4500 user manual — Sending a Request for an Analysis and Report
Page 1364 · click to enlarge
Page 1364

Chapter 59 Configuring Call Home Configuring Call Home

– For any active profile that subscribes to diagnostic events with a severity level of minor or higher, a message is sent only if the specified module or interface has observed a diagnostic event of at least the subscribed severity level; otherwise, no diagnostic message is sent to the destination profile.

This example shows how to send the configuration alert-group message to the destination profile:

Switch# call-home send alert-group configuration

This example shows how to send the diagnostic alert-group message to the destination profile for a specific module, slot/subslot, or slot/bay number.

Switch# call-home send alert-group diagnostic module 3 5/2

This example shows how to send the diagnostic alert-group message to all destination profiles for a specific module, slot/subslot, or slot/bay number.

Switch# call-home send alert-group diagnostic module 3 5/2 profile Ciscotac1

This example shows how to send the inventory call-home message:

Switch# call-home send alert-group inventory

Sending a Request for an Analysis and Report

You can use the call-home request command to submit information about your system to Cisco in order to receive helpful information specific to your system. You can request a variety of reports, including security alerts, known bugs, best practices, and command references.

To submit a request for report and analysis information from the Cisco Output Interpreter tool, perform one of these tasks:

Switch# call-home request output-analysis “show-command” [profile name] [ccoid user-id]

Sends the output of the specified show command for analysis. The show command must be contained in quotes (“”).

Switch# call-home request {config-sanity | bugs-list | command-reference | product-advisory} [profile name] [ccoid user-id]

Sends the output of a predetermined set of commands for analysis such as show running-config all, show version, or show module commands. In addition, the call-home request product-advisory command includes all inventory alert group commands.

The keyword specified after the call home request command specifies the type of report required.

When manually sending a Call Home report and analysis request, note the following guidelines:

  • If you specify a profile name value, the request is sent to the profile. If you do not specify a profile name, the request is sent to the Cisco TAC profile. The recipient profile does not need to be enabled for the Call Home request. The profile should specify the e-mail address where the transport gateway is configured so that the request message can be forwarded to the Cisco TAC and you can receive the reply from the Smart Call Home service.
  • The ccoid user-id value is the registered identifier of the Smart Call Home user. If you specify a user-id, the response is sent to the e-mail address of the registered user. If do not specify a user-id, the response is sent to the contact e-mail address of the device.
Page 1365 of the Cisco Systems 4500 user manual — Configuring and Enabling Smart Call Home
Page 1365 · click to enlarge
Page 1365

Chapter 59 Configuring Call Home

  • Based on the keyword specifying the type of report requested, the following information is returned:

– config-sanity—Information on best practices as related to the current running configuration

– bugs-list—Known bugs in the running version and in the currently applied features

– command-reference—Reference links to all commands in the running configuration

– product-advisory—Product Security Incident Response Team (PSIRT) notices, End of Life (EOL) or End of Sales (EOS) notices, or field notices (FN) that may affect devices in your network

This example shows a request for analysis of a user-specified show command:

Switch# call-home request output-analysis "show diagnostic result module all" profile TG

Sending the Output of a Command

You can use the call-home send command to execute a CLI command and e-mail the command output to Cisco or to an e-mail address that you specify.

To execute a CLI command and e-mail the command output, perform this task:

Switch# call-home send “command” [email email-addr] [service-number SR]

Executes the specified CLI command and e-mails the output.

When sending the output of a command, note the following guidelines:

  • The specified CLI command can be any run command, including commands for all modules. The command must be contained in quotes (“”).
  • If an e-mail address is specified, the command output will be sent to that address. If no e-mail address is specified, the output will be sent to the Cisco TAC (attach@<a href="http://cisco.com" rel="nofollow noopener" target="_blank">cisco.com</a>). The e-mail will be sent in long text format with the service number, if specified, in the subject line.
  • The service number is required only if no e-mail address is specified, or if a Cisco TAC e-mail address is specified.

This example shows how to send the output of a CLI command to a user-specified e-mail address:

Switch# call-home send "show diagnostic result module all" email support@example.com

Configuring and Enabling Smart Call Home

For application and configuration information of the Cisco Smart Call Home service, see the “FastStart” section of the Smart Call Home User Guide at this location:

http://www.cisco.com/go/smartcall/

The user guide includes configuration examples for sending Smart Call Home messages directly from your device or through a transport gateway (TG) aggregation point. You can use a TG aggregation point in cases requiring support for multiple devices or in cases where security requirements mandate that your devices may not be connected directly to the Internet.

Because the Smart Call Home service uses HTTPS as the transport method, you must also configure its CA as a trustpoint, as described in the Smart Call Home User Guide.

Configuring Call Home

Page 1366 of the Cisco Systems 4500 user manual — Displaying Call Home Configuration Information
Page 1366 · click to enlarge
Page 1366

Chapter 59 Configuring Call Home Displaying Call Home Configuration Information

Displaying Call Home Configuration Information

To display the configured Call Home information, perform these tasks:

Switch# show call-home Displays the Call Home configuration in summary.

Switch# show call-home detail Displays the Call Home configuration in detail.

Switch# show call-home alert-group Displays the available alert groups and their status.

Switch# show call-home mail-server status Checks and displays the availability of the configured e-mail server(s).

Switch# show call-home profile {all | name} Displays the configuration of the specified destination profile. Use the keyword all to display the configuration of all destination profiles.

Switch# show call-home statistics Displays the statistics of Call Home events.

Examples 59-1 to 59-7 show the results when using different options of the show call-home command.

Example 59-1 Configured Call Home Information

Switch# show call-home call home feature : disable call home message's from address: switch@example.com call home message's reply-to address: support@example.com

vrf for call-home messagesNot yet set up
contact person's email addresstechnical@ example.com

contact person's phone number: +1-408-555-1234 street address: 1234 Picaboo Street, Any city, Any state, 12345 customer ID: ExampleCorp contract ID: X123456789 site ID: SantaClara source ip address: Not yet set up source interface: Not yet set up Mail-server[1]: Address: smtp.example.com Priority: 1 Mail-server[2]: Address: 192.168.0.1 Priority: 2 Rate-limit: 20 message(s) per minute

Available alert groups: Keyword State Description configuration Disable configuration info diagnostic Disable diagnostic info environment Disable environmental info inventory Enable inventory info syslog Disable syslog info Profiles: Profile Name: campus-noc Profile Name: CiscoTAC-1

Switch#

Page 1367 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1367 · click to enlarge
Page 1367

Chapter 59 Configuring Call Home

Displaying Call Home Configuration Information

Example 59-2 Configured Call Home Information in Detail

Switch# show call-home detail Current call home settings: call home feature : disable call home message's from address: switch@example.com call home message's reply-to address: support@example.com

vrf for call-home messagesNot yet set up
contact person's email addresstechnical@ example.com

contact person's phone number: +1-408-555-1234 street address: 1234 Picaboo Street, Any city, Any state, 12345 customer ID: ExampleCorp contract ID: X123456789 site ID: SantaClara source ip address: Not yet set up source interface: Not yet set up Mail-server[1]: Address: smtp.example.com Priority: 1 Mail-server[2]: Address: 192.168.0.1 Priority: 2 Rate-limit: 20 message(s) per minute

Available alert groups: Keyword State Description configuration Disable configuration info diagnostic Disable diagnostic info environment Disable environmental info inventory Enable inventory info syslog Disable syslog info

Profiles:

Profile Name: campus-noc Profile status: ACTIVE Preferred Message Format: long-text Message Size Limit: 3145728 Bytes Transport Method: email Email address(es): noc@example.com HTTP address(es): Not yet set up

Alert-group Severity inventory normal

Syslog-Pattern Severity N/A N/A

Profile Name: CiscoTAC-1 Profile status: ACTIVE Preferred Message Format: xml Message Size Limit: 3145728 Bytes Transport Method: email Email address(es): callhome@cisco.com HTTP address(es): https://tools.cisco.com/its/service/oddce/services/DDCEService

Periodic configuration info message is scheduled every 1 day of the month at 09:27

Periodic inventory info message is scheduled every 1 day of the month at 09: 12

Alert-group Severity diagnostic minor environment warning inventory normal

Page 1368 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1368 · click to enlarge
Page 1368

Chapter 59 Configuring Call Home Displaying Call Home Configuration Information

Syslog-Pattern Severity .* major Switch#

Example 59-3 Available Call Home Alert Groups

Switch# show call-home alert-group Available alert groups: Keyword State Description configuration Disable configuration info diagnostic Disable diagnostic info environment Disable environmental info inventory Enable inventory info syslog Disable syslog info

Example 59-4 E-Mail Server Status Information

Switch# show call-home mail-server status Please wait. Checking for mail server status ...

Translating "smtp.example.com" Mail-server[1]: Address: smtp.example.com Priority: 1 [Not Available] Mail-server[2]: Address: 192.168.0.1 Priority: 2 [Not Available]

Example 59-5 Information for All Destination Profiles (Predefined and User-Defined)

Switch# show call-home profile all

Profile Name: campus-noc Profile status: ACTIVE Preferred Message Format: long-text Message Size Limit: 3145728 Bytes Transport Method: email Email address(es): noc@example.com HTTP address(es): Not yet set up

Alert-group Severity inventory normal

Syslog-Pattern Severity N/A N/A

Profile Name: CiscoTAC-1 Profile status: ACTIVE Preferred Message Format: xml Message Size Limit: 3145728 Bytes Transport Method: email Email address(es): callhome@cisco.com HTTP address(es): https://tools.cisco.com/its/service/oddce/services/DDCEService

Periodic configuration info message is scheduled every 1 day of the month at 09:27

Periodic inventory info message is scheduled every 1 day of the month at 09:12

Switch# · Switch#

Page 1369 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1369 · click to enlarge
Page 1369

Chapter 59 Configuring Call Home

Displaying Call Home Configuration Information

Alert-group Severity diagnostic minor environment warning inventory normal

Syslog-Pattern Severity .* major

Example 59-6 Information for a User-Defined Destination Profile

Switch# show call-home profile CiscoTAC-1 Profile Name: CiscoTAC-1 Profile status: INACTIVE Preferred Message Format: xml Message Size Limit: 3145728 Bytes Transport Method: email Email address(es): callhome@cisco.com HTTP address(es): https://tools.cisco.com/its/service/oddce/services/DDCEService

Periodic configuration info message is scheduled every 11 day of the month at 11:25

Periodic inventory info message is scheduled every 11 day of the month at 11:10

Alert-group Severity diagnostic minor environment warning inventory normal

Syslog-Pattern Severity .* major

Example 59-7 Call Home Statistics

Switch# show call-home statistics Message Types Total Email HTTP Total Success 0 0 0 Config 0 0 0 Diagnostic 0 0 0 Environment 0 0 0 Inventory 0 0 0 SysLog 0 0 0 Test 0 0 0 Request 0 0 0 Send-CLI 0 0 0

Total In-Queue 0 0 0 Config 0 0 0 Diagnostic 0 0 0 Environment 0 0 0 Inventory 0 0 0 SysLog 0 0 0 Test 0 0 0 Request 0 0 0 Send-CLI 0 0 0

Switch#

Page 1370 of the Cisco Systems 4500 user manual — Alert Group Trigger Events and Commands
Page 1370 · click to enlarge
Page 1370

Chapter 59 Configuring Call Home Call Home Default Settings

Total Failed 0 0 0 Config 0 0 0 Diagnostic 0 0 0 Environment 0 0 0 Inventory 0 0 0 SysLog 0 0 0 Test 0 0 0 Request 0 0 0 Send-CLI 0 0 0

Total Ratelimit -dropped 0 0 0 Config 0 0 0 Diagnostic 0 0 0 Environment 0 0 0 Inventory 0 0 0 SysLog 0 0 0 Test 0 0 0 Request 0 0 0 Send-CLI 0 0 0

Last call-home message sent timen/a

Call Home Default Settings

Table 59-2 lists the default Call Home settings.

Table 59-2 Default Call Home Settings

Parameters Default

Call Home feature status Disabled

User-defined profile status Active

Predefined Cisco TAC profile status Inactive

Message format type XML

Destination message size for a message sent in long text, short text, or XML format 3,145,728

Alert group status Enabled

Call Home message severity threshold 1 (normal)

Message rate limit for messages per minute 20

Alert Group Trigger Events and Commands

Call Home trigger events are grouped into alert groups, with each alert group assigned CLI commands to execute when an event occurs. The CLI command output is included in the transmitted message. Table 59-3 lists the trigger events included in each alert group, including the severity level of each event and the executed CLI commands for the alert group.

Transport method E-mail

Page 1371 of the Cisco Systems 4500 user manual — POWER_FAIL URE
Page 1371 · click to enlarge
Page 1371

Chapter 59 Configuring Call Home

Alert Group Trigger Events and Commands

Table 59-3 Call Home Alert Groups, Events, and Actions

Call Home Trigger Event Syslog Event Severity Description and CLI Commands Executed

Alert Group

Syslog Event logged to syslog. (Only sent to TAC if syslog level 0, 1, or 2)

CLI commands executed:

show logging show inventory

SYSLOG LOG_EMERG 7 System is unusable.

SYSLOG LOG_ALERT 6 Action must be taken immediately.

SYSLOG LOG_CRIT 5 Critical conditions.

SYSLOG LOG_ERR 4 Error conditions.

SYSLOG LOG_WARNING 3 Warning conditions.

SYSLOG LOG_NOTICE 2 Normal but signification condition.

SYSLOG LOG_INFO 1 Informational.

SYSLOG LOG_DEBUG 0 Debug-level messages.

Environmental Events related to power, fan, and environment sensing elements, such as temperature alarms. (Sent to TAC.)

CLI commands executed:

show module show environment show logging show power show inventory

TEMP_FAILU RE

TempHigh 5 The temperature of the chassis is above the normal threshold.

TEMP_FAILU RE

Critical Temp 5 The temperature of the chassis has risen above the critical threshold.

TEMP_FAILU RE

Shutdown Temp 5 The temperature of the chassis is very high and the system will be shut down.

TEMP_FAILU RE

Some Temp Sensors Failed

3 Some of the temperature sensors have failed.

TEMP_FAILU RE

All Temp Sensors Failed

5 All temperature sensors have failed.

TEMP_RECO VER

TempOk 5 The temperature of the chassis is normal.

POWER_FAIL URE

PowerSupplyBad 5 A power supply has failed or has been turned off.

POWER_REC OVERY

PowerSupplyGood 5 A failed power supply has been fixed.

POWER_FAIL URE

PowerSupplyFanBad 3 A power supply fan has failed.

Page 1372 of the Cisco Systems 4500 user manual — CLOCK_ALA RM
Page 1372 · click to enlarge
Page 1372

Chapter 59 Configuring Call Home Alert Group Trigger Events and Commands

Table 59-3 Call Home Alert Groups, Events, and Actions (continued)

Call Home Trigger Event Syslog Event Severity Description and CLI Commands Executed

Alert Group

POWER_ RECOVERY

PowerSupplyFanGood 3 A failed power supply fan has been fixed.

POWER_REC OVERY

3 A power supply output has increased.

POWER_FAIL URE

3 A power supply output has decreased.

POWER_FAIL URE

InlinePowerSupplyBad 3 Inline power source from a power supply has failed or turned off.

POWER_FAIL URE

3 Mixed power supplies have been detected in the chassis.

POWER_FAIL URE

6 There is insufficient power to support the system. The system might shut down.

POWER_ RECOVERY

3 A failed source for inline power has been fixed.

FANTRAY_FA ILURE

FanTrayPartialFailure 3 Either a fan or thermistors in system fan tray has failed.

FANTRAY_FA ILURE

FanTrayMismatch 3 The fantray, supervisor, chassis combination is disallowed.

FANTRAY_FA ILURE

FanTrayBad 5 Fan tray has failed.

FANTRAY_ RECOVERY

FanTrayGood 3/5 Failed fan tray has been fixed.The severity of the notification depends on the failure which has been recovered from.

FANTRAY_ FAILURE

InsufficientFantray 6 There are not enough FanTray to support the system. This may be followed by a system shut down.

CLOCK_ALA RM

ClockSwitchover 2 Clock module has switched over to another clock.

CLOCK_ALA RM

Clock Faulty 3 The clock module has been found to be faulty.

Inventory Inventory status should be provided whenever a unit is cold-booted, or when FRUs are inserted or removed. it is considered a noncritical event, and the information is used for status and entitlement.

CLI commands executed:

show module show version show inventory oid show idprom all show power

INSERTION Module 1 A line card or supervisor engine has been inserted into a slot.

Show 4 more labels / short text on this page
PowerSupplyOutputInc reased · PowerSupplyOutputDe creased · MixedPowerSupplyInC hassis · InlinePowerSupplyGoo d
Page 1373 of the Cisco Systems 4500 user manual — Data Item Description
Page 1373 · click to enlarge
Page 1373

Chapter 59 Configuring Call Home

Table 59-3 Call Home Alert Groups, Events, and Actions (continued)

Call Home Trigger Event Syslog Event Severity Description and CLI Commands Executed

Alert Group

REMOVAL Module 1 A line card or supervisor engine has been removed from a slot.

1/3/4/5 Events related to standard or intelligent line cards.

CLI commands executed:

show module show version show inventory show buffers show logging show diagnostic result module x detail show diagnostic result module all

Test TEST 1 User-generated test message.

CLI commands executed:

show module show version show inventory

Configuration 1 User-generated request for configuration.

CLI commands executed:

show module show inventory show version show running-config all show startup-config

Message Contents

The following tables display the content formats of alert group messages:

  • Table 59-4 describes the content fields of a short text message.
  • Table 59-5 describes the content fields that are common to all long text and XML messages. The fields specific to a particular alert group message are inserted at a point between the common fields. The insertion point is identified in the table.
  • Table 59-6 describes the inserted content fields for reactive messages (system failures that require a TAC case) and proactive messages (issues that might result in degraded system performance).
  • Table 59-7 describes the inserted content fields for an inventory message.

Table 59-4 Format for a Short Text Message

Data Item Description

Device identification Configured device name

Date/time stamp Time stamp of the triggering event

Message Contents · Diagnostic Failure

Page 1374 of the Cisco Systems 4500 user manual — YYYY-MM-DDTHH:MM:SS
Page 1374 · click to enlarge
Page 1374

Chapter 59 Configuring Call Home Message Contents

Table 59-4 Format for a Short Text Message (continued)

Data Item Description

Error isolation message Plain English description of triggering event

Alarm urgency level Error level such as that applied to a system message

Table 59-5 Common Fields for All Long Text and XML Messages

Data Item (Plain Text and XML)

Description (Plain Text and XML)

XML Tag (XML Only)

Time stamp Date/timestamp of event in ISO time notation:

YYYY-MM-DDTHH:MM:SS

Message name Name of message. For short text message only

Message type Specifically "Call Home". CallHome/Event/Type

Message group Specifically "reactive". Optional in this case because default is "reactive".

Severity level Severity level of message. Body/Block/Severity

Source ID This field is used to identify the product type for routing using the workflow engine. it is typically the product family name.

For long test mtessage only

Device ID Unique Device Identifier (UDI) for end device generating message. This field should empty if the message is nonspecific to a fabric switch.

CallHome/Customer Data/ ContractData/ DeviceId

Formattype@Sid@serial

@:Separator character

  • Type: If WS-C4503-E, product model number from backplane SEEPROM.
  • Sid: "C" identifying serial ID as a chassis serial number.
  • Serial: The serial number as identified by the Sid field.
Example"WS-C4503-E@C@SPE4465329F"

Customer ID Optional user-configurable field used for contract information or other ID by any support service.

CallHome/Customer Data/ ContractData/ CustomerId

Contract ID Optional user-configurable field used for contract information or other ID by any support service.

/CallHome/ Customer Data/ ContractData/ ContractId

Site ID Optional user-configurable field used for Cisco-supplied site ID or other data meaningful to alternate support service.

CallHome/ CustomerData/ ContractData/ SiteId

CallHome/EventTime · CallHome/Event/SubType · Where

Page 1375 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1375 · click to enlarge
Page 1375

Chapter 59 Configuring Call Home

Table 59-5 Common Fields for All Long Text and XML Messages (continued)

Data Item (Plain Text and XML)

Description (Plain Text and XML)

XML Tag (XML Only)

Server ID If message is generated from fabric switch, UDI of switch. If message is proxied or originated by MA, the MA should overwrite this field with the MA UDI.

For long text message only

@: Separator character

  • Type: If WS-C4510R, product model number from backplane SEEPROM.
  • Sid: "C" identifying serial ID as a chassis serial number
  • Serial: The serial number as identified by the Sid field.
Example" WS-C4510R@C@CAT234765XR"

Message description Short text describing the error. CallHome/ MessageDescription

Device name Node that experienced the event. it is the host name of the device. CallHome/ CustomerData/ SystemInfo/ Name

Contact name Name of person to contact for issues associated with the node experiencing the event.

Contact e-mail E-mail address of person identified as contact for this unit. CallHome/CustomerData/Syst emInfo/ContactEmail

Phone number of the person identified as the contact for this unit. CallHome/CustomerData/Syst emInfo/ContactPhoneNumber

Street address Optional field containing street address for RMA part shipments associated with this unit.

Model name Model name of the unit (such as WS-C4503). it is the specific model as part of a product family name.

Serial number Chassis serial number of the unit. CallHome/ Device/ Cisco_Chassis/ SerialNumber

Chassis part number Top assembly number of the chassis as read from SEEPROM (such as

WS-C4503 = 73-10558).

Fields specific to a particular alert group message are inserted here.

The following fields may be repeated if multiple CLI commands are executed for this alert group.

The exact command that was run (such as the show running-config command).

Show 11 more labels / short text on this page
Message Contents · Format is type@Sid@serial · Where · CallHome/CustomerData/Syst emInfo/Contact · Contact phone number · CallHome/CustomerData/Syst emInfo/StreetAddress · CallHome/ Device/ Cisco_Chassis/Model · CallHome/Device/Cisco_Chas sis/AdditionalInformation/ · AD@name="PartNumber" · Command output name · /aml/attachments/attachment/ name
Page 1376 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1376 · click to enlarge
Page 1376

Chapter 59 Configuring Call Home Message Contents

Table 59-5 Common Fields for All Long Text and XML Messages (continued)

Data Item (Plain Text and XML)

Description (Plain Text and XML)

XML Tag (XML Only)

Attachment type Specifically command output. /aml/Attachments/attachment @type

MIME type Normally text/plain or encoding type. /aml/Attachments/Attachment /Data@encoding

Table 59-6 Inserted Fields for a Reactive or Proactive Event Message

Data Item (Plain Text and XML)

Description (Plain Text and XML)

XML Tag (XML Only)

Hardware version of chassis CallHome/Device/Cisco_Chas sis/HardwareVersion

Supervisor module software version

Top-level software version CallHome/Device/Cisco_Chas sis/AdditionalInformation/AD @name="SoftwareVersion"

Affected FRU name Name of the affected FRU generating the event message CallHome/Device/Cisco_Chas sis/Cisco_Card/Model

Affected FRU serial number

Serial number of affected FRU CallHome/Device/Cisco_Chas sis/Cisco_Card/SerialNumber

Affected FRU part number

Part number of affected FRU CallHome/Device/Cisco_Chas sis/Cisco_Card/PartNumber

FRU slot Slot number of FRU generating the event message CallHome/Device/Cisco_Chas sis/Cisco_Card/LocationWithi nContainer

Hardware version of affected FRU CallHome/Device/Cisco_Chas sis/Cisco_Card/HardwareVers ion

Software version(s) running on affected FRU CallHome/Device/Cisco_Chas sis/Cisco_Card/SoftwareIdent ity/VersionString

Table 59-7 Inserted Fields for an Inventory Event Message

Data Item (Plain Text and XML)

Description (Plain Text and XML)

XML Tag (XML Only)

Hardware version of chassis CallHome/Device/Cisco_Cha ssis/HardwareVersion

Supervisor module software version

Top-level software version CallHome/Device/Cisco_Cha ssis/AdditionalInformation/A D@name="SoftwareVersion"

Affected FRU name Name of the affected FRU generating the event message CallHome/Device/Cisco_Cha ssis/Cisco_Card/Model

Show 4 more labels / short text on this page
Chassis hardware version · FRU hardware version · FRU software version · Chassis hardware version
Page 1377 of the Cisco Systems 4500 user manual — Syslog Alert Notification in Long-Text Format Example
Page 1377 · click to enlarge
Page 1377

Chapter 59 Configuring Call Home

Table 59-7 Inserted Fields for an Inventory Event Message (continued)

Data Item (Plain Text and XML)

Description (Plain Text and XML)

XML Tag (XML Only)

Affected FRU s/n Serial number of affected FRU CallHome/Device/Cisco_Cha ssis/Cisco_Card/SerialNumbe r

Affected FRU part number

Part number of affected FRU CallHome/Device/Cisco_Cha ssis/Cisco_Card/PartNumber

FRU slot Slot number of FRU generating the event message CallHome/Device/Cisco_Cha ssis/Cisco_Card/LocationWit hinContainer

Hardware version of affected FRU CallHome/Device/Cisco_Cha ssis/Cisco_Card/HardwareVer sion

Software version(s) running on affected FRU CallHome/Device/Cisco_Cha ssis/Cisco_Card/SoftwareIde ntity/VersionString

Syslog Alert Notification in Long-Text Format Example

TimeStamp : 2009-02-06 12:57 GMT+00:00 Message Name : syslog Message Type : Call Home Message Group : reactive Severity Level : 2 Source ID : Cat4500/4900 Device ID : WS-C4510R@C@1234567 Customer ID : Contract ID : Site ID : Server ID : WS-C4510R@C@1234567 Event Description : *Feb 6 12:57:54.121: %CLEAR-5-COUNTERS: Clear counter on all interfaces by console System Name : Router Contact Email : abc@example.com Contact Phone : Street Address : Affected Chassis : WS-C4510R Affected Chassis Serial Number : 1234567 Affected Chassis Part No : 12-3456-78 Affected Chassis Hardware Version : 1.1 Supervisor Software Version : 12.2(20090204:112419) Command Output Name : show logging Attachment Type : command output MIME Type : text/plain Command Output Text : Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

No Inactive Message Discriminator.

Message Contents · FRU hardware version · FRU software version

Page 1378 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1378 · click to enlarge
Page 1378

Chapter 59 Configuring Call Home Message Contents

Console logging: level debugging, 95 messages logged, xml disabled, filtering disabled Monitor logging: level debugging, 0 messages logged, xml disabled, filtering disabled Buffer logging: level debugging, 95 messages logged, xml disabled, filtering disabled Exception Logging: size (8192 bytes) Count and timestamp logging messages: disabled Persistent logging: disabled

No active filter modules.

Trap logginglevel informational, 118 message lines logged

Log Buffer (4096 bytes): 00:59:54.379: %CALL_HOME-3-HTTP_REQUEST_FAILED: failed to send HTTP request to : https://172.17.46.17/its/service/oddce/services/DDCEService (ERR 107 : Bad parameters) *Feb 6 00:59:55.379: %CALL_HOME-3-HTTP_REQUEST_FAILED: failed to send HTTP request to : https://172.17.46.17/its/service/oddce/services/DDCEService (ERR 107 : Bad parameters) *Feb 6 01:04:37.903: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 01:04:51.783: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:04:56.047: %CALL_HOME-3-SMTP_SEND_FAILED: Unable to send notification using all SMTP servers (ERR 6, error in reply from SMTP server) *Feb 6 01:05:01.823: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:05:01.823: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:05:01.823: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:05:51.827: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:05:56.087: %CALL_HOME-3-SMTP_SEND_FAILED: Unable to send notification using all SMTP servers (ERR 6, error in reply from SMTP server) *Feb 6 01:05:56.867: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:05:56.867: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:05:56.867: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:06:31.871: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 2 has been removed *Feb 6 01:06:31.871: %C4K_CHASSIS-3-INSUFFICIENTPOWERSUPPLIESDETECTED: Insufficient power supplies present for specified configuration *Feb 6 01:06:31.871: %C4K_CHASSIS-2-INSUFFICIENTPOWERDETECTED: Insufficient power available for the current chassis configuration *Feb 6 01:06:36.907: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 2 (PWR-C45-1400AC S/N: AZS11260B3M Hw: 2.3) has been inserted *Feb 6 01:08:06.911: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:08:11.171: %CALL_HOME-3-SMTP_SEND_FAILED: Unable to send notification using all SMTP servers (ERR 6, error in reply from SMTP server) *Feb 6 01:08:11.951: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:08:11.951: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:08:11.951: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:10:35.371: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 01:12:06.955: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed

Page 1379 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1379 · click to enlarge
Page 1379

Chapter 59 Configuring Call Home

*Feb 6 01:12:11.995: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:12:11.995: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:12:11.995: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:13:06.999: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 2 has been removed *Feb 6 01:13:06.999: %C4K_CHASSIS-3-INSUFFICIENTPOWERSUPPLIESDETECTED: Insufficient power supplies present for specified configuration *Feb 6 01:13:06.999: %C4K_CHASSIS-2-INSUFFICIENTPOWERDETECTED: Insufficient power available for the current chassis configuration *Feb 6 01:13:12.035: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 2 (PWR-C45-1400AC S/N: AZS11260B3M Hw: 2.3) has been inserted *Feb 6 01:36:04.079: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 12:51:46.001: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 12:54:15.905: %SYS-5-CONFIG_I: Configured from console by console Switch# Command Output Name : show inventory Attachment Type : command output MIME Type : text/plain Command Output Text : NAME: "Switch System", DESCR: "Cisco Systems, Inc. WS-C4510R 10 slot switch " PID: WS-C4510R , VID: V06 , SN: 1234567

NAME"Clock Module", DESCR: "Clock Module" PID: WS-X4K-CLOCK , VID: V04 , SN: 12345671

NAME: "Mux Buffer 3 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345672

NAME: "Mux Buffer 4 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345673

NAME: "Mux Buffer 5 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345674

NAME: "Mux Buffer 6 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345675

NAME: "Mux Buffer 7 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345676

NAME: "Mux Buffer 8 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345677

NAME: "Mux Buffer 9 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345678

NAME: "Mux Buffer 10 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345679

NAME: "Linecard(slot 2)", DESCR: "Supervisor V-10GE with 2 10GE X2 ports, and 4 1000BaseX SFP ports" PID: WS-X4516-10GE , VID: V07 , SN: 1234567A

NAME: "Linecard(slot 3)", DESCR: "10/100/1000BaseT (RJ45)V with 48 10/100/1000 baseT voice power ports (Cisco/IEEE)" PID: WS-X4548-GB-RJ45V , VID: V08 , SN: 1234567B

NAME: "Linecard(slot 4)", DESCR: "10/100/1000BaseT (RJ45)V with 48 10/100/1000 baseT voice power ports (Cisco/IEEE)" PID: WS-X4548-GB-RJ45V , VID: V08 , SN: 1234567C

Message Contents

Page 1380 of the Cisco Systems 4500 user manual — Syslog Alert Notification in XML Format Example
Page 1380 · click to enlarge
Page 1380

Chapter 59 Configuring Call Home Message Contents

NAME: "Linecard(slot 5)", DESCR: "10/100BaseTX (RJ45) with 32 10/100 baseT and 4 100FX daughtercard ports" PID: WS-X4232-RJ-XX , VID: V05 , SN: 1234567D

NAME"Fan", DESCR: "FanTray" PID: WS-X4582 , VID: V03 , SN: 1234567E

NAME: "Power Supply 1", DESCR: "Power Supply ( AC 1300W )" PID: PWR-C45-1300ACV , VID: V05 , SN: 1234567F

NAME: "Power Supply 2", DESCR: "Power Supply ( AC 1400W )" PID: PWR-C45-1400AC , VID: V04 , SN: 1234567G

Syslog Alert Notification in XML Format Example

Page 1381 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1381 · click to enlarge
Page 1381

Chapter 59 Configuring Call Home

WS-C4510R@C@1234567 Switch abc@example.com

No Active Message Discriminator.

No Inactive Message Discriminator.

Console logging: level debugging, 97 messages logged, xml disabled, filtering disabled Monitor logging: level debugging, 0 messages logged, xml disabled, filtering disabled Buffer logging: level debugging, 97 messages logged, xml disabled, filtering disabled Exception Logging: size (8192 bytes) Count and timestamp logging messages: disabled Persistent logging: disabled

No active filter modules.

Trap logginglevel informational, 120 message lines logged
Log Buffer (4096 bytes)107 : Bad parameters)

Message Contents

Page 1382 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1382 · click to enlarge
Page 1382

Chapter 59 Configuring Call Home Message Contents

*Feb 6 00:59:55.379: %CALL_HOME-3-HTTP_REQUEST_FAILED: failed to send HTTP request to : https://172.17.46.17/its/service/oddce/services/DDCEService (ERR 107 : Bad parameters) *Feb 6 01:04:37.903: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 01:04:51.783: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:04:56.047: %CALL_HOME-3-SMTP_SEND_FAILED: Unable to send notification using all SMTP servers (ERR 6, error in reply from SMTP server) *Feb 6 01:05:01.823: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:05:01.823: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:05:01.823: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:05:51.827: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:05:56.087: %CALL_HOME-3-SMTP_SEND_FAILED: Unable to send notification using all SMTP servers (ERR 6, error in reply from SMTP server) *Feb 6 01:05:56.867: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:05:56.867: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:05:56.867: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:06:31.871: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 2 has been removed *Feb 6 01:06:31.871: %C4K_CHASSIS-3-INSUFFICIENTPOWERSUPPLIESDETECTED: Insufficient power supplies present for specified configuration *Feb 6 01:06:31.871: %C4K_CHASSIS-2-INSUFFICIENTPOWERDETECTED: Insufficient power available for the current chassis configuration *Feb 6 01:06:36.907: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 2 (PWR-C45-1400AC S/N: AZS11260B3M Hw: 2.3) has been inserted *Feb 6 01:08:06.911: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:08:11.171: %CALL_HOME-3-SMTP_SEND_FAILED: Unable to send notification using all SMTP servers (ERR 6, error in reply from SMTP server) *Feb 6 01:08:11.951: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:08:11.951: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:08:11.951: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:10:35.371: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 01:12:06.955: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 1 has been removed *Feb 6 01:12:11.995: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 1 (PWR-C45-1300ACV S/N: DTM123900VH Hw: 5.2) has been inserted *Feb 6 01:12:11.995: %C4K_IOSMODPORTMAN-4-POWERSUPPLYBAD: Power supply 1 has failed or been turned off *Feb 6 01:12:11.995: %C4K_CHASSIS-3-MIXINPOWERDETECTED: Power supplies in the chassis are of different types (AC/DC) or wattage *Feb 6 01:13:06.999: %C4K_IOSMODPORTMAN-4-POWERSUPPLYREMOVED: Power supply 2 has been removed *Feb 6 01:13:06.999: %C4K_CHASSIS-3-INSUFFICIENTPOWERSUPPLIESDETECTED: Insufficient power supplies present for specified configuration *Feb 6 01:13:06.999: %C4K_CHASSIS-2-INSUFFICIENTPOWERDETECTED: Insufficient power available for the current chassis configuration *Feb 6 01:13:12.035: %C4K_IOSMODPORTMAN-6-POWERSUPPLYINSERTEDDETAILED: Power supply 2 (PWR-C45-1400AC S/N: AZS11260B3M Hw: 2.3) has been inserted *Feb 6 01:36:04.079: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 12:51:46.001: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 12:54:15.905: %SYS-5-CONFIG_I: Configured from console by console *Feb 6 12:57:54.121: %CLEAR-5-COUNTERS: Clear counter on all interfaces by console *Feb 6 12:58:24.093: %SYS-5-CONFIG_I: Configured from console by console

Page 1383 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1383 · click to enlarge
Page 1383

Chapter 59 Configuring Call Home

Switch#]]> show inventory

NAME"Clock Module", DESCR: "Clock Module" PID: WS-X4K-CLOCK , VID: V04 , SN: 12345671

NAME: "Mux Buffer 3 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345672

NAME: "Mux Buffer 4 ", DESCR: "Mux Buffers for Redundancy Logic" PID: WS-X4590 , VID: V04 , SN: 12345673

NAME: "Linecard(slot 2)", DESCR: "Supervisor V-10GE with 2 10GE X2 ports, and 4 1000BaseX SFP ports" PID: WS-X4516-10GE , VID: V07 , SN: 12345674

NAME: "Linecard(slot 3)", DESCR: "10/100/1000BaseT (RJ45)V with 48 10/100/1000 baseT voice power ports (Cisco/IEEE)" PID: WS-X4548-GB-RJ45V , VID: V08 , SN: 12345675

NAME: "Linecard(slot 4)", DESCR: "10/100/1000BaseT (RJ45)V with 48 10/100/1000 baseT voice power ports (Cisco/IEEE)" PID: WS-X4548-GB-RJ45V , VID: V08 , SN: 12345676

NAME: "Linecard(slot 5)", DESCR: "10/100BaseTX (RJ45) with 32 10/100 baseT and 4 100FX daughtercard ports" PID: WS-X4232-RJ-XX , VID: V05 , SN: 12345677

NAME"Fan", DESCR: "FanTray" PID: WS-X4582 , VID: V03 , SN: 12345678

NAME: "Power Supply 1", DESCR: "Power Supply ( AC 1300W )" PID: PWR-C45-1300ACV , VID: V05 , SN: 12345679

NAME: "Power Supply 2", DESCR: "Power Supply ( AC 1400W )" PID: PWR-C45-1400AC , VID: V04 , SN: 1234567A

Switch#]]>

Message Contents

Page 1384 of the Cisco Systems 4500 user manual — Configuring Call Home
Page 1384 · click to enlarge
Page 1384

Chapter 59 Configuring Call Home Message Contents

Page 1385 of the Cisco Systems 4500 user manual — C H A P T E R
Page 1385 · click to enlarge
Page 1385

C H A P T E R

Configuring Cisco IOS IP SLA Operations

This chapter describes how to use Cisco IOS IP Service Level Agreements (SLA) on the switch. Cisco IP SLA is a part of Cisco IOS software that allows Cisco customers to analyze IP service levels for IP applications and services by using active traffic monitoring—the generation of traffic in a continuous, reliable, and predictable manner—for measuring network performance. With Cisco IOS IP SLA, service provider customers can measure and provide service level agreements, and enterprise customers can verify service levels, verify outsourced service level agreements, and understand network performance. Cisco IOS IP SLA can perform network assessments, verify quality of service (QoS), ease the deployment of new services, and assist with network troubleshooting. Unless otherwise noted, the term switch refers to a standalone switch and to a switch stack.

This chapter consists of these sections:

  • Cisco IP SLA Commands, page 60-2
  • About Cisco IOS IP SLA, page 60-2
  • Configuring IP SLAs Operations, page 60-7
  • Monitoring IP SLAs Operations, page 60-13
Page 1386 of the Cisco Systems 4500 user manual — About Cisco IOS IP SLA
Page 1386 · click to enlarge
Page 1386

Chapter 60 Configuring Cisco IOS IP SLA Operations Cisco IP SLA Commands

Cisco IP SLA Commands

This table lists the commands most commonly used with Cisco IP SLAs.

Command Purpose Location

ip sla responder {tcp-connect | udp-echo} ipaddress ip-address port port-number

Configures the switch as an IP SLAs responder.

Configuring the IP SLAs Responder, page 60-8

ip sla operation-number Creates an IP SLAs operation, and enter IP SLAs configuration mode.

Analyzing IP Service Levels by Using the UDP Jitter Operation, page 60-9

udp-jitter {destination-ip-address | destination-hostname} destination-port [source-ip {ip-address | hostname}] [source-port port-number] [control {enable | disable}] [num-packets number-of-packets] [interval interpacket-interval]

Configures the IP SLAs operation as a UDP jitter operation, and enter UDP jitter configuration mode.

Analyzing IP Service Levels by Using the UDP Jitter Operation, page 60-9

frequency seconds (Optional) Sets the rate at which a specified IP SLAs operation repeats.

Analyzing IP Service Levels by Using the UDP Jitter Operation, page 60-9

ip sla monitor schedule operation-number [life {forever | seconds}] [start-time {hh:mm [:ss] [month day | day month] | pending | now | after hh:mm:ss] [ageout seconds] [recurring]

Configures the scheduling parameters for an individual IP SLAs operation.

Analyzing IP Service Levels by Using the UDP Jitter Operation, page 60-9

Analyzing IP Service Levels by Using the ICMP Echo Operation, page 60-11

icmp-echo {destination-ip-address | destination-hostname} [source-ip {ip-address | hostname} | source-interface interface-id]

Configures the IP SLAs operation as an ICMP Echo operation and enter ICMP echo configuration mode.

Analyzing IP Service Levels by Using the ICMP Echo Operation, page 60-11

frequency seconds (Optional) Sets the rate at which a specified IP SLA operation repeats.

Analyzing IP Service Levels by Using the ICMP Echo Operation, page 60-11

About Cisco IOS IP SLA

Cisco IOS IP SLA sends data across the network to measure performance between multiple network locations or across multiple network paths. It simulates network data and IP services and collects network performance information in real time. Cisco IOS IP SLA generates and analyzes traffic either between Cisco IOS devices or from a Cisco IOS device to a remote IP device such as a network application server. Measurements provided by the various Cisco IOS IP SLA operations can be used for troubleshooting, for problem analysis, and for designing network topologies.

Depending on the specific Cisco IOS IP SLA operation, various network performance statistics are monitored within the Cisco device and stored in both command-line interface (CLI) and Simple Network Management Protocol (SNMP) MIBs. IP SLA packets have configurable IP and application layer

Page 1387 of the Cisco Systems 4500 user manual — Using Cisco IOS IP SLAs to Measure Network Performance
Page 1387 · click to enlarge
Page 1387

Chapter 60 Configuring Cisco IOS IP SLA Operations

About Cisco IOS IP SLA

options such as source and destination IP address, User Datagram Protocol (UDP)/TCP port numbers, a type of service (ToS) byte (including Differentiated Services Code Point [DSCP] and IP Prefix bits), Virtual Private Network (VPN) routing/forwarding instance (VRF), and URL web address.

Because Cisco IP SLAs is Layer 2 transport independent, you can configure end-to-end operations over disparate networks to best reflect the metrics that an end user is likely to experience. IP SLAs collects a unique subset of these performance metrics:

  • Delay (both round-trip and one-way)
  • Jitter (directional)
  • Packet loss (directional)
  • Packet sequencing (packet ordering)
  • Path (per hop)
  • Connectivity (directional)
  • Server or website download time

Because Cisco IOS IP SLAs is SNMP-accessible, it can also be used by performance-monitoring applications such as CiscoWorks Internetwork Performance Monitor (IPM) and other third-party Cisco partner performance management products. You can find more details about network management products that use Cisco IOS IP SLAs at this URL:

http://www.cisco.com/go/ipsla

Using IP SLAs can provide these benefits:

  • Service-level agreement monitoring, measurement, and verification.
  • Network performance monitoring

– Measures the jitter, latency, or packet loss in the network.

– Provides continuous, reliable, and predictable measurements.

  • IP service network health assessment to verify that the existing QoS is sufficient for new IP services.
  • Edge-to-edge network availability monitoring for proactive verification and connectivity testing of network resources (for example, shows the network availability of an NFS server used to store business critical data from a remote site).
  • Troubleshooting of network operation by providing consistent, reliable measurement that immediately identifies problems and saves troubleshooting time.

This section includes this information about IP SLAs functionality:

  • Using Cisco IOS IP SLAs to Measure Network Performance, page 60-3
  • IP SLAs Responder and IP SLAs Control Protocol, page 60-4
  • Response Time Computation for IP SLAs, page 60-5
  • IP SLAs Operation Scheduling, page 60-6
  • IP SLAs Operation Threshold Monitoring, page 60-6

Using Cisco IOS IP SLAs to Measure Network Performance

You can use IP SLAs to monitor the performance between any area in the network—core, distribution, and edge—without deploying a physical probe. It uses generated traffic to measure network performance between two networking devices. Figure 60-1 shows how IP SLAs begins when the source device sends a generated packet to the destination device. After the destination device receives the packet, depending

Page 1388 of the Cisco Systems 4500 user manual — IP SLAs Responder and IP SLAs Control Protocol
Page 1388 · click to enlarge
Page 1388

Chapter 60 Configuring Cisco IOS IP SLA Operations About Cisco IOS IP SLA

on the type of IP SLAs operation, it responds with time-stamp information for the source to make the calculation on performance metrics. An IP SLAs operation performs a network measurement from the source device to a destination in the network using a specific protocol such as UDP.

Figure 60-1 Cisco IOS IP SLAs Operation

IP SLA measurement and IP SLA responder to

SNMP

IP SLA

IP network IP SLA

IP SLA source IP SLA responder

IP SLA measurement and IP SLA responder to

IP SLA measurement and IP SLA responder to

To implement IP SLAs network performance measurement, you need to perform these tasks:

1. Enable the IP SLAs responder, if required.
2. Configure the required IP SLAs operation type.
3. Configure any options available for the specified operation type.
4. Configure threshold conditions, if required.
5. Schedule the operation to run, then let the operation run for a period of time to gather statistics.
6. Display and interpret the results of the operation using the Cisco IOS CLI or a network management system (NMS) system with SNMP.

For more information about IP SLAs operations, see the operation-specific chapters in the Cisco IOS IP SLAs Configuration Guide, Release 12.4T at this URL: http://www.cisco.com/en/US/docs/ios/ipsla/configuration/guide/12_4t/sla_12_4t_book.html The switch does not support Voice over IP (VoIP) service levels using the gatekeeper registration delay operations measurements. Before configuring any IP SLAs application, you can use the show ip sla application privileged EXEC command to verify that the operation type is supported on your software image.

IP SLAs Responder and IP SLAs Control Protocol

The IP SLAs responder is a component embedded in the destination Cisco device that allows the system to anticipate and respond to IP SLAs request packets. The responder provides accurate measurements without the need for dedicated probes. The responder uses the Cisco IOS IP SLAs Control Protocol to provide a mechanism through which it can be notified on which port it should listen and respond. Only a Cisco IOS device can be a source for a destination IP SLAs Responder.

Show 6 more labels / short text on this page
Performance management · Any IP device · application · IP SLA Responder · IP SLA Responder · IP SLA Responder
Page 1389 of the Cisco Systems 4500 user manual — T2
Page 1389 · click to enlarge
Page 1389

Chapter 60 Configuring Cisco IOS IP SLA Operations

About Cisco IOS IP SLA

Figure 60-1 shows where the Cisco IOS IP SLAs responder fits in the IP network. The responder listens on a specific port for control protocol messages sent by an IP SLAs operation. Upon receipt of the control message, it enables the specified UDP or TCP port for the specified duration. During this time, the responder accepts the requests and responds to them. It disables the port after it responds to the IP SLAs packet, or when the specified time expires. MD5 authentication for control messages is available for added security.

You do not need to enable the responder on the destination device for all IP SLAs operations. For example, a responder is not required for services that are already provided by the destination router (such as Telnet or HTTP). You cannot configure the IP SLAs responder on non-Cisco devices and Cisco IOS IP SLAs can send operational packets only to services native to those devices.

Response Time Computation for IP SLAs

Switches and routers can take tens of milliseconds to process incoming packets due to other high priority processes. This delay affects the response times because the test-packet reply might be in a queue while waiting to be processed. In this situation, the response times would not accurately represent true network delays. IP SLAs minimizes these processing delays on the source device as well as on the target device (if the responder is being used) to determine true round-trip times. IP SLAs test packets use time stamping to minimize the processing delays.

When the IP SLAs responder is enabled, it allows the target device to take time stamps when the packet arrives on the interface at interrupt level and again just as it is leaving, eliminating the processing time. This time stamping is made with a granularity of sub-milliseconds (ms).

Figure 60-2 demonstrates how the responder works. Four time stamps are taken to make the calculation for round-trip time. At the target router, with the responder functionality enabled, time stamp 2 (TS2) is subtracted from time stamp 3 (TS3) to produce the time spent processing the test packet as represented by delta. This delta value is then subtracted from the overall round-trip time. The same principle is applied by IP SLAs on the source router where the incoming time stamp 4 (TS4) is also taken at the interrupt level to allow for greater accuracy.

Figure 60-2 Cisco IOS IP SLAs Responder Time Stamping

T2

T1

T3

=T3-T2 T4

RTT (Round-trip time) = T4 (Time stamp 4) - T1 (Time stamp 1) -

An additional benefit of the two time stamps at the target device is the ability to track one-way delay, jitter, and directional packet loss. Because much network behavior is asynchronous, it is critical to have these statistics. However, to capture one-way delay measurements, you must configure both the source router and target router with Network Time Protocol (NTP) so that the source and target are synchronized to the same clock source. One-way jitter measurements do not require clock synchronization.

Source router · Target router · Responder

Page 1390 of the Cisco Systems 4500 user manual — IP SLAs Operation Threshold Monitoring
Page 1390 · click to enlarge
Page 1390

Chapter 60 Configuring Cisco IOS IP SLA Operations About Cisco IOS IP SLA

IP SLAs Operation Scheduling

For more details about the IP SLAs multioperations scheduling functionality, see the “IP SLAs—Multiple Operation Scheduling” chapter of the Cisco IOS IP SLAs Configuration Guide at this URL:

http://www.cisco.com/en/US/docs/ios/ipsla/configuration/guide/12_4t/sla_12_4t_book.html

When you configure an IP SLAs operation, you must schedule the operation to begin capturing statistics and collecting error information. You can schedule an operation to start immediately or to start at a certain month, day, and hour. You can use the pending option to set the operation to start at a later time. The pending option is an internal state of the operation that is visible through SNMP. The pending state is also used when an operation is a reaction (threshold) operation waiting to be triggered. You can schedule a single IP SLAs operation or a group of operations at one time.

You can schedule several IP SLAs operations by using a single command using the Cisco IOS CLI or the CISCO RTTMON-MIB. Scheduling the operations to run at evenly distributed times allows you to control the amount of IP SLAs monitoring traffic. This distribution of IP SLAs operations helps minimize the CPU utilization and thus improves network scalability.

IP SLAs Operation Threshold Monitoring

For details on using thresholds with Cisco IOS IP SLAs operations, see the “IP SLAs—Proactive Threshold Monitoring” chapter of the Cisco IOS IP SLAs Configuration Guide at this URL:

http://www.cisco.com/en/US/docs/ios/ipsla/configuration/guide/12_4t/sla_12_4t_book.html

To support successful service level agreement monitoring, you must have mechanisms that notify you immediately of any possible violation. IP SLAs can send SNMP traps that are triggered by events such as these:

  • Connection loss
  • Timeout
  • Round-trip time threshold
  • Average jitter threshold
  • One-way packet loss
  • One-way jitter
  • One-way mean opinion score (MOS)
  • One-way latency

An IP SLAs threshold violation can also trigger another IP SLAs operation for further analysis. For example, the frequency could be increased or an ICMP path echo or ICMP path jitter operation could be initiated for troubleshooting.

Determining the type of threshold and the level to set can be complex, and depends on the type of IP service being used in the network.

Page 1391 of the Cisco Systems 4500 user manual — IP SLA Configuration Guidelines
Page 1391 · click to enlarge
Page 1391

Chapter 60 Configuring Cisco IOS IP SLA Operations

Configuring IP SLAs Operations

Configuring IP SLAs Operations

Note This section does not include configuration information for all available operations as the configuration information details are included in the Cisco IOS IP SLAs Configuration Guide. It does include several operations as examples, including configuring the responder, configuring UDP jitter operation, which requires a responder, and configuring ICMP echo operation, which does not require a responder. A switch running the IP base image supports only IP SLAs responder functionality. The switch must be running the IP services image for full IP SLAs functionality.

For details about configuring other operations, see he Cisco IOS IP SLAs Configuration Guide at this URL:

http://www.cisco.com/en/US/docs/ios/ipsla/configuration/guide/12_4t/sla_12_4t_book.html

This section includes this information:

  • IP SLA Default Configuration, page 60-7
  • IP SLA Configuration Guidelines, page 60-7
  • Configuring the IP SLAs Responder, page 60-8
  • Analyzing IP Service Levels by Using the UDP Jitter Operation, page 60-9
  • Analyzing IP Service Levels by Using the ICMP Echo Operation, page 60-11

IP SLA Default Configuration

By default, no IP SLAs operations are configured.

IP SLA Configuration Guidelines

For detailed descriptions and configuration procedures, see the Cisco IOS IP SLAs Configuration Guide, Release 12.4T at this URL:

http://www.cisco.com/en/US/docs/ios/ipsla/configuration/guide/12_4t/sla_12_4t_book.html

Not all of the IP SLAs commands or operations described in this guide are supported on the switch. The switch supports IP service level analysis by using UDP jitter, UDP echo, HTTP, TCP connect, ICMP echo, ICMP path echo, ICMP path jitter, FTP, DNS, and DHCP, as well as multiple operation scheduling and proactive threshold monitoring. It does not support VoIP service levels using the gatekeeper registration delay operations measurements.

Before configuring any IP SLAs application, you can use the show ip sla application privileged EXEC command to verify that the operation type is supported on your software image. it is an example of the output from the command:

Switch# show ip sla application IP SLAs Version: 2.2.0 Round Trip Time MIB, Infrastructure Engine-II Time of last change in whole IP SLAs: 22:17:39.117 UTC Fri Jun Estimated system max number of entries: 15801

Estimated number of configurable operations: 15801 Number of Entries configured : 0 Number of active Entries : 0

Page 1392 of the Cisco Systems 4500 user manual — Configuring the IP SLAs Responder
Page 1392 · click to enlarge
Page 1392

Chapter 60 Configuring Cisco IOS IP SLA Operations Configuring IP SLAs Operations

Number of pending Entries0 Number of inactive Entries : 0

Supported Operation Types Type of Operation to Perform: 802.1agEcho Type of Operation to Perform: 802.1agJitter Type of Operation to Perform: dhcp Type of Operation to Perform: dns Type of Operation to Perform: echo Type of Operation to Perform: ftp Type of Operation to Perform: http Type of Operation to Perform: jitter Type of Operation to Perform: pathEcho Type of Operation to Perform: pathJitter Type of Operation to Perform: tcpConnect Type of Operation to Perform: udpEcho

IP SLAs low memory water mark: 21741224

Configuring the IP SLAs Responder

The IP SLAs responder is available only on Cisco IOS software-based devices, including some Layer 2 switches that do not support full IP SLAs functionality, such as the Cisco ME 2400 switch.

To configure the IP SLAs responder on the target device (the operational target), perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip sla responder {tcp-connect | udp-echo} ipaddress ip-address port port-number

Configures the switch as an IP SLAs responder.

The optional keywords have these meanings:

  • tcp-connect —Enable the responder for TCP connect operations.
  • udp-echo —Enable the responder for User Datagram Protocol (UDP) echo or jitter operations.
  • ipaddress ip-address —Enter the destination IP address.
  • port port-number —Enter the destination port number.

Step 3 Switch(config)# end Returns to privileged EXEC mode.

Step 4 Switch# show ip sla responder Verifies the IP SLAs responder configuration on the device.

Step 5 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable the IP SLAs responder, enter the no ip sla responder global configuration command. This example shows how to configure the device as a responder for the UDP jitter IP SLAs operation in the next procedure:

Switch(config)# ip sla responder udp-echo 172.29.139.134 5000

Page 1393 of the Cisco Systems 4500 user manual — Analyzing IP Service Levels by Using the UDP Jitter Operation
Page 1393 · click to enlarge
Page 1393

Chapter 60 Configuring Cisco IOS IP SLA Operations

Configuring IP SLAs Operations

Analyzing IP Service Levels by Using the UDP Jitter Operation

Jitter means interpacket delay variance. When multiple packets are sent consecutively 10 ms apart from source to destination, if the network is behaving correctly, the destination should receive them 10 ms apart. But if there are delays in the network such as queuing, arriving through alternate routes, and so on) the arrival delay between packets might be more than or less than 10 ms with a positive jitter value meaning that the packets arrived more than 10 ms apart. If the packets arrive 12 ms apart, positive jitter is 2 ms; if the packets arrive 8 ms apart, negative jitter is 2 ms. For delay-sensitive networks, positive jitter values are undesirable, and a jitter value of 0 is ideal.

In addition to monitoring jitter, the IP SLAs UDP jitter operation can be used as a multipurpose data gathering operation. The packets IP SLAs generates carry packet sending and receiving sequence information and sending and receiving time stamps from the source and the operational target. Based on these, UDP jitter operations measure this data:

  • Per-direction jitter (source to destination and destination to source)
  • Per-direction packet-loss
  • Per-direction delay (one-way delay)
  • Round-trip delay (average round-trip time)

Because the paths for the sending and receiving of data can be different (asymmetric), you can use the per-direction data to more readily identify where congestion or other problems are occurring in the network.

The UDP jitter operation generates synthetic (simulated) UDP traffic and sends a number of UDP packets, each of a specified size, sent a specified number of milliseconds apart, from a source router to a target router, at a given frequency. By default, ten packet-frames, each with a payload size of 10 bytes are generated every 10 ms, and the operation is repeated every 60 seconds. You can configure each of these parameters to best simulate the IP service you want to provide.

To obtain one-way delay (latency) measurements, time synchronization, such as that provided by NTP, is required between the source and the target device. Time synchronization is not required for the one-way jitter and packet loss measurements. If the time is not synchronized between the source and target devices, one-way jitter and packet loss data is returned, but values of 0 are returned for the one-way delay measurements provided by the UDP jitter operation.

To configure UDP jitter operation on the source device, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip sla operation-number

Creates an IP SLAs operation, and enter IP SLAs configuration mode.

Page 1394 of the Cisco Systems 4500 user manual — Configuring Cisco IOS IP SLA Operations
Page 1394 · click to enlarge
Page 1394

Chapter 60 Configuring Cisco IOS IP SLA Operations Configuring IP SLAs Operations

Step 3 Switch(config-ip-sla)# udp-jitter {destination-ip-address | destination-hostname} destination-port [source-ip {ip-address | hostname}] [source-port port-number] [control {enable | disable}] [num-packets number-of-packets] [interval interpacket-interval]

Configures the IP SLAs operation as a UDP jitter operation, and enter UDP jitter configuration mode.

  • destination-ip-address | destination-hostname —Specify the destination IP address or hostname.
  • destination-port —Specify the destination port number in the range from 1 to 65535.
  • (Optional) source-ip { ip-address | hostname } — Specify the source IP address or hostname. When a source IP address or hostname is not specified, IP SLAs chooses the IP address nearest to the destination
  • (Optional) source-port port-number —Specify the source port number in the range from 1 to 65535. When a port number is not specified, IP SLAs chooses an available port.
  • (Optional) control —Enable or disable sending of IP SLAs control messages to the IP SLAs responder. By default, IP SLAs control messages are sent to the destination device to establish a connection with the IP SLAs responder
  • (Optional) num-packets number-of-packets —Enter the number of packets to be generated. The range is 1 to 6000; the default is 10.
  • (Optional) interval inter-packet-interval —Enter the interval between sending packets in milliseconds. The range is 1 to 6000; the default value is 20 ms.

Step 4 Switch(config-ip-sla)# frequency seconds

(Optional) Sets the rate at which a specified IP SLAs operation repeats. The range is from 1 to 604800 seconds; the default is 60 seconds.

Step 5 Switch(config-ip-sla)# exit Exits UDP jitter configuration mode, and return to global configuration mode.

Step 6 Switch(config)# ip sla monitor schedule operation-number [life {forever | seconds}] [start-time {hh:mm [:ss] [month day | day month] | pending | now | after hh:mm:ss] [ageout seconds] [recurring]

Configures the scheduling parameters for an individual IP SLAs operation.

  • operation-number —Enter the RTR entry number.
  • (Optional) life —Set the operation to run indefinitely ( forever ) or for a specific number of seconds . The range is from 0 to 2147483647. The default is 3600 seconds (1 hour).
  • (Optional) start-time —Enter the time for the operation to begin collecting information:

– To start at a specific time, enter the hour, minute, second (in 24-hour notation), and day of the month. If no month is entered, the default is the current month.

– Enter pending to select no information collection until a start time is selected.

– Enter now to start the operation immediately.

– Enter after hh:mm:ss to show that the operation should start after the entered time has elapsed.

  • (Optional) ageout seconds —Enter the number of seconds to keep the operation in memory when it is not actively collecting information. The range is 0 to 2073600 seconds, the default is 0 seconds (never ages out).
  • (Optional) recurring —Set the operation to automatically run every day.
Page 1395 of the Cisco Systems 4500 user manual — Analyzing IP Service Levels by Using the ICMP Echo Operation
Page 1395 · click to enlarge
Page 1395

Chapter 60 Configuring Cisco IOS IP SLA Operations

Configuring IP SLAs Operations

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Step 8 Switch# show ip sla configuration [operation-number]

(Optional) Displays configuration values, including all defaults for all IP SLAs operations or a specified operation.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable the IP SLAs operation, enter the no ip sla operation-number global configuration command. This example shows how to configure a UDP jitter IP SLAs operation:

Switch(config)# ip sla 10 Switch(config-ip-sla)# udp-jitter 172.29.139.134 5000 Switch(config-ip-sla-jitter)# frequency 30 Switch(config-ip-sla-jitter)# exit Switch(config)# ip sla monitor schedule 5 start-time now life forever Switch(config)# end Switch# show ip sla configuration 10 IP SLAs, Infrastructure Engine-II.

Entry number: 10 Owner: Tag: Type of operation to perform: udp-jitter Target address/Source address: 1.1.1.1/0.0.0.0 Target port/Source port: 2/0 Request size (ARR data portion): 32 Operation timeout (milliseconds): 5000 Packet Interval (milliseconds)/Number of packets: 20/10 Type Of Service parameters: 0x0 Verify data: No Vrf Name: Control Packets: enabled Schedule: Operation frequency (seconds): 30 Next Scheduled Start Time: Pending trigger Group Scheduled : FALSE Randomly Scheduled : FALSE Life (seconds): 3600 Entry Ageout (seconds): never Recurring (Starting Everyday): FALSE Status of entry (SNMP RowStatus): notInService Threshold (milliseconds): 5000 Distribution Statistics: Number of statistic hours kept: 2 Number of statistic distribution buckets kept: 1 Statistic distribution interval (milliseconds): 20 Enhanced History:

Analyzing IP Service Levels by Using the ICMP Echo Operation

The ICMP echo operation measures end-to-end response time between a Cisco device and any devices using IP. Response time is computed by measuring the time taken between sending an ICMP echo request message to the destination and receiving an ICMP echo reply. Many customers use IP SLAs ICMP-based operations, in-house ping testing, or ping-based dedicated probes for response time

Page 1396 of the Cisco Systems 4500 user manual — Configuring Cisco IOS IP SLA Operations
Page 1396 · click to enlarge
Page 1396

Chapter 60 Configuring Cisco IOS IP SLA Operations Configuring IP SLAs Operations

measurements between the source IP SLAs device and the destination IP device. The IP SLAs ICMP echo operation conforms to the same specifications as ICMP ping testing, and the two methods result in the same response times.

To configure an ICMP echo operation on the source device, perform this task:

Step 1 configure terminal Enters global configuration mode.

Step 2 Switch(config)# ip sla operation-number

Creates an IP SLAs operation and enter IP SLAs configuration mode.

Step 3 Switch(config-ip-sla)# icmp-echo {destination-ip-address | destination-hostname} [source-ip {ip-address | hostname} | source-interface interface-id]

Configures the IP SLAs operation as an ICMP Echo operation and enter ICMP echo configuration mode.

  • destination-ip-address | destination-hostname —Specify the destination IP address or hostname.
  • (Optional) source-ip { ip-address | hostname } — Specify the source IP address or hostname. When a source IP address or hostname is not specified, IP SLAs chooses the IP address nearest to the destination
  • (Optional) source-interface interface-id —Specify the source interface for the operation.

Step 4 Switch(config-ip-sla)# frequency seconds

(Optional) Sets the rate at which a specified IP SLAs operation repeats. The range is from 1 to 604800 seconds; the default is 60 seconds.

Step 5 Switch(config-ip-sla)# exit Exits UDP jitter configuration mode, and return to global configuration mode.

Step 6 Switch(config)# ip sla schedule operation-number [life {forever | seconds}] [start-time {hh:mm [:ss] [month day | day month] | pending | now | after hh:mm:ss] [ageout seconds] [recurring]

Configures the scheduling parameters for an individual IP SLAs operation.

  • operation-number —Enter the RTR entry number.
  • (Optional) life —Set the operation to run indefinitely ( forever ) or for a specific number of seconds . The range is from 0 to 2147483647. The default is 3600 seconds (1 hour)
  • (Optional) start-time —Enter the time for the operation to begin collecting information:

– To start at a specific time, enter the hour, minute, second (in 24-hour notation), and day of the month. If no month is entered, the default is the current month.

– Enter pending to select no information collection until a start time is selected.

– Enter now to start the operation immediately.

– Enter after hh:mm:ss to indicate that the operation should start after the entered time has elapsed.

  • (Optional) ageout seconds —Enter the number of seconds to keep the operation in memory when it is not actively collecting information. The range is 0 to 2073600 seconds; the default is 0 seconds (never ages out).
  • (Optional) recurring —Set the operation to automatically run every day.

Step 7 Switch(config)# end Returns to privileged EXEC mode.

Page 1397 of the Cisco Systems 4500 user manual — Monitoring IP SLAs Operations
Page 1397 · click to enlarge
Page 1397

Chapter 60 Configuring Cisco IOS IP SLA Operations

Monitoring IP SLAs Operations

Step 8 Switch# show ip sla configuration [operation-number]

(Optional) Displays configuration values including all defaults for all IP SLAs operations or a specified operation.

Step 9 Switch# copy running-config startup-config

(Optional) Saves your entries in the configuration file.

To disable the IP SLAs operation, enter the no ip sla operation-number global configuration command. This example shows how to configure an ICMP echo IP SLAs operation:

Switch(config)# ip sla 12 Switch(config-ip-sla)# icmp-echo 172.29.139.134 Switch(config-ip-sla-echo)# frequency 30 Switch(config-ip-sla-echo)# exit Switch(config)# ip sla schedule 5 start-time now life forever Switch(config)# end Switch# show ip sla configuration 22 IP SLAs, Infrastructure Engine-II.

Entry number: 12 Owner: Tag: Type of operation to perform: echo Target address: 2.2.2.2 Source address: 0.0.0.0 Request size (ARR data portion): 28 Operation timeout (milliseconds): 5000 Type Of Service parameters: 0x0 Verify data: No Vrf Name: Schedule: Operation frequency (seconds): 60 Next Scheduled Start Time: Pending trigger Group Scheduled : FALSE Randomly Scheduled : FALSE Life (seconds): 3600 Entry Ageout (seconds): never Recurring (Starting Everyday): FALSE Status of entry (SNMP RowStatus): notInService Threshold (milliseconds): 5000 Distribution Statistics: Number of statistic hours kept: 2 Number of statistic distribution buckets kept: 1 Statistic distribution interval (milliseconds): 20 History Statistics: Number of history Lives kept: 0 Number of history Buckets kept: 15 History Filter Type: None Enhanced History:

Monitoring IP SLAs Operations

To display IP SLAs operations configuration and results, perform one of these tasks:

Page 1398 of the Cisco Systems 4500 user manual — Configuring Cisco IOS IP SLA Operations
Page 1398 · click to enlarge
Page 1398

Chapter 60 Configuring Cisco IOS IP SLA Operations Monitoring IP SLAs Operations

show ip sla application Displays global information about Cisco IOS IP SLAs.

show ip sla authentication Displays IP SLAs authentication information.

show ip sla configuration [entry-number] Displays configuration values including all defaults for all IP SLAs operations or a specific operation.

show ip sla enhanced-history {collection-statistics | distribution statistics} [entry-number]

Displays enhanced history statistics for collected history buckets or distribution statistics for all IP SLAs operations or a specific operation.

show ip sla ethernet-monitor configuration [entry-number] Displays IP SLAs automatic Ethernet configuration.

show ip sla group schedule [schedule-entry-number] Displays IP SLAs group scheduling configuration and details.

show ip sla history [entry-number | full | tabular] Displays history collected for all IP SLAs operations

show ip sla mpls-lsp-monitor {collection-statistics | configuration | ldp operational-state | scan-queue | summary [entry-number] | neighbors}

Displays MPLS label switched path (LSP) Health Monitor operations,

show ip sla reaction-configuration [entry-number] Displays the configured proactive threshold monitoring settings for all IP SLAs operations or a specific operation.

show ip sla reaction-trigger [entry-number] Displays the reaction trigger information for all IP SLAs operations or a specific operation.

show ip sla responder Displays information about the IP SLAs responder.

show ip sla statistics [entry-number | aggregated | details]

Displays current or aggregated operational status and statistics.

Page 1399 of the Cisco Systems 4500 user manual — About RMON
Page 1399 · click to enlarge
Page 1399

C H A P T E R

Configuring RMON

This chapter describes how to configure Remote Network Monitoring (RMON) on your Catalyst 4500 series switch. RMON is a standard monitoring specification that defines a set of statistics and functions that can be exchanged between RMON-compliant console systems and network probes. RMON provides you with comprehensive network-fault diagnosis, planning, and performance-tuning information.

This chapter consists of these sections:

  • About RMON, page 61-1
  • Configuring RMON, page 61-3
  • Displaying RMON Status, page 61-6

About RMON

RMON is an Internet Engineering Task Force (IETF) standard monitoring specification that allows various network agents and console systems to exchange network monitoring data. You can use the RMON feature with the Simple Network Management Protocol (SNMP) agent in the switch to monitor all the traffic flowing among switches on all connected LAN segments.

Page 1400 of the Cisco Systems 4500 user manual — Configuring RMON
Page 1400 · click to enlarge
Page 1400

Chapter 61 Configuring RMON About RMON

Cisco Systems 4500 — Configuring RMON diagram (page 1400)
Fig. 16 · Configuring RMON

Catalyst 3550 switch RMON alarms and events configured. SNMP configured.

The switch supports these RMON groups (defined in RFC 1757):

  • Statistics (RMON group 1)—Collects Ethernet, Fast Ethernet, and Gigabit Ethernet statistics on an interface.
  • History (RMON group 2)—Collects a history group of statistics on Ethernet, Fast Ethernet, and Gigabit Ethernet interfaces for a specified polling interval.
Page 1401 of the Cisco Systems 4500 user manual — Configuring RMON Alarms and Events
Page 1401 · click to enlarge
Page 1401

Chapter 61 Configuring RMON

  • Alarm (RMON group 3)—Monitors a specific MIB object for a specified interval, triggers an alarm at a specified value (rising threshold), and resets the alarm at another value (falling threshold). Alarms can be used with events; the alarm triggers an event, which can generate a log entry or an SNMP trap.
  • Event (RMON group 9)—Determines the action to take when an event is triggered by an alarm. The action can be to generate a log entry or an SNMP trap.

Because switches supported by Cisco IOS Release 12.2(31)SG use hardware counters for RMON data processing, the monitoring is more efficient, and little processing power is required.

Configuring RMON

This section describes how to configure RMON on your switch. It contains this configuration information:

  • Default RMON Configuration, page 61-3
  • Configuring RMON Alarms and Events, page 61-3
  • Configuring RMON Collection on an Interface, page 61-5

Default RMON Configuration

RMON is disabled by default; no alarms or events are configured.

Only RMON 1 is supported on the switch.

Configuring RMON Alarms and Events

You can configure your switch for RMON by using the command-line interface (CLI) or an SNMP-compatible network management station. We recommend that you use a generic RMON console application on the network management station (NMS) to take advantage of RMON’s network management capabilities. You must also configure SNMP on the switch to access RMON MIB objects. For more information, see Chapter 54, “Configuring SNMP.”

Configuring RMON

Page 1402 of the Cisco Systems 4500 user manual — Configuring RMON
Page 1402 · click to enlarge
Page 1402

Chapter 61 Configuring RMON Configuring RMON

To enable RMON alarms and events, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# rmon alarm number variable interval {absolute | delta} rising-threshold value [event-number] falling-threshold value [event-number] [owner string]

Sets an alarm on a MIB object.

  • For number , specify the alarm number. The range is 1 to 65535.
  • For variable , specify the MIB object to monitor.
  • For interval , specify the time in seconds the alarm monitors the MIB variable. The range is 1 to 4294967295 seconds.
  • Specify the absolute keyword to test each MIB variable directly; specify the delta keyword to test the change between samples of a MIB variable.
  • For value , specify a number at which the alarm is triggered and one for when the alarm is reset. The range for the rising threshold and falling threshold values is -2147483648 to 2147483647.
  • (Optional) For event-number , specify the event number to trigger when the rising or falling threshold exceeds its limit.
  • (Optional) For owner string , specify the owner of the alarm.

Step 3 Switch(config)# rmon event number [description string] [log] [owner string] [trap community]

Adds an event in the RMON event table that is associated with an RMON event number.

  • For number , assign an event number. The range is 1 to 65535.
  • (Optional) For description string , specify a description of the event.
  • (Optional) Use the log keyword to generate an RMON log entry when the event is triggered.
  • (Optional) For owner string , specify the owner of this event.
  • (Optional) For community , enter the SNMP community string used for this trap.

Step 4 Switch(config)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Page 1403 of the Cisco Systems 4500 user manual — Configuring RMON Collection on an Interface
Page 1403 · click to enlarge
Page 1403

Chapter 61 Configuring RMON

To disable an alarm, use the no rmon alarm number global configuration command on each alarm you configured. You cannot disable at once all the alarms that you configured. To disable an event, use the no rmon event number global configuration command. To learn more about alarms and events and how they interact with each other, see RFC 1757.

You can set an alarm on any MIB object. The following example configures RMON alarm number 10 by using the rmon alarm command. The alarm monitors the MIB variable ifEntry.20.1 once every 20 seconds until the alarm is disabled and checks the change in the variable’s rise or fall. If the ifEntry.20.1 value shows a MIB counter increase of 15 or more, such as from 100000 to 100015, the alarm is triggered. The alarm in turn triggers event number 1, which is configured with the rmon event command. Possible events can include a log entry or an SNMP trap. If the ifEntry.20.1 value changes by 0, the alarm is reset and can be triggered again.

Switch(config)# rmon alarm 10 ifEntry.20.1 20 delta rising-threshold 15 1 falling-threshold 0 owner jjohnson

The following example creates RMON event number 1 by using the rmon event command. The event is defined as High ifOutErrors and generates a log entry when the event is triggered by the alarm. The user jjones owns the row that is created in the event table by this command. This example also generates an SNMP trap when the event is triggered.

Switch(config)# rmon event 1 log trap eventtrap description “High ifOutErrors” owner jjones

Configuring RMON Collection on an Interface

You must first configure RMON alarms and events to display collection information.

To collect group history statistics on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which to collect history, and enter interface configuration mode.

Step 3 Switch(config-if)# rmon collection history index [buckets bucket-number] [interval seconds] [owner ownername]

Enables history collection for the specified number of buckets and time period.

  • For index , identify the RMON group of statistics The range is 1 to 65535.
  • (Optional) For buckets bucket-number, specify the maximum number of buckets desired for the RMON collection history group of statistics. The range is 1 to 65535. The default is 50 buckets.
  • (Optional) For interval seconds , specify the number of seconds in each polling cycle.
  • (Optional) For owner ownername , enter the name of the owner of the RMON group of statistics.

To disable history collection, use the no rmon collection history index interface configuration command.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Configuring RMON

Page 1404 of the Cisco Systems 4500 user manual — Displaying RMON Status
Page 1404 · click to enlarge
Page 1404

Chapter 61 Configuring RMON Displaying RMON Status

Step 6 Switch# show rmon history Displays the contents of the switch history table.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

To collect group Ethernet statistics on an interface, perform this task:

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# interface interface-id Specifies the interface on which to collect statistics, and enter interface configuration mode.

Step 3 Switch(config-if)# rmon collection stats index [owner ownername]

Enables RMON statistic collection on the interface.

  • For index , specify the RMON group of statistics. The range is from 1 to 65535.
  • (Optional) For owner ownername , enter the name of the owner of the RMON group of statistics.

To disable the collection of group Ethernet statistics, use the no rmon collection stats index interface configuration command.

Step 4 Switch(config-if)# end Returns to privileged EXEC mode.

Step 5 Switch# show running-config Verifies your entries.

Step 6 Switch# show rmon statistics Displays the contents of the switch statistics table.

Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.

Displaying RMON Status

To display the RMON status, use one or more of the following privileged EXEC commands:

show rmon Displays general RMON statistics.

show rmon alarms Displays the RMON alarm table.

show rmon events Displays the RMON event table.

show rmon history Displays the RMON history table.

show rmon statistics Displays the RMON statistics table.

Page 1405 of the Cisco Systems 4500 user manual — Configuring Online Diagnostics
Page 1405 · click to enlarge
Page 1405

C H A P T E R

Performing Diagnostics

You can use diagnostics to test and verify the functionality of the hardware components of your system (chassis, supervisor engines, modules, and ASICs) while your Catalyst 4500 series switch is connected to a live network. Diagnostics consists of packet-switching tests that test hardware components and verify the data path and control signals.

Online diagnostics are categorized as bootup, on-demand, schedule, or health-monitoring diagnostics. Bootup diagnostics run during bootup; on-demand diagnostics run from the CLI; scheduled diagnostics run at user-designated intervals or specified times when the switch is connected to a live network; and health-monitoring runs in the background.

This chapter consists of these sections:

  • Configuring Online Diagnostics, page 62-1
  • Performing Diagnostics, page 62-3
  • Power-On Self-Test Diagnostics, page 62-10

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Configuring Online Diagnostics

These sections describe how to configure online diagnostics:

  • Configuring On-Demand Online Diagnostics, page 62-2
  • Scheduling Online Diagnostics, page 62-2
Page 1406 of the Cisco Systems 4500 user manual — Scheduling Online Diagnostics
Page 1406 · click to enlarge
Page 1406

Chapter 62 Performing Diagnostics

Configuring On-Demand Online Diagnostics

You can run on-demand online diagnostic tests from the CLI. You can set the execution action to either stop or continue the test when a failure is detected, or to stop the test after a specific number of failures occur with the failure count setting. The iteration setting allows you to configure a test to run multiple times.

To schedule online diagnostics, perform this task:

Switch# diagnostic ondemand {iteration iteration_count} | {action-on-error {continue | stop} [error_count]}

Configures on-demand diagnostic tests to run, how many times to run (iterations), and what action to take when errors are found.

This example shows how to set the on-demand testing iteration count:

Switch# diagnostic ondemand iterations 3 Switch#

This example shows how to set the execution action when an error is detected:

Switch# diagnostic ondemand action-on-error continue 2 Switch#

Scheduling Online Diagnostics

You can schedule online diagnostics to run at a designated time of day or on a daily, weekly, or monthly basis. You can schedule tests to run only once or to repeat at an interval. Use the no form of this command to remove the scheduling.

To configure online diagnostics, perform this task:

Switch(config)# diagnostic schedule module number test {test_id | test_id_range | all} [port {num | num_range | all} {on mm dd yyyy hh:mm} | {daily hh:mm} | {weekly day_of_week hh:mm}}

Schedules on-demand diagnostic tests on the specified module for a specific date and time, how many times to run (iterations), and what action to take when errors are found.

This example shows how to schedule diagnostic testing on a specific date and time for a specific port on module 6:

Switch(config)# diagnostic schedule module 6 test 2 port 3 on may 23 2009 23:32 Switch(config)#

This example shows how to schedule diagnostic testing to occur daily:

Switch(config)# diagnostic schedule module 6 test 2 port 3 daily 12:34 Switch(config)#

This example shows how to schedule diagnostic testing to occur weekly:

Switch(config)# diagnostic schedule module 6 test 2 port 3 weekly friday 09:23 Switch(config)#

{

Page 1407 of the Cisco Systems 4500 user manual — Starting and Stopping Online Diagnostic Tests
Page 1407 · click to enlarge
Page 1407

Chapter 62 Performing Diagnostics

Performing Diagnostics

After you configure online diagnostics, you can start or stop diagnostic tests or display the test results. You can also see which tests are configured and what diagnostic tests have already run.

These sections describe how to run online diagnostic tests after they have been configured:

  • Starting and Stopping Online Diagnostic Tests, page 62-3
  • Displaying Online Diagnostic Tests and Test Results, page 62-4
  • Displaying Data Path Online Diagnostics Test Results, page 62-7
  • Line Card Online Diagnostics, page 62-8
  • Troubleshooting with Online Diagnostics, page 62-8

Starting and Stopping Online Diagnostic Tests

After you configure diagnostic tests, you can use the start and stop keywords to begin or end a test.

To start or stop an online diagnostic command, perform one of these tasks:

Switch# diagnostic start module number test {test_id | test_id_range | minimal | complete | basic | per-port | non-disruptive | all} [port {num | port#_range | all}]

Starts a diagnostic test on a port or range of ports on the specified module.

Switch# diagnostic stop module number

Stops a diagnostic test on the specified module.

This example shows how to start a diagnostic test on module 6:

Switch# diagnostic start module 6 test 2 Diagnostic[module 6]: Running test(s) 2 Run interface level cable diags Diagnostic[module 6]: Running test(s) 2 may disrupt normal system operation Do you want to continue? [no]: yes Switch# *May 14 21:11:46.631: %DIAG-6-TEST_RUNNING: module 6: Running online-diag-tdr{ID=2} ... *May 14 21:11:46.631: %DIAG-6-TEST_OK: module 6: online-diag-tdr{ID=2} has completed successfully Switch#

Page 1408 of the Cisco Systems 4500 user manual — Displaying Online Diagnostic Tests and Test Results
Page 1408 · click to enlarge
Page 1408

Chapter 62 Performing Diagnostics

This example shows how to stop a diagnostic test on module 6:

Switch# diagnostic stop module 6 Diagnostic[module 6]: Diagnostic is not active.

The message indicates no active diagnostic on module 6

Displaying Online Diagnostic Tests and Test Results

You can display the configured online diagnostic tests and check the results of the tests with the show diagnostic command.

To display the configured diagnostic tests, perform this task:

Switch# show diagnostic {bootup | cns | content [module num] | description [module num] | events [module num] [event-type event-type] | ondemand | result [module num] [detail] | schedule [module num] | simulation | status}

Displays the test results of online diagnostics and lists supported test suites.

This example shows how to display the online diagnostics configured on module 1:

Switch# show diagnostic content module 6 module 6: Diagnostics test suite attributes: M/C/* - Minimal bootup level test / Complete bootup level test / NA B/* - Basic ondemand test / NA P/V/* - Per port test / Per device test / NA D/N/* - Disruptive test / Non-disruptive test / NA S/* - Only applicable to standby unit / NA X/* - Not a health monitoring test / NA F/* - Fixed monitoring interval test / NA E/* - Always enabled monitoring test / NA A/I - Monitoring is active / Monitoring is inactive cable-tdr/* - Interface cable diags / NA o/* - Ongoing test, always active / NA Test Interval Thre- ID Test Name Attributes day hh:mm:ss.ms shold ==== ================================== ============ =============== ===== 1) linecard-online-diag > M**D****I** not configured n/a 2) online-diag-tdr > **PD****Icable- not configured n/a 3) stub-rx-errors > ***N****A** 000 00:01:00.00 n/a 4) supervisor-rx-errors > ***N****A** 000 00:01:00.00 n/a

This example shows how to display the test description for a given test on a module:

Switch# show diagnostic description module 6 test 1

linecard-online-diag : Linecard online-diagnostics run after the system boots up but before it starts passing traffic. Each linecard port is placed in loopback, and a few packets are injected into the switching fabric from the cpu to the port. If the packets are successfully

Page 1409 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1409 · click to enlarge
Page 1409

Chapter 62 Performing Diagnostics

received by the cpu, the port passes the test. Sometimes one port or a group of ports sharing common components fail. The linecard is then placed in partial faulty mode. If no ports can loop back traffic, the board is placed in faulty state.

This example shows how to display the online diagnostic results for module 6:

Switch# show diagnostic result module 6

Current bootup diagnostic levelminimal
module 6SerialNo : JAB0815059L

Overall Diagnostic Result for module 6 : PASS Diagnostic level at card bootup: minimal

Test results(. = Pass, F = Fail, U = Untested)
1. linecard-online-diag > . 2) online-diag-tdr:

Port 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 U U . U 3) stub-rx-errors > . 4) supervisor-rx-errors > .

This example shows how to display the online diagnostic results details for module 6:

Switch# show diagnostic result module 6 detail

Current bootup diagnostic levelminimal
module 6SerialNo : JAB0815059L

Overall Diagnostic Result for module 6 : PASS Diagnostic level at card bootup: minimal

Test results(. = Pass, F = Fail, U = Untested) ___________________________________________________________________________
1. linecard-online-diag > .

Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test testing type > n/a Last test execution time > Jun 01 2009 11:19:36 First test failure time > n/a Last test failure time > n/a Last test pass time > Jun 01 2009 11:19:36 Total failure count > 0 Consecutive failure count ---> 0

Slot Ports Card Type Diag Status Diag Details 6 24 10/100/1000BaseT (RJ45)V, Cisco/IEEE Passed None

Switch# · Switch#

Page 1410 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1410 · click to enlarge
Page 1410

Chapter 62 Performing Diagnostics

Detailed Status . = Pass U = Unknown L = Loopback failure S = Stub failure P = Port failure E = SEEPROM failure G = GBIC integrity check failure

Ports 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Ports 17 18 19 20 21 22 23 24

2. online-diag-tdr:

Port 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 U U . U

Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test testing type > OnDemand Last test execution time > Jun 03 2009 05:39:00 First test failure time > n/a Last test failure time > n/a Last test pass time > Jun 03 2009 05:39:00 Total failure count > 0 Consecutive failure count ---> 0

Detailed Status Interface Speed Local pair Cable length Remote channel Status Gi6/3 1Gbps 1-2 N/A Unknown Terminated 3-6 N/A Unknown Terminated 4-5 N/A Unknown Terminated 7-8 N/A Unknown Terminated

3) stub-rx-errors > .

Error code > 3 (DIAG_SUCCESS) Total run count > 4 Last test testing type > Health Monitoring Last test execution time > Dec 20 2009 22:30:41 First test failure time > n/a Last test failure time > n/a Last test pass time > Dec 20 2009 22:30:41 Total failure count > 0 Consecutive failure count ---> 0 4) supervisor-rx-trends > .

Error code > 3 (DIAG_SUCCESS) Total run count > 4 Last test testing type > Health Monitoring Last test execution time > Dec 20 2009 22:30:41 First test failure time > n/a

Page 1411 of the Cisco Systems 4500 user manual — Displaying Data Path Online Diagnostics Test Results
Page 1411 · click to enlarge
Page 1411

Chapter 62 Performing Diagnostics

Last test failure time > n/a Last test pass time > Dec 20 2009 22:30:41 Total failure count > 0 Consecutive failure count ---> 0

Displaying Data Path Online Diagnostics Test Results

A data path online diagnostic test verifies that the data paths between the supervisor engine and the linecards (defined as a number of stub ASICs) are functioning correctly. There is a direct connection between each stub ASIC on a line card and the supervisor engine. Error counters on the supervisor engine (supervisor-rx-trends) and each stub ASIC on a line card (stub-rx-trends) are monitored periodically. Error counters that continually increase indicate malfunctioning hardware in the data path and cause the test to fail. Data path online diagnostic tests are non-destructure and the error counters are polled every minute.

Errors on the stub end of the data path are reported as errors in traffic egressing to the line card from the supervisor engine switching ASICs. Some initial errors might be revealed as links are brought up, but they should not increase. An increasing count indicates a poor connection between the supervisor engine and a line card. If only one line card is affected, the cause is likely an incorrectly seated or faulty line card. The error counts include idle frames, so detection can occur when traffic is not flowing.

Errors on the supervisor end of the data path are reported as errors in traffic ingressing to the supervisor engine from linecards. The error counts should not increase and the detection includes idle frames. If the error counts increase for more than one line card, the likely cause is a faulty supervisor engine or chassis. If only one stub or line card is affected, the likely cause is a faulty line card or a defective mux buffer (for a redundant chassis).

In addition to running periodically, data path online diagnostics can be also be invoked on-demand in the following way:

Switch# diagnostic start module 1 test stub-rx-errors *Apr 1 09:25:14.211: %DIAG-6-TEST_RUNNING: module 1: Running stub-rx-errors{ID=3} ... *Apr 1 09:25:14.211: %DIAG-6-TEST_OK: module 1: stub-rx-errors{ID=3} has completed Switch# diagnostic start module 1 test supervisor-rx-errors *Apr 1 09:25:26.503: %DIAG-6-TEST_RUNNING: module 1: Running supervisor-rx-errors{ID=4} ... *Apr 1 09:25:26.503: %DIAG-6-TEST_OK: module 1: supervisor-rx-errors{ID=4} has completed successfully

Detailed information about the test results can be viewed as follows:

Switch# show diagnostic result module 1 test stub-rx-errors detail

Current bootup diagnostic levelminimal
Test results(. = Pass, F = Fail, U = Untested) ___________________________________________________________________________
3. stub-rx-errors > .

Error code > 0 (DIAG_SUCCESS) Total run count > 7 Last test testing type > OnDemand Last test execution time > Apr 01 2010 09:25:14

Switch#

Page 1412 of the Cisco Systems 4500 user manual — Troubleshooting with Online Diagnostics
Page 1412 · click to enlarge
Page 1412

Chapter 62 Performing Diagnostics

First test failure time > n/a Last test failure time > n/a Last test pass time > Apr 01 2010 09:25:14 Total failure count > 0 Consecutive failure count ---> 0

Switch# show diagnostic result module 1 test supervisor-rx-errors detail

Current bootup diagnostic levelminimal
Test results(. = Pass, F = Fail, U = Untested) ___________________________________________________________________________
4. supervisor-rx-errors > .

Error code > 0 (DIAG_SUCCESS) Total run count > 4 Last test testing type > OnDemand Last test execution time > Apr 01 2010 09:25:26 First test failure time > n/a Last test failure time > n/a Last test pass time > Apr 01 2010 09:25:26 Total failure count > 0 Consecutive failure count ---> 0

Line Card Online Diagnostics

A line card online diagnostic test verifies that all ports on a line card are working correctly. The test can detect whether the path to the front panel port on the line card is broken. The test cannot indicate where along the path that the problem occurred.

Line card online diagnostics runs only once, when the line cards boot. This situation can happen when you insert a line card or power up a chassis.

Line card online diagnostics are performed by sending a packet from the CPU to every port on the line card. Because this packet is marked loopback, the CPU expects to see this packet return from the port. The packet first traverses the ASICs on the supervisor engine card, then travels by using the chassis backplane and the stub chip on the line cards to the PHYs. The PHY sends it back down the same path.

Troubleshooting with Online Diagnostics

A faulty line card occurs if any of the following conditions occurs.

  • All ports fail
  • All ports on a stub chip fail
  • Only one port fails

Switch#

Page 1413 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1413 · click to enlarge
Page 1413

Chapter 62 Performing Diagnostics

For all of these situations, the output of the show module command would display the status of the line card as faulty:

Switch# show mod Chassis Type : WS-C4507R Power consumed by backplane : 40 Watts Mod Ports Card Type Model Serial No. ---+ 1 6 Sup II+10GE 10GE (X2), 1000BaseX (SFP) WS-X4013+10GE JAB091502G0 2 6 Sup II+10GE 10GE (X2), 1000BaseX (SFP) WS-X4013+10GE JAB091502FC 3 48 100BaseX (SFP) WS-X4248-FE-SFP JAB093305RP 4 48 10/100BaseTX (RJ45)V WS-X4148-RJ45V JAE070717E5 5 48 10/100BaseTX (RJ45)V WS-X4148-RJ45V JAE061303U3 6 48 10/100BaseTX (RJ45)V WS-X4148-RJ45V JAE061303WJ 7 24 10/100/1000BaseT (RJ45)V, Cisco/IEEE WS-X4524-GB-RJ45V JAB0815059Q M MAC addresses Hw Fw Sw Status --+ +---+ + + 1 000b.5f27.8b80 to 000b.5f27.8b85 0.2 12.2(27r)SG( 12.2(37)SG Ok 2 000b.5f27.8b86 to 000b.5f27.8b8b 0.2 12.2(27r)SG( 12.2(37)SG Ok 3 0005.9a80.6810 to 0005.9a80.683f 0.4 Ok 4 000c.3016.aae0 to 000c.3016.ab0f 2.6 Ok 5 0008.a3a3.4e70 to 0008.a3a3.4e9f 1.6 Ok 6 0008.a3a3.3fa0 to 0008.a3a3.3fcf 1.6 Faulty 7 0030.850e.3e78 to 0030.850e.3e8f 1.0 Ok Mod Redundancy role Operating mode Redundancy status + + + 1 Active Supervisor SSO Active 2 Standby Supervisor SSO Standby hot

To troubleshoot a faulty line card, follow these steps:

Step 1 Enter the command show diagnostic result module 3.

If a faulty line card was inserted in the chassis, it will fail the diagnostics and the output will be similar to the following:

Current bootup diagnostic levelminimal

module 3: SerialNo : JAB093305RP Overall Diagnostic Result for module 3 : MAJOR ERROR Diagnostic level at card bootup: minimal Test results: (. = Pass, F = Fail, U = Untested) 1) linecard-online-diag > F

Issue an RMA for the line card, contact TAC, and skip steps 2 and 3.

The output may display the following:

module 3:

Overall diagnostic resultPASS
Test results(. = Pass, F = Fail, U = Untested)
1. linecard-online-diag > .

Switch#

Page 1414 of the Cisco Systems 4500 user manual — Overview of Power-On Self-Test Diagnostics
Page 1414 · click to enlarge
Page 1414

Chapter 62 Performing Diagnostics

The message indicates that the line card passed online diagnostics either when it was inserted into the chassis the last time or when the switch was powered up (as reported by the “.”). You need to obtain additional information to determine the cause.

Step 2 Insert a different supervisor engine card and reinsert the line card.

If the line card passes the test, it suggests that the supervisor engine card is defective.

Issue an RMA for the supervisor engine, contact TAC, and skip step 3.

Because online diagnostics are not run on the supervisor engine card, you cannot use the #show diagnostic module 1 command to test whether the supervisor engine card is faulty.

Step 3 Reinsert the line card in a different chassis.

If the line card passes the test, the problem is associated with the chassis.

Issue an RMA for the chassis and contact TAC.

Power-On Self-Test Diagnostics

The following topics are discussed:

  • Overview of Power-On Self-Test Diagnostics, page 62-10
  • POST Result Example, page 62-11
  • Power-On Self-Test Results for Supervisor Engine V-10GE, page 62-15
  • Troubleshooting the Test Failures, page 62-21

Overview of Power-On Self-Test Diagnostics

All Catalyst 4500 series switches have power-on self-test (POST) diagnostics that run whenever a supervisor engine boots. POST tests the basic hardware functionality for the supervisor switching engine, its associated packet memory and other on-board hardware components. The results of the POST impacts how the switch boots, because the health of the supervisor engine is critical to the operation of the switch. The switch might boot in a marginal or faulty state.

POST is currently supported on the following supervisor engines:

  • WS-X4014
  • WS-X4515
  • WS-X4516
  • WS-X4516-10GE
  • WS-X4013+
  • WS-X4013+TS
  • WS-X4013+10GE
  • WS-C4948G
Page 1415 of the Cisco Systems 4500 user manual — POST Result Example
Page 1415 · click to enlarge
Page 1415

Chapter 62 Performing Diagnostics

  • WS-C4948G-10GE
  • ME-4924-10GE
  • WS-X45-SUP6-E
  • WS-X45-SUP6L-E

The POST results are indicated with a period (.) or a Pass for Pass, an F for a Fail and a U for Untested.

POST Result Example

For all the supervisor engines, POST performs CPU, traffic, system, system memory, and feature tests.

For CPU tests, POST verifies appropriate activity of the supervisor engine SEEPROM, temperature sensor, and Ethernet end-of-band channel (EOBC), when used.

The following example illustrates the output of a CPU subsystem test on all supervisor engines except the WS-X4013+TS:

[..] Cpu Subsystem Tests ... seeprom: . temperature_sensor: . eobc: . [..]

The following example illustrates the output of a CPU subsystem test on a WS-X4013+TS supervisor engine:

[..] Cpu Subsystem Tests ... seeprom: . temperature_sensor: . [..]

For traffic tests, the POST sends packets from the CPU to the switch. These packets loop several times within the switch core and validate the switching, the Layer 2 and the Layer 3 functionality. To isolate the hardware failures accurately, the loop back is done both inside and outside the switch ports.

The following example illustrates the output of a Layer 2 traffic test at the switch ports on the supervisor engines WS-X4516, WS-X4516-10GE, WS-X4013+10GE, WS-C4948G-10GE:

Port Traffic: L2 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: .

The following example illustrates the output of a Layer 2 traffic test at the switch ports on the supervisor engines WS-X4013+TS, WS-X4515, WS-X4013+, WS-X4014, WS-C4948G:

Port Traffic: L2 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31:

POST also performs tests on the packet and system memory of the switch. These are numbered dynamically in ascending order starting with 1 and represent different memories.

Page 1416 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1416 · click to enlarge
Page 1416

Chapter 62 Performing Diagnostics

The following example illustrates the output from a system memory test:

Switch Subsystem Memory ... 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: . 52: . 53: . 54: . 55: .

POST also tests the NetFlow services card (Supervisor Engine IV and Supervisor Engine V) and the NetFlow services feature (Supervisor Engine V -10GE). Failures from these tests are treated as marginal, as they do not impact functionality of the switch (except for the unavailability of the NetFlow features):

Netflow Services Feature ... se: . cf: . 52: . 53: . 54: . 55: . 56: . 57: . 58: . 59: . 60: . 61: . 62: . 63: . 64: . 65: .

The following example shows the output for a WS-X4516 supervisor engine:

Switch# show diagnostic result module 2 detail

module 2:

Overall diagnostic resultPASS
Test results(. = Pass, F = Fail, U = Untested)
1. supervisor-bootup > .

Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test execution time > Jul 20 2005 14:15:52 First test failure time > n/a Last test failure time > n/a Last test pass time > Jul 20 2005 14:15:52 Total failure count > 0 Consecutive failure count > 0

Power-On-Self-Test Results for ACTIVE Supervisor

Power-on-self-test for Module 2: WS-X4516 Port/Test Status: (. = Pass, F = Fail, U = Untested) Reset Reason: PowerUp RemoteDebug

Cpu Subsystem Tests ... seeprom: . temperature_sensor: . eobc: .

Port Traffic: L2 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: .

Page 1417 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1417 · click to enlarge
Page 1417

Chapter 62 Performing Diagnostics

Port Traffic: L2 Asic Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: .

Port Traffic: L3 Asic Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: .

Switch Subsystem Memory ... 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: . 52: . 53: . 54: . 55: .

2. packet-memory-bootup > U

Error code > 0 (DIAG_SUCCESS) Total run count > 0 Last test execution time > n/a First test failure time > n/a Last test failure time > n/a Last test pass time > n/a Total failure count > 0 Consecutive failure count > 0 packet buffers on free list: 64557 bad: 0 used for ongoing tests: 979

Exhaustive packet memory tests did not run at bootup. Bootup test results:5 No errors.

3. packet-memory-ongoing > U

Error code > 0 (DIAG_SUCCESS) Total run count > 0 Last test execution time > n/a First test failure time > n/a Last test failure time > n/a Last test pass time > n/a Total failure count > 0 Consecutive failure count > 0 packet buffers on free list: 64557 bad: 0 used for ongoing tests: 979

Module 2 Passed

Page 1418 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1418 · click to enlarge
Page 1418

Chapter 62 Performing Diagnostics

Packet memory errors: 0 0 Current alert level: green Per 5 seconds in the last minute: 0 Per minute in the last hour: 0 Per hour in the last day: 0 Per day in the last 30 days: 0 Direct memory test failures per minute in the last hour: 0 Potential false positives: 0 0 Ignored because of rx errors: 0 0 Ignored because of cdm fifo overrun: 0 0 Ignored because of oir: 0 0 Ignored because isl frames received: 0 0 Ignored during boot: 0 0 Ignored after writing hw stats: 0 0 Ignored on high gigaport: 0 Ongoing diag action mode: Normal Last 1000 Memory Test Failures: Last 1000 Packet Memory errors: First 1000 Packet Memory errors:

The following example shows the output for a WS-X45-SUP6-E supervisor engine:

Switch# show diagnostic result module 3 detail

module 3SerialNo : XXXXXXXXXXX
Overall diagnostic resultPASS
Test results(. = Pass, F = Fail, U = Untested) ___________________________________________________________________________
1. supervisor-bootup > Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test execution time > Oct 01 2007 17:37:04 First test failure time > n/a Last test failure time > n/a Last test pass time > Oct 01 2007 17:37:04

Switch#

Page 1419 of the Cisco Systems 4500 user manual — Power-On Self-Test Results for Supervisor Engine V-10GE
Page 1419 · click to enlarge
Page 1419

Chapter 62 Performing Diagnostics

Total failure count > 0 Consecutive failure count ---> 0 Power-On-Self-Test Results for ACTIVE Supervisor prod: WS-X45-SUP6-E part: XXXXXXXXX serial: XXXXXXXXXX Power-on-self-test for Module 3: WS-X45-SUP6-E Test Status: (. = Pass, F = Fail, U = Untested)

CPU Subsystem Tests ... seepromPass
TrafficL3 Loopback ... Test Results: Pass
TrafficL2 Loopback ... Test Results: Pass

Switching Subsystem Memory ... Packet Memory Test Results: Pass

Module 3 Passed

2. linecard-online-diag > Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test execution time > Oct 01 2007 17:37:04 First test failure time > n/a Last test failure time > n/a Last test pass time > Oct 01 2007 17:37:04 Total failure count > 0 Consecutive failure count ---> 0

Slot Ports Card Type Diag Status Diag Details 3 6 Sup 6-E 10GE (X2), 1000BaseX (SFP) Skipped Packet memory Detailed Status . = Pass U = Unknown L = Loopback failure S = Stub failure P = Port failure E = SEEPROM failure G = GBIC integrity check failure

Ports 1 2 3 4 5 6 Switch#

Power-On Self-Test Results for Supervisor Engine V-10GE

For the Supervisor Engine V-10GE (WS-X4516-10GE), POST tests extra redundancy features on the 10-Gigabit ports.

The following topics are discussed:

  • POST on the Active Supervisor Engine, page 62-16
  • POST Results on an Active Supervisor Engine Example, page 62-16
  • POST on a Standby Supervisor Engine, page 62-18
  • Display of the POST on a Standby Supervisor Engine Example, page 62-19
Page 1420 of the Cisco Systems 4500 user manual — POST Results on an Active Supervisor Engine Example
Page 1420 · click to enlarge
Page 1420

Chapter 62 Performing Diagnostics

POST on the Active Supervisor Engine

The active supervisor engine tests the remote redundant 10-Gigabit ports on the standby supervisor engine if it is present when the active supervisor engine is booting. The status of the port is displayed as “Remote TenGigabit Port Status.” If no standby supervisor engine is present, the remote port status is always displayed as Untested. This situation persists even after a new standby supervisor engine is inserted. The remaining tests are conducted using only the Gigabit ports’ configuration.

After the active supervisor engine has completed the bootup diagnostics, if the standby supervisor engine is now removed, the remote port status is changed to Untested in the overall diagnostic results.

POST Results on an Active Supervisor Engine Example

Switch# show diagnostic result module 1 detail

module 1:

Overall diagnostic resultPASS
Test results(. = Pass, F = Fail, U = Untested)
1. supervisor-bootup > .

Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test execution time > Jul 19 2005 13:28:16 First test failure time > n/a Last test failure time > n/a Last test pass time > Jul 19 2005 13:28:16 Total failure count > 0 Consecutive failure count > 0

Power-On-Self-Test Results for ACTIVE Supervisor

Power-on-self-test for Module 1: WS-X4516-10GE Port/Test Status: (. = Pass, F = Fail, U = Untested) Reset Reason: Software/User

Cpu Subsystem Tests ... seeprom: . temperature_sensor: . eobc: .

Port Traffic: L3 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: .

Local 10GE Port 62: .

Local 10GE Port 63: .

Page 1421 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1421 · click to enlarge
Page 1421

Chapter 62 Performing Diagnostics

Port Traffic: L2 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: .

Port Traffic: L2 Asic Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: .

Switch Subsystem Memory ... 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: .

Netflow Services Feature ... se: . cf: . 52: . 53: . 54: . 55: . 56: . 57: . 58: . 59: . 60: . 61: . 62: . 63: . 64: . 65: .

Remote TenGigabitPort statusPassed
2. packet-memory-bootup > U

Error code > 0 (DIAG_SUCCESS) Total run count > 0 Last test execution time > n/a First test failure time > n/a Last test failure time > n/a Last test pass time > n/a Total failure count > 0 Consecutive failure count > 0 packet buffers on free list: 64557 bad: 0 used for ongoing tests: 979

Exhaustive packet memory tests did not run at bootup. Bootup test results:5 No errors.

3. packet-memory-ongoing > U

Error code > 0 (DIAG_SUCCESS) Total run count > 0 Last test execution time > n/a First test failure time > n/a

Module 1 Passed

Page 1422 of the Cisco Systems 4500 user manual — Table of contents
Page 1422 · click to enlarge
Page 1422

Table of contents

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guidep.1Contentsp.3Prefacep.53Product Overviewp.63Command-Line Interfacesp.93Configuring the Switch for the First Timep.113Administering the Switchp.147Configuring the Cisco IOS In-Service Software Upgrade Processp.187Configuring Interfacesp.227Checking Port Status and Connectivityp.263Configuring Supervisor Engine Redundancy Using RPR and SSOp.277Configuring Cisco NSF with SSO Supervisor Engine Redundancyp.293Environmental Monitoring and Power Managementp.311Configuring Power over Ethernetp.335Configuring the Catalyst 4500 Series Switch with Cisco Network Assistantp.351Configuring VLANs, VTP, and VMPSp.371Configuring IP Unnumbered Interfacep.405Configuring Layer 2 Ethernet Interfacesp.413Configuring Auto SmartPort Macrosp.423Configuring SmartPort Macrosp.437Configuring STP and MSTp.453Configuring Flex Links and MAC Address-Table Move Updatep.489Configuring Resilient Ethernet Protocolp.501Configuring Optional STP Featuresp.515Configuring EtherChannel and Link State Trackingp.533Configuring IGMP Snooping and Filteringp.555Configuring IPv6 MLD Snoopingp.579Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunnelingp.591Configuring CDPp.611Configuring LLDP, LLDP-MED, and Location Servicep.615Configuring UDLDp.629Configuring Unidirectional Ethernetp.639Configuring Layer 3 Interfacesp.643Configuring Cisco Express Forwardingp.665Configuring Unicast Reverse Path Forwardingp.675Configuring IP Multicastp.687Configuring ANCP Clientp.717Configuring Policy-Based Routingp.723Configuring VRF-litep.733Configuring Quality of Servicep.751Configuring Voice Interfacesp.843Configuring Private VLANsp.849Configuring 802.1X Port-Based Authenticationp.879Configuring the PPPoE Intermediate Agentp.997Configuring Web-Based Authenticationp.1007Configuring Port Securityp.1021Configuring Control Plane Policing and Layer 2 Control Packet QoSp.1055Configuring Dynamic ARP Inspectionp.1073Configuring DHCP Snooping, IP Source Guard, and IPSG for Static Hostsp.1095Configuring Network Security with ACLsp.1125Support for IPv6p.1173Port Unicast and Multicast Flood Blockingp.1181Configuring Storm Controlp.1185Configuring SPAN and RSPANp.1193Configuring System Message Loggingp.1219Onboard Failure Logging (OBFL)p.1231Prerequisites for OBFLp.1231Restrictions for OBFLp.1232Information About OBFLp.1232Overview of OBFLp.1232Information about Data Collected by OBFLp.1232OBFL Data Overviewp.1232Temperaturep.1233Operational Uptimep.1234Interruptsp.1237Message Loggingp.1238Default Settings for OBFLp.1239Enabling OBFLp.1239Configuration Examples for OBFLp.1240Enabling OBFL Message Logging: Examplep.1240OBFL Message Log: Examplep.1240OBFL Component Uptime Report: Examplep.1241OBFL Report for a Specific Time: Examplep.1241Configuring SNMPp.1247Configuring NetFlow-litep.1265Configuring NetFlowp.1275Configuring Ethernet OAM and CFMp.1291Configuring Y.1731 (AIS and RDI)p.1345Configuring Call Homep.1353Configuring Cisco IOS IP SLA Operationsp.1385Configuring RMONp.1399Performing Diagnosticsp.1405ROM Monitorp.1427Configuring WCCP Version 2 Servicesp.1433Configuring MIB Supportp.1447Ap.1453Acronyms and Abbreviationsp.1453Indexp.1461
Page 1423 of the Cisco Systems 4500 user manual — Display of the POST on a Standby Supervisor Engine Example
Page 1423 · click to enlarge
Page 1423

Chapter 62 Performing Diagnostics

Note On a redundant chassis, concurrent POST is supported on supervisor engines that are already inserted. However, if a second supervisor engine is inserted while the first one is loading, you might boot the first supervisor engine in a faulty Cisco IOS state (POST will abort and some of the POST’s tests will be bypassed). This situation only happens during concurrent bootup of the supervisor engines. You should not insert any additional supervisor engines in the empty supervisor engine slot while an already seated supervisor engine is running POST. The POST sequence is completed when the “Exiting to ios...” message is displayed.

Display of the POST on a Standby Supervisor Engine Example

Switch# show diagnostic result module 2 detail

module 2:

Overall diagnostic resultPASS
Test results(. = Pass, F = Fail, U = Untested)
1. supervisor-bootup > .

Error code > 0 (DIAG_SUCCESS) Total run count > 1 Last test execution time > Jul 19 2005 13:29:44 First test failure time > n/a Last test failure time > n/a Last test pass time > Jul 19 2005 13:29:44 Total failure count > 0 Consecutive failure count > 0

Power-On-Self-Test Results for ACTIVE Supervisor

Power-on-self-test for Module 2: WS-X4516-10GE Port/Test Status: (. = Pass, F = Fail, U = Untested) Reset Reason: OtherSupervisor Software/User

Cpu Subsystem Tests ... seeprom: . temperature_sensor: . eobc: .

Port Traffic: L3 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: .

Local 10GE Port 62U
Local 10GE Port 63U

Port Traffic: L2 Serdes Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: .

Page 1424 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1424 · click to enlarge
Page 1424

Chapter 62 Performing Diagnostics

Port Traffic: L2 Asic Loopback ... 0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: .

Switch Subsystem Memory ... 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: . 37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: . 49: . 50: . 51: .

Netflow Services Feature ... se: . cf: . 52: . 53: . 54: . 55: . 56: . 57: . 58: . 59: . 60: . 61: . 62: . 63: . 64: . 65: .

Remote TenGigabitPort statusUntested
2. packet-memory-bootup > U

Error code > 0 (DIAG_SUCCESS) Total run count > 0 Last test execution time > n/a First test failure time > n/a Last test failure time > n/a Last test pass time > n/a Total failure count > 0 Consecutive failure count > 0 packet buffers on free list: 64557 bad: 0 used for ongoing tests: 979

Exhaustive packet memory tests did not run at bootup. Bootup test results:5 No errors.

3. packet-memory-ongoing > U

Error code > 0 (DIAG_SUCCESS) Total run count > 0 Last test execution time > n/a First test failure time > n/a Last test failure time > n/a Last test pass time > n/a Total failure count > 0 Consecutive failure count > 0 packet buffers on free list: 64557 bad: 0 used for ongoing tests: 979

Module 2 Passed

Page 1425 of the Cisco Systems 4500 user manual — Troubleshooting the Test Failures
Page 1425 · click to enlarge
Page 1425

Chapter 62 Performing Diagnostics

Packet memory errors: 0 0 Current alert level: green Per 5 seconds in the last minute: 0 Per minute in the last hour: 0 Per hour in the last day: 0 Per day in the last 30 days: 0 Direct memory test failures per minute in the last hour: 0 Potential false positives: 0 0 Ignored because of rx errors: 0 0 Ignored because of cdm fifo overrun: 0 0 Ignored because of oir: 0 0 Ignored because isl frames received: 0 0 Ignored during boot: 0 0 Ignored after writing hw stats: 0 0 Ignored on high gigaport: 0 Ongoing diag action mode: Normal Last 1000 Memory Test Failures: Last 1000 Packet Memory errors: First 1000 Packet Memory errors:

Troubleshooting the Test Failures

A failure of any of the POST tests reflects a problem with the hardware on the supervisor engine. Cisco IOS boots the supervisor engine with limited functionality, allowing you to evaluate and display the diagnostic test results. To determine the failure cause, do one of the following:

  • Evaluate whether the hardware failure is persistent by power cycling the supervisor engine to rerun the POST tests.
  • Remove and reinsert the supervisor engine into the chassis to ensure that the seating is correct.

Contact Cisco Systems customer support team for more information.

Switch#

Page 1426 of the Cisco Systems 4500 user manual — Performing Diagnostics
Page 1426 · click to enlarge
Page 1426

Chapter 62 Performing Diagnostics

Note On a redundant chassis, concurrent POST is supported on supervisor engines that are already inserted. However, if a second supervisor engine is inserted while the first one is loading, you might boot the first supervisor engine in a faulty Cisco IOS state (POST will abort, and some of the POST’s tests will be bypassed). This situation only happens during concurrent bootup of the supervisor engines. You should not insert any additional supervisor engines in the empty supervisor engine slot while an already seated supervisor engine is running POST. The POST sequence is completed when the “Exiting to ios...” message is displayed.

Page 1427 of the Cisco Systems 4500 user manual — Entering the ROM Monitor
Page 1427 · click to enlarge
Page 1427

C H A P T E R

ROM Monitor

This chapter describes the Cisco Catalyst 4500 series switch ROM monitor (also called the bootstrap program). The ROM monitor firmware runs when the router is powered up or reset. The firmware helps to initialize the processor hardware and boot the operating system software. You can use the ROM monitor to perform certain configuration tasks, such as recovering a lost password or downloading software over the console port. If there is no Cisco IOS software image loaded on the router, the ROM monitor runs the router.

This appendix contains the following sections:

  • Entering the ROM Monitor
  • ROM Monitor Commands
  • ROM Monitor Command Descriptions
  • Configuration Register
  • Console Download
  • Debug Commands
  • Exiting the ROM Monitor

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Entering the ROM Monitor

To use the ROM monitor, you must be using a terminal or PC that is connected to the router over the console port. Refer to the installation chapter in the Cisco 806 Router Hardware Installation Guide that came with the router to connect the router to a PC or terminal.

Page 1428 of the Cisco Systems 4500 user manual — ROM Monitor Commands
Page 1428 · click to enlarge
Page 1428

Chapter 63 ROM Monitor ROM Monitor Commands

To configure the router to boot up in ROM monitor mode the next time it is rebooted, perform this task:

Command Task

Step 1 Switch# configure terminal Enters global configuration mode.

Step 2 Switch(config)# config-reg 0x0 Resets the configuration register.

Step 3 Switch(config)# exit Exits global configuration mode.

Step 4 Switch# reload Reboots the router with the new configuration register value. The router remains in ROM monitor and does not boot the Cisco IOS software.

As long as the configuration value is 0x0, you must manually boot the operating system from the console. See the boot command in the “ROM Monitor Command Descriptions” section in this appendix.

After the router reboots, it is in ROM monitor mode. The number in the prompt increments with each new line.

ROM Monitor Commands

Enter ? or help at the ROM monitor prompt to display a list of available commands and options, as follows:

rommon 1 > ? alias set and display aliases command boot boot up an external process confreg configuration register utility dev list the device table dir list files in file system help monitor builtin command help history monitor command history meminfo main memory information repeat repeat a monitor command reset system reset set display the monitor variables sysret print out info from last system return unalias unset an alias unset unset a monitor variable

Commands are case sensitive. You can halt any command by pressing the Break key on a terminal. If you are using a PC, most terminal emulation programs halt a command when you press the Ctrl and the Break keys at the same time. If you are using another type of terminal emulator or terminal emulation software, refer to the documentation for that product for information on how to send a Break command.

Page 1429 of the Cisco Systems 4500 user manual — Changing the Configuration Register Manually
Page 1429 · click to enlarge
Page 1429

Chapter 63 ROM Monitor

ROM Monitor Command Descriptions

ROM Monitor Command Descriptions

Table 63-1 describes the most commonly used ROM monitor commands.

Table 63-1 Most Commonly Used ROM Monitor Commands

Command Description

reset or i Resets and initializes the router, similar to a power up.

dev Lists boot device identifications on the router; for example:

rommon 10> dev Devices in device table: id name flash: flash

dir deviceLists the files on the named device; flash, for example:
rommon 4 > dir flashFile size Checksum File name 2835276 bytes (0x2b434c) 0x2073 c806-oy6-mz

boot commands For more information about the ROM monitor boot commands, refer to the Cisco IOS Configuration Guide and the Cisco IOS Command Reference.

b Boots the first image in flash memory.

b flash[ filename ]

Attempts to boot the image directly from the first partition of flash memory. If you do not enter a filename, this command will boot this first image in flash.

Configuration Register

The virtual configuration register is in nonvolatile RAM (NVRAM) and has the same functionality as other Cisco routers. You can view or modify the virtual configuration register from either the ROM monitor or the operating system software. Within ROM monitor, you can change the configuration register by entering the register value in hexadecimal format, or by allowing the ROM monitor to prompt you for the setting of each bit.

Changing the Configuration Register Manually

To change the virtual configuration register from the ROM monitor manually, enter the confreg command followed by the new value of the register in hexadecimal, as shown in the following example:

rommon 1 > confreg 0x2101

You must reset or power cycle for new config to take effect rommon 2 >

The value is always interpreted as hexadecimal. The new virtual configuration register value is written into NVRAM but does not take effect until you reset or reboot the router.

Page 1430 of the Cisco Systems 4500 user manual — Console Download
Page 1430 · click to enlarge
Page 1430

Chapter 63 ROM Monitor Console Download

Changing the Configuration Register Using Prompts

Entering confreg without an argument displays the contents of the virtual configuration register and a prompt to alter the contents by describing the meaning of each bit.

In either case, the new virtual configuration register value is written into NVRAM but does not take effect until you reset or reboot the router.

The following display shows an example of entering the confreg command:

rommon 7> confreg Configuration Summary enabled are: console baud: 9600 boot: the ROM Monitor do you wish to change the configuration? y/n [n]: y enable “diagnostic mode”? y/n [n]: y enable “use net in IP bcast address”? y/n [n]: enable “load rom after netboot fails”? y/n [n]: enable “use all zero broadcast”? y/n [n]: enable “break/abort has effect”? y/n [n]: enable “ignore system config info”? y/n [n]: change console baud rate? y/n [n]: y enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 [0]: 0 change the boot characteristics? y/n [n]: y enter to boot: 0 = ROM Monitor 1 = the boot helper image 2-15 = boot system [0]: 0 Configuration Summary enabled are: diagnostic mode console baud: 9600 boot: the ROM Monitor do you wish to change the configuration? y/n [n]: You must reset or power cycle for new config to take effect

Console Download

You can use console download, a ROM monitor function, to download over the router console port either a software image or a configuration file. After download, the file is either saved to the mini-Flash memory module or to main memory for execution (image files only).

Use console download when you do not have access to a Trivial File Transfer Protocol (TFTP) server.

Page 1431 of the Cisco Systems 4500 user manual — Debug Commands
Page 1431 · click to enlarge
Page 1431

Chapter 63 ROM Monitor

Note If you are using a PC to download a Cisco IOS image over the router console port at 115,200 bps, ensure that the PC serial port is using a 16550 universal asynchronous transmitter/receiver (UART). If the PC serial port is not using a 16550 UART, we recommend using a speed of 38,400 or less when downloading a Cisco IOS image over the console port.

Error Reporting

Because the ROM monitor console download uses the console to perform the data transfer, error messages are only displayed on the console when the data transfer is terminated.

If an error does occur during a data transfer, the transfer is terminated, and an error message is displayed. If you have changed the baud rate from the default rate, the error message is followed by a message telling you to restore the terminal to the baud rate specified in the configuration register.

Debug Commands

Most ROM monitor debugging commands are functional only when Cisco IOS software has crashed or is halted.

The following are ROM monitor debugging commands:

  • frame —Displays an individual stack frame.
  • sysret —Displays return information from the last booted system image.

This information includes the reason for terminating the image, a stack dump of up to eight frames, and, if an exception is involved, the address where the exception occurred.

For example:

rommon 8> sysret System Return Info: count: 19, reason: user break pc:0x801111b0, error address: 0x801111b0 Stack Trace: FP: 0x80005ea8, PC: 0x801111b0 FP: 0x80005eb4, PC: 0x80113694 FP: 0x80005f74, PC: 0x8010eb44 FP: 0x80005f9c, PC: 0x80008118 FP: 0x80005fac, PC: 0x80008064 FP: 0x80005fc4, PC: 0xfff03d70 FP: 0x80005ffc, PC: 0x00000000 FP: 0x00000000, PC: 0x00000000

  • meminfo —Displays size in bytes, starting address, available range of main memory, the starting point and size of packet memory, and size of NVRAM.

For example:

Main memory size: 40 MB. Available main memory starts at 0x10000, size 40896KB IO (packet) memory size: 5 percent of main memory. NVRAM size: 32KB

Debug Commands · rommon 9> meminfo

Page 1432 of the Cisco Systems 4500 user manual — Exiting the ROM Monitor
Page 1432 · click to enlarge
Page 1432

Chapter 63 ROM Monitor Exiting the ROM Monitor

Exiting the ROM Monitor

You must set the configuration register to a value from 0x2 to 0xF for the router to boot a Cisco IOS image from flash memory upon startup or reloading.

The following example shows how to reset the configuration register and cause the router to boot a Cisco IOS image stored in flash memory:

rommon 1 > confreg 0x2101

You must reset or power cycle for new config to take effect rommon 2 >boot

The router will boot the Cisco IOS image in flash memory. The configuration register will change to 0x2101 the next time the router is reset or power cycled.

Page 1433 of the Cisco Systems 4500 user manual — About WCCP
Page 1433 · click to enlarge
Page 1433

C H A P T E R

Configuring WCCP Version 2 Services

This chapter describes how to configure the Catalyst 4500 series switches to redirect traffic to content engines (web caches) using the Web Cache Communication Protocol (WCCP) version 2

This chapter consists of these sections:

  • About WCCP, page 64-1
  • Restrictions for WCCP, page 64-5
  • Configuring WCCP, page 64-6
  • Verifying and Monitoring WCCP Configuration Settings, page 64-9
  • WCCP Configuration Examples, page 64-10

About WCCP

These sections describe WCCP:

  • Overview, page 64-2
  • Hardware Acceleration, page 64-2
  • Understanding WCCP Configuration, page 64-3
  • WCCP Features, page 64-4
Page 1434 of the Cisco Systems 4500 user manual — Hardware Acceleration
Page 1434 · click to enlarge
Page 1434

Chapter 64 Configuring WCCP Version 2 Services About WCCP

Overview

WCCP is a Cisco-developed content-routing technology that enables you to integrate content engines into your network infrastructure.

The Cisco IOS WCCP feature allows use of Cisco Content Engines (or other content engines running WCCP) to localize web traffic patterns in the network, enabling content requests to be fulfilled locally. Traffic localization reduces transmission costs and download time.

WCCP enables Cisco IOS routing platforms to transparently redirect content requests. The main benefit of transparent redirection of HTTP/non-http requests is that users need not configure their browsers to use a web proxy. Instead, they can use the target URL to request content, and have their requests automatically redirected to a content engine. The word “transparent” is this case means that the end user does not know that a requested file (such as a web page) came from the content engine instead of from the originally specified server.

When a content engine receives a request, it attempts to service it from its own local content. If the requested information is not present, the content engine issues its own request to the originally targeted server to get the required information. When the content engine retrieves the requested information, it forwards it to the requesting client and caches it to fulfill future requests, thus maximizing download performance and substantially reducing transmission costs.

WCCP enables a series of content engines, called a content engine cluster, to provide content to a router or multiple routers. Network administrators can easily scale their content engines to handle heavy traffic loads using these clustering capabilities. Cisco clustering technology enables each content member to work in parallel, resulting in linear scalability. Clustering content engines greatly improves the scalability, redundancy, and availability of your caching solution. You can cluster up to 32 content engines to scale to your desired capacity.

Hardware Acceleration

Hardware Acceleration is enabled by default on Catalyst 4500 series switches. Layer 2 rewrite forwarding and Layer 2 return method are supported in hardware; GRE return method is supported in software.

You must configure a directly connected Content Engine to negotiate use of the WCCP Layer 2 Redirection feature with load balancing based on the mask assignment table. The show ip wccp web-cache detail command displays the redirection method for each cache.

Page 1435 of the Cisco Systems 4500 user manual — 100BASE-T
Page 1435 · click to enlarge
Page 1435

Chapter 64 Configuring WCCP Version 2 Services

Understanding WCCP Configuration

Multiple routers can use WCCP to service a cache cluster. Figure 64-1 illustrates a sample configuration using multiple routers.

Figure 64-1 Cisco Content Engine Network Configuration Using WCCP

100BASE-T

100BASE-T

100BASE-T

100BASE-T

100BASE-T

100BASE-T

The subset of content engines within a cluster and routers connected to the cluster that are running the same service is known as a service group. Available services include TCP and User Datagram Protocol (UDP) redirection.

WCCP requires that each content engine be aware of all the routers in the service group. To specify the addresses of all the routers in a service group, you must choose one of the following methods:

  • Unicast—A list of IP addresses for each of the routers in the group is configured on each content engine. In this case the address of each router in the group must be explicitly specified for each content engine during configuration.
  • Multicast—A single multicast address is configured on each content engine. In the multicast address method, the content engine sends a single-address notification that provides coverage for all routers in the service group. For example, a content engine could indicate that packets should be sent to a multicast address of 224.0.0.100, which would send a multicast packet to all routers in the service group configured for group listening using WCCP (see the ip wccp group-listen interface configuration command for details).

The multicast option is easier to configure because you need only specify a single IP address on each content engine. This option also enables you to add and remove routers from a service group dynamically without needing to reconfigure the content engines with a different list of addresses each time.

The following sequence of events describe how WCCP works:

1. Each WCCP client (content engine) is configured with a list of WCCP servers (routers).
Show 12 more labels / short text on this page
About WCCP · Internet · Service group · Cache 1 · Clients · Clients · Cache 2 · Clients · Clients · Cache 3 · Clients · Clients
Page 1436 of the Cisco Systems 4500 user manual — MD5 Security
Page 1436 · click to enlarge
Page 1436

Chapter 64 Configuring WCCP Version 2 Services About WCCP

2. Each content engine announces its presence with a "Here I Am" message and a list of routers with which it has established communication. Similarly, the routers reply with their view (list) of content engines in the service group through "I See You" messages.
3. Once the view is consistent across all content engines in the cluster, one content engine is designated as the lead and sets the policy that the switches need to deploy in redirecting traffic.

WCCP Features

These sections describe WCCP features:

  • HTTP and Non-HTTP Services Support
  • Multiple Routers Support
  • MD5 Security
  • Web Content Packet Return

HTTP and Non-HTTP Services Support

WCCP enables redirection of HTTP traffic (TCP port 80 traffic), as well as non-HTTP traffic (TCP and UDP). WCCP supports the redirection of packets intended for other ports, including those used for proxy-web cache handling, File Transfer Protocol (FTP) caching, FTP proxy handling, web caching for ports other than 80, and real audio, video, and telephony applications.

To accommodate the various types of services available, WCCP introduces the concept of multiple service groups. Service information is specified in the WCCP configuration commands using dynamic services identification numbers (such as “98”) or a predefined service keywords (such as “web-cache”). This information is used to validate that service group members are all using or providing the same service.

For information on supported WCCP version 2 services with ACNS version 5.2 software, refer to the Release Notes for Cisco ACNS Software, Release 5.2.3.

The content engines in service group specify traffic to be redirected by protocol (TCP or UDP) and port (source or destination). Each service group has a priority level assigned to it. Packets are matched against service groups in priority order and redirected by the highest priority service group that matches traffic characteristics.

Multiple Routers Support

WCCP enables you to attach multiple routers to a cluster of cache engines. The use of multiple routers in a service group enables redundancy, interface aggregation, and distribution of the redirection load.

MD5 Security

WCCP provides optional authentication that enables you to control which routers and content engines become part of the service group using passwords and the HMAC MD5 standard. Shared-secret MD5 one-time authentication (set using the ip wccp [password [0-7] password] global configuration command) enables messages to be protected against interception, inspection, and replay.

Page 1437 of the Cisco Systems 4500 user manual — Restrictions for WCCP
Page 1437 · click to enlarge
Page 1437

Chapter 64 Configuring WCCP Version 2 Services

Web Content Packet Return

If a content engine is unable to provide a requested object it has cached due to error or overload, the content engine returns the request to the router for onward transmission to the originally specified destination server. WCCP verifies which requests have been returned from the content engine unserviced. Using this information, the router can then forward the request to the originally targeted server (rather than attempting to resend the request to the content cluster). This provides error handling transparency to clients.

Typical reasons why a content engine would reject packets and initiate the packet return feature include the following:

  • Instances when the content engine is overloaded and has no room to service the packets.
  • Instances when the content engine is filtering for certain conditions that make caching packets counterproductive (such as, when IP authentication has been turned on).

Restrictions for WCCP

The following limitations apply to WCCP:

  • WCCP works only with IPv4 networks.
  • For routers servicing a multicast cluster, the time to live (TTL) value must be set at 15 or fewer.
  • Because the WCCP protocol messages may now be IP multicast, members may receive messages that are not relevant or (are) duplicates. Appropriate filtering need to be performed.
  • A service group can comprise up to 32 content engines and 32 routers.
  • All content engines in a cluster must be configured to communicate with all routers servicing the cluster.
  • Up to 8 active service groups are supported on a switch. Up to 8 service groups can be configured simultaneously on the same client interface.
  • The Layer 2 rewrite forwarding method is supported (in hardware), the GRE encapsulation forwarding method is not supported.
  • The GRE return method is supported in software. The Layer 2 return method is supported in hardware and is recommended.
  • Direct Layer 3 connectivity to content engines is required; Layer 3 connectivity of one or more hops away is not supported.
  • The following apply only to Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, Catalyst 4948E, and Supervisor Engine 7-E:

– Redirect ACL is supported.

– Output redirection is supported in addition to input redirection.

– Input/output redirection configuration is not supported on content engine facing interfaces.

– When the TCAM space is exhausted on a supervisor engine, traffic is redirected in software. On all other supervisor engines, traffic is not redirected; it is forwarded normally.

  • WCCP version 2 standard allows for support of up to 256 distinct masks. However, a Catalyst 4500 series switch only supports mask assignment table with a single mask.
  • Valid multicast addresses are from 224.0.0.0 to 239.255.255.255.

Restrictions for WCCP

Page 1438 of the Cisco Systems 4500 user manual — Configuring a Service Group Using WCCP
Page 1438 · click to enlarge
Page 1438

Chapter 64 Configuring WCCP Version 2 Services Configuring WCCP

Configuring WCCP

The following configuration tasks assume that you have already installed and configured the content engines you want to include in your network. You must configure the content engines in the cluster before configuring WCCP functionality on your routers.

IP must be configured on the router interface connected to the cache engines. Examples of router configuration tasks follow this section. For complete descriptions of the command syntax, refer to the Cisco IOS Configuration Fundamentals Command Reference, Cisco IOS Release 12.3.

These sections describe how to configure WCCP:

  • Configuring a Service Group Using WCCP, page 64-6 (Required)
  • Using Access Lists for a WCCP Service Group, page 64-8 (Optional)
  • Setting a Password for a Router and Cache Engines, page 64-9 (Optional)

Configuring a Service Group Using WCCP

WCCP uses service groups based on logical redirection services. The standard service is the content engine, which intercepts TCP port 80 (HTTP) traffic and redirects that traffic to the content engines. This service is referred to as a well-known service, because the characteristics of the web cache service are known by both the router and content engines. A description of a well-known service is not required beyond a service identification (the command line interface (CLI) provides a web-cache keyword in the command syntax).

For information on supported WCCP services with ACNS version 5.2 software, refer to the Release Notes for Cisco ACNS Software, Release 5.2.3.

In addition to the web cache service, there can be up to seven dynamic services running concurrently on the switch.

The dynamic services are defined by the content engines; the content engine instructs the router which protocol or ports to intercept, and how to distribute the traffic. The router itself does not have information on the characteristics of the dynamic service group’s traffic, because this information is provided by the first content engine to join the group. In a dynamic service, up to eight ports can be specified within a single protocol TCP or UDP).

Cisco Content Engines, for example, use dynamic service 99 to specify a reverse-proxy service. However, other content engines may use this service number for some other service. The following configuration information deals with enabling general services on Cisco routers. Refer to the content engine documentation for information on configuring services on content engines.

Page 1439 of the Cisco Systems 4500 user manual — Configuring WCCP Version 2 Services
Page 1439 · click to enlarge
Page 1439

Chapter 64 Configuring WCCP Version 2 Services

To enable a service on a Catalyst 4500 series switch, perform this task:

Step 1 Switch(config)# ip wccp {web-cache | service-number} [group-address groupaddress] [redirect-list access-list] [group-list access-list] [password password]

Specifies a dynamic service to enable on the switch, specifies the IP multicast address used by the service group (optional), redirect access-list to control the traffic to be redirected (optional), group list to use for content engine membership (optional), specifies whether to use MD5 authentication (optional), and enables the WCCP service.

Step 2 Switch(config-if)# [no] ip wccp check services all

If a service matches the packet and the service has a redirect access-list configured, then the IP packet will be checked against the access-list. If the packet is rejected by the access-list, the packet will not be passed down to lower priority services unless the ip wccp check services all command is configured. When the ip wccp check services all command is configured, WCCP will continue to attempt to match the packet against any remaining lower priority services configured on the interface.

Step 3 Switch(config)# interface type number Specifies a client interface to configure and enters interface configuration mode.

Step 4 Switch(config-if)# ip wccp {web-cache | service-number} redirect {in | out}

Enables WCCP redirection for ingress or egress traffic on the specified client interface.

Step 5 Switch(config)# interface type number Specifies the interface to be configured for egress redirection exclusion

Step 6 Switch(config-if)# ip wccp redirect exclude in Specifies that packets received on this interface be excluded from any egress redirection. This MUST be configured on the content engine interface if L2-return method is used by the content engine and egress redirection is configured on the server interface.

Step 7 Switch(config)# interface type number (Only necessary to run the multicast feature) Specifies the content engine interface to be configured for multicast reception.

Step 8 Switch(config-if)# ip wccp {web-cache | service-number} group-listen

(Only necessary to run the multicast feature) Enables the reception of IP multicast packets (WCCP protocol packets originating from the content engines) on the interface specified in Step 4.

Configuring WCCP

Page 1440 of the Cisco Systems 4500 user manual — Using Access Lists for a WCCP Service Group
Page 1440 · click to enlarge
Page 1440

Chapter 64 Configuring WCCP Version 2 Services Configuring WCCP

Specifying a Web Cache Service

To configure a web-cache service and ingress redirection, perform this task:

Step 1 Switch(config)# ip wccp web-cache Enables the web cache service on the switch.

Step 2 Switch(config)# interface type number Targets a client interface number for which the web cache service runs, and enters interface configuration mode.

Step 3 Switch(config-if)# ip wccp web-cache redirect in Enables the check on packets to determine if they qualify to be redirected to a content engine, using the client interface specified in Step 2.

To configure a web-cache service and egress redirection, perform this task:

Step 1 Switch(config)# ip wccp web-cache Enables the web cache service on the switch.

Step 2 Switch(config)# interface type number Targets a server interface number for the web cache service, and enters interface configuration mode.

Step 3 Switch(config-if)# ip wccp web-cache redirect out Enables the check on packets to determine if they qualify to be redirected to a content engine, using the client interface specified in Step 2.

Step 4 Switch(config)# interface type number Specifies the content engine interface number, and enters interface configuration mode.

Step 5 Switch(config-if)# ip wccp web-cache redirect in Specifies that packets received on this interface be excluded from any egress redirection. This prevents packets returned by content engine through L2-return method or packets generated by the content engine from being redirected back to the content engine.

Using Access Lists for a WCCP Service Group

A Catalyst 4500 series switch can use an access list to restrict the content engines that can join a service group.

To restrict a content engine, perform this task:

Step 1 Switch(config)# access-list access-list permit ip host host-address [destination-address | destination-host | any]

Creates an access list based on the unicast address of the content engines.

Step 2 Switch(config)# ip wccp web-cache group-list access-list

Indicates to the switch which content engines are allowed or disallowed to form a service group.

Page 1441 of the Cisco Systems 4500 user manual — Verifying and Monitoring WCCP Configuration Settings
Page 1441 · click to enlarge
Page 1441

Chapter 64 Configuring WCCP Version 2 Services

Verifying and Monitoring WCCP Configuration Settings

Setting a Password for a Router and Cache Engines

MD5 password security requires that each content engine and Catalyst 4500 series switch that wants to join a service group be configured with the service group password. The password can consist of up to seven characters. Each content engine or Catalyst 4500 series switch in the service group authenticates the security component in a received WCCP packet immediately after validating the WCCP message header. Packets failing authentication are discarded.

To configure an MD5 password for use by the Catalyst 4500 series switch in WCCP communications, perform this task:

Switch(config)# ip wccp web-cache password password Sets an MD5 password on the Catalyst 4500 series switch.

Verifying and Monitoring WCCP Configuration Settings

To verify and monitor the configuration settings for WCCP, use the following commands in EXEC mode:

Switch# show ip wccp [web-cache | service-number] Displays global information related to WCCP, including the protocol version currently running, the number of content engines in the routers service group, which content engine group is allowed to connect to the router, and which access list is being used.

Switch# show ip wccp {web-cache | service-number} detail Queries the router for information on which content engines of a specific service group the router has detected. The information can be displayed for either the web cache service or the specified dynamic service.

Switch# show ip interface Displays status about whether any ip wccp redirection commands are configured on a client interface. For example, “Web Cache Redirect is enabled / disabled.”

Switch# show ip wccp {web-cache | service-number} view Displays which devices in a particular service group have been detected and which content engines are having trouble becoming visible to all other switches to which the current switch is connected.

The view keyword indicates a list of addresses of the service group. The information can be displayed for either the web cache service or the specified dynamic service.

For further troubleshooting information, use the show ip wccp {web-cache | service number} service command.

Page 1442 of the Cisco Systems 4500 user manual — Running a Reverse Proxy Service Example
Page 1442 · click to enlarge
Page 1442

Chapter 64 Configuring WCCP Version 2 Services WCCP Configuration Examples

WCCP Configuration Examples

This section provides the following configuration examples:

  • Performing a General WCCP Configuration Example, page 64-10
  • Running a Web Cache Service Example, page 64-10
  • Running a Reverse Proxy Service Example, page 64-10
  • Running TCP-Promiscuous Service Example, page 64-11
  • Running Redirect Access-List Example, page 64-11
  • Using Access Lists Example, page 64-11
  • Setting a Password for a Switch and Content Engines Example, page 64-11
  • Verifying WCCP Settings Example, page 64-12

Performing a General WCCP Configuration Example

The following example shows a general WCCP configuration session. VLAN 20 is for the client interface. VLAN 50 is for the content engine interface.

Switch# configure terminal Switch(config)# ip wccp web-cache group-address 224.1.1.100 password alaska1 Switch(config)# interface vlan 20 Switch(config-if)# ip wccp web-cache redirect in Switch(config)# interface vlan 50 Switch(config-if)# ip wccp web cache group-listen

Running a Web Cache Service Example

The following example shows a web cache service configuration session with ingress redirection:

Switch# configure terminal Switch(config)# ip wccp web-cache Switch(config)# interface vlan 20 Switch(config-if)# ip wccp web-cache redirect in Switch(config-if)# ^Z Switch# copy running-config startup-config Switch# show ip interface vlan 20 | include WCCP Redirect WCCP Redirect inbound is enabled WCCP Redirect exclude is disabled

Running a Reverse Proxy Service Example

The following example assumes you a configuring a service group using Cisco Content Engines, which use dynamic service 99 to run a reverse proxy service. The following example illustrates how to configure egress redirection, where VLAN 40 reflects the server interface and VLAN 50 reflects the content engine interface:

Switch# configure terminal Switch(config)# ip wccp 99 Switch(config)# interface vlan 40 Switch(config-if)# ip wccp 99 redirect in Switch(config# interface vlan 50 Switch(config-if)# ip wccp redirect exclude in

Page 1443 of the Cisco Systems 4500 user manual — Setting a Password for a Switch and Content Engines Example
Page 1443 · click to enlarge
Page 1443

Chapter 64 Configuring WCCP Version 2 Services

Running TCP-Promiscuous Service Example

The following example shows how to configure TCP promiscuous service, where VLAN 40 represents the server interface and VLAN 50 represents the content engine interface:

Switch# configure terminal Switch(config)# ip wccp 61 Switch(config)# ip wccp 62 Switch(config)# interface vlan 30 Switch(config-if)# ip wccp 61 redirect in Switch(config)# interface vlan 40 Switch(config-if)# ip wccp 62 redirect in Switch(config)# interface vlan 50 Switch(config-if)# ip wccp redirect exclude in

Running Redirect Access-List Example

Redirect access-list allows you to control which traffic to be redirected. The following example shows how to redirect traffic only from subnet 10.1.1.0:

Switch(config)# ip access-list extended 100 Switch(config-ext-nacl)# permit ip 10.1.1.0 255.255.255.0 any Switch(config-ext-nacl)# exit Switch(config)# ip wccp web-cache redirect-list 100 Switch(config)# interface vlan 40 Switch(config-if)# ip wccp web-cache redirect in Switch(config)# interface vlan 50 Switch(config-if)# ip wccp redirect exclude in

Using Access Lists Example

To achieve better security, you can use a standard access list to notify the Catalyst 4500 series switch to which IP addresses are valid addresses for a content engine attempting to register with the current switch. The following example shows a standard access list configuration session where the access list number is 10 for some sample hosts:

router(config)# access-list 10 permit host 11.1.1.1 router(config)# access-list 10 permit host 11.1.1.2 router(config)# access-list 10 permit host 11.1.1.3 router(config)# ip wccp web-cache group-list 10

Setting a Password for a Switch and Content Engines Example

The following example shows a WCCP password configuration session where the password is alaska1:

Switch# configure terminal router(config)# ip wccp web-cache password alaska1

WCCP Configuration Examples

Page 1444 of the Cisco Systems 4500 user manual — WCCP multicast mode
Page 1444 · click to enlarge
Page 1444

Chapter 64 Configuring WCCP Version 2 Services WCCP Configuration Examples

Verifying WCCP Settings Example

To verify your configuration changes, use the more system:running-config EXEC command. The following example shows that the both the web cache service and dynamic service 99 are enabled on the Catalyst 4500 series switch:

WCCP unicast mode

Switch# more system:running-config

Building configuration... Current configuration: ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption service udp-small-servers service tcp-small-servers ! enable secret 5 $1$nSVy$faliJsVQXVPW.KuCxZNTh1 enable password alabama1 ! ip subnet-zero ip wccp web-cache ip wccp 99 ! ! ! interface Vlan200 ip address 10.3.1.2 255.255.255.0 ip wccp web-cache redirect in

interface Vlan300 ip address 10.4.1.1 255.255.255.0 ip wccp redirect exclude in

interface Vlan400 ip address 10.5.1 255.255.255.0 ip wccp 99 redirect out

ip default-gateway 10.3.1.1 ip classless ip route 0.0.0.0 0.0.0.0 10.3.1.1 no ip http server ! !

WCCP multicast mode

ip wccp web-cache group-address 224.1.1.1 ip wccp 60 group-address 224.1.1.1 ip wccp 90 ip wccp 91

interface Vlan70 ip address 70.1.1.1 255.255.255.0

Page 1445 of the Cisco Systems 4500 user manual — Configuring WCCP Version 2 Services
Page 1445 · click to enlarge
Page 1445

Chapter 64 Configuring WCCP Version 2 Services

ip wccp web-cache group-listen ip wccp 60 group-listen ip wccp redirect exclude in

WCCP Configuration Examples

Page 1446 of the Cisco Systems 4500 user manual — Configuring WCCP Version 2 Services
Page 1446 · click to enlarge
Page 1446

Chapter 64 Configuring WCCP Version 2 Services WCCP Configuration Examples

Page 1447 of the Cisco Systems 4500 user manual — Determining MIB Support for Cisco IOS Releases
Page 1447 · click to enlarge
Page 1447

C H A P T E R

Configuring MIB Support

This chapter describes how to configure SNMP and MIB support for the Cisco 4500 series switch. It includes the following sections:

  • Determining MIB Support for Cisco IOS Releases, page 65-1
  • Using Cisco IOS MIB Tools, page 65-2
  • Downloading and Compiling MIBs, page 65-2
  • Enabling SNMP Support, page 65-4

Note For complete syntax and usage information for the switch commands used in this chapter, first look at the Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location: http://www.cisco.com/en/US/products//hw/switches/ps4324/index.html If the command is not found in the Catalyst 4500 Command Reference, it will be found in the larger Cisco IOS library. Refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference and related publications at this location: http://www.cisco.com/en/US/products/ps6350/index.html

Determining MIB Support for Cisco IOS Releases

To determine which MIBs are included in the Cisco IOS release running on the Cisco 4500 series switch, follow these steps:

Step 1 Go to the Cisco MIBs Support page:

http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml

Step 2 Under Cisco Access Products, select a Cisco 4500 switch to display a list of MIBs supported on the Cisco 4500 switches.

Step 3 Scroll through the list to find the release you are interested in.

Page 1448 of the Cisco Systems 4500 user manual — Downloading and Compiling MIBs
Page 1448 · click to enlarge
Page 1448

Chapter 65 Configuring MIB Support Using Cisco IOS MIB Tools

Using Cisco IOS MIB Tools

This section describes how to access the Cisco MIB tools page. The MIB Locator finds MIBs in Cisco IOS software releases. You can find general MIB information, instructions about how to use the SNMP Object Navigator which translates SNMP object identifiers (OIDs) into SNMP names, and how to load Cisco MIBs.

To access the Cisco IOS MIB tools site, follow these steps::

Step 1 Go to the Cisco Products and Services page:

http://tools.cisco.com/ITDIT/MIBS/servlet/index

Step 2 Click MIB Locator to launch the application.

The MIB Locator application allows you to find a MIB in the following three ways.

  • From the MIB Locator page, you can:

– Click the drop-down menu and select the desired Cisco IOS software release.

– From the Platform Family menu, select the appropriate feature set: CAT4500-SUP2-PLUS, CAT4500-SUP2-PLUS-TS, CAT4500-SUP3, CAT4500-SUP4, CAT4500-SUP5, CAT4500-SUP5-10gGE2, and CAT4948. If you select the platform first, the system displays only those releases and feature sets that apply to the Cisco 4500 series switch.

– From the Feature Set menu, select Service Provider W/VIP.

  • From the MIB Locator page, you can search by image name. For example, enter the following and click the Submit button:

c7200-js56i-mz.12.0-1

  • From the MIB Locator page, you can search for the MIB from the list of MIBs in the menu. You can select one, or for multiple selections, hold down the CTRL key, then click the Submit button.

Downloading and Compiling MIBs

The following sections provide information about how to download and compile MIBs for the Cisco 4500 series switch:

  • Guidelines for Working with MIBs, page 65-3
  • Downloading MIBs, page 65-3
  • Compiling MIBs, page 65-4
Page 1449 of the Cisco Systems 4500 user manual — Downloading MIBs
Page 1449 · click to enlarge
Page 1449

Chapter 65 Configuring MIB Support

Downloading and Compiling MIBs

Guidelines for Working with MIBs

While working with MIBs, consider the following guidelines:

  • Mismatches on datatype definitions might cause compiler errors or warning messages. Although Cisco MIB datatype definitions are not mismatched, some standard RFC MIBs do mismatch. For example:
MIB A definesSomeDatatype ::= INTEGER(0..100) MIB B defines: SomeDatatype ::= INTEGER(1..50)

This example is considered to be a trivial error and the MIB loads successfully with a warning message.

The next example is considered as a nontrivial error (even though the two definitions are essentially equivalent), and the MIB is not successfully parsed.

MIB A definesSomeDatatype ::= DisplayString MIB B defines: SomeDatatype ::= OCTET STRING (SIZE(0..255))

If your MIB compiler treats these as errors, or you want to delete the warning messages, edit one of the MIBs that define this same datatype so that the definitions match.

  • Many MIBs import definitions from other MIBs. If your management application requires MIBs to be loaded, and you experience problems with undefined objects, you might want to load the following MIBs in this order:

SNMPv2-SMI.my SNMPv2-TC.my SNMPv2-MIB.my RFC1213-MIB.my IF-MIB.my CISCO-SMI.my CISCO-PRODUCTS-MIB.my CISCO-TC.my

  • For additional information and SNMP technical tips, go to the following URL:

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094aa5.shtml

  • For a list of SNMP OIDs assigned to MIB objects, go to the following URL and click on SNMP Object Navigator and follow the links:

http://tools.cisco.com/ITDIT/MIBS/servlet/index

  • For information about how to download and compile Cisco MIBs, go to the following URL:

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00800b4cee.shtml

Downloading MIBs

to download the MIBs onto your system if they are not already present, follow these steps:

Step 1 Review the guidelines in the previous section (“Guidelines for Working with MIBs”).

Step 2 Go to one of the following Cisco URLs. If the MIB you want to download is not there, try the other URL; otherwise, go to one of the URLs in Step 5.

Page 1450 of the Cisco Systems 4500 user manual — Enabling SNMP Support
Page 1450 · click to enlarge
Page 1450

Chapter 65 Configuring MIB Support Enabling SNMP Support

ftp://ftp.cisco.com/pub/mibs/v2

ftp://ftp.cisco.com/pub/mibs/v1

Step 3 Click the link for a MIB to download that MIB to your system.

Step 4 Select File > Save or File > Save As to save the MIB on your system.

Step 5 You can download industry-standard MIBs from the following URL:

  • <a href="http://www.oidview.com/mibs/0/md-0-1.html" rel="nofollow noopener" target="_blank">http://www.oidview.com/mibs/0/md-0-1.html</a>

Compiling MIBs

If you plan to integrate the Cisco 4500 series switch with an SNMP-based management application, then you must also compile the MIBs for that platform. For example, if you are running HP OpenView on a UNIX operating system, you must compile Cisco 4500 series switch MIBs with the HP OpenView Network Management System (NMS). For instructions, see the NMS documentation.

Enabling SNMP Support

The following procedure summarizes how to configure the Cisco 4500 series switch for SNMP support.

For detailed information about SNMP commands, see the following Cisco documents:

  • Cisco IOS Release 15.0 Configuration Guides , available at the following URL:

http://www.cisco.com/en/US/products/ps10591/products_installation_and_configuration_guides_l ist.html

  • Cisco IOS Release 12.3 Configuration Fundamentals and Network Management Command Reference , Part 3: System Management Commands, “Router and Network Configuration Commands” section, available at the following URL:

http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/fun_r.html

To configure the Cisco 4500 series switch for SNMP support, follow these steps:

Step 1 Establish your basic SNMP configuration using the command line interface (CLI) on the router. Note that these basic configuration commands are issued for SNMP version 2c. For SNMP version 3, you must also set up SNMP users and groups. Refer to the preceding list of documents for command and set up information.

a. Define SNMP read-only and read-write communities:

Router (config)# snmp-server community Read_Only_Community_Name ro Router (config)# snmp-server community Read_Write_Community_Name rw

b. Configure SNMP views (to limit the range of objects accessible to different SNMP user groups):

Router (config)# snmp-server view view_name oid-tree {included | excluded}

Step 2 Identify (by IP address) the host to receive SNMP notifications from the router:

Router (config)# snmp-server host host

Step 3 Configure the router to generate notifications. You can use keywords to limit the number and types of messages generated.

Page 1451 of the Cisco Systems 4500 user manual — Configuring MIB Support
Page 1451 · click to enlarge
Page 1451

Chapter 65 Configuring MIB Support

Router (config)# snmp-server enable traps [notification-type] [notification-option]

Step 4 (Optional) Configure the router to generate SNMP notifications released to field replaceable units (FRUs):

Router (config)# snmp-server enable traps fru-ctrl

Step 5 (Optional) Configure the router to generate SNMP notifications related to environmental monitoring:

Router (config)# snmp-server enable traps envmon

Enabling SNMP Support

Page 1452 of the Cisco Systems 4500 user manual — Configuring MIB Support
Page 1452 · click to enlarge
Page 1452

Chapter 65 Configuring MIB Support Enabling SNMP Support

Page 1453 of the Cisco Systems 4500 user manual — A-1
Page 1453 · click to enlarge
Page 1453
Cisco Systems 4500 — A diagram (page 1453)
Fig. 17

A P P E N D I X A

Acronyms and Abbreviations

Table A-1 defines the acronyms and abbreviations used in this publication.

Acronym Expansion

ACE access control entry

ACL access control list

AFI authority and format identifier

ALPS Airline Protocol Support

AMP Active Monitor Present

APaRT Automated Packet Recognition and Translation

ARP Address Resolution Protocol

AVVID Architecture for Voice, Video and Integrated Data

BDD binary decision diagrams

BECN backward explicit congestion notification

BGP Border Gateway Protocol

BPDU bridge protocol data unit

BRF bridge relay function

BSTUN Block Serial Tunnel

BUS broadcast and unknown server

BVI bridge-group virtual interface

CAR committed access rate

CCA circuit card assembly

CDP Cisco Discovery Protocol

CEF Cisco Express Forwarding

CGMP Cisco Group Management Protocol

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide OL-23818-01

A-1

Show 5 more labels / short text on this page
Table A-1 Acronyms · Agport aggregation port · AV attribute value · BSC Bisync · CAM content-addressable memory
Page 1454 of the Cisco Systems 4500 user manual — A-2
Page 1454 · click to enlarge
Page 1454

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Table A-1 Acronyms (continued)

Acronym Expansion

CHAP Challenge Handshake Authentication Protocol

CIR committed information rate

CIST Common and Internal Spanning Tree

CLNS Connection-Less Network Service

CMNS Connection-Mode Network Service

COPS Common Open Policy Server

COPS-DS Common Open Policy Server Differentiated Services

CoS class of service

CPLD Complex Programmable Logic Device

CRC cyclic redundancy check

CRF concentrator relay function

CST Common Spanning Tree

CUDD University of Colorado Decision Diagram

DBL Dynamic Buffer Limiting

DCC Data Country Code

dCEF distributed Cisco Express Forwarding

DEC Digital Equipment Corporation

DFI Domain-Specific Part Format Identifier

DFP Dynamic Feedback Protocol

DISL Dynamic Inter-Switch Link

DLC Data Link Control

DLSw Data Link Switching

DMP data movement processor

DNS Domain Name System

DoD Department of Defense

DOS denial of service

DSAP destination service access point

DSCP differentiated services code point

DSPU downstream SNA Physical Units

DTP Dynamic Trunking Protocol

DTR data terminal ready

DXI data exchange interface

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

A-2

Show 4 more labels / short text on this page
CLI command-line interface · DDR dial-on-demand routing · DE discard eligibility · DRAM dynamic RAM
Page 1455 of the Cisco Systems 4500 user manual — A-3
Page 1455 · click to enlarge
Page 1455

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Table A-1 Acronyms (continued)

Acronym Expansion

EAP Extensible Authentication Protocol

EARL Enhanced Address Recognition Logic

EEPROM electrically erasable programmable read-only memory

EHSA enhanced high system availability

EHT Explicit Host Tracking

EIA Electronic Industries Association

ELAN Emulated Local Area Network

EOBC Ethernet out-of-band channel

FECN forward explicit congestion notification

FRU field replaceable unit

FSM feasible successor metrics

GARP General Attribute Registration Protocol

GMRP GARP Multicast Registration Protocol

GVRP GARP VLAN Registration Protocol

HSRP Hot Standby Routing Protocol

ICD International Code Designator

ICMP Internet Control Message Protocol

IDB interface descriptor block

IDP initial domain part or Internet Datagram Protocol

IFS IOS File System

IGMP Internet Group Management Protocol

IGRP Interior Gateway Routing Protocol

ILMI Integrated Local Management Interface

IPX Internetwork Packet Exchange

IS-IS Intermediate System-to-Intermediate System Intradomain Routing Protocol

ISO International Organization of Standardization

LAN local area network

LAPB Link Access Procedure, Balanced

A-3

Show 7 more labels / short text on this page
ESI end-system identifier · FM feature manager · ICC Inter-card Communication · IP Internet Protocol · IPC interprocessor communication · ISL Inter-Switch Link · LANE LAN Emulation
Page 1456 of the Cisco Systems 4500 user manual — A-4
Page 1456 · click to enlarge
Page 1456

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Table A-1 Acronyms (continued)

Acronym Expansion

LDA Local Director Acceleration

LCP Link Control Protocol

LEC LAN Emulation Client

LECS LAN Emulation Configuration Server

LEM link error monitor

LER link error rate

LES LAN Emulation Server

LLC Logical Link Control

LTL Local Target Logic

MAC Media Access Control

MACL MAC Access Control

MD5 Message Digest 5

MFD multicast fast drop

MIB Management Information Base

MLSE maintenance loop signaling entity

MOP Maintenance Operation Protocol

MLSE maintenance loops signaling entity

MRM multicast routing monitor

MSDP Multicast Source Discovery Protocol

MST Multiple Spanning Tree

MTU maximum transmission unit

MVAP multiple VLAN access port

NBP Name Binding Protocol

NCIA Native Client Interface Architecture

NDE NetFlow Data Export

NET network entity title

NetBIOS Network Basic Input/Output System

NFFC NetFlow Feature Card

NMP Network Management Processor

NSAP network service access point

NTP Network Time Protocol

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

A-4

Show 5 more labels / short text on this page
MII media-independent interface · MLS Multilayer Switching · MOTD message-of-the-day · MSTI MST instance · NVRAM nonvolatile RAM
Page 1457 of the Cisco Systems 4500 user manual — A-5
Page 1457 · click to enlarge
Page 1457

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Table A-1 Acronyms (continued)

Acronym Expansion

OAM Operation, Administration, and Maintenance

ODM order dependent merge

OSI Open System Interconnection

OSPF open shortest path first

PACL Port Access Control List

PAE port access entity

PAgP Port Aggregation Protocol

PBD packet buffer daughterboard

PBR Policy Based Routing

PCM pulse code modulation

PCR peak cell rate

PDP policy decision point

PDU protocol data unit

PEP policy enforcement point

PGM Pragmatic General Multicast

PIB policy information base

PIM Protocol Independent Multicast

PoE Power over Internet

PRID Policy Rule Identifiers

PVST+ per-VLAN Spanning Tree+

QoS quality of service

RADIUS Remote Access Dial-In User Service

RCP Remote Copy Protocol

RGMP Router-Ports Group Management Protocol

RIB routing information base

RIF Routing Information Field

RMON Remote Network Monitor

RP route processor or rendezvous point

RPC remote procedure call

A-5

Show 7 more labels / short text on this page
PC Personal Computer · PHY physical sublayer · PPP Point-to-Point Protocol · QM QoS manager · RAM random-access memory · ROM read-only memory · ROMMON ROM monitor
Page 1458 of the Cisco Systems 4500 user manual — A-6
Page 1458 · click to enlarge
Page 1458

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Table A-1 Acronyms (continued)

Acronym Expansion

RPF reverse path forwarding

RPR Route Processor Redundancy

SAID Security Association Identifier

SAP service access point

SCM service connection manager

SCP Switch-Module Configuration Protocol

SDLC Synchronous Data Link Control

SGBP Stack Group Bidding Protocol

SIMM single in-line memory module

SLB server load balancing

SLCP Supervisor Line-Card Processor

SLIP Serial Line Internet Protocol

SMDS Software Management and Delivery Systems

SMF software MAC filter

SMP Standby Monitor Present

SMRP Simple Multicast Routing Protocol

SNAP Subnetwork Access Protocol

SNMP Simple Network Management Protocol

SPAN Switched Port Analyzer

SSTP Cisco Shared Spanning Tree

STP Spanning Tree Protocol

SVC switched virtual circuit

SVI switched virtual interface

TACACS+ Terminal Access Controller Access Control System Plus

TARP Target Identifier Address Resolution Protocol

TCAM Ternary Content Addressable Memory

TCL table contention level

TCP/IP Transmission Control Protocol/Internet Protocol

TFTP Trivial File Transfer Protocol

TIA Telecommunications Industry Association

TopN Utility that allows you to analyze port traffic by reports

TOS type of service

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

A-6

Show 4 more labels / short text on this page
RSPAN remote SPAN · RST reset · RSVP ReSerVation Protocol · SMT Station Management
Page 1459 of the Cisco Systems 4500 user manual — A-7
Page 1459 · click to enlarge
Page 1459

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Table A-1 Acronyms (continued)

Acronym Expansion

TTL Time To Live

UDLD UniDirectional Link Detection Protocol

UDP User Datagram Protocol

UTC Coordinated Universal Time

VACL VLAN access control list

VCC virtual channel circuit

VCI virtual circuit identifier

VCR Virtual Configuration Register

VINES Virtual Network System

VMPS VLAN Membership Policy Server

VPN virtual private network

VRF VPN routing and forwarding

VTP VLAN Trunking Protocol

VVID voice VLAN ID

WFQ weighted fair queueing

WRED weighted random early detection

XNS Xerox Network System

A-7

Show 5 more labels / short text on this page
TLV type-length-value · TVX valid transmission · UNI User-Network Interface · VLAN virtual LAN · WRR weighted round-robin
Page 1460 of the Cisco Systems 4500 user manual — A-8
Page 1460 · click to enlarge
Page 1460

Appendix A Acronyms and Abbreviations

E F T D r a ft - C i s c o C o n f i d e n t i a l

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

A-8

Page 1462 of the Cisco Systems 4500 user manual — IN-2
Page 1462 · click to enlarge
Page 1462

ACLs, applying to a Layer 2 interface 47-40

with TACACS+ 3-16, 3-21

ACLs and VLAN maps, examples 47-26

acronyms, list of A-1

action drivers, marking 37-71

IP 47-3

active queue management 37-14

Layer 4 operation restrictions 47-16

active queue management via DBL, QoS on Sup 6-E 37-84

ACEs and ACLs 44-1

active traffic monitoring, IP SLAs 60-1

ACL assignments, port-based authentication 40-20

adding members to a community 12-9

ACL assignments and redirect URLs, configure 40-38

ACL configuration, displaying a Layer 2 interface 47-40

displaying the MAC table 4-35

changing the aging time 4-21

and TCAM programming for Sup 6-E 47-16

and TCAM programming for Sup II-Plus thru V-10GE 47-7

applying IPv6 ACLs to a Layer 3 interface 47-24

applying on routed packets 47-34

applying on switched packets 47-33

chaning the TCAM programming algorithm 47-9

compatibility on the same switch 47-3

adding and removing 4-27

configuring with VLAN maps 47-32

hardware and software support 47-6

IP, matching criteria for port ACLs 47-4

matching criteria for router ACLs 47-3

administrative VLAN, REP 20-8

and voice VLAN 47-5

LLDP 1-5, 27-2

resize the TCAM regions 47-11

selecting mode of capturing control packets 47-13

aggregation switch, enabling DHCP snooping 45-9

TCAM programming algorithm 47-8

troubleshooting high CPU 47-12

MAC address table 4-21

All Auth manager sessions, displaying summary 40-114

All Auth manager sessions on the switch authorized for a specified authentication method 40-115

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-2

Show 36 more labels / short text on this page
Index · with RADIUS 40-108 · ACEs · ACLs 47-2 · addresses · ACLs · dynamic · ACEs 47-2 · and SPAN 51-5 · defined 4-19 · learning 4-20 · removing 4-22 · IPv6 48-2 · MAC, discovering 4-35 · See MAC addresses · static · defined 4-19 · CPU impact 47-18 · address resolution 4-35 · downloadable 42-7 · adjacency tables · description 31-2 · displaying statistics 31-9 · MAC extended 47-20 · administrative VLAN · REP, configuring 20-9 · port · advertisements · defined 47-3 · processing 47-18 · advertisements, VTP · See VTP advertisements · aging time · types supported 47-3 · understanding 47-2 · VLAN maps 47-5
Page 1463 of the Cisco Systems 4500 user manual — IN-3
Page 1463 · click to enlarge
Page 1463

enabling and configuring 34-2

Auth manager session for an interface, verifying 40-115

guidelines and restrictions 34-5

Auth manager summary, displaying 40-114

identify a port with DHCP option 82 34-4

authoritative time source, described 4-2

identify a port with protocol 34-2

with TACACS+ 3-16, 3-21

identifying a port with 34-2

authorized and unauthorized ports 40-5

applying IPv6 ACLs to a Layer 3 interface 47-24

authorized ports with 802.1X 40-5

AQM via DBL, QoS on Sup 6-E 37-84

archiving crashfiles information 2-8

ARP

Auto-MDIX on a port

asymmetrical links, and 802.1Q tunneling 25-3

displaying the configuration 6-29

RADIUS

Auto SmartPorts built-in macros

See also port-based authentication

TACACS+

Authentication, Authorization, and Accounting (AAA) 44-1

IOS shell 17-2, 17-9

Authentication Failed, configuring 80.1X 40-68

Authentication methods registered with the Auth manager, determining 40-114

Auto SmartPorts user-defined macros

authentication open comand 40-8

authentication proxy web pages 42-4

See also SmartPorts macros

IN-3

Show 47 more labels / short text on this page
Index · ANCP client · RADIUS server 40-3 · authorization · overview 34-1 · with RADIUS 40-107 · ANCP protocol · autoconfiguration 3-2 · automatic discovery · considerations 12-7 · defined 4-35 · automatic QoS · table · See QoS · address resolution 4-35 · managing 4-35 · configuring 6-28 · attributes, RADIUS · overview 6-27 · vendor-proprietary 40-111 · autonegotiation feature · vendor-specific 40-109 · forced 10/100Mbps 6-18 · authentication · Auto-QoS · NTP associations 4-4 · configuring 37-56 · key 40-101 · configuring parameters 17-6 · login 40-103 · Auto SmartPorts macros · built-in macros 17-4 · configuration guidelines 17-4 · defined 3-16 · default configuration 17-3 · key 3-18 · defined 17-1 · login 3-19 · displaying 17-13 · enabling 17-3 · Auto Smartports macros · defined 1-2 · configuring 17-9 · auto-sync command 8-8 · authentication server · Auto SmartPorts macros · defined 40-3
Page 1464 of the Cisco Systems 4500 user manual — IN-4
Page 1464 · click to enlarge
Page 1464

See also Smartports macros

B

and media speed 18-2

adding a switch (figure) 21-4

what they contain 18-3

link failure (figure) 21-14, 21-15

See STP bridge ID

not supported MST 18-23

bridge priority (STP) 18-17

bridge protocol data units

Built-in macros and user-defined triggers, configuring mapping 17-9

b flash command 63-3

BGP 1-13

routing session with multi-VRF CE 36-12

cache engine clusters 64-1

RSTP comparisons (table) 18-24

See cache engine clusters

boot bootldr command 3-31

message format options 59-2

See configuration register boot fields

boot system command 3-26, 3-31

configuring e-mail options 59-9

boot system flash command 3-28

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-4

Show 50 more labels / short text on this page
Index · Auto Smartports macros · boundary ports · description 18-27 · BPDU Guard · and MST 18-23 · configuring 21-16 · Baby Giants · overview 21-8 · interacting with 6-26 · BPDUs · BackboneFast · pseudobridges and 18-25 · and MST 18-23 · configuring 21-16 · bridge ID · understanding 21-14 · See also STP · See BPDUs · banners · Broadcast Storm Control · configuring · disabling 50-6 · login 4-19 · enabling 50-3 · message-of-the-day login 4-18 · default configuration 4-18 · burst rate 37-52 · when displayed 4-17 · burst size 37-27 · b command 63-3 · blocking packets 49-1 · cache engines 64-1 · blocking state (STP) · cache farms · Call Home · boot command 3-28 · description 1-19, 59-2 · boot commands 63-3 · boot fields · messages · format options 59-2 · bootstrap program · call home 59-1 · See ROM monitor · alert groups 59-6 · contact information 59-4 · Border Gateway Protocol · default settings 59-18 · See BGP
Page 1465 of the Cisco Systems 4500 user manual — IN-5
Page 1465 · click to enlarge
Page 1465

defined with LLDP 27-1

enabling on interfaces 26-3

host presence detection 40-8

Layer 2 protocol tunneling 25-13

rate limit messages 59-9

smart call home feature 59-2

cdp enable command 26-3

CEF

call home alert groups

and NSF with SSO 9-5

configuring load balancing 31-7

call home destination profiles

certificate authority (CA) 59-3

CFM

and Ethernet OAM, configuring 57-51

full-txt format for syslog 59-25

and Ethernet OAM interaction 57-51

XML format for syslog 59-28

configuration guidelines 57-7, 58-4

configuring crosscheck for VLANs 57-11

configuring fault alarms 57-16

configuring port MEP 57-14

configuring static remote MEP 57-13, 57-16, 57-18

EtherChannel support 57-7, 58-4

BGP optional attributes 32-5

IP SLAs support for 57-6

CDP

IP SLAs with endpoint discovers 57-21

and trusted boundary 37-21

automatic discovery in communities 12-7

manually configuring IP SLAs ping or jitter 57-19

measuring network performance 57-6

IN-5

Show 45 more labels / short text on this page
Index · destination profiles 59-5 · displaying information 59-14 · displaying configuration 26-3 · mail-server priority 59-10 · pattern matching 59-9 · periodic notification 59-8 · maintaining 26-3 · severity threshold 59-8 · monitoring 26-3 · overview 1-3, 26-1 · SMTP server 59-9 · testing communications 59-10 · adjacency tables 31-2 · configuring 59-6 · description 59-6 · subscribing 59-7 · displaying statistics 31-8 · call home contacts · enabling 31-6, 62-2 · assigning information 59-4 · hardware switching 31-4 · load balancing 31-6 · attributes 59-5 · overview 31-1 · configuring 59-5 · software switching 31-4 · description 59-5 · displaying 59-16 · call home notifications · clearing 57-31 · candidates · automatic discovery 12-7 · candidate switch, cluster · defined 12-12 · Capturing control packets · selecting mode 47-13 · crosscheck 57-5 · defined 57-2 · Unicast RPF · fault alarms · configuring 57-16 · encrypting 3-22 · maintenance domain 57-2 · configuration 26-2
Page 1466 of the Cisco Systems 4500 user manual — IN-6
Page 1466 · click to enlarge
Page 1466

IP multicast table entries 33-28

port MEP, configuring 57-14

clear ip eigrp neighbors command 30-19

clear ip flow stats command 56-9

static RMEP, configuring 57-13, 57-16, 57-18

static RMEP check 57-5

Y.1731

backing out one level 2-5

CGMP

Change of Authorization, RADIUS 40-94

channel-group group command 22-8, 22-10

Cisco 7600 series Internet router

enabling SNMP 65-4, 65-5

in 802.1X authentication 40-3

Cisco Group Management Protocol

Cisco IOS IP SLAs 60-2

convert to a community 12-10

Cisco IOS NSF-capable support 9-2

CLI 12-13

CIST

CoA Request Commands 40-97

class level, configure in a service policy 37-82

clear cdp counters command 26-4

clear cdp table command 26-3

clear counters command 6-31

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-6

Show 52 more labels / short text on this page
Index · monitoring 57-32, 57-33 · remote MEPs 57-5 · accessing 2-2 · described 57-27 · getting commands 2-5 · history substitution 2-4 · overview 23-1 · managing clusters 12-13 · modes 2-5 · monitoring environments 51-1 · ROM monitor 2-7 · software basics 2-4 · Cisco Discovery Protocol · clients · See CDP · Cisco Express Forwarding · clock · See CEF · See system clock · clustering switches · See CGMP · command switch characteristics · and VTY 12-12 · Cisco IOS NSF-aware · support 9-2 · managing · through CLI 12-13 · Cisco IP Phones · overview 12-2 · configuring 38-3 · planning considerations · sound quality 38-1 · CiscoWorks 2000 54-4 · passwords 12-8 · description 18-22 · command-line processing 2-3 · civic location 27-3 · command modes 2-5 · commands · class-map command 37-28 · b 63-3 · class of service · b flash 63-3 · See CoS · boot 63-3 · confreg 63-3 · dev 63-3 · dir device 63-3 · clearing · frame 63-5 · Ethernet CFM 57-31
Page 1467 of the Cisco Systems 4500 user manual — IN-7
Page 1467 · click to enlarge
Page 1467

CFM 57-7, 58-4

ROM monitor 63-2 to 63-3

REP 20-7

ROM monitor debugging 63-5

SNMP 54-6

SNMP 65-4

common and internal spanning tree

changing from ROM monitor 63-3

changing settings 3-28 to 3-29

settings at startup 3-27

access modes in Network Assistant 12-9

configure class-level queue-limit in a service policy 37-82

configure terminal command 3-29, 6-2

configuring access-group mode on Layer 2 interface 47-39

configuring flow control 6-20

configuring interface link and trunk status envents 6-32

converting from a cluster 12-10

configuring named IPv6 ACLs 47-23

configuring named MAC extended ACLs 47-20, 47-22

configuring unicast MAC address filtering 47-20

configuring VLAN maps 47-24

community VLANs 39-2, 39-3

console configuration mode 2-5

configure as a PVLAN 39-15

console download 63-4 to 63-5

config terminal command 3-9

disconnecting user sessions 7-7

monitoring user sessions 7-6

configurable leave timer,IGMP 23-4

assigning for call home 59-4

SNMP 54-15

controlling switch access with RADIUS 40-92

limiting TFTP server access 54-15

and Layer 2 Control packet QoS, configuration example 44-14

obtaining with DHCP 3-6

configuration guidelines and restrictions 44-8

system contact and location information 54-14

IN-7

Show 40 more labels / short text on this page
Index · listing 2-5 · configuration guidelines · meminfo 63-5 · reset 63-3 · Ethernet OAM 57-35 · VLAN mapping 25-10 · sysret 63-5 · configuration register · command switch, cluster · boot fields · requirements 12-11 · listing value 3-29 · modifying 3-28 · See CIST · common spanning tree · See CST · configuring 3-26 · community of switches · adding devices 12-9 · communication protocols 12-8 · community name 12-8 · configuration information 12-9 · host name 12-8 · passwords 12-8 · community ports 39-3 · community strings · confreg command 63-3 · configuring 54-7 · Connectivity Fault Management · overview 54-4 · See CFM · compiling MIBs 65-4 · console port · config-register command 3-29 · contact information · configuration examples · configuration files · Control Plane Policing · saving 3-10
Page 1468 of the Cisco Systems 4500 user manual — IN-8
Page 1468 · click to enlarge
Page 1468

configuring for control plane traffic 44-4

D

configuring for data plane and management plan traffic 44-6

enabling the DHCP Snooping 45-13

daylight saving time 4-13

debug commands, ROM monitor 63-5

control protocol, IP SLAs 60-4

802.1X 40-27

REP 20-4

copy running-config startup-config command 3-10

copy system:running-config nvram:startup-config command 3-32

DNS 4-16

IGMP snooping 24-5, 24-6

overriding on Cisco IP Phones 38-5

Layer 2 protocol tunneling 25-16

LLDP 27-4

MAC address table 4-21

CoS value, configuring for an interface 37-49

NTP 4-4

RADIUS 40-100

clearing on interfaces 6-31

REP 20-7

CPU, impact of ACL processing 47-18

resetting the interface 6-34

CPU port sniffing 51-10

RMON 61-3

crashfiles information, archiving 2-8

SNMP 54-5

SPAN and RSPAN 51-6

configure with 802.1X 40-60

system message logging 52-3

crosscheck, CFM 57-5, 57-11

TACACS+ 3-18

CST

Y.1731 57-29

customer edge devices 36-2

C-VLAN 1-2, 25-7

default settings, erase commad 3-32

default web-based authentication configuration

802.1X 42-6

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-8

Show 34 more labels / short text on this page
Index · database agent · defaults 44-4 · configuration examples 45-15 · general guidelines 44-3 · monitoring 44-9 · understanding 44-2 · default configuration · convergence · auto-QoS 37-57 · banners 4-18 · Ethernet OAM 57-35 · CoS · IGMP filtering 23-20 · definition 37-4 · figure 37-3 · IP SLAs 60-7 · IPv6 48-7 · priority 38-5 · CoS Mutation · configuring 37-36 · CoS-to-DSCP maps 37-53 · multi-VRF CE 36-3 · counters · private VLANs 39-12 · clearing MFIB 33-28 · Critical Authentication · VLAN mapping 25-9 · description 18-25 · IST and 18-22 · default gateway · MST and 18-22 · configuring 3-11 · verifying configuration 3-11
Page 1469 of the Cisco Systems 4500 user manual — IN-9
Page 1469 · click to enlarge
Page 1469

accepting untrusted packets form edge switch 45-10

IP address spoofing, mitigating 32-5

Unicast RPF, deploying 32-5

denying access to a server on another VLAN 47-31

displaying binding tables 45-19

deploying 10-Gigabit Ethernet and a Gigabit Ethernet SFP ports 6-12, 6-13

deploying 10-Gigabit Ethernet and a Gigabit Ethernet SFP ports on WS-X4606-10GE-E and Sup 6-E 6-13

enabling on private VLAN 45-12

enabling on the aggregation switch 45-9

enabling the database agent 45-13

device discovery protocol 27-1

message exchange process 45-4

call home format 59-21, 59-22

option 82 data insertion 45-4

DHCP

Snooping database agent 45-2

rate limit for incoming packets 45-13

DHCP Snooping Database Agent

denial-of-service attacks, preventing 45-13

adding to the database (example) 45-18

rate limiting of packets

reading from a TFTP file (example) 45-17

client request message exchange 3-3

DNS 3-5

causes of failure 62-21

how it works 62-10

Power-On-Self-Test for Supervisor Engine V-10GE 62-15

Differentiated Services Code Point values

for IP address information 3-4

for receiving the configuration file 3-4

DiffServ architecture, QoS 37-2

Digital optical monitoring transceiver support 6-16

relationship to BOOTP 3-3

dir device command 63-3

identifying a port with 34-4

RSTP comparisons (table) 18-24

broadcast storm control 50-6

enabling, and Option 82 45-10

disabling multicast storm control 50-7

IN-9

Show 37 more labels / short text on this page
Index · denial-of-service attacks · configuring 45-6 · default configuration 45-7 · displaying configuration 45-19 · displaying information 45-18 · enabling 45-7 · description command 6-20 · dev command 63-3 · device IDs · monitoring 45-23 · overview 45-1 · configuring · enabling (example) 45-15 · configuring 45-13 · overview 45-2 · DHCP-based autoconfiguration · Diagnostics · configuring · online 62-1 · client side 3-3 · Power-On-Self-Test · relay device 3-5 · server-side 3-4 · overview 62-10 · TFTP server 3-4 · example 3-7 · lease options · See DSCP values · overview 3-2 · DHCP option 82 · disabled state · overview 45-4 · disabling · DHCP Snooping · DHCP snooping · disconnect command 7-7
Page 1470 of the Cisco Systems 4500 user manual — IN-10
Page 1470 · click to enlarge
Page 1470

DSCP values, configuring port value 37-49

DTP

discovery, Ethernet OAM 57-34

VLAN trunks and 15-3

display dection and removal events 11-7

Auth Manager sumary for an interface 40-114

summary of all Auth manager sessions 40-114

ARP cache poisoning 46-2

summary of all Auth manager sessions on the switch authorized for a specified authentication method 40-115

ACLs for non-DHCP environments 46-11

in DHCP environments 46-5

displaying EtherChannel to a Virtual Switch System 22-16

displaying storm control 50-8

rate limit for incoming ARP packets 46-16

display PoE consumed by a module 11-8

denial-of-service attacks, preventing 46-16

interface trust state, security coverage 46-3

display PoE detection and removal events 11-7

DNS

and DHCP-based autoconfiguration 3-5

logging of dropped packets 46-4

displaying the configuration 4-17

port channels, their behavior 46-5

priority of static bindings 46-4

rate limiting of ARP packets 46-4

DNS 4-15

validation checks, performing 46-19

802.1Q tunneling 25-2

Layer 2 protocol tunneling 25-15

on specific CoS values 37-25

downloading MIBs 65-3, 65-4

on specific IP DSCP values 37-24

drop threshold for Layer 2 protocol packets 25-16

Dynamic Host Configuration Protocol snooping

dynamic port VLAN membership

limit on hosts 13-29

mapping to transmit queues 37-51

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-10

Show 39 more labels / short text on this page
Index · discovery, clusters · See automatic discovery · duplex command 6-19 · displaying · duplex mode · configuring interface 6-17 · MAB details 40-117 · dynamic ARP inspection · configuring · log buffer 46-14 · log buffer · configuring 46-14 · default configuration 4-16 · overview 46-1 · overview 4-15 · setting up 4-16 · domain names · purpose of 46-2 · Domain Name System · configuring 46-16 · See DNS · double-tagged packets · dynamic buffer limiting · globally 37-23 · See DHCP snooping · DSCP maps 37-53 · DSCP-to-CoS maps · configuring 37-55 · example 13-29 · DSCP values · reconfirming 13-26 · configuring maps 37-53 · definition 37-4 · troubleshooting 13-29 · IP precedence 37-3 · Dynamic Trunking Protocol · mapping markdown 37-18 · See DTP
Page 1471 of the Cisco Systems 4500 user manual — IN-11
Page 1471 · click to enlarge
Page 1471

E

emergency alarms on Sup Engine 6-E systems 10-3

enable command 3-9, 3-28

changing retransmission time 40-82

exchanging (figure) 40-4, 40-6, 40-13

enabling or disabling QOS on an interface 37-46

enabling SNMP 65-4, 65-5

setting retransmission number 40-83

Energy Efficient Ethernet 10-22

Enhanced Interior Gateway Routing Protocol

802.1X authentication and 40-3

OTP authentication, example (figure) 40-4, 40-13

Enhanced PoE support on E-series 11-15

Sup Engine 6-E 10-3

Sup Engines II-Plus to V-10GE 10-2

EGP

using CLI commands 10-1

EIGRP

monitoring and maintaining 30-19

channel-group group command 22-8, 22-10

configuring 22-6 to 22-15

configuring Layer 2 22-10

configuring Layer 3 22-6

displaying to a virtual switch system 22-16

interface port-channel command 22-7

eigrp stub command 30-18

EIGRP stub routing, configuring 30-13

physical interface configuration 22-7

assigning for call home 59-4

port-channel load-balance command 22-14

Call Home 1-19, 59-2

installing and configuring 4-36

IN-11

Show 46 more labels / short text on this page
Index · overview 4-36 · EAP frames · enable mode 2-5 · request/identity 40-4 · response/identity 40-4 · encapsulation types 15-3 · EAPOL frames · See EIGRP · start 40-4 · environmental conditions · edge ports · description 18-27 · environmental monitoring · overview 1-13 · EPM logging 40-117 · configuration examples 30-19 · EtherChannel · EIGRP (Enhanced IGRP) · configuration guidelines 22-5 · stub routing · benefits 30-17 · configuration tasks 30-18 · configuring 30-14 · overview 30-14 · restrictions 30-17 · lacp system-priority · verifying 30-18 · command example 22-13 · EIGRP (enhanced IGRP) · modes 22-3 · overview 1-14 · overview 22-2 · PAgP · Understanding 22-3 · ELIN location 27-3 · e-mail addresses · port-channel interfaces 22-2 · e-mail notifications · removing 22-15 · removing interfaces 22-15 · Embedded CiscoView · EtherChannel guard · displaying information 4-39 · disabling 21-7 · enabling 21-6
Page 1472 of the Cisco Systems 4500 user manual — IN-12
Page 1472 · click to enlarge
Page 1472

and routing protocols 6-6

F

See Ethernet management port

for network management 1-21, 6-6

configure with 802.1X 40-73

Ethernet management port, internal

and routing protocols 6-6

Ethernet Management Port, using 6-6

See Ethernet management port

and CFM interaction 57-51

configuring probe message interval 28-8

configuring with CFM 57-51

displaying link status 28-9

enabling on individual interface 28-7

link monitoring 57-34, 57-38

modes of operation 28-3

resetting disabled LAN interfaces 28-8

Fast UDLD, overview 28-1

FIB

remote failure indications 57-34

remote loopback 57-34, 57-37

Ethernet OAM protocol CFM notifications 57-51

Ethernet Remote Defect Indication (ETH-RDI) 57-28

Filter-ID ACL and Per-User ACL, configureport-based authentication

configure Per-User ACL and Filter-ID ACL 40-44

configuring, 802.1X-based 17-7

configuring, MAC address-based 17-8

in a VLAN 47-25

non-IP traffic 47-20, 47-22

configuring router to boot from 3-31

Extensible Authentication Protocol over LAN 40-2

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-12

Show 44 more labels / short text on this page
Index · overview 21-6 · Exterior Gateway Protocol · Ethernet management port · See EGP · and routing 6-6 · configuring 6-10 · default setting 6-6 · Fa0 port · described 1-21, 6-6 · Fallback Authentication · specifying 6-10 · supported features 6-9 · unsupported features 6-10 · FastDrop · overview 33-11 · fastethernet0 port · Ethernet OAM 57-34 · Fast UDLD · configuration guidelines 57-35 · default configuration 28-4 · default configuration 57-35 · enabling globally 28-5 · discovery 57-34 · enabling 57-36, 57-52 · enabling per-interface 28-6 · messages 57-34 · protocol · use case 28-2 · defined 57-33 · monitoring 57-49 · description 31-2 · See also MFIB · templates 57-45 · fiber-optics interfaces · disabling UDLD 28-7 · event triggers, user-defined · filtering · explicit host tracking · enabling 23-11 · flags 33-12 · extended range VLANs · Flash memory · See VLANs
Page 1473 of the Cisco Systems 4500 user manual — IN-13
Page 1473 · click to enlarge
Page 1473

loading system images from 3-30

high CPU due to ACLs, troubleshooting 47-12

CLI 2-4

history table, level and number of syslog messages 52-9

configuring preferred VLAN 19-9

configuring MST bridges 18-28

configuring VLAN load balancing 19-8

limit on dynamic port 13-29

flooded traffic, blocking 49-2

flowchart, traffic marking procedure 37-72

flow control, configuring 6-20

host presence CDP message 40-8

Hot Standby Routing Protocol

HSRP

//www.cisco.com/en/US/docs/ios/12_4/ip_sla/configu ration/guide/hsla_c.html 60-1, 60-4, 60-6, 60-7

//www.cisco.com/en/US/docs/ios/fundamentals/com mand reference/cf_book.html 52-1, 54-1, 61-1

G

hw-module module num power command 10-21

get-next-request operation 54-3, 54-4

ICMP

get-request operation 54-3, 54-4

Gigabit Ethernet SFP ports

running IP traceroute 7-9

deploy with 10-Gigabit Ethernet 6-12, 6-13

time exceeded messages 7-9

global configuration mode 2-5

configure with 802.1X 40-55

H

IDS

using with SPAN and RSPAN 51-2

hardware and software ACL support 47-6

IEEE 802.1ag 57-2

IEEE 802.1s

IEEE 802.1w

hierarchical policers, configuring 37-41

IN-13

Show 35 more labels / short text on this page
Index · security precautions 3-31 · history · Flex Links · configuration guidelines 19-6 · configuring 19-6, 19-7 · hop counts · host · monitoring 19-12 · host ports · kinds of 39-4 · For 11-13 · forward-delay time (STP) · See HSRP · configuring 18-19 · forwarding information base · description 1-12 · See FIB · http · frame command 63-5 · gateway · See default gateway · get-bulk-request operation 54-3 · enabling 7-12 · get-response operation 54-3 · ping 7-7 · ICMP Echo operation · Guest-VLANs · configuring 60-12 · IP SLAs 60-11 · i command 63-3 · hardware switching 31-5 · hello time (STP) · See MST · configuring 18-17
Page 1474 of the Cisco Systems 4500 user manual — IN-14
Page 1474 · click to enlarge
Page 1474

IEEE 802.3ad

default configuration 24-5, 24-6

IEEE 802.3az Energy Efficient Ethernet 10-22

IGMP

on a VLAN 23-6

enabling and disabling 24-6

IP multicast and 33-4

explicit host tracking 23-4

leave processing, enabling 24-8

MAC address entries 23-18

multicast router interfaces 23-17

on a VLAN interface 23-18

IGMPSnooping Querier, configuring 23-10

setting the maximum number 23-23

IGMP

ingress packets, SPAN enhancement 51-12

configuring on Cisco IP phones 38-5

insufficient inline power handling for Supervisor Engine II-TS 10-19

Intelligent Power Management 11-4

interacting with Baby Giants 6-26

interface command 3-9, 6-2

static connection to a multicast router 23-8

REP 20-10

configuring host statically 23-11

interface link and trunk status events

interface port-channel command 22-7

explicit host tracking 23-11

interface range command 6-4

suppressing multicast flooding 23-12

interface range macro command 6-10

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-14

Show 48 more labels / short text on this page
Index · See MST · configuration guidelines 23-5 · See LACP · enabling · globally 23-6 · configurable-leave timer 23-4 · description 33-3 · enabling 33-14 · monitoring 23-14, 24-11 · overview 23-1 · immediate-leave processing 23-3 · IGMP Snooping, displaying · group 23-16 · overview 23-1 · hot membership 23-15 · report suppression · how to 23-15 · disabling 24-10 · IGMP filtering · configuring 23-21 · default configuration 23-20 · Querier information 23-19 · described 23-20 · monitoring 23-24 · Immediate Leave, IGMP · IGMP groups · enabling 24-8 · immediate-leave processing · IGMP Immediate Leave · enabling 23-8 · configuration guidelines 23-9 · IGMP profile · See fast-leave processing · applying 23-22 · configuration mode 23-21 · inline power · configuring 23-21 · IGMP Snooping · configure · leave timer 23-9 · configuring · Learning Methods 23-7 · interface configuration · enabling · configuring 6-32 · Immediate-Leave processing · IGMP snooping
Page 1475 of the Cisco Systems 4500 user manual — IN-15
Page 1475 · click to enlarge
Page 1475

ip cef command 31-6, 62-2

adding descriptive name 6-20

ip flow-aggregation cache destination-prefix command 56-11

ip flow-aggregation cache prefix command 56-11

displaying information about 6-30

Layer 2 modes 15-4

ip flow-aggregation cache source-prefix command 56-12

ip flow-export command 56-9

ip icmp rate-limit unreachable command 7-12

ip igmp profile command 23-21

ip igmp snooping tcn flood command 23-13

ip igmp snooping tcn flood query count command 23-14

ip igmp snooping tcn query solicit command 23-14

See also Layer 2 interfaces

using the Ethernet Management Port 6-6

through DHCP-based autoconfiguration 3-2

Internet Control Message Protocol

ip load-sharing per-destination command 31-7

ip local policy route-map command 35-8

Internet Group Management Protocol

ip mask-reply command 7-13

IP MTU sizes,configuring 30-9

Internet Protocol version 6

clearing table entries 33-28

displaying PIM information 33-23

displaying the routing table information 33-23

inventory management TLV 27-3, 27-8

enabling dense-mode PIM 33-15

See Auto SmartPorts macros

features not supported 33-13

IP

configuring default gateway 3-11

configuring static routes 3-11

IGMP snooping and 23-5, 33-4

flow switching cache 56-9

See also Auto-RP; IGMP; PIM; RP; RPF

cluster candidate or member 12-12

cluster command switch 12-11

monitoring and maintaining 33-23

ip multicast-routing command 33-14

IN-15

Show 38 more labels / short text on this page
Index · interfaces · IP Enhanced IGRP · clearing counters 6-31 · interfaces, displaying 30-19 · configuring 6-2 · configuring ranges 6-4 · maintaining 6-30 · monitoring 6-30 · naming 6-20 · numbers 6-2 · overview 6-2 · restarting 6-31, 6-32 · IP information · assigned · See ICMP · See IGMP · IP multicast · See IPv6 · Inter-Switch Link encapsulation · See ISL encapsulation · configuring 33-13 · default configuration 33-13 · Intrusion Detection System · See IDS · IOS shell · enabling sparse-mode 33-15 · hardware forwarding 33-9 · overview 33-1 · displaying statistics 31-8 · routing protocols 33-2 · software forwarding 33-9 · IP addresses · 128-bit 48-2 · IP multicast routing · enabling 33-14 · discovering 4-35 · IPv6 48-2
Page 1476 of the Cisco Systems 4500 user manual — IN-16
Page 1476 · click to enlarge
Page 1476

IP multicast traffic, load splitting 33-22

UDP jitter operation 60-9

automatic classification and queueing 37-57

configuring voice ports 38-3

See Cisco IP Phones 38-1

configuring on private VLANs 45-22

trusted boundary for QoS 37-21

ip pim command 33-15

ip pim dense-mode command 33-15

ip pim sparse-dense-mode command 33-16

ip policy route-map command 35-7

IP Port Security for Static Hosts

on a Layer 2 access port 45-25

on a PVLAN host port 45-28

ip redirects command 7-13

ip route-cache flow command 56-7

configuring on a range of Ethernet VLANs 14-5

configuring on LAN and VLAN interfaces 14-4

configuring with connected host polling 14-5

IP Service Level Agreements

DHCP Option 82 14-2

IP service levels, analyzing 60-1

format of agent remote ID suboptions 14-2

with conected host polling 14-3

CFM endpoint discovery 57-21

with DHCP server and Relay agent 14-2

ip unreachables command 7-12

IPv4, IPv6, and MAC ACLs, configuring on a Layer 2 interface 47-38

ICMP echo operation 60-11

manually configuring CFM ping or jitter 57-19

measuring network performance 60-3

Enhanced Interior Gateway Routing Protocol (EIGRP) IPv6 48-6

OSPF 48-6

IPv6 control traffic, policing 44-17

IPX

redistribution of route information with EIGRP 1-14

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-16

Show 41 more labels / short text on this page
Index · threshold monitoring 60-6 · IP phones · IP Source Guard · configuring 45-20 · displaying 45-22, 45-23 · overview 45-23 · IP statistics · displaying 31-8 · IP traceroute · executing 7-9 · overview 7-8 · IP unicast · overview 45-24 · displaying statistics 31-8 · IP Unnumbered support · IP routing tables · deleting entries 33-28 · See IP SLAs · displaying settings 14-6 · IP SLAs · troubleshooting 14-7 · benefits 60-3 · Control Protocol 60-4 · default configuration 60-7 · definition 60-1 · IPv6 · addresses 48-2 · default configuration 48-7 · multioperations scheduling 60-6 · defined 1-15, 48-1 · operation 60-4 · responder · Router ID 48-6 · described 60-4 · enabling 60-8 · response time 60-5 · scheduling 60-6 · SNMP support 60-3 · is 25-19 · supported metrics 60-3
Page 1477 of the Cisco Systems 4500 user manual — IN-17
Page 1477 · click to enlarge
Page 1477

ISL

configuring MTU sizes for 6-25

ports and linecards that support 6-23

trunking with 802.1Q tunneling 25-4

isolated VLANs 39-2, 39-3, 39-4

ISSU

K

compatiblity verification using Cisco Feature Navigator 5-15

aborting a software upgrade 5-31

configuring the rollback timer as a safeguard 5-32

displaying a compatibility matrix 5-34, 5-37

LACP

loading the new software on the new standby 5-24

stopping the rollback timer 5-23

Layer 2 access ports 15-8

Layer 2 Control Packet QoS

switching to the standby 5-21

and CoPP configuration example 44-14

verify the ISSU state 5-17

verify the redundancy mode 5-16

verify the software installation 5-16

vload the new software on standby 5-18

guideline and restrictions 44-16

classification with CoS 37-2

versioning capability in software to support 5-13

IST

configuring access-mode mode on 47-39

configuring IPv4, IPv6, and MAC ACLs 47-38

and MST regions 18-22

displaying an ACL configuration 47-40

ITU-T Y.1731

See Y.1731

configuring as PVLAN host ports 39-18

configuring as PVLAN promiscuous ports 39-17

J

configuring as PVLAN trunk ports 39-19

and ethernet ports 6-24

IN-17

Show 33 more labels / short text on this page
Index · encapsulation 15-3 · understanding MTUs 6-23 · isolated port 39-4 · understanding support 6-23 · VLAN interfaces 6-25 · compatibility matrix 5-14 · keyboard shortcuts 2-3 · NSF overview 5-3 · perform the process · l2protocol-tunnel command 25-17 · labels, definition 37-4 · system ID 22-4 · default configuation 44-11 · disabling 44-13 · enabvling 44-12 · prerequisites 5-2 · process overview 5-6 · understanding 44-11 · restrictions 5-2 · Layer 2 frames · SNMP support 5-15 · Layer 2 interface · SSO overview 5-3 · applying ACLs 47-40 · description 18-22 · master 18-27 · Layer 2 interfaces · assigning VLANs 13-7 · configuring 15-5 · defaults 15-5 · jumbo frames · disabling configuration 15-9
Page 1478 of the Cisco Systems 4500 user manual — IN-18
Page 1478 · click to enlarge
Page 1478

show interfaces command 15-7

Leave timer, enabling 23-9

Layer 2 interface type

limitations on using a TwinGig Convertor 6-14

link and trunk status events

Layer 2 protocol tunneling

link integrity, verifying with REP 20-4

Link Layer Discovery Protocol

link monitoring, Ethernet OAM 57-34, 57-38

IP addresses and subnets 7-10

generic configuration procedure 22-21

MAC addresses and VLANs 7-10

link status, displaying UDLD 28-9

multiple devices on a port 7-10

RSTP comparisons (table) 18-24

unicast traffic 1-30, 7-9

LLDP

Layer 3 interface, applying IPv6 ACLs 47-24

Layer 3 interface counters,configuring 30-10

on an interface 27-7

Layer 3 interface counters,understanding 30-3

monitoring and maintaining 27-13

changing from Layer 2 mode 36-7

transmission timer and holdtime, setting 27-5

LLDP-MED

configuring VLANs as interfaces 30-7

monitoring and maintaining 27-13

SVI autostate exclude 30-3

LLDP Media Endpoint Discovery

Layer 4 port operations

configuring for CEF 31-7

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-18

Show 48 more labels / short text on this page
Index · modes 15-4 · restrictions 47-16 · resetting 39-24 · setting 39-24 · configuring interface 6-32 · default configuration 25-16 · guidelines 25-16 · See CDP · Layer 2 switching · overview 15-1 · link-state tracking · Layer 2 Traceroute · configuration guidelines 22-21 · and ARP 7-10 · default configuration 22-21 · and CDP 7-10 · described 22-18 · host-to-host paths 7-9 · displaying status 22-22 · multicast traffic 7-10 · listening state (STP) · usage guidelines 7-10 · configuring 27-4 · Layer 2 trunks · characteristics 27-5 · configuring 15-6 · default configuration 27-4 · overview 15-3 · disabling and enabling · globally 27-6 · Layer 3 interfaces · overview 27-1 · configuration guidelines 30-5 · configuring · overview 30-1 · procedures 27-4 · counters 30-3 · TLVs 27-8, 27-10 · logical 30-2 · physical 30-2 · overview 27-1 · supported TLVs 27-2 · Layer 3 packets · classification methods 37-3 · See LLDP-MED · load balancing · configuration guidelines 47-17
Page 1479 of the Cisco Systems 4500 user manual — IN-19
Page 1479 · click to enlarge
Page 1479

configuring for EtherChannel 22-14

displaying in DHCP snooping binding table 45-19

load splitting IP multicast traffic 33-22

location TLV 27-3, 27-8

Logical Layer 3 interfaces

sticky secure, adding 43-5

logical layer 3 VLAN interfaces 30-2

MAC address learning, disabling on a VLAN 4-30

MAC address-table move update

M

configure with 802.1X 40-58

MAC/PHY configuration status TLV 27-2

MAC details, displaying 40-117

MAC extended access lists 47-20

See Auto SmartPorts macros

and VLAN association 4-20

See Auto Smartports macros

building tables 4-20, 15-2

convert dynamic to sticky secure 43-5

management address TLV 27-2

disabling learning on a VLAN 4-30

SNMP 54-1

Management Port, Ethernet 6-6

IN-19

Show 54 more labels / short text on this page
Index · overview 22-5, 31-6 · dynamic · per-destination 31-7 · learning 4-20 · removing 4-22 · Location Service · in ACLs 47-20 · overview 27-1 · static · location service · adding 4-28 · configuring 27-11 · allowing 4-29 · understanding 27-3 · characteristics of 4-27 · dropping 4-29 · logging, EPM 40-117 · removing 4-28 · sticky 43-4 · configuring 30-6 · login authentication · confuguring 4-30 · with RADIUS 40-103 · deployment scenarios 4-31 · with TACACS+ 3-19 · feature compatibility 4-33 · login banners 4-17 · feature incompatibility 4-34 · login timer · feature inompatibility 4-34 · changing 7-6 · usage guidelines 4-31 · logoutwarning command 7-6 · MAC address table · loop guard · displaying 4-35 · and MST 18-23 · configuring 21-5 · configuration guidelines 19-10 · overview 21-3 · configuring 19-10 · monitoring 19-12 · MAC Authentication Bypass · MAC addresses · aging time 4-21 · macros · allocating 18-6 · See Smartports macros · main-cpu command 8-8 · default configuration 4-21 · management options · discovering 4-35 · displaying 7-3
Page 1480 of the Cisco Systems 4500 user manual — IN-20
Page 1480 · click to enlarge
Page 1480

manual preemption, REP, configuring 20-13

CEF 33-5

DSCP markdown values 37-18

MFIB, IP

DSCP values to transmit queues 37-51

marking action drivers 37-71

SNMP interaction with 54-4

marking network traffic 37-69

MLD Done messages and Immediate-leave 24-4

marking support, multi-attribute 37-73

mask destination command 56-11

mask source command 56-11, 56-12

Match CoS for non-IPV4 traffic

MLD Done messages and Immediate-leave 24-4

match ip address command 35-6

maximum aging time (STP)

MDA

Multicast client aging robustness 24-3

configuration guidelines 40-23 to ??

Multicast router discovery 24-3

Mode of capturing control packets, selecting 47-13

802.1Q tunneling 25-19

messages, Ethernet OAM 57-34

Ethernet CFM 57-32, 57-33

messages, to users through banners 4-17

Ethernet OAM protocol 57-49

Ethernet CFM, introduction 1-3

Ethernet OAM Protocol, introduction 1-3

IGMP

Flex Link and MAC Address-Table Move Update, introduction 1-4

Y.1731 (AIS and RDI), introduction 1-10

Layer 2 protocol tunneling 25-19

MFIB

MAC address-table move update 19-12

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-20

Show 44 more labels / short text on this page
Index · mapping · overview 33-12 · displaying 33-26 · mapping tables · MIBs · configuring DSCP 37-53 · compiling 65-4 · described 37-14 · downloading 65-3, 65-4 · marking · overview 54-1 · hardware capabilities 37-73 · related information 65-3 · MLD messages 24-2 · MLD queries 24-3 · MLD reports 24-4 · MLD Snooping · configuring 37-31 · MLD messages 24-2 · MLD queries 24-3 · configuring 18-18 · MLD reports 24-4 · described 40-22 · overview 24-1 · members · automatic discovery 12-7 · modules · member switch · checking status 7-1 · managing 12-13 · powering down 10-21 · member switch, cluster · monitoring · defined 12-2 · meminfo command 63-5 · ACL information 47-43 · Ethernet OAM 57-49 · Metro features · Flex Links 19-12 · snooping 24-11 · IGMP filters 23-24 · IGMP snooping 23-14 · metro tags 25-2
Page 1481 of the Cisco Systems 4500 user manual — IN-21
Page 1481 · click to enlarge
Page 1481

multicast router interfaces 24-11

REP 20-14

traffic flowing among switches 61-1

Multicast client aging robustness 24-3

multicast Ethernet loopback (ETH-LB) 57-29

MST

multicast Ethernet loopback, using 57-31

and multiple spanning trees 1-6, 18-22

Multicast router discovery 24-3

multicast router interfaces, displaying 23-17

multicast router interfaces, monitoring 24-11

multicast router ports, adding 24-7

interoperability with PVST+ 18-23

suppression on Sup 6-E 50-5

suppression on WS-X4014 50-5

suppression on WS-X4016 50-6

WS-X4515, WS-X4014, and WS-X4013+ Sup Engs 50-5

MSTP

WS-X4516 Sup Eng 50-6

multidomain authentication mode 40-7

multioperations scheduling, IP SLAs 60-6

MTUS

Multiple Domain Authentication 40-34

configuring 6-25, 6-26, 6-33

multiple forwarding paths 1-6, 18-22

IN-21

Show 52 more labels / short text on this page
Index · default 13-5 · multi-VRF CE 36-17 · Multi-authentication · described 40-22 · multiauthentication mode 40-8 · tunneling 25-19 · multicast · VLAN filters 47-32 · See IP multicast · VLAN maps 47-32 · M-record 18-23 · multicast groups · boundary ports 18-27 · static joins 24-7 · BPDUs 18-23 · multicast packets · configuration parameters 18-26 · blocking 49-2 · configuring 18-29 · displaying configurations 18-33 · edge ports 18-27 · enabling 18-29 · hop count 18-28 · multicast routers · instances · flood suppression 23-12 · configuring parameters 18-32 · multicast router table · description 18-23 · displaying 33-23 · number supported 18-26 · Multicast Storm Control · link type 18-28 · enabling 50-4 · master 18-27 · disabling 50-7 · message age 18-28 · regions 18-26 · restrictions 18-29 · to-SST interoperability 18-24 · EtherChannel guard · multidomain authentication · enabling 21-6 · See MDA · M-record 18-23 · M-tree 18-23 · M-tree 18-23 · Multiple AuthorizationAuthentication · configuring 40-34 · understanding 6-23 · MTU size
Page 1482 of the Cisco Systems 4500 user manual — IN-22
Page 1482 · click to enlarge
Page 1482

minimum mask, configuring 56-11

minimum mask, configuring 56-11

checking for required hardware 56-6

configuring switched IP flows 56-8

exporting cache entries 56-9

N

named aggregate policers, creating 37-26

named IPv6 ACLs, configuring

caveats on supervisor 56-6

checking for required hardware 56-6

configuring named IPv6 ACLs 47-23

named MAC extended ACLs

exporting cache entries 56-9

configuring named MAC extended 47-20, 47-22

overview of collection 56-2

switched/bridged IP flows 56-8

and 802.1Q tunneling 25-4

NEAT

enable communication with switch 12-13, 12-17

neighbor offset numbers, REP 20-5

overview of CLI commands 12-3

Network Edge Access Topology

minimum mask,default value 56-11

network fault tolerance 1-6, 18-22

minimum mask, configuring 56-11

RMON 61-1

IP

SNMP 54-1

flow switching cache 56-9

network performance, measuring with IP SLAs 60-3

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-22

Show 47 more labels / short text on this page
Index · multiple-hosts mode 40-7 · prefix aggregation · Multiple Spanning Tree · configuration (example) 56-14 · See MST · multiple VPN routing/forwarding · source-prefix aggregation · See multi-VRF CE · multi-VRF CE · switching · components 36-3 · configuration example 36-13 · configuration (example) 56-13 · default configuration 36-3 · defined 36-1 · enabling Collection 56-7 · displaying 36-17 · monitoring 36-17 · statistics 56-9 · network components 36-3 · NetFlow-lite · packet-forwarding process 36-3 · clear commands 55-9 · display commands 55-8 · NetFlow packet sampling · about 55-2 · NetFlow statistics · ACLs · configuring collection 56-6 · enabling Collection 56-7 · ACLs · native VLAN · Network Assistant · specifying 15-6 · and VTY 12-12 · configure · configuring 40-85 · overview 40-24 · default configuration 12-3 · NetFlow · aggregation · See NEAT · destination-prefix aggregation · network management · configuration (example) 56-16 · configuring 26-1
Page 1483 of the Cisco Systems 4500 user manual — IN-23
Page 1483 · click to enlarge
Page 1483

network policy TLV 27-2, 27-8

enabling broadcast messages 4-7

network traffic, marking 37-69

New Software Features in Release 7.7

TDR 7-3

displaying the configuration 4-11

Next Hop Resolution Protocol

NHRP

creating an access group 4-9

disabling NTP services per interface 4-10

source IP address, configuring 4-10

non-IP traffic filtering 47-20, 47-22

in redundant configurations (figure) 33-11

NVRAM

O

OAM

NSF

guidelines and restrictions 9-9

with CFM and Ethernet OAM 57-51

OAM protocol data units 57-33

OIR

NSF with SSO supervisor engine redundancy

on-demaind online diagnostics 62-2

NTP

data path, displaying test results 62-7

IN-23

Show 52 more labels / short text on this page
Index · defined 4-2 · Network Time Protocol · See NTP · peer 4-6 · server 4-6 · default configuration 4-4 · overview 4-2 · See NHRP · restricting access · support 1-14 · non-fiber-optics interfaces · disabling UDLD 28-7 · stratum 4-2 · synchronizing devices 4-6 · non-RPF traffic · time · description 33-10 · services 4-2 · synchronizing 4-2 · Nonstop Forwarding · See NSF · saving settings 3-10 · nonvolatile random-access memory · See NVRAM · normal-range VLANs · See VLANs · client 57-34 · defined 9-1 · features 57-34 · sublayer 57-34 · operation 9-5 · OAM manager · NSF-aware · configuring 57-52 · supervisor engines 9-3 · support 9-2 · OAM PDUs 57-35 · NSF-capable · supervisor engines 9-3 · support 9-2 · overview 6-30 · and CEF 9-5 · online diagnostic · overview 9-4 · troubleshooting 62-8 · SSO operation 9-4 · Online Diagnostics 62-1 · online diagnostics · associations · configuring on-demaind 62-2 · authenticating 4-4
Page 1484 of the Cisco Systems 4500 user manual — IN-24
Page 1484 · click to enlarge
Page 1484

displaying tests and test results 62-4

starting and stopping tests 62-3

online insertion and removal

route-map processing logic 35-3

Open Shortest Path First

route-map processing logic example 35-4

per-port and VLAN Access Control List 45-19

enabling DHCP Snooping 45-10

OSPF

Per-User ACL and Filter-ID ACL, configure 40-44

Per-VLAN Rapid Spanning Tree 18-6

PE to CE routing, configuring 36-12

physical layer 3 interfaces 30-2

P

Physical Layer 3 interfaces, configuring 30-12

PIM

configuring dense mode 33-15

configuring sparse mode 33-15

enabling sparse-dense mode 33-15, 33-16

PACL

PIM-DM 33-3

using with access-group mode 47-39

PIM on an interface, enabling 33-14

PACL configuration guidelines 47-36

PIM-SM 33-4

PACL with VLAN maps and router ACLs 47-41

PIM-SSM mapping, enabling 33-17

configuring enable password 3-14

ping command 7-8, 33-23

configuring enable secret password 3-14

configuring power consumption for single device 11-5

Enhanced PoE support on E-series 11-15

recovering lost enable password 3-25

setting line password 3-14

policing and monitoring 11-12

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-24

Show 41 more labels / short text on this page
Index · PBR (policy-based routing) · linecard 62-8 · configuration (example) 35-8 · scheduling 62-2 · enabling 35-6 · features 35-2 · overview 35-1 · See OIR · See OSPF · route maps 35-2 · operating system images · See system images · per-port per-VLAN QoS · Option 82 · enabling 37-43 · overview 37-16 · area concept 1-15 · description 1-14 · enabling 18-20 · for IPv6 48-6 · overview 18-6 · packets · modifying 37-16 · software processed · and QoS 37-16 · displaying information 33-23 · packet type filtering · displaying statistics 33-27 · overview 51-15 · SPAN enhancement 51-15 · overview 33-3 · PAgP · ping · understanding 22-3 · executing 7-8 · passwords · overview 7-7 · PoE 11-7, 11-8 · encrypting 3-22 · in clusters 12-8
Page 1485 of the Cisco Systems 4500 user manual — IN-25
Page 1485 · click to enlarge
Page 1485

power consumption for powered devices

changing the quiet period 40-81

Intelligent Power Management 11-4

client, defined 40-3, 42-2

powering down a module 10-21

configuration guidelines 40-28, 42-6

power management modes 11-3

configure ACL assignments and redirect URLs 40-38

configure switch-to-RADIUS server communication 40-32

configuring errdisable recovery 11-14

configuring on an interface 11-13

configure with Authentication Failed 40-68

configure with Critical Authentication 40-60

displaying on an interface 11-14

configure with Guest-VLANs 40-55

configure with MAC Authentication Bypass 40-58

in 802.1X authentication (figure) 40-3

configure with VLAN User Distribution 40-65

configure with Voice VLAN 40-70

Multiple Domain Authentication and Multiple Authorization 40-34

RADIUS server parameters on the switch 42-9

configuring Fallback Authentication 40-73

configuring manual re-authentication of a client 40-91

how to implement 37-68

configuring with Unidirectional Controlled Port 40-63

policing IPv6 control traffic 44-17

controlling authorization state 40-5

policy associations, QoS on Sup 6-E 37-85

default configuration 40-27, 42-6

policy-map command 37-29, 37-31

device roles 40-2, 42-2

policy map marking action, configuring 37-73

displaying statistics 40-113, 42-14

attaching to interfaces 37-35

802.1X authentication 42-9

enabling multiple hosts 40-80

and voice VLAN 47-5

enabling periodic re-authentication 40-78

how 802.1X fails on a port 40-25

initiation and message exchange 40-4

802.1X with voice VLAN 40-22

Authentication Failed VLAN assignment 40-17

multiple-hosts mode, described 40-7

IN-25

Show 33 more labels / short text on this page
Index · PoE policing · power modes 11-12 · point-to-point · police command 37-33 · configuring · policed-DSCP map 37-54 · policers · description 37-6 · RADIUS server 42-10 · types of 37-10 · policies · See QoS policies · configuring Guest-VLAN 40-32 · policing · See QoS policing · policing, PoE 11-12 · described 40-1 · policy maps · enabling 40-28 · configuring 37-31 · port ACLs · defined 47-3 · encapsulation 40-3 · host mode 40-6 · Port Aggregation Protocol · see PAgP · port-based authentication · method lists 40-28 · modes 40-6 · multidomain authentication 40-22 · authentication server · defined 42-2
Page 1486 of the Cisco Systems 4500 user manual — IN-26
Page 1486 · click to enlarge
Page 1486

ports not supported 40-5

pre-authentication open access 40-8

resetting to default values 40-92

setting retransmission number 40-83

port numbering with TwinGig Convertors 6-13

setting retransmission time 40-82

configuring MST instances 18-32

using with ACL assignments and redirect URLs 40-20

using with port security 40-19

with Critical Authentication 40-14

REP 20-6

with Guest VLANs 40-11

with MAC Authentication Bypass 40-12

with Unidirectional Controlled Port 40-15

with VLAN assignment 40-10

and QoS trusted boundary 37-21

with VLAN User Distribution 40-16

guidelines and restrictions 43-33

on access ports 43-7, 43-22

on private VLAN 43-14

over Layer 2 EtherChannel 43-33

topology 43-15, 43-18, 43-33

on trunk port 43-17

port-channel load-balance command 22-14

guidelines and restrictions 43-15, 43-18, 43-33

port mode changes 43-22

on voice ports 43-22

port description TLV 27-2

using with 802.1X 40-19

BPDU filter, configuring 21-10

with 802.1X Authentication 43-32

configuring or enabling 21-16

with DHCP and IP Source Guard 43-31

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-26

Show 45 more labels / short text on this page
Index · port security · overview 21-7 · multiple-hosts mode 40-7 · PortFast BPDU filtering · and MST 18-23 · enabling 21-10 · overview 21-9 · port priority · switch · as proxy 42-2 · configuring STP 18-13 · switch supplicant · ports · configuring 40-85 · blocking 49-1 · overview 40-24 · checking status 7-2 · topologies, supported 40-25 · dynamic VLAN membership · example 13-29 · reconfirming 13-26 · forwarding, resuming 49-3 · See also interfaces · port security · aging 43-5 · configuring 43-7 · port-based QoS features · displaying 43-28 · See QoS · port-channel interfaces · See also EtherChannel · creating 22-7 · host 43-14 · overview 22-2 · port-channel load-balance · promiscuous 43-16 · command 22-13 · command example 22-13 · port cost (STP) · configuring 18-15 · sticky learning 43-5 · PortFast · and MST 18-23 · violations 43-6
Page 1487 of the Cisco Systems 4500 user manual — IN-27
Page 1487 · click to enlarge
Page 1487

with other features 43-33

pre-authentication open access. See port-based authentication.

preempt delay time, REP 20-5

primary edge port, REP 20-4

primary VLANs 39-2, 39-4

associating with secondary VLANs 39-16

port VLAN ID TLV 27-2

configuring as a PVLAN 39-15

overriding CoS of incoming frames 38-5

power dc input command 10-19

priority queuing, QoS on Sup 6-E 37-80

power handling for Supervisor Engine II-TS 11-12

power inline command 11-3

configure port security 43-14, 43-15

power inline consumption command 11-5

enabling DHCP Snooping 45-12

Catalyst 4500 series 10-6

Catalyst 4500 Switch power supplies 10-13

across multiple switches 39-5

Catalyst 4948 series 10-22

configuring combined mode 10-12

configuring redundant mode 10-11

community VLANs 39-2, 39-3

end station access to 39-3

power management for Catalyst 4500 Switch

isolated VLANs 39-2, 39-3, 39-4

power management limitations in Catalyst 4500 Switch 10-9

power management TLV 27-2, 27-8

primary VLANs 39-2, 39-4

Power-On-Self-Test diagnostics 62-10, 62-21

Power-On-Self-Test for Supervisor Engine V-10GE 62-15

privileged EXEC mode 2-5

power redundancy-mode command 10-12

available power for Catalyst 4500 Switch 10-13

pre-authentication open access 40-8

IN-27

Show 41 more labels / short text on this page
Index · port states · description 18-5 · port trust state · See trust states · power · priority · inline 38-5 · private VLAN · power management · private VLANs · and SVIs 39-10 · benefits of 39-2 · community ports 39-3 · overview 10-1 · default configuration 39-12 · redundancy 10-6 · isolated port 39-4 · combined mode 10-8 · redundant mode 10-8 · ports · community 39-3 · power management mode · isolated 39-4 · selecting 10-8 · promiscuous 39-4 · power negotiation · promiscuous ports 39-4 · through LLDP 27-10 · secondary VLANs 39-2 · subdomains 39-2 · traffic in 39-9 · privileges · power supplies · changing default 3-23 · configuring levels 3-23 · fixed 10-7 · exiting 3-24 · variable 10-7, 10-22 · logging in 3-24 · promiscuous ports
Page 1488 of the Cisco Systems 4500 user manual — IN-28
Page 1488 · click to enlarge
Page 1488

and software processed packets 37-16

configuration and defaults display 37-60

provider edge devices 36-2

effects on NVRAM configuration 37-58

enabling for VoIP 37-59

PVACL 45-19

PVID (port VLAN ID)

classification 37-6 to 37-10

and 802.1X with voice VLAN ports 40-22

PVLAN promiscuous trunk port

configuring 39-11, 39-17, 39-21

802.1q support 39-14

across multiple switches 39-5

dynamic buffer limiting 37-22

configure port security 43-14, 43-16, 43-18

configure port security in a wireless setting 43-33

configure port security over Layer 2 EtherChannel 43-33

configuring VLAN-based on Layer 2 interfaces 37-46

creating named aggregate policers 37-26

creating policing rules 37-28

configuring a VLAN 39-15

default auto configuration 37-57

configuring promiscuous ports 39-17

configuring a Layer 2 interface 39-18

disabling on interfaces 37-35

enabling and disabling 37-46

enabling hierarchical policers 37-41

permitting routing, example 39-23

enabling on interfaces 37-35

enabling per-port per-VLAN 37-43

automatic classification and queueing 37-57

detection and trusted settings 37-21, 37-57

Q

overview of per-port per-VLAN 37-16

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-28

Show 42 more labels / short text on this page
Index · configuring PVLAN 39-17 · defined 39-4 · auto-QoS · setting mode 39-24 · protocol timers 18-4 · configuration guidelines 37-58 · described 37-56 · pruning, VTP · displaying 37-60 · See VTP pruning · pseudobridges · description 18-25 · basic model 37-6 · burst size 37-27 · configuration guidelines 37-19 · auto-QoS 37-58 · configuring · PVLANs · auto-QoS 37-56 · DSCP maps 37-53 · configuration guidelines 39-12 · traffic shaping 37-52 · trusted boundary 37-21 · configuring UBRL 37-37 · configuring 39-11 · default configuration 37-18 · host ports · definitions 37-4 · setting 39-24 · overview 39-1 · promiscuous mode · setting 39-24 · flowcharts 37-8, 37-12 · setting · IP phones · interface mode 39-24 · overview 37-2 · QoS · packet modification 37-16 · allocating bandwidth 37-51 · port-based 37-46
Page 1489 of the Cisco Systems 4500 user manual — IN-29
Page 1489 · click to enlarge
Page 1489

restrictions for applying a service policy 37-66

sharing(blandwidth), shapring, and priority queuing 37-75

See also COS; DSCP values; transmit queues

traffic marking procedure flowchart 37-72

QoS active queue management

tracking queue length 37-14

attaching to interfaces 37-11

overview of configuration 37-28

QoS on Sup 6-E

restrictions for applying 37-66

Active Queue management via DBL 37-84

active queue management via DBL 37-78, 37-84

configuring traffic shaping 37-52

configuring CoS mutation 37-88

mapping DHCP values to 37-51

configuring the policy map marking action 37-73

hardware capabilities for marking 37-73

how to implement policing 37-68

sharing link bandwidth 37-15

marking action drivers 37-71

QoS transmit queues, configuring 37-50

marking network traffic 37-69

MQC-based QoS configuration 37-63

multi-attribute marking support 37-73

platform hardware capabilities 37-66

queue-limiting, QoS on Sup 6-E 37-82

platform-supported classification criteria and QoS features 37-63, 37-65

R

RADIUS

prerequisites for applying a service policy 37-66

IN-29

Show 45 more labels / short text on this page
Index · priority 37-15 · queue-limiting 37-82 · traffic shaping 37-16 · transmit rate 37-52 · shaping 37-76 · trust states · sharing(bandwidth) 37-78 · trusted device 37-21 · VLAN-based 37-46 · software QoS 37-87 · QoS policers · burst size 37-27 · QoS labels · definition 37-4 · types of 37-10 · QoS policing · QoS mapping tables · definition 37-5 · CoS-to-DSCP 37-53 · described 37-6, 37-10 · DSCP-to-CoS 37-55 · policed-DSCP 37-54 · QoS policy · types 37-14 · QoS marking · QoS service policy · description 37-5 · prerequisites 37-66 · QoS transmit queues · allocating bandwidth 37-51 · classification 37-66 · configuring 37-63 · burst 37-16 · maximum rate 37-16 · overview 37-14 · Quality of service · See QoS · queueing 37-6, 37-14 · platform restrictions 37-68 · policing 37-67 · policy associations 37-85 · attributes · vendor-proprietary 40-111 · priority queuing 37-80
Page 1490 of the Cisco Systems 4500 user manual — IN-30
Page 1490 · click to enlarge
Page 1490

change of authorization 40-94

re-authentication of a client

redirect URLs, port-based authentication 40-20

reduced MAC address 18-2

communication, global 40-101, 40-109

communication, per-server 40-100, 40-101

multiple UDP ports 40-101

guidelines and restrictions 8-5

changes made through SNMP 8-12

defining AAA server groups 40-105

displaying the configuration 40-113

identifying the server 40-100

limiting the services to the user 40-107

method list, defined 40-100

server load balancing 40-113

suggested network environments 40-93

BGP 9-12

tracking services accessed by user 40-108

CEF 9-11

EIGRP 9-17

RADIUS, controlling switch access with 40-92

IS-IS 9-14

RADIUS Change of Authorization 40-94

OSPF 9-13

configure to-Switch communication 40-32

route processor redundancy 8-3

parameters on the switch 40-32

route processor redundancy 8-3

reload command 3-28, 3-29

Remote Authentication Dial-In User Service

remote failure indications 57-34

remote loopback, Ethernet OAM 57-34, 57-37

rendezvous point, configuring 33-17

rendezvous point, configuring single static 33-20

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-30

Show 45 more labels / short text on this page
Index · vendor-specific 40-109 · rcommand command 12-13 · configuring · configuring manual 40-91 · accounting 40-108 · enabling periodic 40-78 · authentication 40-103 · authorization 40-107 · redundancy · configuring 8-8 · default configuration 40-100 · NSF-aware support 9-2 · NSF-capable support 9-2 · overview 8-2 · redundancy command 8-8 · understanding synchronization 8-4 · operation of 40-94 · redundancy (NSF) 9-1 · configuring · understanding 40-93 · RADIUS server · routing protocols 9-5 · redundancy (RPR) · configuring settings 40-34 · synchronization 8-5 · RA Guard · redundancy (SSO) · configuring 47-45 · redundancy command 9-10 · deployment 47-44 · examples 47-45 · synchronization 8-5 · introduction 47-43 · usage guidelines 47-46 · range command 6-4 · See RADIUS · range macros · defining 6-10 · ranges of interfaces · Remote Network Monitoring · configuring 6-4 · See RMON · Rapid Spanning Tree · See RSTP
Page 1491 of the Cisco Systems 4500 user manual — IN-31
Page 1491 · click to enlarge
Page 1491

REP

administrative VLAN, configuring 20-9

RADIUS 40-92

TACACS+ 3-15

setting in 802.1X authentication 40-83

changing in 802.1X authentication 40-82

manual preemption, configuring 20-13

RFC

neighbor offset numbers 20-5

1305, NTP 4-2

1757, RMON 61-2

preempt delay time 20-5

1902 to 1907, SNMPv2 54-2

primary edge port 20-4

RFC 5176 Compliance 40-95

secondary edge port 20-4

RIP

SNMP traps, configuring 20-14

RMON

triggering VLAN load balancing 20-6

verifying link integrity 20-4

enabling alarms and events 61-3

VLAN load balancing 20-4

boot process and 3-26

CLI 2-7

commands 63-2 to 63-3

resetting an interface to default configuration 6-34

resetting a switch to defaults 3-32

Resilient Ethernet ProtocolLSee REP

selecting in MST 18-22

response time, measuring with IP SLAs 60-5

IN-31

Show 48 more labels / short text on this page
Index · restricting access · administrative VLAN 20-8 · NTP services 4-8 · and STP 20-6 · configuration guidelines 20-7 · retransmission number · configuring interfaces 20-10 · convergence 20-4 · retransmission time · default configuration 20-7 · monitoring 20-14 · 1157, SNMPv1 54-2 · open segment 20-2 · ports 20-6 · 1901, SNMPv2C 54-2 · 2273-2275, SNMPv3 54-2 · ring segment 20-2 · segments 20-1 · description 1-15 · characteristics 20-2 · for IPv6 48-5 · supported interfaces 20-1 · default configuration 61-3 · displaying status 61-6 · VLAN blocking 20-13 · groups supported 61-2 · overview 61-1 · replication · ROM monitor · description 33-9 · report suppression, IGMP · disabling 24-10 · reserved-range VLANs · debug commands 63-5 · See VLANs · entering 63-1 · reset command 63-3 · exiting 63-6 · overview 63-1 · root bridge · configuring 18-10 · responder, IP SLAs · described 60-4 · root guard · enabling 60-8 · and MST 18-23 · enabling 21-2
Page 1492 of the Cisco Systems 4500 user manual — IN-32
Page 1492 · click to enlarge
Page 1492

S

SAID

route-map (IP) command 35-6

See 802.10 SAID

PBR 35-2

scheduling, IP SLAs operations 60-6

secondary edge port, REP 20-4

secondary root switch 18-12

using with VLAN maps 47-32

router ACLs, using PACL with VLAN maps 47-41

associating with primary 39-16

VPN 36-3

RPF

See 802.10 SAID

selecting a power management mode 10-8

RSPAN

selecting X2/TwinGig Convertor Mode 6-14

sequence numbers in log messages 52-7

IDS 51-2

service policy, configure class-level queue-limit 37-82

service-policy input command 29-2, 37-35

and customer VLANs 25-2

limiting source traffic to specific VLANs 51-23

set default interface command 35-7

set interface command 35-7

set ip default next-hop command 35-7

removing source (monitored) ports 51-21

specifying monitored ports 51-17

set ip next-hop command 35-6

severity levels, defining in system messages 52-8

shaping, QoS on Sup 6-E 37-76

RSTP

sharing(bandwidth), QoS on Sup 6-E 37-78

See Auto SmartPorts macros

See Auto Smartports macros

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-32

Show 43 more labels / short text on this page
Index · overview 21-2 · routed packets · ACLs 47-34 · scheduling 37-14 · route maps · defined 37-5 · defining 35-6 · overview 37-6 · router ACLs · description 47-3 · secondary VLANs 39-2 · route targets · permitting routing 39-23 · security · Routing Information Protocol · See RIP · configuring 44-1 · Security Association Identifier · <Emphasis>See Unicast RPF · configuration guidelines 51-16 · destination ports 51-5 · server IDs · description 59-23 · monitored ports 51-4 · monitoring ports 51-5 · received traffic 51-3 · service-policy command 37-29 · sessions · service-provider networks · creating 51-17 · defined 51-3 · monitoring VLANs 51-22 · source ports 51-4 · set-request operation 54-4 · transmitted traffic 51-4 · VLAN-based 51-5 · compatibility 18-23 · Shell functions · description 18-22 · port roles 18-24 · port states 18-24 · Shell triggers
Page 1493 of the Cisco Systems 4500 user manual — IN-33
Page 1493 · click to enlarge
Page 1493

See Auto SmartPorts macros

show module command 7-1, 18-6

See Auto Smartports macros

show PoE consumed 11-8

show adjacency command 31-9

show power inline command 11-6

show boot command 3-32

show power supplies command 10-12

show catalyst4000 chassis-mac-address command 18-3

show protocols command 6-31

show cdp command 26-2, 26-3

show cdp entry command 26-4

adding description for an interface 6-20

show cdp interface command 26-3

checking your settings 3-9

show cdp neighbors command 26-4

displaying ACLs 47-26, 47-29, 47-38, 47-39

show cdp traffic command 26-4

show startup-config command 3-10

show ciscoview package command 4-39

show users command 7-6

show ciscoview version command 4-39

show version command 3-29

show cluster members command 12-13

show configuration command 6-20

shutdown threshold for Layer 2 protocol packets 25-16

show debugging command 26-4

show environment command 10-2

show history command 2-4

Simple Network Management Protocol

show interfaces command 6-25, 6-26, 6-31, 6-33

show interfaces status command 7-2

show ip cache flow aggregation destination-prefix command 56-12

show ip cache flow aggregation prefix command 56-12

single static RP, configuring 33-20

show ip cache flow aggregation source-prefix command 56-12

slot numbers, description 6-2

smart call home 59-1

show ip cache flow command 56-9

show ip cef command 31-8

destination profile (note) 59-5

show ip eigrp interfaces command 30-19

show ip eigrp neighbors command 30-19

service contract requirements 59-3

show ip eigrp topology command 30-19

Transport Gateway (TG) aggregation point 59-2

show ip eigrp traffic command 30-19

show ip interface command 33-23

smart call home registration 59-3

show ip local policy command 35-8

show ip mroute command 33-23

applying global parameter values 16-9, 16-15, 16-16

show ip pim interface command 33-23

show l2protocol command 25-18

applying parameter values 16-9

show lldp traffic command 27-14

configuration guidelines 16-6, 16-15

show mac-address-table address command 7-3

show mac-address-table interface command 7-3

show mls entry command 31-8

default configuration 16-4, 16-14

IN-33

Show 16 more labels / short text on this page
Index · show running-config command · shutdown, command 6-32 · shutting down · interfaces 6-31 · See SNMP · single-host mode 40-7 · single spanning tree · See SST · description 59-2 · registration requirements 59-3 · SMARTnet · Smartports macros · applying macros 16-9 · configuring 16-2 · creating 16-8
Page 1494 of the Cisco Systems 4500 user manual — IN-34
Page 1494 · click to enlarge
Page 1494

enabling MAC threshold notification 4-26

SNMP

accessing MIB variables with 54-4

REP 20-14

and IP SLAs 60-3

software configuration register 3-26

software QoS, on Sup 6-E 37-87

key data structures used 33-8

call home event format 59-22

and trap keyword 54-11

SPAN

differences from traps 54-5

configuring 51-7 to 51-10

limiting access by TFTP servers 54-15

limiting system log messages to NMS 52-9

IDS 51-2

monitored port, defined 51-4

monitoring port, defined 51-5

system contact and location 54-14

trap manager, configuring 54-13

differences from informs 54-5

concepts and terminology 51-3

enabling MAC address notification 4-22

enabling MAC move notification 4-24

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-34

Show 55 more labels / short text on this page
Index · defined 1-7, 16-1 · displaying 16-14 · overview 54-1, 54-4 · tracing 16-7, 16-15 · types of 54-11 · users 54-6, 54-9 · versions supported 54-2 · agent · SNMP commands 65-4 · described 54-4 · SNMP traps · disabling 54-7 · SNMPv1 54-2 · authentication level 54-10 · SNMPv2C 54-2 · community strings · SNMPv3 54-2 · configuring 54-7 · software · overview 54-4 · upgrading 8-13 · configuration examples 54-15 · configuration guidelines 54-6 · default configuration 54-5 · software switching · enabling 65-4, 65-5 · description 31-5 · engine ID 54-6 · interfaces 31-6 · groups 54-6, 54-9 · host 54-6 · source IDs · informs · described 54-5 · and ACLs 51-5 · configuration guidelines 51-7 · enabling 54-14 · destination ports 51-5 · manager functions 54-3 · notifications 54-5 · overview 54-1, 54-4 · received traffic 51-3 · status, displaying 54-16 · sessions · defined 51-3 · source ports 51-4 · traps · transmitted traffic 51-4 · described 54-3, 54-5 · VLAN-based 51-5 · SPAN and RSPAN · enabling 54-11 · default configuration 51-6 · displaying status 51-25
Page 1495 of the Cisco Systems 4500 user manual — IN-35
Page 1495 · click to enlarge
Page 1495

access list filtering 51-13

CPU port sniffing 51-10

802.1X 42-14

displaying 802.1X 40-113

packet type filtering 51-15

LLDP 27-13

spanning-tree backbonefast command 21-16

LLDP-MED 27-13

spanning-tree cost command 18-16

spanning-tree guard root command 21-2

SNMP input and output 54-16

spanning-tree portfast bpdu-guard command 21-9

spanning-tree portfast command 21-7

spanning-tree port-priority command 18-13

spanning-tree uplinkfast command 21-13

spanning-tree vlan command 18-8

spanning-tree vlan cost command 18-16

spanning-tree vlan forward-time command 18-19

spanning-tree vlan hello-time command 18-18

spanning-tree vlan max-age command 18-18

spanning-tree vlan port-priority command 18-13

spanning-tree vlan priority command 18-17

spanning-tree vlan root primary command 18-10

spanning-tree vlan root secondary command 18-12

STP

SSO

configuring 18-7 to 18-20

SST

enabling extended system ID 18-9

static ACL, removing the requirement 47-36

enabling Per-VLAN Rapid Spanning Tree 18-20

IN-35

Show 48 more labels / short text on this page
Index · overview 51-1 · See addresses · session limits 51-6 · static routes · SPAN enhancements · configuring 3-11 · verifying 3-12 · configuration example 51-16 · statistics · encapsulation configuration 51-12 · ingress packets 51-12 · displaying PIM 33-27 · NetFlow accounting 56-9 · sticky learning · configuration file 43-6 · defined 43-5 · disabling 43-6 · spanning-tree vlan · enabling 43-5 · command 18-9 · saving addresses 43-6 · command example 18-9 · sticky MAC addresses · configuring 43-7 · defined 43-4 · Storm Control · displaying 50-8 · enabling Broadcast 50-3 · enabling Multicast 50-4 · hardware-based, implementing 50-2 · overview 50-1 · software-based, implementing 50-3 · speed · configuring interface 6-17 · and REP 20-6 · speed command 6-18 · bridge ID 18-2 · configuring 9-10 · creating topology 18-5 · SSO operation 9-4 · defaults 18-7 · disabling 18-20 · description 18-22 · enabling 18-8 · interoperability 18-24 · static addresses · EtherChannel guard
Page 1496 of the Cisco Systems 4500 user manual — IN-36
Page 1496 · click to enlarge
Page 1496

S-VLAN 1-2, 25-7

Layer 2 protocol tunneling 25-13

switch access with RADIUS, controlling 40-92

maximum aging time 18-18

per-VLAN rapid spanning tree 18-6

checking for required hardware 56-6

configuring switched IP flows 56-8

exporting cache entries 56-9

show interfaces 6-25, 6-26, 6-33

switchport access vlan command 15-6, 15-8

switchport block multicast command 49-2

subdomains, private VLAN 39-2

switchport block unicast command 49-2

switchport mode access command 15-8

switchport mode dot1q-tunnel command 25-6

accessing the redundant 8-15

switchport mode dynamic command 15-6

configuring 3-8 to 3-13

switchport mode trunk command 15-6

copying files to standby 8-15

switchport trunk allowed vlan command 15-6

switchport trunk encapsulation command 15-6

switchport trunk encapsulation dot1q command 15-3

switchport trunk encapsulation isl command 15-3

switchport trunk encapsulation negotiate command 15-3

switchport trunk native vlan command 15-6

switchport trunk pruning vlan command 15-7

insufficient inline power handling 10-19, 11-12

See also Auto Smartports macros

settings at startup 3-27

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-36

Show 49 more labels / short text on this page
Index · disabling 21-7 · configuring 30-7 · forward-delay time 18-19 · hello time 18-17 · switch 48-2 · switched packets · overview 18-1, 18-3 · and ACLs 47-33 · Switched Port Analyzer · port cost 18-15 · See SPAN · port priority 18-13 · switching, NetFlow · root bridge 18-10 · stratum, NTP 4-2 · configuration (example) 56-13 · stub routing (EIGRP) · benefits 30-17 · enabling Collection 56-7 · configuration tasks 30-18 · configuring 30-14 · switchport · overview 30-13, 30-14 · restrictions 30-17 · verifying 30-18 · summer time 4-13 · supervisor engine · switch ports · default configuration 3-1 · See access ports · default gateways 3-11 · environmental monitoring 10-1 · redundancy 9-1 · ROM monitor 3-26 · startup configuration 3-25 · static routes 3-11 · synchronizing configurations 8-11 · Supervisor Engine II-TS · switch-to-RADIUS server communication · configuring 40-32 · Smartports macros · sysret command 63-5 · system · SVI Autostate Exclude · reviewing configuration 3-10 · understanding 30-3 · SVI Autostate exclude · system alarms
Page 1497 of the Cisco Systems 4500 user manual — IN-37
Page 1497 · click to enlarge
Page 1497

on Sup 2+ to V-10GE 10-5

802.1Q tunneling 25-5

on Sup 6-E 10-5

system and network statistics, displaying 33-23

system capabilities TLV 27-2

system name TLV 27-2

system prompt, default setting 4-14

daylight saving time 4-13

T

TACACS+ 44-1

displaying the time and date 4-12

system description TLV 27-2

loading from Flash memory 3-30

modifying boot field 3-27

displaying the configuration 3-22

defining error message severity levels 52-8

identifying the server 3-18

limiting the services to the user 3-21

displaying the configuration 52-12

facility keywords, described 52-12

tracking services accessed by user 3-21

level keywords, described 52-9

802.1Q 25-3

Layer 2 protocol 25-13

sequence numbers, enabling and disabling 52-7

setting the display destination device 52-5

TCAM programming algorithm, overview 47-8

synchronizing log messages 52-6

TCAM programming and ACLs 47-11, 47-13

timestamps, enabling and disabling 52-7

for Sup II-Plust thru V-10GE 47-7

TCAM programming and ACLs for Sup 6-E 47-16

configuring the daemon 52-10

TCAM region, changing the algorithm 47-9

configuring the logging facility 52-11

TCAM region, resizing 47-11

TDR

checking cable connectivity 7-3

IN-37

Show 39 more labels / short text on this page
Index · maximums 25-5 · overview 10-4 · system name · manual configuration 4-15 · See also DNS · system clock · configuring · manually 4-11 · summer time 4-13 · time zones 4-12 · accounting, defined 3-16 · overview 4-2 · authentication, defined 3-16 · See also NTP · authorization, defined 3-16 · configuring · system images · accounting 3-21 · authentication key 3-18 · authorization 3-21 · specifying 3-30 · login authentication 3-19 · system message logging · default configuration 3-18 · default configuration 52-3 · disabling 52-4 · operation of 3-17 · enabling 52-4 · overview 3-15 · tagged packets · limiting messages 52-9 · message format 52-2 · overview 52-1 · TCAM programming algorithm · changing 47-9 · UNIX syslog servers · facilities supported 52-12 · system MTU
Page 1498 of the Cisco Systems 4500 user manual — IN-38
Page 1498 · click to enlarge
Page 1498

enabling and disabling test 7-3

See Layer 2 Traceroute

disconnecting user sessions 7-7

traceroute mac command 7-11

traceroute mac ip command 7-11

monitoring user sessions 7-6

templates, Ethernet OAM 57-45

Terminal Access Controller Access Control System Plus

using ACLs (figure) 47-4

using VLAN maps (figure) 47-6

TFTP

traffic marking procedure flowchart 37-72

configuration files in base directory 3-5

configuring for autoconfiguration 3-4

translational bridge numbers (defaults) 13-5

limiting access by servers 54-15

See QoS transmit queues

See also console download

threshold monitoring, IP SLAs 60-6

configuring MAC address notification 4-22

See NTP and system clock

configuring MAC move notification 4-24

configuring MAC threshold notification 4-26

time exceeded messages 7-9

enabling 4-22, 4-24, 4-26, 54-11

timestamps in log messages 52-7

TLV

host presence detection 40-8

with system message logging 52-1

troubleshooting high CPU due to ACLs 47-12

LLDP-MED 27-2

media not supported (note) 13-5, 13-10

Topology change notification processing

configure port security 43-17

configuring PVLAN 39-19 to 39-21

Topology change notification processing 24-4

TOS

802.1Q restrictions 15-5

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-38

Show 41 more labels / short text on this page
Index · trace command 7-9 · guidelines 7-3 · traceroute · Telnet · See IP traceroute · accessing CLI 2-2 · executing 7-5 · traffic · telnet command 7-6 · blocking flooded 49-2 · traffic control · See TACACS+ · traffic shaping 37-16 · transmit queues · TFTP download · transmit rate 37-52 · traps · time · Time Domain Reflectometer · See TDR · configuring managers 54-11 · defined 54-3 · timer · See login timer · notification types 54-11 · overview 54-1, 54-4 · time zones 4-12 · troubleshooting · with CiscoWorks 54-4 · TLVs · with traceroute 7-8 · defined 1-5, 27-2 · trunk failover · Token Ring · See link-state tracking · trunk ports · MLD Snooping · trunks · description 37-4 · configuring 15-6
Page 1499 of the Cisco Systems 4500 user manual — IN-39
Page 1499 · click to enlarge
Page 1499

configuring access VLANs 15-6

modes of operation 28-3

configuring allowed VLANs 15-6

resetting disabled LAN interfaces 28-8

default interface configuration 15-6

different VTP domains 15-3

enabling to non-DTP device 15-4

UDP jitter, configuring 60-9

UDP jitter operation, IP SLAs 60-9

specifying native VLAN 15-6

unauthorized ports with 802.1X 40-5

trusted boundary for QoS 37-21

Trust State of interfaces, configuring

unicast MAC address filtering

and adding static addresses 4-29

and broadcast MAC addresses 4-28

and CPU packets 4-28

and multicast addresses 4-28

802.1Q, configuring 25-6

and router MAC addresses 4-28

incompatibilities with other features 25-5

unicast MAC address filtering, configuring

limitations on using 6-14

configuring unicast MAC address filtering 47-20

selecting X2/TwinGig Convertor mode 6-14

Unicast RPF (Unicast Reverse Path Forwarding)

CEF

U

UDLD

(examples) ?? to 32-12

configuring probe message interval per-interface 28-8

BOOTP 32-8

DHCP 32-8

enterprise network (figure) 32-6

disabling on fiber-optic interfaces 28-7

disabling on non-fiber-optic interfaces 28-7

routing table requirements 32-7

displaying link status 28-9

IN-39

Show 37 more labels / short text on this page
Index · use case 28-2 · UDLD, overview 28-1 · encapsulation 15-3 · understanding 15-3 · unicast · See IP unicast · trustpoint 59-3 · unicast flood blocking · configuring 49-1 · trust states · configuring 37-48 · tunneling · defined 25-1 · tunnel ports · described 25-2 · configuration guidelines 4-28 · described 4-28 · TwinGig Convertors · ACLs · port numbering 6-13 · type length value · applying 32-5 · See TLV · BGP attributes · type of service · See TOS · requirement 32-2 · tables 32-7 · configuring 32-9 · default configuration 28-4 · prerequisites 32-9 · tasks 32-9 · enabling globally 28-5 · verifying 32-10 · enabling per-interface 28-6 · deploying 32-5
Page 1500 of the Cisco Systems 4500 user manual — IN-40
Page 1500 · click to enlarge
Page 1500

message logging configuration 52-11

enterprise network (figure) 32-6

FIB 32-2

packets, dropping (figure) 32-4

User Based Rate Limiting

routing asymmetry (figure) 32-8

configuring, 802.1X-based 17-7

routing table requirements 32-7

configuring, MAC address-based 17-8

User-defined triggers and built-in macros, configuring mapping 17-9

user EXEC mode 2-5

source addresses, validating 32-3

Layer 4 port operations 47-16

virtual configuration register 63-3

Virtual Switch System(VSS), displaying EtherChannel to 22-16

Unidirectional Controlled Port, configuring 802.1X 40-63

VLAN-based QoS on Layer 2 interfaces, configuring 37-46

example of setting 29-2

VLAN blocking, REP 20-13

UniDirectional Link Detection Protocol

vlan dot1q tag native command 25-4

VLAN ID

VLAN ID, discovering 4-35

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-40

Show 51 more labels / short text on this page
Index · description 32-2 · disabling 32-11 · UplinkFast · and MST 18-23 · enabling 21-16 · implementing 32-4 · MST and 18-23 · overview 21-11 · prerequisites 32-9 · restrictions · configuring 37-38 · basic 32-8 · overview 37-37 · routing asymmetry 32-7 · user-defined event triggers · security policy · applying 32-5 · attacks, mitigating 32-5 · user sessions · deploying 32-5 · disconnecting 7-7 · tunneling 32-5 · monitoring 7-6 · (figure) 32-3, 32-4 · failure 32-3 · traffic filtering 32-5 · VACLs · tunneling 32-5 · validation · failure 32-3, 32-4 · virtual LANs · packets, dropping 32-3 · See VLANs · source addresses 32-3 · Virtual Private Network · verifying 32-10 · See VPN · unicast traffic · blocking 49-2 · VLAN ACLs · unidirectional ethernet · See VLAN maps · enabling 29-2 · overview 29-1 · vlan command 13-6 · See UDLD · UNIX syslog servers · daemon configuration 52-10 · service provider 25-9 · facilities supported 52-12
Page 1501 of the Cisco Systems 4500 user manual — IN-41
Page 1501 · click to enlarge
Page 1501

allowed on trunk 15-6

REP 20-4

configuring as Layer 3 interfaces 30-7

VLAN load balancing, triggering 20-6

customer numbering in service-provider networks 25-3

VLAN load balancing on flex links 19-2

VLAN Management Policy Server

limiting source traffic with RSPAN 51-23

monitoring with RSPAN 51-22

configuring on a trunk port 25-11

selective Q-in-Q, configuring 25-12

traditional Q-in-Q, configuring 25-12

VLAN User Distribution, configuring 802.1X 40-65

VMPS

applying to a VLAN 47-29

configuration file example 13-32

configuring dynamic access ports on client 13-25

configuring retry interval 13-27

database configuration file 13-32

creating and deleting entries 47-26

denying access example 47-31

reconfirming membership interval 13-26

order of entries 47-25

router ACLs and 47-32

administering and monitoring 13-28

using in your network 47-29

configure reconfirmation interval 13-26

VLAN maps, PACL and Router ACLs 47-41

IN-41

Show 50 more labels / short text on this page
Index · VLAN ID translation · See VLAN mapping · configuration guidelines 13-3 · VLAN load balancing · configuring 13-5 · configuration guidelines 19-6 · default configuration 13-4 · description 1-10 · extended range 13-3 · See VMPS · IDs (default) 13-5 · VLAN mapping · 1-to-1 25-8 · interface assignment 13-7 · 1-to-1, configuring 25-11 · configuration guidelines 25-10 · name (default) 13-5 · configuring 25-11 · normal range 13-3 · overview 13-1 · default 25-9 · reserved range 13-3 · described 1-2, 25-7 · See also PVLANs · selective QinQ 25-8 · VLAN Trunking Protocol · See VTP · traditional QinQ 25-8 · VLAN trunks · overview 15-3 · types of 25-8 · VLAN maps · configuration example 47-30 · configuration guidelines 47-25 · configuring 47-24 · dynamic port membership · defined 47-3 · example 13-29 · denying packets 47-26 · reconfirming 13-26 · reconfirming assignments 13-26 · displaying 47-32 · server overview 13-21 · permitting packets 47-26 · VMPS client · using (figure) 47-5 · configure switch · VLANs · dynamic ports 13-25
Page 1502 of the Cisco Systems 4500 user manual — IN-42
Page 1502 · click to enlarge
Page 1502

entering IP VMPS address 13-24

ARP 36-6, 36-9

reconfirm VLAM membership 13-26

dynamic VLAN membership overview 13-23

SNMP 36-7

troubleshooting dynamic port VLAN membership 13-29

illegal VMPS client requests 13-23

VTP

Layer 2 protocol tunneling 25-14

voice traffic 11-2, 38-5

See also VTP version 2

IP phone data traffic, described 38-2

IP phone voice traffic, described 38-2

transparent mode, configuring 13-16

Voice VLAN, configure 802.1X 40-70

using 802.1X 40-22

VPN

configuring routing in 36-12

in service provider networks 36-1

routing and forwarding table

VTP versions 2 and 3

VRF

VTY and Network Assistant 12-12

VVID (voice VLAN ID)

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-42

Show 54 more labels / short text on this page
Index · reconfirmation interval 13-27 · configuring 36-6 · ftp 36-8 · default configuration 13-24 · ping 36-6 · syslog 36-8 · tftp 36-8 · VMPS server · traceroute 36-8 · fall-back VLAN 13-23 · uRPF 36-7 · VRF-lite · overview 13-21 · description 1-18 · security modes · multiple 13-22 · client, configuring 13-16 · open 13-22 · configuration guidelines 13-12 · secure 13-22 · default configuration 13-13 · voice interfaces · disabling 13-16 · configuring 38-1 · Voice over IP · monitoring 13-19 · configuring 38-1 · overview 13-8 · voice ports · pruning · configuring VVID 38-3 · configuring 13-15 · voice VLAN · server, configuring 13-16 · statistics 13-19 · version 2 · voice VLAN ports · enabling 13-15 · VTP advertisements · description 13-9 · VTP domains · forwarding 36-3 · description 13-8 · VTP modes 13-9 · routes 36-2 · VTP pruning · overview 13-11 · See VRF · overview 13-9 · defining 36-3 · See also VTP · tables 36-1 · VRF-aware services
Page 1503 of the Cisco Systems 4500 user manual — IN-43
Page 1503 · click to enlarge
Page 1503

and 802.1X authentication 40-22

W

WCCP

configuring on a router 64-2, 64-11

authentication proxy web pages 42-4

description 1-30, 40-14, 42-1

web-based authentication, interactions with other features 42-4

Web Cache Communication Protocol

See web cache services

Y

Y.1731

ETH-AIS

Ethernet Alarm Signal function (ETH-AIS)

57-28 ETH-RDI 57-28

multicast Ethernet loopback 57-31

IN-43

Show 19 more labels / short text on this page
Index · configuring 38-3 · configuration examples 64-10 · features 64-4 · restrictions 64-5 · service groups 64-6 · web-based authentication · See WCCP 64-1 · web caches · See cache engines · web cache services · description 64-4 · web caching · See also WCCP · web scaling 64-1 · default configuration 57-29 · described 57-27 · multicast ETH-LB 57-29 · terminology 57-27
Page 1504 of the Cisco Systems 4500 user manual — IN-44
Page 1504 · click to enlarge
Page 1504

Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide

IN-44

Index

Ask about the Cisco Systems 4500

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Cisco Systems 4500

Be the first to ask — other owners or our team will answer.

Original document

Cisco Systems 4500 manual PDF

1504 pages·15.3 MB·Switch·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…