Corporate 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) Fax: 408 526-4100
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 UCBs 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. CCIP, the Cisco Arrow logo, the Cisco Powered Network mark, the Cisco Systems Verified logo, Cisco Unity, Follow Me Browsing, FormShare, iQ Breakthrough, iQ Expertise, iQ FastTrack, the iQ Logo, iQ Net Readiness Scorecard, Networking Academy, ScriptShare, SMARTnet, TransPath, and Voice LAN are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, Discover All Thats Possible, The Fastest Way to Increase Your Internet Quotient, and iQuick Study are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, the Cisco IOS logo, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Empowering the Internet Generation, Enterprise/Solver, EtherChannel, EtherSwitch, Fast Step, GigaStack, Internet Quotient, IOS, IP/TV, LightStream, MGX, MICA, the Networkers logo, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, RateMUX, Registrar, SlideCast, StrataView Plus, Stratm, SwitchProbe, TeleRouter, and VCO are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain other countries. All other trademarks mentioned in this document or Web site 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. (0208R) Catalyst 6000 Family Software Configuration Guide Copyright 1999-2003, Cisco Systems, Inc. All rights reserved.
C O N T E N T S
Preface
Audience
Organization Conventions
Related Documentation
xxx
Obtaining Documentation xxxi World Wide Web xxxi Documentation CD-ROM xxxi Ordering Documentation xxxi Documentation Feedback xxxi Obtaining Technical Assistance xxxii Cisco.com xxxii Technical Assistance Center xxxii
1
CHAPTER
Product Overview
1-1
CHAPTER
Command-Line Interfaces
2-1
Catalyst Command-Line Interface 2-1 ROM-Monitor Command-Line Interface Switch Command-Line Interface 2-2 MSFC Command-Line Interface 2-8 Cisco IOS Command Modes 2-8 Cisco IOS Command-Line Interface
3
2-1
2-10
CHAPTER
Configuring the Switch IP Address and Default Gateway Understanding the Switch Management Interfaces Understanding Automatic IP Configuration 3-2 Automatic IP Configuration Overview 3-2 Understanding How DHCP Works 3-2 Understanding How BOOTP and RARP Work Booting the MSFC for the First Time
3-4 3-5 3-1
3-1
3-3 3-4
Preparing to Configure the IP Address and Default Gateway Default IP Address and Default Gateway Configuration
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
iii
Contents
3-5
Configuring the SLIP (sl0) Interface on the Console Port Using BOOTP, DHCP, or RARP to Obtain an IP Address Renewing and Releasing a DHCP-Assigned IP Address
4
CHAPTER
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Understanding How Ethernet Works 4-1 Switching Frames Between Segments 4-2 Building the Address Table 4-2 Understanding How Port Negotiation Works
4-1
4-2 4-3
Default Ethernet, Fast Ethernet, and Gigabit Ethernet Configuration Setting the Port Configuration 4-4 Setting the Port Name 4-4 Setting the Port Speed 4-5 Setting the Port Duplex Mode 4-5 Configuring IEEE 802.3Z Flow Control 4-6 Enabling and Disabling Port Negotiation 4-7 Changing the Default Port Enable State 4-7 Setting the Port Debounce Timer 4-8 Configuring a Timeout Period for Ports in errdisable State Configuring the Jumbo Frame Feature 4-11 Checking Connectivity 4-13
5
4-9
CHAPTER
5-1
Understanding How VLAN Trunks Work 5-1 Trunking Overview 5-1 Trunking Modes and Encapsulation Types 802.1Q Trunk Restrictions 5-4 Default Trunk Configuration
5-5
5-2
Configuring a Trunk Link 5-5 Configuring an ISL Trunk 5-5 Configuring an 802.1Q Trunk 5-6 Configuring an ISL/802.1Q Negotiating Trunk Port Defining the Allowed VLANs on a Trunk 5-7 Disabling a Trunk Port 5-8
5-7
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
iv
78-13315-02
Contents
Example VLAN Trunk Configurations 5-9 ISL Trunk Configuration Example 5-9 ISL Trunk Over EtherChannel Link Example 5-10 802.1Q Trunk Over EtherChannel Link Example 5-13 Load-Sharing VLAN Traffic Over Parallel Trunks Example Disabling VLAN 1 on Trunks 5-23 Disabling VLAN 1 on a Trunk Link
6
5-23
5-16
CHAPTER
Configuring EtherChannel
6-1
Understanding How EtherChannel Works 6-1 Understanding Administrative Groups 6-2 Understanding EtherChannel IDs 6-2 Understanding Port Aggregation Protocol 6-2 Understanding Frame Distribution 6-3 EtherChannel Configuration Guidelines
6-4
Configuring EtherChannel 6-5 Configuring an EtherChannel 6-5 Setting the EtherChannel Port Mode 6-5 Setting the EtherChannel Port Path Cost 6-6 Setting the EtherChannel VLAN Cost 6-6 Configuring EtherChannel Frame Distribution 6-8 Displaying EtherChannel Traffic Utilization 6-8 Displaying Outgoing Ports for a Specified Address or Layer 4 Port Number Disabling an EtherChannel 6-9
7
6-8
CHAPTER
Configuring Support for 802.1Q Tunneling 7-3 Configuring the Switch to Support 802.1Q Tunneling 7-3 Configuring 802.1Q Tunnel Ports 7-4 Clearing 802.1Q Tunnel Ports 7-4 Removing Global Support for 802.1Q Tunneling 7-4
8
CHAPTER
8-1
Understanding How Spanning Tree Protocols Work 8-1 Understanding How a Topology is Created 8-2 Understanding How a Switch Becomes the Root Switch
8-3
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
Contents
Understanding How Bridge Protocol Data Units Work Spanning Tree Port States 8-4 Understanding PVST+ and MISTP Modes PVST+ Mode 8-11 MISTP Mode 8-11 MISTP-PVST+ Mode 8-12 Bridge Identifiers 8-12 MAC Address Allocation MAC Address Reduction
8-12 8-12 8-10
8-3
Using PVST+ 8-14 Default PVST+ Configuration 8-14 Setting the PVST+ Bridge ID Priority 8-15 Configuring the PVST+ Port Cost 8-16 Configuring the PVST+ Port Priority 8-17 Configuring the PVST+ Default Port Cost Mode 8-17 Configuring the PVST+ Port Cost for a VLAN 8-18 Configuring the PVST+ Port Priority for a VLAN 8-18 Disabling the PVST+ Mode on a VLAN 8-19 Using MISTP-PVST+ or MISTP 8-20 Default MISTP and MISTP-PVST+ Configuration 8-21 Setting MISTP-PVST+ Mode or MISTP Mode 8-21 Configuring an MISTP Instance 8-23 Enabling an MISTP Instance 8-26 Mapping VLANs to an MISTP Instance 8-27 Disabling MISTP-PVST+ or MISTP 8-29 Configuring a Root Switch 8-29 Configuring a Primary Root Switch 8-29 Configuring a Secondary Root Switch 8-30 Configuring a Root Switch to Improve Convergence 8-31 Using Root GuardPreventing Switches from Becoming Root Configuring Spanning Tree Timers 8-33 Configuring the Hello Time 8-33 Configuring the Forward Delay Time 8-34 Configuring the Maximum Aging Time 8-34 Understanding How BPDU Skewing Works Configuring BPDU Skewing
8-36 8-35
8-32
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
vi
78-13315-02
Contents
CHAPTER
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Understanding How PortFast Works
9-2 9-2 9-2
9-1
Understanding How PortFast BPDU Guard Works Understanding How PortFast BPDU Filter Works Understanding How UplinkFast Works Understanding How Loop Guard Works Configuring PortFast 9-7 Enabling PortFast 9-8 Disabling PortFast 9-8 Configuring PortFast BPDU Guard 9-9 Enabling PortFast BPDU Guard 9-9 Disabling PortFast BPDU Guard 9-10 Configuring PortFast BPDU Filter 9-11 Enabling PortFast BPDU Filter 9-11 Disabling PortFast BPDU Filter 9-12 Configuring UplinkFast 9-13 Enabling UplinkFast 9-13 Disabling UplinkFast 9-14 Configuring BackboneFast 9-15 Enabling BackboneFast 9-15 Displaying BackboneFast Statistics Disabling BackboneFast 9-16 Configuring Loop Guard 9-17 Enabling Loop Guard 9-17 Disabling Loop Guard 9-17
10
9-2 9-4 9-5
9-16
CHAPTER
Configuring VTP
10-1
Understanding How VTP Works 10-1 Understanding the VTP Domain 10-2 Understanding VTP Modes 10-2 Understanding VTP Advertisements 10-2 Understanding VTP Version 2 10-3 Understanding VTP Pruning 10-3 Default VTP Configuration
10-5 10-5
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
vii
Contents
Configuring VTP 10-6 Configuring a VTP Server 10-6 Configuring a VTP Client 10-6 Disabling VTP (VTP Transparent Mode) Enabling VTP Version 2 10-8 Disabling VTP Version 2 10-9 Enabling VTP Pruning 10-9 Disabling VTP Pruning 10-10 Displaying VTP 10-10
11
10-7
CHAPTER
Configuring VLANs
11-1
Understanding How VLANs Work 11-1 VLAN Ranges 11-2 Configurable VLAN Parameters 11-3 Default VLAN Configuration 11-4 Configuring Normal-Range VLANs 11-5 Normal-Range VLAN Configuration Guidelines Creating Normal-Range VLANs 11-5 Modifying Normal-Range VLANs 11-6 Configuring Extended-Range VLANs 11-6 Extended-Range VLAN Configuration Guidelines Creating Extended-Range VLANs 11-7
11-5
11-7
Mapping VLANs to VLANs 11-8 Mapping Reserved VLANs to Nonreserved VLANs 11-9 Deleting Reserved-to-Nonreserved VLAN Mappings 11-10 Mapping 802.1Q VLANs to ISL VLANs 11-10 Deleting 802.1Q-to-ISL VLAN Mappings 11-11 Assigning Switch Ports to a VLAN Deleting a VLAN
11-13 11-12
Configuring Private VLANs 11-13 Understanding How Private VLANs Work 11-14 Private VLAN Configuration Guidelines 11-15 Creating a Primary Private VLAN 11-18 Viewing the Port Capability of a Private VLAN Port 11-21 Deleting a Private VLAN 11-22 Deleting an Isolated, Community, or Two-Way Community VLAN Deleting a Private VLAN Mapping 11-23 Private VLAN Support on the MSFC 11-23
11-22
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
viii
78-13315-02
Contents
11-24
Configuring Token Ring VLANs 11-24 Understanding Token Ring TrBRF VLANs 11-25 Understanding Token Ring TrCRF VLANs 11-25 Token Ring VLAN Configuration Guidelines 11-27 Creating or Modifying a Token Ring TrBRF VLAN 11-27 Creating or Modifying a Token Ring TrCRF VLAN 11-28
12
CHAPTER
12-1 12-1
Configuring InterVLAN Routing on the MSFC 12-2 MSFC Routing Configuration Guidelines 12-2 Configuring IP InterVLAN Routing on the MSFC 12-3 Configuring IPX InterVLAN Routing on the MSFC 12-3 Configuring AppleTalk InterVLAN Routing on the MSFC Configuring MSFC Features 12-4
13
12-4
CHAPTER
13-1
Understanding How Layer 3 Switching Works 13-1 Layer 3 Switching Overview 13-2 Understanding Layer 3-Switched Packet Rewrite Understanding CEF for PFC2 13-4 Understanding NetFlow Statistics 13-9 Default CEF for PFC2 Configuration
13-10
13-2
13-11
Configuring CEF for PFC2 13-12 Displaying Layer 3-Switching Entries on the Supervisor Engine Configuring CEF on the MSFC2 13-14 Configuring IP Multicast on the MSFC2 13-14 Displaying IP Multicast Information 13-16
13-12
Configuring NetFlow Statistics 13-22 Specifying the NetFlow Table Entry Aging-Time Value 13-23 Specifying NetFlow Table IP Entry Fast Aging Time and Packet Threshold Values Setting the Minimum Statistics Flow Mask 13-24 Excluding IP Protocol Entries from the NetFlow Table 13-25 Displaying NetFlow Statistics 13-25 Clearing NetFlow IP and IPX Statistics 13-26 Displaying NetFlow Statistics Debug Information 13-28
13-24
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
ix
Contents
CHAPTER
14
Configuring MLS
14-1
Understanding How Layer 3 Switching Works 14-1 Understanding Layer 3-Switched Packet Rewrite Understanding MLS 14-4 Default MLS Configuration
14-10 14-11
14-2
Configuration Guidelines and Restrictions IP MLS 14-11 IP MMLS 14-12 IPX MLS 14-13
Configuring MLS 14-14 Configuring Unicast MLS on the MSFC 14-14 Configuring MLS on Supervisor Engine 1 14-17 Configuring IP MMLS 14-28
15
CHAPTER
Configuring NDE
15-1
Understanding How NDE Works 15-1 Overview of NDE and Integrated Layer 3 Switching Management Traffic Statistics Data Collection 15-2 Using NDE Filters 15-3 Default NDE Configuration
15-3
15-1
Configuring NDE 15-3 Usage Guidelines 15-4 Specifying an NDE Collector 15-4 Specifying an NDE Destination Address on the MSFC 15-5 Specifying an NDE Source Address on the MSFC 15-5 Enabling NDE 15-6 Specifying a Destination Host Filter 15-6 Specifying a Destination and Source Subnet Filter 15-6 Specifying a Destination TCP/UDP Port Filter 15-7 Specifying a Source Host and Destination TCP/UDP Port Filter Specifying a Protocol Filter 15-8 Specifying Protocols for Statistics Collection 15-8 Removing Protocols for Statistics Collection 15-8 Clearing the NDE Flow Filter 15-9 Disabling NDE 15-9 Removing the NDE IP Address 15-9 Displaying the NDE Configuration 15-10
15-7
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
78-13315-02
Contents
CHAPTER
16
Configuring Access Control Hardware Requirements Supported ACLs 16-2 QoS ACLs 16-2 Cisco IOS ACLs 16-3 VACLs 16-3
16-1 16-1
Applying Cisco IOS ACLs and VACLs on VLANs Bridged Packets 16-7 Routed Packets 16-7 Multicast Packets 16-8
16-7
Using Cisco IOS ACLs in your Network 16-9 Hardware and Software Handling of Cisco IOS ACLs with PFC 16-10 Hardware and Software Handling of Cisco IOS ACLs with PFC2 16-12 Using VACLs with Cisco IOS ACLs 16-15 Guidelines for Configuring Cisco IOS ACLs and VACLs on the Same VLAN Interface Guidelines for Using Layer 4 Operations 16-20 Using VACLs in your Network 16-22 Wiring Closet Configuration 16-22 Redirecting Broadcast Traffic to a Specific Server Port 16-23 Restricting the DHCP Response for a Specific Server 16-24 Denying Access to a Server on Another VLAN 16-25 Restricting ARP Traffic 16-26 Configuring ACLs on Private VLANs 16-26 Capturing Traffic Flows 16-27 Unsupported Features
16-27 16-16
Configuring VACLs 16-28 VACL Configuration Guidelines 16-28 VACL Configuration Summary 16-29 Configuring VACLs From the CLI 16-29 Configuring and Storing VACLs and QoS ACLs in Flash Memory 16-42 Automatically Moving the VACL and QoS ACL Configuration to Flash Memory 16-43 Manually Moving the VACL and QoS ACL Configuration to Flash Memory 16-44 Running with the VACL and QoS ACL Configuration in Flash Memory 16-45 Moving the VACL and QoS ACL Configuration Back to NVRAM 16-46 Redundancy Synchronization Support 16-46 Interacting with High Availability 16-46
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xi
Contents
16-46 16-47
Configuring Policy-Based Forwarding 16-48 Enabling PBF and Specifying a MAC Address for the PFC2 16-48 Configuring VACLs for PBF 16-50 Displaying PBF Information 16-52 Clearing Entries in PBF VACLs 16-52 Rolling Back Adjacency Table Entries in the Edit Buffer 16-53 Configuring Hosts for PBF 16-53 Policy-Based Forwarding Configuration Example 16-55
17
CHAPTER
Configuring GVRP
17-1 17-1
17-2
Configuring GVRP 17-2 Enabling GVRP Globally 17-3 Enabling GVRP on Individual 802.1Q Trunk Ports 17-3 Enabling GVRP Dynamic VLAN Creation 17-4 Configuring GVRP Registration 17-5 Configuring GVRP VLAN Declarations from Blocking Ports Setting the GARP Timers 17-7 Displaying GVRP Statistics 17-8 Clearing GVRP Statistics 17-8 Disabling GVRP on Individual 802.1Q Trunk Ports 17-8 Disabling GVRP Globally 17-9
18
17-6
CHAPTER
Configuring Dynamic Port VLAN Membership with VMPS Understanding How VMPS Works
18-1 18-2
18-1
Dynamic Port VLAN Membership and VMPS Configuration Guidelines Configuring VMPS and Dynamic Port VLAN Membership Creating the VMPS Database 18-4 Configuring VMPS 18-5 Configuring Dynamic Ports on VMPS Clients 18-5 Administering and Monitoring VMPS 18-6 Configuring Static VLAN Port Membership 18-7
18-3
18-3
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xii
78-13315-02
Contents
Troubleshooting VMPS and Dynamic Port VLAN Membership Troubleshooting VMPS 18-8 Troubleshooting Dynamic Port VLAN Membership 18-8
18-8
Dynamic Port VLAN Membership with VMPS Configuration Examples VMPS Database Configuration File Example 18-9 Dynamic Port VLAN Membership Configuration Example 18-10 Dynamic Port VLAN Membership with Auxiliary VLANs 18-12 Configuration Guidelines 18-13 Configuring Dynamic Port VLAN Membership with Auxiliary VLANs
19
18-9
18-13
CHAPTER
Checking Port Status and Connectivity Checking Module Status Checking Port Status Using Telnet
19-4 19-1 19-2 19-4
19-1
Using Secure Shell Encryption for Telnet Sessions Monitoring User Sessions
19-6
19-5
Using Ping 19-7 Understanding How Ping Works Executing Ping 19-8
19-7
Using Layer 2 Traceroute 19-9 Layer 2 Traceroute Usage Guidelines Identifying a Layer 2 Path 19-10
19-9
Using IP Traceroute 19-10 Understanding How IP Traceroute Works Executing IP Traceroute 19-11
20
19-10
CHAPTER
20-1
Setting the System Name and System Prompt 20-1 Setting the Static System Name and Prompt 20-2 Setting the System Contact and Location Setting the System Clock
20-4 20-3
Creating a Login Banner 20-4 Configuring a Login Banner 20-5 Clearing the Login Banner 20-5 Defining Command Aliases Defining IP Aliases
20-6 20-5
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xiii
Contents
20-7 20-8
Scheduling a System Reset 20-9 Scheduling a Reset at a Specific Time 20-10 Scheduling a Reset Within a Specified Amount of Time Power Management 20-11 Enabling or Disabling Power Redundancy 20-11 Using the CLI to Power Modules Up or Down 20-13 Determining System Power Requirements 20-14 Environmental Monitoring 20-16 Environmental Monitoring Using CLI Commands LED Indications 20-16
20-16
20-10
Displaying System Status Information for Technical Support Generating a System Status Report 20-18 Using System Dump Files 20-18
21
20-17
CHAPTER
21-1
Understanding How Authentication Works 21-1 Authentication Overview 21-2 Understanding How Login Authentication Works 21-2 Understanding How Local Authentication Works 21-2 Understanding How TACACS+ Authentication Works 21-3 Understanding How RADIUS Authentication Works 21-4 Understanding How Kerberos Authentication Works 21-4 Understanding How 802.1x Authentication Works 21-7 Configuring Authentication 21-9 Authentication Default Configuration 21-10 Authentication Configuration Guidelines 21-11 Configuring Login Authentication 21-12 Configuring Local Authentication 21-13 Configuring TACACS+ Authentication 21-17 Configuring RADIUS Authentication 21-23 Configuring Kerberos Authentication 21-31 Configuring 802.1x Authentication 21-40 Authentication Example
21-48
Understanding How Authorization Works 21-49 Authorization Overview 21-49 Authorization Events 21-49 TACACS+ Primary Options and Fallback Options
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
21-50
xiv
78-13315-02
Contents
21-50
Configuring Authorization 21-51 TACACS+ Authorization Default Configuration 21-51 TACACS+ Authorization Configuration Guidelines 21-51 Configuring TACACS+ Authorization 21-52 Configuring RADIUS Authorization 21-55 Authorization Example
21-55
Understanding How Accounting Works 21-56 Accounting Overview 21-56 Accounting Events 21-57 Specifying When to Create Accounting Records Specifying RADIUS Servers 21-58 Updating the Server 21-59 Suppressing Accounting 21-59 Configuring Accounting 21-59 Accounting Default Configuration 21-59 Accounting Configuration Guidelines 21-60 Configuring Accounting 21-60 Accounting Example
22
21-63
21-57
CHAPTER
Configuring Redundancy
22-1 22-2
Configuring Redundant Supervisor Engines 22-3 Synchronization Process Initiation 22-4 Redundant Supervisor Engine Configuration Guidelines and Restrictions Verifying Standby Supervisor Engine Status 22-5 Forcing a Switchover to the Standby Supervisor Engine 22-6 High Availability 22-8 Supervisor Engine Synchronization Examples 22-14 MSFC Redundancy 22-18 Dual MSFC Redundancy 22-19 Single Router Mode Redundancy 22-41 Manual-Mode MSFC Redundancy 22-45
22-4
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xv
Contents
CHAPTER
23
23-1
Understanding How the Switch Boot Configuration Works 23-1 Understanding the Boot Process 23-1 Understanding the ROM Monitor 23-2 Understanding the Configuration Register 23-2 Understanding the BOOT Environment Variable 23-3 Understanding the CONFIG_FILE Environment Variable 23-3 Default Switch Boot Configuration
23-4
Setting the Configuration Register 23-5 Setting the Boot Field in the Configuration Register 23-5 Setting the ROM-Monitor Console-Port Baud Rate 23-6 Setting CONFIG_FILE Recurrence 23-7 Setting CONFIG_FILE Overwrite 23-7 Setting CONFIG_FILE Synchronization 23-8 Setting the Switch to Ignore the NVRAM Configuration 23-9 Setting the Configuration Register Value 23-10 Setting the BOOT Environment Variable 23-10 Setting the BOOT Environment Variable 23-10 Clearing the BOOT Environment Variable Settings
23-11
Setting the CONFIG_FILE Environment Variable 23-11 Setting the CONFIG_FILE Environment Variable 23-11 Clearing the CONFIG_FILE Environment Variable Settings Displaying the Switch Boot Configuration
24
23-12
23-12
CHAPTER
24-1 24-1
Understanding How the Flash File System Works Working with the Flash File System 24-1 Setting the Default Flash Device 24-2 Setting the Text File Configuration Mode Listing the Files on a Flash Device 24-3 Copying Files 24-4 Deleting Files 24-6 Restoring Deleted Files 24-7 Verifying a File Checksum 24-7 Formatting a Flash Device 24-8
24-2
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xvi
78-13315-02
Contents
CHAPTER
25
25-1 25-1
Downloading Software Images to the Switch With TFTP 25-2 Understanding How TFTP Software Image Downloads Work Preparing to Download an Image Using TFTP 25-2 Downloading Supervisor Engine Images Using TFTP 25-3 Downloading Switching Module Images Using TFTP 25-4 TFTP Download Procedures Example 25-5 Uploading System Software Images to a TFTP Server 25-8 Preparing to Upload an Image to a TFTP Server 25-8 Uploading Software Images to a TFTP Server 25-9 Downloading System Software Images Using rcp 25-9 Preparing to Download an Image Using rcp 25-9 Downloading Supervisor Engine Images Using rcp 25-10 Downloading Switching Module Images Using rcp 25-10 Example rcp Download Procedures 25-11 Uploading System Software Images to an rcp Server 25-14 Preparing to Upload an Image to an rcp Server 25-15 Uploading Software Images to an rcp Server 25-15
25-2
Downloading Software Images Over a Serial Connection on the Console Port Preparing to Download an Image Using Kermit 25-16 Downloading Software Images Using Kermit (PC Procedure) 25-16 Downloading Software Images Using Kermit (UNIX Procedure) 25-17 Example Serial Software Image Download Procedures 25-18 Downloading a System Image Using Xmodem or Ymodem
26
25-21
25-15
CHAPTER
26-1
Working with Configuration Files on the Switch 26-1 Creating and Using Configuration File Guidelines 26-1 Creating a Configuration File 26-2 Downloading Configuration Files to the Switch Using TFTP Uploading Configuration Files to a TFTP Server 26-5 Copying Configuration Files Using rcp 26-6 Downloading Configuration Files from an rcp Server 26-6 Uploading Configuration Files to an rcp Server 26-7 Clearing the Configuration 26-8
26-3
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xvii
Contents
Working with Configuration Files on the MSFC 26-9 Uploading the Configuration File to a TFTP Server 26-10 Uploading the Configuration File to the Supervisor Engine Flash PC Card 26-11 Downloading the Configuration File from a Remote Host 26-11 Downloading the Configuration File from the Supervisor Engine Flash PC Card 26-13
27
CHAPTER
27-1 27-1
Understanding How System Message Logging Works Default System Message Logging Configuration
27-4
Configuring System Message Logging 27-4 Enabling and Disabling Session Logging Settings 27-5 Setting the System Message Logging Levels 27-6 Enabling and Disabling the Logging Time Stamp Enable State 27-6 Setting the Logging Buffer Size 27-6 Configuring the syslog Daemon on a UNIX syslog Server 27-7 Configuring syslog Servers 27-7 Displaying the Logging Configuration 27-9 Displaying System Messages 27-10
28
CHAPTER
Configuring DNS
28-1 28-1
Configuring DNS 28-2 Setting Up and Enabling DNS 28-2 Clearing a DNS Server 28-3 Clearing the DNS Domain Name 28-3 Disabling DNS 28-3
29
CHAPTER
Configuring CDP
29-1 29-1
Configuring CDP 29-2 Setting the CDP Global Enable and Disable States 29-2 Setting the CDP Enable and Disable States on a Port 29-3 Setting the CDP Message Interval 29-4 Setting the CDP Holdtime 29-4 Displaying CDP Neighbor Information 29-5
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xviii
78-13315-02
Contents
CHAPTER
30
Configuring UDLD
30-1 30-1
Configuring UDLD 30-3 Enabling UDLD Globally 30-3 Enabling UDLD on Individual Ports 30-3 Disabling UDLD on Individual Ports 30-4 Disabling UDLD Globally 30-4 Specifying the UDLD Message Interval 30-4 Enabling UDLD Aggressive Mode 30-5 Displaying the UDLD Configuration 30-5
31
CHAPTER
Configuring NTP
31-1 31-1
Configuring NTP 31-2 Enabling NTP in Broadcast-Client Mode 31-3 Configuring NTP in Client Mode 31-3 Configuring Authentication in Client Mode 31-4 Setting the Time Zone 31-5 Enabling the Daylight Saving Time Adjustment 31-5 Disabling the Daylight Saving Time Adjustment 31-7 Clearing the Time Zone 31-7 Clearing NTP Servers 31-7 Disabling NTP 31-8
32
CHAPTER
32-1 32-1
Understanding How Broadcast Suppression Works Configuring Broadcast Suppression 32-2 Enabling Broadcast Suppression 32-3 Disabling Broadcast Suppression 32-4
33
CHAPTER
33-1 33-1
Understanding How Layer 3 Protocol Filtering Works Default Layer 3 Protocol Filtering Configuration Configuring Layer 3 Protocol Filtering 33-2 Enabling Layer 3 Protocol Filtering 33-3 Disabling Layer 3 Protocol Filtering 33-3
33-2
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xix
Contents
CHAPTER
34
34-1 34-1
Understanding How the IP Permit List Works IP Permit List Default Configuration
34-2
Configuring the IP Permit List 34-2 Adding IP Addresses to the IP Permit List Enabling the IP Permit List 34-3 Disabling the IP Permit List 34-4 Clearing an IP Permit List Entry 34-4
35
34-2
CHAPTER
35-1
Understanding How Port Security Works 35-1 Allowing Traffic Based on the Host MAC Address 35-1 Restricting Traffic Based on the Host MAC Address 35-2 Port Security Configuration Guidelines
35-3
Configuring Port Security 35-3 Enabling Port Security 35-3 Setting the Maximum Number of Secure MAC Addresses Setting the Port Security Age Time 35-5 Clearing MAC Addresses 35-5 Specifying the Security Violation Action 35-6 Setting the Shutdown Timeout 35-6 Disabling Port Security 35-7 Restricting Traffic Based on a Host MAC Address 35-7 Displaying Port Security 35-8
36
35-4
CHAPTER
36-1 36-1
Understanding SNMP 36-3 Security Models and Levels 36-4 SNMP ifindex Persistence Feature
36-5 36-5
Understanding How SNMPv1 and SNMPv2c Works Using Managed Devices 36-5 Using SNMP Agents and MIBs 36-5 Using CiscoWorks2000 36-6 Understanding SNMPv3 SNMP Entity 36-7 Applications 36-9
36-7
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xx
78-13315-02
Contents
Configuring SNMPv1 and SNMPv2c 36-10 SNMPv1 and SNMPv2c Default Configuration 36-10 Configuring SNMPv1 and SNMPv2c from an NMS 36-10 Configuring SNMPv1 and SNMPv2c from the CLI 36-10 Configuring SNMPv3 36-11 SNMPv3 Default Configuration 36-11 Configuring SNMPv3 from an NMS 36-11 Configuring SNMPv3 from the CLI 36-12
37
CHAPTER
37-1 37-1
37-2
CHAPTER
38-1 38-1
Understanding How SPAN and RSPAN Works SPAN Session 38-2 Destination Port 38-2 Source Port 38-2 Ingress SPAN 38-3 Egress SPAN 38-3 VSPAN 38-3 Trunk VLAN Filtering 38-4 SPAN Traffic 38-4 SPAN and RSPAN Session Limits
38-4
Configuring SPAN 38-5 SPAN Hardware Requirements 38-5 Understanding How SPAN Works 38-5 SPAN Configuration Guidelines 38-6 Configuring SPAN from the CLI 38-6 Configuring RSPAN 38-8 RSPAN Hardware Requirements 38-8 Understanding How RSPAN Works 38-9 RSPAN Configuration Guidelines 38-9 Configuring RSPAN 38-10 RSPAN Configuration Examples 38-13
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xxi
Contents
CHAPTER
39
39-1
Understanding How the Switch TopN Reports Utility Works 39-1 TopN Reports Overview 39-1 Running Switch TopN Reports without the Background Option 39-2 Running Switch TopN Reports with the Background Option 39-2 Running and Viewing Switch TopN Reports
40
39-3
CHAPTER
40-1
Understanding How Multicasting Works 40-1 Multicasting and Multicast Services Overview 40-2 Understanding How IGMP Snooping Works 40-2 Understanding How GMRP Works 40-4 Understanding How RGMP Works 40-5 Suppressing Multicast Traffic 40-5 Nonreverse Path Forwarding Multicast Fast Drop 40-5 Enabling Installation of Directly Connected Subnets 40-6 Configuring IGMP Snooping 40-6 Default IGMP Snooping Configuration 40-7 Enabling IGMP Snooping 40-7 Enabling IGMP Fast-Leave Processing 40-8 Displaying Multicast Router Information 40-8 Displaying Multicast Group Information 40-9 Displaying IGMP Snooping Statistics 40-10 Disabling IGMP Fast-Leave Processing 40-10 Disabling IGMP Snooping 40-11 Configuring GMRP 40-11 GMRP Software Requirements 40-11 Default GMRP Configuration 40-11 Enabling GMRP Globally 40-12 Enabling GMRP on Individual Switch Ports 40-12 Disabling GMRP on Individual Switch Ports 40-13 Enabling GMRP Forward-All Option 40-14 Disabling GMRP Forward-All Option 40-14 Configuring GMRP Registration 40-14 Setting the GARP Timers 40-16 Displaying GMRP Statistics 40-17 Clearing GMRP Statistics 40-18 Disabling GMRP Globally on the Switch 40-18
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xxii
78-13315-02
Contents
Configuring Multicast Router Ports and Group Entries Specifying Multicast Router Ports 40-19 Configuring Multicast Groups 40-19 Clearing Multicast Router Ports 40-20 Clearing Multicast Group Entries 40-20 Configuring RGMP 40-21 Configuring RGMP on the Supervisor Engine Configuring RGMP on the MSFC 40-24 Displaying Multicast Protocol Status
41
40-24
40-18
40-21
CHAPTER
Configuring QoS
41-1
Understanding How QoS Works 41-1 Definitions 41-2 Flowcharts 41-3 QoS Feature Set Summary 41-8 Ethernet Ingress Port Marking, Scheduling, Congestion Avoidance, and Classification Classification, Marking, and Policing with a Layer 3 Switching Engine 41-14 Classification and Marking with a Layer 2 Switching Engine 41-24 Ethernet Egress Port Scheduling, Congestion Avoidance, and Marking 41-24 QoS Statistics Data Export 41-27 QoS Default Configuration
41-28
41-10
Configuring QoS 41-30 Enabling QoS 41-31 Enabling Port-Based or VLAN-Based QoS 41-32 Configuring the Trust State of a Port 41-32 Configuring the CoS Value for a Port 41-33 Creating Policing Rules 41-34 Deleting Policing Rules 41-36 Creating or Modifying ACLs 41-37 Attaching ACLs to Interfaces 41-46 Detaching ACLs from Interfaces 41-46 Mapping a CoS Value to a Host Destination MAC Address/VLAN Pair 41-47 Deleting a CoS Value to a Host Destination MAC Address/VLAN Pair 41-47 Enabling or Disabling Microflow Policing of Bridged Traffic 41-48 Configuring Standard Receive-Queue Tail-Drop Thresholds 41-48 Configuring 2q2t Port Standard Transmit-Queue Tail-Drop Thresholds 41-49 Configuring Standard Transmit-Queue WRED-Drop Thresholds 41-49 Allocating Bandwidth Between Standard Transmit Queues 41-50 Configuring the Receive-Queue Size Ratio 41-51
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xxiii
Contents
Configuring the Transmit-Queue Size Ratio 41-51 Mapping CoS Values to Drop Thresholds 41-52 Configuring DSCP Value Maps 41-55 Displaying QoS Information 41-58 Displaying QoS Statistics 41-59 Reverting to QoS Defaults 41-60 Disabling QoS 41-60 Configuring COPS Support 41-60 Configuring RSVP Support 41-66 Configuring QoS Statistics Data Export 41-70
42
CHAPTER
Configuring ASLB
42-1 42-1
Understanding How ASLB Works 42-2 Layer 3 Operations for ASLB 42-3 Layer 2 Operations for ASLB 42-3 Client-to-Server Data Forwarding 42-4 Server-to-Client Data Forwarding 42-6 Cabling Guidelines
42-7
Configuring ASLB 42-7 Configuring the LocalDirector Interfaces ASLB Configuration Guidelines 42-8 Configuring ASLB from the CLI 42-11 ASLB Configuration Example
42-19
42-7
ASLB Redundant Configuration Example 42-21 IP Addresses 42-22 MAC Addresses 42-23 Catalyst 6000 Family Switch 1 Configuration Catalyst 6000 Family Switch 2 Configuration Router 1 Configuration 42-23 Router 2 Configuration 42-24 LocalDirector Configuration 42-24 Troubleshooting the ASLB Configuration
43
42-25
42-23 42-23
CHAPTER
Understanding How the Switch Fabric Module Works Configuring and Monitoring the Switch Fabric Module
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xxiv
78-13315-02
Contents
Configuring a Fallback Option 43-3 Configuring the Switching Mode 43-3 Switch Fabric Redundancy 43-4 Monitoring the Switch Fabric Module 43-4 Configuring the LCD Banner 43-8
44
CHAPTER
Understanding How a VoIP Network Works Cisco IP Phone 7960 44-2 Cisco CallManager 44-4 Access Gateways 44-4 How a Call Is Made 44-7 Understanding How VLANs Work
44-8
Configuring VoIP on a Switch 44-9 Voice-Related CLI Commands 44-9 Configuring Per-Port Power Management 44-10 Configuring Auxiliary VLANs on Catalyst LAN Switches Configuring the Access Gateways 44-21 Displaying Active Call Information 44-27 Configuring QoS in the Cisco IP Phone 7960 44-29
44-19
INDEX
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4 78-13315-02
xxv
Contents
Catalyst 6000 Family Software Configuration Guide, Releases 6.3 and 6.4
xxvi
78-13315-02
Preface
This preface describes who should read the Catalyst 6000 Family Software Configuration Guide, how it is organized, and its document conventions.
Audience
This publication is for experienced network administrators who are responsible for configuring and maintaining Catalyst 6000 family switches.
Organization
Note
This publication includes the information that previously was in the Catalyst 6000 Family Multilayer Switch Feature Card (12.x) and Policy Feature Card Configuration Guide. This publication is organized as follows:
Title Product Overview Command-Line Interfaces Configuring the Switch IP Address and Default Gateway Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Configuring Ethernet VLAN Trunks
Description Presents an overview of the Catalyst 6000 family switches. Describes how to use the command-line interface (CLI). Describes how to perform a baseline configuration of the switch. Describes how to configure Ethernet, Fast Ethernet, and Gigabit Ethernet switching. Describes how to configure Inter-Switch Link (ISL) and IEEE 802.1Q VLAN trunks on Fast Ethernet and Gigabit Ethernet ports. Describes how to configure Fast EtherChannel and Gigabit EtherChannel port bundles. Describes how to configure 802.1Q tunneling. Describes how to configure the Spanning Tree Protocol and explains how spanning tree works.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
xxvii
Preface Organization
Chapter Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19
Title
Description
Configuring Spanning Tree PortFast, Describes how to configure the spanning tree PortFast, UplinkFast, BackboneFast, and Loop Guard UplinkFast, and BackboneFast features. Configuring VTP Configuring VLANs Configuring InterVLAN Routing Configuring CEF for PFC2 Configuring MLS Configuring NDE Configuring Access Control Configuring GVRP Configuring Dynamic Port VLAN Membership with VMPS Checking Port Status and Connectivity Describes how to configure VLAN Trunk Protocol (VTP) on the switch. Describes how to configure VLANs on the switch. Describes how to configure interVLAN routing on the MSFC. Describes how to configure Cisco Express Forwarding for Policy Feature Card 2 (CEF for PFC2). Describes how to configure Multilayer Switching (MLS). Describes how to configure NetFlow Data Export (NDE). Describes how to configure access control lists (ACLs). Describes how to configure GARP VLAN Registration Protocol (GVRP) on the switch. Describes how to configure dynamic port VLAN membership on the switch using the VLAN Management Policy Server (VMPS). Describes how to display information about modules and switch ports and how to check connectivity using ping, Telnet, and IP traceroute. Describes how to set the system name, create a login banner, and perform other administrative tasks on the switch. Describes how to configure authentication, authorization, and accounting (AAA) to monitor and control access to the CLI. Describes how to install and configure redundant supervisor engines and MSFCs in the Catalyst 6000 family switches. Describes how to modify the switch boot configuration, including the BOOT environment variable and the configuration register. Describes how to work with the Flash file system. Describes how to download and upload system software images. Describes how to create, download, and upload switch configuration files. Describes how to configure system message logging (syslog). Describes how to configure Domain Name System (DNS). Describes how to configure Cisco Discovery Protocol (CDP). Describes how to configure the UniDirectional Link Detection (UDLD) protocol. Describes how to configure Network Time Protocol (NTP). Describes how to configure hardware and software broadcast suppression. Describes how to configure protocol filtering on Ethernet, Fast Ethernet, and Gigabit Ethernet ports. Describes how to configure the IP permit list.
Administering the Switch Configuring Switch Access Using AAA Configuring Redundancy Modifying the Switch Boot Configuration
Chapter 24 Chapter 25 Chapter 26 Chapter 27 Chapter 28 Chapter 29 Chapter 30 Chapter 31 Chapter 32 Chapter 33 Chapter 34
Working With the Flash File System Working with System Software Images Working with Configuration Files Configuring System Message Logging Configuring DNS Configuring CDP Configuring UDLD Configuring NTP Configuring Broadcast Suppression Configuring Layer 3 Protocol Filtering Configuring the IP Permit List
xxviii
78-13315-02
Title Configuring Port Security Configuring SNMP Configuring RMON Configuring SPAN and RSPAN Using Switch TopN Reports Configuring Multicast Services
Description Describes how to configure secure port filtering. Describes how to configure SNMP. Describes how to configure Remote Monitoring (RMON). Describes how to configure the Switch Port Analyzer (SPAN) and Remote SPAN (RSPAN). Describes how to generate switch TopN reports. Describes how to configure Internet Group Management Protocol (IGMP) snooping, GARP Multicast Registration Protocol (GMRP), and Router Group Management Protocol (RGMP). Describes how to configure Quality of Service (QoS). Describes how to configure accelerated server load balancing (ASLB). Describes how to configure the Switch Fabric Module. Describes how to configure a Voice-over-IP (VoIP) network.
Configuring QoS Configuring ASLB Configuring the Switch Fabric Modules Configuring a VoIP Network
Related Documentation
The following publications are available for the Catalyst 6000 family switches:
Catalyst 6000 Family Module Installation Guide Catalyst 6000 Family Command Reference ATM Software Configuration and Command ReferenceCatalyst 5000 Family and Catalyst 6000 Family Switches System Message GuideCatalyst 6000 Family, Catalyst 5000 Family, and Catalyst 4000 Family, Catalyst 2948G, and Catalyst 2980G Release Notes for Catalyst 6000 Family Software Release 6.x Cisco IOS Configuration Guides and Command ReferencesUse these publications to help you configure the Cisco IOS software that runs on the MSFC, MSM, and ATM modules. For information about MIBs, refer to http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
xxix
Preface Conventions
Conventions
Note
Throughout this publication, except where noted, the term supervisor engine is used to refer to both Supervisor Engine 1 and Supervisor Engine 2. This publication uses the following conventions: Convention boldface font italic font [ ] {x|y|z} [x|y|z] string Description Commands, command options, and keywords are in boldface. Arguments for which you supply values are in italics. Elements in square brackets are optional. Alternative keywords are grouped in braces and separated by vertical bars. Optional alternative keywords are grouped in brackets and separated by vertical bars. A nonquoted set of characters. Do not use quotation marks around the string or the string will include the quotation marks. font
screen boldface screen
screen
font.
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.
The symbol ^ represents the key labeled Controlfor 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.
< >
Note
Means reader take note. Notes contain helpful suggestions or references to material not covered in the publication. Cautions use the following conventions:
Caution
Means reader be careful. In this situation, you might do something that could result in equipment damage or loss of data.
xxx
78-13315-02
Obtaining Documentation
Cisco provides several ways to obtain documentation, technical assistance, and other technical resources. These sections explain how to obtain technical information from Cisco Systems.
Cisco.com
You can access the most current Cisco documentation on the World Wide Web at this URL: http://www.cisco.com/univercd/home/home.htm You can access the Cisco website at this URL: http://www.cisco.com International Cisco web sites can be accessed from this URL: http://www.cisco.com/public/countries_languages.shtml
Documentation CD-ROM
Cisco documentation and additional literature are available in a Cisco Documentation CD-ROM package, which may have shipped with your product. The Documentation CD-ROM is updated monthly and may be more current than printed documentation. The CD-ROM package is available as a single unit or through an annual subscription. Registered Cisco.com users can order the Documentation CD-ROM (product number DOC-CONDOCCD=) through the online Subscription Store: http://www.cisco.com/go/subscription
Ordering Documentation
You can find instructions for ordering documentation at this URL: http://www.cisco.com/univercd/cc/td/doc/es_inpck/pdi.htm You can order Cisco documentation in these ways:
Registered Cisco.com users (Cisco direct customers) can order Cisco product documentation from the Networking Products MarketPlace: http://www.cisco.com/en/US/partner/ordering/index.shtml
Registered Cisco.com users can order the Documentation CD-ROM (Customer Order Number DOC-CONDOCCD=) through the online Subscription Store: http://www.cisco.com/go/subscription
Nonregistered Cisco.com users can order documentation through a local account representative by calling Cisco Systems Corporate Headquarters (California, U.S.A.) at 408 526-7208 or, elsewhere in North America, by calling 800 553-NETS (6387).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
xxxi
Documentation Feedback
You can submit comments electronically on Cisco.com. On the Cisco Documentation home page, click Feedback at the top of the page. You can e-mail your comments to bug-doc@cisco.com. You can submit your comments by mail by using the response card behind the front cover of your document or by writing to the following address: Cisco Systems Attn: Customer Document Ordering 170 West Tasman Drive San Jose, CA 95134-9883 We appreciate your comments.
Cisco.com
Cisco.com offers a suite of interactive, networked services that let you access Cisco information, networking solutions, services, programs, and resources at any time, from anywhere in the world. Cisco.com provides a broad range of features and services to help you with these tasks:
Streamline business processes and improve productivity Resolve technical issues with online support Download and test software packages Order Cisco learning materials and merchandise Register for online skill assessment, training, and certification programs
To obtain customized information and service, you can self-register on Cisco.com at this URL: http://www.cisco.com
xxxii
78-13315-02
Priority level 4 (P4)You need information or assistance concerning Cisco product capabilities, product installation, or basic product configuration. Priority level 3 (P3)Your network performance is degraded. Network functionality is noticeably impaired, but most business operations continue. Priority level 2 (P2)Your production network is severely degraded, affecting significant aspects of business operations. No workaround is available. Priority level 1 (P1)Your production network is down, and a critical impact to business operations will occur if service is not restored quickly. No workaround is available.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
xxxiii
The Cisco Product Catalog describes the networking products offered by Cisco Systems as well as ordering and customer support services. Access the Cisco Product Catalog at this URL: http://www.cisco.com/en/US/products/products_catalog_links_launch.html
Cisco Press publishes a wide range of networking publications. Cisco suggests these titles for new and experienced users: Internetworking Terms and Acronyms Dictionary, Internetworking Technology Handbook, Internetworking Troubleshooting Guide, and the Internetworking Design Guide. For current Cisco Press titles and other information, go to Cisco Press online at this URL: http://www.ciscopress.com
Packet magazine is the Cisco monthly periodical that provides industry professionals with the latest information about the field of networking. You can access Packet magazine at this URL: http://www.cisco.com/en/US/about/ac123/ac114/about_cisco_packet_magazine.html
iQ Magazine is the Cisco monthly periodical that provides business leaders and decision makers with the latest information about the networking industry. You can access iQ Magazine at this URL: http://business.cisco.com/prod/tree.taf%3fasset_id=44699&public_view=true&kbns=1.html
Internet Protocol Journal is a quarterly journal published by Cisco Systems for engineering professionals involved in the design, development, and operation of public and private internets and intranets. You can access the Internet Protocol Journal at this URL: http://www.cisco.com/en/US/about/ac123/ac147/about_cisco_the_internet_protocol_journal.html
TrainingCisco offers world-class networking training, with current offerings in network training listed at this URL: http://www.cisco.com/en/US/learning/le31/learning_recommended_training_list.html
xxxiv
78-13315-02
C H A P T E R
Product Overview
The Catalyst 6000 family switches support the following configurations:
Supervisor Engine 2, Policy Feature Card 2 (PFC2), and Multilayer Switch Feature Card 2 (MSFC2) Supervisor Engine 2 and PFC2 Supervisor Engine 1, PFC, and MSFC or MSFC2 Supervisor Engine 1 and PFC Supervisor Engine 1
Note
The Switch Fabric Module is supported only in Catalyst 6500 series switches. Refer to the Release Notes for Catalyst 6000 Family Software Release 6.x publication for complete information about the chassis, modules, software features, protocols, and MIBs supported by the Catalyst 6000 family switches.
Note
This publication includes the information that previously was in the Catalyst 6000 Family Multilayer Switch Feature Card (12.x) and Policy Feature Card Configuration Guide.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
1-1
Chapter 1
Product Overview
1-2
78-13315-02
C H A P T E R
Command-Line Interfaces
This chapter describes the command-line interface (CLI) you use to configure the Catalyst 6000 family switches and Ethernet modules. For descriptions of all switch and ROM monitor commands, refer to the Catalyst 6000 Family Command Reference publication.
Note
For a description of the ATM Cisco IOS CLI and commands, refer to the ATM Software Configuration Guide and Command ReferenceCatalyst 5000 Family and 6000 Family Switches publication. For a description of the Multilayer Switch Module (MSM) IOS CLI and commands, refer to the Multilayer Switch Module Installation and Configuration Note. This chapter consists of these sections:
Catalyst Command-Line Interface, page 2-i MSFC Command-Line Interface, page 2-viii
ROM-Monitor Command-Line Interface, page 2-i Switch Command-Line Interface, page 2-ii
Note
The Break key is always enabled for 60 seconds after rebooting the system, regardless of whether the Break key is configured to be off by configuration register settings.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
2-1
Command-Line Interfaces
To access the ROM monitor through a terminal server, you can escape to the Telnet prompt and enter the send break command for your terminal emulation program to break into ROM-monitor mode. Once you are in ROM-monitor mode, the prompt changes to rommon>. Use the ? command to see the available ROM-monitor commands.
Accessing the Switch CLI, page 2-ii Accessing the MSFC from the Switch, page 2-iii Working With the Command-Line Interface, page 2-v
Accessing the CLI through the Console Port, page 2-ii Accessing the CLI through Telnet, page 2-iii
Note
For complete information on how to connect to the supervisor engine console port, refer to the hardware documentation for your switch. To access the switch through the console port, perform this task: Task Command
Step 1 Step 2
Initiate a connection from the terminal to the switch console prompt and press Return. At the prompt, enter the system password. The Console> prompt appears, indicating that you have accessed the CLI in normal mode. If necessary, enter privileged mode (you must enter privileged mode to change the switch configuration). Enter the necessary commands to complete the desired tasks. When finished, exit the session.
Step 3
enable
Step 4 Step 5
exit
2-2
78-13315-02
Chapter 2
After accessing the switch through the console port, you see this display:
Cisco Systems Console Enter password: Console>
Command
From the remote host, enter the telnet command telnet {hostname | ip_addr} and the name or IP address of the switch you want to access. At the prompt, enter the password for the CLI. If no password has been configured, press Return. Enter the necessary commands to complete your desired tasks. When finished, exit the Telnet session. exit
Accessing the MSFC from the Console Port, page 2-iv Accessing the MSFC from a Telnet Session, page 2-iv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
2-3
Command-Line Interfaces
1. The mod keyword specifies the module number of the MSFC; either 15 (if the MSFC is installed on the supervisor engine in slot 1) or 16 (if the MSFC is installed on the supervisor engine in slot 2). If no module number is specified, the console will switch to the MSFC on the active supervisor engine.
Note
To access the Cisco IOS CLI on the standby MSFC, connect to the console port of the standby supervisor engine. This example shows how to access the active MSFC from the switch CLI from the active supervisor engine, and how to exit the MSFC CLI and return to the switch CLI:
Console> (enable) switch console 15 Trying Router-15... Connected to Router-15. Type ^C^C^C to switch back... Router> ^C^C^C Console> (enable)
Note
The supervisor engine software sees the MSFC as module 15 (when installed on a supervisor engine in slot 1) or module 16 (when installed on a supervisor engine in slot 2). This example shows how to access the MSFC from the switch CLI, and how to exit the MSFC CLI and return to the switch CLI:
Console> (enable) session 15 Router> exit Console> (enable)
2-4
78-13315-02
Chapter 2
Switch CLI Command Modes, page 2-v Designating Modules, Ports, and VLANs on the Command Line, page 2-v Designating MAC Addresses, IP Addresses, and IP Aliases, page 2-vi Command Line Editing, page 2-vi History Substitution, page 2-vii Accessing Command Help, page 2-viii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
2-5
Command-Line Interfaces
Table 2-1
Function Specifies ports 2 and 4 on module 5 and port 10 on module 6 Specifies ports 1 and 2 on module 3 and port 8 on module 4
VLANs are identified using the VLAN ID, a single number associated with the VLAN. To specify a list of VLANs, use a comma-separated list (do not insert spaces) to specify individual VLANs or a hyphen (-) between the VLAN numbers to specify a range of VLANs. Table 2 shows examples of how to designate VLANs and VLAN ranges.
Table 2-2 Designating VLANs and VLAN Ranges
Function Specifies VLAN 10 Specifies VLANs 5, 10, and 15 Specifies VLANs 10 through 50, inclusive, and VLAN 500
The IP address format is 32 bits, written as 4 octets separated by periods (dotted decimal format) that are made up of a network section, an optional subnet section, and a host section, as shown in the following example:
126.2.54.1
If you have configured IP aliases on the switch, you can use IP aliases in place of the dotted decimal IP address. This is true for most commands that use an IP address, except for commands that define the IP address or IP alias. For information on using IP aliases, see the Defining IP Aliases section on page 20-6. If DNS is configured on the switch, you can use DNS host names in place of IP addresses. For information on configuring DNS, see Chapter 28, Configuring DNS.
Function Jumps to the first character of the command line. Moves the cursor back one character. Escapes and terminates prompts and tasks.
2-6
78-13315-02
Chapter 2
Table 2-3
Keystroke Ctrl-D Ctrl-E Ctrl-F or the right arrow key Ctrl-K Ctrl-L; Ctrl-R Ctrl-N or the down arrow key Ctrl-P or the up arrow key Ctrl-U; Ctrl-X Ctrl-W Esc B Esc D Esc F Delete key or Backspace key
1 1 1
Function Deletes the character at the cursor. Jumps to the end of the current command line. Moves the cursor forward one character. Deletes from the cursor to the end of the command line. Repeats current command line on a new line. Enters next command line in the history buffer. Enters previous command line in the history buffer. Deletes from the cursor to the beginning of the command line. Deletes last word typed. Moves the cursor back one word. Deletes from the cursor to the end of the word. Moves the cursor forward one word. Erases mistake when entering a command; reenter command after using this key.
History Substitution
The history buffer stores the last 20 commands you entered during a terminal session. History substitution allows you to access these commands without retyping them, by using special abbreviated commands. Table 4 lists the history substitution commands.
Table 2-4 History Substitution Commands
Command
Repeating recent commands: !! !-nn !n !aaa !?aaa
Function Repeat the most recent command. Repeat the nnth most recent command. Repeat command n. Repeat the command beginning with string aaa. Repeat the command containing the string aaa. Replace the string aaa with the string bbb in the most recent command. Add string aaa to the end of the most recent command. Add string aaa to the end of command n. Add string bbb to the end of the command beginning with string aaa. Add string bbb to the end of the command containing the string aaa.
To add a string to the end of a previous command and repeat it: !!aaa !n aaa !aaa bbb !?aaa bbb
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
2-7
Command-Line Interfaces
Cisco IOS Command Modes, page 2-viii Cisco IOS Command-Line Interface, page 2-x
Note
In addition to the methods described in the Accessing the MSFC from the Switch section on page 2-iii, you can configure IOS to support direct Telnet access to the MSFC. Refer to Configuring Authentication in the Cisco IOS Security Configuration Guide: http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/secur_c/scprt1/scdathen.htm
2-8
78-13315-02
Chapter 2
Table 2-5
Description of Use Connect to remote devices, change terminal settings on a temporary basis, perform basic tests, and display system information. Set operating parameters. The privileged command set includes the commands in user EXEC mode as well as the configure command. Use this command to access the other command modes. Configure features that affect the system as a whole. Many features are enabled for a particular interface. Interface commands enable or modify the operation of a Gigabit Ethernet or Fast Ethernet interface. From the directly connected console or the virtual terminal used with Telnet, use this configuration mode to configure the console interface.
Prompt
Router>
From the user EXEC mode, enter the enable command and the enable password.
Router#
Global configuration
From the privileged EXEC mode, enter the configure terminal command. From global configuration mode, enter the interface type location command.
Router(config)#
Interface configuration
Router(config-if)#
Console configuration
Router(config-line)#
The Cisco IOS command interpreter, called the EXEC, interprets and executes 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.
To obtain a list of commands that begin with a particular character sequence, type in those characters followed by the question mark (?). Do not include a space. This form of help is called word help, because it completes a word for you.
Router# co? configure
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
2-9
Command-Line Interfaces
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.
Router# configure ? memory network overwrite-network terminal Configure Configure Overwrite Configure from NV memory from a TFTP network host NV memory from TFTP network host 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.
Tip
If you are having trouble entering a command, check the system prompt, and enter the question mark (?) for a list of available commands. You might be in the wrong command mode or using incorrect syntax. Press Ctrl-Z in any mode to immediately return to privileged EXEC mode. Enter exit to return to the previous mode.
Accessing Cisco IOS Configuration Mode, page 2-x Viewing and Saving the Cisco IOS Configuration, page 2-xi Bringing Up an MSFC Interface, page 2-xi
Note
Enter the switch console command to access the MSFC from the switch CLI when directly connected to the supervisor engine console port. To access the MSFC from a Telnet session, see the Accessing the MSFC from a Telnet Session section on page 2-iv.
Task
Step 1 Step 2 Step 3
Command
If you are in the switch CLI, enter Console> switch console [mod] the MSFC CLI. At the EXEC prompt, enter enable Router> enable mode. At the privileged EXEC prompt, enter global configuration mode. Router# configure terminal
2-10
78-13315-02
Chapter 2
Task
Step 4 Step 5
Command (Refer to the appropriate configuration tasks later in this chapter.) Router(config)# Ctrl-Z
View the current operating configuration at the privileged EXEC prompt. View the configuration in NVRAM. Save the current configuration to NVRAM.
Step 2 Step 3
Note
In a redundant supervisor engine setup, if an interface on one MSFC is shut down, the matching VLAN interface on the redundant MSFC will stop forwarding packets. Therefore, you should manually shut down the matching interface on the redundant MSFC. To bring up an MSFC interface that is administratively shut down, perform this task in privileged mode: Task Command Router(config)# interface interface_type interface_num Router(config-if)# no shutdown Router(config-if)# Ctrl-Z
Specify the interface to bring up. Bring the interface up. Exit configuration mode.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
2-11
Command-Line Interfaces
2-12
78-13315-02
C H A P T E R
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding the Switch Management Interfaces, page 3-i Understanding Automatic IP Configuration, page 3-ii Preparing to Configure the IP Address and Default Gateway, page 3-iv Booting the MSFC for the First Time, page 3-iv Default IP Address and Default Gateway Configuration, page 3-v Assigning the In-Band (sc0) Interface IP Address, page 3-v Configuring Default Gateways, page 3-vi Configuring the SLIP (sl0) Interface on the Console Port, page 3-vii Using BOOTP, DHCP, or RARP to Obtain an IP Address, page 3-ix Renewing and Releasing a DHCP-Assigned IP Address, page 3-x
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
3-1
When you configure the IP address, subnet mask, broadcast address, and VLAN membership of the sc0 interface, you can access the switch through Telnet or Simple Network Management Protocol (SNMP). When you configure the SLIP (sl0) interface, you can open a point-to-point connection to the switch through the console port from a workstation. All IP traffic generated by the switch itself (for example, a Telnet session opened from the switch to a host) is forwarded according to the entries in the switch IP routing table. For intersubnetwork communication to occur, you must configure at least one default gateway for the sc0 interface. The switch IP routing table is used to forward traffic originating on the switch only, not for forwarding traffic sent by devices connected to the switch.
Automatic IP Configuration Overview, page 3-ii Understanding How DHCP Works, page 3-ii Understanding How BOOTP and RARP Work, page 3-iii
Bootstrap Protocol (BOOTP) Dynamic Host Configuration Protocol (DHCP) Reverse Address Resolution Protocol (RARP)
The switch makes BOOTP, DHCP, and RARP requests only if the sc0 interface IP address is set to 0.0.0.0 when the switch boots up. This address is the default for a new switch or a switch whose configuration file has been cleared using the clear config all command. BOOTP, DHCP, and RARP requests are only broadcast out the sc0 interface.
Note
If the CONFIG_FILE environment variable is set, all configuration files are processed before the switch determines whether to broadcast BOOTP, DHCP, and RARP requests. For more information about the CONFIG_FILE environment variable, see Chapter 23, Modifying the Switch Boot Configuration.
Manual allocationThe network administrator maps the switch MAC address to an IP address at the DHCP server. Automatic allocationThe switch obtains an IP address when it first contacts the DHCP server. The address is permanently assigned to the switch. Dynamic allocationThe switch obtains a leased IP address for a specified period of time. The IP address is revoked at the end of this period, and the switch surrenders the address. The switch must request another IP address.
3-2
78-13315-02
Chapter 3
Configuring the Switch IP Address and Default Gateway Understanding Automatic IP Configuration
In addition to the sc0 interface IP address, the switch can obtain the subnet mask, broadcast address, and default gateway address. DHCP-learned values are not used if user-configured values are present. The switch broadcasts a DHCPDISCOVER message one to ten seconds after all of the switch ports are online. The switch always requests an infinite lease time in the DHCPDISCOVER message. If a DHCP or Bootstrap Protocol (BOOTP) server responds to the request, the switch takes appropriate action. If a DHCPOFFER message is received from a DCHP server, the switch processes all supported options contained in the message. Table 1 shows the supported DHCP options. Other options specified in the DHCPOFFER message are ignored.
Table 3-1 Supported DHCP Options
Code 1 2 3 6 12 15 28 33 42 51 52 61 66
Option Subnet mask Time offset Router Domain name server Host name Domain name Broadcast address Static route NTP servers IP address lease time Option overload Client-identifier TFTP server name
If a BOOTP response is received from a BOOTP server, the switch sets the in-band (sc0) interface IP address to the address specified in the BOOTP response. If no DHCPOFFER message or BOOTP response is received in reply, the switch rebroadcasts the request using an exponential backoff algorithm (the amount of time between requests increases exponentially). If no response is received after ten minutes, the sc0 interface IP address remains set to 0.0.0.0 (provided that BOOTP and RARP requests fail as well). If you reset or power cycle a switch with a DHCP- or BOOTP-obtained IP address, the information learned from DHCP or BOOTP is retained. At bootup, the switch attempts to renew the lease on the IP address. If no reply is received, the switch retains the current IP address.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
3-3
If no reply is received, the sc0 interface IP address remains set to 0.0.0.0 (provided that DHCP requests fail as well). If you reset or power cycle a switch with a BOOTP or RARP-obtained IP address, the information learned from BOOTP or RARP is retained.
IP address for the switch (sc0 interface only) Subnet mask/number of subnet bits (sc0 interface only) (Optional) Broadcast address (sc0 interface only) VLAN membership (sc0 interface only) SLIP and SLIP destination addresses (sl0 interface only) Interface connection type
In-band (sc0) interface: Configure this interface when assigning an IP address, subnet mask, and
Caution
Do not erase the boot loader image; this image must always remain as the first image on the MSFC bootflash as it is always used as the first image to boot.
Note
Before you can use a system image stored on the supervisor engine Flash PC card, you must set the BOOTLDR environment variable. In privileged mode, enter the boot bootldr bootflash:boot_loader_image command. To store the system image on the supervisor Flash PC card, you need to change the configuration on the MSFC to boot the MSFC from the appropriate image on the Flash PC card by adding the following command to the MSFC configuration:
boot sup-slot0:system_image
In the above example, system_image is the name of the desired image on the supervisor Flash PC card.
3-4
78-13315-02
Chapter 3
Configuring the Switch IP Address and Default Gateway Default IP Address and Default Gateway Configuration
Note
To boot a system image stored on the supervisor engine Flash PC card, at least one VLAN interface must be configured and active. By following this recommendation, there is really no need to store new system images on the bootflash. If desired, you can update the system image on the bootflash from an image on the supervisor engine Flash PC card by entering these commands:
delete bootflash:old_system_image squeeze bootflash: copy sup-slot0:new_system_image bootflash:
Feature In-band (sc0) interface Default gateway address SLIP (sl0) interface
1
Default Value
IP address, subnet mask, and broadcast address set to 0.0.0.0 Assigned to VLAN 1 IP address and SLIP destination address set to 0.0.0.0 SLIP for the console port is not active (set to detach)
Command
Assign an IP address, subnet mask (or number of set interface sc0 [ip_addr[/netmask] [broadcast]] subnet bits), and (optional) broadcast address to the in-band (sc0) interface. Assign the in-band interface to the proper VLAN set interface sc0 [vlan] (make sure the VLAN is associated with the network to which the IP address belongs). If necessary, bring the interface up. Verify the interface configuration. set interface sc0 up show interface
Step 2
Step 3 Step 4
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
3-5
This example shows how to assign an IP address, specify the number of subnet bits, and specify the VLAN assignment for the in-band (sc0) interface:
Console> (enable) set interface sc0 172.20.52.124/29 Interface sc0 IP address and netmask set. Console> (enable) set interface sc0 5 Interface sc0 vlan set. Console> (enable)
This example shows how to specify the VLAN assignment, assign an IP address, specify the subnet mask in dotted decimal format, and verify the configuration:
Console> (enable) set interface sc0 5 172.20.52.124/255.255.255.248 Interface sc0 vlan set, IP address and netmask set. Console> (enable) show interface sl0: flags=51<UP,POINTOPOINT,RUNNING> slip 0.0.0.0 dest 0.0.0.0 sc0: flags=63<UP,BROADCAST,RUNNING> vlan 5 inet 172.20.52.124 netmask 255.255.255.248 broadcast 172.20.52.17 Console> (enable)
Note
In some cases, you might want to configure static IP routes in addition to default gateways. For information on configuring static routes, see the Configuring Static Routes section on page 20-7. You can define up to three default IP gateways. Use the primary keyword to make a gateway the primary gateway. If you do not specify a primary default gateway, the first gateway configured is the primary gateway. If more than one gateway is designated as primary, the last primary gateway configured is the primary default gateway. The switch sends all off-network IP traffic to the primary default gateway. If connectivity to the primary gateway is lost, the switch attempts to use the backup gateways in the order they were configured. The switch sends periodic ping messages to determine whether each default gateway is up or down. If connectivity to the primary gateway is restored, the switch resumes sending traffic to the primary gateway. To configure one or more default gateways, perform this task in privileged mode: Task Command set ip route default gateway [metric] [primary]
(Optional) Configure additional default gateways set ip route default gateway [metric] [primary] for the switch. Verify that the default gateways appear correctly in the IP routing table. show ip route
3-6
78-13315-02
Chapter 3
Configuring the Switch IP Address and Default Gateway Configuring the SLIP (sl0) Interface on the Console Port
To remove default gateway entries, perform one of these tasks in privileged mode: Task Clear an individual default gateway entry. Clear all default gateways and static routes. Command clear ip route default gateway clear ip route all
This example shows how to configure three default gateways on the switch and how to verify the default gateway configuration:
Console> (enable) set ip route default 10.1.1.10 Route added. Console> (enable) set ip route default 10.1.1.20 Route added. Console> (enable) set ip route default 10.1.1.1 primary Route added. Console> (enable) show ip route Fragmentation Redirect Unreachable -----------------------------enabled enabled enabled The primary gateway: 10.1.1.1 Destination Gateway --------------- --------------default 10.1.1.1 default 10.1.1.20 default 10.1.1.10 10.0.0.0 10.1.1.100 default default Console> (enable)
Flags ----UG G G U UH
Use -------6 0 0 75 0
You must use the console port for the SLIP connection. When the SLIP connection is enabled and SLIP is attached on the console port, an EIA/TIA-232 terminal cannot connect through the console port. If you are connected to the switch CLI through the console port and you enter the slip attach command, you will lose the console port connection. Use Telnet to access the switch, enter privileged mode, and enter the slip detach command to restore the console port connection. To enable and attach SLIP on the console port, perform this task: Task Command enable set interface sl0 slip_addr dest_addr show interface slip attach
Access the switch from a remote host with Telnet. telnet {host_name | ip_addr} Enter privileged mode on the switch. Set the console port SLIP address and the destination address of the attached host. Verify the SLIP interface configuration. Enable SLIP for the console port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
3-7
Access the switch from a remote host with Telnet. telnet {host_name | ip_addr} Enter privileged mode on the switch. Disable SLIP for the console port.
This example shows how to configure SLIP on the console port and verify the configuration:
sparc20% telnet 172.20.52.38 Trying 172.20.52.38 ... Connected to 172.20.52.38. Escape character is '^]'. Cisco Systems, Inc. Console Enter password: Console> enable Enter password: Console> (enable) set interface sl0 10.1.1.1 10.1.1.2 Interface sl0 slip and destination address set. Console> (enable) show interface sl0: flags=51<UP,POINTOPOINT,RUNNING> slip 10.1.1.1 dest 10.1.1.2 sc0: flags=63<UP,BROADCAST,RUNNING> vlan 522 inet 172.20.52.38 netmask 255.255.255.240 broadcast 172.20.52.7 Console> (enable) slip attach Console Port now running SLIP. Console> (enable) slip detach SLIP detached on Console port. Console> (enable)
3-8
78-13315-02
Chapter 3
Configuring the Switch IP Address and Default Gateway Using BOOTP, DHCP, or RARP to Obtain an IP Address
For complete information on how the switch uses BOOTP, DHCP, or RARP to obtain its IP configuration, see the Understanding Automatic IP Configuration section on page 3-ii. To use BOOTP, DHCP, or RARP to obtain an IP address for the switch, perform this task: Task Command
Step 1 Step 2
Make sure that there is a DHCP, BOOTP, or RARP server on the network.
Obtain the last address in the MAC address range show module for module 1 (the supervisor engine). This address is displayed under the MAC-Address(es) heading. (With DHCP, this step is necessary only if using the manual allocation method.) Add an entry for each switch in the DHCP, BOOTP, or RARP server configuration, mapping the MAC address of the switch to the IP configuration information for the switch. (With DHCP, this step is necessary only if using the manual or automatic allocation methods.) Set the sc0 interface IP address to 0.0.0.0. Reset the switch. The switch broadcasts DHCP and RARP requests only when the switch boots up. When the switch reboots, confirm that the sc0 interface IP address, subnet mask, and broadcast address are set correctly. set interface sc0 0.0.0.0 reset system
Step 3
Step 4 Step 5
Step 6
show interface
Step 7
For DHCP, confirm that other options (such as the show ip route default gateway address) are set correctly. This example shows the switch broadcasting a DHCP request, receiving a DHCP offer, and configuring the IP address and other IP parameters according to the contents of the DHCP offer:
Console> (enable) Sending RARP request with address 00:90:0c:5a:8f:ff Sending DHCP packet with address: 00:90:0c:5a:8f:ff dhcpoffer Sending DHCP packet with address: 00:90:0c:5a:8f:ff Timezone set to '', offset from UTC is 7 hours 58 minutes Timezone set to '', offset from UTC is 7 hours 58 minutes 172.16.30.32 added to DNS server table as primary server. 172.16.31.32 added to DNS server table as backup server. 172.16.32.32 added to DNS server table as backup server. NTP server 172.16.25.253 added NTP server 172.16.25.252 added %MGMT-5-DHCP_S:Assigned IP address 172.20.25.244 from DHCP Server 172.20.25.254
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
3-9
Console> (enable) show interface sl0: flags=51<UP,POINTOPOINT,RUNNING> slip 0.0.0.0 dest 0.0.0.0 sc0: flags=63<UP,BROADCAST,RUNNING> vlan 1 inet 172.20.25.244 netmask 255.255.255.0 broadcast 172.20.25.255 dhcp server: 172.20.25.254 Console>
Renew the lease on a DHCP-assigned IP address Release the lease on a DHCP-assigned IP address
To renew or release a DHCP-assigned IP address on the in-band (sc0) management interface, perform one of these tasks in privileged mode: Task Command
Renew the lease on a DHCP-assigned IP address. set interface sc0 dhcp renew Release the lease on a DHCP-assigned IP address. set interface sc0 dhcp release This example shows how to renew the lease on a DHCP-assigned IP address:
Console> (enable) set interface sc0 dhcp renew Renewing IP address... Console> (enable) Sending DHCP packet with address: 00:90:0c:5a:8f:ff <...output truncated...>
3-10
78-13315-02
C H A P T E R
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Ethernet Works, page 4-i Default Ethernet, Fast Ethernet, and Gigabit Ethernet Configuration, page 4-iii Setting the Port Configuration, page 4-iv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-1
Switching Frames Between Segments, page 4-ii Building the Address Table, page 4-ii Understanding How Port Negotiation Works, page 4-ii
Port negotiation does not involve negotiating port speed. You cannot disable port negotiation with the set port speed command. Port negotiation exchanges flow-control parameters, remote fault information, and duplex information. Configure port negotiation with the set port negotiation command. Port negotiation is enabled by default. The ports on both ends of a link must have the same setting. The link will not come up if the ports at each end of the link are set inconsistently (port negotiation enabled on one port and disabled on the other).
4-2
78-13315-02
Chapter 4
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Default Ethernet, Fast Ethernet, and Gigabit Ethernet Configuration
Table 1 shows the four possible port negotiation configurations and the resulting link status for each configuration.
Table 4-1 Port Negotiation Configuration and Possible Link Status
1. Near End refers to the local port. 2. Far End refers to the port at the other end of the link.
Half duplex for 10-Mbps Ethernet ports Autonegotiate speed and duplex for 10/100-Mbps Fast Ethernet ports Autonegotiate duplex for 100-Mbps Fast Ethernet ports Full duplex for 1000-Mbps Gigabit Ethernet ports
Flow control (Gigabit Ethernet) Flow control set to off for receive (Rx) and desired for transmit (Tx) Flow control (other Ethernet) Spanning Tree Protocol (STP) Native VLAN Port VLAN cost Flow control set to off for receive (Rx); transmit (Tx) not supported Enabled for VLAN 1 VLAN 1
Port VLAN cost of 100 for 10-Mbps Ethernet ports Port VLAN cost of 19 for 10/100-Mbps Fast Ethernet ports Port VLAN cost of 19 for 100-Mbps Fast Ethernet ports Port VLAN cost of 4 for 1000-Mbps Gigabit Ethernet ports
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-3
Setting the Port Name, page 4-iv Setting the Port Speed, page 4-v Setting the Port Duplex Mode, page 4-v Configuring IEEE 802.3Z Flow Control, page 4-vi Enabling and Disabling Port Negotiation, page 4-vii Changing the Default Port Enable State, page 4-vii Setting the Port Debounce Timer, page 4-viii Configuring a Timeout Period for Ports in errdisable State, page 4-ix Configuring the Jumbo Frame Feature, page 4-xi Checking Connectivity, page 4-xiii
This example shows how to set the name for ports 1/1 and 1/2 and how to verify that the port names are configured correctly:
Console> (enable) set port name 1/1 Port 1/1 name set. Console> (enable) set port name 1/2 Port 1/2 name set. Console> (enable) show port 1 Port Name Status ----- ------------------ ---------1/1 Router Connection connected 1/2 Server Link connected <...output truncated...> Last-Time-Cleared -------------------------Wed Jun 16 1999, 16:25:57 Console> (enable) Router Connection Server Link
Duplex Speed Type ------ ----- -----------full 1000 1000BaseSX full 1000 1000BaseSX
4-4
78-13315-02
Chapter 4
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Setting the Port Configuration
Note
If the port speed is set to auto on a 10/100-Mbps Ethernet port, both speed and duplex are autonegotiated. To set the port speed for a 10/100-Mbps port, perform this task in privileged mode: Task Command
Step 1 Step 2
Set the port speed of a 10/100-Mbps Fast Ethernet set port speed mod/port {10 | 100 | auto} port. Verify that the speed of the port is configured correctly. show port [mod[/port]]
This example shows how to set the port speed to 100 Mbps on port 2/2:
Console> (enable) set port speed 2/2 100 Port 2/2 speed set to 100 Mbps. Console> (enable)
This example shows how to make port 2/1 autonegotiate speed and duplex with the neighboring port:
Console> (enable) set port speed 2/1 auto Port 2/1 speed set to auto-sensing mode. Console> (enable)
Note
Gigabit Ethernet is full duplex only. You cannot change the duplex mode on Gigabit Ethernet ports.
Note
If the port speed is set to auto on a 10/100-Mbps Ethernet port, both speed and duplex are autonegotiated. You cannot change the duplex mode of autonegotiation ports. To set the duplex mode of a port, perform this task in privileged mode: Task Command set port duplex mod/port {full | half} show port [mod[/port]]
Step 1 Step 2
Set the duplex mode of a port. Verify that the duplex mode of the port is configured correctly.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-5
This example shows how to set the duplex mode to half duplex on port 2/1:
Console> (enable) set port duplex 2/1 half Port 2/1 set to half-duplex. Console> (enable)
Keywords receive on receive desired receive off send on1 send desired1 send off1
Function The port uses flow control dictated by the neighboring port. The port uses flow control if the neighboring port uses it and does not use flow control if the neighboring port does not use it. The port does not use flow control, regardless of whether flow control is requested by the neighboring port. The port sends flow-control frames to the neighboring port. The port sends flow-control frames to the port if the neighboring port asks to use flow control. The port does not send flow-control frames to the neighboring port.
Command set port flowcontrol mod/port {receive | send} {off | on | desired} show port flowcontrol
This example shows how to turn transmit and receive flow control on and how to verify the flow-control configuration:
Console> Port 3/1 Console> Port 3/1 (enable) set port flowcontrol 3/1 send on will send flowcontrol to far end. (enable) set port flowcontrol 3/1 receive on will require far end to send flow control
4-6
78-13315-02
Chapter 4
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Setting the Port Configuration
Console> (enable) show port flowcontrol Port Send-Flowcontrol Receive-Flowcntl Admin Oper Admin Oper ----- ---------------- ---------------3/1 on disagree on disagree 3/2 off off off off 3/3 desired on desired off Console> (enable)
RxPause ------0 0 10
TxPause ------0 0 10
Command set port negotiation mod/port enable show port negotiation [mod/port]
This example shows how to enable port negotiation and verify the configuration:
Console> (enable) set port negotiation 2/1 enable Port 2/1 negotiation enabled Console> (enable) show port negotiation 2/1 Port Link Negotiation ----- ---------------2/1 enabled Console> (enable)
Command set port negotiation mod/port disable show port negotiation [mod/port]
This example shows how to disable port negotiation and verify the configuration:
Console> (enable) set port negotiation 2/1 disable Port 2/1 negotiation disabled Console> (enable) show port negotiation 2/1 Port Link Negotiation ----- ---------------2/1 disabled Console> (enable)
Changing the default port enable state applies to all port types, not just Ethernet.
Note
This feature is not supported on systems that do not have a chassis ID PROM.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-7
When you enter the clear config all command or in the event of a configuration loss, all ports collapse into VLAN 1. This might cause a security and network instability problem. Entering the set default portstatus command puts all ports into a disable state and blocks the traffic flowing through the ports during a configuration loss. You can then manually configure the ports back to the enable state. The default port status configuration is stored on the chassis. This means it is tied to a chassis and not the supervisor engine. The clear config all command uses this setting to determine whether ports should be enabled or disabled when returning to default configuration. The clear config all command does not change the default port status setting on the chassis. The output of the show config command shows the current default port status configuration. To change the port enable state, perform this task in privileged mode: Task
Step 1 Step 2
Change the port enable state. Display the port enable state.
This example shows how to change the default port enable state from enabled to disabled:
Console> (enable) set default portstatus disable Default port status set to disable. Console> (enable)
Caution
Enabling the port debounce timer causes link up and link down detections to be delayed, resulting in loss of data traffic during the debouncing period. This situation might affect the convergence and reconvergence of various Layer 2 and Layer 3 protocols.
4-8
78-13315-02
Chapter 4
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Setting the Port Configuration
Table 4 lists the time delay that occurs before the switch notifies the main processor of a link change before and after the switch enables the debounce timer.
Table 4-4 Port Debounce Timer Delay Time
Port Type 10BASE-FL ports 10/100BASE-TX ports 100BASE-FX ports 10/100/1000BASE-TX ports 1000BASE-TX ports 1000BASE-FX ports
Debounce Timer Disabled 300 milliseconds 300 milliseconds 300 milliseconds 300 milliseconds 300 milliseconds 10 milliseconds
Debounce Timer Enabled 3100 milliseconds 3100 milliseconds 3100 milliseconds 3100 milliseconds 3100 milliseconds 100 milliseconds
To set the debounce timer on a port, perform this task in privileged mode: Task
Step 1 Step 2
Command set port debounce mod num/port num {enable | disable} show port debounce [mod | mod_num/port_num]
Enable the debounce timer for a port. Verify that the debounce timer of the port is configured correctly.
This example shows how to enable the debounce timer on port 2/1:
Console> (enable) set port debounce 2/1 enable Link debounce enabled on port 2/1 Console> (enable)
This example shows how to display the per-port debounce timer settings:
Console> (enable) show port debounce Port Link debounce ----- --------------2/1 enable 2/2 disable Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-9
A port enters errdisable state for the following reasons (these reasons appear as configuration options with the set errdisable-timeout enable command):
Channel misconfiguration Duplex mismatch BPDU port-guard UDLD Other (reasons other than the above) All (apply errdisable timeout to all reasons)
You can enable or disable errdisable timeout for each of the above listed reasons. The ports in errdisable state for reasons other than the first four reasons are considered other. If you specify other, all ports errdisabled by causes other than the first four reasons are enabled for errdisable timeout. If you specify all, all ports errdisabled for any reason are enabled for errdisable timeout. The errdisable feature is disabled by default. The default interval for enabling a port is 300 seconds. The allowable interval range is 30 to 86400 seconds (30 seconds to 24 hours). This example shows how to enable errdisable timeout for BPDU guard causes:
Console> (enable) set errdisable-timeout enable bpdu-guard Successfully enabled errdisable-timeout for bpdu-guard. Console> (enable)
This example shows how to enable errdisable timeout for all causes:
Console> (enable) set errdisable-timeout enable all Successfully enabled errdisable-timeout for all. Console> (enable)
This example shows how to set the errdisable timeout interval to 450 seconds:
Console> (enable) set errdisable-timeout interval 450 Successfully set errdisable timeout to 450 seconds. Console> (enable)
4-10
78-13315-02
Chapter 4
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Setting the Port Configuration
Configuring the Jumbo Frame Feature on the Supervisor Engine, page 4-xi Configuring the Jumbo Frame Feature on MSFC2, page 4-xii
Note
The following modules only support a maximum of 8092 bytes: WS-X6148-RJ-45V, WS-X6148-RJ21V, WS-X6248-RJ-45, WS-X6248A-RJ-45, WS-X6248-TEL, WS-X6248A-TEL, WS-X6348-RJ-45, WS-X6348-RJ45V, WS-X6348-RJ-21, and WX-X6348-RJ21V. The WS-X6548-RJ-21 and WS-X6548-RJ-45 modules use different hardware at the PHY level and support the full jumbo frame default value of 9216 bytes.
Note
The WS-X6516-GE-TX (10/100/1000) module only supports a maximum of 8092 bytes at the 100 Mbps speed. At 10 Mbps and 1000 Mbps the module supports the jumbo frame default of 9216 bytes.
Jumbo frames are supported on all Optical Services Modules (OSMs). Jumbo frames are not supported on ATM modules (WS-X6101-OC12-SMF/MMF). The Multilayer Switching Feature Card 2 (MSFC2) supports routing of jumbo frames. The Gigabit Switch Router (GSR) supports routing of jumbo frames. The Multilayer Switching Feature Card (MSFC) and Multilayer Switch Module (MSM) do not support jumbo frame routing; if jumbo frames are sent to these routers, router performance is significantly degraded.
Note
Occasionally, you might see a Jumbo frames inconsistent state message for a port or multiple ports after entering the show port jumbo command. If this occurs, enter the set port jumbo command to reenable the ports.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-11
To enable the jumbo frames feature on an Ethernet port, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to enable the jumbo frames feature on a port and verify the configuration:
Console> (enable) set port jumbo 2/1 enable Jumbo frames enabled on port 2/1 Console> (enable) show port jumbo Jumbo frames MTU size is 9216 bytes Jumbo frames enabled on port(s) 2/1
To disable the jumbo frames feature on an Ethernet port, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to disable the jumbo frames feature on a port:
Console> (enable) set port jumbo 2/1 disable Jumbo frames disabled on port 2/1 Console> (enable)
Command Router(config)# interface vlan vlan_ID Router(config-if)# mtu mtu_size Router# show interface vlan 111
Access VLAN interface configuration mode. Set the MTU size. Valid values are from 64 to 17952 bytes.1 Verify the configuration.
1.
Set the MTU size no larger than 9216, which is the size supported by the supervisor engine.
4-12
78-13315-02
Chapter 4
Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Switching Setting the Port Configuration
This example shows how to set the MTU size on a VLAN interface and verify the configuration:
Router(config)# interface vlan 111 Router(config-if)# mtu 9216 Router(config-if)# end Router# show interface vlan 111 <...Output Truncated...> MTU 9216 bytes, BW 1000000 Kbit, DLY 10 usec, <...Output Truncated...> Router#
Checking Connectivity
Use the ping and traceroute commands to test connectivity. To check connectivity out a port, perform this task in privileged mode: Task
Step 1 Step 2
Command
Ping a remote host that is located out the port you ping [-s] host [packet_size] [packet_count] want to test. Trace the hop-by-hop route of packets from the switch to a remote host located out the port you want to test. If the host is unresponsive, check the IP address and default gateway configured on the switch. traceroute host
Step 3
This example shows how to ping a remote host and how to trace the hop-by-hop path of packets through the network using traceroute:
Console> (enable) ping somehost somehost is alive Console> (enable) traceroute somehost traceroute to somehost.company.com (10.1.2.3), 30 hops max, 40 byte packets 1 engineering-1.company.com (173.31.192.206) 2 ms 1 ms 1 ms 2 engineering-2.company.com (173.31.196.204) 2 ms 3 ms 2 ms 3 gateway_a.company.com (173.16.1.201) 6 ms 3 ms 3 ms 4 somehost.company.com (10.1.2.3) 3 ms * 2 ms Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
4-13
4-14
78-13315-02
C H A P T E R
Note
For complete information on configuring VLANs, see Chapter 11, Configuring VLANs.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How VLAN Trunks Work, page 5-i Default Trunk Configuration, page 5-v Configuring a Trunk Link, page 5-v Example VLAN Trunk Configurations, page 5-ix Disabling VLAN 1 on Trunks, page 5-xxiv
Trunking Overview, page 5-i Trunking Modes and Encapsulation Types, page 5-ii 802.1Q Trunk Restrictions, page 5-iv
Trunking Overview
A trunk is a point-to-point link between one or more Ethernet switch ports 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 ports:
Inter-Switch Link (ISL)ISL is a Cisco-proprietary trunking encapsulation IEEE 802.1Q802.1Q is an industry-standard trunking encapsulation
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-1
You can configure a trunk on a single Ethernet port or on an EtherChannel bundle. For more information about EtherChannel, see Chapter 6, Configuring EtherChannel. Ethernet trunk ports support five different trunking modes (see Table 1). In addition, you can specify whether the trunk will use ISL encapsulation, 802.1Q encapsulation, or whether the encapsulation type will be autonegotiated. For trunking to be autonegotiated, the ports must be in the same VLAN Trunking Protocol (VTP) domain. However, you can use the on or nonegotiate mode to force a port to become a trunk, even if it is in a different domain. For more information on VTP domains, see Chapter 10, Configuring VTP. Trunk negotiation is managed by the Dynamic Trunking Protocol (DTP). DTP supports autonegotiation of both ISL and 802.1Q trunks.
Function Puts the port into permanent trunking mode and negotiates to convert the link into a trunk link. The port becomes a trunk port even if the neighboring port does not agree to the change. Puts the port into permanent nontrunking mode and negotiates to convert the link into a nontrunk link. The port becomes a nontrunk port even if the neighboring port does not agree to the change. Makes the port actively attempt to convert the link to a trunk link. The port becomes a trunk port if the neighboring port is set to on, desirable, or auto mode. Makes the port willing to convert the link to a trunk link. The port becomes a trunk port if the neighboring port is set to on or desirable mode. This is the default mode for all Ethernet ports. Puts the port into permanent trunking mode but prevents the port from generating DTP frames. You must configure the neighboring port manually as a trunk port to establish a trunk link. Table 2 lists the encapsulation types used with the set trunk command and describes how they function on Ethernet ports. You can use the show port capabilities command to determine which encapsulation types a particular port supports.
Table 5-2
Function Specifies ISL encapsulation on the trunk link. Specifies 802.1Q encapsulation on the trunk link. Specifies that the port negotiate with the neighboring port to become an ISL (preferred) or 802.1Q trunk, depending on the configuration and capabilities of the neighboring port. The trunking mode, the trunk encapsulation type, and the hardware capabilities of the two connected ports determine whether a trunk link comes up and the type of trunk the link becomes. Table 3 shows the result of the possible trunking configurations.
5-2
78-13315-02
Chapter 5
Table 5-3
Neighbor Port Trunk Mode and Trunk Encapsulation off isl or dot1q
Local Port Trunk Mode and Trunk Encapsulation off isl or dot1q Local: Nontrunk on isl Local: ISL trunk desirable isl Local: Nontrunk auto isl Local: Nontrunk on dot1q Local: 1Q trunk desirable dot1q Local: Nontrunk auto dot1q Local: Nontrunk desirable negotiate Local: Nontrunk auto negotiate Local: Nontrunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk Nontrunk Nontrunk Nontrunk Nontrunk Nontrunk Nontrunk Nontrunk Nontrunk on isl Local: Nontrunk Local: ISL trunk Local: ISL trunk Local: ISL trunk Local: Local: 1Q trunk1 Nontrunk Local: Nontrunk Local: ISL trunk Local: ISL trunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: ISL trunk ISL trunk ISL trunk ISL trunk ISL trunk 1 ISL trunk ISL trunk ISL trunk ISL trunk desirable isl Local: Nontrunk Local: ISL trunk Local: ISL trunk Local: ISL trunk Local: 1Q trunk Local: Nontrunk Local: Nontrunk Local: ISL trunk Local: ISL trunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk ISL trunk ISL trunk ISL trunk Nontrunk Nontrunk Nontrunk ISL trunk ISL trunk auto isl Local: Nontrunk Local: ISL trunk Local: ISL trunk Local: Nontrunk Local: 1Q trunk Local: Nontrunk Local: Nontrunk Local: ISL trunk Local: Nontrunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk ISL trunk ISL trunk Nontrunk Nontrunk Nontrunk Nontrunk ISL trunk Nontrunk on dot1q Local: Nontrunk Local: Local: ISL trunk1 Nontrunk Local: Nontrunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: 1Q trunk 1Q trunk1 1Q trunk 1Q trunk 1Q trunk 1Q trunk 1Q trunk 1Q trunk 1Q trunk desirable dot1q Local: Nontrunk Local: ISL trunk Local: Nontrunk Local: Nontrunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk Nontrunk Nontrunk Nontrunk 1Q trunk 1Q trunk 1Q trunk 1Q trunk 1Q trunk auto dot1q Local: Nontrunk Local: ISL trunk Local: Nontrunk Local: Nontrunk Local: 1Q trunk Local: 1Q trunk Local: Nontrunk Local: 1Q trunk Local: Nontrunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk Nontrunk Nontrunk Nontrunk 1Q trunk 1Q trunk Nontrunk 1Q trunk Nontrunk desirable negotiate Local: Nontrunk Local: ISL trunk Local: ISL trunk Local: ISL trunk Local: 1Q trunk Local: 1Q trunk Local: 1Q trunk Local: ISL trunk Local: ISL trunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk ISL trunk ISL trunk ISL trunk 1Q trunk 1Q trunk 1Q trunk ISL trunk ISL trunk auto negotiate Local: Nontrunk Local: ISL trunk Local: ISL trunk Local: Nontrunk Local: 1Q trunk Local: 1Q trunk Local: Nontrunk Local: ISL trunk Local: Nontrunk
Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Neighbor: Nontrunk ISL trunk ISL trunk Nontrunk 1Q trunk 1Q trunk Nontrunk ISL trunk Nontrunk
1. Using this configuration can result in spanning tree loops and is not recommended.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-3
Note
DTP is a point-to-point protocol. However, some internetworking devices might forward DTP frames improperly. To avoid this problem, ensure that trunking is turned off on ports connected to non-switch devices if you do not intend to trunk across those links. When manually enabling trunking on a link to a Cisco router, use the nonegotiate keyword to cause the port to become a trunk but not generate DTP frames.
When connecting Cisco switches through an 802.1Q trunk, make sure the native VLAN for an 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. Disabling spanning tree on the native VLAN of an 802.1Q trunk without disabling spanning tree on every VLAN in the network can cause spanning tree loops. We recommend that you leave spanning tree enabled on the native VLAN of an 802.1Q trunk. If this is not possible, disable spanning tree on every VLAN in the network. Make sure your network is free of physical loops before disabling spanning tree. When you connect two Cisco switches through 802.1Q trunks, the switches exchange spanning tree BPDUs on each VLAN allowed on the trunks. The BPDUs on the native VLAN of the trunk are sent untagged to the reserved IEEE 802.1D spanning tree multicast MAC address (01-80-C2-00-00-00). The BPDUs on all other VLANs on the trunk are sent tagged to the reserved Cisco Shared Spanning Tree (SSTP) multicast MAC address (01-00-0c-cc-cc-cd). Non-Cisco 802.1Q switches maintain only a single instance of spanning tree (the Mono Spanning Tree, or MST) that defines the spanning-tree topology for all VLANs. When you connect a Cisco switch to a non-Cisco switch through an 802.1Q trunk, the MST of the non-Cisco switch and the native VLAN spanning-tree of the Cisco switch combine to form a single spanning-tree topology known as the Common Spanning Tree (CST). When you connect a Cisco switch to a non-Cisco switch the CST is always on VLAN 1. The Cisco switch sends an untagged IEEE BDPU (01-80-C2-00-00-00) on VLAN 1 for the CST and on the native VLAN the Cisco switch sends an untagged Cisco BPDU (01-00-0C-CC-CC-CC) which the non-Cisco switch forwards but does not act on (the IEEE BPDU is not forwarded on the native VLAN).
Because Cisco switches transmit BPDUs to the SSTP multicast MAC address on VLANs other than the native VLAN of the trunk, non-Cisco switches do not recognize these frames as BPDUs and flood them on all ports in the corresponding VLAN. Other Cisco switches connected to the non-Cisco 802.1Q cloud receive these flooded BPDUs. This allows Cisco switches to maintain a per-VLAN spanning tree topology across a cloud of non-Cisco 802.1Q switches. The non-Cisco 802.1Q cloud separating the Cisco switches is treated as a single broadcast segment between all switches connected to the non-Cisco 802.1Q cloud through 802.1Q trunks. Make certain that the native VLAN is the same on ALL of the 802.1Q trunks connecting the Cisco switches to the non-Cisco 802.1Q cloud. If you are connecting multiple Cisco switches to a non-Cisco 802.1Q cloud, all of the connections MUST be through 802.1Q trunks. You CANNOT connect Cisco switches to a non-Cisco 802.1Q cloud through ISL trunks or through access ports. Doing so will cause the switch to place the ISL trunk port or access port into the spanning tree port inconsistent state and no traffic will pass through the port.
5-4
78-13315-02
Chapter 5
Configuring an ISL Trunk, page 5-v Configuring an 802.1Q Trunk, page 5-vi Configuring an ISL/802.1Q Negotiating Trunk Port, page 5-vii Defining the Allowed VLANs on a Trunk, page 5-viii Disabling a Trunk Port, page 5-ix
Command set trunk mod/port [on | desirable | auto | nonegotiate] isl show trunk [mod/port]
This example shows how to configure a port as a trunk and how to verify the trunk configuration. This example assumes that the neighboring port is in auto mode:
Console> (enable) set trunk 1/1 on Port(s) 1/1 trunk mode set to on. Console> (enable) 06/16/1998,22:16:39:DTP-5:Port 1/1 has become isl trunk 06/16/1998,22:16:40:PAGP-5:Port 1/1 left bridge port 1/1. 06/16/1998,22:16:40:PAGP-5:Port 1/1 joined bridge port 1/1. Console> (enable) show trunk Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------1/1 on isl trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------1/1 1-1005, 1025-4094
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-5
Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------1/1 1,521-524 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------1/1 Console> (enable)
This example shows how to place a port in desirable mode and how to verify the trunk configuration. This example assumes that the neighboring port is in auto mode:
Console> (enable) set trunk 1/2 desirable Port(s) 1/2 trunk mode set to desirable. Console> (enable) 06/16/1998,22:20:16:DTP-5:Port 1/2 has become isl trunk 06/16/1998,22:20:16:PAGP-5:Port 1/2 left bridge port 1/2. 06/16/1998,22:20:16:PAGP-5:Port 1/2 joined bridge port 1/2. Console> (enable) show trunk 1/2 Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------1/2 desirable isl trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------1/2 1-1005, 1025-4094 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------1/2 1,521-524 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------1/2 Console> (enable)
Command set trunk mod/port [on | desirable | auto | nonegotiate] dot1q show trunk [mod/port]
This example shows how to configure an 802.1Q trunk and how to verify the trunk configuration:
Console> (enable) Port(s) 2/9 trunk Port(s) 2/9 trunk Console> (enable) set trunk 2/9 desirable dot1q mode set to desirable. type set to dot1q. 07/02/1998,18:22:25:DTP-5:Port 2/9 has become dot1q trunk trunk Encapsulation ------------dot1q
Console> (enable) show Port Mode -------- ----------2/9 desirable Port -------2/9
Status -----------trunking
5-6
78-13315-02
Chapter 5
Port -------2/9
Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------2/9 5,10-32,101-120,150,200,250,300,400,500,600,700,800,900,1000 Console> (enable)
Command set trunk mod/port [on | desirable | auto | nonegotiate] negotiate show trunk [mod/port]
Configure a port to negotiate the trunk encapsulation type. Verify the trunking configuration.
This example shows how to configure a port to negotiate the encapsulation type and how to verify the trunk configuration. This example assumes that the neighboring port is in auto mode with encapsulation set to isl or negotiate.
Console> (enable) set trunk 4/11 desirable negotiate Port(s) 4/11 trunk mode set to desirable. Port(s) 4/11 trunk type set to negotiate. Console> (enable) show trunk 4/11 Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------4/11 desirable n-isl trunking 1 Port -------4/11 Port -------4/11 Vlans allowed on trunk --------------------------------------------------------------------1-1005,1025-4094 Vlans allowed and active in management domain --------------------------------------------------------------------1,5,10-32,55,101-120,998-1000
Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------4/11 1,5,10-32,55,101-120,998-1000 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-7
Note
When you first configure a port as a trunk, entering the set trunk command always adds all VLANs to the allowed VLAN list for the trunk, even if you specify a VLAN range (any specified VLAN range is ignored). To modify the allowed VLANs list, use a combination of the clear trunk and set trunk commands to specify the allowed VLANs. To define the allowed VLAN list for a trunk port, perform this task in privileged mode: Task Command
Remove VLANs from the allowed VLANs list for clear trunk mod/port vlans a trunk. (Optional) Add specific VLANs to the allowed VLANs list for a trunk. Verify the allowed VLAN list for the trunk. set trunk mod/port vlans show trunk [mod/port]
This example shows how to define the allowed VLANs list to allow VLANs 1100, VLANs 5001005, and VLAN 2500 on trunk port 1/1 and how to verify the allowed VLAN list for the trunk:
Console> (enable) clear trunk 1/1 101-499 Removing Vlan(s) 101-499 from allowed list. Port 1/1 allowed vlans modified to 1-100,500-1005. Console> (enable) set trunk 1/1 2500 Adding vlans 2500 to allowed list. Port(s) 1/1 allowed vlans modified to 1-100,500-1005,2500. Console> (enable) show trunk 1/1 Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------1/1 desirable isl trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------1/1 1-100, 500-1005,2500 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------1/1 1,521-524 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------1/1 1,521-524 Console> (enable)
5-8
78-13315-02
Chapter 5
To return a port to the default trunk type and mode for that port type, perform this task in privileged mode: Task
Step 1 Step 2
Return the port to the default trunking type and mode for that port type. Verify the trunking configuration.
ISL Trunk Configuration Example, page 5-ix ISL Trunk Over EtherChannel Link Example, page 5-x 802.1Q Trunk Over EtherChannel Link Example, page 5-xiii Load-Sharing VLAN Traffic Over Parallel Trunks Example, page 5-xvii
Configure port 1/1 on Switch 1 as an ISL trunk port by entering the set trunk command. By specifying the desirable keyword, the trunk is automatically negotiated with the neighboring port (port 1/2 on Switch 2). ISL encapsulation is assumed based on the hardware type.
Switch1> (enable) set trunk 1/1 desirable Port(s) 1/1 trunk mode set to desirable. Switch1> (enable) 06/18/1998,12:20:23:DTP-5:Port 1/1 has become isl trunk 06/18/1998,12:20:23:PAGP-5:Port 1/1 left bridge port 1/1. 06/18/1998,12:20:23:PAGP-5:Port 1/1 joined bridge port 1/1. Switch1> (enable)
Step 2
Check the configuration by entering the show trunk command. The Status field in the screen output indicates that port 1/1 is trunking.
Switch1> (enable) show trunk 1/1 Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------1/1 desirable isl trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------1/1 1-1005, 1025-4094 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------1/1 1,521-524
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-9
Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------1/1 Switch1> (enable)
Step 3
Define the allowed VLAN list for the trunk by entering the clear trunk command to remove the VLANs that should not pass traffic over the trunk link.
Switch1> Removing Port 1/1 Switch1> Removing Port 1/1 Switch1> Port -------1/1 Port -------1/1 Port -------1/1 Port -------1/1 Switch1> (enable) clear trunk 1/1 2-519 Vlan(s) 2-519 from allowed list. allowed vlans modified to 1,520-1005. (enable) clear trunk 1/1 531-1005 Vlan(s) 531-1005 from allowed list. allowed vlans modified to 1,520-530. (enable) show trunk 1/1 Mode Encapsulation Status Native vlan ----------- ------------- ------------ ----------desirable isl trunking 1 Vlans allowed on trunk --------------------------------------------------------------------1,520-530 Vlans allowed and active in management domain --------------------------------------------------------------------1,521-524 Vlans in spanning tree forwarding state and not pruned --------------------------------------------------------------------1,521-524 (enable)
Step 4
Switch A
1/1 1/2
3/1 3/2
Switch B
This example shows how to configure the switches to form a two-port EtherChannel bundle and then configure the EtherChannel bundle as an ISL trunk link.
5-10
23925
78-13315-02
Chapter 5
Step 1
Confirm the channeling and trunking status of the switches by entering the show port channel and show trunk commands.
Switch_A> (enable) show port channel No ports channelling Switch_A> (enable) show trunk No ports trunking. Switch_A> (enable) Switch_B> (enable) show port channel No ports channelling Switch_B> (enable) show trunk No ports trunking. Switch_B> (enable)
Step 2
Configure the ports on Switch A to negotiate an EtherChannel bundle with the neighboring switch by entering the set port channel command. This example assumes that the neighboring ports on Switch B are in EtherChannel auto mode. The system logging messages provide information about the formation of the EtherChannel bundle.
Switch_A> (enable) set port channel 1/1-2 desirable Port(s) 1/1-2 channel mode set to desirable. Switch_A> (enable) %PAGP-5-PORTFROMSTP:Port 1/1 left bridge port 1/1 %PAGP-5-PORTFROMSTP:Port 1/2 left bridge port 1/2 %PAGP-5-PORTFROMSTP:Port 1/2 left bridge port 1/2 %PAGP-5-PORTTOSTP:Port 1/1 joined bridge port 1/1-2 %PAGP-5-PORTTOSTP:Port 1/2 joined bridge port 1/1-2 Switch_B> (enable) %PAGP-5-PORTFROMSTP:Port 3/1 left bridge port 3/1 %PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/2 %PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/2 %PAGP-5-PORTTOSTP:Port 3/1 joined bridge port 3/1-2 %PAGP-5-PORTTOSTP:Port 3/2 joined bridge port 3/1-2
Step 3
After the EtherChannel bundle is negotiated, verify the configuration by entering the show port channel command.
Switch_A> (enable) show port channel Port Status Channel Channel mode status ----- ---------- --------- ----------1/1 connected desirable channel 1/2 connected desirable channel ----- ---------- --------- ----------Switch_A> (enable) Switch_B> (enable) show port channel Port Status Channel Channel mode status ----- ---------- --------- ----------3/1 connected auto channel 3/2 connected auto channel ----- ---------- --------- ----------Switch_B> (enable) Neighbor device ------------------------WS-C5000 009979082(Sw WS-C5000 009979082(Sw ------------------------Neighbor port ---------3/1 3/2 ----------
Step 4
Configure one of the ports in the EtherChannel bundle to negotiate an ISL trunk by entering the set trunk command. The configuration is applied to all of the ports in the bundle. This example assumes that the neighboring ports on Switch B are configured to use isl or negotiate encapsulation and are in auto trunk mode. The system logging messages provide information about the formation of the ISL trunk.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-11
Switch_A> (enable) set trunk 1/1 desirable isl Port(s) 1/1-2 trunk mode set to desirable. Port(s) 1/1-2 trunk type set to isl. Switch_A> (enable) %DTP-5-TRUNKPORTON:Port 1/1 has become isl trunk %DTP-5-TRUNKPORTON:Port 1/2 has become isl trunk %PAGP-5-PORTFROMSTP:Port 1/1 left bridge port 1/1-2 %PAGP-5-PORTFROMSTP:Port 1/2 left bridge port 1/1-2 %PAGP-5-PORTTOSTP:Port 1/1 joined bridge port 1/1-2 %PAGP-5-PORTTOSTP:Port 1/2 joined bridge port 1/1-2 Switch_B> (enable) %DTP-5-TRUNKPORTON:Port 3/1 has become isl trunk %DTP-5-TRUNKPORTON:Port 3/2 has become isl trunk %PAGP-5-PORTFROMSTP:Port 3/1 left bridge port 3/1-2 %PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/1-2 %PAGP-5-PORTTOSTP:Port 3/1 joined bridge port 3/1-2 %PAGP-5-PORTTOSTP:Port 3/2 joined bridge port 3/1-2
Step 5
After the ISL trunk link is negotiated, verify the configuration by entering the show trunk command.
Switch_A> Port -------1/1 1/2 Port -------1/1 1/2 Port -------1/1 1/2 Port -------1/1 1/2 Switch_A> Switch_B> Port -------3/1 3/2 Port -------3/1 3/2 Port -------3/1 3/2 Port -------3/1 3/2 Switch_B> (enable) show trunk Mode Encapsulation ----------- ------------desirable isl desirable isl Status -----------trunking trunking Native vlan ----------1 1
Vlans allowed on trunk --------------------------------------------------------------------1-1005, 1025-4094 1-1005, 1025-4094 Vlans allowed and active in management domain --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 Vlans in spanning tree forwarding state and not pruned --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 (enable) (enable) show trunk Mode Encapsulation ----------- ------------auto isl auto isl
Vlans allowed on trunk --------------------------------------------------------------------1-1005, 1025-4094 1-1005, 1025-4094 Vlans allowed and active in management domain --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 Vlans in spanning tree forwarding state and not pruned --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,801,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,801,850,917,999 (enable)
5-12
78-13315-02
Chapter 5
Switch A
This example shows how to configure the switches to form a four-port EtherChannel bundle and then configure the EtherChannel bundle as an 802.1Q trunk link.
Step 1
Make sure all ports on both Switch A and Switch B are assigned to the same VLAN by entering the set vlan command. This VLAN is used as the 802.1Q native VLAN for the trunk. In this example, all ports are configured as members of VLAN 1.
Switch_A> (enable) set vlan 1 2/3-6 VLAN Mod/Ports ---- ----------------------1 2/1-6 Switch_A> (enable) Switch_B> (enable) set vlan 1 3/3-6 VLAN Mod/Ports ---- ----------------------1 3/1-6 Switch_B> (enable)
Step 2
Confirm the channeling and trunking status of the switches by entering the show port channel and show trunk commands.
Switch_A> (enable) show port channel No ports channelling Switch_A> (enable) show trunk No ports trunking. Switch_A> (enable) Switch_B> (enable) show port channel No ports channelling Switch_B> (enable) show trunk No ports trunking. Switch_B> (enable)
Step 3
Configure the ports on Switch A to negotiate an EtherChannel bundle with the neighboring switch by entering the set port channel command. This example assumes that the neighboring ports on Switch B are in EtherChannel auto mode. The system logging messages provide information about the formation of the EtherChannel bundle.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23848
Gigabit EtherChannel
5-13
Switch_A> (enable) set port channel 2/3-6 desirable Port(s) 2/3-6 channel mode set to desirable. Switch_A> (enable) %PAGP-5-PORTFROMSTP:Port 2/3 left bridge port 2/3 %PAGP-5-PORTFROMSTP:Port 2/4 left bridge port 2/4 %PAGP-5-PORTFROMSTP:Port 2/5 left bridge port 2/5 %PAGP-5-PORTFROMSTP:Port 2/6 left bridge port 2/6 %PAGP-5-PORTFROMSTP:Port 2/4 left bridge port 2/4 %PAGP-5-PORTFROMSTP:Port 2/5 left bridge port 2/5 %PAGP-5-PORTFROMSTP:Port 2/6 left bridge port 2/6 %PAGP-5-PORTFROMSTP:Port 2/3 left bridge port 2/3 %PAGP-5-PORTTOSTP:Port 2/3 joined bridge port 2/3-6 %PAGP-5-PORTTOSTP:Port 2/4 joined bridge port 2/3-6 %PAGP-5-PORTTOSTP:Port 2/5 joined bridge port 2/3-6 %PAGP-5-PORTTOSTP:Port 2/6 joined bridge port 2/3-6 Switch_B> (enable) %PAGP-5-PORTFROMSTP:Port 3/3 left bridge port 3/3 %PAGP-5-PORTFROMSTP:Port 3/4 left bridge port 3/4 %PAGP-5-PORTFROMSTP:Port 3/5 left bridge port 3/5 %PAGP-5-PORTFROMSTP:Port 3/6 left bridge port 3/6 %PAGP-5-PORTFROMSTP:Port 3/4 left bridge port 3/4 %PAGP-5-PORTFROMSTP:Port 3/5 left bridge port 3/5 %PAGP-5-PORTFROMSTP:Port 3/6 left bridge port 3/6 %PAGP-5-PORTFROMSTP:Port 3/3 left bridge port 3/3 %PAGP-5-PORTTOSTP:Port 3/3 joined bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/4 joined bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/5 joined bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/6 joined bridge port 3/3-6
Step 4
After the EtherChannel bundle is negotiated, verify the configuration by entering the show port channel command.
Switch_A> (enable) show port channel Port Status Channel Channel mode status ----- ---------- --------- ----------2/3 connected desirable channel 2/4 connected desirable channel 2/5 connected desirable channel 2/6 connected desirable channel ----- ---------- --------- ----------Switch_A> (enable) Switch_B> (enable) show port channel Port Status Channel Channel mode status ----- ---------- --------- ----------3/3 connected auto channel 3/4 connected auto channel 3/5 connected auto channel 3/6 connected auto channel ----- ---------- --------- ----------Switch_B> (enable) Neighbor device ------------------------WS-C4003 JAB023806(Sw WS-C4003 JAB023806(Sw WS-C4003 JAB023806(Sw WS-C4003 JAB023806(Sw ------------------------Neighbor port ---------2/3 2/4 2/5 2/6 ----------
Neighbor device ------------------------WS-C4003 JAB023806(Sw WS-C4003 JAB023806(Sw WS-C4003 JAB023806(Sw WS-C4003 JAB023806(Sw -------------------------
Step 5
Configure one of the ports in the EtherChannel bundle to negotiate an 802.1Q trunk by entering the set trunk command. The configuration is applied to all of the ports in the bundle. This example assumes that the neighboring ports on Switch B are configured to use dot1q or negotiate encapsulation and are in auto trunk mode. The system logging messages provide information about the formation of the 802.1Q trunk.
Switch_A> (enable) set trunk 2/3 desirable dot1q Port(s) 2/3-6 trunk mode set to desirable. Port(s) 2/3-6 trunk type set to dot1q. Switch_A> (enable) %DTP-5-TRUNKPORTON:Port 2/3 has become dot1q trunk
5-14
78-13315-02
Chapter 5
%DTP-5-TRUNKPORTON:Port 2/4 has become dot1q trunk %PAGP-5-PORTFROMSTP:Port 2/3 left bridge port 2/3-6 %DTP-5-TRUNKPORTON:Port 2/5 has become dot1q trunk %PAGP-5-PORTFROMSTP:Port 2/4 left bridge port 2/3-6 %PAGP-5-PORTFROMSTP:Port 2/5 left bridge port 2/3-6 %DTP-5-TRUNKPORTON:Port 2/6 has become dot1q trunk %PAGP-5-PORTFROMSTP:Port 2/6 left bridge port 2/3-6 %PAGP-5-PORTFROMSTP:Port 2/3 left bridge port 2/3 %PAGP-5-PORTTOSTP:Port 2/3 joined bridge port 2/3-6 %PAGP-5-PORTTOSTP:Port 2/4 joined bridge port 2/3-6 %PAGP-5-PORTTOSTP:Port 2/5 joined bridge port 2/3-6 %PAGP-5-PORTTOSTP:Port 2/6 joined bridge port 2/3-6 Switch_B> (enable) %DTP-5-TRUNKPORTON:Port 3/3 has become dot1q trunk %DTP-5-TRUNKPORTON:Port 3/4 has become dot1q trunk %PAGP-5-PORTFROMSTP:Port 3/3 left bridge port 3/3-6 %PAGP-5-PORTFROMSTP:Port 3/4 left bridge port 3/3-6 %PAGP-5-PORTFROMSTP:Port 3/5 left bridge port 3/3-6 %PAGP-5-PORTFROMSTP:Port 3/6 left bridge port 3/3-6 %DTP-5-TRUNKPORTON:Port 3/5 has become dot1q trunk %DTP-5-TRUNKPORTON:Port 3/6 has become dot1q trunk %PAGP-5-PORTFROMSTP:Port 3/5 left bridge port 3/3-6 %PAGP-5-PORTFROMSTP:Port 3/6 left bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/3 joined bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/4 joined bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/5 joined bridge port 3/3-6 %PAGP-5-PORTTOSTP:Port 3/6 joined bridge port 3/3-6
Step 6
After the 802.1Q trunk link is negotiated, verify the configuration by entering the show trunk command.
Switch_A> Port -------2/3 2/4 2/5 2/6 Port -------2/3 2/4 2/5 2/6 Port -------2/3 2/4 2/5 2/6 (enable) show trunk Mode Encapsulation ----------- ------------desirable dot1q desirable dot1q desirable dot1q desirable dot1q Status -----------trunking trunking trunking trunking Native vlan ----------1 1 1 1
Vlans allowed on trunk --------------------------------------------------------------------1-1005, 1025-4094 1-1005, 1025-4094 1-1005, 1025-4094 1-1005, 1025-4094 Vlans allowed and active in management domain --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999
Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------2/3 2/4 2/5 2/6 Switch_A> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-15
Switch_B> Port -------3/3 3/4 3/5 3/6 Port -------3/3 3/4 3/5 3/6 Port -------3/3 3/4 3/5 3/6 Port -------3/3 3/4 3/5 3/6 Switch_B>
(enable) show trunk Mode Encapsulation ----------- ------------auto dot1q auto dot1q auto dot1q auto dot1q
Vlans allowed on trunk --------------------------------------------------------------------1-1005, 1025-4094 1-1005, 1025-4094 1-1005, 1025-4094 1-1005, 1025-4094 Vlans allowed and active in management domain --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 Vlans in spanning tree forwarding state and not pruned --------------------------------------------------------------------1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 1-5,10,20,50,152,200,300,400,500,521-524,570,850,917,999 (enable)
5-16
78-13315-02
Chapter 5
Figure 5-3
Trunk 2 VLANs 10, 20, 30, 40, 50, and 60: port-VLAN priority 32 (blocking)
Switch 2
1/2
1/2
Trunk 1 VLANs 10, 20, 30, 40, 50, and 60: port-VLAN priority 32 (forwarding)
By default, the port-VLAN priority for both trunks is equal (a value of 32). STP blocks port 1/2 (Trunk 2) for each VLAN on Switch 1 to prevent forwarding loops. Trunk 2 is not used to forward traffic unless Trunk 1 fails. This example shows how to configure the switches so that traffic from multiple VLANs is load balanced over the parallel trunks.
Step 1
Configure a VTP domain on both Switch 1 and Switch 2 by entering the set vtp command so that the VLAN information configured on Switch 1 is learned by Switch 2. Make sure Switch 1 is a VTP server. You can configure Switch 2 as a VTP client or as a VTP server.
Switch_1> (enable) set vtp domain BigCorp mode server VTP domain BigCorp modified Switch_1> (enable) Switch_2> (enable) set vtp domain BigCorp mode server VTP domain BigCorp modified Switch_2> (enable)
Step 2
Create the VLANs on Switch 1 by entering the set vlan command. In this example, you see VLANs 10, 20, 30, 40, 50, and 60.
Switch_1> (enable) set vlan 10 Vlan 10 configuration successful Switch_1> (enable) set vlan 20 Vlan 20 configuration successful Switch_1> (enable) set vlan 30 Vlan 30 configuration successful Switch_1> (enable) set vlan 40 Vlan 40 configuration successful Switch_1> (enable) set vlan 50 Vlan 50 configuration successful Switch_1> (enable) set vlan 60 Vlan 60 configuration successful Switch_1> (enable)
Step 3
Verify the VTP and VLAN configuration on Switch 1 by entering the show vtp domain and show vlan commands.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16750
5-17
Switch_1> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------BigCorp 1 2 server Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------11 1023 13 disabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------172.20.52.10 disabled enabled 2-1000 Switch_1> (enable) show vlan VLAN Name Status Mod/Ports, Vlans ---- -------------------------------- --------- ---------------------------1 default active 1/1-2 2/1-12 5/1-2 10 VLAN0010 active 20 VLAN0020 active 30 VLAN0030 active 40 VLAN0040 active 50 VLAN0050 active 60 VLAN0060 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active . . . Switch_1> (enable)
Step 4
Configure the supervisor engine uplinks on Switch 1 as ISL trunk ports by entering the set trunk command. Specifying the desirable mode on the Switch 1 ports causes the ports on Switch 2 to negotiate to become trunk links (assuming that the Switch 2 uplinks are in the default auto mode).
Switch_1> (enable) set trunk 1/1 desirable Port(s) 1/1 trunk mode set to desirable. Switch_1> (enable) 04/21/1998,03:05:05:DISL-5:Port 1/1 has become isl trunk Switch_1> (enable) set trunk 1/2 desirable Port(s) 1/2 trunk mode set to desirable. Switch_1> (enable) 04/21/1998,03:05:13:DISL-5:Port 1/2 has become isl trunk
Step 5
Verify that the trunk links are up by entering the show trunk command.
Switch_1> Port -------1/1 1/2 Port -------1/1 1/2 Port -------1/1 1/2 (enable) show trunk 1 Mode Encapsulation ----------- ------------desirable isl desirable isl Status -----------trunking trunking Native vlan ----------1 1
Vlans allowed on trunk --------------------------------------------------------------------1-1005, 1025-4094 1-1005, 1025-4094 Vlans allowed and active in management domain --------------------------------------------------------------------1,10,20,30,40,50,60 1,10,20,30,40,50,60
5-18
78-13315-02
Chapter 5
Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------1/1 1/2 Switch_1> (enable)
Step 6
Note that when the trunk links come up, VTP passes the VTP and VLAN configuration to Switch 2. Verify that Switch 2 has learned the VLAN configuration by entering the show vlan command on Switch 2.
Switch_2> (enable) show vlan VLAN Name ---- -------------------------------1 default 10 VLAN0010 20 VLAN0020 30 VLAN0030 40 VLAN0040 50 VLAN0050 60 VLAN0060 1002 fddi-default 1003 token-ring-default 1004 fddinet-default 1005 trnet-default <...output truncated...> Switch_2> (enable) Status Mod/Ports, Vlans --------- ---------------------------active active active active active active active active active active active
Step 7
Note that spanning tree takes one to two minutes to converge. After the network stabilizes, check the spanning tree state of each trunk port on Switch 1 by entering the show spantree command. Trunk 1 is forwarding for all VLANs. Trunk 2 is blocking for all VLANs. On Switch 2, both trunks are forwarding for all VLANs, but no traffic passes over Trunk 2 because port 1/2 on Switch 1 is blocking.
Switch_1> Port --------1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 Switch_1> Port --------1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 Switch_1> (enable) show spantree 1/1 Vlan Port-State Cost ---- ------------- ----1 forwarding 19 10 forwarding 19 20 forwarding 19 30 forwarding 19 40 forwarding 19 50 forwarding 19 60 forwarding 19 1003 not-connected 19 1005 not-connected 19 (enable) show spantree 1/2 Vlan Port-State Cost ---- ------------- ----1 blocking 19 10 blocking 19 20 blocking 19 30 blocking 19 40 blocking 19 50 blocking 19 60 blocking 19 1003 not-connected 19 1005 not-connected 19 (enable) Priority -------32 32 32 32 32 32 32 32 4 Priority -------32 32 32 32 32 32 32 32 4 Fast-Start ---------disabled disabled disabled disabled disabled disabled disabled disabled disabled Fast-Start ---------disabled disabled disabled disabled disabled disabled disabled disabled disabled Group-method ------------
Group-method ------------
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-19
Step 8
Divide the configured VLANs into two groups. You might want traffic from half of the VLANs to go over one trunk link and half over the other, or if one VLAN has heavier traffic than the others, you can forward traffic from that VLAN over one trunk and traffic from the other VLANs over the other trunk link.
Note
In the following steps, VLANs 10, 20, and 30 (Group 1) are forwarded over Trunk 1, and VLANs 40, 50, and 60 (Group 2) are forwarded over Trunk 2.
Step 9
On Switch 1, change the port-VLAN priority for the Group 1 VLANs on Trunk 1 (port 1/1) to an integer value lower than the default of 32 by entering the set spantree portvlanpri command.
Switch_1> (enable) set spantree portvlanpri 1/1 1 10 Port 1/1 vlans 1-9,11-1004 using portpri 32. Port 1/1 vlans 10 using portpri 1. Port 1/1 vlans 1005 using portpri 4. Switch_1> (enable) set spantree portvlanpri 1/1 1 20 Port 1/1 vlans 1-9,11-19,21-1004 using portpri 32. Port 1/1 vlans 10,20 using portpri 1. Port 1/1 vlans 1005 using portpri 4. Switch_1> (enable) set spantree portvlanpri 1/1 1 30 Port 1/1 vlans 1-9,11-19,21-29,31-1004 using portpri 32. Port 1/1 vlans 10,20,30 using portpri 1. Port 1/1 vlans 1005 using portpri 4. Switch_1> (enable)
Step 10
On Switch 1, change the port-VLAN priority for the Group 2 VLANs on Trunk 2 (port 1/2) to an integer value lower than the default of 32 by entering the set spantree portvlanpri command.
Switch_1> (enable) set spantree portvlanpri 1/2 1 40 Port 1/2 vlans 1-39,41-1004 using portpri 32. Port 1/2 vlans 40 using portpri 1. Port 1/2 vlans 1005 using portpri 4. Switch_1> (enable) set spantree portvlanpri 1/2 1 50 Port 1/2 vlans 1-39,41-49,51-1004 using portpri 32. Port 1/2 vlans 40,50 using portpri 1. Port 1/2 vlans 1005 using portpri 4. Switch_1> (enable) set spantree portvlanpri 1/2 1 60 Port 1/2 vlans 1-39,41-49,51-59,61-1004 using portpri 32. Port 1/2 vlans 40,50,60 using portpri 1. Port 1/2 vlans 1005 using portpri 4. Switch_1> (enable)
Step 11
On Switch 2, change the port-VLAN priority for the Group 1 VLANs on Trunk 1 (port 1/1) to the same value you configured for those VLANs on Switch 1 by entering the set spantree portvlanpri command.
Caution
The port-VLAN priority for each VLAN must be equal on both ends of the link.
Switch_2> (enable) set spantree portvlanpri 1/1 1 10 Port 1/1 vlans 1-9,11-1004 using portpri 32. Port 1/1 vlans 10 using portpri 1. Port 1/1 vlans 1005 using portpri 4. Switch_2> (enable) set spantree portvlanpri 1/1 1 20 Port 1/1 vlans 1-9,11-19,21-1004 using portpri 32. Port 1/1 vlans 10,20 using portpri 1. Port 1/1 vlans 1005 using portpri 4. Switch_2> (enable) set spantree portvlanpri 1/1 1 30 Port 1/1 vlans 1-9,11-19,21-29,31-1004 using portpri 32. Port 1/1 vlans 10,20,30 using portpri 1. Port 1/1 vlans 1005 using portpri 4. Switch_2> (enable)
5-20
78-13315-02
Chapter 5
Step 12
On Switch 2, change the port-VLAN priority for the Group 2 VLANs on Trunk 2 (port 1/2) to the same value you configured for those VLANs on Switch 1 by entering the set spantree portvlanpri command.
Switch_2> (enable) set spantree portvlanpri 1/2 1 40 Port 1/2 vlans 1-39,41-1004 using portpri 32. Port 1/2 vlans 40 using portpri 1. Port 1/2 vlans 1005 using portpri 4. Switch_2> (enable) set spantree portvlanpri 1/2 1 50 Port 1/2 vlans 1-39,41-49,51-1004 using portpri 32. Port 1/2 vlans 40,50 using portpri 1. Port 1/2 vlans 1005 using portpri 4. Switch_2> (enable) set spantree portvlanpri 1/2 1 60 Port 1/2 vlans 1-39,41-49,51-59,61-1004 using portpri 32. Port 1/2 vlans 40,50,60 using portpri 1. Port 1/2 vlans 1005 using portpri 4. Switch_2> (enable)
Note
When you have configured the port-VLAN priorities on both ends of the link, the spanning tree converges to use the new configuration.
Step 13
Check the spanning tree port states on Switch 1 by entering the show spantree command. The Group 1 VLANs should forward on Trunk 1 and block on Trunk 2. The Group 2 VLANs should block on Trunk 1 and forward on Trunk 2.
Switch_1> Port --------1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 Switch_1> Port --------1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 Switch_1> (enable) show spantree 1/1 Vlan Port-State Cost ---- ------------- ----1 forwarding 19 10 forwarding 19 20 forwarding 19 30 forwarding 19 40 blocking 19 50 blocking 19 60 blocking 19 1003 not-connected 19 1005 not-connected 19 (enable) show spantree 1/2 Vlan Port-State Cost ---- ------------- ----1 blocking 19 10 blocking 19 20 blocking 19 30 blocking 19 40 forwarding 19 50 forwarding 19 60 forwarding 19 1003 not-connected 19 1005 not-connected 19 (enable) Priority -------32 1 1 1 32 32 32 32 4 Priority -------32 32 32 32 1 1 1 32 4 Fast-Start ---------disabled disabled disabled disabled disabled disabled disabled disabled disabled Fast-Start ---------disabled disabled disabled disabled disabled disabled disabled disabled disabled Group-method ------------
Group-method ------------
Figure 4 shows the network after you configure VLAN traffic load sharing.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-21
Figure 5-4
Trunk 2 VLANs 10, 20, and 30: port-VLAN priority 32 (blocking) VLANs 40, 50, and 60: port-VLAN priority 1 (forwarding)
Switch 2
1/2
1/2
Trunk 1 VLANs 10, 20, and 30: port-VLAN priority 1 (forwarding) VLANs 40, 50, and 60: port-VLAN priority 32 (blocking)
Figure 4 shows that both trunks are utilized when the network is operating normally; if one trunk link fails, the other trunk link acts as an alternate forwarding path for the traffic previously traveling over the failed link. If Trunk 1 fails in the network shown in Figure 4, STP reconverges to use Trunk 2 to forward traffic from all the VLANs, as shown in this example:
Switch_1> (enable) 04/21/1998,03:15:40:DISL-5:Port 1/1 has become non-trunk Switch_1> Port --------1/1 Switch_1> Port --------1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 Switch_1> Port --------1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 Switch_1> (enable) show spantree 1/1 Vlan Port-State Cost ---- ------------- ----1 not-connected 19 (enable) show spantree 1/2 Vlan Port-State Cost ---- ------------- ----1 learning 19 10 learning 19 20 learning 19 30 learning 19 40 forwarding 19 50 forwarding 19 60 forwarding 19 1003 not-connected 19 1005 not-connected 19 (enable) show spantree 1/2 Vlan Port-State Cost ---- ------------- ----1 forwarding 19 10 forwarding 19 20 forwarding 19 30 forwarding 19 40 forwarding 19 50 forwarding 19 60 forwarding 19 1003 not-connected 19 1005 not-connected 19 (enable)
Fast-Start ---------disabled Fast-Start ---------disabled disabled disabled disabled disabled disabled disabled disabled disabled Fast-Start ---------disabled disabled disabled disabled disabled disabled disabled disabled disabled
16749
Group-method ------------
Group-method ------------
Group-method ------------
5-22
78-13315-02
Chapter 5
Disable VLAN 1 on the trunk interface. Verify the allowed VLAN list for the trunk.
This example shows how to disable VLAN 1 on a trunk link and verify the configuration:
Console> (enable) clear trunk 8/1 1 Removing Vlan(s) 1 from allowed list. Port 8/1 allowed vlans modified to 2-1005. Console> (enable) show trunk 8/1 Port Mode Encapsulation Status -------- ----------- ------------- -----------8/1 on isl trunking Port -------8/1
Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------8/1 2-6,10,20,50,100,152,200,300,400,500,521,524,570,776,801-802,850,917,9 99,1003,1005 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------8/1 2-6,10,20,50,100,152,200,300,400,500,521,524,570,776,802,850,917,999,1 003,1005 Console> (enable) show config
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
5-23
5-24
78-13315-02
C H A P T E R
Configuring EtherChannel
This chapter describes how to use the command-line interface (CLI) to configure EtherChannel on the Catalyst 6000 family switches. The configuration tasks in this chapter apply to Ethernet, Fast Ethernet, and Gigabit Ethernet switching modules, as well as to the uplink ports on the supervisor engine.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How EtherChannel Works, page 6-i EtherChannel Configuration Guidelines, page 6-iv Configuring EtherChannel, page 6-v
Note
The commands in the following sections can be used on all Ethernet ports in the Catalyst 6000 family switches.
Note
With software release 6.2(1) and earlier releases, the 6- and 9-slot Catalyst 6000 family switches support a maximum of 128 EtherChannels. With software release 6.2(2) and later releases, due to the port ID handling by the spanning tree feature, the maximum supported number of EtherChannels is 126 for a 6- or 9-slot chassis and 63 for a 13-slot chassis. Note that the 13-slot chassis was first supported in software release 6.2(2).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
6-1
Configuring EtherChannel
Note
The network device to which a Catalyst 6000 family switch is connected may impose its own limits on the number of ports in an EtherChannel. If a segment within an EtherChannel fails, traffic previously carried over the failed link switches to the remaining segments within the EtherChannel. A trap is sent upon a failure 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. You can configure EtherChannels as trunks. After a channel is formed, configuring any port in the channel as a trunk applies the configuration to all ports in the channel. Identically configured trunk ports can be configured as an EtherChannel. These sections describe EtherChannel:
Understanding Administrative Groups, page 6-ii Understanding EtherChannel IDs, page 6-ii Understanding Port Aggregation Protocol, page 6-ii Understanding Frame Distribution, page 6-iii
6-2
78-13315-02
Chapter 6
Mode on
Description Mode that forces the port to channel without PAgP. With the on mode, a usable EtherChannel exists only when a port group in on mode is connected to another port group in on mode. Mode that prevents the port from channeling. PAgP mode that places a port into a passive negotiating state, in which the port responds to PAgP packets it receives but does not initiate PAgP packet negotiation. (Default) PAgP mode that places a port into an active negotiating state, in which the port initiates negotiations with other ports by sending PAgP packets. Keyword that is used with the auto or desirable mode when no traffic is expected from the other device to prevent the link from being reported to the Spanning Tree Protocol as down. (Default)
non-silent Keyword that is used with the auto or desirable mode when traffic is expected from the other device. Both the auto and desirable modes allow ports to negotiate with connected ports to determine if they can form an EtherChannel, based on criteria such as port speed, trunking state, and VLAN numbers. Ports can form an EtherChannel when they are in different PAgP modes as long as the modes are compatible:
A port in desirable mode can form an EtherChannel successfully with another port that is in desirable or auto mode. A port in auto mode can form an EtherChannel with another port in desirable mode. A port in auto mode cannot form an EtherChannel with another port that is also in auto mode, because neither port will initiate negotiation.
If the display shows the Sub-Type to be L2 Switching Engine I WS-F6020, then EtherChannel frame distribution is not configurable on your switch; it uses source and destination Media Access Control (MAC) addresses. EtherChannel frame distribution is configurable with all other switching engines. The default is to use source and destination IP addresses.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
6-3
Configuring EtherChannel
When configurable, EtherChannel frame distribution can use MAC addresses, IP addresses, and Layer 4 port numbers. You can specify either source or destination address or both source and destination addresses and Layer 4 port numbers. The mode you select applies to all EtherChannels configured on the switch. Use the option that provides the greatest variety in your configuration. For example, if the traffic on a channel is going to a single MAC address only, using source addresses or IP addresses or Layer 4 port numbers as the basis for frame distribution may provide better frame distribution than selecting MAC addresses as the basis.
Assign all ports in an EtherChannel to the same VLAN, or configure them as trunk ports. If you configure the EtherChannel as a trunk, configure the same trunk mode on all the ports in the EtherChannel. Configuring ports in an EtherChannel in different trunk modes can have unexpected results. An EtherChannel supports the same allowed range of VLANs on all the ports in a trunking EtherChannel. If the allowed range of VLANs is not the same for a port list, the ports do not form an EtherChannel even when set to the auto or desirable mode with the set port channel command. Ports with different port path costs, set by the set spantree portcost command, can form an EtherChannel as long they are otherwise compatibly configured. Setting different port path costs does not, by itself, make ports incompatible for the formation of an EtherChannel. Do not configure the ports in an EtherChannel as dynamic VLAN ports. Doing so can adversely affect switch performance. An EtherChannel will not form with ports that have different GARP VLAN Registration Protocol (GVRP), GARP Multicast Registration Protocol (GMRP), and quality of service (QoS) configurations. Configure all ports in an EtherChannel to operate at the same speed and duplex mode. An EtherChannel will not form with ports where the port security feature is enabled. You cannot enable the port security feature for ports in an EtherChannel. An EtherChannel will not form if one of the ports is a SPAN destination port. An EtherChannel will not form if protocol filtering is set differently on the ports. Enable all ports in an EtherChannel. If you disable a port in an EtherChannel, it is treated as a link failure and its traffic is transferred to one of the remaining ports in the EtherChannel. With software release 6.3(1) and later releases, an EtherChannel is preserved even if it contains only one port. In software releases prior to 6.3(1), traffic was disrupted when you removed a 1-port channel from spanning tree and then added it to spanning tree as an individual port.
6-4
78-13315-02
Chapter 6
Configuring EtherChannel
These sections describe how to configure EtherChannel:
Configuring an EtherChannel, page 6-v Setting the EtherChannel Port Mode, page 6-v Setting the EtherChannel Port Path Cost, page 6-vi Setting the EtherChannel VLAN Cost, page 6-vi Configuring EtherChannel Frame Distribution, page 6-viii Displaying EtherChannel Traffic Utilization, page 6-viii Displaying Outgoing Ports for a Specified Address or Layer 4 Port Number, page 6-viii Disabling an EtherChannel, page 6-ix
Configuring an EtherChannel
To configure EtherChannel on a group of Ethernet ports, perform this task in privileged mode: Task Command
Configure the EtherChannel on the desired ports. set port channel mod/ports... [admin_group] set port channel mod/port mode {on | off | desirable | auto} [silent | non-silent] This example shows how to configure a seven-port EtherChannel in a new administrative group:
Console> (enable) set port channel 2/2-8 mode desirable Ports 2/2-8 left admin_group 1. Ports 2/2-8 joined admin_group 2. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
6-5
Configuring EtherChannel
Use the EtherChannel ID to set the EtherChannel set channel cost {channel_id | all} cost port path cost.
Note
When you enter the set channel cost command, it does not appear in the configuration file. The command causes a set spantree portcost entry to be created for each port in the channel. See the Configuring the PVST+ Port Cost section in Chapter 8, Configuring Spanning Tree, for information on using the set spantree portcost command. This example shows how to set the EtherChannel port path cost for channel ID 768:
Console> (enable) show Admin Port Status group ----- ----- ---------20 1/1 notconnect 20 1/2 connected channel group 20 Channel Channel Mode id --------- -------on 768 on 768
Admin Port Device-ID Port-ID Platform group ----- ----- ------------------------------- ------------------------- ---------20 1/1 20 1/2 066510644(cat26-lnf(NET25)) 2/1 WS-C6009 Console> (enable) Console> (enable) set channel cost 768 12 Port(s) 1/1,1/2 port path cost are updated to 31. Channel 768 cost is set to 12. Warning:channel cost may not be applicable if channel is broken. Console> (enable)
6-6
78-13315-02
Chapter 6
The set channel vlancost command creates a set spantree portvlancost entry to the configuration file for each port in the channel. Once you have entered the set channel vlancost command, you must enter the set spantree portvlancost command for at least one port in the channel, specifying the VLAN or VLANs that you want associated with each port. The following examples show what occurs when each command is entered:
Console> (enable) set channel vlancost 856 10 Port(s) 3/47-48 vlan cost are updated to 16. Channel 856 vlancost is set to 10.
set spantree portvlancost 3/47 cost 16 set spantree portvlancost 3/48 cost 16
Now you have to add the desired VLANs to the above created commands by entering the following:
Console> (enable) set spantree portvlancost 3/47 cost 16 1-1005 Port 3/47 VLANs 1025-4094 have path cost 19. Port 3/47 VLANs 1-1005 have path cost 16. Port 3/48 VLANs 1-1005 have path cost 16.
To set the EtherChannel VLAN cost, perform this task in privileged mode: Task
Step 1 Step 2 Step 3
Use the EtherChannel ID to set the EtherChannel set channel vlancost channel_id cost VLAN cost. Configure the port cost for the desired VLANs on set spantree portvlancost {mod/port} [cost cost] each port. [vlan_list] This example shows how to set the EtherChannel VLAN cost for channel ID 856:
Console> (enable) show Admin Port Status group ----- ----- ---------22 1/1 notconnect 22 1/2 connected channel group 22 Channel Channel Mode id --------- -------on 856 on 856
Admin Port Device-ID Port-ID Platform group ----- ----- ------------------------------- ------------------------- ---------22 1/1 22 1/2 066510644(cat26-lnf(NET25)) 2/1 WS-C6009 Console> (enable) Console> (enable) set channel vlancost 856 10 Port(s) 3/47-48 vlan cost are updated to 16. Channel 856 vlancost is set to 10. Console> (enable) set spantree portvlancost 3/47 cost 16 1-1005 Port 3/47 VLANs 1025-4094 have path cost 19. Port 3/47 VLANs 1-1005 have path cost 16. Port 3/48 VLANs 1-1005 have path cost 16. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
6-7
Configuring EtherChannel
Note
The set port channel all distribution session command option is supported on Supervisor Engine 2 only. This example shows how to configure EtherChannel to use MAC source addresses:
Console> (enable) set port channel all distribution mac source Channel distribution is set to mac source. Console> (enable)
Display the outgoing port for a specified show channel hash channel_id src_ip_addr address or Layer 4 port number. [dest_ip_addr] | dest_ip_address | src_mac_addr [dest_mac_addr] | dest_mac_addr | src_port dest_port
6-8
78-13315-02
Chapter 6
This example shows how to display the outgoing port for the specified source and destination IP addresses:
Console> (enable) show channel hash 808 172.20.32.10 172.20.32.66 Selected channel port:2/17 Console> (enable)
Disabling an EtherChannel
To disable an EtherChannel, perform this task in privileged mode: Task Disable an EtherChannel. Command set port channel mod/port mode off
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
6-9
Configuring EtherChannel
6-10
78-13315-02
C H A P T E R
Understanding How 802.1Q Tunneling Works, page 7-i 802.1Q Tunneling Configuration Guidelines, page 7-ii Configuring Support for 802.1Q Tunneling, page 7-iii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
7-1
Use asymmetrical links to put traffic into a tunnel or to remove traffic from a tunnel. Configure tunnel ports only to form an asymmetrical link. Dedicate one VLAN for each tunnel. Assign only tunnel ports to VLANs used for tunneling. Trunks require no special configuration to carry tunnel VLANs. We recommend that you use ISL trunks to carry tunnel traffic between devices that do not have tunnel ports. Because of the 802.1Q native VLAN feature, using 802.1Q trunks requires that you be very careful when you configure tunneling: a mistake might direct tunnel traffic to a non-tunnel port. Ensure that the native VLAN of the 802.1Q trunk port in an asymmetrical link carries no traffic. Because traffic in the native VLAN is untagged, it cannot be tunneled correctly. You must enter the global set dot1q-all-tagged enable command to ensure that egress traffic in the native VLAN is tagged with 802.1Q tags. Because tunnel traffic retains the 802.1Q tag within the switch, the Layer 2 frame header length imposes the following restrictions:
The Layer 3 packet within the Layer 2 frame cannot be identified. Layer 3 and higher parameters are not identifiable in tunnel traffic (for example, Layer 3
Asymmetrical links do not support the Dynamic Trunking Protocol (DTP), because only one port on the link is a trunk. Configure the 802.1Q trunk port on an asymmetrical link with the nonegotiate dot1q trunking keywords. On an asymmetrical link, the Cisco Discovery Protocol (CDP) reports a native VLAN mismatch if the VLAN of the tunnel port does not match the native VLAN of the 802.1Q trunk. The 802.1Q tunnel feature does not require that the VLANs match. Ignore the messages if your configuration requires nonmatching VLANs. Jumbo frames can be tunneled as long as the jumbo frame length combined with the 802.1Q tag does not exceed the maximum frame size. The 802.1Q tunneling feature cannot be configured on ports configured to support:
Private VLANs Voice over IP (Cisco IP Phone 7960)
The following Layer 2 protocols work between devices connected by an asymmetrical link:
CDP UniDirectional Link Detection (UDLD) Port Aggregation Protocol (PAgP)
7-2
78-13315-02
Chapter 7
VLAN Trunk Protocol (VTP) does not work between the following devices:
Devices connected by an asymmetrical link Devices communicating through a tunnel
Note
To configure an EtherChannel as an asymmetrical link, all ports in the EtherChannel must have the same tunneling configuration. Since the Layer 3 packet within the Layer 2 frame cannot be identified, configure the EtherChannel to use MAC-address-based frame distribution.
Generic Attribute Registration Protocol (GARP) VLAN Registration Protocol (GVRP) works between devices communicating through a tunnel, but does not work between devices connected by an asymmetrical link. An interconnected network cannot have redundant paths to two different edge switches in an ISP. An interconnected network may have redundant paths to the same edge switch in an ISP, but the customer network must use Per VLAN Spanning Tree + (PVST+) and cannot be configured for Multi-Instance Spanning Tree Protocol (MISTP). The ISP infrastructure must use either PVST+ or MISTP-PVST+.
Configuring the Switch to Support 802.1Q Tunneling, page 7-iii Configuring 802.1Q Tunnel Ports, page 7-iv Clearing 802.1Q Tunnel Ports, page 7-iv Removing Global Support for 802.1Q Tunneling, page 7-v
Caution
Ensure that only the appropriate tunnel ports are in any VLAN used for tunneling and that one VLAN is used for each tunnel. Incorrect assignment of tunnel ports to VLANs can forward traffic inappropriately.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
7-3
This example shows how to configure tunneling on the switch and verify the configuration:
Console> (enable) set dot1q-all-tagged enable Dot1q tagging is enabled Console> (enable) show dot1q-all-tagged Dot1q all tagged mode enabled Console> (enable)
Command set port dot1qtunnel {mod/port} access show port dot1qtunnel [mod[/port]]
This example shows how to configure tunneling on port 4/1 and verify the configuration:
Console> (enable) set port dot1qtunnel 4/1 access Dot1q tunnel feature set to access mode on port 4/1. Port 4/1 trunk mode set to off. Console> (enable) show port dot1qtunnel 4/1 Port Dot1q tunnel mode ----- ----------------4/1 access
Command set port dot1qtunnel {mod/port} disable show port dot1qtunnel [mod[/port]]
This example shows how to clear tunneling on port 4/1 and verify the configuration:
Console> (enable) set port dot1qtunnel 4/1 disable Dot1q tunnel feature disabled on port 4/1. Console> (enable) show port dot1qtunnel 4/1 Port Dot1q tunnel mode ----- ----------------4/1 disabled
7-4
78-13315-02
Chapter 7
To remove global support for 802.1Q tunneling on the switch, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to remove tunneling support on the switch and verify the configuration:
Console> (enable) set dot1q-all-tagged disable Dot1q tagging is disabled Console> (enable) show dot1q-all-tagged Dot1q all tagged mode disabled Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
7-5
7-6
78-13315-02
C H A P T E R
Note
For information on configuring the spanning tree PortFast, UplinkFast, and BackboneFast features, see Chapter 9, Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard. This chapter consists of these sections:
Understanding How Spanning Tree Protocols Work, page 8-i Understanding PVST+ and MISTP Modes, page 8-xi Bridge Identifiers, page 8-xiii Using PVST+, page 8-xv Using MISTP-PVST+ or MISTP, page 8-xxii Configuring a Root Switch, page 8-xxxi Configuring Spanning Tree Timers, page 8-xxxv Understanding How BPDU Skewing Works, page 8-xxxvii Configuring BPDU Skewing, page 8-xxxviii
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-1
The Spanning Tree Protocol (STP) uses a distributed algorithm that selects one bridge of a redundantly connected network as the root of a spanning tree connected active topology. STP assigns roles to each port depending on what the ports function is in the active topology. Port roles are as follows:
RootA unique forwarding port elected for the spanning tree topology DesignatedA forwarding port elected for every switched LAN segment AlternateA blocked port providing an alternate path to the root port in the spanning tree BackupA blocked port in a loopback configuration
Switches that have ports with these assigned roles are called root or designated switches. For more information, see the Understanding How a Switch Becomes the Root Switch section on page 8-iii. In Ethernet networks, only one active path may exist between any two stations. Multiple active paths between stations can cause loops in the network. When loops occur, some switches recognize stations on both sides of the switch. This situation causes the forwarding algorithm to malfunction allowing duplicate frames to be forwarded. Spanning tree algorithms provide path redundancy by defining a tree that spans all of the switches in an extended network and then forces certain redundant data paths into a standby (blocked) state. At regular intervals, the switches in the network send and receive spanning tree packets that they use to identify the path. If one network segment becomes unreachable, or if spanning tree costs change, the spanning tree algorithm reconfigures the spanning tree topology and reestablishes the link by activating the standby path. Spanning tree operation is transparent to end stations, which do not detect whether they are connected to a single LAN segment or a switched LAN of multiple segments. These sections describe the STP:
Understanding How a Topology is Created, page 8-ii Understanding How a Switch Becomes the Root Switch, page 8-iii Understanding How Bridge Protocol Data Units Work, page 8-iii Calculating and Assigning Port Costs, page 8-iv Spanning Tree Port States, page 8-v
A unique root switch is elected for the spanning tree network topology A designated switch is elected for every switched LAN segment Any loops in the switched network are eliminated by placing redundant switch ports in a backup state; all paths that are not needed to reach the root switch from anywhere in the switched network are placed in STP-blocked mode.
The unique switch identifier Media Access Control ([MAC] address of the switch) associated with each switch The path cost to the root associated with each switch port The port identifier (MAC address of the port) associated with each switch port
8-2
78-13315-02
Chapter 8
In a switched network, the root switch is the logical center of the spanning tree topology. A spanning tree protocol uses BPDUs to elect the root switch and root port for the switched network, as well as the root port and designated port for each switched segment.
RP C
DP
S5688
You can change the priority of a port to make it the root port. When the spanning tree topology is based on default parameters, the path between source and destination stations in a switched network might not be ideal. Connecting higher-speed links to a port that has a higher number than the current root port can cause a root-port change. The goal is to make the fastest link the root port. For example, assume that a port on Switch B is a fiber-optic link. Also, 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 Port Priority parameter for the UTP port to a higher priority (lower numerical value) than the fiber-optic port, the UTP port becomes the root port. You could also accomplish this scenario by changing the Port Cost parameter for the UTP port to a lower value than that of the fiber-optic port.
The unique identifier of the switch that the transmitting switch believes to be the root switch The cost of the path to the root from the transmitting port The identifier of the transmitting port
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-3
The switch sends configuration BPDUs to communicate and compute the spanning tree topology. A MAC frame conveying a BPDU sends the switch group address to the destination address field. All switches connected to the LAN on which the frame is transmitted receive the BPDU. BPDUs are not directly forwarded by the switch, but the receiving switch uses the information in the frame to calculate a BPDU, and if the topology changes, initiates a BPDU transmission. A BPDU exchange results in the following:
One switch is elected as the root switch. The shortest distance to the root switch is calculated for each switch. A designated switch is selected. This is the switch that is closest to the root switch through which frames will be forwarded to the root. A port for each switch is selected. This is the port that provides the best path from the switch to the root switch. Ports included in the STP are selected.
Note
You should configure all switches in your network to use the same method for calculating port cost. The short method is used to calculate the port cost unless you specify that the long method be used. You can specify the calculation method using the CLI.
8-4
78-13315-02
Chapter 8
Port Speed 100 kbps 1 Mbps 10 Mbps 100 Mbps 1 Gbps 10 Gbps
Recommended Range 20000000 to 200000000 2000000 to 200000000 200000 to 20000000 20000 to 2000000 2000 to 200000 200 to 20000
As individual links are added or removed from an aggregate link (port bundle), the bandwidth of the aggregate link increases or decreases. These changes in bandwidth lead to recalculation of the default port cost for the aggregated port. Changes to the default port cost or changes resulting from links that autonegotiate their bandwidth could lead to recalculation of the spanning tree topology which may not be desirable, especially if the added or removed link is of little consequence to the bandwidth of the aggregate link (for example, if a 10-Mbps link were removed from a 10-Gbps aggregate link). Because of the limitations presented by automatically recalculating the topology, 802.1t states that changes in bandwidth will not result in changes to the cost of the port concerned. The aggregated port will therefore use the same port cost parameters as a stand alone port.
Note
With IOS Release 12.1.(1)E or later releases on the Multilayer Switch Feature Card (MSFC), the Address Resolution Protocol (ARP) on the STP Topology Change Notification feature ensures that excessive flooding does not occur when the MSFC receives a topology change notification (TCN) from the supervisor engine. The feature causes the MSFC to send ARP requests for all the ARP entries belonging to the VLAN interface where the TCN is received. When the ARP replies come back, the Policy Feature Card (PFC) learns the MAC entries, which were lost as a result of the topology change. Learning the entries immediately following a topology change prevents excessive flooding later. There is no configuration required on the MSFC. This feature works with supervisor engine software release 5.4(2) or later releases.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-5
At any given time, each port on a switch using a spanning tree protocol is in one of these states:
From initialization to blocking From blocking to listening or to disabled From listening to learning or to disabled From learning to forwarding or to disabled From forwarding to disabled
Blocking state
Listening state
Disabled state
Learning state
You can modify each port state by using management software, for example, VLAN Trunking Protocol (VTP). When you enable spanning tree, every switch in the network goes through the blocking state and the transitory states of listening and learning at power up. If properly configured, each port stabilizes into the forwarding or blocking state. When the spanning tree algorithm places a port in the forwarding state, the following occurs:
The port is put into the listening state while it waits for protocol information that suggests it should go to the blocking state. The port waits for the expiration of a protocol timer that moves the port to the learning state. In the learning state, the port continues to block frame forwarding as it learns station location information for the forwarding database. The expiration of a protocol timer moves the port to the forwarding state, where both learning and forwarding are enabled.
8-6
S5691
Forwarding state
78-13315-02
Chapter 8
Blocking State
A port in the blocking state does not participate in frame forwarding (see Figure 3). After initialization, a BPDU is sent to each port in the switch. A switch initially assumes it is the root until it exchanges BPDUs with other switches. This exchange establishes which switch in the network is really the root. If only one switch resides in the network, no exchange occurs, the forward delay timer expires, and the ports move to the listening state. A switch always enters the blocking state following switch initialization.
Figure 8-3 Port 2 in Blocking State
Segment frames
Forwarding
BPDUs
Filtering database
System module
Frame forwarding
BPDUs
Data frames
Port 2
Blocking
Segment frames
Discards frames received from the attached segment. Discards frames switched from another port for forwarding. Does not incorporate station location into its address database. (There is no learning on a blocking port, so there is no address database update.) Receives BPDUs and directs them to the system module. Does not transmit BPDUs received from the system module. Receives and responds to network management messages.
Listening State
The listening state is the first transitional state a port enters after the blocking state. The port enters this state when the spanning tree determines that the port should participate in frame forwarding. Learning is disabled in the listening state. Figure 4 shows a port in the listening state.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-7
Figure 8-4
Forwarding
BPDUs
Filtering database
System module
Frame forwarding
Listening
Discards frames received from the attached segment. Discards frames switched from another port for forwarding. Does not incorporate station location into its address database. (There is no learning at this point, so there is no address database update.) Receives BPDUs and directs them to the system module. Processes BPDUs received from the system module. Receives and responds to network management messages.
Learning State
A port in the learning state prepares to participate in frame forwarding. The port enters the learning state from the listening state. Figure 5 shows a port in the learning state. A port in the learning state performs as follows:
Discards frames received from the attached segment. Discards frames switched from another port for forwarding. Incorporates station location into its address database. Receives BPDUs and directs them to the system module.
8-8
78-13315-02
Chapter 8
Receives, processes, and transmits BPDUs received from the system module. Receives and responds to network management messages.
Port 2 in Learning State
Figure 8-5
Forwarding
BPDUs
Filtering database
System module
Frame forwarding
BPDUs
Port 2
Learning
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-9
Forwarding State
A port in the forwarding state forwards frames, as shown in Figure 6. The port enters the forwarding state from the learning state.
Figure 8-6 Port 2 in Forwarding State
Forwarding
BPDUs
Filtering database
System module
Frame forwarding
Station addresses
BPDUs
Port 2
Forwarding
Forwards frames received from the attached segment. Forwards frames switched from another port for forwarding. Incorporates station location information into its address database. Receives BPDUs and directs them to the system module. Processes BPDUs received from the system module. Receives and responds to network management messages.
Caution
Use spanning tree PortFast mode only on ports directly connected to individual workstations to allow these ports to come up and go directly to the forwarding state, instead of having to go through the entire spanning tree initialization process. To prevent illegal topologies, enable spanning tree on ports connected to switches or other devices that forward messages. For more information about PortFast, see Chapter 9, Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard.
8-10
78-13315-02
Chapter 8
Disabled State
A port in the disabled state does not participate in frame forwarding or STP, as shown in Figure 7. A port in the disabled state is virtually nonoperational.
Figure 8-7 Port 2 in Disabled State
Forwarding
BPDUs
Filtering database
System module
Frame forwarding
Data frames
Disabled
Discards frames received from the attached segment. Discards frames switched from another port for forwarding. Does not incorporate station location into its address database. (There is no learning, so there is no address database update.) Receives BPDUs but does not direct them to the system module. Does not receive BPDUs for transmission from the system module. Receives and responds to network management messages.
Per VLAN Spanning Tree (PVST+) Multi-Instance Spanning Tree Protocol (MISTP) MISTP-PVST+ (combination mode)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-11
An overview of each mode is provided in this section. Each mode is described in detail in these sections:
Caution
If your network currently uses PVST+ and you plan to use MISTP on any switch, you must first enable MISTP-PVST+ on the switch and configure an MISTP instance to avoid causing loops in the network.
PVST+ Mode
PVST+ is the default spanning tree protocol used on all Ethernet, Fast Ethernet, and Gigabit Ethernet port-based VLANs on Catalyst 6000 family switches. PVST+ runs on each VLAN on the switch, ensuring that each VLAN has a loop-free path through the network. PVST+ provides Layer 2 load balancing for the VLAN on which it runs; you can create different logical topologies using the VLANs on your network to ensure that all the links are used and no link is oversubscribed. Each PVST+ instance on a VLAN has a single root switch. This root switch propagates the spanning tree information associated with that VLAN to all other switches in the network. This process ensures that the network topology is maintained because each switch has the same knowledge about the network.
MISTP Mode
MISTP is an optional spanning tree protocol that runs on Catalyst 6000 family switches. MISTP allows you to group multiple VLANs under a single instance of spanning tree (an MISTP instance). MISTP combines the Layer 2 load-balancing benefits of PVST+ with the lower CPU load of IEEE 802.1Q. An MISTP instance is a virtual logical topology defined by a set of bridge and port parameters. When you map VLANs to an MISTP instance, this virtual logical topology becomes a physical topology. Each MISTP instance has its own root switch and a different set of forwarding links, that is, different bridge and port parameters. Each MISTP instance root switch propagates the information associated with it to all other switches in the network. This process maintains the network topology because it ensures that each switch has the same information about the network. MISTP builds MISTP instances by exchanging MISTP BPDUs with peer entities in the network. MISTP uses one BPDU for each MISTP instance, rather than one for each VLAN, as in PVST+. Because there are fewer BPDUs in an MISTP network, MISTP networks converge faster with less overhead. MISTP discards PVST+ BPDUs. An MISTP instance can have any number of VLANs mapped to it, but a VLAN can be mapped only to a single MISTP instance. You can easily move a VLAN (or VLANs) in an MISTP topology to another MISTP instance if it has converged. (However, if ports are added at the same time the VLAN is moved, convergence time is required.)
8-12
78-13315-02
Chapter 8
MISTP-PVST+ Mode
MISTP-PVST+ is a transition spanning tree mode that allows you to use the MISTP functionality on Catalyst 6000 family switches while continuing to communicate with Catalyst 5000 and 6000 switches in your network that use PVST+. A switch using PVST+ mode that is connected to a switch using MISTP mode cannot see the BPDUs of the other switch, a condition that can cause loops in the network. MISTP-PVST+ allows interoperability between PVST+ and pure MISTP because it sees the BPDUs of both modes. To convert your network to MISTP, use MISTP-PVST+ to transition the network from PVST+ to MISTP. Because MISTP-PVST+ conforms to the limits of PVST+, you cannot configure more VLAN ports on your MISTP-PVST+ switches than on your PVST+ switches.
Bridge Identifiers
These sections explain how MAC addresses are used in PVST+ and MISTP as unique bridge identifiers:
MAC Address Allocation, page 8-xiii MAC Address Reduction, page 8-xiii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-13
Figure 8 shows the bridge identifier when you do not enable MAC address reduction. The bridge identifier consists of the bridge priority and the MAC address.
Figure 8-8 Bridge Identifier without MAC Address Reduction
Figure 9 shows the bridge identifier when you enable MAC address reduction. The bridge identifier consists of the bridge priority, the system ID extension, and the MAC address. The bridge priority and the system ID extension combined are known as the bridge ID priority. The bridge ID priority is the unique identifier for the VLAN or the MISTP instance.
Figure 8-9 Bridge Identifier with MAC Address Reduction Enabled
Bridge ID Priority Bridge Priority 4 bits System ID Ext. 12 bits MAC Address 6 bytes
When you enter a show spantree command, you can see the bridge ID priority for a VLAN in PVST+ or for an MISTP instance in MISTP or MISTP-PVST+ mode. This example shows the bridge ID priority for VLAN 1 when you enable MAC address reduction in PVST+ mode. The unique identifier for this VLAN is 32769.
Console> (enable) show spantree 1 VLAN 1 Spanning tree mode PVST+ Spanning tree type ieee . . . Bridge ID MAC ADDR 00-d0-00-4c-18-00 Bridge ID Priority 32769 (bridge priority: 32768, sys ID ext: 1) Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec
If you have a Catalyst switch in your network with MAC address reduction enabled, you should also enable MAC address reduction on all other Layer-2 connected switches to avoid undesirable root election and spanning tree topology issues. When MAC address reduction is enabled, the root bridge priority becomes a multiple of 4096 plus the VLAN ID. With MAC address reduction enabled, a switch bridge ID (used by the spanning-tree algorithm to determine the identity of the root bridge, the lowest being preferred) can only be specified as a multiple of 4096. Only the following values are possible: 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440. Therefore, if another bridge in the same spanning-tree domain does not run the MAC address reduction feature, it could claim and win root bridge ownership because of the finer granularity in the selection of its bridge ID.
Note
The MAC address reduction feature is enabled by default on Cisco switches that have 64 MAC addresses (Cisco 7606, CISCO7603, WS-C6503, and WS-C6513).
8-14
43842
43841
78-13315-02
Chapter 8
Using PVST+
PVST+ is the default spanning tree mode for Catalyst 6000 family switches. These sections describe how to configure PVST+ on Ethernet VLANs:
Default PVST+ Configuration, page 8-xv Setting the PVST+ Bridge ID Priority, page 8-xvi Configuring the PVST+ Port Cost, page 8-xvii Configuring the PVST+ Port Priority, page 8-xviii Configuring the PVST+ Default Port Cost Mode, page 8-xviii Configuring the PVST+ Port Cost for a VLAN, page 8-xix Configuring the PVST+ Port Priority for a VLAN, page 8-xx Disabling the PVST+ Mode on a VLAN, page 8-xx
Feature VLAN 1 Enable state MAC address reduction Bridge priority Bridge ID priority Port priority Port cost
Default Value All ports assigned to VLAN 1 PVST+ enabled for all VLANs Disabled 32768 32769 (bridge priority plus system ID extension of VLAN 1) 32
Default spantree port cost mode Port VLAN priority Port VLAN cost Maximum aging time Hello time Forward delay time
Short (802.1D) Same as port priority but configurable on a per-VLAN basis in PVST+ Same as port cost but configurable on a per-VLAN basis in PVST+ 20 seconds 2 seconds 15 seconds
1. If 10/100 Mbps ports autonegotiate or are hard set to 100 Mbps, the port cost is 19. 2. If 10/100 Mbps ports autonegotiate or are hard set to 10 Mbps, the port cost is 100.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-15
Set the PVST+ bridge ID priority for a VLAN. set spantree priority bridge_ID_priority [vlan] Verify the bridge ID priority.
This example shows how to set the PVST+ bridge ID priority when MAC address reduction is not enabled (default):
Console> Spantree Console> VLAN 1 Spanning Spanning Spanning (enable) set spantree priority 30000 1 1 bridge priority set to 30000. (enable) show spantree 1 tree mode tree type tree enabled PVST+ ieee
Designated Root 00-60-70-4c-70-00 Designated Root Priority 16384 Designated Root Cost 19 Designated Root Port 2/3 Root Max Age 14 sec Hello Time 2 sec Forward Delay 10 sec Bridge ID MAC ADDR Bridge ID Priority Bridge Max Age 20 sec Port -----------------------1/1 1/2 2/1 2/2 00-d0-00-4c-18-00 30000 Hello Time 2 sec Forward Delay 15 sec Vlan ---1 1 1 1 Port-State Cost Prio Portfast Channel_id ------------- --------- ---- -------- ---------not-connected 4 32 disabled 0 not-connected 4 32 disabled 0 not-connected 100 32 disabled 0 not-connected 100 32 disabled 0
This example shows how to set the PVST+ bridge ID priority when MAC reduction is enabled:
Console> (enable) set spantree priority 32768 1 Spantree 1 bridge ID priority set to 32769 (bridge priority: 32768 + sys ID extension: 1) Console> (enable) show spantree 1/1 1 VLAN 1 Spanning tree mode PVST+ Spanning tree type ieee Spanning tree enabled
8-16
78-13315-02
Chapter 8
Designated Root 00-60-70-4c-70-00 Designated Root Priority 16384 Designated Root Cost 19 Designated Root Port 2/3 Root Max Age 14 sec Hello Time 2 sec Forward Delay 10 sec Bridge ID MAC ADDR Bridge ID Priority Bridge Max Age 20 sec Port -----------------------1/1 1/2 2/1 2/2 00-d0-00-4c-18-00 32769 (bridge priority: 32768, sys ID ext: 1) Hello Time 2 sec Forward Delay 15 sec Vlan ---1 1 1 1 Port-State Cost Prio Portfast Channel_id ------------- --------- ---- -------- ---------not-connected 4 32 disabled 0 not-connected 4 32 disabled 0 not-connected 100 32 disabled 0 not-connected 100 32 disabled 0
Configure the PVST+ port cost for a switch port. Verify the port cost setting.
Note
When you enter the set channel cost command, it does not appear in the configuration file. The command causes a set spantree portcost entry to be created for each port in the channel. See the Setting the EtherChannel Port Path Cost section in Chapter 6, Configuring EtherChannel, for information on using the set channel cost command. This example shows how to configure the PVST+ port cost on a port and verify the configuration:
Console> (enable) set spantree portcost 2/3 12 Spantree port 2/3 path cost set to 12. Console> (enable) show spantree 2/3 VLAN 1 . . . Port Vlan Port-State Cost Prio Portfast Channel_id ------------------------ ---- ------------- --------- ---- -------- ---------1/1 1 not-connected 4 32 disabled 0 1/2 1 not-connected 4 32 disabled 0 2/1 1 not-connected 100 32 disabled 0 2/2 1 not-connected 100 32 disabled 0 2/3 1 forwarding 12 32 disabled 0
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-17
2/4
not-connected
100
32 disabled
Configure the PVST+ port priority for a switch port. Verify the port priority setting.
This example shows how to configure the PVST+ port priority for a port:
Console> (enable) set spantree portpri 2/3 16 Bridge port 2/3 port priority set to 16. Console> (enable) show spantree 2/3 VLAN 1 . . . Port Vlan Port-State Cost Prio Portfast Channel_id ------------------------ ---- ------------- --------- ---- -------- ---------1/1 1 not-connected 4 32 disabled 0 1/2 1 not-connected 4 32 disabled 0 2/1 1 not-connected 100 32 disabled 0 2/2 1 not-connected 100 32 disabled 0 2/3 1 forwarding 19 16 disabled 0 2/4 1 not-connected 100 32 disabled 0
8-18
78-13315-02
Chapter 8
AVERAGE_COST/NUM_PORT The default port cost mode is set to short in PVST+ mode. For port speeds of 10 Gb and greater, the default port cost mode must be set to long. To configure the PVST+ default port cost mode, perform this task in privileged mode: Task Configure the PVST+ default port cost mode. Command set spantree defaultcostmode {short | long}
This example shows how to configure the PVST+ default port cost mode:
Console> (enable) set spantree defaultcostmode long Portcost and portvlancost set to use long format default values. Console> (enable)
Note
When you use the set channel cost command, it does not appear in the configuration file. The command causes a set spantree portcost entry to be created for each port in the channel. See the Setting the EtherChannel Port Path Cost section in Chapter 6, Configuring EtherChannel, for information on using the set channel cost command. This example shows how to configure the PVST+ port VLAN cost on port 2/3 for VLANs 1 through 5:
Console> (enable) set spantree portvlancost 2/3 cost 20000 1-5 Port 2/3 VLANs 6-11,13-1005,1025-4094 have path cost 12. Port 2/3 VLANs 1-5,12 have path cost 20000. This parameter applies to trunking ports only. Console> (enable
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-19
Command
Configure the PVST+ port priority for a VLAN on set spantree portvlanpri mod/port priority a port. [vlans] Verify the port VLAN priority. show config all
This example shows how to configure the port priority for VLAN 6 on port 2/3:
Console> (enable) set spantree portvlanpri 2/3 16 6 Port 2/3 vlans 6 using portpri 16. Port 2/3 vlans 1-5,7-800,802-1004,1006-4094 using portpri 32. Port 2/3 vlans 801,1005 using portpri 4. This parameter applies to trunking ports only. Console> (enable) show config all . . . set spantree portcost 2/12,2/15 19 set spantree portcost 2/1-2,2/4-11,2/13-14,2/16-48 100 set spantree portcost 2/3 12 set spantree portpri 2/1-48 32 set spantree portvlanpri 2/1 0 set spantree portvlanpri 2/2 0 . . . set spantree portvlanpri 2/48 0 set spantree portvlancost 2/1 cost 99 set spantree portvlancost 2/2 cost 99 set spantree portvlancost 2/3 cost 20000 1-5,12
Caution
We do not recommend disabling spanning tree, even in a topology that is free of physical loops. Spanning tree serves as a safeguard against misconfigurations and cabling errors. Do not disable spanning tree in a VLAN without ensuring that there are no physical loops present in the VLAN.
8-20
78-13315-02
Chapter 8
Caution
Do not disable spanning tree on a VLAN unless all switches or routers in the VLAN have spanning tree disabled. You cannot disable spanning tree on some switches or routers in a VLAN and leave spanning tree enabled on other switches or routers in the VLAN. If spanning tree remains enabled on the switches and routers, they will have incomplete information about the physical topology of the network which may cause unexpected results.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-21
To disable PVST+, perform this task in privileged mode: Task Disable PVST+ mode on a VLAN. This example shows how to disable PVST+ on a VLAN:
Console> (enable) set spantree disable 4 Spantree 4 disabled. Console> (enable)
Note
We recommend that if you use MISTP mode, you should configure all of your Catalyst 6000 family switches to run MISTP. To use MISTP mode, you first enable an MISTP instance, then map at least one VLAN to the instance. You must have at least one forwarding port in the VLAN in order for the MISTP instance to be active.
Note
Map VLANs to MISTP instances on Catalyst 6000 family switches that are either in VTP server mode or transparent mode only. You cannot map VLANs to MISTP instances on switches that are in VTP client mode. If you are changing a switch from PVST+ mode to MISTP mode and you have other switches in the network that are using PVST+, you must first enable MISTP-PVST+ mode on each switch on which you intend to use MISTP so that PVST+ BPDUs can flow through the switches while you configure them. When all switches in the network are configured in MISTP-PVST+, you can then enable MISTP on all of the switches. These sections describe how to use MISTP-PVST+ or MISTP:
Default MISTP and MISTP-PVST+ Configuration, page 8-xxiii Setting MISTP-PVST+ Mode or MISTP Mode, page 8-xxiii Configuring an MISTP Instance, page 8-xxv Mapping VLANs to an MISTP Instance, page 8-xxix Disabling MISTP-PVST+ or MISTP, page 8-xxxi
8-22
78-13315-02
Chapter 8
Feature Enable state MAC address reduction Bridge priority Bridge ID priority Port priority Port cost
Default Value Disabled until a VLAN is mapped to an MISTP instance Disabled 32768 32769 (bridge priority plus the system ID extension of MISTP instance 1) 32 (global)
Default port cost mode Port VLAN priority Port VLAN cost Maximum aging time Hello time Forward delay time
Short (802.1D) Same as port priority but configurable on a per-VLAN basis in PVST+ Same as port cost but configurable on a per-VLAN basis in PVST+ 20 seconds 2 seconds 15 seconds
1. If 10/100 Mbps ports autonegotiate or are hard set to 100 Mbps, the port cost is 19. 2. If 10/100 Mbps ports autonegotiate or are hard set to 10 Mbps, the port cost is 100.
Caution
If you have more than 6000 VLAN ports configured on your switch, changing from MISTP to either PVST+ or MISTP-PVST+ mode could bring down your network. Reduce the number of configured VLAN ports on your switch to no more than 6000 to avoid losing connectivity.
Caution
If you are working from a Telnet connection to your switch, the first time you enable MISTP-PVST+ or MISTP mode, you must do so from the switch console; do not use a Telnet connection through the data port or you will lose your connection to the switch. After you map a VLAN to an MISTP instance, you can Telnet to the switch.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-23
To change from PVST+ to MISTP-PVST+ or MISTP, perform this task in privileged mode: Task Set a spanning tree mode. Command set spantree mode {mistp | pvst+ | mistp-pvst+}
You can display VLAN-to-MISTP instance mapping information propagated from the root switch at runtime. This display is available only in the MISTP or MISTP-PVST+ mode. When in the PVST+ mode, use the optional keyword config to display the list of mappings configured on the local switch.
Note
MAC addresses are not displayed when you specify the keyword config. To display spanning tree mapping, perform this task in privileged mode: Task Command set spantree mode mistp show spantree mapping [config]
Step 1 Step 2
Set the spanning tree mode to MISTP. Show the spanning tree mapping.
This example shows how to display the spanning tree VLAN instance mapping in MISTP mode:
MISTP/MISTP-PVST+ Console> (enable) set spantree mode mistp PVST+ database cleaned up. Spantree mode set to MISTP. Console> (enable) show spantree mapping Inst Root Mac Vlans ---- ----------------- -------------------------1 00-50-3e-78-70-00 1 2 00-50-3e-78-70-00 3 00-50-3e-78-70-00 4 00-50-3e-78-70-00 5 00-50-3e-78-70-00 6 00-50-3e-78-70-00 7 00-50-3e-78-70-00 8 00-50-3e-78-70-00 9 00-50-3e-78-70-00 10 00-50-3e-78-70-00 11 00-50-3e-78-70-00 12 00-50-3e-78-70-00 13 00-50-3e-78-70-00 14 00-50-3e-78-70-00 15 00-50-3e-78-70-00 16 00-50-3e-78-70-00 -
8-24
78-13315-02
Chapter 8
Configuring the MISTP Bridge ID Priority, page 8-xxv Configuring the MISTP Port Cost, page 8-xxvi Configuring the MISTP Port Priority, page 8-xxvi Configuring the MISTP Port Instance Cost, page 8-xxvii Configuring the MISTP Port Instance Priority, page 8-xxvii
Command set spantree priority bridge_ID_priority [mistp-instance instance] show spantree mistp-instance instance [mod/port] active
Configure the bridge ID priority for an MISTP instance. Verify the bridge ID priority.
The example shows how to configure the bridge ID priority for an MISTP instance:
Console> (enable) set spantree priority 8192 mistpinstance 1 Spantree 1 bridge ID priority set to 8193 (bridge priority: 8192 + sys ID extension: 1) Console> (enable) show spantree mistp-instance 1 VLAN 1 Spanning tree mode MISTP Spanning tree type ieee Spanning tree enabled VLAN mapped to MISTP Instance: 1 Bridge ID MAC ADDR Bridge ID Priority Bridge Max Age 20 sec Port -----------------------1/1 1/2 2/1 2/2 2/3 00-d0-00-4c-18-00 8193 (bridge priority: 8192, sys ID ext: 1) Hello Time 2 sec Forward Delay 15 sec Vlan ---1 1 1 1 1 Port-State Cost Prio Portfast Channel_id ------------- --------- ---- -------- ---------not-connected 20000 32 disabled 0 not-connected 20000 32 disabled 0 not-connected 2000000 32 disabled 0 not-connected 2000000 32 disabled 0 forwarding 200000 32 disabled 0
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-25
Configure the MISTP port cost for a switch port. set spantree portcost mod/port cost Verify the port cost setting.
This example shows how to configure the port cost on a MISTP instance and verify the configuration:
Console> Spantree Console> Instance Spanning Spanning Spanning (enable) set spantree portcost 2/12 22222222 port 2/12 path cost set to 22222222. (enable) show spantree mistp-instance active 1 tree mode MISTP-PVST+ tree type ieee tree instance enabled
Designated Root 00-d0-00-4c-18-00 Designated Root Priority 32769 (root priority: 32768, sys ID ext: 1) Designated Root Cost 0 Designated Root Port none VLANs mapped: 6 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR Bridge ID Priority VLANs mapped: Bridge Max Age 20 sec 00-d0-00-4c-18-00 32769 (bridge priority: 32768, sys ID ext: 1) 6 Hello Time 2 sec Forward Delay 15 sec
Port Inst Port-State Cost Prio Portfast Channel_id ------------------------ ---- ------------- --------- ---- -------- ---------2/12 1 forwarding 22222222 40 disabled 0 Console> (enable)
Configure the MISTP port priority for a port. set spantree portpri mod/port priority [instance] Verify the port priority setting.
8-26
78-13315-02
Chapter 8
This example shows how to configure the port priority and verify the configuration:
Console> (enable) set spantree portpri 2/12 40 Bridge port 2/12 port priority set to 40. Console> (enable) show spantree mistp-instance 1 Instance 1 Spanning tree mode MISTP-PVST+ Spanning tree type ieee Spanning tree instance enabled Designated Root 00-d0-00-4c-18-00 Designated Root Priority 32769 (root priority: 32768, sys ID ext: 1) Designated Root Cost 0 Designated Root Port none VLANs mapped: 6 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR Bridge ID Priority VLANs mapped: Bridge Max Age 20 sec 00-d0-00-4c-18-00 32769 (bridge priority: 32768, sys ID ext: 1) 6 Hello Time 2 sec Forward Delay 15 sec
Port Inst Port-State Cost Prio Portfast Channel_id ------------------------ ---- ------------- --------- ---- -------- ---------2/12 1 forwarding 22222222 40 disabled 0 Console> (enable)
Configure the MISTP port instance cost on set spantree portinstancecost {mod/port} [cost cost] a port. [instances] This example shows how to configure the MISTP port instance cost on a port:
Console> (enable) set spantree portinstancecost 2/12 cost 110110 2 Port 2/12 instances 1,3-16 have path cost 22222222. Port 2/12 instances 2 have path cost 110110. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-27
To configure the port instance priority on an MISTP instance, perform this task in privileged mode: Task Configure the port instance priority on an MISTP instance. Command set spantree portinstancepri {mod/port} priority [instances]
This example shows how to configure the port instance priority on an MISTP instance and verify the configuration:
Console> (enable) set spantree portinstancepri 2/12 10 2 Port 2/12 instances 2 using portpri 10. Port 2/12 mistp-instance 1,3-16 using portpri 40. Console> (enable)
Note
The software does not display the status of an MISTP instance until it has a VLAN with an active port mapped to it. To enable an MISTP instance, perform this task in privileged mode. Task Command set spantree enable mistp-instance instance [all] show spantree mistp-instance [instance] [active] mod/port
Step 1 Step 2
Note
Enter the active keyword to display active ports only. This example shows how to enable an MISTP instance:
Console> (enable) set spantree enable mistp-instance 2 Spantree 2 enabled. Console> Instance Spanning Spanning Spanning . . . (enable) show spantree mistp-instance 2 2 tree mode MISTP tree type ieee tree instance enabled
8-28
78-13315-02
Chapter 8
Determining MISTP InstancesVLAN Mapping Conflicts, page 8-xxx Unmapping VLANs from an MISTP Instance, page 8-xxx
Note
See Chapter 11, Configuring VLANs for details on using and configuring VLANs.
You can only map Ethernet VLANs to MISTP instances. At least one VLAN in the instance must have an active port in order for MISTP-PVST+ or MISTP to be active. You can map as many Ethernet VLANs as you wish to an MISTP instance. You cannot map a VLAN to more than one MISTP instance.
Note
To use VLANs 10254094, you must enable MAC address reduction. See the Creating Extended-Range VLANs section on page 11-7 in Chapter 11, Configuring VLANs for details on using extended-range VLANs. To map a VLAN to an MISTP instance, perform this task in privileged mode: Task Command set vlan vlan mistp-instance instance show spantree mistp-instance [instance] [active] mod/port
Step 1 Step 2
This example shows how to map a VLAN to MISTP instance 1 and verify the mapping:
Console> (enable) set vlan 6 mistp-instance 1 Vlan 6 configuration successful Console> (enable) show spantree mist-instance 1 Instance 1 Spanning tree mode MISTP-PVST+ Spanning tree type ieee Spanning tree instance enabled Designated Root 00-d0-00-4c-18-00 Designated Root Priority 49153 (root priority: 49152, sys ID ext: 1) Designated Root Cost 0 Designated Root Port none VLANs mapped: 6 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR Bridge ID Priority VLANs mapped: Bridge Max Age 20 sec 00-d0-00-4c-18-00 49153 (bridge priority: 49152, sys ID ext: 1) 6 Hello Time 2 sec Forward Delay 15 sec
Port Inst Port-State Cost Prio Portfast Channel_id ------------------------ ---- ------------- --------- ---- -------- ----------
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-29
2/12
forwarding
22222222
40 disabled 0
This example shows there is an attempt to map VLAN 2 to MISTP instance 1 and to MISTP instance 3 on two different switches as seen from a third switch in the topology:
Console> (enable) show spantree conflicts 2 Inst MAC Delay Time left ---- ----------------- --------- --------1 00-30-a3-4a-0c-00 inactive 20 3 00-30-f1-e5-00-01 inactive 10
The Delay timer shows the time in seconds remaining before the VLAN joins the instance. The field displays inactive if the VLAN is already mapped to an instance (the timer has expired), or if the VLAN is in conflict between instances. The Time Left timer shows the time in seconds left before the entry expires and is removed from the table. The timer is restarted every time an incoming BPDU confirms the mapping. Entries pertaining to the root switch show inactive on the root switch itself.
8-30
78-13315-02
Chapter 8
Configuring a Primary Root Switch, page 8-xxxi Configuring a Secondary Root Switch, page 8-xxxii Configuring a Root Switch to Improve Convergence, page 8-xxxiii Using Root GuardPreventing Switches from Becoming Root, page 8-xxxiv
Caution
Enter the set spantree root command on backbone switches or distribution switches only, not on access switches. To configure a switch as the primary root switch, perform this task in privileged mode: Task Configure a switch as the primary root switch. Command set spantree root [vlans] [dia network_diameter] [hello hello_time]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-31
This example shows how to configure the primary root switch for VLANs 110:
Console> (enable) VLANs 1-10 bridge VLANs 1-10 bridge VLANs 1-10 bridge VLANs 1-10 bridge Switch is now the Console> (enable) set spantree root 1-10 dia 4 priority set to 8192 max aging time set to 14 seconds. hello time set to 2 seconds. forward delay set to 9 seconds. root switch for active VLANs 1-6.
To configure a switch as the primary root switch for an instance, perform this task in privileged mode: Task Command
Configure a switch as the primary root switch for set spantree root mistp-instance instance [dia an instance. network_diameter] [hello hello_time] This example shows how to configure the primary root switch for an instance:
Console> (enable) set spantree root mistp-instance 2-4 dia 4 Instances 2-4 bridge priority set to 8192 VLInstances 2-4 bridge max aging time set to 14 seconds. Instances 2-4 bridge hello time set to 2 seconds. Instances 2-4 bridge forward delay set to 9 seconds. Switch is now the root switch for active Instances 1-6. Console> (enable)
This example shows how to configure the secondary root switch for VLANs 22 and 24:
Console> (enable) set spantree root secondary 22,24 dia 5 hello 1 VLANs 22,24 bridge priority set to 16384. VLANs 22,24 bridge max aging time set to 10 seconds. VLANs 22,24 bridge hello time set to 1 second. VLANs 22,24 bridge forward delay set to 7 seconds. Console> (enable)
8-32
78-13315-02
Chapter 8
To configure a switch as the secondary root switch for an instance, perform this task in privileged mode: Task Configure a switch as the secondary root switch for an instance. Command set spantree root [secondary] mistp-instance instance [dia network_diameter] [hello hello_time]
This example shows how to configure the secondary root for an instance:
Console> (enable) set spantree root secondary mistp-instance 2-4 dia 4 Instances 2-4 bridge priority set to 8192 VLInstances 2-4 bridge max aging time set to 14 seconds. Instances 2-4 bridge hello time set to 2 seconds. Instances 2-4 bridge forward delay set to 9 seconds. Switch is now the root switch for active Instances 1-6. Console> (enable)
Note
Reducing the timer parameters values is possible only if your network has LAN links of 10 Mbps or faster. In a network with links of 10 Mbps or faster, the network diameter can reach the maximum value of 7. With WAN connections, you cannot reduce the parameters. When a link failure occurs in a bridged network, the network reconfiguration is not immediate. Reconfiguring the default parameters (specified by IEEE 802.1D) for the Hello Time, Forward Delay Timer, and Maximum Age Timer requires a 50-second delay. This reconfiguration time depends on the network diameter, which is the maximum number of bridges between any two end stations. To speed up convergence, use nondefault parameter values permitted by the 802.1D standard. See Table 5 for the nondefault parameters for a reconvergence of 14 seconds.
Table 8-5 Nondefault Parameters
Parameter Network Diameter (dia) Hello Time Forward Delay Timer Maximum Age Timer
Note
You can set switch ports in PortFast mode for improved convergence. PortFast mode affects only the transition from disable (link down) to enable (link up) by moving the port immediately to the forwarding state. If a port in the PortFast mode begins blocking, it then goes through listening and learning before reaching the forwarding state. For information about PortFast, see the
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-33
Understanding How PortFast Works section on page 9-2 in Chapter 9, Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard. To configure the spanning tree parameters to improve convergence, perform this task in privileged mode: Task
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6
Command
Configure the hello time for a VLAN or an set spantree hello interval [vlan] mistp-instance MISTP instance. [instances] Verify the configuration. Configure the forward delay time for a VLAN or an MISTP instance. Verify the configuration. Configure the maximum aging time for a VLAN or an MISTP instance. Verify the configuration. show spantree [vlan | mistp-instance instances] set spantree fwddelay delay [vlan] mistp-instance [instances] show spantree [mod/port] mistp-instance [instances] [active] set spantree maxage agingtime [vlans] mistp-instance instances show spantree [mod/port] mistp-instance [instances] [active]
This example shows how to configure the spanning tree Hello Time, Forward Delay Timer, and Maximum Age Timer to 2, 4, and 4 seconds respectively:
Console> (enable) set spantree hello 2 100 Spantree 100 hello time set to 7 seconds. Console> (enable) Console> (enable) set spantree fwddelay 4 100 Spantree 100 forward delay set to 21 seconds. Console> (enable) Console> (enable) set spantree maxage 6 100 Spantree 100 max aging time set to 36 seconds. Console> (enable) Console> (enable) set spantree root 1-10 dia 4 VLANs 1-10 bridge priority set to 8192 VLANs 1-10 bridge max aging time set to 14 seconds. VLANs 1-10 bridge hello time set to 2 seconds. VLANs 1-10 bridge forward delay set to 9 seconds. Switch is now the root switch for active VLANs 1-6. Console> (enable)
8-34
78-13315-02
Chapter 8
To prevent switches from becoming root, perform this task in privileged mode: Task
Step 1 Step 2
Command set spantree guard {root | none} mod/port show spantree guard {mod/port | vlan} {mistp-instance instance | mod/port}
Configuring the Hello Time, page 8-xxxv Configuring the Forward Delay Time, page 8-xxxvi Configuring the Maximum Aging Time, page 8-xxxvi
Caution
Exercise care using these commands. For most situations, we recommend that you use the set spantree root and set spantree root secondary commands to modify the spanning tree performance parameters. Table 6 describes the switch variables that affect spanning tree performance.
Table 8-6 Spanning Tree Timers
Description Determines how often the switch broadcasts its hello message to other switches.
Default 2 seconds
Measures the age of the received protocol information recorded for 20 seconds a port and ensures that this information is discarded when its age limit exceeds the value of the maximum age parameter recorded by the switch. The timeout value is the maximum age parameter of the switches. Monitors the time spent by a port in the learning and listening states. The timeout value is the forward delay parameter of the switches. 15 seconds
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-35
To configure the spanning tree bridge hello time for a VLAN or an MISTP instance, perform this task in privileged mode: Task
Step 1 Step 2
Command
Configure the hello time for a VLAN or an set spantree hello interval [vlan] mistp-instance MISTP instance. [instances] Verify the configuration. show spantree [vlan | mistp-instance instances]
This example shows how to configure the spanning tree hello time for VLAN 100 to 7 seconds:
Console> (enable) set spantree hello 7 100 Spantree 100 hello time set to 7 seconds. Console> (enable)
This example shows how to configure the spanning tree hello time for an instance to 3 seconds:
Console> (enable) set spantree hello 3 mistp-instance 1 Spantree 1 hello time set to 3 seconds. Console> (enable)
Command
Configure the forward delay time for a VLAN or set spantree fwddelay delay [vlan] an MISTP instance. mistp-instance [instances] Verify the configuration. show spantree [mod/port] mistp-instance [instances] [active]
This example shows how to configure the spanning tree forward delay time for VLAN 100 to 21 seconds:
Console> (enable) set spantree fwddelay 21 100 Spantree 100 forward delay set to 21 seconds. Console> (enable)
This example shows how to set the bridge forward delay for an instance to 16 seconds:
Console> (enable) set spantree fwddelay 16 mistp-instance 1 Instance 1 forward delay set to 16 seconds. Console> (enable)
8-36
78-13315-02
Chapter 8
To configure the spanning tree maximum aging time for a VLAN or an instance, perform this task in privileged mode: Task
Step 1 Step 2
Command set spantree maxage agingtime [vlans] mistp-instance instances show spantree [mod/port] mistp-instance [instances] [active]
Configure the maximum aging time for a VLAN or an MISTP instance. Verify the configuration.
This example shows how to configure the spanning tree maximum aging time for VLAN 100 to 36 seconds:
Console> (enable) set spantree maxage 36 100 Spantree 100 max aging time set to 36 seconds. Console> (enable)
This example shows how to set the maximum aging time for an instance to 25 seconds:
Console> (enable) set spantree maxage 25 mistp-instance 1 Instance 1 max aging time set to 25 seconds. Console> (enable)
Spanning tree timers lapse. Expected BPDUs are not received. Spanning tree detects topology changes.
The skew causes BPDUs to reflood the network to keep the spanning tree topology database current. The root switch advertises its presence by sending out BPDUs for the configured Hello time interval. The nonroot switches receive and process one BPDU during each configured time period. A VLAN may not receive the BPDU as scheduled. If the BPDU is not received on a VLAN at the configured time interval, the BPDU is skewed. Spanning tree uses the Hello Time (see the Configuring the Hello Time section on page 8-xxxv) to detect when a connection to the root switch exists through a port and when that connection is lost. This feature applies to both PVST+ and MISTP. In MISTP, the skew detection is on a per-instance basis. BPDU skewing detects BPDUs that are not processed in a regular time frame on the nonroot switches in the network. If BPDU skewing occurs, a syslog message is displayed. The syslog applies to both PVST+ and MISTP. The number of syslog messages that are generated may impact the convergence of the network and the CPU utilization of the switch. New syslog messages are not generated as individual messages for every VLAN because the higher the number of syslog messages that are reported, the slower the switching process will be. To reduce the impact on the switch, the syslog messages are as follows:
Generated 50 percent of the maximum age time (see the Configuring the Maximum Aging Time section on page 8-xxxvi) Rate limited at one for every 60 seconds
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-37
Allow you to enable or disable BPDU skewing. The default is disabled. Modify the show spantree summary output to show if the skew detection is enabled and for which VLANs or PVST+ or MISTP instances the skew was detected. Provide a display of the VLAN or PVST+ or MISTP instance and the port affected by the skew including this information:
The last skew duration (in absolute time) The worst skew duration (in absolute time) The date and time of the worst duration
To change how spanning tree performs BPDU skewing statistics gathering, enter the set spantree bpdu-skewing command. The bpdu-skewing command is disabled by default. To configure the BPDU skewing statistics gathering for a VLAN, perform this task in privileged mode: Task
Step 1 Step 2
Command set spantree bpdu-skewing [enable | disable] show spantree bpdu-skewing vlan [mod/port] show spantree bpdu-skewing mistp-instance [instance] [mod/port]
This example shows how to configure BPDU skewing and view the skewing statistics:
Console> (enable) set spantree bpdu-skewing Usage:set spantree bpdu-skewing <enable|disable> Console> (enable) set spantree bpdu-skewing enable Spantree bpdu-skewing enabled on this switch. Console> (enable) Console> (enable) show spantree bpdu-skewing 1 Bpdu skewing statistics for vlan 1 Port Last Skew ms Worst Skew ms Worst Skew Time ------ ------------- ------------- ------------------------8/2 5869 108370 Tue Nov 21 2000, 06:25:59 8/4 4050 113198 Tue Nov 21 2000, 06:26:04 8/6 113363 113363 Tue Nov 21 2000, 06:26:05 8/8 4111 113441 Tue Nov 21 2000, 06:26:05 8/10 113522 113522 Tue Nov 21 2000, 06:26:05 8/12 4111 113600 Tue Nov 21 2000, 06:26:05 8/14 113678 113678 Tue Nov 21 2000, 06:26:05 8/16 4111 113755 Tue Nov 21 2000, 06:26:05 8/18 113833 113833 Tue Nov 21 2000, 06:26:05 8/20 4111 113913 Tue Nov 21 2000, 06:26:05 8/22 113917 113917 Tue Nov 21 2000, 06:26:05 8/24 4110 113922 Tue Nov 21 2000, 06:26:05 8/26 113926 113926 Tue Nov 21 2000, 06:26:05 8/28 4111 113931 Tue Nov 21 2000, 06:26:05 Console> (enable)
8-38
78-13315-02
Chapter 8
This example shows how to configure BPDU skewing for VLAN 1 on module 8, port 2 and view the skewing statistics:
Console> (enable) show spantree bpdu-skewing 1 8/4 Bpdu skewing statistics for vlan 1 Port Last Skew ms Worst Skew ms Worst Skew Time ------ ------------- ------------- ------------------------8/4 5869 108370 Tue Nov 21 2000, 06:25:59
You will receive a similar output when MISTP is running. The show spantree summary command displays if BPDU skew detection is enabled and also lists the VLANs or instances affected in the skew. This example shows the output when using the show spantree summary command:
Console> (enable) show spantree summary Root switch for vlans: 1 BPDU skewing detection enabled for the bridge BPDU skewed for vlans: 1 Portfast bpdu-guard disabled for bridge. Portfast bpdu-filter disabled for bridge. Uplinkfast disabled for bridge. Backbonefast disabled for bridge. Summary of connected spanning tree ports by vlan VLAN Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------1 6 4 2 0 12 Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------Total 6 4 2 0 12 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
8-39
8-40
78-13315-02
C H A P T E R
Note
For information on configuring the Spanning Tree Protocol (STP), see Chapter 8, Configuring Spanning Tree.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How PortFast Works, page 9-ii Understanding How PortFast BPDU Guard Works, page 9-ii Understanding How PortFast BPDU Filter Works, page 9-ii Understanding How UplinkFast Works, page 9-ii Understanding How BackboneFast Works, page 9-iv Understanding How Loop Guard Works, page 9-v Configuring PortFast, page 9-vii Configuring PortFast BPDU Guard, page 9-ix Configuring PortFast BPDU Filter, page 9-xi Configuring UplinkFast, page 9-xiii Configuring BackboneFast, page 9-xv Configuring Loop Guard, page 9-xvii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-1
Caution
Use PortFast only when connecting a single end station to a switch port. Otherwise, you might create a network loop. To prevent loops in a network, you can enable PortFast on nontrunking access ports only because these ports typically do not transmit or receive bridge protocol data units (BPDUs). If you enable PortFast on nontrunking ports that connect two switches, spanning tree loops can occur if BPDUs are being transmitted and received on those ports. The most secure implementation of PortFast occurs when you enable it on ports that connect end stations to switches.
Note
When enabled on the switch, spanning tree applies the PortFast BPDU guard feature to all PortFast-configured interfaces.
9-2
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Understanding How UplinkFast Works
Note
UplinkFast is most useful in wiring-closet switches. This feature may not be useful for other types of applications. Figure 1 shows an example 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 port on Switch C that is connected directly to Switch B is in blocking state.
Figure 9-1 UplinkFast Example Before Direct Link Failure
Switch A (Root) L1
Switch B
L2
If Switch C detects a link failure on the currently active link L2 (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 2. This switchover takes approximately 1 to 5 seconds.
Figure 9-2 UplinkFast Example After Direct Link Failure
Switch A (Root) L1
Switch B
L2 Link failure
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-3
Switch A (Root) L1
Switch B
L2
If link L1 fails, Switch C detects this failure as an indirect failure, since it is not connected directly to link L1. Switch B no longer has a path to the root switch. BackboneFast allows the blocked port on Switch C to move immediately to the listening state without waiting for the maximum aging time for the port to expire. BackboneFast then transitions the port on Switch C to the forwarding state, providing a path from Switch B to Switch A. This switchover takes approximately 30 seconds. Figure 4 shows how BackboneFast reconfigures the topology to account for the failure of link L1.
9-4
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Understanding How Loop Guard Works
Figure 9-4
Switch B
Switch C
If a new switch is introduced into a shared-medium topology, BackboneFast is not activated. Figure 5 shows a shared-medium topology in which a new switch is added. 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.
Figure 9-5 Adding a Switch in a Shared-Medium Topology
Switch A (Root)
Added switch
11245
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11244
BackboneFast transitions port through listening and learning states to forwarding state
9-5
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 6 shows loop guard in a triangle switch configuration.
Figure 9-6 Triangle Switch Configuration with Loop Guard
3/2
3/1
3/2
C Designated port
55772
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.
Use loop guard only in topologies where there are blocked ports. Topologies that have no blocked ports, which are loop free, do not need to enable this feature. 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:
You cannot enable loop guard on PortFast-enabled or dynamic VLAN ports. You cannot enable PortFast on loop guard-enabled ports. You cannot enable loop guard if root guard is enabled.
Loop guard does not affect the functionality of UplinkFast or BackboneFast. Do not enable loop guard on ports that are connected to a shared link.
Note
We recommend that you enable loop guard on root ports and alternate root ports on access switches.
9-6
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Configuring PortFast
Root guard forces a port to be always designated as 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. PortFast transitions a port into a forwarding state immediately when a link is established. Because a PortFast-enabled port will not be a root port or alternate port, loop guard and PortFast cannot be configured on the same port. Assigning dynamic VLAN membership for the port requires that the port is PortFast enabled. You cannot configure a loop guard-enabled port with dynamic VLAN membership. If your network has a type-inconsistent port or a PVID-inconsistent port, all BPDUs are dropped until the misconfiguration is corrected. The port transitions out of the inconsistent state after the message age expires. Loop guard ignores the message age expiration on type-inconsistent ports and PVID-inconsistent ports. If the port is already blocked by loop guard, misconfigured BPDUs received on the port make loop guard recover, but the port is moved into the type-inconsistent state or PVID-inconsistent state. In high-availability switch configurations, if a port is put into the blocked state by loop guard, it remains blocked even after switchover to the redundant supervisor engine. The newly activated supervisor engine recovers the port only after receiving a BPDU on that port. 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. These caveats apply to loop guard:
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.
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.
Note
You can enable UniDirectional Link Detection (UDLD) to help isolate the link failure. A loop may occur until UDLD detects the failure, but loop guard will not be able to detect it.
Configuring PortFast
These sections describe how to configure PortFast on the switch:
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-7
Enabling PortFast
Caution
Use PortFast only when you connect a single end station to a switch port; otherwise, you might create a network loop. To enable PortFast on a switch port, perform this task in privileged mode: Task Command set spantree portfast mod/port enable show spantree mod/port
Step 1 Step 2
Enable PortFast on a switch port connected to a single workstation or server. Verify the PortFast setting.
This example shows how to enable PortFast on a port and verify the configuration (the PortFast status is shown in the Fast-Start column):
Console> (enable) Warning: Spantree to a single host. a fast start port Spantree port 4/1 set spantree portfast 4/1 enable port fast start should only be enabled on ports connected Connecting hubs, concentrators, switches, bridges, etc. to can cause temporary spanning tree loops. Use with caution. fast start enabled.
Console> (enable) show spantree 4/1 Port Vlan Port-State Cost --------- ---- ------------- ----4/1 1 blocking 19 4/1 100 forwarding 10 4/1 521 blocking 19 4/1 522 blocking 19 4/1 523 blocking 19 4/1 524 blocking 19 4/1 1003 not-connected 19 4/1 1005 not-connected 19 Console> (enable)
Priority -------20 20 20 20 20 20 20 4
Group-method ------------
Disabling PortFast
To disable PortFast on a switch port, perform this task in privileged mode: Task
Step 1 Step 2
9-8
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Configuring PortFast BPDU Guard
Enabling PortFast BPDU Guard, page 9-ix Disabling PortFast BPDU Guard, page 9-x
Although the PortFast feature is configured on an individual port, the PortFast BPDU guard option is configured globally. When you disable PortFast on a port, PortFast BPDU guard becomes inactive. To enable PortFast BPDU guard on a nontrunking switch port, perform this task in privileged mode: Task Command set spantree portfast bpdu-guard enable show spantree summary
Step 1 Step 2
Enable PortFast BPDU guard on the switch. Verify the PortFast BPDU guard setting.
This example shows how to enable PortFast BPDU guard on the switch and verify the configuration in the Per VLAN Spanning Tree + (PVST+) mode:
Note
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-9
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 4 4 4 0 0
0 4 4 4 0 0
Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------Total 0 0 0 85 85 Console> (enable)
Disable PortFast BPDU guard on the switch. Verify the PortFast BPDU guard setting.
This example shows how to disable PortFast BPDU guard on the switch and verify the configuration:
Console> (enable) set spantree portfast bpdu-guard disable Spantree portfast bpdu-guard disabled on this switch. Console> (enable) show spantree summary Summary of connected spanning tree ports by vlan Portfast bpdu-guard disabled for bridge. Uplinkfast disabled for bridge. Backbonefast disabled for bridge. Vlan Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------1 0 0 0 4 4 2 0 0 0 4 4 3 0 0 0 4 4 4 0 0 0 4 4 5 0 0 0 4 4 6 0 0 0 4 4 10 0 0 0 4 4 20 0 0 0 4 4 50 0 0 0 4 4 100 0 0 0 4 4 152 0 0 0 4 4 200 0 0 0 5 5 300 0 0 0 4 4 400 0 0 0 4 4 500 0 0 0 4 4 521 0 0 0 4 4 524 0 0 0 4 4 570 0 0 0 4 4 801 0 0 0 0 0 802 0 0 0 0 0 850 0 0 0 4 4 917 0 0 0 4 4 999 0 0 0 4 4
9-10
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Configuring PortFast BPDU Filter
1003 1005
0 0
0 0
0 0
0 0
0 0
Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------Total 0 0 0 85 85 Console> (enable)
Enabling PortFast BPDU Filter, page 9-xi Disabling PortFast BPDU Filter, page 9-xii
Command set spantree portfast bpdu-filter enable show spantree summary show spantree portfast
Enable PortFast BPDU filtering on the port. Verify the PortFast BPDU filter setting.
This example shows how to enable PortFast BPDU filtering on the port and verify the configuration in PVST+ mode:
Note
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-11
Vlan Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------1 0 0 0 4 4 2 0 0 0 4 4 3 0 0 0 4 4 4 0 0 0 4 4 5 0 0 0 4 4 6 0 0 0 4 4 . . . 850 0 0 0 4 4 917 0 0 0 4 4 999 0 0 0 4 4 1003 0 0 0 0 0 1005 0 0 0 0 0 Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------Total 0 0 0 85 85 Console> (enable)
Command set spantree portfast bpdu-filter disable show spantree show portfast
Disable PortFast BPDU filtering on the switch. Verify the PortFast BPDU filter setting.
This example shows how to disable PortFast BPDU filtering on the switch and verify the configuration:
Console> (enable) set spantree portfast bpdu-filter disable Spantree portfast bpdu-filter disabled on this switch. Console> (enable) show spantree summary Summary of connected spanning tree ports by vlan Portfast bpdu-filter disabled for bridge. Uplinkfast disabled for bridge. Backbonefast disabled for bridge. Vlan Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------1 0 0 0 4 4 2 0 0 0 4 4 3 0 0 0 4 4 4 0 0 0 4 4 5 0 0 0 4 4 6 0 0 0 4 4 10 0 0 0 4 4 . . . 802 0 0 0 0 0 850 0 0 0 4 4 917 0 0 0 4 4 999 0 0 0 4 4
9-12
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Configuring UplinkFast
1003 1005
0 0
0 0
0 0
0 0
0 0
Blocking Listening Learning Forwarding STP Active ----- -------- --------- -------- ---------- ---------Total 0 0 0 85 85 Console> (enable)
Configuring UplinkFast
You can configure UplinkFast for PVST+ or for Multi-Instance Spanning Tree Protocol (MISTP). The command is the same but the output may be slightly different.
Note
For additional MISTP information, see Chapter 8, Configuring Spanning Tree. These sections describe how to configure UplinkFast on the switch:
Enabling UplinkFast
The set spantree uplinkfast enable command increases the path cost of all ports on the switch, making it unlikely that the switch will become the root switch. The station_update_rate value represents the number of multicast packets transmitted per 100 milliseconds (the default is 15 packets per millisecond).
Note
When you enable the set spantree uplinkfast command, it affects all VLANs on the switch. You cannot configure UplinkFast on an individual VLAN. To enable UplinkFast on the switch, perform this task in privileged mode: Task Command set spantree uplinkfast enable [rate station_update_rate] [all-protocols off | on] show spantree uplinkfast [{mistp-instance [instances]}| vlans]
Step 1 Step 2
With PVST+ mode enabled, this example shows how to enable UplinkFast with a station-update rate of 40 packets per 100 milliseconds and how to verify that UplinkFast is enabled:
Console> (enable) set spantree uplinkfast enable VLANs 1-4094 bridge priority set to 49152. The port cost and portvlancost of all ports set to above 3000. Station update rate set to 15 packets/100ms. uplinkfast all-protocols field set to off. uplinkfast enabled for bridge.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-13
Console> (enable) show spantree uplinkfast 1 100 521-524 Station update rate set to 15 packets/100ms. uplinkfast all-protocols field set to off. VLAN port list ----------------------------------------------1 1/1(fwd),1/2 100 1/2(fwd) 521 1/1(fwd),1/2 522 1/1(fwd),1/2 523 1/1(fwd),1/2 524 1/1(fwd),1/2 Console> (enable)
This example shows how to display the UplinkFast feature settings for all VLANs:
Console> show spantree uplinkfast Station update rate set to 15 packets/100ms. uplinkfast all-protocols field set to off. VLAN port list -----------------------------------------------1-20 1/1(fwd),1/2-1/5 21-50 1/9(fwd), 1/6-1/8, 1/10-1/12 51-100 2/1(fwd), 2/12 Console>
With MISTP mode enabled, this example shows the output when you enable UplinkFast:
Console> (enable) set spantree uplinkfast enable Instances 1-16 bridge priority set to 49152. The port cost and portinstancecost of all ports set to above 10000000. Station update rate set to 15 packets/100ms. uplinkfast all-protocols field set to off. uplinkfast enabled for bridge. Console> (enable)
This example shows how to display the UplinkFast feature settings for a specific instance:
Console> show spantree uplinkfast mistp-instance 1 Station update rate set to 15 packets/100ms. uplinkfast all-protocols field set to off. Inst port list -----------------------------------------------1 4/1(fwd) Console>
Disabling UplinkFast
The set spantree uplinkfast disable command disables UplinkFast on the switch, but the switch priority and port cost values are not reset to the factory defaults.
Note
When you enter the set spantree uplinkfast disable command, it affects all VLANs on the switch. You cannot disable UplinkFast on an individual VLAN.
9-14
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Configuring BackboneFast
To disable UplinkFast on the switch, perform this task in privileged mode: Task
Step 1 Step 2
With PVST+ mode enabled, this example shows how to disable UplinkFast on the switch and verify the configuration:
Console> (enable) set spantree uplinkfast disable Uplinkfast disabled for switch. Use clear spantree uplinkfast to return stp parameters to default. Console> (enable) show spantree uplinkfast Station update rate set to 15 packets/100ms. uplinkfast all-protocols field set to off. VLAN port list ----------------------------------------------1 1/1(fwd),1/2 100 1/2(fwd) 521 1/1(fwd),1/2 522 1/1(fwd),1/2 523 1/1(fwd),1/2 524 1/1(fwd),1/2 Console> (enable)
Configuring BackboneFast
These sections describe how to configure BackboneFast:
Enabling BackboneFast, page 9-xv Displaying BackboneFast Statistics, page 9-xvi Disabling BackboneFast, page 9-xvi
Enabling BackboneFast
Note
For BackboneFast to work, you must enable it on all switches in the network. BackboneFast is not supported on Token Ring VLANs. This feature is supported for use with third-party switches. To enable BackboneFast on the switch, perform this task in privileged mode: Task Command set spantree backbonefast enable show spantree backbonefast
Step 1 Step 2
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-15
This example shows how to enable BackboneFast on the switch and how to verify the configuration:
Console> (enable) set spantree backbonefast enable Backbonefast enabled for all VLANs Console> (enable) show spantree backbonefast Backbonefast is enabled. Console> (enable)
: : : : :
0 0 0 0 0
Disabling BackboneFast
To disable BackboneFast on the switch, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to disable BackboneFast on the switch and how to verify the configuration:
Console> (enable) set spantree backbonefast disable Backbonefast enabled for all VLANs Console> (enable) show spantree backbonefast Backbonefast is disable. Console> (enable)
9-16
78-13315-02
Chapter 9
Configuring Spanning Tree PortFast, UplinkFast, BackboneFast, and Loop Guard Configuring Loop Guard
Enabling Loop Guard, page 9-xvii Disabling Loop Guard, page 9-xvii
Command set spantree guard loop mod/port show spantree guard {mod/port | vlan} mistp-instance instance
Command set spantree guard none mod/port show spantree guard {mod/port | vlan} mistp-instance instance
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
9-17
9-18
78-13315-02
C H A P T E R
10
Configuring VTP
This chapter describes how to configure the VLAN Trunking Protocol (VTP) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How VTP Works, page 10-i Default VTP Configuration, page 10-v VTP Configuration Guidelines, page 10-v Configuring VTP, page 10-vi
Note
For complete information on configuring VLANs, see Chapter 11, Configuring VLANs. These sections describe how VTP works:
Understanding the VTP Domain, page 10-ii Understanding VTP Modes, page 10-ii Understanding VTP Advertisements, page 10-ii Understanding VTP Version 2, page 10-iii Understanding VTP Pruning, page 10-iii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
10-1
Configuring VTP
ServerIn 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 switches in the same VTP domain and synchronize their VLAN configuration with other switches based on advertisements received over trunk links. VTP server is the default mode. ClientVTP clients behave the same way as VTP servers, but you cannot create, change, or delete VLANs on a VTP client. TransparentVTP transparent switches do not participate in VTP. A VTP transparent switch does not advertise its VLAN configuration and does not synchronize its VLAN configuration based on received advertisements. However, in VTP version 2, transparent switches do forward VTP advertisements that they receive out their trunk ports.
VLAN IDs (ISL and 802.1Q) Emulated LAN names (for ATM LANE) 802.10 SAID values (FDDI)
10-2
78-13315-02
Chapter 10
VTP domain name VTP configuration revision number VLAN configuration, including the maximum transmission unit (MTU) size for each VLAN Frame format
Note
If you are using VTP in a Token Ring environment, you must use version 2. VTP version 2 supports the following features not supported in version 1:
Token Ring supportVTP version 2 supports Token Ring LAN switching and VLANs (Token Ring Bridge Relay Function [TrBRF] and Token Ring Concentrator Relay Function [TrCRF]). For more information about Token Ring VLANs, see Chapter 11, Configuring VLANs. Unrecognized Type-Length-Value (TLV) SupportA 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 ModeIn VTP version 1, a VTP transparent switch inspects VTP messages for the domain name and version and forwards a message only if the version and domain name match. Since only one domain is supported in the supervisor engine software, VTP version 2 forwards VTP messages in transparent mode, without checking the version. Consistency ChecksIn 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.
Note
If you are using routers to route between emulated LANS, you should disable VTP pruning in the VTP management domain that contains the switches with ATM LANE modules installed (VTP pruning messages are sent over the ATM LANE module because it is a trunk). Another solution is to disable pruning for the LANE VLANs using the clear vtp pruneeligible command on all switches with ATM LANE modules.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
10-3
Configuring VTP
Figure 1 shows a switched network without VTP pruning enabled. Port 1 on Switch 1 and port 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 switch in the network receives it, even though Switches 3, 5, and 6 have no ports in the Red VLAN.
Figure 10-1 Flooding Traffic without VTP Pruning
Switch 4 Port 2
Switch 5
Port 1
S5812
Switch 6
Switch 3
Switch 1
Figure 2 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 (port 5 on Switch 2 and port 4 on Switch 4).
Figure 10-2 Flooding Traffic with VTP Pruning
Switch 4 Port 2 Flooded traffic is pruned.
Port 4
Switch 6
Switch 3
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 pruning eligible. VTP pruning does not prune traffic from VLANs that are pruning ineligible. VLAN 1 is always pruning ineligible; traffic from VLAN 1 cannot be pruned.
10-4
78-13315-02
Chapter 10
To make a VLAN pruning ineligible, enter the clear vtp pruneeligible command. To make a VLAN pruning eligible again, enter the set vtp pruneeligible command. You can set VLAN pruning eligibility regardless of whether VTP pruning is enabled or disabled for the domain. Pruning eligibility always applies to the local device only, not for the entire VTP domain.
Feature VTP domain name VTP mode VTP version 2 enable state VTP password VTP pruning
All switches in a VTP domain must run the same VTP version. You must configure a password on each switch in the management domain when in secure mode.
Caution
If you configure VTP in secure mode, the management domain will not function properly if you do not assign a management domain password to each switch in the domain.
A VTP version 2-capable switch can operate in the same VTP domain as a switch running VTP version 1 provided VTP version 2 is disabled on the VTP version 2-capable switch (VTP version 2 is disabled by default). Do not enable VTP version 2 on a switch unless all of the switches in the same VTP domain are version 2 capable. When you enable VTP version 2 on a switch, all of the version 2-capable switches in the domain enable VTP version 2. In a Token Ring environment, you must enable VTP version 2 for Token Ring VLAN switching to function properly. Enabling or disabling VTP pruning on a VTP server enables or disables VTP pruning for the entire management domain. Making VLANs pruning eligible or pruning ineligible on a switch affects pruning eligibility for those VLANs on that device only (not on all switches in the VTP domain).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
10-5
Configuring VTP
Configuring VTP
These sections describe how to configure VTP:
Configuring a VTP Server, page 10-vi Configuring a VTP Client, page 10-vi Disabling VTP (VTP Transparent Mode), page 10-vii Enabling VTP Version 2, page 10-viii Disabling VTP Version 2, page 10-ix Enabling VTP Pruning, page 10-ix Disabling VTP Pruning, page 10-x Displaying VTP, page 10-x
Command set vtp domain name set vtp mode server set vtp passwd passwd show vtp domain
Define the VTP domain name. Place the switch in VTP server mode. (Optional) Set a password for the VTP domain. Verify the VTP configuration.
This example shows how to configure the switch as a VTP server and verify the configuration:
Console> (enable) set vtp domain Lab_Network VTP domain Lab_Network modified Console> (enable) set vtp mode server VTP domain Lab_Network modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------Lab_Network 1 2 server Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------10 1023 40 enabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------172.20.52.70 disabled disabled 2-1000 Console> (enable)
10-6
78-13315-02
Chapter 10
To configure the switch as a VTP client, perform this task in privileged mode: Task
Step 1 Step 2 Step 3
Command set vtp domain name set vtp mode client show vtp domain
Define the VTP domain name. Place the switch in VTP client mode. Verify the VTP configuration.
This example shows how to configure the switch as a VTP client and verify the configuration:
Console> (enable) set vtp domain Lab_Network VTP domain Lab_Network modified Console> (enable) set vtp mode client VTP domain Lab_Network modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------Lab_Network 1 2 client Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------10 1023 40 enabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------172.20.52.70 disabled disabled 2-1000 Console> (enable)
Note
Network devices in VTP transparent mode do not send VTP Join messages. On Catalyst 6000 family switches with trunk connections to network devices in VTP transparent mode, configure the VLANs that are used by the transparent-mode network devices or that need to be carried across trunks as pruning ineligible (use the clear vtp pruneeligible command). To disable VTP on the switch, perform this task in privileged mode: Task Command set vtp mode transparent show vtp domain
Step 1 Step 2
Disable VTP on the switch by configuring it for VTP transparent mode. Verify the VTP configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
10-7
Configuring VTP
This example shows how to configure the switch as VTP transparent and verify the configuration:
Console> (enable) set vtp mode transparent VTP domain Lab_Net modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------Lab_Net 1 2 Transparent Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------10 1023 0 enabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------172.20.52.70 disabled disabled 2-1000 Console> (enable)
Caution
VTP version 1 and VTP version 2 are not interoperable on switches in the same VTP domain. Every switch in the VTP domain must use the same VTP version. Do not enable VTP version 2 unless every switch in the VTP domain supports version 2.
Note
In a Token Ring environment, you must enable VTP version 2 for Token Ring VLAN switching to function properly. To enable VTP version 2, perform this task in privileged mode: Task Command set vtp v2 enable show vtp domain
Step 1 Step 2
Enable VTP version 2 on the switch. Verify that VTP version 2 is enabled.
This example shows how to enable VTP version 2 and verify the configuration:
Console> (enable) set vtp v2 enable This command will enable the version 2 function in the entire management domain. All devices in the management domain should be version2-capable before enabling. Do you want to continue (y/n) [n]? y VTP domain Lab_Net modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------Lab_Net 1 2 server Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------10 1023 1 enabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------172.20.52.70 enabled disabled 2-1000 Console> (enable)
10-8
78-13315-02
Chapter 10
Disable VTP version 2. Verify that VTP version 2 is disabled. This example shows how to disable VTP version 2:
Console> (enable) set vtp v2 disable This command will disable the version 2 function in the entire management domain. Warning: trbrf & trcrf vlans will not work properly in this mode. Do you want to continue (y/n) [n]? y VTP domain Lab_Net modified Console> (enable)
Enable VTP pruning in the management domain. set vtp pruning enable (Optional) Make specific VLANs pruning ineligible on the device. (By default, VLANs 21000 are pruning eligible.)
(Optional) Make specific VLANs pruning eligible set vtp pruneeligible vlan_range on the device. Verify the VTP pruning configuration. Verify that the appropriate VLANs are being pruned on trunk ports. show vtp domain show trunk
This example shows how to enable VTP pruning in the management domain and how to make VLANs 299, 250255, and 5011000 pruning eligible on the particular device:
Console> (enable) set vtp pruning enable This command will enable the pruning function in the entire management domain. All devices in the management domain should be pruning-capable before enabling. Do you want to continue (y/n) [n]? y VTP domain Lab_Network modified Console> (enable) clear vtp pruneeligible 100-500 Vlans 1,100-500,1001-1005 will not be pruned on this device. VTP domain Lab_Network modified. Console> (enable) set vtp pruneeligible 250-255 Vlans 2-99,250-255,501-1000 eligible for pruning on this device. VTP domain Lab_Network modified.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
10-9
Configuring VTP
Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------Lab_Network 1 2 server Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------8 1023 16 disabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------172.20.52.2 disabled enabled 2-99,250-255,501-1000 Console> (enable) show trunk Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------1/1 auto isl trunking 523 Port -------1/1 Port -------1/1 Vlans allowed on trunk --------------------------------------------------------------------1-1005 Vlans allowed and active in management domain --------------------------------------------------------------------1,522-524
Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------1/1 1,522-524 Console> (enable)
Disable VTP pruning in the management domain. set vtp pruning disable Verify that VTP pruning is disabled.
This example shows how to disable VTP pruning in the management domain:
Console> (enable) set vtp pruning disable This command will disable the pruning function in the entire management domain. Do you want to continue (y/n) [n]? y VTP domain Lab_Network modified Console> (enable)
Displaying VTP
To display VTP activity, including VTP advertisements sent and received and VTP errors, perform this task: Task Display VTP statistics for the switch. Command show vtp statistics
10-10
78-13315-02
Chapter 10
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
10-11
Configuring VTP
10-12
78-13315-02
C H A P T E R
11
Configuring VLANs
This chapter describes how to configure VLANs for the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How VLANs Work, page 11-i Configuring Normal-Range VLANs, page 11-v Configuring Extended-Range VLANs, page 11-vi Mapping VLANs to VLANs, page 11-viii Assigning Switch Ports to a VLAN, page 11-xii Deleting a VLAN, page 11-xiii Configuring Private VLANs, page 11-xiii Configuring FDDI VLANs, page 11-xxiv Configuring Token Ring VLANs, page 11-xxiv
VLAN Ranges, page 11-ii Configurable VLAN Parameters, page 11-iii Default VLAN Configuration, page 11-iv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-1
Configuring VLANs
Floor 2
Floor 1
16751
VLANs are often associated with IP subnetworks. For example, all the end stations in a particular IP subnet belong to the same VLAN. Traffic between VLANs must be routed. Port VLAN membership on the switch is assigned manually on a port-by-port basis. When you assign switch ports to VLANs using this method, it is known as port-based, or static, VLAN membership. The in-band (sc0) interface of a switch can be assigned to any VLAN, so you can access another switch on the same VLAN directly without a router. Only one IP address at a time can be assigned to the in-band interface. If you change the IP address and assign the interface to a different VLAN, the previous IP address and VLAN assignment are overwritten.
VLAN Ranges
Catalyst 6000 family switches support 4096 VLANs in accordance with the IEEE 802.1Q standard. These VLANs are organized into several ranges; you use each range slightly differently. Some of these VLANs are propagated to other switches in the network when you use a management protocol, such as the VLAN Trunking Protocol (VTP). Other VLANs are not propagated and you must configure them on each applicable switch. There are three ranges of VLANs:
Normal-range VLANs: 11000 Extended-range VLANs: 10254094 Reserved-range VLANs: 0, 10021024, 4095
11-2
78-13315-02
Chapter 11
Range Reserved range Normal range Normal range Normal range Reserved range
Usage For system use only. You cannot see or use these VLANs.
Cisco default. You can use this VLAN but you cannot Yes delete it. Used for Ethernet VLANs; you can create, use, and delete these VLANs. Yes
You cannot create or use this VLAN. May be available Yes in the future. Cisco defaults for FDDI and Token Ring. Not supported on Catalyst 6000 family switches. You cannot delete these VLANs. N/A
10061009
Reserved range
Cisco defaults. Not currently used but may be used for N/A defaults in the future. You can map nonreserved VLANs to these reserved VLANs when necessary. You cannot see or use these VLANs but you can map N/A nonreserved VLANs to these reserved VLANs when necessary. For Ethernet VLANs only. You can create, use, and delete these VLANs, with the following exception: FlexWAN modules and routed ports automatically allocate a sequential block of internal VLANs starting at VLAN 1025. If you use these devices, you must allow the required number of VLANs for them. No
10101024
Reserved range
10254094
Extended range
Note
VLAN number VLAN name VLAN type: Ethernet, FDDI, FDDINET, Token Ring Bridge Relay Function (TrBRF), or Token Ring Concentrator Relay Function (TrCRF) VLAN state: active or suspended Multi-Instance Spanning Tree Protocol (MISTP) instance Private VLAN type: primary, isolated, community, two-way community, or none Security Association Identifier (SAID)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-3
Configuring VLANs
Maximum transmission unit (MTU) for the VLAN Ring number for FDDI and TrCRF VLANs Bridge identification number for TrBRF VLANs Parent VLAN number for TrCRF VLANs STP type for TrCRF VLANs: IEEE, IBM, or auto VLAN to use when translating from one VLAN media type to another (VLANs 11005 only); requires a different VLAN number for each media type Source routing bridge mode for Token Ring VLANs: source-routing bridge (SRB) or source-routing transparent bridge (SRT) Backup for TrCRF VLAN Maximum hops VLAN All-Routes Explorer frames (ARE) and Spanning Tree Explorer frames (STE) for Token Ring Remote Switched Port Analyzer (RSPAN)
Feature Native (default) VLAN Port VLAN assignments VLAN state MTU size SAID value Pruning eligibility MAC address reduction Spanning tree mode Default FDDI VLAN Default FDDI NET VLAN Default Token Ring TrBRF VLAN Default Token Ring TrCRF VLAN Spanning Tree Protocol (STP) version for TrBRF VLAN
Default Value VLAN 1 All ports assigned to VLAN 1 Token Ring ports assigned to VLAN 1003 (trcrf-default) Active 1500 bytes 4472 bytes for Token Ring VLANs 100,000 plus the VLAN number (for example, the SAID for VLAN 8 is 100008, the SAID for VLAN 4050 is 104050) VLANs 21000 are pruning eligible; VLANs 10254094 are not pruning eligible Disabled PVST+ VLAN 1002 VLAN 1004 VLAN 1005 (trbrf-default) with bridge number 0F VLAN 1003 (trcrf-default) IBM
11-4
78-13315-02
Chapter 11
Table 11-2
Normal-Range VLAN Configuration Guidelines, page 11-v Creating Normal-Range VLANs, page 11-v Modifying Normal-Range VLANs, page 11-vi
Note
The default VLAN type is Ethernet; if you do not specify a VLAN type, the VLAN will be an Ethernet VLAN. If you wish to use VTP to maintain global VLAN configuration information on your network, configure VTP before you create any normal-range VLANs. See Chapter 10, Configuring VTP for configuring VTP. (You cannot use VTP to manage extended-range VLANs 10254094.) FlexWAN modules and routed ports automatically allocate a number of VLANs for their own use, starting at VLAN 1025. If you use these devices, you must allow for the number of VLANs required.
Command set vlan vlan [name name] [said said] [mtu mtu] [translation vlan] show vlan [vlan]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-5
Configuring VLANs
This example shows how to create normal-range VLANs and verify the configuration when the switch is in Per VLAN Spanning Tree + (PVST+) mode:
Console> (enable) set vlan 500-520 Vlan 500 configuration successful Vlan 501 configuration successful Vlan 502 configuration successful Vlan 503 configuration successful . . . Vlan 520 configuration successful Console> (enable) show vlan 500-520 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------500 active 342 501 active 343 502 active 344 503 active 345 . . . 520 active 362 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----500 enet 100500 1500 0 0 501 enet 100501 1500 0 0 502 enet 100502 1500 0 0 503 enet 100503 1500 0 0 . . . 520 enet 100520 1500 0 0 VLAN AREHops STEHops Backup CRF ---- ------- ------- ---------Console> (enable)
Command
Modify an existing normal-range VLAN. set vlan vlan [name name] [state {active | suspend}] [said said] [mtu mtu] [translation vlan] Verify the VLAN configuration. show vlan [vlan]
Extended-Range VLAN Configuration Guidelines, page 11-vii Creating Extended-Range VLANs, page 11-vii
11-6
78-13315-02
Chapter 11
You can only create Ethernet-type VLANs in the extended range. You must enable MAC address reduction in order to use extended-range VLANs. You can only create and delete extended-range VLANs from the CLI or SNMP. You cannot use VTP to manage these VLANs; they must be statically configured on each switch. You cannot use extended-range VLANs if you have dot1q-to-isl mappings. You can configure private VLAN parameters and RSPAN for extended-range VLANs; however, all other parameters for extended-range VLANs use the system defaults only. The switch may allocate a block of VLANs from the extended range for internal purposes; for example, the switch may allocate VLANs for routed ports or FlexWAN modules. The block of VLANs is always allocated starting from VLAN 1025. If you have any VLANs within the range required by the FlexWAN module, all of the VLANs required will not be allocated, because VLANs are never allocated from the users VLAN area.
Caution
FlexWAN modules and routed ports automatically allocate a sequential block of internal VLANs starting at VLAN 1025. If you use these devices, you must allow the required number of VLANs for them and must not use the lower-range VLANs starting with VLAN 1025. If not enough VLANs are available for the FlexWAN module, some ports may not work. You must use the highest VLANs first. For example, use VLAN 4090, then VLAN 4089, and so forth.
Caution
If you move a FlexWAN module from one slot to another on the same switch, it will allocate another block of VLANs without deleting the previous block. You should reboot the switch if you move the FlexWAN module.
Note
If you wish to use extended-range VLANs and you have existing 802.1Q-to-ISL mappings in your system, you must delete the mappings. See the Deleting 802.1Q-to-ISL VLAN Mappings section on page 11-xi for more information.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-7
Configuring VLANs
To enable MAC address reduction and create an Ethernet VLAN in the extended range, perform this task in privileged mode: Task
Step 1 Step 2 Step 3
Command set spantree macreduction {enable | disable} set vlan vlan show vlan [vlan]
Enable MAC address reduction. Create a VLAN. Verify the VLAN configuration.
This example shows how to enable MAC address reduction and create an extended-range Ethernet VLAN:
Console> (enable) set spantree macreduction enable MAC address reduction enabled Console> (enable) set vlan 2000 Vlan 2000 configuration successful Console> (enable) show vlan 2000 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------2000 VLAN2000 active 61 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----2000 enet 102000 1500 0 0 VLAN Inst DynCreated RSPAN ---- ---- ---------- -------2000 static disabled VLAN AREHops STEHops Backup CRF 1q VLAN ---- ------- ------- ---------- ------Console> (enable)
From non-Cisco devices in your network using VLANs 10061024 to nonreserved VLANs on the Catalyst 6000 family switches. From VLANs on non-Cisco devices on 802.1Q trunks to ISL trunks on the Catalyst 6000 family switches.
Note
If you use method 1, you can use extended-range VLANs (10254094) on the switch; if you use method 2, you can retain mappings from a previous Catalyst 6000 family software release but you cannot use extended-range VLANs. This section describes how to map VLANs to VLANs:
Mapping Reserved VLANs to Nonreserved VLANs, page 11-ix Deleting Reserved-to-Nonreserved VLAN Mappings, page 11-x Mapping 802.1Q VLANs to ISL VLANs, page 11-x Deleting 802.1Q-to-ISL VLAN Mappings, page 11-xi
11-8
78-13315-02
Chapter 11
Note
If you have dot1q-to-isl VLAN mappings from a previous Catalyst 6000 family switch software release, you cannot use the mapped VLANs to map reserved VLANs to nonreserved VLANs. Optionally, you can clear the dot1q-to-isl mappings and then use those reserved VLANs. These restrictions apply when mapping reserved VLANs to nonreserved VLANs:
You can create up to eight reserved-to-nonreserved VLAN mappings on the switch. You can only map Ethernet VLANs to Ethernet VLANs. Reserved VLAN mappings are local to each switch. You must configure the VLAN mappings on all applicable switches in the network.
To map a reserved VLAN to a nonreserved VLAN, perform this task in privileged mode: Task
Step 1 Step 2 Step 3
Command clear vlan mapping dot1q all set vlan mapping reserved {reserved_vlan} non-reserved {nonreserved_vlan} show vlan mapping
If necessary, clear old dot1q-to-isl VLAN mappings. Map a reserved VLAN to a nonreserved VLAN. Verify the VLAN mapping.
This example shows how to clear old VLAN mappings, map a reserved VLAN, and verify the mappings on the mapping table:
Console> (enable) clear vlan mapping dot1q all All dot1q vlan mapping entries deleted Console> (enable) set vlan mapping reserved 1020 non-reserved 4070 Vlan 1020 successfully mapped to 4070. Console> (enable) show vlan mapping Reserved vlan Non-Reserved vlan Effective ---------------------------------------------------1008 63 false 1010 4065 true 1011 4066 true 1020 4070 true
The Effective column in the mapping table indicates whether the mapping has taken effect (that is, true or false). Mappings that are marked true can be used by the system. Mappings marked false cannot be used by the system.
Note
Reserved VLAN mappings are entered on the table in the order in which you map them. If you delete a mapping, the line where it existed will not display on the table. However, the next mapping you create will appear where the old one was deleted.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-9
Configuring VLANs
Command clear vlan mapping reserved {reserved_vlan | all} clear vlan vlan
Verify the mapping table entry has been cleared. show vlan mapping This example shows how to clear a single mapping:
Console> (enable) clear vlan mapping reserved 1010 Vlan 1010 mapping entry deleted Console> (enable)
If there are any extended-range VLANs present on the switch, you cannot map any new 802.1Q VLANs-to-ISL VLANs. You can configure up to eight 802.1Q-to-ISL VLAN mappings on the switch. You can only map 802.1Q VLANs to Ethernet-type ISL VLANs. Do not enter the native VLAN of any 802.1Q trunk in the mapping table.
11-10
78-13315-02
Chapter 11
When you map an 802.1Q VLAN to an ISL VLAN, traffic on the 802.1Q VLAN corresponding to the mapped ISL VLAN is blocked. For example, if you map 802.1Q VLAN 2000 to ISL VLAN 200, traffic on 802.1Q VLAN 200 is blocked. VLAN mappings are local to each switch. Make sure you configure the same VLAN mappings on all appropriate switches in the network.
To map an 802.1Q VLAN to an ISL VLAN, perform this task in privileged mode: Task
Step 1
Command
Map an 802.1Q VLAN to an ISL Ethernet VLAN. The set vlan mapping dot1q dot1q_vlan isl valid range for dot1q_vlan is 10014095. The valid isl_vlan range for isl_vlan is 11000. Verify the VLAN mapping. show vlan mapping
Step 2
This example shows how to map 802.1Q VLANs 2000, 3000, and 4000 to ISL VLANs 200, 300, and 400, and verify the configuration:
Console> (enable) set vlan mapping dot1q 2000 isl 200 802.1q vlan 2000 is existent in the mapping table Console> (enable) set vlan mapping dot1q 3000 isl 300 Vlan mapping successful Console> (enable) set vlan mapping dot1q 4000 isl 400 Vlan mapping successful Console> (enable) show vlan mapping 802.1q vlan ISL vlan Effective -----------------------------------------2000 200 true 3000 300 true 4000 400 true Console> (enable)
Command clear vlan mapping dot1q {dot1q_vlan | all} show vlan mapping
This example shows how to delete the VLAN mapping for 802.1Q VLAN 2000:
Console> (enable) clear vlan mapping dot1q 2000 Vlan 2000 mapping entry deleted Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-11
Configuring VLANs
Note
Make sure you assign switch ports to a VLAN of the proper type. For example, assign Ethernet, Fast Ethernet, and Gigabit Ethernet ports to Ethernet-type VLANs. To assign one or more switch ports to a VLAN, perform this task in privileged mode: Task Command set vlan vlan mod/port show vlan [vlan] show port [mod[/port]]
Step 1 Step 2
Assign one or more switch ports to a VLAN. Verify the port VLAN membership.
This example shows how to assign switch ports to a VLAN and verify the assignment:
Console> (enable) set vlan 560 4/10 VLAN 560 modified. VLAN 1 modified. VLAN Mod/Ports ---- ----------------------560 4/10 Console> (enable) show vlan 560 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------560 Engineering active 348 4/10 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----560 enet 100560 1500 0 0 VLAN AREHops STEHops Backup CRF ---- ------- ------- ---------Console> (enable) show port 4/10 Port Name Status Vlan Duplex Speed Type ----- ------------------ ---------- ---------- ------ ----- -----------4/10 connected 560 a-half a-100 10/100BaseTX Port AuxiliaryVlan AuxVlan-Status ----- ------------- -------------4/10 none none <...output truncated...> Last-Time-Cleared -------------------------Tue Jun 6 2000, 16:45:18 Console> (enable)
11-12
78-13315-02
Chapter 11
Deleting a VLAN
Follow these guidelines for deleting VLANs:
When you delete a normal-range Ethernet VLAN in VTP server mode, the VLAN is removed from all switches in the VTP domain. When you delete a normal-range VLAN in VTP transparent mode, the VLAN is deleted only on the current switch. You can delete an extended-range VLAN only on the switch where it was created. To delete a Token Ring TrBRF VLAN, you must first reassign its child TrCRFs to another parent TrBRF, or delete the child TrCRFs.
Caution
When you delete a VLAN, any ports assigned to that VLAN become inactive. Such ports remain associated with the VLAN (and thus inactive) until you assign them to a new VLAN. You can delete a single VLAN or a range of VLANs. To delete a VLAN on the switch, perform this task in privileged mode: Task Delete a VLAN. Command clear vlan vlan
This example shows how to delete a VLAN (in this case, the switch is a VTP server):
Console> (enable) clear vlan 500 This command will deactivate all ports on vlan(s) 500 Do you want to continue(y/n) [n]?y Vlan 500 deleted Console> (enable) This command will deactivate all ports on vlan(s) 10 All ports on normal range vlan(s) 10 will be deactivated in the entire management domain. Do you want to continue(y/n) [n]?
Understanding How Private VLANs Work, page 11-xiv Private VLAN Configuration Guidelines, page 11-xv Creating a Primary Private VLAN, page 11-xviii Viewing the Port Capability of a Private VLAN Port, page 11-xxi Deleting a Private VLAN, page 11-xxii Deleting an Isolated, Community, or Two-Way Community VLAN, page 11-xxii Deleting a Private VLAN Mapping, page 11-xxiii Private VLAN Support on the MSFC, page 11-xxiii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-13
Configuring VLANs
A promiscuous port communicates with all other private VLAN ports and is the port you use to communicate with routers, LocalDirector, backup servers, and administrative workstations. An isolated port has complete Layer 2 separation from other ports within the same private VLAN with the exception of the promiscuous port. Community ports communicate among themselves and with their promiscuous ports. These ports are isolated at Layer 2 from all other ports in other communities or isolated ports within their private VLAN.
Privacy is granted at the Layer 2 level by blocking outgoing traffic to all isolated ports. All isolated ports are assigned to an isolated VLAN where this hardware function occurs. Traffic received from an isolated port is forwarded to all promiscuous ports only. Within a private VLAN are four distinct classifications of VLANs: a single primary VLAN, a single isolated VLAN, and a series of community or two-way community VLANs. You must define each supporting VLAN within a private VLAN structure before you can configure the private VLAN:
Primary VLANConveys incoming traffic from the promiscuous port to all other promiscuous, isolated, community, and two-way community ports. Isolated VLANUsed by isolated ports to communicate to the promiscuous ports. The traffic from an isolated port is blocked on all adjacent ports within its PVLAN and can only be received by its promiscuous ports. Community VLANUnidirectional VLAN used by a group of community ports to communicate among themselves and transmit traffic to outside the PVLAN through the designated promiscuous port. Two-way community VLANBidirectional VLAN used by a group of community ports to communicate among themselves and to and from community ports from and to the Multilayer Switch Feature Card (MSFC).
Note
With software release 6.2(1) and later releases, you can use two-way community VLANs to perform an inverse mapping from the primary VLAN to the secondary VLAN when the traffic crosses the boundary of a private VLAN through an MSFC promiscuous port. Both outbound and inbound traffic can be carried on the same VLAN allowing VLAN-based features such as VACLs to be applied in both directions on a per-community (per customer) basis.
To create a private VLAN, you assign two or more normal VLANs in the normal VLAN range: one VLAN is designated as a primary VLAN, and a second VLAN is designated as either an isolated, community, or two-way community VLAN. If you choose, you can then designate additional VLANs as separate isolated, community, or two-way community VLANs in this private VLAN. After designating the VLANs, you must bind them together and associate them to the promiscuous port. You can extend private VLANs across multiple Ethernet switches by trunking the primary, isolated, and any community or two-way community VLANs to other switches that support private VLANs.
11-14
78-13315-02
Chapter 11
In an Ethernet-switched environment, you can assign an individual VLAN and associated IP subnet to each individual or common group of stations. The servers only require the ability to communicate with a default gateway to gain access to end points outside the VLAN itself. By incorporating these stations, regardless of ownership, into one private VLAN, you can do the following:
Designate the server ports as isolated to prevent any interserver communication at Layer 2. Designate the ports to which the default gateway(s), backup server, or LocalDirector are attached as promiscuous to allow all stations to have access to these gateways. Reduce VLAN consumption. You only need to allocate one IP subnet to the entire group of stations because all stations reside in one common private VLAN.
On an MSFC port or a nontrunk promiscuous port, you can remap as many isolated or community VLANs as desired; however, while a nontrunk promiscuous port can remap to only one primary VLAN, an MSFC port does not have this limitation. An MSFC port can only connect an MSFC router. With a nontrunk promiscuous port, you can connect a wide range of devices as access points to a private VLAN. For example, you can connect a nontrunk promiscuous port to the server port of a LocalDirector to remap a number of isolated or community VLANs to the server VLAN so that the LocalDirector can load balance the servers present in the isolated or community VLANs, or you can use a nontrunk promiscuous port to monitor and/or back up all the private VLAN servers from an administration workstation.
Note
A two-way community VLAN can only be mapped on the MSFC promiscuous port (it cannot be mapped on nontrunk or other types of promiscuous ports).
Note
In this section, the term community VLAN is used for both unidirectional community VLANs and two-way community VLANs unless specifically differentiated.
Designate one VLAN as the primary VLAN. You have the option of designating one VLAN as an isolated VLAN, but you can only use one isolated VLAN. You have the option of using private VLAN communities, you need to designate a community VLAN for each community. Bind the isolated and/or community VLAN(s) to the primary VLAN and assign the isolated or community ports. You will achieve these results:
Isolated/community VLAN spanning tree properties are set to those of the primary VLAN. VLAN membership becomes static. Access ports become host ports. BPDU guard protection is activated.
Set up the automatic VLAN translation that maps the isolated and community VLANs to the primary VLAN on the promiscuous port(s). Set the nontrunk ports or the MSFC ports as promiscuous ports. You must set VTP to transparent mode.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-15
Configuring VLANs
After you configure a private VLAN, you cannot change the VTP mode to client or server mode, because VTP does not support private VLAN types and mapping propagation. You can configure VLANs as primary, isolated, or community only if no access ports are currently assigned to the VLAN. Enter the show port command to verify that the VLAN has no access ports assigned to it. A primary VLAN can have one isolated VLAN and/or multiple communities associated with it. An isolated or community VLAN can have only one primary VLAN associated with it. Private VLANs can use VLANs 2 through 1000 and 1025 through 4096. If you delete either the primary or secondary VLAN, the ports associated with the VLAN become inactive. When configuring private VLANs, note the hardware and software interactions:
You cannot use the inband port, sc0, in a private VLAN.
Note
With software release 6.3(1) and later releases, the sc0 port can be configured as a private VLAN port, however it cannot be configured as a promiscuous port.
You cannot set private VLAN ports to trunking mode, channeling, or have dynamic VLAN
memberships, with the exception of MSFC ports that always have trunking activated.
You cannot set ports belonging to the same ASIC where one port is set to trunking mode or a
SPAN destination and another is set to a promiscuous, isolated, or community port for the modules listed in Table 3. If you attempt such a configuration, a warning message displays and the command is rejected.
Table 11-3 Modules with Ports Listed by ASIC Groups
Description
WS-X6248-RJ-45
WS-X6248-TEL
11-16
78-13315-02
Chapter 11
Table 11-3
Ports by ASIC Ports 112 Ports 1324 Ports 2536 Ports 3748
WS-X6024-10FL-MT
Isolated and community ports should run BPDU guard features to prevent spanning tree loops due to misconfigurations. Primary VLANs and associated isolated/community VLANs must have the same spanning tree configuration. This configuration maintains consistent spanning tree topologies between associated primary, isolated, and community VLANs and avoids possible loss of connectivity. These priorities and parameters automatically propagate from the primary VLAN to the isolated and community VLANs. You can create private VLANs that run in MISTP mode as follows:
If you disable MISTP, any change to the configuration of a primary VLAN propagates to all
corresponding isolated and community VLANs, and you cannot change the isolated or community VLANs.
If you enable MISTP, you can only configure the MISTP instance with the primary VLAN.
Changes will be applied to the primary VLAN and will propagate to the isolated and community VLANs.
In networks with some switches using MAC address reduction, and others not using MAC address reduction, STP parameters do not necessarily propagate to ensure that the spanning tree topologies match. You should manually check the STP configuration to ensure that the primary, isolated, and community VLANs spanning tree topologies match. If you enable MAC address reduction on a Catalyst 6000 series switch, you might want to enable MAC address reduction on all the switches in your network to ensure that the STP topologies of the private VLANs match. Otherwise, in a network where private VLANs are configured, if you enable MAC address reduction on some switches and disable it on others (mixed environment), you will have to use the default bridge priorities to make sure that the root bridge is common to the primary VLAN and to all its associated isolated and community VLANs. Be consistent with the ranges employed by the MAC address reduction feature regardless of whether it is enabled on the system. MAC address reduction allows only discrete levels and uses all intermediate values internally as a range. You should disable a root bridge with private VLANs and MAC address reduction, and configure the root bridge with any priority higher than the highest priority range used by any nonroot bridge. BPDU guard mode is system wide and is enabled after you add the first port to a private VLAN. You cannot configure a destination SPAN port as a private VLAN port and vice versa. A source SPAN port can belong to a private VLAN. You can use VLAN-based SPAN (VSPAN) to span primary, isolated, and community VLANs together, or use SPAN on only one VLAN to separately monitor egress or ingress traffic. You cannot use a remote SPAN VLAN (RSPAN) for a private VLAN.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-17
Configuring VLANs
IGMP snooping and multicast shortcuts are not supported in private VLANs. You cannot enable EtherChannel on isolated, community, or promiscuous ports. You can apply different VACLs and quality of service (QoS) ACLs to primary, isolated, and community VLANs.
Note
For information on configuring ACLs, see the Configuring ACLs on Private VLANs section on page 16-26. Output ACLs need to be configured on both the two-way community VLANs and the primary VLAN in order to be applied to all outgoing traffic from the MSFC. If you map a Cisco IOS ACL to a primary VLAN, the Cisco IOS ACL automatically maps to the associated isolated and community VLANs. You cannot map Cisco IOS ACLs to an isolated or community VLAN. You cannot use policy-based routing (PBR) on a private VLAN interface. You get an error message if you try to apply a policy to a private VLAN interface using the ip policy route-map route_map_name command. You cannot set a VLAN to a private VLAN if the VLAN has dynamic access control entries (ACEs) configured on it. You can stop Layer 3 switching on an isolated or community VLAN by destroying the binding of that VLAN with its primary VLAN. Deleting the corresponding mapping is not sufficient.
Command set vlan vlan pvlan-type primary set vlan vlan pvlan-type {isolated | community | twoway-community} set pvlan primary_vlan {isolated_vlan | community_vlan | twoway_community_vlan}
Create the primary private VLAN. Set the isolated, community, or two-way community VLAN(s). Bind the isolated, community, or two-way community VLAN(s) to the primary VLAN.
Associate the isolated, community, or two-way set pvlan primary_vlan {isolated_vlan | community port(s) to the primary private VLAN. community_vlan | twoway_community_vlan} [mod/ports | sc0] Map the isolated, community, or two-way community VLAN to the primary private VLAN on the promiscuous port. Verify the primary private VLAN configuration. set pvlan mapping primary_vlan {isolated_vlan | community_vlan | twoway_community_vlan} mod/ports show pvlan [vlan] show pvlan mapping
Step 5
Step 6
11-18
78-13315-02
Chapter 11
Note
You can bind the isolated, community, or two-way community port(s) and associated isolated, community, or two-way community VLANs to the private VLAN using the set pvlan primary_vlan {isolated_vlan | community_vlan | twoway_community_vlan} mod/port command.
Note
Ports do not have to be on the same switch as long as the switches are trunk connected and the private VLAN has not been removed from the trunk.
Note
If you are using the MSFC for your promiscuous port in your private VLAN, use 15/1 as the MSFC mod/port number if the supervisor engine is in slot 1, or use 16/1 if the supervisor engine is in slot 2.
Note
You must enter the set pvlan command everywhere a private VLAN needs to be created, which includes switches with isolated, community, or two-way community ports, switches with promiscuous ports, and all intermediate switches that need to carry the private VLANs on their trunks. On the edge switches that do not have any isolated, community, two-way community, or promiscuous ports (typically, access switches with no private ports), you do not need to create private VLANs and you can prune the private VLANs from the trunks for security reasons. This example shows how to specify VLAN 7 as the primary VLAN:
Console> (enable) set vlan 7 pvlan-type primary Vlan 7 configuration successful Console> (enable)
This example shows how to specify VLAN 901 as the isolated VLAN and VLANs 902 and 903 as community VLANs:
Console> Vlan 901 Console> Vlan 902 Console> Vlan 903 Console> (enable) set vlan 901 pvlan-type isolated configuration successful (enable) set vlan 902 pvlan-type community configuration successful (enable) set vlan 903 pvlan-type community configuration successful (enable)
This example shows how to bind VLAN 901 to primary VLAN 7 and assign port 4/3 as the isolated port:
Console> (enable) set pvlan 7 901 4/3 Successfully set the following ports to Private Vlan 7,901: 4/3 Console> (enable)
This example shows how to bind VLAN 902 to primary VLAN 7 and assign ports 4/4 through 4/6 as the community port:
Console> (enable) set pvlan 7 902 4/4-6 Successfully set the following ports to Private Vlan 7,902:4/4-6 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-19
Configuring VLANs
This example shows how to bind VLAN 903 to primary VLAN 7 and assign ports 4/7 through 4/9 as the community ports:
Console> (enable) set pvlan 7 903 Successfully set association between 7 and 903. Console> (enable) set pvlan 7 903 4/7-9 Successfully set the following ports to Private Vlan 7,903:4/7-9 Console> (enable)
This example shows how to map the isolated/community VLAN to the primary VLAN on the promiscuous port, 3/1, for each isolated or community VLAN:
Console> (enable) set pvlan mapping 7 901 3/1 Successfully set mapping between 7 and 901 on 3/1 Console> (enable) set pvlan mapping 7 902 3/1 Successfully set mapping between 7 and 902 on 3/1 Console> (enable) set pvlan mapping 7 903 3/1 Successfully set mapping between 7 and 903 on 3/1
11-20
78-13315-02
Chapter 11
Console> (enable) show pvlan mapping Port Primary Secondary ----- -------- ---------3/1 7 901-903 Console> (enable) show port Port Name Status Vlan Duplex Speed Type ----- ------------------ ---------- ---------- ------ ----- -----------...truncated output... 4/3 notconnect 7,901 half 100 100BaseFX MM 4/4 notconnect 7,902 half 100 100BaseFX MM 4/5 notconnect 7,902 half 100 100BaseFX MM 4/6 notconnect 7,902 half 100 100BaseFX MM 4/7 notconnect 7,903 half 100 100BaseFX MM 4/8 notconnect 7,903 half 100 100BaseFX MM 4/9 notconnect 7,903 half 100 100BaseFX MM ... truncated output...
Console> (enable) show pvlan capability 5/20 Ports 5/13 - 5/24 are in the same ASIC range as port 5/20. Port 5/20 can be made a private vlan port. Console> (enable) Primary Secondary ------- --------10 20 show pvlan Secondary-Type Ports -------------- -----------isolated
Console> (enable) show pvlan capability 3/1 Port 3/1 cannot be made a private vlan port due to: -----------------------------------------------------Promiscuous ports cannot be made private vlan ports. Console> (enable) show pvlan capability 5/1 Ports 5/1 - 5/12 are in the same ASIC range as port 5/1. Port 5/1 cannot be made a private vlan port due to: -----------------------------------------------------Trunking ports are not Private Vlan capable. Conflict with Promiscuous port(s) : 5/2 Console> (enable) show pvlan capability 5/2 Ports 5/1 - 5/12 are in the same ASIC range as port 5/2. Port 5/2 cannot be made a private vlan port due to: -----------------------------------------------------Promiscuous ports cannot be made private vlan ports. Conflict with Trunking port(s) : 5/1
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-21
Configuring VLANs
Console> (enable) show pvlan capability 5/3 Ports 5/1 - 5/12 are in the same ASIC range as port 5/3. Port 5/3 cannot be made a private vlan port due to: -----------------------------------------------------Conflict with Promiscuous port(s) : 5/2 Conflict with Trunking port(s) : 5/1 Console> (enable) show pvlan capability 15/1 Port 15/1 cannot be made a private vlan port due to: -----------------------------------------------------Only ethernet ports can be added to private vlans.
11-22
78-13315-02
Chapter 11
The primary, isolated, community, or two-way community VLAN to which it belongs is cleared. All mappings from a non-MSFC promiscuous port are deleted. An error occurs during the configuration of a port to be a private VLAN port.
To delete a port mapping from a private VLAN, perform this task in privileged mode: Task Command
Delete the port mapping from the private VLAN. clear pvlan mapping primary_vlan {isolated | community | twoway-community} {mod/ports} This example shows how to delete the mapping of VLANs 902 to 901, previously set on ports 3/2 through 3/5:
Console> (enable) clear pvlan mapping 901 902 3/2-5 Successfully cleared mapping between 901 and 902 on 3/2-5 Console> (enable)
Enter the show pvlan command to display information about private VLANs. The show pvlan command displays information about private VLANs only when the primary private VLAN is up. Entering a set pvlan mapping or a clear pvlan mapping command on the supervisor engine generates MSFC syslog messages. See the following for an example:
%PV-6-PV_MSG:Created a private vlan mapping, Primary 100, Secondary 101 %PV-6-PV_MSG:Created a private vlan mapping, Primary 200, Secondary 201 %PV-6-PV_MSG:Purged a private vlan mapping, Primary 100, Secondary 101
Enter an interface vlan command to configure Layer 3 parameters only for primary private VLANs. On the supervisor engine, you cannot create isolated or community VLANs using VLAN numbers for which interface vlan commands have been entered on the MSFC. ARP entries learned on Layer 3 private VLAN interfaces are sticky ARP entries (we recommend that you display and verify private VLAN interface ARP entries). For security reasons, private VLAN interface sticky ARP entries do not age out. Connecting new equipment with the same IP address generates a message and the ARP entry is not created. Because the private VLAN interface ARP entries do not age out, you must manually remove private VLAN interface ARP entries if a MAC address changes.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-23
Configuring VLANs
You can add or remove private VLAN ARP entries manually as follows:
obelix-rp(config)# no arp 11.1.3.30 IP ARP:Deleting Sticky ARP entry 11.1.3.30 obelix-rp(config)# arp 11.1.3.30 0000.5403.2356 arpa IP ARP:Overwriting Sticky ARP entry 11.1.3.30, hw:00d0.bb09.266e by hw:0000.5403.2356
Command set vlan vlan [name name] type {fddi | fddinet} [said said] [mtu mtu] show vlan [vlan]
Create a new FDDI or FDDI NET-type VLAN. Verify the VLAN configuration.
To modify the VLAN parameters on an existing FDDI VLAN, perform this task in privileged mode: Task
Step 1 Step 2
Command set vlan vlan [name name] [state {active | suspend}] [said said] [mtu mtu] show vlan [vlan]
Modify an existing FDDI or FDDI NET-type VLAN. Verify the VLAN configuration.
Understanding Token Ring TrBRF VLANs, page 11-xxv Understanding Token Ring TrCRF VLANs, page 11-xxv Token Ring VLAN Configuration Guidelines, page 11-xxvii Creating or Modifying a Token Ring TrBRF VLAN, page 11-xxvii Creating or Modifying a Token Ring TrCRF VLAN, page 11-xxviii
You must use VTP version 2 to configure and manage Token Ring VLANs.
11-24
78-13315-02
Chapter 11
Note
Catalyst 6000 family switches do not support ISL-encapsulated Token Ring frames.
For source routing, the switch appears as a single bridge between the logical rings. The TrBRF can function as a source-route bridge (SRB) or as a source-route transparent (SRT) bridge running either the IBM or IEEE STP. If SRB is used, you can define duplicate MAC addresses on different logical rings. The Token Ring software runs an instance of STP for each TrBRF VLAN and each TrCRF VLAN. For TrCRF VLANs, STP removes loops in the logical ring. For TrBRF VLANs, STP interacts with external bridges to remove loops from the bridge topology, similar to STP operation on Ethernet VLANs.
Caution
Certain parent TrBRF STP and TrCRF bridge mode configurations can place the logical ports (the connection between the TrBRF and the TrCRF) of the TrBRF in a blocked state. For more information, see the Default VLAN Configuration section on page 11-iv. For source routing, the switch appears as a single bridge between the logical rings. The TrBRF can function as an SRB or SRT bridge running either the IBM or IEEE STP. If SRB is used, duplicate MAC addresses can be defined on different logical rings. To accommodate IBM System Network Architecture (SNA) traffic, you can use a combination of SRT and SRB modes. In a mixed mode, the TrBRF considers some ports (logical ports connected to TrCRFs) to operate in SRB mode while others operate in SRT mode.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
S6624
11-25
Configuring VLANs
Typically, TrCRFs are undistributed, which means each TrCRF is limited to the ports on a single switch. Multiple undistributed TrCRFs on the same or separate switches can be associated with a single parent TrBRF (see Figure 3). The parent TrBRF acts as a multiport bridge, forwarding traffic between the undistributed TrCRFs.
Note
To pass data between rings located on separate switches, you can associate the rings to the same TrBRF and configure the TrBRF for SRB.
Figure 11-3 Undistributed TrCRFs
Switch A ISL Switch B
TrBRF 3
S6813 S6812
TrCRF 400
TrCRF 350
TrCRF 200
Note
By default, Token Ring ports are associated with the default TrCRF (VLAN 1003, trcrf-default), which has the default TrBRF (VLAN 1005, trbrf-default) as its parent. In this configuration, a distributed TrCRF is possible (see Figure 4), and traffic is passed between the default TrCRFs located on separate switches provided that the switches are connected through an ISL trunk.
Figure 11-4 Distributed TrCRF
Switch A ISL Switch B
Within a TrCRF, source-route switching forwards frames based on either MAC addresses or route descriptors. The entire VLAN can operate as a single ring, with frames switched between ports within a single TrCRF. You can specify the maximum hop count for All-Routes and Spanning Tree Explorer frames for each TrCRF. This limits the maximum number of hops an explorer is allowed to traverse. If a port determines that the explorer frame it is receiving has traversed more than the number of hops specified, it does not forward the frame. The TrCRF determines the number of hops an explorer has traversed based on the number of bridge hops in the route information field. A backup TrCRF enables you to configure an alternate route for traffic between undistributed TrCRFs located on separate switches that are connected by a TrBRF, in the event that the ISL connection between the switches fails. Only one backup TrCRF for a TrBRF is allowed, and only one port per switch can belong to a backup TrCRF.
11-26
78-13315-02
Chapter 11
If the ISL connection between the switches fails, the port in the backup TrCRF on each affected switch automatically becomes active, rerouting traffic between the undistributed TrCRFs through the backup TrCRF. When the ISL connection is reestablished, all but one port in the backup TrCRF is disabled. Figure 5 illustrates the backup TrCRF.
Figure 11-5 Backup TrCRF
Switch A ISL Switch B
For Token Ring VLANs, the default TrBRF (VLAN 1005) can only be the parent of the default TrCRF (VLAN 1003). You cannot specify the default TrBRF as the parent of a user-configured TrCRF. You must configure a TrBRF before you configure the TrCRF; that is, the parent TrBRF VLAN you specify for the TrCRF must already exist. In a Token Ring environment, the logical ports of the TrBRF (the connection between the TrBRF and the TrCRF) are placed in a blocked state if either of these conditions exists:
The TrBRF is running the IBM STP, and the TrCRF is in SRT mode. The TrBRF is running the IEEE STP, and the TrCRF is in SRB mode.
Command set vlan vlan [name name] type trbrf [said said] [mtu mtu] bridge bridgeber [stp {ieee | ibm}] show vlan [vlan]
Create a new Token Ring TrBRF-type VLAN. Verify the VLAN configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
S6811
11-27
Configuring VLANs
This example shows how to create a new Token Ring TrBRF VLAN and verify the configuration:
Console> (enable) set vlan 999 name TrBRF_999 type trbrf bridge a Vlan 999 configuration successful Console> (enable) show vlan 999 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------999 TrBRF_999 active VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----999 trbrf 100999 4472 0xa ibm 0 0 VLAN AREHops STEHops Backup CRF ---- ------- ------- ---------Console> (enable)
To modify the VLAN parameters on an existing Token Ring TrBRF VLAN, perform this task in privileged mode: Task
Step 1
Command
Modify an existing Token Ring TrBRF-type set vlan vlan [name name] [state {active | suspend}] VLAN. [said said] [mtu mtu] [bridge bridgeber] [stp {ieee | ibm}] Verify the VLAN configuration. show vlan [vlan]
Step 2
You must enable VTP version 2 before you create Token Ring VLANs. For information on enabling VTP version 2, see Chapter 10, Configuring VTP. To create a new Token Ring TrCRF VLAN, perform this task in privileged mode: Task Command set vlan vlan [name name] type trcrf [said said] [mtu mtu] {ring hex_ringber | decring decimal_ringber} parent vlan show vlan [vlan]
Step 1
Step 2
Note
You must specify a ring number (either in hexadecimal or in decimal) and a parent TrBRF VLAN when creating a new TrCRF.
11-28
78-13315-02
Chapter 11
This example shows how to create a Token Ring TrCRF VLAN and verify the configuration:
Console> (enable) set vlan 998 name TrCRF_998 type trcrf decring 10 parent 999 Vlan 998 configuration successful Console> (enable) show vlan 998 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------998 TrCRF_998 active 352 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----998 trcrf 100998 4472 999 0xa srb 0 0 VLAN AREHops STEHops Backup CRF ---- ------- ------- ---------998 7 7 off Console> (enable)
To modify the VLAN parameters on an existing Token Ring TrCRF VLAN, perform this task in privileged mode: Task
Step 1
Command set vlan vlan [name name] [state {active | suspend}] [said said] [mtu mtu] [ring hex_ring] [decring decimal_ring] [bridge bridge] [parent vlan] show vlan [vlan]
Modify an existing Token Ring TrCRF VLAN. Verify the VLAN configuration.
Step 2
To create a backup TrCRF, assign one port on each switch that the TrBRF traverses to the backup TrCRF. To configure a TrCRF VLAN as a backup TrCRF, perform this task in privileged mode: Task
Step 1 Step 2
Caution
If the backup TrCRF port is attached to a Token Ring multistation access unit (MSAU), it does not provide a backup path unless the ring speed and port mode are set by another device. We recommend that you configure the ring speed and port mode for the backup TrCRF. To specify the maximum number of hops for All-Routes Explorer frames or Spanning Tree Explorer frames in the TrCRF, perform this task in privileged mode: Task Command set vlan vlan aremaxhop hopcount set vlan vlan stemaxhop hopcount show vlan [vlan]
Specify the maximum number of hops for All-Routes Explorer frames in the TrCRF. Specify the maximum number of hops for Spanning Tree Explorer frames in the TrCRF. Verify the VLAN configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
11-29
Configuring VLANs
This example shows how to limit All-Routes Explorer frames and Spanning Tree Explorer frames to ten hops and how to verify the configuration:
Console> (enable) set vlan 998 aremaxhop 10 stemaxhop 10 Vlan 998 configuration successful Console> (enable) show vlan 998 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------998 VLAN0998 active 357
VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----998 trcrf 100998 4472 999 0xff srb 0 0
VLAN AREHops STEHops Backup CRF ---- ------- ------- ---------998 10 10 off Console> (enable)
11-30
78-13315-02
C H A P T E R
12
Note
For complete syntax and usage for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How InterVLAN Routing Works, page 12-i Configuring InterVLAN Routing on the MSFC, page 12-ii
Note
Refer to the FlexWAN Module Port Adapter Installation and Configuration Notes for information about configuring routing on FlexWAN module interfaces.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
12-1
VLAN 10 Switch A
A Host B Host
When Host A in VLAN 10 needs to communicate with Host B in VLAN 10, it sends a packet addressed to that host. Switch A forwards the packet directly to Host B, without sending it to the router. When Host A sends a packet to Host C in VLAN 20, Switch A forwards the packet to the router, which receives the traffic on the VLAN 10 interface. The router checks the routing table, determines the correct outgoing interface, and forwards the packet out the VLAN 20 interface to Switch B. Switch B receives the packet and forwards it to Host C.
This section is for users who are familiar with Cisco IOS software and have some experience configuring Cisco IOS routing. If you are not familiar with configuring Cisco routing, refer to the Cisco IOS documentation on Cisco.com. These sections describe how to configure interVLAN routing on the MSFC:
MSFC Routing Configuration Guidelines, page 12-ii Configuring IP InterVLAN Routing on the MSFC, page 12-iii Configuring IPX InterVLAN Routing on the MSFC, page 12-iii Configuring AppleTalk InterVLAN Routing on the MSFC, page 12-iv Configuring MSFC Features, page 12-iv
Create and configure VLANs on the switch and assign VLAN membership to switch ports. For more information, see Chapter 11, Configuring VLANs. Create and configure VLAN interfaces for interVLAN routing on the MSFC. Configure a VLAN interface for each VLAN for which you want to route traffic.
VLAN interfaces on the MSFC are virtual interfaces. However, you configure them much as you do a physical router interface. MSFC2 and MSFC support the same range of VLANs as the supervisor engine. MSFC2 supports up to 1,000 VLAN interfaces. MSFC supports up to 256 VLAN interfaces.
12-2
78-13315-02
Chapter 12
Command Router(config)# ip routing Router(config)# router ip_routing_protocol Router(config)# interface vlan-id Router(config-if)# ip address n.n.n.n mask Router(config-if)# Ctrl-Z
(Optional) Enable IP routing on the router1. (Optional) Specify an IP routing protocol2. Specify a VLAN interface on the MSFC. Assign an IP address to the VLAN. Exit configuration mode.
1. 2.
This step is necessary if you have multiple routers in the network. This step is necessary if you enabled IP routing in Step 1. This step might include other commands, such as using the network router configuration command to specify the networks to route. Refer to the documentation for your router platform for detailed information on configuring routing protocols.
This example shows how to enable IP routing on the MSFC, create a VLAN interface, and assign the interface an IP address:
Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ip routing Router(config)# router rip Router(config-router)# network 10.0.0.0 Router(config-router)# interface vlan 100 Router(config-if)# ip address 10.1.1.1 255.0.0.0 Router(config-if)# ^Z Router#
Command Router(config)# ipx router ipx_routing_protocol Router(config)# interface vlan-id Router(config-if)# ipx network [network | unnumbered] encapsulation encapsulation-type Router(config-if)# Ctrl-Z
(Optional) Enable IPX routing on the router . Router(config)# ipx routing (Optional) Specify an IPX routing protocol2. Specify a VLAN interface on the MSFC. Assign a network number to the VLAN . Exit configuration mode.
1. 2.
3
This step is necessary if you have multiple routers in the network. This step is necessary if you enabled IPX routing in Step 1. This step might include other commands, such as using the network router configuration command to specify the networks to route. Refer to the documentation for your router platform for detailed information on configuring routing protocols. This step enables IPX routing on the VLAN. When you enable IPX routing on the VLAN, you can also specify an encapsulation type.
3.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
12-3
This example shows how to enable IPX routing on the MSFC, create a VLAN interface, and assign the interface an IPX network address:
Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ipx routing Router(config)# ipx router rip Router(config-ipx-router)# network all Router(config-ipx-router)# interface vlan100 Router(config-if)# ipx network 100 encapsulation snap Router(config-if)# ^Z Router#
(Optional) Enable AppleTalk routing on the router1. Assign a cable range to the VLAN. Assign a zone name to the VLAN. Exit configuration mode.
1.
Specify a VLAN interface on the MSFC. Router(config)# interface vlan-id Router(config-if)# appletalk cable-range cable-range Router(config-if)# appletalk zone zone-name Router(config-if)# Ctrl-Z
This example shows how to enable AppleTalk routing on the MSFC, create a VLAN interface, and assign the interface an AppleTalk cable-range and zone name:
Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# appletalk routing Router(config)# interface vlan100 Router(config-if)# appletalk cable-range 100-100 Router(config-if)# appletalk zone Engineering Router(config-if)# ^Z Router#
Local Proxy ARP, page 12-v WCCP Layer 2 Redirection, page 12-v Auto State Feature, page 12-v
12-4
78-13315-02
Chapter 12
Supervisor Engine 1 with the Policy Feature Card (PFC) supports this feature with Release 12.1(2)E or later releases. Supervisor Engine 2 with PFC2 supports this feature with Release 12.1(3a)E or later releases. Web Cache Communication Protocol (WCCP) Layer 2 redirection allows directly connected Cisco Cache Engines to use Layer 2 redirection, which is more efficient than Layer 3 redirection, through generic routing encapsulation (GRE). You can configure a directly connected Cache Engine to negotiate use of WCCP Layer 2 redirection. WCCP Layer 2 redirection requires no configuration on the MSFC. Enter the show ip wccp web-cache detail command to display which redirection method is in use for each cache. Follow these guidelines when using this feature:
WCCP Layer 2 redirection feature sets the IP flow mask to full-flow mode. You can configure the Cisco Cache Engine software release 2.2 or later releases to use WCCP Layer 2 redirection. Layer 2 redirection takes place on the switch and is not visible to the MSFC. Entering the show ip wccp web-cache detail command on the MSFC displays statistics for only the first packet of a Layer 2 redirected flow, which provides an indication of how many flows, rather than packets, are using Layer 2 redirection. Entering the show mls entries command on the supervisor engine displays the other packets in the Layer 2 redirected flows.
Configure the Cisco IOS WCCP as described in the Cisco IOS Configuration Fundamentals Configuration Guide at http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/fun_c/fcprt3/fcd305.htm
When the last external port on a VLAN goes down, all Layer 3 interfaces/subinterfaces on that VLAN shut down (are autostated) unless sc0 is on the VLAN or another router is in the chassis with an interface/subinterface in the VLAN. When a Layer 3 interface goes down, this message is reported to the console for each Layer 3 interface:
%AUTOSTATE-6-SHUT_DOWN
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
12-5
When the first external port on the VLAN is brought back up, all Layer 3 interfaces on that VLAN that were previously shut down are brought up. This message is reported to the console for each Layer 3 interface:
%AUTOSTATE-6-BRING_UP
The Catalyst 6000 family switch does not have knowledge of, or control over, the MSM or MSFC configuration (just as the switch does not have knowledge of, or control over, external router configurations). The auto state feature will not work on MSM or MSFC interfaces if the MSM or MSFC is not properly configured. For example, consider this MSM trunk configuration:
interface GigabitEthernet0/0/0.200 encap isl 200 . .
In the example, the GigabitEthernet0/0/0.200 interface is not auto stated if any of these configuration errors are made:
VLAN 200 is not configured on the switch. Trunking is not configured on the corresponding Gigabit Ethernet switch port. Trunking is configured but VLAN 200 is not an allowed VLAN on that trunk.
This example shows how to display the current line protocol state determination for the MSM:
Console> show msmautostate MSM Auto port state: enabled Console>
To display the line protocol state determination for the MSFC, perform this task in privileged mode: Task Display the line protocol state determination for the MSFC. Command show msfcautostate
This example shows how to display the line protocol state determination for the MSFC:
Console> (enable) show msfcautostate MSFC Auto port state: enabled Console> (enable)
12-6
78-13315-02
Chapter 12
To check which MSM interfaces are currently auto stated, perform this task in enabled mode: Task Check which MSM interfaces are currently auto stated. Command show autostate entries
This example shows how to check which MSM interfaces are currently auto stated (shutdown or brought up through auto state):
Router# show autostate entries Port-channel1.5 Port-channel1.6 Port-channel1.4 Router#
Disable the auto state feature if you have an MSM set msmautostate disable installed. The auto state feature is enabled by default. This example shows how to disable the auto state feature if you have an MSM installed:
Console> (enable) set msmautostate disable MSM port auto state disabled. Console> (enable)
To disable the line protocol state determination of the MSFC, perform this task in privileged mode:
Note
If you toggle (enable to disable and/or disable to enable) the msfcautostate command you might have to use the shutdown and no shutdown commands to disable and then restart the VLAN and WAN interfaces on the MSFC to bring them back up. Unless there is a valid reason, the MSFC auto state feature should not be disabled.
This example shows how to disable the line protocol state determination of the MSFC:
Console> (enable) set msfcautostate disable MSM port auto state disabled. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
12-7
12-8
78-13315-02
C H A P T E R
13
Note
For complete information on the syntax and usage information for the supervisor engine commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Layer 3 Switching Works, page 13-i Default CEF for PFC2 Configuration, page 13-x CEF for PFC2 Configuration Guidelines and Restrictions, page 13-xi Configuring CEF for PFC2, page 13-xii Configuring NetFlow Statistics, page 13-xxii
Note
Supervisor Engine 1 with the PFC1 and the MSFC or MSFC2 provide Layer 3 switching with Multilayer Switching (MLS). See Chapter 14, Configuring MLS, for more information.
Note
To configure the MSFC2 to support MLS on a Catalyst 5000 family switch, refer to the Layer 3 Switching Software Configuration Guide at http://www.cisco.com/univercd/cc/td/doc/product/lan/cat5000/rel_5_2/layer3/index.htm.
Layer 3 Switching Overview, page 13-ii Understanding Layer 3-Switched Packet Rewrite, page 13-ii Understanding CEF for PFC2, page 13-iv Understanding NetFlow Statistics, page 13-ix
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-1
Note
Layer 3 switching supports the routing protocols configured on the MSFC2. Layer 3 switching does not replace the routing protocols configured on the MSFC2. Layer 3 switching uses Protocol Independent Multicast (PIM) for multicast route determination. Layer 3 switching on Catalyst 6000 family switches provides flow statistics that you can use to identify traffic characteristics for administration, planning, and troubleshooting. Layer 3 switching uses NetFlow Data Export (NDE) to export flow statistics (for more information about NDE, see Chapter 15, Configuring NDE).
Note
Traffic is Layer 3 switched after being processed by the VLAN access control list (VACL) feature and the quality of service (QoS) feature.
Note
Rather than just forwarding IP multicast packets, the PFC2 replicates them as necessary on the appropriate VLANs. Packet rewrite alters five fields:
Layer 2 (MAC) destination address Layer 2 (MAC) source address Layer 3 IP Time to Live (TTL) or IPX Transport Control Layer 3 checksum Layer 2 (MAC) checksum (also called the frame checksum or FCS)
Note
Packets are rewritten with the encapsulation appropriate for the next-hop subnet. If Source A and Destination B are on different VLANs and Source A sends a packet to the MSFC2 to be routed to Destination B, the switch recognizes that the packet was sent to the Layer 2 (MAC) address of the MSFC2. To perform Layer 3 switching, the switch rewrites the Layer 2 frame header, changing the Layer 2 destination address to the Layer 2 address of Destination B and the Layer 2 source address to the Layer 2 address of the MSFC2. The Layer 3 addresses remain the same.
13-2
78-13315-02
Chapter 13
In IP unicast and IP multicast traffic, the switch decrements the Layer 3 TTL value by 1 and recomputes the Layer 3 packet checksum. In IPX traffic, the switch increments the Layer 3 Transport Control value by 1 and recomputes the Layer 3 packet checksum. The switch recomputes the Layer 2 frame checksum and forwards (or for multicast packets, replicates as necessary) the rewritten packet to Destination Bs VLAN. These sections describe how the packets are rewritten:
Understanding IP Unicast Rewrite, page 13-iii Understanding IPX Unicast Rewrite, page 13-iii Understanding IP Multicast Rewrite, page 13-iv
After the switch rewrites an IP unicast packet, it is (conceptually) formatted as follows: Layer 2 Frame Header Destination Source Destination B MAC MSFC2 MAC Layer 3 IP Header Destination Source TTL Checksum calculation2 Destination B IP Source A IP n-1 Data FCS
MSFC2 MAC
Source A MAC
After the switch rewrites an IPX packet, it is (conceptually) formatted as follows: Layer 2 Frame Header Destination Source Layer 3 IPX Header Checksum/ IPX Length/ Transport Control n+1 Destination Net/ Node/ Socket Destination B IPX Source Net/ Node/ Socket Source A IPX Data FCS
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-3
Layer 3 IP Header Source Source A MAC Destination Group G1 IP Source Source A IP TTL n Checksum calculation1
Data
FCS
After the switch rewrites an IP multicast packet, it is (conceptually) formatted as follows: Frame Header Destination Group G1 MAC Source MSFC2 MAC IP Header Destination Group G1 IP Source Source A IP TTL n1 Checksum calculation2 Data FCS
CEF for PFC2 Overview, page 13-iv Understanding Forwarding Decisions, page 13-v Understanding the FIB, page 13-v Understanding the Adjacency Table, page 13-vi Partially and Completely Switched Multicast Flows, page 13-vii CEF for PFC2 Examples, page 13-vii
Note
CEF for PFC2 sends bridge traffic that is addressed at Layer 2 to the MSFC2 to be processed.
13-4
78-13315-02
Chapter 13
Note
Access control lists (ACLs) and policy-based routing can cause CEF for PFC2 to ignore the FIB when making a forwarding decision (see the Understanding Forwarding Decisions section on page 13-v). Enter the show mls cef command to display a Layer 3 switching summary:
Console> (enable) show mls cef Total L3 packets switched: Total L3 octets switched: Total route entries: IP route entries: IPX route entries: IPM route entries: IP load sharing entries: IPX load sharing entries: Forwarding entries: Bridge entries: Drop entries: 0 0 18 15 3 0 0 0 4 12 2
Entries in the ACL ternary content addressable memory (TCAM) for policy-based routing decisions Entries in the NetFlow table for TCP intercept and reflexive ACL forwarding decisions (see the Understanding NetFlow Statistics section on page 13-ix) Entries in the FIB and adjacency table for all other forwarding decisions
Enter the show mls entry command to display information about the entries used to make forwarding decisions. CEF for PFC2 makes a forwarding decision for each packet and sends the rewrite information for each packet to the egress port, where the rewrite occurs when the packet is transmitted from the switch.
Destination IP address for IP unicast Destination IPX network for IPX unicast Source and destination IP address for IP unicast with RPF check Source and destination IP address for IP multicast with RPF check
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-5
Note
Because the FIB mirrors the unicast and multicast routing tables on the MSFC2, any commands on the MSFC2 that change the unicast or multicast routing tables affect the FIB. Forwarding entries cannot be cleared from the Supervisor Engine 2 command-line interface (CLI). In switches with redundant supervisor engines and MSFC2s, the designated MSFC2 supports the FIB on the active Supervisor Engine 2. The routing protocols on the nondesignated MSFC2 send information to the routing protocols on the designated MSFC2. Enter the show mls entry cef command to display:
Module number of the MSFC that is supporting the FIB FIB entry type (receive, connected, resolved, drop, wildcard, or default) Destination address (IP address or IPX network) Destination mask Next-hop address (IP address or IPX network) Next-hop mask Next-hop load-sharing weight
Adjacency Type connect punt no r/w frc drp drop, null, loopbk
Description Entry type that contains complete rewrite information Entry to send traffic to the MSFC2 Entry to send traffic to the MSFC2 when rewrite information is incomplete Entry used to drop packets due to ARP throttling Entries used to drop packets
FIB information (see the Understanding the FIB section on page 13-v) Adjacency type (connect, drop, null, loopbk, frc drp, punt, no r/w) Next-hop MAC address Next-hop VLAN Next-hop encapsulation Number of packets transmitted to this adjacency from the associated FIB entry Number of bytes transmitted to this adjacency from the associated FIB entry
13-6
78-13315-02
Chapter 13
The MSFC is configured as a member of the IP multicast group (using the ip igmp join-group command) on the RPF interface of the multicast source. The MSFC is the first-hop router to the source in PIM sparse mode (in this case, the MSFC must send PIM-register messages to the rendezvous point). The multicast TTL threshold is configured on an egress interface for the flow. The multicast helper is configured on the RPF interface for the flow, and multicast to broadcast translation is required. Multicast tag switching is configured on an egress interface. Network address translation (NAT) is configured on an interface, and source address translation is required for the outgoing interface.
Note
CEF for PFC2 provides Layer 3 switching when the extended access list deny condition on the RPF interface specifies something other than the Layer 3 source, Layer 3 destination, or IP protocol (an example is the Layer 4 port numbers). For partially switched flows, all multicast traffic belonging to the flow reaches the MSFC and is software switched for any interface that is not Layer 3 switched.
Note
All (*,G) flows are always partially Layer 3 switched. The PFC prevents multicast traffic in flows that are completely Layer 3 switched from reaching the MSFC, reducing the load on the MSFC. The show ip mroute and show mls ip multicast commands identify completely Layer 3-switched flows with the text string RPF-MFD (Multicast Fast Drop [MFD] indicates that from the viewpoint of the MSFC, the multicast packet is dropped, because it is switched by the PFC). For all completely Layer 3-switched flows, the PFC periodically sends multicast packet and byte count statistics to the MSFC, because the MSFC cannot record multicast statistics for completely switched flows, which it never sees. The MSFC uses the statistics to update the corresponding multicast routing table entries and reset the appropriate expiration timers.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-7
/M et 3
arke
ting
Host B 171.59.3.1
net
2/E
ngin
eeri
ng MAC = Cc
Figure 2 shows a simple IPX CEF network topology. In this example, Host A is on the Sales VLAN (IPX address 01.Aa), Host B is on the Marketing VLAN (IPX address 03.Bb), and Host C is on the Engineering VLAN (IPX address 02.Cc). When Host A initiates a file transfer to Host C, the PFC2 uses the information in the FIB and adjacency table to forward packets from Host A to Host C.
13-8
44610
78-13315-02
Chapter 13
Source IPX Destination Rewrite Src/Dst Address IPX Address MAC Address 01.Aa 01.Aa 02.Cc 03.Bb 02.Cc 01.Aa Dd:Bb Dd:Cc Dd:Aa
Host B
Net
2/E
ngin
eer
02
Data 01.Aa:02.Cc Aa:Dd Data
ing
MAC = Cc
NetFlow Statistics Overview, page 13-ix NetFlow Table Entry Aging, page 13-x Flow Masks, page 13-x
Note
A NetFlow table with more than 32K entries increases the probability that there will be insufficient room to store statistics. To reduce the number of entries in the NetFlow table, you can exclude specified IP protocols from the statistics (see the Excluding IP Protocol Entries from the NetFlow Table section on page 13-xxv).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-9
A multicast flow is all traffic with the same protocol and transport-layer information from a particular source to the members of a particular destination multicast group.
Flow Masks
Flow masks determine how NetFlow table entries are created. CEF for PFC2 supports only one flow mask (the most specific one) for all statistics. If CEF for PFC2 detects different flow masks from different MSFCs for which it is performing Layer 3 switching, it changes its flow mask to the most specific flow mask detected. When the flow mask changes, the entire NetFlow table is purged. When CEF for PFC2 exports cached entries, flow records are created based on the current flow mask. Depending on the current flow mask, some fields in the flow record might not have values. Unsupported fields are filled with a zero (0). The statistics flow masks are as follows:
destination-ipThe least-specific flow mask for IP destination-ipxThe only flow mask for IPX source-destination-ipFor IP source-destination-vlanFor IP multicast full flowThe most-specific flow mask
Enter the show mls statistics entry command to display the contents of the NetFlow table and the current flow mask. Use the keyword options to display information for specific traffic (refer to the Catalyst 6000 Family Command Reference publication for more information).
Feature CEF for PFC2 enable state CEF enable state on MSFC2
13-10
78-13315-02
Chapter 13
Configuring CEF for PFC2 CEF for PFC2 Configuration Guidelines and Restrictions
Feature Multicast routing on MSFC2 PIM routing on MSFC2 IP MMLS Threshold IP MMLS
Default Value Disabled globally Disabled on all interfaces Unconfiguredno default value Enabled when multicast routing is enabled and IP PIM is enabled on the interface
PFC2 supports a maximum of 16 unique Hot Standby Router Protocol (HSRP) group numbers. You can use the same HSRP group numbers in different VLANs. If you configure more than 16 HSRP groups, this restriction prevents use of the VLAN number as the HSRP group number.
Note
Identically numbered HSRP groups use the same virtual MAC address, which might cause errors if you configure bridging on the MSFC.
Because of the restriction to 16 unique HSRP group numbers, CEF for PFC2 cannot support the standby use-bia HSRP command. CEF for PFC2 supports the following ingress and egress encapsulations:
For IP unicast:
Ethernet V2.0 (ARPA) 802.3 with 802.2 with 1 byte control (SAP1) 802.3 with 802.2 and SNAP
For IPX:
Ethernet V2.0 (ARPA) 802.3 (raw) 802.2 with 1 byte control (SAP1) SNAP
Note
When the ingress encapsulation for IPX traffic is SAP1, CEF for PFC2 provides Layer 3 switching only when the egress encapsulation is also SAP1. The MSFC2 routes IPX SAP1 traffic that requires an encapsulation change.
CEF for PFC2 does not provide Layer 3 switching for an IP multicast flow in the following cases:
For IP multicast groups that fall into the range 224.0.0.* (where * is in the range 0255), which is used by routing protocols. CEF for PFC2 supports 225.0.0.* through 239.0.0.* and 224.128.0.* through 239.128.0.*.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-11
Note
Groups in the 224.0.0.* range are reserved for routing control packets and must be flooded to all forwarding ports of the VLAN. These addresses map to the multicast MAC address range 01-00-5E-00-00-xx, where xx is in the range 00xFF. For PIM auto-RP multicast groups (IP multicast group addresses 224.0.1.39 and 224.0.1.40).
Note
In systems with redundant MSFC2s, the PIM interface configuration must be the same on both the active and the redundant MSFC2. If the shortest-path tree (SPT) bit for the flow is cleared when running PIM sparse mode for the interface or group. For fragmented IP packets and packets with IP options. However, packets in the flow that are not fragmented or that do not specify IP options are multilayer switched. For source traffic received on tunnel interfaces (such as MBONE traffic). For any RPF interface with multicast tag switching enabled.
Displaying Layer 3-Switching Entries on the Supervisor Engine, page 13-xii Configuring CEF on the MSFC2, page 13-xiv Configuring IP Multicast on the MSFC2, page 13-xiv Displaying IP Multicast Information, page 13-xvi
Note
For information on configuring routing on the MSFC2, see Chapter 12, Configuring InterVLAN Routing.
13-12
78-13315-02
Chapter 13
42.0050.3EA9.ABFD 42.0050.3EA9.ABFD
1 1
Destination-IP Source-IP Prot DstPrt SrcPrt Stat-Bytes Uptime Age TcpDltSeq TcpDltAck --------------- --------------- ----- ------ ---------------- -------- -------- --------- --------0.0.0.5 0.0.0.5 5 204 104 0 01:03:18 01:00:51 cccccccc cccccccc 0.0.0.2 0.0.0.2 2 201 101 0 01:03:21 01:00:51 cccccccc cccccccc 0.0.0.4 0.0.0.4 4 203 X 0 01:03:19 01:00:51 cccccccc cccccccc 0.0.0.1 0.0.0.1 ICMP 200 100 0 01:03:25 01:00:52 cccccccc cccccccc 0.0.0.3 0.0.0.3 3 202 102 0 01:03:20 01:00:52 cccccccc cccccccc 0.0.0.6 0.0.0.6 TCP 205 105 0 01:03:18 01:00:52 cccccccc cccccccc Console> (enable)
Destination-Mac
----------------- ---- ---- ---------cc-cc-cc-cc-cc-cc 5 cc-cc-cc-cc-cc-cc 2 cc-cc-cc-cc-cc-cc 4 cc-cc-cc-cc-cc-cc 1 cc-cc-cc-cc-cc-cc 3 cc-cc-cc-cc-cc-cc 6 ARPA 0 ARPA 0 ARPA 0 ARPA 0 ARPA 0 ARPA 0
Enter the show mls entry cef command to display only the FIB entries. Enter the show mls entry netflow-route command to display only the entries from the TCP intercept feature and reflexive access control lists (ACLs).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-13
Note
The ip load-sharing per-packet, ip cef accounting per-prefix, and ip cef accounting non-recursive IOS CEF commands on the MSFC2 apply only to traffic that is CEF-switched on the MSFC. The commands do not affect traffic that is switched by CEF for PFC2 on the supervisor engine.
Enabling IP Multicast Routing Globally, page 13-xiv Enabling IP PIM on an MSFC2 Interface, page 13-xv Configuring the IP MMLS Global Threshold, page 13-xv Enabling IP MMLS on MSFC Interfaces, page 13-xv
Note
This section describes how to enable IP multicast routing on the MSFC2. For more detailed IP multicast configuration information, refer to the IP Multicast section of the Cisco IOS IP and IP Routing Configuration Guide at http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/ip_c/ipcprt3/index.htm
13-14
78-13315-02
Chapter 13
This example shows how to enable PIM on an MSFC2 interface using the default mode (sparse-dense-mode):
Router(config-if)# ip pim Router(config-if)#
This example shows how to enable PIM sparse mode on an MSFC2 interface:
Router(config-if)# ip pim sparse-mode Router(config-if)#
Note
This command does not affect flows that are already being routed. To apply the threshold to existing routes, clear the route and let it reestablish. To configure the IP MMLS threshold, perform this task: Task Configure the IP MMLS threshold. Command Router(config)# [no] mls ip multicast threshold ppsec
This example shows how to configure the IP MMLS threshold to 10 packets per second:
Router(config)# mls ip multicast threshold 10 Router(config)#
Note
You must enable IP PIM on all participating MSFC interfaces before IP MMLS will function. For information on configuring IP PIM on MSFC interfaces, see the Enabling IP PIM on an MSFC2 Interface section on page 13-xv.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-15
To enable IP MMLS on an MSFC interface, perform this task: Task Enable IP MMLS on an MSFC interface. Command Router(config-if)# [no] mls ip multicast
Displaying IP Multicast Information on the MSFC2, page 13-xvi Displaying IP Multicast Information on the Supervisor Engine, page 13-xx
Displaying IP MMLS Interface Information, page 13-xvi Displaying the IP Multicast Routing Table, page 13-xvii Displaying IP Multicast Details, page 13-xvii Using Debug Commands, page 13-xix Using Debug Commands on the SCP, page 13-xix
13-16
78-13315-02
Chapter 13
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-17
This example shows how to display information on a specific IP MMLS entry on the MSFC:
Router# show mls ip multicast 224.1.1.1 Multicast hardware switched flows: (1.1.13.1, 224.1.1.1) Incoming interface: Vlan13, Packets switched: 61590 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan13 (1.1.9.3, 224.1.1.1) Incoming interface: Vlan9, Packets switched: 0 Hardware switched outgoing interfaces: Vlan20 RFD-MFD installed: Vlan9 (1.1.12.1, 224.1.1.1) Incoming interface: Vlan12, Packets switched: 62010 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan12 (1.1.12.3, 224.1.1.1) Incoming interface: Vlan12, Packets switched: 61980 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan12
13-18
78-13315-02
Chapter 13
(1.1.11.1, 224.1.1.1) Incoming interface: Vlan11, Packets switched: 62430 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan11 (1.1.11.3, 224.1.1.1) Incoming interface: Vlan11, Packets switched: 62430 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan11 Total hardware switched installed: 6 Router#
This example shows how to display a summary of IP MMLS information on the MSFC:
Router# show mls ip multicast summary 7 MMLS entries using 560 bytes of memory Number of partial hardware-switched flows:2 Number of complete hardware-switched flows:5 Router#
Command
Description
[no] debug mls ip multicast group group_id group_mask Configures filtering that applies to all other multicast debugging commands. [no] debug mls ip multicast events [no] debug mls ip multicast errors [no] debug mls ip multicast messages [no] debug mls ip multicast all [no] debug mdss error [no] debug mdss events [no] debug mdss all
1. MDSS = Multicast Distributed Switching Services
Displays IP MMLS events. Turns on debug messages for multicast MLS-related errors. Displays IP MMLS messages from/to the hardware switching engine. Turns on all IP MMLS messages. Turns on MDSS1 error messages. Turns on MDSS-related events. Turns on all MDSS messages.
Command [no] debug scp async [no] debug scp data [no] debug scp errors [no] debug scp packets
Description Displays trace for asynchronous data in and out of the SCP system. Shows packet data trace. Displays errors and warnings in the SCP. Displays packet data in and out of the SCP system.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-19
Displaying IP Multicast Statistics, page 13-xx Clearing IP Multicast Statistics, page 13-xxi Displaying IP Multicast Entries, page 13-xxi
This example shows how to display IP multicast statistics for the MSFC2:
Console (enable) show mls multicast statistics Router IP Router Name Router MAC ------------------------------------------------------1.1.9.254 ? 00-50-0f-06-3c-a0 Transmit: Delete Notifications: Acknowledgements: Flow Statistics:
23 92 56
Receive: Open Connection Requests: 1 Keep Alive Messages: 72 Shortcut Messages: 19 Shortcut Install TLV: 8 Selective Delete TLV: 4 Group Delete TLV: 0 Update TLV: 3 Input VLAN Delete TLV: 0 Output VLAN Delete TLV: 0 Global Delete TLV: 0 MFD Install TLV: 7 MFD Delete TLV: 0 Router IP Router Name Router MAC ------------------------------------------------------1.1.5.252 ? 00-10-29-8d-88-01 Transmit: Delete Notifications: Acknowledgements: Flow Statistics:
22 75 22
13-20
78-13315-02
Chapter 13
Receive: Open Connection Requests: Keep Alive Messages: Shortcut Messages: Shortcut Install TLV: Selective Delete TLV: Group Delete TLV: Update TLV: Input VLAN Delete TLV: Output VLAN Delete TLV: Global Delete TLV: MFD Install TLV: MFD Delete TLV: Console (enable)
1 68 6 4 2 0 0 0 0 0 4 0
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-21
1.1.9.254 224.1.1.1 1.1.5.252 224.1.1.1 1.1.9.254 224.1.1.1 Total Entries: 10 Console> (enable)
13 20 11
This example shows how to display IP multicast entries for a specific MSFC2:
Console> (enable) show mls multicast entry 15 Router IP Dest IP Source IP Pkts Bytes InVlan OutVlans --------------- --------------- --------------- ---------- ----------- ------- -------1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 Total Entries: 5 Console> (enable) 1.1.11.1 1.1.12.3 1.1.11.3 1.1.13.1 1.1.12.1 15870 15759 15810 15840 15840 2761380 2742066 2750940 2756160 2756160 20 20 20 20 20
This example shows how to display IP multicast entries for a specific multicast group address:
Console> (enable) show mls Router IP Dest IP -------------- ----------171.69.2.1 226.0.1.3 171.69.2.1 226.0.1.3 Total Entries: 2 Console> (enable) multicast entry group 226.0.1.3 short Source IP InVlan Pkts Bytes OutVlans ------------ ------ ------ --------- --------172.2.3.8 20 171 23512 10,201,22,45 172.3.4.9 12 25 3120 8,20
This example shows how to display IP multicast entries for a specific MSFC2 and a specific multicast source address:
Console> (enable) show mls multicast entry 15 source 1.1.11.1 short Router IP Dest IP Source IP Pkts Bytes InVlan OutVlans --------------- --------------- --------------- ---------- ------------------------- ---------172.20.49.159 224.1.1.6 1.1.40.4 368 57776 40 23,25 172.20.49.159 224.1.1.71 1.1.22.2 99 65142 22 30,37 172.20.49.159 224.1.1.8 1.1.22.2 396 235620 22 13,19 Console> (enable)
Specifying the NetFlow Table Entry Aging-Time Value, page 13-xxiii Specifying NetFlow Table IP Entry Fast Aging Time and Packet Threshold Values, page 13-xxiv Setting the Minimum Statistics Flow Mask, page 13-xxiv Excluding IP Protocol Entries from the NetFlow Table, page 13-xxv Displaying NetFlow Statistics, page 13-xxv Clearing NetFlow IP and IPX Statistics, page 13-xxvi Displaying NetFlow Statistics Debug Information, page 13-xxviii
13-22
78-13315-02
Chapter 13
To specify the IP entry aging time, perform this task in privileged mode: Task Specify the IP entry aging time for the NetFlow table. Command set mls agingtime ip [agingtime]
To specify the IPX entry aging time, perform this task in privileged mode: Task Command
Specify the IPX entry aging time for the NetFlow set mls agingtime ipx [agingtime] table. This example shows how to specify the IPX entry aging time:
Console> (enable) set mls agingtime ipx 512 Multilayer switching aging time IPX set to 512 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-23
Specifying NetFlow Table IP Entry Fast Aging Time and Packet Threshold Values
Note
IPX entries do not use fast aging. To minimize the size of the NetFlow table, enable IP entry fast aging time. The IP entry fast aging time applies to NetFlow table entries that have no more than pkt_threshold packets routed within fastagingtime seconds after they are created. A typical NetFlow table entry that is removed is the entry for flows to and from a Domain Name Server (DNS) or TFTP server; the entry might never be used again after it is created. Detecting and aging out these entries saves space in the NetFlow table for other data traffic. The default fastagingtime value is 0 (no fast aging). You can configure the fastagingtime value to 32, 64, 96, or 128 seconds. Any fastagingtime value that is not configured exactly as the indicated values is adjusted to the closest one. You can configure the pkt_threshold value to 0, 1, 3, 7, 15, 31, or 63 packets. If you need to enable IP entry fast aging time, initially set the value to 128 seconds. If the NetFlow table remains full, decrease the setting. If the NetFlow table continues to remain full, decrease the normal IP entry aging time. Typical values for fastagingtime and pkt_threshold are 32 seconds and 0 packets (no packets switched within 32 seconds after the entry is created). To specify the IP entry fast aging time and packet threshold, perform this task in privileged mode: Task Specify the IP entry fast aging time and packet threshold for a NetFlow table entry. Command set mls agingtime fast [fastagingtime] [pkt_threshold]
This example shows how to set the IP entry fast aging time to 32 seconds with a packet threshold of 0 packets:
Console> (enable) set mls agingtime fast 32 0 Multilayer switching fast aging time set to 32 seconds for entries with no more than 0 packets switched. Console> (enable)
Note
Entering a set mls flow command purges all existing entries in the NetFlow table.
13-24
78-13315-02
Chapter 13
To set the minimum NetFlow statistics flow mask, perform this task in privileged mode: Task Set the minimum statistics flow mask. Command set mls flow {destination | destination-source | full}
This example shows how to set the minimum statistics flow mask to destination-source-ip:
Console> (enable) set mls flow destination-source Configured IP flow mask is set to destination-source flow. Console> (enable)
The port parameter can be a port number or a keyword: dns, ftp, smtp, telnet, x (X-Windows), or www. This example shows how to exclude Telnet traffic from the NetFlow table:
Console> (enable) set mls exclude protocol tcp telnet NetFlow table will not create entries for TCP packets with protocol port 23. Note: MLS exclusion only works in full flow mode. Console> (enable)
To display the forwarding decision entries, enter the show mls entry cef command (see the Displaying Layer 3-Switching Entries on the Supervisor Engine section on page 13-xii.) To display a summary of NetFlow table entries and statistics, perform this task in privileged mode: Task Display all NetFlow table entries and statistics. Command show mls
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-25
IP statistics flows aging time = 256 seconds IP statistics flows fast aging time = 0 seconds, packet threshold = 0 IP Current flow mask is Full flow Netflow Data Export version:7 Netflow Data Export disabled Netflow Data Export port/host is not configured. Total packets exported = 0 IPX statistics flows aging time = 256 seconds IPX flow mask is Destination flow IPX max hop is 15 Module 15:Physical MAC-Address 00-50-3e-a9-ab-fc Vlan Virtual MAC-Address(es) ---- ----------------------42 00-00-0c-07-ac-00 Console>
The show mls statistics entry command can display all statistics or statistics for specific NetFlow table entries. Specify the destination address, source address, and for IP, the protocol, and source and destination ports to see the statistics for a specific NetFlow table entry. A value of zero (0) for src_port or dst_port is treated as a wildcard, and all NetFlow statistics are displayed (unspecified options are treated as wildcards). If the protocol specified is not TCP or UDP, set the src_port and dst_prt to 0 or no NetFlow statistics will display. To display statistics for NetFlow table entries, perform this task in privileged mode: Task Display statistics for NetFlow table entries. If you do not specify a NetFlow table entry, all NetFlow statistics are shown. Command show mls statistics entry [ip | ipx | uptime] [destination ip_addr_spec] [source ip_addr_spec] [flow protocol src_port dst_port]
This example shows how to display NetFlow statistics for a particular NetFlow table entry:
Console> show mls statistics entry ip destination 172.20.22.14 Last Used Destination IP Source IP Prot DstPrt SrcPrt Stat-Pkts Stat-Bytes --------------- --------------- ---- ------ ------ --------- ----------MSFC 127.0.0.12: 172.20.22.14 172.20.25.10 6 50648 80 3152 347854 Console>
Clearing All NetFlow Statistics, page 13-xxvii Clearing NetFlow IP Statistics, page 13-xxvii Clearing NetFlow IPX Statistics, page 13-xxviii Clearing NetFlow Statistics Totals, page 13-xxviii
Note
The clear mls commands affect only statistics. None of the clear mls commands affect forwarding entries or the NetFlow table entries that correspond to the forwarding entries.
13-26
78-13315-02
Chapter 13
Protocol family (protocol)Specify tcp, udp, icmp, or a decimal number for other protocol families. A value of zero (0) for protocol is treated as a wildcard (unspecified options are treated as wildcards). TCP or UDP source and destination port numbers (src_port and dst_port)If the protocol you specify is TCP or UDP, specify the source and destination TCP or UDP port numbers. A value of zero (0) for src_port or dst_port is treated as a wildcard (unspecified options are treated as wildcards). For other protocols, set the src_port and dst_port to 0, or no entries will clear.
To clear statistics for a NetFlow table IP entry, perform this task in privileged mode: Task Clear statistics for a NetFlow table IP entry. Command clear mls statistics entry ip [destination ip_addr_spec] [source ip_addr_spec] [flow protocol src_port dst_port] [all]
This example shows how to clear statistics for NetFlow table entries with destination IP address 172.20.26.22:
Console> (enable) clear mls statistics entry ip destination 172.20.26.22 MLS IP entry cleared Console> (enable)
This example shows how to clear statistics for NetFlow table entries with destination IP address 172.20.22.113, TCP source port 1652, and TCP destination port 23:
Console> (enable) clear mls statistics entry destination 172.20.26.22 source 172.20.22.113 flow tcp 1652 23 MLS IP entry cleared Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
13-27
This example shows how to clear statistics for IPX MLS entries with destination IPX address 1.0002.00e0.fefc.6000:
Console> (enable) clear mls statistics entry ipx destination 1.0002.00e0.fefc.6000 MLS IPX entry cleared. Console> (enable)
Total packets switched (IP and IPX) Total packets exported (for NDE)
To clear NetFlow statistic totals, perform this task in privileged mode: Task Clear NetFlow statistics totals. Command clear mls statistics
Note
The show tech-support command displays supervisor engine system information. Use application-specific commands to get more information about particular applications.
13-28
78-13315-02
C H A P T E R
14
Configuring MLS
This chapter describes how to configure Multilayer Switching (MLS) for the Catalyst 6000 family switches. MLS provides IP and Internetwork Packet Exchange (IPX) unicast Layer 3 switching and IP multicast Layer 3 switching with Supervisor Engine 1, the Policy Feature Card (PFC), and the Multilayer Switch Feature Card (MSFC) or MSFC2.
Note
For complete information on the syntax and usage information for the supervisor engine commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Layer 3 Switching Works, page 14-i Default MLS Configuration, page 14-x Configuration Guidelines and Restrictions, page 14-xi Configuring MLS, page 14-xiv
Note
Supervisor Engine 2, PFC2, and MSFC2 provide Layer 3 switching with Cisco Express Forwarding for PFC2 (CEF for PFC2). See Chapter 13, Configuring CEF for PFC2, for more information.
Note
Layer 3 switching supports the routing protocols configured on the MSFC. Layer 3 switching does not replace the routing protocols configured on the MSFC. Layer 3 switching uses IP Protocol Independent Multicast (IP PIM) for multicast route determination. Layer 3 switching on Catalyst 6000 family switches provides traffic statistics that you can use to identify traffic characteristics for administration, planning, and troubleshooting. Layer 3 switching uses NetFlow Data Export (NDE) to export flow statistics (for more information about NDE, see Chapter 15, Configuring NDE).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-1
Configuring MLS
These sections describe Layer 3 switching and MLS on the Catalyst 6000 family switches:
Understanding Layer 3-Switched Packet Rewrite, page 14-ii Understanding MLS, page 14-iv
Note
Rather than just forwarding multicast packets, the switch replicates them as necessary on the appropriate VLANs. Packet rewrite alters five fields:
Layer 2 (MAC) destination address Layer 2 (MAC) source address Layer 3 IP Time to Live (TTL) or IPX Transport Control Layer 3 checksum Layer 2 (MAC) checksum (also called the frame checksum or FCS)
If Source A and Destination B are on different VLANs and Source A sends a packet to the MSFC to be routed to Destination B, the switch recognizes that the packet was sent to the Layer 2 (MAC) address of the MSFC. To perform Layer 3 switching, the switch rewrites the Layer 2 frame header, changing the Layer 2 destination address to the Layer 2 address of Destination B and the Layer 2 source address to the Layer 2 address of the MSFC. The Layer 3 addresses remain the same. In IP unicast and IP multicast traffic, the switch decrements the Layer 3 Time to Live (TTL) value by 1 and recomputes the Layer 3 packet checksum. In IPX traffic, the switch increments the Layer 3 Transport Control value by 1 and recomputes the Layer 3 packet checksum. The switch recomputes the Layer 2 frame checksum and forwards (or for multicast packets, replicates as necessary) the rewritten packet to Destination Bs VLAN. These sections describe how the packets are rewritten:
Understanding IP Unicast Rewrite, page 14-ii Understanding IPX Unicast Rewrite, page 14-iii Understanding IP Multicast Rewrite, page 14-iii
14-2
78-13315-02
Chapter 14
After the switch rewrites an IP unicast packet, it is (conceptually) formatted as follows: Layer 2 Frame Header Destination Source Layer 3 IP Header Destination Source TTL Checksum calculation2 Data FCS
After the switch rewrites an IPX packet, it is (conceptually) formatted as follows: Layer 2 Frame Header Destination Source Layer 3 IPX Header Checksum/ IPX Length/ Transport Control n+1 Destination Net/ Node/ Socket Destination B IPX Source Net/ Node/ Socket Source A IPX Data FCS
Destination B MAC
MSFC MAC
Layer 3 IP Header Source Source A MAC Destination Group G1 IP Source Source A IP TTL n Checksum calculation1
Data
FCS
After the switch rewrites an IP multicast packet, it is (conceptually) formatted as follows: Layer 2 Frame Header Destination Group G1 MAC Source MSFC MAC Layer 3 IP Header Destination Group G1 IP Source Source A IP TTL n1 Checksum calculation2 Data FCS
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-3
Configuring MLS
Understanding MLS
Note
Supervisor Engine 1, PFC, and MSFC or MSFC2 can only do MLS internally with the MSFC or MSFC2 in the same chassis; an external MLS-RP cannot be used in place of the internal MLS-RP. Supervisor Engine 1, PFC, and MSFC or MSFC2 provide Layer 3 switching with MLS. Layer 3 switching with MLS identifies flows on the switch after the first packet has been routed by the MSFC and transfers the process of forwarding the remaining traffic in the flow to the switch, which reduces the load on the MSFC. These sections describe MLS:
Understanding MLS Flows, page 14-iv Understanding the MLS Cache, page 14-v Understanding Flow Masks, page 14-vi Partially and Completely Switched Multicast Flows, page 14-viii MLS Examples, page 14-viii
transport-layer information
A multicast flow is all traffic with the same protocol and transport-layer information from a particular source to the members of a particular destination multicast group.
For example, communication from a client to a server and from the server to the client are separate flows. Telnet traffic transferred from a particular source to a particular destination comprises a separate flow from File Transfer Protocol (FTP) packets between the same source and destination.
Note
The PFC uses the Layer 2 multicast forwarding table to identify the ports to which Layer 2 multicast traffic should be forwarded (if any). The multicast forwarding table entries are populated by whichever multicast constraint feature is enabled on the switch (IGMP snooping or Generic Attribute Registration Protocol [GARP] Multicast Registration Protocol [GMRP]). These entries map the destination multicast MAC address to the outgoing switch ports for a given VLAN.
14-4
78-13315-02
Chapter 14
MLS Cache, page 14-v Unicast Traffic, page 14-v Multicast Traffic, page 14-v MLS Cache Aging, page 14-vi MLS Cache Size, page 14-vi
MLS Cache
The PFC maintains a Layer 3 switching table called the MLS cache for Layer 3-switched flows. The cache also includes entries for traffic statistics that are updated in tandem with the switching of packets. After the PFC creates an MLS cache entry, packets identified as belonging to an existing flow can be Layer 3 switched based on the cached information. The MLS cache maintains flow information for all active flows.
Unicast Traffic
For unicast traffic, the PFC creates an MLS cache entry for the initial routed packet of each unicast flow. Upon receipt of a routed packet that does not match any unicast flow currently in the MLS cache, the PFC creates a new MLS entry.
Multicast Traffic
For multicast traffic, the PFC populates the MLS cache using information learned from the MSFC. Whenever the MSFC receives traffic for a new multicast flow, it updates its multicast routing table and forwards the new information to the PFC. In addition, if an entry in the multicast routing table ages out, the MSFC deletes the entry and forwards the updated information to the PFC. For each multicast flow cache entry, the PFC maintains a list of outgoing interfaces for the destination IP multicast group. The PFC uses this list to identify the VLANs on which traffic to a given multicast flow should be replicated. These MSFC IOS commands affect the multicast MLS cache entries on the switch:
Using the clear ip mroute command to clear the multicast routing table on the MSFC clears all multicast MLS cache entries on the PFC. Using the no ip multicast-routing command to disable IP multicast routing on the MSFC purges all multicast MLS cache entries on the PFC.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-5
Configuring MLS
Flow Mask Modes, page 14-vi Flow Mask Mode and show mls entry Command Output, page 14-vii
destination-ipThe least-specific flow mask. The PFC maintains one MLS entry for each Layer 3 destination address. All flows to a given Layer 3 destination address use this MLS entry. destination-ipxThe only flow mask mode for IPX MLS is destination mode. The PFC maintains one IPX MLS entry for each destination IPX address (network and node). All flows to a given destination IPX address use this IPX MLS entry. source-destination-ipThe PFC maintains one MLS entry for each source and destination IP address pair. All flows between a given source and destination use this MLS entry regardless of the IP protocol ports. source-destination-vlanFor IP MMLS. The PFC maintains one MMLS cache entry for each {source IP, destination group IP, source VLAN}. The multicast source-destination-vlan flow mask differs from the IP unicast MLS source-destination-ip flow mask in that, for IP MMLS, the source VLAN is included as part of the entry. The source VLAN is the multicast reverse path forwarding (RPF) interface for the multicast flow. full flowThe most-specific flow mask. The PFC creates and maintains a separate MLS cache entry for each IP flow. A full flow entry includes the source IP address, destination IP address, protocol, and protocol ports.
14-6
78-13315-02
Chapter 14
4 2
Note
The short keyword exists for some show commands and displays the output by wrapping the text after 80 characters. The default is long (no text wrap). With the source-destination-ip flow mask, the protocol, source port, and destination port fields display the details of the last packet that was Layer 3 switched using the MLS cache entry. This example shows how the show mls entry command output appears in source-destination-ip mode:
Console> (enable) show mls entry ip short Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac --------------- --------------- ----- ------ ------ ----------------ESrc EDst SPort DPort Stat-Pkts Stat-Byte Uptime Age ---- ---- ----- ----- --------- ------------ -------- -------171.69.200.234 171.69.192.41 00-60-70-6c-fc-22 ARPA SNAP 5/8 11/1 3152 347854 09:01:19 09:08:20 171.69.1.133 171.69.192.42 00-60-70-6c-fc-23 SNAP ARPA 5/8 1/1 2345 123456 09:03:32 09:08:12 Total Entries: 2 * indicates TCP flow has ended Console> (enable) Vlan ----
4 2
With the full-flow flow mask, because a separate MLS entry is created for every ip flow, details are shown for each flow. This example shows how the show mls entry command output appears in full flow mode:
Console> (enable) show mls entry ip short Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac --------------- --------------- ----- ------ ------ ----------------ESrc EDst SPort DPort Stat-Pkts Stat-Byte Uptime Age ---- ---- ----- ----- --------- ------------ -------- -------171.69.200.234 171.69.192.41 TCP* 6000 59181 00-60-70-6c-fc-22 ARPA SNAP 5/8 11/1 3152 347854 09:01:19 09:08:20 171.69.1.133 171.69.192.42 UDP 2049 41636 00-60-70-6c-fc-23 SNAP ARPA 5/8 1/1 2345 123456 09:03:32 09:08:12 Total Entries: 2 * indicates TCP flow has ended Console> (enable) Vlan ----
4 2
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-7
Configuring MLS
The MSFC is configured as a member of the IP multicast group (using the ip igmp join-group command) on the RPF interface of the multicast source. The MSFC is the first-hop router to the source in PIM sparse mode (in this case, the MSFC must send PIM-register messages to the rendezvous point). The multicast TTL threshold is configured on an egress interface for the flow. The extended access list deny condition on the RPF interface specifies anything other than the Layer 3 source, Layer 3 destination, or IP protocol (an example is Layer 4 port numbers). The multicast helper is configured on the RPF interface for the flow, and multicast to broadcast translation is required. Multicast tag switching is configured on an egress interface. Network address translation (NAT) is configured on an interface, and source address translation is required for the outgoing interface.
For partially switched flows, all multicast traffic belonging to the flow reaches the MSFC and is software switched for any interface that is not Layer 3 switched. The PFC prevents multicast traffic in flows that are completely Layer 3 switched from reaching the MSFC, reducing the load on the MSFC. The show ip mroute and show mls ip multicast commands identify completely Layer 3-switched flows with the text string RPF-MFD (Multicast Fast Drop [MFD] indicates that from the perspective of the MSFC, the multicast packet is dropped, because it is switched by the PFC). For all completely Layer 3-switched flows, the PFC periodically sends multicast packet and byte count statistics to the MSFC, because the MSFC cannot record multicast statistics for completely switched flows, which it never sees. The MSFC uses the statistics to update the corresponding multicast routing table entries and reset the appropriate expiration timers.
MLS Examples
Figure 1 shows a simple IP MLS network topology. In this example, Host A is on the Sales VLAN (IP subnet 171.59.1.0), Host B is on the Marketing VLAN (IP subnet 171.59.3.0), and Host C is on the Engineering VLAN (IP subnet 171.59.2.0). When Host A initiates an HTTP file transfer to Host C, an MLS entry for this flow is created (this entry is the second item in the MLS cache shown in Figure 1). The PFC stores the MAC addresses of the MSFC and Host C in the MLS entry when the MSFC forwards the first packet from Host A through the switch to Host C. The PFC uses this information to rewrite subsequent packets from Host A to Host C.
14-8
78-13315-02
Chapter 14
Sub
/M et 3
arke
ting
Host B 171.59.3.1
Sub
Host A 171.59.1.2
net
2/E
ngin
eeri
ng MAC = Cc
Figure 2 shows a simple IPX MLS network topology. In this example, Host A is on the Sales VLAN (IPX address 01.Aa), Host B is on the Marketing VLAN (IPX address 03.Bb), and Host C is on the Engineering VLAN (IPX address 02.Cc). When Host A initiates a file transfer to Host B, an IPX MLS entry for this flow is created (this entry is the first item in the table shown in Figure 1). The PFC stores the MAC addresses of the MSFC and Host B in the IPX MLS entry when the MSFC forwards the first packet from Host A through the switch to Host B. The PFC uses this information to rewrite subsequent packets from Host A to Host B. Similarly, a separate IPX MLS entry is created in the MLS cache for the traffic from Host A to Host C, and for the traffic from Host C to Host A. The destination VLAN is stored as part of each IPX MLS entry so that the correct VLAN identifier is used when encapsulating traffic on trunk links.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-9
Configuring MLS
Source IPX Destination Rewrite Src/Dst Address IPX Address MAC Address 01.Aa 01.Aa 02.Cc 03.Bb 02.Cc 01.Aa Dd:Bb Dd:Cc Dd:Aa
Host B
Net
2/E
ngin
eer
02
Data 01.Aa:02.Cc Aa:Dd Data
ing
MAC = Cc
Feature IP MLS enable state IP MLS aging time IP MLS fast aging time IP MLS fast aging-time packet threshold
Default Value Enabled 256 seconds 0 seconds (no fast aging) 0 packets
Feature IP MMLS
14-10
78-13315-02
Chapter 14
Default Value Disabled globally Disabled on all interfaces Unconfiguredno default value Enabled when multicast routing is enabled and IP PIM is enabled on the interface
IP MLS, page 14-xi IP MMLS, page 14-xii IPX MLS, page 14-xiii
IP MLS
These sections describe IP MLS configuration guidelines:
Maximum Transmission Unit Size, page 14-xi Restrictions on Using IP Routing Commands with IP MLS Enabled, page 14-xii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-11
Configuring MLS
Command clear ip route ip routing ip security (all forms of this command) ip tcp header-compression
Behavior Clears all MLS cache entries for all switches performing Layer 3 switching for this MSFC. The no form purges all MLS cache entries and disables IP MLS on this MSFC. Disables IP MLS on the interface.
ip tcp compression-connections Disables IP MLS on the interface. Disables IP MLS on the interface.
IP MMLS
These sections describe IP MMLS configuration guidelines:
IP MMLS Supervisor Engine Guidelines and Restrictions, page 14-xii IP MMLS MSFC Configuration Restrictions, page 14-xiii Unsupported IP MMLS Features, page 14-xiii
Only ARPA rewrites are supported for IP multicast packets. Subnetwork Address Protocol (SNAP) rewrites are not supported. You must enable one of the multicast services (IGMP snooping or GMRP) on the switch in order to use IP MMLS. IP multicast flows are not multilayer switched if there is no entry in the Layer 2 multicast forwarding table (for example, if no Layer 2 multicast services are enabled or the forwarding table is full). Enter the show multicast group command to check for a Layer 2 entry for a particular IP multicast destination. If a Layer 2 entry is cleared, the corresponding Layer 3 flow information is purged. When using two MSFCs that have one or more interfaces in the same VLAN, the switch uses two reserved VLANs (VLANs 1012 and 1013) internally to forward multicast flows properly. The MSFC will not act as an external router for a Catalyst 5000 family switch that has Layer 3 switching hardware.
14-12
78-13315-02
Chapter 14
For IP multicast groups that fall into these ranges (where * is in the range 0255): 224.0.0.* through 239.0.0.* 224.128.0.* through 239.128.0.*
Note
Groups in the 224.0.0.* range are reserved for routing control packets and must be flooded to all forwarding ports of the VLAN. These addresses map to the multicast MAC address range 01-00-5E-00-00-xx, where xx is in the range 00xFF.
For IP PIM auto-RP multicast groups (IP multicast group addresses 224.0.1.39 and 224.0.1.40).
Note
In systems with redundant MSFCs, the IP PIM interface configuration must be the same on both the active and redundant MSFCs.
For flows that are forwarded on the multicast-shared tree (that is, {*,G,*} forwarding) when the interface or group is running IP PIM sparse mode. If the shortest-path tree (SPT) bit for the flow is cleared when running IP PIM sparse mode for the interface or group. For fragmented IP packets and packets with IP options. However, packets in the flow that are not fragmented or that do not specify IP options are multilayer switched. For source traffic received on tunnel interfaces (such as MBONE traffic). For any RPF interface with multicast tag switching enabled.
IPX MLS
These sections describe configuration guidelines that apply when configuring IPX MLS:
IPX MLS Interaction with Other Features, page 14-xiii IPX MLS and Maximum Transmission Unit Size, page 14-xiv
IPX accountingIPX accounting cannot be enabled on an IPX MLS-enabled interface. IPX EIGRPTo support MLS on EIGRP interfaces you must set the Transport Control (TC) maximum to a value greater than the default (16). Enter the ipx maximum-hop tc_value global configuration command on the MSFC, with the tc_value greater than 16.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-13
Configuring MLS
Configuring MLS
These sections describe how to configure MLS:
Configuring Unicast MLS on the MSFC, page 14-xiv Configuring MLS on Supervisor Engine 1, page 14-xvii Configuring IP MMLS, page 14-xxviii
Disabling and Enabling Unicast MLS on an MSFC Interface, page 14-xiv Displaying MLS Information on the MSFC, page 14-xv Using Debug Commands on the MSFC, page 14-xvi Using Debug Commands on the SCP, page 14-xvi
For information on configuring routing on the MSFC, see Chapter 12, Configuring InterVLAN Routing. For information on configuring unicast Layer 3 switching on Supervisor Engine 1, see the Configuring MLS on Supervisor Engine 1 section on page 14-xvii.
Note
The MSFC can be specified as the MLS route processor (MLS-RP) for Catalyst 5000 family switches using MLS. Refer to the Layer 3 Switching Configuration GuideCatalyst 5000 Family, 2926G Series, 2926 Series Switches, for MLS configuration procedures.
14-14
78-13315-02
Chapter 14
Note
Unicast MLS is enabled by default; you only need to enable (or reenable) it if you have previously disabled it. To enable unicast IP or IPX MLS on a specific MSFC interface, perform this task: Task Specify an MSFC interface. Enable IPX MLS on an MSFC interface. Command Router(config)# interface vlan-id Router(config-if)# mls ipx
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-15
Configuring MLS
Command [no] debug l3-mgr events [no] debug l3-mgr packets [no] debug l3-mgr global [no] debug l3-mgr all
Description Displays Layer 3 manager-related events. Displays Layer 3 manager packets. Displays bugtrace of ip global purge events. Turns on all Layer 3 manager debugging messages.
Table 7 describes MLS-related debug commands that you can use to troubleshoot MLS problems when using the MSFC as an external router for a Catalyst 5000 family switch.
Table 14-7 MLS Debug CommandsExternal Router Function
Command [no] debug mls ip [no] debug mls ipx [no] debug mls rp [no] debug mls locator [no] debug mls all
Description Turns on IP-related events for MLS, including route purging and changes of access lists and flow masks. Turns on IPX-related events for MLS, including route purging and changes of access lists and flow masks. Turns on route processor-related events. Identifies which switch is switching a particular flow by using MLS explorer packets. Turns on all MLS debugging events.
Command [no] debug scp async [no] debug scp data [no] debug scp errors [no] debug scp packets [no] debug scp timeouts [no] debug scp all
Description Displays trace for asynchronous data in and out of the SCP system. Displays packet data trace. Displays errors and warnings in the SCP. Displays packet data in and out of the SCP system. Reports timeouts. Turns on all SCP debugging messages.
14-16
78-13315-02
Chapter 14
You want to change the MLS aging time You want to enable NDE
Specifying MLS Aging-Time Value, page 14-xvii Specifying IP MLS Fast Aging Time and Packet Threshold Values, page 14-xviii Setting the Minimum IP MLS Flow Mask, page 14-xix Displaying CAM Entries on the Supervisor Engine, page 14-xx Displaying MLS Information, page 14-xxi Displaying IP MLS Cache Entries, page 14-xxii Clearing MLS Cache Entries, page 14-xxvi Clearing IPX MLS Cache Entries, page 14-xxvi Displaying IP MLS Statistics, page 14-xxvi Clearing MLS Statistics, page 14-xxviii Displaying MLS Debug Information, page 14-xxviii
For information on configuring VLANs on the switch, see Chapter 11, Configuring VLANs. For information on configuring MLS on the MSFC, see the Configuring Unicast MLS on the MSFC section on page 14-xiv.
Note
When you disable IP or IPX MLS on the MSFC, IP or IPX MLS is automatically disabled on Supervisor Engine 1. All existing protocol-specific MLS cache entries are purged. To disable MLS on the MSFC, see the Disabling and Enabling Unicast MLS on an MSFC Interface section on page 14-xiv.
Note
If NDE is enabled and you disable MLS, you will lose the statistics for existing cache entriesthey are not exported.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-17
Configuring MLS
Note
We recommend that you keep the size of the MLS cache below 32K entries. If the number of MLS entries exceeds 32K, some flows are sent to the MSFC. To help keep the size of the MLS cache down, for IP, enable IP MLS fast aging, as described in the Specifying IP MLS Fast Aging Time and Packet Threshold Values section on page 14-xviii. To specify the MLS aging time for both IP and IPX, perform this task in privileged mode: Task Command
Specify the MLS aging time for MLS cache entries. set mls agingtime [agingtime] This example shows how to specify the MLS aging time:
Console> (enable) set mls agingtime 512 Multilayer switching agingtime IP and IPX set to 512 Console> (enable)
To specify the IP MLS aging time, perform this task in privileged mode: Task Specify the IP MLS aging time for an MLS cache entry. Command set mls agingtime ip [agingtime]
To specify the IPX MLS aging time, perform this task in privileged mode: Task Specify the IPX MLS aging time for an MLS cache entry. Command set mls agingtime ipx [agingtime]
This example shows how to specify the IPX MLS aging time:
Console> (enable) set mls agingtime ipx 512 Multilayer switching aging time IPX set to 512 Console> (enable)
IPX MLS does not use fast aging. IPX MLS only operates in destination-source and destination flow modes; therefore, the number of IPX MLS entries in the MLS table is low relative to IP MLS entries in full-flow mode.
14-18
78-13315-02
Chapter 14
To keep the MLS cache size below 32K entries, enable IP MLS fast aging time. The IP MLS fast aging time applies to MLS entries that have no more than pkt_threshold packets switched within fastagingtime seconds after they are created. A typical cache entry that is removed is the entry for flows to and from a Domain Name Server (DNS) or TFTP server; the entry might never be used again after it is created. Detecting and aging out these entries saves space in the MLS cache for other data traffic. The default fastagingtime value is 0 (no fast aging). You can configure the fastagingtime value to 32, 64, 96, or 128 seconds. Any fastagingtime value that is not configured exactly as the indicated values is adjusted to the closest one. You can configure the pkt_threshold value to 0, 1, 3, 7, 15, 31, or 63 packets. If you need to enable IP MLS fast aging time, initially set the value to 128 seconds. If the size of the MLS cache continues to grow over 32K entries, decrease the setting until the cache size stays below 32K. If the cache continues to grow over 32K entries, decrease the normal IP MLS aging time. Typical values for fastagingtime and pkt_threshold are 32 seconds and 0 packets (no packets switched within 32 seconds after the entry is created). To specify the IP MLS fast aging time and packet threshold, perform this task in privileged mode: Task Command
Specify the IP MLS fast aging time and set mls agingtime fast [fastagingtime] [pkt_threshold] packet threshold for an MLS cache entry. This example shows how to set the IP MLS fast aging time to 32 seconds with a packet threshold of 0 packets:
Console> (enable) set mls agingtime fast 32 0 Multilayer switching fast aging time set to 32 seconds for entries with no more than 0 packets switched. Console> (enable)
Caution
The set mls flow destination-source command purges all existing shortcuts in the MLS cache and affects the number of active shortcuts on the PFC. Exercise care when using this command. To set the minimum IP MLS flow mask, perform this task in privileged mode: Task Set the minimum IP MLS flow mask. Command set mls flow {destination | destination-source | full}
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-19
Configuring MLS
This example shows how to set the minimum IP MLS flow mask to destination-source-ip:
Console> (enable) set mls flow destination-source Configured IP flow mask is set to destination-source flow. Console> (enable)
This example shows how to display the CAM entries for a specified VLAN:
Console> show cam msfc 192 VLAN Destination MAC ---- -----------------192 00-00-0c-07-ac-c0R 192 00-e0-f9-d1-2c-00R Console> Destination-Ports or VCs -----------------------------7/1 7/1 Xtag ---2 2 Status -----H H
14-20
78-13315-02
Chapter 14
1. The mod keyword specifies the module number of the MSFC; either 15 (if the MSFC is installed on Supervisor Engine 1 in slot 1) or 16 (if the MSFC is installed on Supervisor Engine 1 in slot 2).
This example shows how to display IP MLS information and MSFC-specific information:
Console> (enable) show mls ip Total Active MLS entries = 0 Total packets switched = 0 IP Multilayer switching enabled IP Multilayer switching aging time = 256 seconds IP Multilayer switching fast aging time = 0 seconds, packet threshold = 0 IP Flow mask: Full Flow Configured flow mask is Destination flow Active IP MLS entries = 0 Netflow Data Export version: 8 Netflow Data Export disabled Netflow Data Export port/host is not configured Total packets exported = 0 MSFC ID Module XTAG MAC Vlans --------------- ------ ---- ----------------- -------------------52.0.03 15 1 01-10-29-8a-0c-00 1,10,123,434,121 222,666,959 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-21
Configuring MLS
22.1.0.58
16
00-10-07-38-22-22 2,3,4,5,6, 7,8,9,10,11, 12,13,14,15,16, 17,18,19,20 00-d0-d3-33-17-8c 25 00-10-07-38-22-22 26,66,77,88,99, 111 00-d0-d3-33-17-8c 112
Console> (enable)
Displaying All MLS Entries, page 14-xxii Displaying MLS Entries for a Specific IP Destination Address, page 14-xxiii Displaying IPX MLS Entries for a Specific IPX Destination Address, page 14-xxiii Displaying Entries for a Specific IP Source Address, page 14-xxiv Displaying Entries for a Specific IP Flow, page 14-xxiv Displaying IPX MLS Entries for a Specific MSFC, page 14-xxv
Note
For a description of how the flow mask mode affects the screen displays when showing MLS entries, see the Flow Mask Mode and show mls entry Command Output section on page 14-vii.
This example shows how to display all MLS entries (IP and IPX):
Console> (enable) show mls entry short Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac Vlan --------------- --------------- ----- ------ ------ ----------------- ---ESrc EDst SPort DPort Stat-Pkts Stat-Bytes Created LastUsed ---- ---- ----- ----- ---------- ------------ -------- -------171.69.200.234 171.69.192.41 TCP* 6000 59181 00-60-70-6c-fc-22 4 ARPA SNAP 5/8 11/1 3152 347854 09:01:19 09:08:20 171.69.1.133 171.69.192.42 UDP 2049 41636 00-60-70-6c-fc-23 2 SNAP ARPA 5/8 1/1 2345 1234567 09:03:32 09:08:12 171.69.1.133 171.69.192.42 UDP 2049 41636 00-60-70-6c-fc-23 2 SNAP ARPA 5/8 1/1 2345 1234567 09:03:32 09:08:12 171.69.1.133 171.69.192.42 UDP 2049 41636 00-60-70-6c-fc-23 2 SNAP ARPA 5/8 1/1 2345 1234567 09:03:32 09:08:12 171.69.1.133 171.69.192.42 UDP 2049 41636 00-60-70-6c-fc-23 2 SNAP ARPA 5/8 1/1 2345 1234567 09:03:32 09:08:12 Total IP entries: 5 * indicates TCP flow has ended.
14-22
78-13315-02
Chapter 14
Destination-IPX Stat-Pkts Stat-Bytes --------------------------------- ----------BABE.0000.0000.0001 30230 1510775 201.00A0.2451.7423 30256 31795084 501.0000.3100.0501 12121 323232 401.0000.0000.0401 4633 38676 Total IPX entries: 4 Console>
Source-IPX-net Destination-Mac
Vlan Port
-------------- ----------------- ---- ----00-a0-c9-0a-89-1d 211 00-a0-24-51-74-23 201 31-00-05-01-00-00 501 00-00-04-01-00-00 401 13/37 14/33 9/37 3/1
This example shows how to display MLS entries for a specific destination IP address:
Console> (enable) show mls entry ip destination 172.20.22.14/24 Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac Vlan EDst ESrc DPort SPort Stat-Pkts Stat-Bytes Uptime Age --------------- --------------- ----- ------ ------ ----------------- ------- ---- ------ ------ ---------- ----------- -------- -------MSFC 172.20.25.1 (Module 15): 172.20.22.14 00-60-70-6c-fc-22 4 ARPA ARPA 5/39 5/40 115 5290 00:12:20 00:00:04 MSFC 172.20.27.1 (Module 16): Total entries:1 Console> (enable)
This example shows how to display IPX MLS entries for a specific destination IPX address:
Console> (enable) show mls entry ipx destination 3E.0010.298a.0c00 Destination IPX Source IPX net Destination Mac Vlan Port ------------------------- -------------- ----------------- ---- ----MSFC 22.1.0.56 (Module 15): 3E.0010.298a.0c00 13 00-00-00-00-00-09 26 4/7 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-23
Configuring MLS
This example shows how to display MLS entries for a specific source IP address:
Console> (enable) show mls entry ip source 10.0.2.15 Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac Vlan EDst ESrc DPort SPort Stat-Pkts Stat-Bytes Uptime Age --------------- --------------- ----- ------ ------ ----------------- ------- ---- ------ ------ ---------- ----------- -------- -------MSFC 172.20.25.1 (Module 15): 172.20.22.14 10.0.2.15 TCP Telnet 37819 00-e0-4f-15-49-ff 51 ARPA ARPA 5/39 5/40 115 5290 00:12:20 00:00:04 MSFC 172.20.27.1 (Module 16): Total entries:1 Console> (enable)
Display entries for a specific IP flow (when show mls entry ip flow [protocol src_port dst_port] the flow mask mode is full flow). This example shows how to display MLS entries for a specific IP flow:
Console> (enable) show mls entry ip flow tcp 23 37819 Destination IP Source IP Port DstPrt SrcPrt Destination Mac Vlan Port --------------- --------------- ---- ------ ------ ----------------- ---- ----MSFC 51.0.0.3: 10.0.2.15 51.0.0.2 TCP 37819 Telnet 08-00-20-7a-07-75 10 3/1 Console> (enable)
14-24
78-13315-02
Chapter 14
1. The mod keyword specifies the module number of the MSFC; either 15 (if the MSFC is installed on Supervisor Engine 1 in slot 1) or 16 (if the MSFC is installed on Supervisor Engine 1 in slot 2).
This example shows how to display IPX MLS entries for a specific MSFC:
Console> (enable) show mls entry ipx 15 Destination-IPX Destination-Mac Stat-Bytes Uptime Age ------------------------- --------------------------- -------- -------MSFC 22.1.0.56 (Module 15): 11.0000.0000.2B10 00-00-00-00-2b-10 361974 00:15:52 00:00:00 11.0000.0000.A810 00-00-00-00-a8-10 180964 00:15:52 00:00:00 11.0000.0000.3210 00-00-00-00-32-10 362066 00:15:52 00:00:00 11.0000.0000.B110 00-00-00-00-b1-10 181010 00:15:52 00:00:00 11.0000.0000.1910 00-00-00-00-19-10 362158 00:15:52 00:00:00 11.0000.0000.9A10 00-00-00-00-9a-10 181056 00:15:52 00:00:00 11.0000.0000.0010 00-00-00-00-00-10 362250 00:15:52 00:00:00 11.0000.0000.8310 00-00-00-00-83-10 181102 00:15:52 00:00:00 10.0000.0000.0109 00-00-00-00-01-09 4432744 00:15:52 00:00:00 11.0000.0000.4F10 00-00-00-00-4f-10 362342 00:15:53 00:00:00 11.0000.0000.CC10 00-00-00-00-cc-10 181148 00:15:53 00:00:00 11.0000.0000.5610 00-00-00-00-56-10 362434 00:15:53 00:00:00 11.0000.0000.D510 00-00-00-00-d5-10 181194 00:15:53 00:00:00 11.0000.0000.7D10 00-00-00-00-7d-10 181240 00:15:53 00:00:00 11.0000.0000.FE10 00-00-00-00-fe-10 181286 00:15:53 00:00:00 11.0000.0000.6410 00-00-00-00-64-10 362618 00:15:53 00:00:00 11.0000.0000.E710 00-00-00-00-e7-10 181286 00:15:53 00:00:00 11.0000.0000.6010 00-00-00-00-60-10 362710 00:15:53 00:00:00 11.0000.0000.E310 00-00-00-00-e3-10 181332 00:15:53 00:00:00 11.0000.0000.7910 00-00-00-00-79-10 181378 00:15:54 00:00:00 Console> (enable) Vlan EDst ESrc Port Stat-Pkts
11 11 11 11 11 11 11 11 10 11 11 11 11 11 11 11 11 11 11 11
ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA ARPA
3/11 3/10 -
7869 3934 7871 3935 7873 3936 7875 3937 96364 7877 3938 7879 3939 3940 3941 7883 3941 7885 3942 3943
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-25
Configuring MLS
Protocol family (protocol)Specify tcp, udp, icmp, or a decimal number for other protocol families. A value of zero (0) for protocol is treated as a wildcard, and entries for all protocols are cleared (unspecified options are treated as wildcards). TCP or UDP source and destination port numbers (src_port and dst_port)If the protocol you specify is TCP or UDP, specify the source and destination TCP or UDP port numbers. A value of zero (0) for src_port or dst_port is treated as a wildcard, and entries for all source or destination ports are cleared (unspecified options are treated as wildcards). For other protocols, set the src_port and dst_port to 0, or no entries will clear.
To clear an MLS entry, perform this task in privileged mode: Task Clear an MLS entry. Command clear mls entry ip [destination ip_addr_spec] [source ip_addr_spec] [flow protocol src_port dst_port] [all]
This example shows how to clear MLS entries with destination IP address 172.20.26.22:
Console> (enable) clear mls entry ip destination 172.20.26.22 MLS IP entry cleared Console> (enable)
This example shows how to clear MLS entries with destination IP address 172.20.22.113, TCP source port 1652, and TCP destination port 23:
Console> (enable) clear mls entry destination 172.20.26.22 source 172.20.22.113 flow tcp 1652 23 MLS IP entry cleared Console> (enable)
Displaying IP MLS Statistics by Protocol, page 14-xxvii Displaying Statistics for MLS Cache Entries, page 14-xxvii
14-26
78-13315-02
Chapter 14
Display IP MLS statistics by protocol (only show mls statistics protocol if IP MLS is in full flow mode). This example shows how to display IP MLS statistics by protocol:
Console> (enable) show mls statistics Protocol TotalFlows TotalPackets ---------------- -------------Telnet 900 630 FTP 688 2190 WWW 389 42679 SMTP 802 4966 X 142 2487 DNS 1580 52 Others 82 1 Total 6583 53005 Console> (enable) protocol Total Bytes -----------4298 3105 623686 92873 36870 1046 73 801951
This example shows how to display statistics for a particular MLS cache entry:
Console> show mls statistics entry ip destination 172.20.22.14 Last Used Destination IP Source IP Prot DstPrt SrcPrt Stat-Pkts Stat-Bytes --------------- --------------- ---- ------ ------ --------- ----------MSFC 127.0.0.12: 172.20.22.14 172.20.25.10 6 50648 80 3152 347854 Console>
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-27
Configuring MLS
Total packets switched (IP and IPX) Total packets exported (for NDE)
To clear IP MLS statistics, perform this task in privileged mode: Task Clear IP MLS statistics. Command clear mls statistics
Note
The show tech-support command displays supervisor engine system information. Use application-specific commands to get more information about particular applications.
Configuring IP MMLS
These sections describe how to configure IP MMLS:
Configuring IP MMLS on the MSFC, page 14-xxviii Displaying Global IP MMLS Information on the Supervisor Engine, page 14-xxxiv
Enabling IP Multicast Routing Globally, page 14-xxix Enabling IP PIM on MSFC Interfaces, page 14-xxix Configuring the IP MMLS Global Threshold, page 14-xxx Enabling IP MMLS on MSFC Interfaces, page 14-xxx
14-28
78-13315-02
Chapter 14
Displaying IP MMLS Interface Information, page 14-xxxi Displaying the IP Multicast Routing Table, page 14-xxxi Monitoring IP MMLS on the MSFC, page 14-xxxii Using Debug Commands on the IP MMLS MSFC, page 14-xxxiii Using Debug Commands on the SCP, page 14-xxxiv
Note
For information on configuring routing on the MSFC, see Chapter 12, Configuring InterVLAN Routing.
Note
You can specify the MSFC as the MLS route processor (MLS-RP) for Catalyst 5000 family switches using MLS. Refer to the Layer 3 Switching Configuration GuideCatalyst 5000 Family, 2926G Series, 2926 Series Switches for Catalyst 5000 family switch MLS configuration procedures.
Note
This section describes how to enable IP multicast routing on the MSFC. For more detailed IP multicast configuration information, refer to the IP Multicast section of the Cisco IOS IP and IP Routing Configuration Guide at http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/ip_c/ipcprt3/index.htm
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-29
Configuring MLS
This example shows how to enable IP PIM on an interface using the default mode (sparse-dense-mode):
Router(config-if)# ip pim Router(config-if)#
Note
This command does not affect flows that are already being routed. To apply the threshold to existing routes, clear the route and let it reestablish. To configure the IP MMLS threshold, perform this task: Task Configure the IP MMLS threshold. Command Router(config)# [no] mls ip multicast threshold ppsec
This example shows how to configure the IP MMLS threshold to 10 packets per second:
Router(config)# mls ip multicast threshold 10 Router(config)#
Note
You must enable IP PIM on all participating MSFC interfaces before IP MMLS will function. For information on configuring IP PIM on MSFC interfaces, see the Enabling IP PIM on MSFC Interfaces section on page 14-xxix. To enable IP MMLS on an MSFC interface, perform this task: Task Enable IP MMLS on an MSFC interface. Command Router(config-if)# [no] mls ip multicast
14-30
78-13315-02
Chapter 14
This example shows how to display the IP multicast routing table for 239.252.1.1:
Router# show ip mroute 239.252.1.1 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 M - MSDP created entry, X - Proxy Join Timer Running A - Advertised via MSDP Outgoing interface flags:H - Hardware switched Timers:Uptime/Expires Interface state:Interface, Next-Hop or VCD, State/Mode (*, 239.252.1.1), 04:04:59/00:02:59, RP 80.0.0.2, flags:SJ Incoming interface:Vlan800, RPF nbr 80.0.0.2 Outgoing interface list: Vlan10, Forward/Dense, 01:29:57/00:00:00, H (22.0.0.10, 239.252.1.1), 00:00:19/00:02:41, flags:JT Incoming interface:Vlan800, RPF nbr 80.0.0.2, RPF-MFD Outgoing interface list: Vlan10, Forward/Dense, 00:00:19/00:00:00, H
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-31
Configuring MLS
14-32
78-13315-02
Chapter 14
This example shows how to display information on a specific IP MMLS entry on the MSFC:
Router# show mls ip multicast 224.1.1.1 Multicast hardware switched flows: (1.1.13.1, 224.1.1.1) Incoming interface: Vlan13, Packets switched: 61590 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan13 (1.1.9.3, 224.1.1.1) Incoming interface: Vlan9, Packets switched: 0 Hardware switched outgoing interfaces: Vlan20 RFD-MFD installed: Vlan9 (1.1.12.1, 224.1.1.1) Incoming interface: Vlan12, Packets switched: 62010 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan12 (1.1.12.3, 224.1.1.1) Incoming interface: Vlan12, Packets switched: 61980 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan12 (1.1.11.1, 224.1.1.1) Incoming interface: Vlan11, Packets switched: 62430 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan11 (1.1.11.3, 224.1.1.1) Incoming interface: Vlan11, Packets switched: 62430 Hardware switched outgoing interfaces: Vlan20 Vlan9 RFD-MFD installed: Vlan11 Total hardware switched installed: 6 Router#
This example shows how to display a summary of IP MMLS information on the MSFC:
Router# show mls ip multicast summary 7 MMLS entries using 560 bytes of memory Number of partial hardware-switched flows:2 Number of complete hardware-switched flows:5 Router#
Command [no] debug mls ip multicast group group_id group_mask [no] debug mls ip multicast events [no] debug mls ip multicast errors [no] debug mls ip multicast messages [no] debug mls ip multicast all [no] debug mdss error [no] debug mdss events [no] debug mdss all
1. MDSS = Multicast Distributed Switching Services
Description Configures filtering that applies to all other multicast debugging commands. Displays IP MMLS events. Turns on debug messages for multicast MLS-related errors. Displays IP MMLS messages from/to the hardware switching engine. Turns on all IP MMLS messages. Turns on MDSS 1 error messages. Turns on MDSS-related events. Turns on all MDSS messages.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-33
Configuring MLS
Command [no] debug scp async [no] debug scp data [no] debug scp errors [no] debug scp packets [no] debug scp timeouts [no] debug scp all
Description Displays trace for asynchronous data in and out of the SCP system. Shows packet data trace. Displays errors and warnings in the SCP. Displays packet data in and out of the SCP system. Reports timeouts. Turns on all SCP debugging messages.
Displaying IP MMLS Configuration Information, page 14-xxxiv Displaying IP MMLS Statistics, page 14-xxxv Clearing IP MMLS Statistics, page 14-xxxvi Displaying IP MMLS Entries, page 14-xxxvi
Note
Note
To configure IP MMLS on the MSFC, see the Configuring IP MMLS on the MSFC section on page 14-xxviii.
14-34
78-13315-02
Chapter 14
This example shows how to display IP MMLS statistics for multicast MSFCs:
Console (enable) show mls multicast statistics Router IP Router Name Router MAC ------------------------------------------------------1.1.9.254 ? 00-50-0f-06-3c-a0 Transmit: Delete Notifications: Acknowledgements: Flow Statistics:
23 92 56
Receive: Open Connection Requests: 1 Keep Alive Messages: 72 Shortcut Messages: 19 Shortcut Install TLV: 8 Selective Delete TLV: 4 Group Delete TLV: 0 Update TLV: 3 Input VLAN Delete TLV: 0 Output VLAN Delete TLV: 0 Global Delete TLV: 0 MFD Install TLV: 7 MFD Delete TLV: 0 Router IP Router Name Router MAC ------------------------------------------------------1.1.5.252 ? 00-10-29-8d-88-01 Transmit: Delete Notifications: Acknowledgements: Flow Statistics:
22 75 22
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-35
Configuring MLS
Receive: Open Connection Requests: Keep Alive Messages: Shortcut Messages: Shortcut Install TLV: Selective Delete TLV: Group Delete TLV: Update TLV: Input VLAN Delete TLV: Output VLAN Delete TLV: Global Delete TLV: MFD Install TLV: MFD Delete TLV: Console (enable)
1 68 6 4 2 0 0 0 0 0 4 0
14-36
78-13315-02
Chapter 14
1.1.9.254 224.1.1.1 1.1.5.252 224.1.1.1 1.1.9.254 224.1.1.1 Total Entries: 10 Console> (enable)
13 20 11
This example shows how to display IP MMLS entries for a specific MSFC:
Console> (enable) show mls multicast entry 15 Router IP Dest IP Source IP Pkts Bytes InVlan OutVlans --------------- --------------- --------------- ---------- ----------- ------- -------1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 1.1.5.252 224.1.1.1 Total Entries: 5 Console> (enable) 1.1.11.1 1.1.12.3 1.1.11.3 1.1.13.1 1.1.12.1 15870 15759 15810 15840 15840 2761380 2742066 2750940 2756160 2756160 20 20 20 20 20
This example shows how to display IP MMLS entries for a specific multicast group address:
Console> (enable) show mls Router IP Dest IP -------------- ----------171.69.2.1 226.0.1.3 171.69.2.1 226.0.1.3 Total Entries: 2 Console> (enable) multicast entry group 226.0.1.3 short Source IP InVlan Pkts Bytes OutVlans ------------ ------ ------ --------- --------172.2.3.8 20 171 23512 10,201,22,45 172.3.4.9 12 25 3120 8,20
This example shows how to display IP MMLS entries for a specific MSFC and a specific multicast source address:
Console> (enable) show mls multicast entry 15 1.1.5.252 source 1.1.11.1 short Router IP Dest IP Source IP Pkts Bytes InVlan OutVlans --------------- --------------- --------------- ---------- ------------------------- ---------172.20.49.159 224.1.1.6 1.1.40.4 368 57776 40 23,25 172.20.49.159 224.1.1.71 1.1.22.2 99 65142 22 30,37 172.20.49.159 224.1.1.8 1.1.22.2 396 235620 22 13,19 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
14-37
Configuring MLS
14-38
78-13315-02
C H A P T E R
15
Configuring NDE
This chapter describes how to configure NetFlow Data Export (NDE) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How NDE Works, page 15-i Default NDE Configuration, page 15-iii Configuring NDE, page 15-iii
Overview of NDE and Integrated Layer 3 Switching Management, page 15-i Traffic Statistics Data Collection, page 15-ii Using NDE Filters, page 15-iii
Note
NDE is not supported for IP multicast or Internetwork Packet Exchange (IPX) traffic.
Note
NDE version 7 and NDE version 8 are not supported for the MSFC.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
15-1
Configuring NDE
Note
For information on configuring CEF for PFC2, see Chapter 13, Configuring CEF for PFC2 and PFC3. For information on configuring MLS, see Chapter 14, Configuring MLS. Integrated Layer 3-switching management includes products, management utilities, and partner applications designed to gather flow statistics, export the statistics, collect and perform data reduction on the exported statistics, and forward them to applications for traffic monitoring, planning, and accounting. Flow collectors, such as the Cisco SwitchProbe and NetFlow FlowCollector, gather and classify flows. This flow information is then aggregated and fed to applications such as TrafficDirector, NetSys, or NetFlow Analyzer.
Network planning
Routers Accounting/Billing
Switches
Flow profiling
RMON Probe Flow switching and data export Flow collection Flow consolidation
15-2
78-13315-02
Chapter 15
Feature NDE NDE data collector address and UDP port NDE filters
Configuring NDE
These sections describe how to configure NDE:
Usage Guidelines, page 15-iv Specifying an NDE Collector, page 15-iv Specifying an NDE Destination Address on the MSFC, page 15-v Specifying an NDE Source Address on the MSFC, page 15-v Enabling NDE, page 15-vi Specifying a Destination Host Filter, page 15-vi Specifying a Destination and Source Subnet Filter, page 15-vi Specifying a Destination TCP/UDP Port Filter, page 15-vii Specifying a Source Host and Destination TCP/UDP Port Filter, page 15-vii Specifying a Protocol Filter, page 15-viii Specifying Protocols for Statistics Collection, page 15-viii Removing Protocols for Statistics Collection, page 15-viii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
15-3
Configuring NDE
Clearing the NDE Flow Filter, page 15-ix Disabling NDE, page 15-ix Removing the NDE IP Address, page 15-ix Displaying the NDE Configuration, page 15-x
Usage Guidelines
If too many entries are added to the NetFlow table, follow these guidelines:
Reduce the MLS aging time. Set the aging time high enough to keep the number of entries within the 32k-flow range of the PFC. For information on how to change the MLS aging time, see the Specifying MLS Aging-Time Value section on page 14-17 in Chapter 14, Configuring MLS. If there are protocols with fewer packets per flow running, reduce the MLS fast aging time. For information on how to change the MLS fast aging time, see the Specifying IP MLS Long-Duration Aging Time, Fast Aging Time, and Packet Threshold Values section on page 14-18 in Chapter 14, Configuring MLS. Use the correct flow mask. Use the flow mask required to extract the kind of information you want. A full flow mask gives more information but as the number of flows increase, the load on the Layer 3 aging also increases. Try to use a flow mask with the minimum granularity required to get the data you need. With a full flow mask, you might need to decrease the MLS aging time because a full flow mask increases the number of flows per second. For information on setting the flow mask, see the Setting the Minimum IP MLS Flow Mask section on page 14-19 in Chapter 14, Configuring MLS. Exclude entries with fewer packets per flow. Some query protocols, like Domain Name System (DNS), generate fewer packets per flow and can be excluded from the NetFlow table with the set mls exclude protocol command. You can specify up to four protocol filters, but packets from filtered protocols will go to the MSFC. Keep specific flows from being added to the Netflow table with the set mls nde flow exclude command.
Note
If you are using the NetFlow FlowCollector application for data collection, verify that the UDP port number you specify is the same port number shown in the FlowCollectors nfconfig.file. This file is located at /opt/csconfc/config/nfconfig.file in the FlowCollector application. To specify an NDE collector, perform this task in privileged mode: Task Specify an NDE collector and UDP port for data export of hardware-switched packets. Command set mls nde {collector_ip | collector_name} {udp_port_number}
15-4
78-13315-02
Chapter 15
This example shows how to specify the NDE collector from the MSFC:
Router(config)# ip flow-export destination Stargate 9996 Router(config)#
Note
The ip flow-export source vlan command is optional. If you do not specify an NDE source address on the MSFC, the MSFC and PFC automatically use the IP address of one of the MSFC VLAN interfaces. To specify the NDE source address for Layer 3 traffic that is being switched by the MSFC, peform this task in privileged mode: Task Specify an NDE source address for data export of software-switched packets. Command ip flow-export source vlan {vlan_interface_number}
This example shows how to specify the NDE source address on the MSFC:
Router(config)# ip flow-export source vlan 10 Router(config)#
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
15-5
Configuring NDE
Enabling NDE
To enable NDE, perform this task in privileged mode: Task Enable NDE on the switch. Command set mls nde enable
If you attempt to enable NDE without first specifying a collector, you see this display:
Console> (enable) set mls nde enable Please set host name and UDP port number with set mls nde <collector_ip> <udp_port_number>. Console> (enable)
This example shows how to specify a destination host filter so that only expired flows to host 171.69.194.140 are exported:
Console> (enable) set mls nde flow destination 171.69.194.140 Netflow Data Export successfully set Destination filter is 171.69.194.140/255.255.255.255 Filter type: include Console> (enable)
15-6
78-13315-02
Chapter 15
This example shows how to specify a destination and source subnet filter so that only expired flows to subnet 171.69.194.0 from subnet 171.69.173.0 are exported (assuming the flow mask is set to source-destination-ip):
Console> (enable) set mls nde flow destination 171.69.194.140/24 source 171.69.173.5/24 Netflow Data Export successfully set Source filter is 171.69.173.0/24 Destination filter is 171.69.194.0/24 Filter type: include Console> (enable)
This example shows how to specify a destination TCP/UDP port filter so that only expired flows to destination port 23 are exported (assuming the flow mask is set to ip-flow):
Console> (enable) set mls nde flow dst_port 23 Netflow Data Export successfully set Destination port filter is 23 Filter type: include Console> (enable)
This example shows how to specify a source host and destination TCP/UDP port filter so that only expired flows from host 171.69.194.140 to destination port 23 are exported (assuming the flow mask is set to ip-flow):
Console> (enable) set mls nde flow source 171.69.194.140 dst_port 23 Netflow Data Export successfully set Source filter is 171.69.194.140/255.255.255.255 Destination port filter is 23 Filter type: include Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
15-7
Configuring NDE
This example shows how to specify a protocol filter so that only expired flows from protocol 17 are exported:
Console> (enable) set mls nde flow protocol 17 Netflow Data Export filter successfully set. Protocol filter is 17 Filter type: include Console> (enable)
15-8
78-13315-02
Chapter 15
This example shows how to clear the NDE flow filter so that all flows are exported:
Console> (enable) clear mls nde flow Netflow data export filter cleared. Console> (enable)
Disabling NDE
Note
With Supervisor Engine 1 and a PFC, if NDE is enabled and you disable MLS, you lose the statistics for existing cache entriesthey are not exported. To disable NDE on the switch, perform this task in privileged mode: Task Disable NDE on the switch. Command set mls nde disable
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
15-9
Configuring NDE
This example shows how to remove the NDE IP addresses from the MSFC:
Router(config)# no mls nde-address 170.170.2.1 Router(config)#
This example shows how to display the NDE configuration on the switch:
Console> (enable) show mls nde Netflow Data Export enabled Netflow Data Export configured for port 1098 on host 172.20.15.1 Source filter is 171.69.194.140/255.255.255.0 Destination port filter is 23 Total packets exported = 26784 Console> (enable)
15-10
78-13315-02
C H A P T E R
16
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How ACLs Work, page 16-ii Hardware Requirements, page 16-ii Supported ACLs, page 16-ii Applying Cisco IOS ACLs and VACLs on VLANs, page 16-viii Using Cisco IOS ACLs in your Network, page 16-x Using VACLs with Cisco IOS ACLs, page 16-xvi Using VACLs in your Network, page 16-xxiii Unsupported Features, page 16-xxviii Configuring VACLs, page 16-xxix Configuring and Storing VACLs and QoS ACLs in Flash Memory, page 16-xliii Configuring Policy-Based Forwarding, page 16-xlviii
Note
Except where specifically differentiated, the information and procedures in this chapter apply to both Supervisor Engine 2 with Layer 3 Switching Engine II (Policy Feature Card 2 or PFC2) and Supervisor Engine 1 with Layer 3 Switching Engine II (Policy Feature Card or PFC).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-1
Switching [MLS]). The switch first bridges the packet, the packet is then routed internally without going to the router, and then the packet is bridged again to send it to its destination. During this process, the switch can access control all packets it switches, including packets bridged within a VLAN. Cisco IOS ACLs provide access control for routed traffic between VLANs, and VLAN ACLs (VACLs) provide access control for all packets. Standard and extended Cisco IOS ACLs are used to classify packets. Classified packets can be subject to a number of features such as access control (security), encryption, policy-based routing, and so on. Standard and extended Cisco IOS ACLs are only configured on router interfaces and applied on routed packets. VACLs can provide access control based on Layer 3 addresses for IP and IPX protocols. Unsupported protocols are access controlled through MAC addresses. A VACL is applied to all packets (bridged and routed) and can be configured on any VLAN interface. Once a VACL is configured on a VLAN, all packets (routed or bridged) entering the VLAN are checked against the VACL. Packets can either enter the VLAN through a switch port or through a router port after being routed.
Hardware Requirements
The hardware that is required to configure ACLs on Catalyst 6000 family switches is as follows:
Note
The QoS feature set supported on your switch is determined by which switching engine daughter card is installed on the supervisor engine. See Chapter 41, Configuring QoS for more information.
Supported ACLs
These sections describe the ACLs supported by the Catalyst 6000 family switches:
QoS ACLs, page 16-iii Cisco IOS ACLs, page 16-iii VACLs, page 16-iii
QoS ACLs
You can configure QoS ACLs on the switch; see Chapter 41, Configuring QoS.
16-2
78-13315-02
Chapter 16
Inbound access control ACLs (standard, extended, and/or reflexive) Encryption ACLs (not supported on the MSFC) Policy routing ACLs Network Address Translation (NAT) for outside-to-inside translation
After packets are routed and before they are forwarded out to the next hop, Cisco IOS examines all ACLs that are associated with the outbound features that are configured on the egress interface for the following:
Outbound access control ACLs (standard, extended, and/or reflexive) Encryption ACLs (not supported on the MSFC) NAT ACLs (for inside-to-outside translation) WCCP ACL TCP intercept ACL
VACLs
The following sections describe VACLs:
VACL Overview, page 16-iv ACEs Supported in VACLs, page 16-iv Handling Fragmented and Unfragmented Traffic, page 16-v
VACL Overview
VACLs can access control all traffic. You can configure VACLs on the switch to apply to all packets that are routed into or out of a VLAN or are bridged within a VLAN. VACLs are strictly for security packet filtering and redirecting traffic to specific physical switch ports. Unlike Cisco IOS ACLs, VACLs are not defined by direction (input or output).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-3
You can configure VACLs on Layer 3 addresses for IP and IPX. All other protocols are access controlled through MAC addresses and Ethertype using MAC VACLs.
Caution
IP traffic and IPX traffic are not access controlled by MAC VACLs. All other traffic types (AppleTalk, DECnet, and so on) are classified as MAC traffic and MAC VACLs are used to access control this traffic. You can enforce VACLs only on packets going through the Catalyst 6000 family switch; you cannot enforce VACLs on traffic between hosts on a hub or another switch connected to the Catalyst 6000 family switch.
TCP or UDP1 Source port Source port operator Destination port Destination port operator N/A
ICMP1
Other IP1
IPX
Ethernet2
ICMP code1 ICMP type IP ToS byte IP source address IP destination address N/A IP ToS byte IP source address IP destination address IPX source network IPX destination network IPX destination node
Layer 3 parameters
TCP or UDP
ICMP
Other protocol
16-4
78-13315-02
Chapter 16
TCP or UDP1
ICMP1
Other IP1
IPX
This example shows that the traffic coming from 1.1.1.1 port 68 and going to 2.2.2.2 port 34 is permitted. If packets are fragmented, the first fragment hits this entry and is permitted; fragments that have an offset other than 0 are also permitted as a default result for fragments.
permit tcp host 1.1.1.1 eq 68 host 2.2.2.2 eq 34
This example shows that the fragment that has offset 0 of the traffic from 1.1.1.1 port 68 going to 2.2.2.2 port 34 is denied. The fragments that have an offset other than 0 are permitted as a default.
deny tcp host 1.1.1.1 eq 68 host 2.2.2.2 eq 34
In releases prior to software release 6.1(1), the fragment filtering was completely transparent; you would type an ACE such as permit tcp .... port eq port_number and the software would implicitly install the following ACE at the top of the ACL: permit tcp any any fragments. In software release 6.1(1) and later releases, there is a fragment option. If you do not specify the fragment keyword, the behavior is the same as in previous releases. If you specify the fragment keyword, the system does not automatically install a global permit statement for fragments. This keyword allows you to control how fragments are handled.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-5
In this example, 10.1.1.2 is configured to serve HTTP connections. If you do not use a fragment ACE, all the fragments for TCP traffic are permitted as the permit tcp any any fragments ACE is added automatically at the top of the ACL as follows:
permit tcp any any fragments
1. 2. 3.
permit tcp any host 10.1.1.2 eq www deny ip any host 10.1.1.2 permit ip any any
In the above example if you change entry 1 as follows: 1. deny tcp any host 10.1.1.2 eq www there will not be a permit tcp any any fragments ACE added at the top of ACL. If the entry is a deny statement, the next access-list entry is processed.
Note
The deny statements are handled differently for noninitial fragments versus nonfragmented or initial fragments. When you specify the fragment keyword, the system does not install the global permit TCP or UDP fragments statement. When you specify the fragment keyword for at least one ACE, the software implicitly installs ACEs to permit flows to a specific IP address (or subnet) that you specify. In this ACL example, the deny tcp any host 10.1.1.2 fragment entry stops fragmented traffic going to all TCP ports on host 10.1.1.2. Later in the ACL, the permit udp any host 10.1.1.2 eq 69 entry allows clients to connect to the TFTP server 10.1.1.2. The system automatically installs a permit for all fragments of udp traffic to host 10.1.1.2 ACE; otherwise, fragments would be denied by the entry deny ip any host 10.1.1.2.
1. 2. 3. 4. 5. 6.
deny tcp any host 10.1.1.2 fragment permit tcp any host 10.1.1.2 eq www permit udp any host 10.1.1.2 eq 69 permit udp any gt 1023 10.1.1.2 gt 1023 deny ip any host 10.1.1.2 permit ip any any
If you explicitly want to stop fragmented UDP traffic to host 10.1.1.2, enter deny udp any host 10.1.1.2 fragment before entry number 3 as shown in this example: [...]
3. 4. 5.
deny udp any host 10.1.1.2 fragment permit udp any host 10.1.1.2 eq 69 permit udp any gt 1023 10.1.1.2 gt 1023
[...]
16-6
78-13315-02
Chapter 16
Configuring Access Control Applying Cisco IOS ACLs and VACLs on VLANs
Bridged Packets, page 16-viii Routed Packets, page 16-viii Multicast Packets, page 16-ix
Bridged Packets
Figure 1 shows how an ACL is applied on bridged packets. For bridged packets, only Layer 2 ACLs are applied to the input VLAN.
Figure 16-1 Applying ACLs on Bridged Packets
VACL
Bridged
Routed Packets
Figure 2 shows how ACLs are applied on routed/Layer 3-switched packets. For routed/Layer 3-switched packets, the ACLs are applied in the following order:
1. 2. 3. 4.
VACL for input VLAN Input Cisco IOS ACL Output Cisco IOS ACL VACL for output VLAN
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26961
16-7
Routed
Multicast Packets
Figure 3 shows how ACLs are applied on packets that need multicast expansion. For packets that need multicast expansion, the ACLs are applied in the following order:
1.
2.
3.
16-8
78-13315-02
Chapter 16
Catalyst 6500 Series Switch with MSFC Routed Input IOS ACL Bridged VACL MSFC
IOS ACL for output VLAN for packets originating from router Output IOS ACL VACL
Host B (VLAN 20) Host A (VLAN 10) Bridged Host D (VLAN 20)
26965
Configuring Cisco IOS ACLs on the Catalyst 6000 family switch routed-VLAN interfaces is the same as configuring ACLs on other Cisco routers. To configure Cisco IOS ACLs, see the Unsupported Features section on page 16-xxviii and the VACL Configuration Guidelines section on page 16-xxix. In addition, refer to the Cisco IOS configuration guides and command reference publication. For example, to configure ACLs for IP, refer to the Configuring IP Services chapter in the Network Protocols Configuration Guide, Part 1. When a feature is configured on the router to process traffic (such as NAT), the Cisco IOS ACL associated with the feature determines the specific traffic that is bridged to the router instead of being Layer 3 switched. The router then applies the feature and routes the packet normally. Note that there are some exceptions to this process as described in the Hardware and Software Handling of Cisco IOS ACLs with PFC section on page 16-xi.
Note
In systems with redundant MSFCs, the ACL configurations for Cisco IOS ACLs and VACLs must be the same on both MSFCs.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-9
Caution
For PFC: By default, the MSFC sends Internet Control Message Protocol (ICMP) unreachables when a packet is denied by an access group. These access-group denied packets are not dropped in the hardware but are bridged to the MSFC so that the MSFC can generate the ICMP-unreachable message. To drop access-group denied packets in the hardware, you must disable ICMP unreachables using the no ip unreachables interface configuration command. Note that the ip unreachables command is enabled by default. For PFC2: If IP unreachables or IP redirect is enabled on an interface, the deny is performed in hardware although a small number of packets are sent to the MSFC2 to generate the appropriate ICMP-unreachable messages. These sections describe hardware and software handling of ACLs with PFC and PFC2:
Hardware and Software Handling of Cisco IOS ACLs with PFC, page 16-xi Hardware and Software Handling of Cisco IOS ACLs with PFC2, page 16-xiii
Note
For information on Cisco IOS ACLs with PFC2, see the Hardware and Software Handling of Cisco IOS ACLs with PFC2 section on page 16-xiii. ACL feature processing requires forwarding of some flows by the software. The forwarding rate for software-forwarded flows is substantially less than for hardware-forwarded flows. Flows that require logging as specified by the ACL are handled in the software without impacting non-log flow forwarding in the hardware.
Note
When you enter the show ip access-list command, the match count displayed does not account for packets access controlled in the hardware.
Note
IPX Cisco IOS ACLs with the source host node number specified cannot be enforced on the switch in the hardware; the MSFC has to process the ACL in the software. This process significantly degrades system performance. These sections describe how different types of ACLs and traffic flows are handled by the hardware and the software:
Security Cisco IOS ACLs, page 16-xii Reflexive ACLs, page 16-xii TCP Intercept, page 16-xii Policy Routing, page 16-xiii WCCP, page 16-xiii
16-10
78-13315-02
Chapter 16
NAT, page 16-xiii Unicast RPF Check, page 16-xiii Bridge-Groups, page 16-xiii
The flows that match a deny statement in a security ACL are dropped by the hardware if ip unreachables is disabled. The flows matching a permit statement are switched in the hardware. Permit and deny actions of standard and extended ACLs (input and output) for security access control are handled in the hardware. IP accounting for an ACL access violation on a given interface is supported by forwarding all denied packets for that interface to the software, without impacting other flows. Dynamic (lock and key) ACL flows are supported in the hardware; however, idle timeout is not supported. IPX standard input and output ACLs are supported in the hardware when the ACL parameters are IPX source network, destination network, and/or destination node. If the ACL contains any other parameters, it is handled in the software. IPX extended input and output ACLs are supported in the hardware when the ACL parameters are IPX source network, destination network, destination node, and/or protocol type. ACL flows requiring logging are handled in the software without impacting non-log flow forwarding in the hardware.
Reflexive ACLs
Up to 512 simultaneous reflexive sessions are supported in the hardware. Note that when reflexive ACLs are applied, the flow mask is changed to VLAN-full flow.
TCP Intercept
The TCP intercept feature implements software to protect TCP servers from TCP SYN-flooding attacks, which are a type of denial-of-service attack. The TCP intercept feature helps prevent SYN-flooding attacks by intercepting and validating TCP connection requests. In intercept mode, the TCP intercept software intercepts TCP synchronization (SYN) packets from clients to servers that match an extended access list. The software establishes a connection with the client on behalf of the destination server, and if successful, establishes the connection with the server on behalf of the client and binds the two half-connections together transparently. This process ensures that connection attempts from unreachable hosts never reach the server. The software continues to intercept and forward packets throughout the duration of the connection.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-11
Policy Routing
Policy routing-required flows are handled in the software without impacting non-policy routed flow forwarding in the hardware. When a route map contains multiple match clauses, all conditions imposed by these match clauses must be met before a packet is policy routed. However, for route maps containing both match ip address and match length, all traffic matching the ACL in the match ip address clause is forwarded to the software regardless of the match length criteria. For route maps that only contain match length clauses, all packets received on the interface are forwarded to the software. When you enable hardware policy routing using the mls ip pbr global command, all policy routing occurs in the hardware.
Caution
If you use the mls ip pbr command to enable policy routing, policy routing is applied in the hardware for all interfaces regardless of which interface was configured for policy routing.
WCCP
HTTP requests subject to Web Cache Coordination Protocol (WCCP) redirection are handled in the software; HTTP replies from the server and the Cache Engine are handled in the hardware.
NAT
NAT-required flows are handled in the software without impacting non-NAT flow forwarding in the hardware.
Caution
With ACL-based unicast RPF, packets denied by the ACL are sent to the CPU for RPF validation. In the event of DOS attacks, these packets will most likely match the deny ACE and be forwarded to the CPU. Under heavy traffic conditions, this could cause high CPU utilization.
Note
Bridge-Groups
Cisco IOS bridge-group ACLs are handled in the software.
16-12
78-13315-02
Chapter 16
ACL feature processing requires forwarding some flows to the software. The forwarding rate for software-forwarded flows is substantially less than for hardware-forwarded flows. Flows that require logging as specified by the ACL, are handled in the software without impacting non-log flow forwarding in the hardware.
Note
When you enter the show ip access-list command, the match count displayed does not account for packets access controlled in the hardware.
Note
IPX Cisco IOS ACLs with the source host node number specified cannot be enforced on the switch in the hardware; the MSFC has to process the ACL in the software. This process significantly degrades system performance. These sections describe how different types of ACLs and traffic flows are handled by the hardware and the software in systems with PFC2:
Security Cisco IOS ACLs, page 16-xiv Reflexive ACLs, page 16-xv TCP Intercept, page 16-xv Policy Routing, page 16-xv WCCP, page 16-xv NAT, page 16-xvi Unicast RPF Check, page 16-xvi Bridge-Groups, page 16-xvi
If either the ip unreachables or ip redirect options are enabled, most of the packets of the flows that match a deny statement in an ACL are dropped by the hardware, only a few packets are processed in software in order for the router to send the appropriate ICMP-unreachable message. Permit and deny actions of standard and extended ACLs (input and output) for security access control are handled in the hardware. IP accounting for an ACL access violation on a given interface is supported by forwarding all denied packets for that interface to the software, without impacting other flows. Dynamic (lock and key) ACL flows are supported in the hardware; however, idle timeout is not supported. IPX standard input and output ACLs are supported in the hardware when the ACL parameters are IPX source network, destination network, and/or destination node. If the ACL contains any other parameters, it is handled in the software. IPX extended input and output ACLs are supported in the hardware when the ACL parameters are IPX source network, destination network, destination node, and/or protocol type. ACL flows requiring logging are handled in the software without impacting non-log flow forwarding in the hardware.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-13
Reflexive ACLs
ICMP packets are handled in the software. For TCP/UDP flows, once the flow is established, they are handled in hardware. Note that when reflexive ACLs are applied, the flow mask is changed to VLAN-full flow.
TCP Intercept
The TCP intercept feature implements software to protect TCP servers from TCP SYN-flooding attacks, which are a type of denial-of-service attack. The TCP intercept feature helps prevent SYN-flooding attacks by intercepting and validating TCP connection requests. In intercept mode, the TCP intercept software intercepts TCP synchronization (SYN) packets from clients to servers that match an extended access list. The software establishes a connection with the client on behalf of the destination server, and if successful, establishes the connection with the server on behalf of the client and binds the two half-connections together transparently. This process ensures that connection attempts from unreachable hosts never reach the server. The software continues to intercept and forward packets throughout the duration of the connection. The hardware support for TCP intercept on a PFC2 is as follows:
1.
Once the TCP intercept feature has been configured, all TCP SYN packets matching the ACEs with a permit clause in the TCP intercept ACL and which are permitted by the security ACL are sent to the software to apply the TCP intercept functionality. This process occurs even if the security ACL does not have the SYN flag specified. If a connection is established successfully, the following applies:
a. If the TCP intercept is using intercept mode with timeout, all traffic belonging to the given
2.
installs a hardware shortcut to switch the rest of the flow in the hardware.
3.
If a connection is not established successfully, there cannot be any other traffic belonging to that flow.
Policy Routing
Policy routing-required flows are handled in hardware or software depending on the route map. If the route map contains only a match ip address and the set clause contains the next hop and the next hop is reachable, then the packet is forwarded in hardware. When a route map contains multiple match clauses, all conditions imposed by these match clauses must be met before a packet is policy routed. However, for route maps containing both a match ip address and match length, all traffic matching the ACL in the match ip address clause is forwarded to the software regardless of the match length criteria. For route maps that only contain match length clauses, all packets received on the interface are forwarded to the software.
Note
The mls ip pbr command is not required (and not supported) on PFC2.
WCCP
HTTP requests subject to WCCP redirection are handled in the software; HTTP replies from the server and the Cache Engine are handled in the hardware.
16-14
78-13315-02
Chapter 16
NAT
NAT-required flows are handled in the software without impacting non-NAT flow forwarding in the hardware.
Caution
With ACL-based unicast RPF, packets denied by the ACL are sent to the CPU for RPF validation. In the event of DOS attacks, these packets will most likely match the deny ACE and be forwarded to the CPU. Under heavy traffic conditions, this could cause high CPU utilization.
Note
Bridge-Groups
Cisco IOS bridge-group ACLs are handled in the software.
Packets that require logging on the outbound ACLs are not logged if they are denied by a VACL. NATVACLs are applied on packets before NAT translation. Note that if the translated flow should not be access controlled, the flow might get access controlled after the translation because of the VACL configuration.
Note
VACLs have an implicit deny at the end of the list; a packet is denied if it does not match any VACL ACE. These sections describe Cisco IOS ACL and VACL configuration guidelines and guidelines for Layer 4 operations:
Guidelines for Configuring Cisco IOS ACLs and VACLs on the Same VLAN Interface, page 16-xvii Guidelines for Using Layer 4 Operations, page 16-xxi
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-15
Guidelines for Configuring Cisco IOS ACLs and VACLs on the Same VLAN Interface
Follow these guidelines when you need to configure a Cisco IOS ACL and a VACL on the same VLAN. These guidelines do not apply to configurations where you are mapping Cisco IOS ACLs and VACLs on different VLANs. The Catalyst 6000 family switch hardware provides one lookup for security ACLs for each direction (input and output); you must merge a Cisco IOS ACL and a VACL when they are configured on the same VLAN. Merging the Cisco IOS ACL with the VACL might significantly increase the number of ACEs. If you must configure a Cisco IOS ACL and a VACL on the same VLAN, use the following guidelines for both Cisco IOS ACL and VACL configuration.
Note
To display the percentage of ACL storage being used, enter the show security acl resource-usage command. These sections provide Cisco IOS ACL and VACL configuration guidelines and examples:
Using the Implicit Deny Action, page 16-xvii Grouping Actions Together, page 16-xvii Limiting the Number of Actions, page 16-xvii Avoiding Layer 4 Port Information, page 16-xviii Estimating Merge Results, page 16-xviii Examples, page 16-xviii
16-16
78-13315-02
Chapter 16
To specify a redirect and deny ACL, do not use any permit ACEs. To specify a redirect and permit ACL, use permit ACEs, redirect ACEs, and for the last ACE, specify permit ip any any. If you specify permit ip any any, you will override the implicit deny ip any at the end of the list (see Example 4, page 16-xix).
Examples
These examples show the merge results for various Cisco IOS ACL and VACL configurations. Note that in these examples, one VACL and one Cisco IOS ACL are configured on the same VLAN.
Example 1
This example shows that the VACL does not follow the recommended guidelines (see line 9) and the resultant merge increases the number of ACEs:
******** VACL *********** 1 permit udp host 194.72.72.33 194.72.6.160 0.0.0.15 2 permit udp host 147.150.213.94 194.72.6.64 0.0.0.15 eq bootps 3 permit udp 194.73.74.0 0.0.0.255 host 194.72.6.205 eq syslog 4 permit udp host 167.221.23.1 host 194.72.6.198 eq tacacs 5 permit udp 194.72.136.1 0.0.3.128 194.72.6.64 0.0.0.15 eq tftp 6 permit udp host 193.6.65.17 host 194.72.6.205 gt 1023 7 permit tcp any host 194.72.6.52 8 permit tcp any host 194.72.6.52 eq 113 9 deny tcp any host 194.72.6.51 eq ftp 10 permit tcp any host 194.72.6.51 eq ftp-data 11 permit tcp any host 194.72.6.51 12 permit tcp any eq domain host 194.72.6.51 13 permit tcp any host 194.72.6.51 gt 1023 14 permit ip any host 1.1.1.1
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-17
******** IOS ACL ************ 1 deny ip any host 239.255.255.255 2 permit ip any any ******** MERGE ********** has 91 entries entries
Example 2
In Example 1, if you follow the guidelines and remove line 9 and modify lines 11 and 12, you get the following equivalent ACL with improved merge results (note that a deny ACE is not specified):
******** VACL ********** 1 permit udp host 194.72.72.33 194.72.6.160 0.0.0.15 2 permit udp host 147.150.213.94 194.72.6.64 0.0.0.15 eq bootps 3 permit udp 194.73.74.0 0.0.0.255 host 194.72.6.205 eq syslog 4 permit udp host 167.221.23.1 host 194.72.6.198 eq tacacs 5 permit udp 194.72.136.1 0.0.3.128 194.72.6.64 0.0.0.15 eq tftp 6 permit udp host 193.6.65.17 host 194.72.6.205 gt 1023 7 permit tcp any host 194.72.6.52 8 permit tcp any host 194.72.6.52 eq 113 9 permit tcp any host 194.72.6.51 eq ftp-data 10 permit tcp any host 194.72.6.51 neq ftp 11 permit tcp any eq domain host 194.72.6.51 neq ftp 12 permit tcp any host 194.72.6.51 gt 1023 13 permit ip any host 1.1.1.1 ******** IOS ACL ************ 1 deny ip any host 239.255.255.255 2 permit ip any any ******** MERGE *********** has 78 entries
Example 3
This example shows the VACL does not follow the recommended guidelines, and the resultant merge significantly increases the number of ACEs:
******** VACL *********** 1 deny ip 0.0.0.0 255.255.255.0 any 2 deny ip 0.0.0.255 255.255.255.0 any 3 deny ip any 0.0.0.0 255.255.255.0 4 permit ip any host 239.255.255.255 5 permit ip any host 255.255.255.255 6 deny ip any 0.0.0.255 255.255.255.0 7 permit tcp any range 0 65534 any range 0 65534 8 permit udp any range 0 65534 any range 0 65534 9 permit icmp any any 10 permit ip any any ******** IOS ACL ********** 1 deny ip any host 239.255.255.255 2 permit ip any any ******** MERGE ********** has 329 entries
Example 4
This example shows that the VACL does not follow the recommended guidelines (three different actions are specified), and the resultant merge significantly increases the number of ACEs:
******** VACL *********** 1 redirect 4/25 tcp host 192.168.1.67 host 255.255.255.255 2 redirect 4/25 udp host 192.168.1.67 host 255.255.255.255 3 deny tcp any any lt 30 4 deny udp any any lt 30 5 permit ip any any
16-18
78-13315-02
Chapter 16
******* IOS ACL *********** 1 deny ip any host 239.255.255.255 2 permit ip any any ******* MERGE ********** has 142 entries
Example 5
This example shows the VACL has two different actions specified and the merge results are significantly improved:
******** VACL *********** 1 redirect 4/25 tcp host 192.168.1.67 host 255.255.255.255 2 redirect 4/25 udp host 192.168.1.67 host 255.255.255.255 3 permit ip any any ******* IOS ACL *********** 1 deny ip any host 239.255.255.255 2 permit ip any any ******* MERGE ********** has 4 entries
Example 6
This example shows that applying the merging guidelines on a large Cisco IOS ACL (no Layer 4 port information is specified on the Cisco IOS ACL), produces a merge result of 801 entries:
******** VACL ********** 1 redirect 4/25 tcp host 192.168.1.67 255.255.255.255 0.0.0.0 2 redirect 4/25 udp host 192.168.1.67 255.255.255.255 0.0.0.0 3 redirect 4/25 icmp host 192.168.1.67 host 255.255.255.255 4 redirect 4/25 ip host 192.168.1.67 host 255.255.255.255 5 deny tcp any any lt 30 6 deny udp any any lt 30 7 permit ip any any ******** IOS ACL *********** 1 permit ip 147.150.213.64 0.0.0.31 194.72.6.64 0.0.0.15 2 permit ip 147.150.213.64 0.0.0.31 194.72.6.160 0.0.0.15 3 permit ip 147.150.213.64 0.0.0.31 host 194.72.6.205 4 permit ip 147.151.77.0 0.0.0.255 194.72.6.64 0.0.0.15 5 permit ip 147.151.77.0 0.0.0.255 194.72.6.160 0.0.0.15 6 permit ip 147.151.77.0 0.0.0.255 194.72.6.208 0.0.0.15 7 permit ip 147.151.77.0 0.0.0.255 host 194.72.6.205 8 permit ip host 193.37.169.121 194.72.6.64 0.0.0.15 [...] total 62 entries without L4 information ******** MERGE ********** has 801 ACEs
Example 7
This example shows that the same Cisco IOS ACL that was used in Example 6 is merged with a VACL with Layer 4 port information. Following the guidelines in the Using the Implicit Deny Action section on page 16-xvii, the merge results are good.
******** VACL ********* 1 permit tcp host 193.131.248.24 194.73.73.0 0.0.0.15 gt 1023 2 permit tcp host 158.43.128.8 194.72.6.224 0.0.0.7 gt 1023 3 permit udp any 194.72.6.224 0.0.0.7 eq time 4 permit udp any 194.73.73.0 0.0.0.15 eq time 5 permit udp 194.72.7.128 0.0.0.7 194.72.6.224 0.0.0.7 eq 1645 6 permit udp 194.72.7.128 0.0.0.7 194.73.73.0 0.0.0.15 eq 1645 7 permit udp host 158.152.1.65 194.72.6.224 0.0.0.7 gt 1023 8 permit udp host 158.152.1.65 194.73.73.0 0.0.0.15 gt 1023 [...] total 168 entries
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-19
******** IOS ACL ********* 1 permit ip 147.150.213.64 0.0.0.31 194.72.6.64 0.0.0.15 2 permit ip 147.150.213.64 0.0.0.31 194.72.6.160 0.0.0.15 3 permit ip 147.150.213.64 0.0.0.31 host 194.72.6.205 4 permit ip 147.151.77.0 0.0.0.255 194.72.6.64 0.0.0.15 5 permit ip 147.151.77.0 0.0.0.255 194.72.6.160 0.0.0.15 6 permit ip 147.151.77.0 0.0.0.255 194.72.6.208 0.0.0.15 7 permit ip 147.151.77.0 0.0.0.255 host 194.72.6.205 8 permit ip host 193.37.169.121 194.72.6.64 0.0.0.15 [...] total 62 entries without L4 information ******* MERGE ******** has 1259 ACEs.
Determining Layer 4 Operation Usage, page 16-xxi Determining Logical Operation Unit Usage, page 16-xxii
gt (greater than) lt (less than) neq (not equal) eq (equal) range (inclusive range)
We recommend that you do not specify more than nine different operations on the same ACL. If you exceed this number, each new operation might cause the affected ACE to be translated into more than one ACE.
Note
If you have a Cisco IOS ACL and a VACL on the same VLAN interface, the recommended total number of Layer 4 operations is still nine or less. Use the following two guidelines to determine Layer 4 operation usage:
1.
Layer 4 operations are considered different if the operator or the operand differ. For example, in this ACL there are four different Layer 4 operations (gt 10 and gt 11 are considered two different Layer 4 operations):
... ... ... ... gt 10 permit lt 9 deny gt 11 deny neq 6 redirect
16-20
78-13315-02
Chapter 16
Note
There is no limit to the use of eq operators as the eq operator does not use a logical operator unit (LOU) or a Layer 4 operation bit. See the Determining Logical Operation Unit Usage section on page 16-xxii for a description of LOUs.
2.
Layer 4 operations are considered different if the same operator/operand couple applies once to a source port and once to a destination port. For example, in this ACL there are two different Layer 4 operations because one ACE applies to the source port and one applies to the destination port.
... Src gt 10 ... ... Dst gt 10
Note
Check the ACL Layer 4 port operations resource usage using the show security acl resource-usage command.
gt uses 1/2 LOU lt uses 1/2 LOU neq uses 1/2 LOU range uses 1 LOU eq does not require a LOU
For example, this ACL would use a single LOU to store two different operator/operand couples:
... Src gt 10 ... ... Dst gt 10
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-21
LOU 1 stores gt 10 and lt 9 LOU 2 stores gt 11 and neq 6 LOU 3 stores gt 20 (with space for one more) LOU 4 stores range 11 13 (range needs the entire LOU)
Wiring Closet Configuration, page 16-xxiii Redirecting Broadcast Traffic to a Specific Server Port, page 16-xxiv Restricting the DHCP Response for a Specific Server, page 16-xxv Denying Access to a Server on Another VLAN, page 16-xxvi Restricting ARP Traffic, page 16-xxvii Configuring ACLs on Private VLANs, page 16-xxvii Capturing Traffic Flows, page 16-xxviii
16-22
78-13315-02
Chapter 16
Switch A with PFC only VACL: deny http from X to Y http is dropped at entry point Host X
Host Y
Command set security acl ip SERVER redirect 4/1 tcp any host 255.255.255.255 eq 5000 set security acl ip SERVER permit ip any any commit security acl SERVER set security acl map SERVER 10
Redirect the broadcast packets. Permit all other traffic. Commit the VACL. Map the VACL to VLAN 10.
Note
You could apply the same concept to direct broadcast traffic to a multicast destination by redirecting the traffic to a group of ports (see Figure 5).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26959
16-23
VACL
Target server
Host A
Host B
Command set security acl ip SERVER permit udp host 1.2.3.4 any eq 68 set security acl ip SERVER deny udp any any eq 68 set security acl ip SERVER permit any commit security acl SERVER set security acl map SERVER 10
Permit a DHCP response from host 1.2.3.4. Deny DHCP responses from any other host. Permit other IP traffic. Commit the VACL. Map the VACL to VLAN 10.
16-24
78-13315-02
Chapter 16
Figure 6 shows that only the target server returns a DHCP response from the DHCP request.
Figure 16-6 Redirect DHCP Response for a Specific Server
VACL
Host A
Host B
Hosts in subnet 10.1.2.0/24 in VLAN 20 should not have access. Hosts 10.1.1.4 and 10.1.1.8 in VLAN 10 should not have access.
To deny access to a server on another VLAN, perform this task in privileged mode: Task
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6
Command set security acl ip SERVER deny ip 10.1.2.0 0.0.0.255 host 10.1.1.100 set security acl ip SERVER deny ip host 10.1.1.4 host 10.1.1.100 set security acl ip SERVER deny ip host 10.1.1.8 host 10.1.1.100 set security acl ip SERVER permit ip any any commit security acl SERVER set security acl map SERVER 10
Deny traffic from hosts in subnet 10.1.2.0/8. Deny traffic from host 10.1.1.4. Deny traffic from host 10.1.1.8. Permit other IP traffic. Commit the VACL. Map the VACL to VLAN 10.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-25
VACL 10.1.1.100 Server (VLAN 10) 10.1.1.4 Host (VLAN 10) 10.1.1.8 Host (VLAN 10)
26963
This feature is only available with Supervisor Engine 2 with PFC2. ARP traffic is permitted on each VLAN by default. You can disallow ARP traffic on a per VLAN basis using the set security acl ip acl_name deny arp command. When you enter this command, ARP traffic is disallowed on the VLAN that the ACL is mapped to. To allow ARP traffic on a VLAN that has had ARP traffic disallowed, enter the set security acl ip acl_name permit arp command.
You can map VACLs to secondary VLANs or primary VLANs. Cisco IOS ACLs that are mapped to a primary VLAN get mapped to the associated secondary VLANs. You cannot map Cisco IOS ACLs to secondary VLANs. You cannot map dynamic ACEs to a private VLAN. You can map QoS ACLs to secondary VLANs or primary VLANs.
If you map a VACL to a primary VLAN, it filters the traffic from the router to the host and if you map a VACL to a secondary VLAN, it filters the traffic from the host to the router.
16-26
78-13315-02
Chapter 16
Note
With software releases 6.2(1) and later, you can use two-way community VLANs to perform an inverse mapping from the primary VLAN to the secondary VLAN when the traffic crosses the boundary of a private VLAN through a promiscuous port. Both outbound and inbound traffic can be carried on the same VLAN allowing VLAN-based VACLs to be applied in both directions on a per-community (per customer) basis.
Note
For additional information on private VLANS, see the Configuring Private VLANs section on page 11-13.
Unsupported Features
This section lists ACL-related features that are not supported or have limited support on the Catalyst 6000 family switches.
Non-IP version 4/non-IPX Cisco IOS ACLsThe following types of Cisco IOS security ACLs cannot be enforced on the switch in the hardware; the MSFC has to process the ACL in the software and this significantly degrades system performance:
Bridge-group ACLs IP accounting Inbound and outbound rate limiting Standard IPX with source node number IPX extended access lists that specify a source node number or socket numbers are not enforced
in the hardware
Standard XNS access list Extended XNS access list DECnet access list Extended MAC address access list Protocol type-code access list
IP packets with a header length of less than five will not be access controlled. Non full-flow IPX VACLIPX VACL is based on a flow specified by a source/destination network number, packet type, and destination node number only. The source node number and socket number are not supported when specifying the IPX flow.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-27
Configuring VACLs
This section describes how to configure VACLs. Prior to performing any configuration tasks, see the VACL Configuration Guidelines section on page 16-xxix. These sections provide guidelines and a summary for configuring VACLs:
VACL Configuration Guidelines, page 16-xxix VACL Configuration Summary, page 16-xxx
Caution
All changes to ACLs are stored temporarily in an edit buffer. You must enter the commit command to commit all ACEs to NVRAM. Committed ACLs with no ACEs are deleted. We recommend that you enter ACEs in batches and enter the commit command to save all of them to NVRAM.
Note
You can configure Cisco IOS ACLs and VACLs from Flash memory instead of NVRAM. See the Configuring and Storing VACLs and QoS ACLs in Flash Memory section on page 16-xliii for detailed information.
See the Guidelines for Configuring Cisco IOS ACLs and VACLs on the Same VLAN Interface section on page 16-xvii. See the Using VACLs in your Network section on page 16-xxiii for configuration examples. See the Unsupported Features section on page 16-xxviii. Note that a VACL has to be committed before you can map it to a VLAN. There are no default VACLs and no default VACL-to-VLAN mappings. Note that if there is no Cisco IOS ACL configured to deny traffic on a routed VLAN interface (input or output), and no VACL configured, all traffic is permitted. Note that the order of ACEs in an ACL is important. A packet that comes into the switch is applied against the first ACE in the ACL. If there is no match, the packet is applied against the next ACE in the list. If no ACEs match, the packet is denied (dropped). Always enter the show security acl info acl_name editbuffer command to see the current list of ACEs before making any changes to the edit buffer. Note that in systems with redundant MSFCs, the ACL configurations for Cisco IOS ACLs and VACLs must be the same on both MSFCs. Note that the system might incorrectly calculate the maximum number of ACLs in the system if an ACL is deleted but not committed. Note that the show security acl resource-usage and show qos acl resource-usage commands might not show 100 percent usage even if there is no space in the hardware to store more ACLs. This situation occurs because some ACL space is reserved in hardware for the ACL manager to perform cleanup and mapping if necessary. Note that the system might take longer to boot if you configure a very large number of ACLs.
16-28
78-13315-02
Chapter 16
VLANs in forwarding state. You might have to configure the redirect port as a trunk to allow multiple VLANs to go out of the port.
Put caches in promiscuous mode so they can receive traffic that is not routed. Use the redirect option to do some basic VLAN-based load balancing by redirecting traffic to
multiple ports. Each port transmits only those packets that belong to the VLANs that are forwarding on the port.
Enter the set security acl ip command to create a VACL and add ACEs. Enter the commit command to commit the VACL and its associated ACEs to NVRAM. Enter the set security acl map command to map the VACL to a VLAN.
Note
An IP VACL is used in this description; you can configure IPX and non-IP version 4/non-IPX VACLs using the same basic steps.
Note
VACLs have an implicit deny feature at the end of the list; a packet is denied if it does not match any VACL ACE.
Creating an IP VACL and Adding ACEs, page 16-xxxi Creating an IPX VACL and Adding ACEs, page 16-xxxiii Creating a Non-IP Version 4/Non-IPX VACL (MAC VACL) and Adding ACEs, page 16-xxxv Committing ACLs, page 16-xxxvi Mapping a VACL to a VLAN, page 16-xxxvi Showing the Contents of a VACL, page 16-xxxvii Showing VACL-to-VLAN Mapping, page 16-xxxvii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-29
Clearing the Edit Buffer, page 16-xxxviii Removing ACEs from Security ACLs, page 16-xxxviii Clearing the Security ACL Map, page 16-xxxviii Displaying VACL Management Information, page 16-xxxix Capturing Traffic Flows on Specified Ports, page 16-xxxix Configuring VACL Logging, page 16-xli
Command set security acl ip {acl_name} {permit | deny} {src_ip_spec} [capture] [before editbuffer_index | modify editbuffer_index] [log 1] set security acl ip {acl_name} {permit | deny | redirect mod_num/ port_num} {protocol} {src_ip_spec} {dest_ip_spec} [precedence precedence] [tos tos] [capture] [before editbuffer_index | modify editbuffer_index] [log1]
If an IP protocol specification is not required, use the following syntax. If an IP protocol is specified, use the following syntax.
1. The log keyword provides logging messages for denied IP VACLs only.
This example shows how to create an ACE for IPACL1 to allow traffic from source address 172.20.53.4:
Console> (enable) set security acl ip IPACL1 permit host 172.20.53.4 0.0.0.0 IPACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
Note
The example shows that because VACLs have an implicit deny feature at the end of the list, all other traffic is denied. This example shows how to create an ACE for IPACL1 to allow traffic from all source addresses:
Console> (enable) set security acl ip IPACL1 permit any IPACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for IPACL1 to block traffic from source address 171.3.8.2:
Console> (enable) set security acl ip IPACL1 deny host 171.3.8.2 IPACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to display the contents of the edit buffer:
Console> (enable) show security acl info IPACL1 editbuffer set security acl ip IPACL1 ----------------------------------------------------------------1. permit ip host 172.20.53.4 any 2. permit ip any any 3. deny ip host 171.3.8.2 any Console> (enable)
16-30
78-13315-02
Chapter 16
Note
For more information about the commit security acl all command, see the Committing ACLs section on page 16-xxxvi. Enter the show security acl info IPACL1 command to verify that the changes were committed. If this VACL has not been mapped to a VLAN, enter the set security acl map command to map it to a VLAN. This example shows how to create an ACE for IPACL2 to block traffic from source address 172.20.3.2 and place this ACE before ACE number 2 in the VACL. Optionally, you can use the modify keyword to replace an existing ACE with a new ACE. Enter the show security acl info acl_name [editbuffer] command to see the current ACE listing stored in NVRAM (enter the editbuffer keyword to see edit buffer contents).
Console> (enable) set security acl ip IPACL2 deny host 172.20.3.2 before 2 IPACL2 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for IPACL2 to redirect IP traffic to port 3/1 from source address 1.2.3.4 with the destination address of 255.255.255.255. Note that host can be used as an abbreviation for a source and source-wildcard of 0.0.0.0. This ACE also specifies the following:
precedenceIP precedence values that range between zero for low priority and seven for high priority. tosType of service levels that range between 0 and 15.
Console> (enable) set security acl ip IPACL2 redirect 3/1 ip 1.2.3.4 0.0.0.255 host 255.255.255.255 precedence 1 tos min-delay IPACL2 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to display the contents of the edit buffer:
Console> (enable) show security acl info IPACL2 editbuffer set security acl ip IPACL2 ----------------------------------------------------------------1. deny 172.20.3.2 2. redirect 1.2.3.4 Console> (enable)
Note
For more information about the show security acl info command, see the Showing the Contents of a VACL section on page 16-xxxvii. This example shows how to commit the ACEs to NVRAM:
Console> (enable) commit security acl all ACL commit in progress. ACL IPACL2 is committed to hardware. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-31
Note
For more information about the commit security acl all command see the Committing ACLs section on page 16-xxxvi. Enter the show security acl info IPACL2 command to verify that the changes were committed. If this VACL has not been mapped to a VLAN, enter the set security acl map command to map it to a VLAN.
This example shows how to create an ACE for IPXACL1 to block all traffic from source network 1234:
Console> (enable) set security acl ipx IPXACL1 deny any 1234 IPXACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for IPXACL1 to block all traffic with destination address 1.A.3.4:
Console> (enable) set security acl ipx IPXACL1 deny any any 1.A.3.4 IPXACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for IPXACL1 to redirect broadcast traffic to port 4/1 from source network 3456:
Console> (enable) set security acl ipx IPXACL1 redirect 4/1 any 3456 IPXACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to display the contents of the edit buffer:
Console> (enable) show security acl info IPXACL1 editbuffer set security acl ipx IPXACL1 ----------------------------------------------------------------1. deny any 1234 2. deny any any 1.A.3.4 3. redirect 4/1 any 3456 Console> (enable)
Note
For more information about the show security acl info command, see the Showing the Contents of a VACL section on page 16-xxxvii.
16-32
78-13315-02
Chapter 16
Enter the show security acl info IPXACL1 command to verify that the changes were committed. If this VACL has not been mapped to a VLAN, enter the set security acl map command to map it to a VLAN. This example shows how to create an ACE for IPXACL1 to allow all traffic from source network 1 and insert this ACE before ACE number 2:
Console> (enable) set security acl ipx IPXACL1 permit any 1 before 2 IPXACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for IPXACL1 to allow traffic from all source addresses:
Console> (enable) set security acl ipx IPXACL1 permit any any IPXACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to display the contents of the edit buffer:
Console> (enable) show security acl info IPXACL1 editbuffer set security acl ipx IPXACL1 ----------------------------------------------------------------1. deny any 1234 2. permit any 1 3. deny any any 1.A.3.4 4. redirect 4/1 any 3456 5. permit any any ACL IPXACL1 Status: Not Committed Console> (enable)
Note
For more information about the commit security acl all command, see the Committing ACLs section on page 16-xxxvi. Enter the show security acl info IPXACL1 command to verify that the changes were committed. If this VACL has not been mapped to a VLAN, enter the set security acl map command to map it to a VLAN.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-33
Creating a Non-IP Version 4/Non-IPX VACL (MAC VACL) and Adding ACEs
Caution
IP traffic and IPX traffic are not access controlled by MAC VACLs. All other traffic types (AppleTalk, DECnet, and so on) are classified as MAC traffic and MAC VACLs are used to access control this traffic. To create a new non-IP version 4/non-IPX VACL and add ACEs, or to add ACEs to an existing non-IP version 4/non-IPX VACL, perform this task in privileged mode: Task Create a new non-IP version 4/non-IPX VACL and add ACEs, or add ACEs to an existing non-IP version 4/non-IPX VACL. Command set security acl mac {acl_name} {permit | deny} {src_mac_addr_spec} {dest_mac_addr_spec} [ether-type] [capture] [before editbuffer_index | modify editbuffer_index]
This example shows how to create an ACE for MACACL1 to block all traffic from 8-2-3-4-7-A:
Console> (enable) set security acl mac MACACL1 deny host 8-2-3-4-7-A any MACACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for MACACL1 to block all traffic to A-B-C-D-1-2:
Console> (enable) set security acl mac MACACL1 deny any host A-B-C-D-1-2 MACACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to create an ACE for MACACL1 to allow traffic from all sources:
Console> (enable) set security acl mac MACACL1 permit any any MACACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to display the contents of the edit buffer:
Console> (enable) show security acl info MACACL1 editbuffer set security acl mac MACACL1 ----------------------------------------------------------------1. deny 8-2-3-4-7-A any 2. deny any A-B-C-D-1-2 3. permit any any Console> (enable)
Note
For more information about the show security acl info command, see the Showing the Contents of a VACL section on page 16-xxxvii. This example shows how to commit the ACEs to NVRAM:
Console> (enable) commit security acl all ACL commit in progress. ACL MACACL1 is committed to hardware. Console> (enable)
16-34
78-13315-02
Chapter 16
Note
For more information about the commit security acl all command, see the Committing ACLs section on page 16-xxxvi. Enter the show security acl info MACACL1 command to verify that the changes were committed. If this VACL has not been mapped to a VLAN, enter the set security acl map command to map it to a VLAN.
Committing ACLs
You can commit all ACLs or a specific ACL to NVRAM with the commit command. Any committed ACL with no ACEs will be deleted. To commit an ACL to NVRAM, perform this task in privileged mode: Task Commit an ACL to NVRAM. Command commit security acl acl_name | all
This example shows the output if you try to map an ACL that has not been committed:
Console> (enable) set security acl map IPACL1 10 Commit ACL IPACL1 before mapping. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-35
This example shows how to show the contents of a VACL that has been saved in NVRAM:
Console> (enable) show security acl info IPACL1 set security acl ip IPACL1 -----------------------------------------------------------------1. deny A 2. deny ip B any 3. deny c 4. permit any
This example shows how to show the contents of a VACL that is still in the edit buffer:
Console> (enable) show security acl info IPACL1 editbuffer set security acl ip IPACL1 ----------------------------------------------------------------1. deny A 2. deny ip B any 3. deny C 4. deny D 5. permit any Console> (enable)
Show VACL-to-VLAN mapping. show security acl map {acl_name | vlan | all} This example shows how to show the mappings of a specific VACL:
Console> (enable) show security acl map IPACL1 ACL IPACL1 is mapped to VLANs: 1 Console> (enable)
16-36
78-13315-02
Chapter 16
This example shows how to clear the edit buffer of a specific security ACL:
Console> (enable) rollback security acl IPACL1 Editbuffer for IPACL1 rolled back to last commit state. Console> (enable)
Remove an ACE from a security ACL. clear security acl all clear security acl acl_name clear security acl acl_name editbuffer_index This example shows how to remove ACEs from all the ACLs:
Console> (enable) clear security acl all All editbuffers modified. Use commit command to apply changes. Console> (enable)
This example shows how to remove a specific ACE from a specific ACL:
Console> (enable) clear security acl IPACL1 2 IPACL1 editbuffer modified. Use commit command to apply changes. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-37
This example shows how to clear the mapping for a specific VACL on a specific VLAN:
Console> (enable) clear security acl map IPACL1 50 Map deletion in progress. Successfully cleared mapping between ACL ipacl1 and VLAN 50. Console> (enable)
Configuration Guidelines
Follow these guidelines when configuring capture ports:
The capture port cannot be part of an EtherChannel. The capture port cannot be an ATM port. The capture port must be in the spanning tree forwarding state for the VLAN.
16-38
78-13315-02
Chapter 16
You can specify any number of switch ports as capture ports. Capture ports are added to a capture port list and the configuration is saved in NVRAM. Only permit traffic is captured. If a packet is dropped due to an ACL, the packet cannot be captured. Capture ports do not transmit out all captured traffic. They transmit only traffic belonging to the capture port VLAN. To capture traffic going to many VLANs, the capture port should be a trunk carrying the required VLANs. For routed traffic, capture ports transmit packets only after they are Layer 3 switched; packets are transmitted out of a port only if the output VLAN of the Layer 3 switched flow is the same as the capture port VLAN. For example, assume you have flows from VLAN 10 to VLAN 20 and you add a VACL (on one of the VLANs) permitting these flows and you specify a capture port. This traffic gets transmitted out of the capture port only if it belongs to VLAN 20 or if the port is a trunk carrying VLAN 20. If the capture port is in VLAN 10, it does not transmit any traffic. Whether a capture port transmits the traffic or not is independent of the VLAN on which you placed the VACL. If you want to capture traffic from one VLAN going to many VLANs, the capture port has to be a trunk carrying all output VLANs. For bridged traffic, because all the traffic remains in the same VLAN, ensure that the capture port is in the same VLAN as the bridged traffic.
To capture traffic, you can configure one ACL and map it to a group of VLANs or you can configure a number of ACLs and map each to one VLAN. Configure as many ACEs per ACL as necessary to capture the desired traffic.
Note
An IP VACL is used in this description; you can configure IPX and non-IP version 4/non-IPX VACLs using the same basic steps.
Enter the set security acl ip command to create a VACL and add ACEs; include the capture option. Enter the commit command to commit the VACL and its associated ACEs to NVRAM. Enter the set security acl map command to map the VACL to a VLAN. Enter the set security acl capture-ports mod/ports... command to specify capture ports.
Configuration Examples
This example shows how to create an ACE for my_cap and specify that the allowed traffic be captured:
Console> (enable) set security acl ip my_cap permit ip host 60.1.1.1 host 60.1.1.98 capture my_cap editbuffer modified. Use commit command to apply changes. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-39
This example shows how to display ports that have been specified as capture ports:
Console> (enable) show security acl capture-ports ACL Capture Ports: 1/1-2,2/1-2 Console> (enable)
This example shows that ports 1/1 and 2/1 were cleared:
Console> (enable) show security acl capture-ports ACL Capture Ports:1/2,2/2 Console> (enable)
This feature is only available with Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2). You can log messages about denied packets for the standard IP access list by entering the log keyword for deny VACLs. That is, any packet that matches the access list will cause an informational logging message about the packet to be sent to the console. The level of messages logged to the console is controlled by the set logging level acl severity command. The first packet that triggers the access list causes a logging message right away, and subsequent packets are collected over 5-minute intervals before they are displayed or logged. The logging message includes the flow pattern and number of packets received in the prior 5-minute interval. By default, system logging messages are sent to the console. You can configure the switch to send system logging messages to a syslog server. For information on configuring system message logging, see Chapter 27, Configuring System Message Logging.
Configuration Guidelines
Follow these guidelines when configuring VACL logging:
Log only deny traffic from IP VACLs. You must set the logging level to 6 (information) or 7 (debugging).
16-40
78-13315-02
Chapter 16
Enter the set logging level acl severity command to set the logging level to 6 (information) or 7 (debugging). (Optional) Enter the set security acl log maxflow max_number to allocate a new log table based on the maximum flow pattern number to store logged packet information. If successful, the new buffer replaces the old one and all flows in the old table are cleared. If either memory is not enough or the maximum number is over the limit, an error message is displayed and the command is dropped. Valid values are from 256 to 2048; the default value is 500.
Note
If the maximum flow pattern is over the max_num limit, an error message is displayed and the command is dropped. Messages are not logged for these packets.
Step 3
(Optional) Enter the set security acl log ratelimit pps to set the redirect rate in pps (packet per second). If the configuration is over the range, the command is discarded and the range is displayed on the console. Valid values are from 500 to 5000; the default value is 2500.
Note
If the redirect rate is over the pps range, the command is dropped and the range is displayed on the console. Messages are not logged for these packets.
Enter the set security acl ip acl_name deny log command to create an IP VACL and enable logging. Enter the commit security acl acl_name command to commit the VACL to NVRAM. Enter the set security acl map acl_name vlan command to map the VACL to a VLAN.
Configuration Examples
This example shows how to set the logging level:
Console> (enable) set logging level acl 6 System logging facility <acl> for this session set to severity 6(information)
This example shows how to allocate a new log table based on the maximum flow:
Console> (enable) set security acl log maxflow 512 Set VACL Log table to 512 flow patterns.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-41
Chapter 16 Configuring and Storing VACLs and QoS ACLs in Flash Memory
This example shows how to create an ACE for my_cap and specify that denied traffic be logged:
Console> (enable) set security acl ip my_cap deny ip host 21.0.0.1 log my_cap editbuffer modified. Use commit command to apply changes. Console> (enable)
This example shows how to display the flow information in the log table:
Console> (enable) show security acl log flow ip any any Total matched entry number = 1 Entry No. #1, IP Packet ---------------------------------------Vlan Number : 1 Mod/Port Number : 2/1 Source IP address : 21.0.0.1 Destination IP address : 255.255.255.255 TCP Source port : 2000 TCP Destination port : 3000 Received Packet Number : 10
Note
In most cases, the 512-KB NVRAM is sufficient for storing VACLs and QoS ACLs; therefore, all ACL configurations are stored in NVRAM by default.
16-42
78-13315-02
Chapter 16
Configuring Access Control Configuring and Storing VACLs and QoS ACLs in Flash Memory
Automatically Moving the VACL and QoS ACL Configuration to Flash Memory, page 16-xliv Manually Moving the VACL and QoS ACL Configuration to Flash Memory, page 16-xliv Running with the VACL and QoS ACL Configuration in Flash Memory, page 16-xlvi Moving the VACL and QoS ACL Configuration Back to NVRAM, page 16-xlvi Redundancy Synchronization Support, page 16-xlvi Interacting with High Availability, page 16-xlvii
Note
See Chapter 23, Modifying the Switch Boot Configuration, for additional information on using the commands described in this section.
Automatically Moving the VACL and QoS ACL Configuration to Flash Memory
Moving the VACL and QoS ACL configuration to Flash memory is done automatically only during system software upgrades and then only if there is not sufficient NVRAM for the upgrade. If there is not enough NVRAM to perform a software upgrade, the QoS ACL and VACL configuration is deleted from NVRAM and the ACL configuration is automatically moved to Flash memory. When this occurs, these syslog messages display:
1999 Sep 01 17:00:00 %SYS-1-CFG_FLASH:ACL configuration moved to bootflash:switchapp.cfg 1999 Sep 01 17:00:00 %SYS-1-CFG_ACL_DEALLOC:NVRAM full. Qos/Security ACL configuration deleted from NVRAM.
The VACL and QoS ACL configuration has now been successfully moved to Flash memory. During this process, the system also does the following:
Sets the CONFIG_FILE variable to bootflash:switchapp.cfg Enables the set boot config-register auto-config command recurring, append, and sync options
If you receive these error messages, the VACL and QoS ACL configuration is stored in DRAM only. You need to make more space available in Flash memory and then save the configuration to Flash memory (as described in the Moving the VACL and QoS ACL Configuration Back to NVRAM section on page 16-xlvi). Alternatively, you might try to delete unneeded VACLs and QoS ACLs and save the ACL configuration to NVRAM using the set config acl nvram command.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-43
Chapter 16 Configuring and Storing VACLs and QoS ACLs in Flash Memory
Manually Moving the VACL and QoS ACL Configuration to Flash Memory
If your VACL and QoS ACL configuration requirements require more memory than the 512-KB NVRAM, you can manually move the VACL and QoS ACL configuration to Flash memory as follows:
Step 1
Specify the VACL and QoS ACL auto-config file to use to configure the switch at startup.
Console> (enable) set boot auto-config bootflash:switchapp.cfg CONFIG_FILE variable = bootflash:switchapp.cfg Console> (enable)
Step 2
Specify if the switch should retain (recurring keyword) or clear (non-recurring keyword) the contents of the CONFIG_FILE environment variable after a reset or power cycle.
Console> (enable) set boot config-register auto-config recurring Configuration register is 0x12F ignore-config: disabled auto-config: recurring, overwrite, sync disabled console baud: 9600 boot: image specified by the boot system commands Console> (enable)
Step 3
Specify if the auto-config file should be used to overwrite the NVRAM configuration or be appended to what is currently in NVRAM.
Console> (enable) set boot config-register auto-config append Configuration register is 0x12F ignore-config: disabled auto-config: recurring, append, sync disabled console baud: 9600 boot: image specified by the boot system commands Console> (enable)
Step 4
Specify if synchronization should be enabled or disabled. With synchronization enabled, the auto-config file(s) synchronize automatically to the standby supervisor engine.
Console> (enable) set boot config-register auto-config sync enable Configuration register is 0x12F ignore-config: disabled auto-config: recurring, append, sync enabled console baud: 9600 boot: image specified by the boot system commands Console> (enable)
Step 5
Save committed VACL and QoS ACL configuration changes to the auto-config file.
Console> (enable) copy acl-config bootflash:switchapp.cfg Upload ACL configuration to bootflash:switchapp.cfg 2843644 bytes available on device bootflash, proceed (y/n) [n]? y ACL configuration has been copied successfully. Console> (enable)
Step 6
16-44
78-13315-02
Chapter 16
Configuring Access Control Configuring and Storing VACLs and QoS ACLs in Flash Memory
Note
VACL and QoS ACL mapping commands (set qos acl map and set security acl map) are also stored in the auto-config file. If the VACL and QoS ACL configuration is in Flash memory and you use the mapping commands, you need to enter the copy command to save the configuration to Flash memory. At this point, the VACL and QoS ACL configuration is no longer in NVRAM, it is saved in the auto-config file bootflash:switchapp.cfg and will be appended to the NVRAM configuration at system startup. After making any additional changes to the VACL and QoS ACL configuration and committing those changes, you must enter the copy acl-config bootflash:switchapp.cfg command to save the configuration to the auto-config file. The auto-config file is synchronized automatically to the standby supervisor engine because synchronization was enabled. If you cannot write the VACL and QoS ACL configuration to Flash memory, it is removed from NVRAM. At this point, the VACL and QoS ACL configuration exists in DRAM only. A system reset for any reason can cause the VACL and QoS ACL configuration to revert to the default.
Note
If you cannot write the configuration to Flash memory, you must copy the configuration to a file, make additional room available in Flash memory, and then try to write the VACL and QoS ACL configuration to Flash memory. At system startup, if the VACL and QoS ACL configuration location is set to Flash memory but either the CONFIG_FILE variable is not set or none of the files specified exist, the following syslog message displays:
1999 Sep 01 17:00:00 %SYS-0-CFG_FLASH_ERR:ACL configuration set to flash but no ACL configuration file found.
Running with the VACL and QoS ACL Configuration in Flash Memory
After you move the VACL and QoS ACL configuration to Flash memory, QoS ACLs and VACL commit operations are no longer written to NVRAM. You have to copy the configuration to the Flash file manually as follows:
If you use the set boot config-register auto-config append option, the configuration from the auto-config file is appended to the NVRAM configuration. You then only have to copy the VACL and QoS ACL configuration to this file after commit operations. If you do not use the set boot config-register auto-config append option, the auto-config feature clears the configuration before executing the auto-config file at system startup. Any changes made in NVRAM are lost. You should always copy your entire configuration (not just the VACL and QoS ACL configuration) to the auto-config file when you want to save it.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-45
Note
PBF does not support Internetwork Packet Exchange (IPX) and multicast traffic.
Note
PBF does not work with 802.1Q tunnel traffic. PBF is supported on Layer 3 IP unicast traffic, it is not applicable to Layer 2 traffic. At the intermediate (PBF) switch, all 802.1Q tunnel traffic appears as Layer 2 traffic.
Note
PBF may require some configuration on attached hosts. When a router is not present in the network, ARP table entries have to be statically added on each host participating in PBF.
16-46
78-13315-02
Chapter 16
Understanding How Policy-Based Forwarding Works, page 16-xlvii Hardware and Software Requirements, page 16-xlviii Configuring Policy-Based Forwarding, page 16-xlviii Policy-Based Forwarding Configuration Example, page 16-lvi
Enabling PBF and specifying a MAC address for the PFC2 Configuring VACLs for PBF Configuring attached hosts for PBF
You enable PBF by specifying a MAC address for the PFC2. The MAC address can be a default or user-specified MAC address. Packets have to be sent with the destination MAC address equal to the PFC2 MAC address. The PFC2 must think the packet is a Layer 3 packet or no rewrite operation occurs. If packets are not sent with the PFC2 MAC address, the PFC2 treats the packets as Layer 2 packets. The PBF VACL is created using the security ACL (VACL) commands (set security acl commands). The PBF VACL contains an adjacency table entry for the PFC2 and a redirect ACE. You must set VACLs on both VLANs that participate in PBF. When the packet from the source VLAN comes into the PFC2, it hits the PBF VACL. Based on the information provided in the adjacency table, the packet header is rewritten (destination VLAN and source and destination MAC addresses) and the packet is forwarded to the destination VLAN. The packets are forwarded between VLANs only if they hit the VACL entries that are associated with the adjacency information.
Note
Because VACLs are applied to incoming and outgoing traffic, you must configure all VACLs carefully when using PBF. If the VACLs are not specific, a rewritten packet could hit a deny statement in the outgoing VACL and be dropped. When a router is not present in the network, you need to specify static ARP entries on participating hosts.
PBF requires Supervisor Engine 2 with the Policy Feature Card 2 (PFC2) (WS-X6K-S2-PFC2). PBF is not supported with an operating (booted) Multilayer Switch Feature Card 2 (MSFC2) in the Catalyst 6000 family switch that is being used for PBF. If you try to configure PBF with an MSFC2 present and booted, the system responds with a message indicating the feature is not supported with an MSFC2. If an MSFC2 is present but has not booted, you can configure PBF.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-47
Enabling PBF and Specifying a MAC Address for the PFC2, page 16-xlix Configuring VACLs for PBF, page 16-l Displaying PBF Information, page 16-lii Clearing Entries in PBF VACLs, page 16-liii Rolling Back Adjacency Table Entries in the Edit Buffer, page 16-liv Configuring Hosts for PBF, page 16-liv
VLAN 10
VLAN 11
The MAC address can be a default or user-specified MAC address. The default MAC address is taken from a MAC address PROM on the Catalyst 6000 family switch chassis. When specifying a MAC address using the set pbf mac command, ensure that the MAC address is unique and not already being used on any interfaces. We recommend that you use the default MAC address provided by the MAC address PROM. When you specify your own MAC address using the set pbf mac command, if the MAC address is a duplicate of a MAC address already in use, packets might get dropped.
16-48
58995
78-13315-02
Chapter 16
To display PBF status and MAC address, perform this task in privileged mode: Task Display PBF status and MAC address. Command show pbf
To enable PBF, perform one of these tasks in privileged mode: Task Enable PBF with a default MAC address. Enable PBF with a specific MAC address. Command set pbf set pbf [mac mac address]
This example shows how to check PBF status and MAC address, enable PBF with a default MAC address, and verify the change:
Console> (enable) show pbf Pbf status Mac address ---------------------------not set 00-00-00-00-00-00 Console> (enable) Console> (enable) set pbf PBF committed successfully. Operation successful. Console> (enable) Console> (enable) show pbf Pbf status Mac address ---------------------------ok 00-01-64-61-39-c2 Console> (enable)
This example shows how to enable PBF with a specific MAC address:
Console> (enable) set pbf mac 00-11-11-11-11-11 PBF committed successfully. Operation successful. Console> (enable) Console> (enable) show pbf Pbf status Mac address ---------------------------ok 00-11-11-11-11-11 Console> (enable)
To disable PBF and clear the PBF MAC address, perform this task in privileged mode: Task Disable PBF and clear the PBF MAC address. Command clear pbf
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-49
Enter the set security acl adjacency command to specify the rewrite information in the adjacency table that causes the packet header to be rewritten (destination VLAN and source and destination MAC addresses) and forwarded to the destination VLAN. Note that the source MAC address is optional. If you do not specify the source MAC address, the system defaults to the PBF MAC address.
Note
You can configure a maximum of 256 adjacency table entries for a VLAN. The maximum number of adjacency table entries is 1023.
Note
To enable jumbo frame forwarding using PBF, enter the mtu keyword in the set security acl adjacency command. The order of entries in a PBF VACL is important. The adjacency table entry has to be defined in the VACL before the redirect ACE because the redirect ACE uses it to redirect traffic. You should create entries for PBF VACLs in the following order:
1. 2. 3. 4. 5.
Specify the adjacency table entry. Specify the redirect ACE in the PBF VACL that is using the adjacency table entry. Commit the adjacency table entry. Commit the PBF VACL. Map the PBF VACL to a single VLAN or multiple VLANs.
Note
You can combine steps 3 and 4 by entering the commit security acl all command.
Note
The same adjacency table entry can be used by more than one redirect ACE.
16-50
78-13315-02
Chapter 16
To specify an adjacency table entry for the PFC2, perform this task in privileged mode: Task Specify an adjacency table entry for the PFC2. Command set security acl adjacency adjacency_name dest_vlan dest_mac [[source_mac] | [source_mac mtu mtu_size] | [ mtu mtu_size]]
This example shows how to create the PBF VACL for VLAN 10 (shown in Figure 8):
Console> (enable) set security acl adjacency ADJ1 11 00-00-00-00-00-0B ADJ1 editbuffer modified. Use 'commit' command to apply changes. Console> (enable) set security acl ip IPACL1 redirect ADJ1 ip host 10.0.0.1 host 11.0.0.1 IPACL1 editbuffer modified. Use 'commit' command to apply changes. Console> (enable) set security acl ip IPACL1 permit any IPACL1 editbuffer modified. Use 'commit' command to apply changes. Console> (enable) commit security acl adjacency Commit operation in progress. Adjacency successfully committed. Console> (enable) commit security acl IPACL1 ACL commit in progress. ACL 'IPACL1' successfully committed. Console> (enable) set security acl map IPACL1 10 Mapping in progress. ACL IPACL1 successfully mapped to VLAN 10. Console> (enable)
This example shows how to create the PBF VACL for VLAN 11 (see Figure 8):
Console> (enable) set security acl adjacency ADJ2 10 00-00-00-00-00-0A ADJ2 editbuffer modified. Use 'commit' command to apply changes. Console> (enable) set security acl ip IPACL2 redirect ADJ2 ip host 11.0.0.1 host 10.0.0.1 IPACL2 editbuffer modified. Use 'commit' command to apply changes. Console> (enable) set security acl ip IPACL2 permit any IPACL2 editbuffer modified. Use 'commit' command to apply changes. Console> (enable) commit security acl adjacency Commit operation in progress. Adjacency successfully committed. Console> (enable) commit security acl IPACL2 ACL commit in progress. ACL 'IPACL2' successfully committed. Console> (enable) set security acl map IPACL2 11 Mapping in progress. ACL IPACL2 successfully mapped to VLAN 11. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-51
Display the adjacency-to-VACL mappings for all show pbf map [adj name] adjacency table entries or a specific adjacency table entry.
Console> show security acl info adjacency set security acl adjacency ADJ1 --------------------------------------------------1. 11 00-00-00-00-00-0b set security acl adjacency ADJ2 --------------------------------------------------1. 10 00-00-00-00-00-0a Console> show pbf adjacency Index DstVlan DstMac SrcMac Name -----------------------------------------------------------------1 11 00-00-00-00-00-0a 00-00-00-00-00-0b ADJ1 2 10 00-00-00-00-00-0a 00-00-00-00-00-0b ADJ2 Console> show pbf statistics Index DstVlan DstMac SrcMac HitCount(hex) Name ------------------------------------------------------------------------1 11 00-00-00-00-00-0a 00-00-00-00-00-0b 0x00000000 ADJ1 2 10 00-00-00-00-00-0a 00-00-00-00-00-0b 0x00000000 ADJ2 Console> show pbf map Adjacency ACL ------------------ -------------------ADJ1 IPACL1 ADJ2 Console> (enable) IPACL2
16-52
78-13315-02
Chapter 16
3. 4.
Clear the adjacency table entry. Commit the adjacency table entry.
To clear a PBF adjacency table entry, perform this task in privileged mode: Task Clear a PBF adjacency table entry. Command clear security acl adjacency adj name
This example shows how to roll back adjacency table entries in the edit buffer:
Console> (enable) rollback security acl adjacency Editbuffer for adjacency info rolled back to last commit state. Console> (enable)
Linux, page 16-liv Sun Workstation, page 16-lv MS-Windows/NT/2000 Hosts, page 16-lv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-53
Note
When a router is not present in the network, you need to specify static ARP entries on participating hosts. The hosts ARP table maps the IP address of the host device to the MAC address of the PFC2.
Note
The IP addresses in the following examples are the IP addresses used in Figure 8. These IP addresses were randomly selected; make sure that the IP addresses you use in your network configuration are unique.
Linux
These examples show how to configure the ARP table for hosts running the Linux operating system. This example shows how to configure Host A:
arp -s 11.0.0.1 00:11:11:11:11:11 -i eth0 route add 11.0.0.1 eth0
Sun Workstation
When using PBF to enable forwarding between two VLANs with Sun Workstation end hosts, note that there are limitations you must take into account when configuring the hosts.
PBF Limitations
PBF does not support ARP; you must set a static ARP entry on each Sun Workstation that participates in PBF. Each static ARP entry must point to the PBF MAC address that is mapped to the destination host. You must also configure the Sun Workstation to have a gateway. If the Sun Workstation needs to communicate to a different network, you must define the host routes for all networks that go through PBF, and if required, you must define a default gateway. For example, if host 10.0.0.1 on VLAN 40 needs to communicate with host 11.0.0.1 on VLAN 50, and assuming the PBF MAC address is 00-11-11-11-11-11, the static ARP entry would be as follows:
arp -s 11.0.0.1 00:11:11:11:11:11
where 00-11-11-11-11-11 is the PBF MAC address, and 11.0.0.1 is the IP address of the destination host.
16-54
78-13315-02
Chapter 16
You need to set only one dummy ARP entry for PBF-related traffic and the host routes for each destination host. If the number of hosts increase, you need to set the host route entries for each destination host. You can set up a startup file in /etc/rc2.d which has host route entries for each of the destination hosts. Setting up this file prevents you from having to key in all the host route entries after the Workstation is reset or rebooted. Entries in the file should use this form:
Route add host <destination Host IP Address> <dummy gateway IP Address>
The file that contains the host route entries needs to be started as one of the startup scripts. You can create the file in a directory that has full permissions for the root/superuser, set a soft link pointing to that file in /etc/rc2.d, or create the file in the /etc/rc2.d directory itself.
MS-Windows/NT/2000 Hosts
Similar to Sun Workstations setup, you must also set static ARP entries on Windows-based PCs. For Windows-based PCs, you do not need to set up any dummy gateways for switching between VLANs with PBF. This example shows how to configure static ARP entries in Windows-based platforms:
C:\> arp -s 11.0.0.1 00-11-11-11-11-11
In this example, 00-11-11-11-11-11 is the PBF MAC address and 11.0.0.1 is the IP address of the destination host. If you need to configure more hosts, you can create a batch file with ARP entries to each destination host and specify that Windows use this file at startup.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-55
Catalyst 6500 series switches PFC2 MAC address: 00-11-22-33-44-55 6/17 6/9
VLAN 1
VLAN 2
VLAN 1 Hosts IP: 44.0.0.1 - 44.0.0.17 MAC:00-20-20-20-20-20 00:20:20:20:20:2f Interface: Port 4/1
VLAN 2 Hosts IP: 43.0.0.1 - 43.0.0.17 MAC:00-0a-0a-0a-0a-0a 00:0a:0a:0a:0a:19 Interface: Port 4/2
This example shows the switch configuration file that was created to enable PBF between the hosts on VLAN 1 and VLAN 2. Only the first four hosts from each VLAN are shown in the example (44.0.0.1 through 44.0.0.4 and 43.0.0.1 through 43.0.0.4).
#security ACLs clear security acl all #adj set set security acl adjacency a_1 2 00-0a-0a-0a-0a-0a set security acl adjacency a_2 2 00-0a-0a-0a-0a-0b set security acl adjacency a_3 2 00-0a-0a-0a-0a-0c set security acl adjacency a_4 2 00-0a-0a-0a-0a-0d set security acl adjacency b_1 1 00-20-20-20-20-20 set security acl adjacency b_2 1 00-20-20-20-20-21 set security acl adjacency b_3 1 00-20-20-20-20-22 set security acl adjacency b_4 1 00-20-20-20-20-23 #ip1 set security acl ip ip1 permit arp set security acl ip ip1 redirect a_1 ip host 44.0.0.1 set security acl ip ip1 redirect a_2 ip host 44.0.0.2 set security acl ip ip1 redirect a_3 ip host 44.0.0.3 set security acl ip ip1 redirect a_4 ip host 44.0.0.4 set security acl ip ip1 permit ip any any #ip2 set security acl ip ip2 permit arp set security acl ip ip2 redirect b_1 ip host 43.0.0.1 set security acl ip ip2 redirect b_2 ip host 43.0.0.2 set security acl ip ip2 redirect b_3 ip host 43.0.0.3 set security acl ip ip2 redirect b_4 ip host 43.0.0.4 set security acl ip ip2 permit ip any any #pbf set set pbf mac 00-11-22-33-44-55 # commit security acl all set security acl map ip1 1 set security acl map ip2 2
16-56
58974
78-13315-02
Chapter 16
This example shows how to display MAC addresses learned by the switch for port 6/17 on VLAN 1:
Console> (enable) show cam dynamic 6/17 * = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry. X = Port Security Entry $ = Dot1x Security Entry VLAN ---1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Total Dest MAC/Route Des [CoS] Destination Ports or VCs / [Protocol Type] ---------------------- ------------------------------------------00-20-20-20-20-23 6/17 [ALL] 00-20-20-20-20-22 6/17 [ALL] 00-20-20-20-20-21 6/17 [ALL] 00-20-20-20-20-20 6/17 [ALL] 00-20-20-20-20-27 6/17 [ALL] 00-20-20-20-20-26 6/17 [ALL] 00-20-20-20-20-25 6/17 [ALL] 00-20-20-20-20-24 6/17 [ALL] 00-20-20-20-20-2b 6/17 [ALL] 00-20-20-20-20-2a 6/17 [ALL] 00-20-20-20-20-29 6/17 [ALL] 00-20-20-20-20-28 6/17 [ALL] 00-20-20-20-20-2f 6/17 [ALL] 00-20-20-20-20-2e 6/17 [ALL] 00-20-20-20-20-2d 6/17 [ALL] 00-20-20-20-20-2c 6/17 [ALL] Matching CAM Entries Displayed for 6/17 = 16 for port 6/9, vlan 2
This example shows how to display MAC addresses learned by the switch for port 6/9 on VLAN 2:
Console> (enable) show cam dynamic 6/9 * = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry. X = Port Security Entry $ = Dot1x Security Entry VLAN ---2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Total Dest MAC/Route Des [CoS] Destination Ports or VCs / [Protocol Type] ---------------------- ------------------------------------------00-0a-0a-0a-0a-0e 6/9 [ALL] 00-0a-0a-0a-0a-0f 6/9 [ALL] 00-0a-0a-0a-0a-0c 6/9 [ALL] 00-0a-0a-0a-0a-0d 6/9 [ALL] 00-0a-0a-0a-0a-0a 6/9 [ALL] 00-0a-0a-0a-0a-0b 6/9 [ALL] 00-0a-0a-0a-0a-19 6/9 [ALL] 00-0a-0a-0a-0a-18 6/9 [ALL] 00-0a-0a-0a-0a-17 6/9 [ALL] 00-0a-0a-0a-0a-16 6/9 [ALL] 00-0a-0a-0a-0a-15 6/9 [ALL] 00-0a-0a-0a-0a-14 6/9 [ALL] 00-0a-0a-0a-0a-13 6/9 [ALL] 00-0a-0a-0a-0a-12 6/9 [ALL] 00-0a-0a-0a-0a-11 6/9 [ALL] 00-0a-0a-0a-0a-10 6/9 [ALL] Matching CAM Entries Displayed for 6/9 = 16
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
16-57
This example shows how to display the PBF status and the PFC2 MAC address:
Console> (enable) show pbf Pbf status Mac address ---------------------------ok 00-11-22-33-44-55
16-58
78-13315-02
C H A P T E R
17
Configuring GVRP
This chapter describes how to configure the Generic Attribute Registration Protocol (GARP) VLAN Registration Protocol (GVRP) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How GVRP Works, page 17-i Default GVRP Configuration, page 17-ii GVRP Configuration Guidelines, page 17-ii Configuring GVRP, page 17-ii
Note
Note
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
17-1
Configuring GVRP
Feature GVRP global enable state GVRP per-trunk enable state GVRP dynamic creation of VLANs GVRP registration mode GVRP applicant state GARP timers
Default Value Disabled Disabled on all ports Disabled normal, with VLAN 1 set to fixed, for all ports normal (ports do not declare VLANs when in the STP1 blocking state)
You can configure the per-port GVRP state only on 802.1Q-capable ports. You must enable GVRP on both ends of an 802.1Q trunk link. The GVRP registration mode for VLAN 1 is always fixed and is not configurable. VLAN 1 is always carried by 802.1Q trunks on which GVRP is enabled. When VTP pruning is enabled, it runs on all GVRP-disabled 802.1Q trunk ports.
Configuring GVRP
These sections describe how to configure GVRP:
Enabling GVRP Globally, page 17-iii Enabling GVRP on Individual 802.1Q Trunk Ports, page 17-iii Enabling GVRP Dynamic VLAN Creation, page 17-iv Configuring GVRP Registration, page 17-v Configuring GVRP VLAN Declarations from Blocking Ports, page 17-vi Setting the GARP Timers, page 17-vii Displaying GVRP Statistics, page 17-viii Clearing GVRP Statistics, page 17-viii Disabling GVRP on Individual 802.1Q Trunk Ports, page 17-viii Disabling GVRP Globally, page 17-ix
17-2
78-13315-02
Chapter 17
This example shows how to enable GVRP and verify the configuration:
Console> (enable) set gvrp enable GVRP enabled Console> (enable) show gvrp configuration Global GVRP Configuration: GVRP Feature is currently enabled on the switch. GVRP dynamic VLAN creation is disabled. GVRP Timers(milliseconds) Join = 200 Leave = 600 LeaveAll = 10000 Port based GVRP Configuration: Port GVRP Status Registration ------------------------------------------------------- ----------- -----------2/1-2,3/1-8,7/1-24,8/1-24 Enabled Normal GVRP Participants running on 3/7-8. Console>
You can change the per-trunk GVRP configuration regardless of whether GVRP is enabled globally. However, GVRP will not function on any ports until you enable it globally. For information on configuring GVRP globally on the switch, see the Enabling GVRP Globally section on page 17-iii. There are two per-port GVRP states:
The static GVRP state configured in the command-line interface (CLI) and stored in NVRAM The actual GVRP state of the ports (active GVRP participants)
You can configure the static GVRP port-state on any 802.1Q-capable switch ports, regardless of the global GVRP enable state or whether the port is an 802.1Q trunk. However, in order for the port to become an active GVRP participant, you must enable GVRP globally and the port must be an 802.1Q trunk port, either through CLI configuration or Dynamic Trunking Protocol (DTP) negotiation.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
17-3
Configuring GVRP
To enable GVRP on individual 802.1Q-capable ports, perform this task in privileged mode: Task
Step 1 Step 2
The switch is in VTP transparent mode All trunk ports on the switch are 802.1Q trunks (the trunk connection to an MSFC is exempt from this restriction) GVRP is enabled on all trunk ports
If you enable dynamic VLAN creation, these configuration restrictions are imposed:
You cannot change the switch to VTP server or client mode You cannot disable GVRP on a trunk port running GVRP
If any port on the switch becomes an Inter-Switch Link (ISL) trunk (either by CLI configuration or negotiated using DTP) while dynamic VLAN creation is enabled, dynamic VLAN creation is disabled automatically until the conditions for enabling dynamic VLAN creation are restored.
Note
VLANs can only be created dynamically on 802.1Q trunks in the normal registration mode.
Note
Dynamic VLAN creation supports all VLAN types. To enable GVRP dynamic VLAN creation on the switch, perform this task in privileged mode: Task Command set gvrp dynamic-vlan-creation enable show gvrp configuration
Step 1 Step 2
This example shows how to enable dynamic VLAN creation on the switch:
Console> (enable) set gvrp dynamic-vlan-creation enable Dynamic VLAN creation enabled. Console> (enable)
17-4
78-13315-02
Chapter 17
Configuring GVRP Normal Registration, page 17-v Configuring GVRP Fixed Registration, page 17-v Configuring GVRP Forbidden Registration, page 17-vi
Command
Configure normal registration on an 802.1Q trunk set gvrp registration normal mod/port port. Verify the configuration. show gvrp configuration
This example shows how to configure normal registration on an 802.1Q trunk port:
Console> (enable) set gvrp registration normal 1/1 Registrar Administrative Control set to normal on port 1/1. Console> (enable)
This example shows how to configure fixed registration on an 802.1Q trunk port:
Console> (enable) set gvrp registration fixed 1/1 Registrar Administrative Control set to fixed on port 1/1. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
17-5
Configuring GVRP
This example shows how to configure forbidden registration on an 802.1Q trunk port:
Console> (enable) set gvrp registration forbidden 1/1 Registrar Administrative Control set to forbidden on port 1/1. Console> (enable)
Note
Configuring fixed registration on the other devices port also prevents undesirable STP topology reconfiguration. To configure an 802.1Q trunk port to send VLAN declarations when in the blocking state, perform this task in privileged mode: Task Configure an 802.1Q trunk port to send VLAN declarations when in the blocking state. Command set gvrp applicant state {normal | active} mod/port
This example shows how to configure a group of 802.1Q trunk ports to send VLAN declarations when in the blocking state:
Console> (enable) set gvrp applicant state active 4/2-3,4/9-10,4/12-24 Applicant was set to active on port(s) 4/2-3,4/9-10,4/12-24. Console> (enable)
Use the normal keyword to return to the default state (active mode disabled).
17-6
78-13315-02
Chapter 17
The commands set gvrp timer and show gvrp timer are aliases for set garp timer and show garp timer. The aliases may be used if desired.
Note
Modifying the GARP timer values affects the behavior of all GARP applications running on the switch, not just GVRP. (For example, GMRP uses the same timers.) You can modify the default GARP timer values on the switch. When setting the timer values, the value for leave must be greater than three times the join value (leave >= join * 3). The value for leaveall must be greater than the value for leave (leaveall > leave). If you attempt to set a timer value that does not adhere to these rules, an error is returned. For example, if you set the leave timer to 600 ms and you attempt to configure the join timer to 350 ms, an error is returned. Set the leave timer to at least 1050 ms and then set the join timer to 350 ms.
Caution
Set the same GARP timer values on all Layer 2-connected devices. If the GARP timers are set differently on Layer 2-connected devices, GARP applications (for example, GMRP and GVRP) do not operate successfully. To set the GARP timer values, perform this task in privileged mode: Task Command set garp timer {join | leave | leaveall} timer_value show garp timer
Step 1 Step 2
This example shows how to set the GARP timers and verify the configuration:
Console> (enable) set garp timer leaveall 10000 GMRP/GARP leaveAll timer value is set to 10000 milliseconds. Console> (enable) set garp timer leave 600 GMRP/GARP leave timer value is set to 600 milliseconds. Console> (enable) set garp timer join 200 GMRP/GARP join timer value is set to 200 milliseconds. Console> (enable) show garp timer Timer Timer Value (milliseconds) -------- -------------------------Join 200 Leave 600 LeaveAll 10000 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
17-7
Configuring GVRP
This example shows how to display GVRP statistics for port 1/1:
Console> (enable) show gvrp statistics 1/1 Join Empty Received: 0 Join In Received: 0 Empty Received: 0 LeaveIn Received: 0 Leave Empty Received: 0 Leave All Received: 40 Join Empty Transmitted: 156 Join In Transmitted: 0 Empty Transmitted: 0 Leave In Transmitted: 0 Leave Empty Transmitted: 0 Leave All Transmitted: 41 VTP Message Received: 0 Console> (enable)
This example shows how to clear all GVRP statistics on the switch:
Console> (enable) clear gvrp statistics all GVRP Statistics cleared for all ports. Console> (enable)
17-8
78-13315-02
Chapter 17
This example shows how to disable GVRP on 802.1Q trunk port 1/1:
Console> (enable) set gvrp disable 1/1 GVRP disabled on 1/1. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
17-9
Configuring GVRP
17-10
78-13315-02
C H A P T E R
18
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How VMPS Works, page 18-i Default VMPS and Dynamic Port Configuration, page 18-ii Dynamic Port VLAN Membership and VMPS Configuration Guidelines, page 18-iii Configuring VMPS and Dynamic Port VLAN Membership, page 18-iii Troubleshooting VMPS and Dynamic Port VLAN Membership, page 18-viii Dynamic Port VLAN Membership with VMPS Configuration Examples, page 18-ix Dynamic Port VLAN Membership with Auxiliary VLANs, page 18-xii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-1
If the assigned VLAN is restricted to a group of ports, VMPS verifies the requesting port against this group. If the VLAN is allowed on the port, the VLAN name is returned to the client. If the VLAN is not allowed on the port and VMPS is not in secure mode, the host receives an access denied response. If VMPS is in secure mode, the port is shut down. If a VLAN in the database does not match the current VLAN on the port and active hosts are on the port, VMPS sends an access denied or a port shutdown response based on the VMPS secure mode. You can configure a fallback VLAN name. If you connect a device with a MAC address that is not in the database, VMPS sends the fallback VLAN name to the client. If you do not configure a fallback VLAN and the MAC address does not exist in the database, VMPS sends an access denied response. If VMPS is in secure mode, it sends a port shutdown response. You can also make an explicit entry in the configuration table to deny access to specific MAC addresses for security reasons by specifying a --NONE-- keyword for the VLAN name. In this case, VMPS sends an access denied or port shutdown response. A dynamic port can belong to only one native VLAN in software releases prior to release 6.2(1)with software release 6.2(1), a port can belong to a native VLAN and an auxiliary VLAN. See the Dynamic Port VLAN Membership with Auxiliary VLANs section on page 18-xii for complete details. When the link comes up, a dynamic port is isolated from its static VLAN. The source MAC address from the first packet of a new host on the dynamic port is sent to VMPS, which attempts to match the MAC address to a VLAN in the VMPS database. If there is a match, VMPS provides the VLAN number to assign to the port. If there is no match, VMPS either denies the request or shuts down the port (depending on the VMPS secure mode setting). Multiple hosts (MAC addresses) can be active on a dynamic port if they are all in the same VLAN. If the link goes down on a dynamic port, the port returns to an isolated state. Any hosts that come online through the port are checked again with VMPS before the port is assigned to a VLAN.
Feature
VMPS server
VMPS enable state VMPS management domain VMPS TFTP server VMPS database configuration filename VMPS fallback VLAN VMPS secure mode VMPS no domain requests
18-2
78-13315-02
Chapter 18
Configuring Dynamic Port VLAN Membership with VMPS Dynamic Port VLAN Membership and VMPS Configuration Guidelines
Feature
VMPS Client
VMPS domain server VMPS reconfirm interval VMPS server retry count Dynamic ports
You must configure VMPS before you configure ports as dynamic. When you configure a port as dynamic, spanning tree PortFast is enabled automatically for that port. Automatic enabling of spanning tree PortFast prevents applications on the host from timing out and entering loops caused by incorrect configurations. You can disable spanning tree PortFast mode on a dynamic port. If you reconfigure a port from a static port to a dynamic port on the same VLAN, the port connects immediately to that VLAN. However, VMPS checks the legality of the specific host on the dynamic port after a certain period. Static secure ports cannot become dynamic ports. You must turn off security on the static secure port before it can become dynamic. Static ports that are trunking cannot become dynamic ports. You must turn off trunking on the trunk port before changing it from static to dynamic.
Note
The VTP management domain and the management VLAN of VMPS clients and the VMPS server must be the same. For more information, see Chapter 10, Configuring VTP, and Chapter 11, Configuring VLANs.
Creating the VMPS Database, page 18-iv Configuring VMPS, page 18-v Configuring Dynamic Ports on VMPS Clients, page 18-v Administering and Monitoring VMPS, page 18-vi Configuring Static VLAN Port Membership, page 18-vii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-3
Note
For an example ASCII text VMPS database configuration file, see the VMPS Database Configuration File Example section on page 18-ix. Follow these guidelines for creating the VMPS database file:
Begin the configuration file with the word VMPS, to prevent other types of configuration files from incorrectly being read by the VMPS server. Define the VMPS domainThe VMPS domain should correspond to the VTP domain name configured on the switch. Define the security modeVMPS can operate in open or secure mode. (Optional) Define a fallback VLANThe fallback VLAN is assigned if the MAC addresses of the connected host is not defined in the database. Define the MAC address-to-VLAN name mappingsEnter the MAC address of each host and the VLAN to which each should belong. Use the --NONE-- keyword as the VLAN name to deny the specified host network connectivity. A port is identified by the IP address of the switch and the module/port number of the port in the form mod/port. Define port groupsA port group is a logical group of ports. You can apply VMPS policies to individual ports or to port groups. The keyword all-ports specifies all the ports in the specified switch. Define VLAN groupsA VLAN group defines a logical group of VLANs. These logical groups define the VLAN port policies. Define VLAN port policiesVLAN port policies define the ports associated with a restricted VLAN. You can configure a restricted VLAN by defining the set of dynamic ports on which it can exist.
Determine the MAC addresses of the hosts you want to be assigned to VLANs dynamically. Create an ASCII text file on your workstation or PC that contains the MAC address-to-VLAN mappings. Move the ASCII text file to a TFTP server so it can be downloaded to the switch.
Step 3
18-4
78-13315-02
Chapter 18
Configuring Dynamic Port VLAN Membership with VMPS Configuring VMPS and Dynamic Port VLAN Membership
Configuring VMPS
When you enable VMPS, the switch downloads the VMPS database from the TFTP or rcp server and begins accepting VMPS requests. To configure VMPS, perform this task in privileged mode: Task
Step 1 Step 2
Configure the IP address of the TFTP or rcp server set vmps downloadserver ip_addr [filename] on which the ASCII text VMPS database configuration file resides. Enable VMPS. Verify the VMPS configuration. set vmps state enable show vmps
Step 3 Step 4
Command set vmps server ip_addr [primary] show vmps server set port membership mod/port dynamic show port [mod[/port]]
Specify the IP address of the VMPS server (the switch with VMPS enabled). Verify the VMPS server specification. Configure dynamic port VLAN membership assignment to a port. Verify the dynamic port assignments.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-5
This example shows how to specify the VMPS server, verify the VMPS server specification, assign dynamic ports, and verify the configuration:
Console> (enable) show vmps server VMPS domain server VMPS Status --------------------------------------192.0.0.6 192.0.0.1 primary 192.0.0.9 Console> (enable) set port membership 3/1-3 dynamic Ports 3/1-3 vlan assignment set to dynamic. Spantree port fast start option enabled for ports 3/1-3. Console> (enable) set port membership 1/2 dynamic Trunking port 1/2 vlan assignment cannot be set to dynamic. Console> (enable) set port membership 2/1 dynamic ATM LANE port 2/1 vlan assignment can not be set to dynamic. Console> show port Port Name Status Vlan Level Duplex Speed 1/1 connect dyn-3 normal full 100 1/2 connect trunk normal half 100 2/1 connect trunk normal full 155 3/1 connect dyn-5 normal half 10 3/2 connect dyn-5 normal half 10 3/3 connect dyn-5 normal half 10 Console> (enable)
Type 100 BASE-TX 100 BASE-TX OC3 MMF ATM 10 BASE-T 10 BASE-T 10 BASE-T
Note
The show port command displays dyn- under the Vlan column of the display when it has not yet been assigned a VLAN for a port.
To show VMPS statistics, perform this task in privileged mode: Task Show VMPS statistics. Command show vmps statistics
18-6
78-13315-02
Chapter 18
Configuring Dynamic Port VLAN Membership with VMPS Configuring VMPS and Dynamic Port VLAN Membership
To clear VMPS statistics, perform this task in privileged mode: Task Clear VMPS statistics. Command clear vmps statistics
To clear a VMPS server entry, perform this task in privileged mode: Task Clear a VMPS server entry. Command clear vmps server ip_addr
To reconfirm the dynamic port VLAN membership assignments, perform this task in privileged mode: Task
Step 1 Step 2
Verify the dynamic VLAN reconfirmation status. show dvlan statistics This example shows how to reconfirm dynamic port VLAN membership assignments:
Console> (enable) reconfirm vmps reconfirm process started Use 'show dvlan statistics' to see reconfirm status Console> (enable)
To download the VMPS database manually (to download a changed database configuration file or retry after a failed download attempt), perform this task in privileged mode: Task
Step 1
Download the VMPS database from the TFTP server, or specify a different VMPS database configuration file. Verify the VMPS database configuration file.
Step 2
show vmps
Configure static port VLAN membership assignment to a port. Verify the static port assignments.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-7
This example shows how to return a port to static VLAN port membership:
Console> (enable) set port membership 3/1 static Port 3/1 vlan assignment set to static. Console> (enable)
Troubleshooting VMPS, page 18-viii Troubleshooting Dynamic Port VLAN Membership, page 18-viii
Troubleshooting VMPS
Table 2 shows VMPS error messages you might see when you enter the set vmps state enable or the download vmps command.
Table 18-2 VMPS Error Messages
Recommended Action Specify the TFTP server address using the set vmps tftpserver ip_addr [filename] command. Enter a static route (using the set ip route command) to the TFTP server. Check the filename of the VMPS database configuration file on the TFTP server. Make sure the permissions are set correctly. The switch does not have sufficient resources to run the database. You can fix this problem by increasing the dynamic random-access memory (DRAM).
After VMPS successfully downloads the VMPS database configuration file, it parses the file and builds a database. When the parsing is complete, VMPS outputs statistics about the total number of lines parsed and the number of parsing errors. To obtain more information on VMPS parsing errors, set the syslog level for VMPS to 3 using the set logging level vmps 3 command.
VMPS is in secure mode and it is illegal for the host to connect to the port. The port shuts down to prevent the host from connecting to the network. More than 50 active hosts reside on a dynamic port.
To reenable a shut-down dynamic port, enter the set port enable mod/port command.
18-8
78-13315-02
Chapter 18
Configuring Dynamic Port VLAN Membership with VMPS Dynamic Port VLAN Membership with VMPS Configuration Examples
VMPS Database Configuration File Example, page 18-ix Dynamic Port VLAN Membership Configuration Example, page 18-x
The security mode is open. The default is used for the fallback VLAN. MAC address-to-VLAN name mappingsThe MAC address of each host and the VLAN to which each host belongs is defined. Port groups are defined. VLAN groups are defined. VLAN port policies are defined for the ports associated with restricted VLANs.
!VMPS File Format, version 1.1 ! Always begin the configuration file with ! the word VMPS ! !vmps domain <domain-name> ! The VMPS domain must be defined. !vmps mode {open | secure} ! The default mode is open. !vmps fallback <vlan-name> !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 ! ! !MAC Addresses ! vmps-mac-addrs ! ! address <addr> vlan-name <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 !
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-9
!Port Groups ! !vmps-port-group <group-name> ! device <device-id> { port <port-name> | all-ports } ! vmps-port-group WiringCloset1 device 198.92.30.32 port 3/2 device 172.20.26.141 port 2/8 vmps-port-group Executive Row device 198.4.254.222 port 1/2 device 198.4.254.222 port 1/3 device 198.4.254.223 all-ports ! ! !VLAN groups ! !vmps-vlan-group <group-name> ! vlan-name <vlan-name> ! vmps-vlan-group Engineering vlan-name hardware vlan-name software ! ! !VLAN port Policies ! !vmps-port-policies {vlan-name <vlan_name> | vlan-group <group-name> } ! { port-group <group-name> | device <device-id> port <port-name> } ! vmps-port-policies vlan-group Engineering port-group WiringCloset1 vmps-port-policies vlan-name Green device 198.92.30.32 port 4/8 vmps-port-policies vlan-name Purple device 198.4.254.22 port 1/2 port-group Executive Row
The VMPS server and the VMPS client are separate switches. Switch 1 is the primary VMPS server. Switch 3 and Switch 10 are secondary VMPS servers. End stations are connected to these clients:
Switch 2 Switch 9
The database configuration file is called Bldg-G.db and is stored on a TFTP server with IP address 172.20.22.7.
18-10
78-13315-02
Chapter 18
Configuring Dynamic Port VLAN Membership with VMPS Dynamic Port VLAN Membership with VMPS Configuration Examples
Catalyst 6500 series switches Primary VMPS Server 1 Switch 1 172.20.26.150 3/1
Switch 2
TFTP server
172.20.22.7 Client
End station 1
172.20.26.151
Catalyst 6000
Switch 4
Ethernet segment
172.20.26.153
Switch 5
172.20.26.154
Switch 6
172.20.26.155
Switch 7
172.20.26.156
Switch 8
172.20.26.157 Client
Switch 9
End station 2 172.20.26.158 Catalyst 6500 series switches Secondary VMPS Server 3 Switch 10 172.20.26.159
55908
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-11
Configure the IP address of the TFTP server on which the ASCII file resides:
Console> (enable) set vmps tftpserver 172.20.22.7 Bldg-G.db
b.
Enable VMPS:
Console> (enable) set vmps state enable
After entering these commands, the file Bldg-G.db is downloaded to Switch 1. Switch 1 becomes the VMPS server.
Step 2
b.
c.
Step 3
Step 4
Connect End Station 2 on port 3/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 to assign to port 3/1. Because spanning tree PortFast mode is enabled by default on dynamic ports, port 3/1 connects immediately and enters forwarding mode. Repeat Steps 2 and 3 to configure the VMPS server addresses and assign dynamic ports on each VMPS client switch.
Step 5
This feature requires software release 6.2(1) or later releases. This section describes how to configure a dynamic port to belong to two VLANsa native VLAN and an auxiliary VLAN. This section uses the following terminology:
Auxiliary VLANSeparate VLAN for IP phones Native VLANTraditional VLAN for data Auxiliary VLAN IDVLAN ID of an auxiliary VLAN Native VLAN IDVLAN ID of a native VLAN
18-12
78-13315-02
Chapter 18
Configuring Dynamic Port VLAN Membership with VMPS Dynamic Port VLAN Membership with Auxiliary VLANs
Prior to software release 6.2(1), dynamic ports could only belong to one VLAN. You could not enable the dynamic port VLAN feature on ports that carried a native VLAN and an auxiliary VLAN. With software release 6.2(1) and later releases, the dynamic ports can belong to two VLANs. The switch port configured for connecting an IP phone can have separate VLANs configured for carrying:
Voice traffic to and from the IP phone (auxiliary VLAN) Data traffic to and from the PC connected to the switch through the access port of the IP phone (native VLAN)
Configuration Guidelines, page 18-xiii Configuring Dynamic Port VLAN Membership with Auxiliary VLANs, page 18-xiii
Note
For detailed information on auxiliary VLANs and Cisco voice-over-IP networks, see Chapter 44, Configuring a VoIP Network.
Configuration Guidelines
These guidelines and restrictions apply to configuring dynamic port VLAN membership for auxiliary VLANs:
Configuration of the native VLAN ID is dynamic for the PC connected to the access port of the IP phone. Configuration of the auxiliary VLAN ID is not dynamic; you need to configure it manually. As the auxiliary VLAN ID is manually configured, the VMPS server is queried for packets coming from the PC, not for packets coming from the IP phone. All packets except Cisco Discovery Protocol (CDP) packets from the IP phone are tagged with the auxiliary VLAN ID. All packets tagged with the auxiliary VLAN ID are considered to be packets from the phone and all other packets are considered to be packets from the PC. When configuring the auxiliary VLAN ID with 802.1p or untagged frames, you need to configure the VMPS server with the IP phones MAC address (see the Dynamic Port VLAN Membership with VMPS Configuration Examples section on page 18-ix for information on configuring VMPS). For dynamic ports, the auxiliary VLAN ID cannot be the same as the native VLAN ID assigned by VMPS for the dynamic port. See the Dynamic Port VLAN Membership and VMPS Configuration Guidelines section on page 18-iii prior to configuring any port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18-13
Console> (enable) set port auxiliaryvlan 5/9 dot1p Port 5/9 allows the connected device send and receive packets with 802.1p priority. Console> (enable)
This example shows that the auxiliary VLAN ID specified cannot be the same as the native VLAN ID:
Console> (enable) set port auxiliaryvlan 5/10 223 Auxiliary vlan cannot be set to 223 as PVID=223. Console> (enable)
18-14
78-13315-02
C H A P T E R
19
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Checking Module Status, page 19-i Checking Port Status, page 19-ii Checking Port Capabilities, page 19-iv Using Telnet, page 19-iv Using Secure Shell Encryption for Telnet Sessions, page 19-v Monitoring User Sessions, page 19-vi Using Ping, page 19-vii Using Layer 2 Traceroute, page 19-ix Using IP Traceroute, page 19-x
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
19-1
(enable) show module Ports Module-Type ----- ------------------------2 1000BaseX Supervisor 24 100BaseFX MM Ethernet 8 1000BaseX Ethernet 48 10/100BaseTX (Telco) 48 10/100BaseTX (RJ-45) Serial-Num ----------SAD03040546 SAD03110020 SAD03070194 SAD03140787 SAD03181291
Status -------ok ok ok ok ok
Mod MAC-Address(es) --- -------------------------------------1 00-50-f0-a8-26-b2 to 00-50-f0-a8-26-b3 00-50-f0-a8-26-b0 to 00-50-f0-a8-26-b1 00-50-3e-8d-64-00 to 00-50-3e-8d-67-ff 2 00-50-54-6c-e9-a8 to 00-50-54-6c-e9-bf 3 00-50-54-6c-93-6c to 00-50-54-6c-93-73 4 00-50-54-bf-59-64 to 00-50-54-bf-59-93 5 00-50-f0-ac-30-54 to 00-50-f0-ac-30-83
Mod Sub-Type Sub-Model Sub-Serial Sub-Hw --- ----------------------- ------------------- ----------- -----1 L2 Switching Engine I WS-F6020 SAD03040312 1.0 Console> (enable)
Mod Module-Name Serial-Num --- ------------------- ----------4 SAD03140787 Mod MAC-Address(es) Hw Fw Sw --- -------------------------------------- ------ ---------- ----------------4 00-50-54-bf-59-64 to 00-50-54-bf-59-93 0.103 4.2(0.24)V 5.2(1)CSX Console> (enable)
19-2
78-13315-02
Chapter 19
This example shows how to see information on the ports on a specific module only:
Console> (enable) show port 1 Port Name Status ----- ------------------ ---------1/1 connected 1/2 notconnect Port ----1/1 1/2 Vlan Duplex Speed Type ---------- ------ ----- -----------1 full 1000 1000BaseSX 1 full 1000 1000BaseSX Shutdown -------No No Trap -------disabled disabled IfIndex ------3 4
Port Broadcast-Limit Broadcast-Drop -------- --------------- -------------------1/1 0 1/2 0 Port ----1/1 1/2 Port Send FlowControl admin oper -------- -------desired off desired off Status Receive FlowControl admin oper -------- -------off off off off Admin Group ----65 65 RxPause TxPause
---------- ---------0 0 0 0
Channel Mode ----- ---------- --------1/1 connected auto 1/2 notconnect auto
Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize ----- ---------- ---------- ---------- ---------- --------1/1 0 0 0 0 0 1/2 0 0 0 0 0 Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants ----- ---------- ---------- ---------- ---------- --------- --------- --------1/1 0 0 0 0 0 0 0 1/2 0 0 0 0 0 0 0 Last-Time-Cleared -------------------------Tue Jun 8 1999, 10:01:35 Console> (enable)
RxPause
TxPause
---------- ---------0 0
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
19-3
Port
Status
Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize ----- ---------- ---------- ---------- ---------- --------1/1 0 0 0 0 0 Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants ----- ---------- ---------- ---------- ---------- --------- --------- --------1/1 0 0 0 0 0 0 0 Last-Time-Cleared -------------------------Tue Jun 8 1999, 10:01:35 Console> (enable)
Using Telnet
You can access the switch command-line interface (CLI) using Telnet. In addition, you can use Telnet from the switch to access other devices in the network. Up to eight simultaneous Telnet sessions are possible.
19-4
78-13315-02
Chapter 19
Checking Port Status and Connectivity Using Secure Shell Encryption for Telnet Sessions
To Telnet to another device on the network from the switch, perform this task in privileged mode: Task Open a Telnet session with a remote host. Command telnet host [port]
This example shows how to Telnet from the switch to a remote host:
Console> (enable) telnet labsparc Trying 172.16.10.3... Connected to labsparc. Escape character is '^]'. UNIX(r) System V Release 4.0 (labsparc) login:
To use the Secure Shell encryption feature commands, you must be running an encryption image. The set crypto key rsa, clear crypto key rsa, and show crypto key commands are used for encryption. See Chapter 25, Working with System Software Images for the software image naming conventions used for the encryption images. The Secure Shell encryption feature provides security for Telnet sessions to the switch. Secure Shell encryption is supported for remote logins to the switch only. Telnet sessions initiated from the switch cannot be encrypted. To use this feature, you must install the application on the client accessing the switch, and you must configure Secure Shell encryption on the switch. The current implementation of Secure Shell encryption supports SSH version 1, the DES and 3DES encryption methods, and can be used with RADIUS and TACACS+ authentication. To configure authentication with Secure Shell encryption, use the telnet keyword in the set authentication commands.
Note
If you are using Kerberos to authenticate to the switch, you will not be able to use the Secure Shell encryption feature. To enable Secure Shell encryption on the switch, perform this task in privileged mode: Task Create the RSA host key. Command set crypto key rsa nbits [force]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
19-5
The nbits value specifies the RSA key size. The valid key size range is 512 to 2048 bits. A key size with a larger number provides higher security but takes longer to generate. You can enter the optional force keyword to regenerate the keys and suppress the warning prompt of overwriting existing keys.
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):
Console> (enable) show users Session User Location -------- ---------------- ------------------------console telnet sam-pc.bigcorp.com * telnet jake-mac.bigcorp.com Console> (enable)
This example shows the output of the show users command when TACACS+ authentication is enabled for console and Telnet sessions:
Console> (enable) show users Session User Location -------- ---------------- ------------------------console sam telnet jake jake-mac.bigcorp.com telnet tim tim-nt.bigcorp.com * telnet suzy suzy-pc.bigcorp.com Console> (enable)
This example shows how to display information about user sessions using the noalias keyword to display the IP addresses of connected hosts:
Console> (enable) show users noalias Session User Location -------- ---------------- ------------------------console telnet 10.10.10.12 * telnet 10.10.20.46 Console> (enable)
To disconnect an active user session, perform this task in privileged mode: Task Disconnect an active user session on the switch. Command disconnect {console | ip_addr}
19-6
78-13315-02
Chapter 19
This example shows how to disconnect an active console port session and an active Telnet session:
Console> (enable) show users Session User Location -------- ---------------- ------------------------console sam telnet jake jake-mac.bigcorp.com telnet tim tim-nt.bigcorp.com * telnet suzy suzy-pc.bigcorp.com Console> (enable) disconnect console Console session disconnected. Console> (enable) disconnect tim-nt.bigcorp.com Telnet session from tim-nt.bigcorp.com disconnected. (1) Console> (enable) show users Session User Location -------- ---------------- ------------------------telnet jake jake-mac.bigcorp.com * telnet suzy suzy-pc.bigcorp.com Console> (enable)
Using Ping
These sections describe how to use IP ping:
Understanding How Ping Works, page 19-vii Executing Ping, page 19-viii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
19-7
Normal responseThe normal response (hostname is alive) occurs in 1 to 10 seconds, depending on network traffic. Destination does not respondIf the host does not respond, a no answer message is returned. Unknown hostIf the host does not exist, an unknown host message is returned. Destination unreachableIf the default gateway cannot reach the specified network, a destination unreachable message is returned. Network or host unreachableIf there is no entry in the route table for the host or network, a network or host unreachable message is returned.
Executing Ping
To ping another device on the network from the switch, perform one of these tasks in normal or privileged mode: Task Ping a remote host. Ping a remote host using ping options. Command ping host ping -s host [packet_size] [packet_count]
This example shows how to ping a remote host from normal executive mode:
Console> ping labsparc labsparc is alive Console> ping 72.16.10.3 12.16.10.3 is alive Console>
This example shows how to ping a remote host using the ping -s option:
Console> ping -s 12.20.5.3 800 10 PING 12.20.2.3: 800 data bytes 808 bytes from 12.20.2.3: icmp_seq=0. 808 bytes from 12.20.2.3: icmp_seq=1. 808 bytes from 12.20.2.3: icmp_seq=2. 808 bytes from 12.20.2.3: icmp_seq=3. 808 bytes from 12.20.2.3: icmp_seq=4. 808 bytes from 12.20.2.3: icmp_seq=5. 808 bytes from 12.20.2.3: icmp_seq=6. 808 bytes from 12.20.2.3: icmp_seq=7. 808 bytes from 12.20.2.3: icmp_seq=8. 808 bytes from 12.20.2.3: icmp_seq=9.
time=2 time=3 time=2 time=2 time=2 time=2 time=2 time=2 time=2 time=3
ms ms ms ms ms ms ms ms ms ms
----17.20.2.3 PING Statistics---10 packets transmitted, 10 packets received, 0% packet loss round-trip (ms) min/avg/max = 2/2/3 Console>
19-8
78-13315-02
Chapter 19
This example shows how to enter a ping command in privileged mode specifying the number of packets, the packet size, and the timeout period:
Console> (enable) 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 Console> (enable)
Layer 2 Traceroute Usage Guidelines, page 19-ix Identifying a Layer 2 Path, page 19-x
The Layer 2 Traceroute utility works for unicast traffic only. You must enable CDP on all of the Catalyst 5000 and 6000 family switches in the network. (See Chapter 29, Configuring CDP for information about enabling CDP.) If any devices in the path are transparent to CDP, l2trace will not be able to trace the Layer 2 path through those devices. You can use this utility from a switch that is not in the Layer 2 path between the source and the destination; however, all of the switches in the path, including the source and destination, must be reachable from the switch. All switches in the path must be reachable from each other. You can trace a Layer 2 path by specifying the source and destination IP addresses (or IP aliases) or the MAC addresses. If the source and destination belong to multiple VLANs and you specify MAC addresses, you can also specify a VLAN. The source and destination switches must belong in the same VLAN. The maximum number of hops an l2trace query will try is 10; this includes hops involved in source tracing. The Layer 2 Traceroute utility does not work with Token Ring VLANs, or when multiple devices are attached to one port through hubs, or when multiple neighbors are on a port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
19-9
(Optional) Trace a Layer 2 path using MAC l2trace {src-mac-addr} {dest-mac-addr} [vlan] [detail] addresses. (Optional) Trace a Layer 2 path using IP addresses or IP aliases. l2trace {src-ip-addr} {dest-ip-addr} [detail]
This example shows the source and destination MAC addresses specified, with no VLAN specified, and the detail option specified. For each Catalyst 5000 and 6000 family switch found in the path, the output shows the device type, device name, device IP address, in port name, in port speed, in port duplex mode, out port name, out port speed, and out port duplex mode.
Console> (enable) l2trace 00-01-22-33-44-55 10-22-33-44-55-66 detail l2trace vlan number is 10. 00-01-22-33-44-55 found in C5500 named wiring-1 on port 4/1 10Mb half duplex C5500:wiring-1:192.168.242.10:4/1 10Mb half duplex -> 5/2 100MB full duplex C5000:backup-wiring-1:192.168.242.20:1/1 100Mb full duplex -> 3/1 100MB full duplex C5000:backup-core-1:192.168.242.30:4/1 100 MB full duplex -> 1/1 100MB full duplex C6000:core-1:192.168.242.40:1/1 100MB full duplex -> 2/1 10MB half duplex. 10-22-33-44-55-66 found in C6000 named core-1 on port 2/1 10MB half duplex.
Using IP Traceroute
The IP Traceroute utility allows you to identify the path that packets take through the network at Layer 3 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. These sections describe how to use IP Traceroute:
Understanding How IP Traceroute Works, page 19-x Executing IP Traceroute, page 19-xi
19-10
78-13315-02
Chapter 19
To determine when a datagram reaches its destination, traceroute sets the UDP destination port in the datagram to a very large value which 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 to the source. This message indicates to the traceroute facility that it has reached the destination. Switches can participate as the source or destination of the traceroute command but will not appear as a hop in the traceroute command output.
Executing IP Traceroute
To trace the path that packets take through the network, perform this task in privileged mode: Task Execute IP traceroute to trace the Layer 3 path that packets take through the network. Command traceroute [-n] [-w wait_time] [-i initial_ttl] [-m max_ttl] [-p dest_port] [-q nqueries] [-t tos] host [data_size]
This example shows how to perform a traceroute with six queries to each hop with packets of 1400 bytes each:
Console> (enable) traceroute -q 6 10.1.1.100 1400 traceroute to 10.1.1.100 (10.1.1.100), 30 hops max, 1440 byte packets 1 10.1.1.1 (10.1.1.1) 2 ms 2 ms 2 ms 1 ms 2 ms 2 ms 2 10.1.1.100 (10.1.1.100) 2 ms 4 ms 3 ms 3 ms 3 ms 3 ms Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
19-11
19-12
78-13315-02
C H A P T E R
20
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Setting the System Name and System Prompt, page 20-i Setting the System Contact and Location, page 20-iii Setting the System Clock, page 20-iv Creating a Login Banner, page 20-iv Defining Command Aliases, page 20-v Defining IP Aliases, page 20-vi Configuring Static Routes, page 20-vii Configuring Permanent and Static ARP Entries, page 20-viii Scheduling a System Reset, page 20-ix Power Management, page 20-xi Environmental Monitoring, page 20-xvi Displaying System Status Information for Technical Support, page 20-xvii
Assign the sc0 interface an IP address that is mapped to the switch name on the DNS server Enable DNS on the switch Specify at least one valid DNS server on the switch
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-1
If the DNS lookup is successful, the DNS host name of the switch is configured as the system name of the switch and is saved in NVRAM (the domain name is removed). 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, unless you manually configure the prompt using the set prompt command. The switch performs a DNS lookup for the system name whenever one of the following occurs:
The switch is initialized (power on or reset) You configure the IP address on the sc0 interface using the command-line interface (CLI) or Simple Network Management Protocol (SNMP) You configure a route using the set ip route command You clear the system name using the set system name command You enable DNS or specify DNS servers
Setting the Static System Name, page 20-ii Setting the Static System Prompt, page 20-iii Clearing the System Name, page 20-iii
Note
When you set the system name, the system name is used as the system prompt. You can override the prompt string with the set prompt command. This example shows how to configure the system name on the switch:
Console> (enable) set system name Catalyst 6000 System name set. Catalyst 6000> (enable)
20-2
78-13315-02
Chapter 20
This example shows how to set the static system prompt on the switch:
Console> (enable) set prompt Catalyst6509> Catalyst6509> (enable)
Command set system contact [contact_string] set system location [location_string] show system
Set the system contact. Set the system location. Verify the global system information.
This example shows how to set the system contact and location and verify the configuration:
Catalyst 6000> (enable) set system contact sysadmin@corp.com System contact set. Catalyst 6000> (enable) set system location Sunnyvale CA System location set. Catalyst 6000> (enable) show system PS1-Status PS2-Status Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout ---------- ---------- ---------- ---------- ---------- -------------- --------ok none ok off ok 0,04:04:07 20 min
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-3
PS1-Type PS2-Type Modem Baud Traffic Peak Peak-Time ---------- ---------- ------- ----- ------- ---- ------------------------other none disable 9600 0% 0% Tue Jun 23 1998, 16:51:36 System Name System Location System Contact ------------------------ ------------------------ -----------------------Catalyst 6000 Sunnyvale CA sysadmin@corp.com Catalyst 6000> (enable)
You can configure the switch to obtain the time and date using the Network Time Protocol (NTP). For information on configuring NTP, see Chapter 31, Configuring NTP. To set the system clock, perform this task in privileged mode: Task Command set time [day_of_week] [mm/dd/yy] [hh:mm:ss] show time
Step 1 Step 2
Set the system clock. Display the current date and time.
This example shows how to set the system clock and display the current date and time:
Console> (enable) set time Mon 06/15/98 12:30:00 Mon Jun 15 1998, 12:30:00 Console> (enable) show time Mon Jun 15 1998, 12:30:02 Console> (enable)
Configuring a Login Banner, page 20-v Clearing the Login Banner, page 20-v
20-4
78-13315-02
Chapter 20
Enter the message of the day. Display the login banner by logging out and logging back into the switch.
This example shows how to configure the login banner on the switch using the # symbol as the beginning and ending delimiter:
Console> (enable) set banner motd # Welcome to the Catalyst 6000 Switch! Unauthorized access prohibited. Contact sysadmin@corp.com for access. # MOTD banner set Console> (enable)
Command set alias name command [parameter] [parameter] show alias [name]
Define a command alias on the switch. Verify the currently defined command aliases.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-5
This example shows how to define two command aliases, sm8 and sp8. sm8 issues the show module 8 command, and sp8 issues the show port 8 command. This example also shows how to verify the currently defined command aliases and what happens when you enter the command aliases at the command line:
Console> (enable) set alias sm8 show module 8 Command alias added. Console> (enable) set alias sp8 show port 8 Command alias added. Console> (enable) show alias sm8 show module 8 sp8 show port 8 Console> (enable) sm8 Mod Module-Name Ports Module-Type Model Serial-Num Status --- ------------------- ----- --------------------- --------- --------- ------8 2 DS3 Dual PHY ATM WS-X5166 007243262 ok Mod MAC-Address(es) Hw Fw --- -------------------------------------- ------ ---------8 00-60-2f-45-26-2f 2.0 1.3 Console> (enable) sp8 Port Name Status Vlan Level Duplex Speed Type ----- ------------------ ---------- ---------- ------ -----8/1 notconnect trunk normal full 8/2 notconnect trunk normal full Port ----8/1 8/2 ifIndex ------285 286 Sw ----------------51.1(103)
Use 'session' command to see ATM counters. Last-Time-Cleared -------------------------Thu Sep 10 1998, 16:56:08 Console> (enable)
Defining IP Aliases
You can use the set ip alias command to define textual aliases for IP addresses. IP aliases can make it easier to refer to other network devices when using ping, telnet, and other commands, even when DNS is not enabled. The name argument defines the IP alias. The ip_addr argument defines the IP address to which the name refers. To define an IP alias on the switch, perform this task in privileged mode: Task
Step 1 Step 2
20-6
78-13315-02
Chapter 20
This example shows how to define two IP aliases, sparc and cat6509. sparc refers to IP address 172.20.52.3, and cat6509 refers to IP address 172.20.52.71. This example also shows how to verify the currently defined IP aliases and what happens when you use the IP aliases with the ping command:
Console> (enable) set ip alias sparc 172.20.52.3 IP alias added. Console> (enable) set ip alias cat6509 172.20.52.71 IP alias added. Console> (enable) show ip alias default 0.0.0.0 sparc 172.20.52.3 cat6509 172.20.52.71 Console> (enable) ping sparc sparc is alive Console> (enable) ping cat6509 cat6509 is alive Console> (enable)
For information on configuring a default gateway (default route), see the Configuring Default Gateways section on page 3-6. In some situations, you might need to add a static routing table entry for one or more destination networks. Static route entries consist of the destination IP network address, the IP address of the next hop router, and the metric (hop count) for the route. The destination IP network address can be variably subnetted to support Classless Interdomain Routing (CIDR). You can specify the subnet mask (netmask) for a destination network using the number of subnet bits or using the subnet mask in dotted decimal format. If no subnet mask is specified, the default (classful) mask is used. The switch forwards IP traffic generated by the switch using the longest address match in the IP routing table. The switch does not use the IP routing table to forward traffic from connected devices, only IP traffic generated by the switch itself (for example, Telnet, TFTP, and ping). To configure a static route, perform this task in privileged mode: Task Command set ip route destination[/netmask] gateway [metric]
Step 1 Step 2
Verify that the static route appears correctly in the show ip route IP routing table. This example shows how to configure a static route on the switch and how to verify that the route is configured properly in the routing table:
Console> (enable) set ip route 172.16.16.0/20 172.20.52.127 Route added. Console> (enable) show ip route Fragmentation Redirect Unreachable -----------------------------enabled enabled enabled
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-7
The primary gateway: 172.20.52.121 Destination Gateway RouteMask --------------- --------------- ---------172.16.16.0 172.20.52.127 0xfffff000 default 172.20.52.121 0x0 172.20.52.120 172.20.52.124 0xfffffff8 default default 0xff000000 Console> (enable)
Flags ----UG UG U UH
Use -------0 0 1 0
Command set arp [dynamic | permanent | static] {ip_addr hw_addr} set arp agingtime seconds show arp
Configure a static or permanent ARP entry. (Optional) Specify the ARP aging time. Verify the ARP configuration.
20-8
78-13315-02
Chapter 20
Command
Clear a dynamic, static, or permanent ARP entry. clear arp [dynamic | permanent | static] {ip_addr hw_addr} Verify the ARP configuration. show arp
This example shows how to clear all permanent ARP entries and verify the configuration:
Console> (enable) clear arp permanent Permanent ARP entries cleared. Console> (enable) Console> (enable) show arp ARP Aging time = 300 sec + - Permanent Arp Entries * - Static Arp Entries 172.20.52.1 at 00-60-5c-86-5b-28 port 8/1 on vlan 1 * 20.1.1.1 at 00-80-1c-93-80-40 port 8/1 on vlan 1 Console> (enable)
Scheduling a Reset at a Specific Time, page 20-x Scheduling a Reset Within a Specified Amount of Time, page 20-x
You can use the schedule reset command to schedule a system to reset at a future time. This feature allows you to upgrade software during business hours and schedule the system upgrade after business hours to avoid a major impact on users. You can also use the schedule reset feature when trying out new features on a switch. To avoid misconfiguration or the possibility of losing network connectivity to the device, you can set up the startup configuration feature and schedule a reset to occur in 30 minutes. You can then change the configuration, and if connectivity is lost, the system will reset in 30 minutes and return to the previous configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-9
Note
The maximum scheduled reset time is 24 days. To schedule a reset at a specific time, perform this task in privileged mode: Task Command reset [mindown] at {hh:mm} [mm/dd] [reason] show reset
Step 1 Step 2
Schedule the reset time at a specific time. Verify the scheduled reset.
Note
The minimum downtime argument is valid only if the system has a standby supervisor engine. This example shows how to schedule a reset at a specific time:
Console> (enable) reset at 20:00 Reset scheduled at 20:00:00, Wed Aug 18 1999. Proceed with scheduled reset? (y/n) [n]? y Reset scheduled for 20:00:00, Wed Aug 18 1999 (in 0 day 5 hours 40 minutes). Console> (enable)
This example shows how to schedule a reset at a specific time and include a reason for the reset:
Console> (enable) reset at 23:00 8/18 Software upgrade to 5.3(1). Reset scheduled at 23:00:00, Wed Aug 18 1999. Reset reason: Software upgrade to 5.3(1). Proceed with scheduled reset? (y/n) [n]? y Reset scheduled for 23:00:00, Wed Aug 18 1999 (in 0 day 8 hours 39 minutes). Console> (enable)
20-10
78-13315-02
Chapter 20
To schedule a reset within a specified time, perform this task in privileged mode: Task
Step 1 Step 2
Schedule the reset time within a specific amount of time. Verify the scheduled reset.
Note
The minimum downtime argument is valid only if the system has a standby supervisor engine. This example shows how to schedule a reset in a specified time:
Console> (enable) reset in 5:20 Configuration update Reset scheduled in 5 hours 20 minutes. Reset reason: Configuration update Proceed with scheduled reset? (y/n) [n]? y Reset scheduled for 19:56:01, Wed Aug 18 1999 (in 5 hours 20 minutes). Reset reason: Configuration update Console> (enable)
Power Management
This section describes power management in the Catalyst 6000 family switches and includes the following information:
Enabling or Disabling Power Redundancy, page 20-xi Using the CLI to Power Modules Up or Down, page 20-xiii Determining System Power Requirements, page 20-xiv
Note
In systems with redundant power supplies, both power supplies must be of the same wattage. The Catalyst 6000 family switches allow you to mix AC-input and DC-input power supplies in the same chassis. For detailed information on supported power supply configurations for each chassis, refer to the Catalyst 6000 Family Installation Guide. Catalyst 6000 family modules have different power requirements and, depending upon the wattage of the power supply, certain switch configurations might require more power than a single power supply can provide. Although the power management feature allows you to power all installed modules with two power supplies, redundancy is not supported in this configuration. Redundant and nonredundant power configurations are discussed in the following sections.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-11
turn on two power supplies of equal wattage, each concurrently provides approximately half of the required power to the system. Load sharing and redundancy are enabled automatically; no software configuration is required. With redundancy enabled, if you power up the system with two power supplies of unequal wattage, both power supplies come online but a syslog message displays that the lower wattage power supply will be disabled. If the active power supply fails, the lower wattage power supply that was disabled comes online and, if necessary, modules are powered down to accommodate the lower wattage power supply. In a nonredundant configuration, the power available to the system is the combined power capability of both power supplies. The system powers up as many modules as the combined capacity allows. However, if one supply should fail and there is not enough power for all previously powered up modules, the system powers down some modules. These modules are marked as power-deny in the show module Status field. You can change the configuration of the power supplies to redundant or nonredundant at any time. If you switch from a redundant to a nonredundant configuration, both power supplies are enabled (even a power supply that was disabled because it was of a lower wattage than the other power supply). If you change from a nonredundant to a redundant configuration, both power supplies are initially enabled, and if they are of the same wattage, remain enabled. If they are of different wattage, a syslog message displays and the lower wattage supply is disabled. Table 1 describes how the system responds to changes in the power supply configuration.
Table 20-1 Effects of Power Supply Configuration Changes
Effect
System log and syslog messages are generated. System power is increased to the combined power capability of both supplies. The modules marked as power-deny in the show module Status field are brought up if there is sufficient power. System log and syslog messages are generated. System power is the power capability of the larger wattage supply. If there is not enough power for all previously powered-up modules, some modules are powered down and marked as power-deny in the show module Status field. System log and syslog messages are generated. System power equals the power capability of one supply. No change in the module status because the power capability is unchanged. System log and syslog messages are generated. System power is the combined power capability of both supplies. The modules marked as power-deny in the show module Status field are brought up if there is sufficient power. System log and syslog messages are generated. The system disables the lower wattage power supply; the higher wattage supply powers the system.
Nonredundant to redundant
20-12
78-13315-02
Chapter 20
Configuration Change Lower wattage power supply is inserted with redundancy enabled Higher or lower wattage power supply is inserted with redundancy disabled
Effect
System log and syslog messages are generated. The system disables the lower wattage power supply; the higher wattage supply powers the system. System log and syslog messages are generated. System power is increased to the combined power capability of both supplies. The modules marked as power-deny in the show module Status field are brought up if there is sufficient power. System log and syslog messages are generated. If the power supplies are of equal wattage, there is no change in the module status because the power capability is unchanged. If the power supplies are of unequal wattage and the lower wattage supply is removed, there is no change in the module status. If the power supplies are of unequal wattage and the higher wattage supply is removed, and if there is not enough power for all previously powered-up modules, some modules are powered down and marked as power-deny in the show module Status field.
System log and syslog messages are generated. System power is decreased to the power capability of one supply. If there is not enough power for all previously powered-up modules, some modules are powered down and marked as power-deny in the show module Status field. System log and syslog messages are generated. The lower wattage supply is disabled.
System is booted with power supplies of different wattage installed and redundancy enabled System is booted with power supplies of equal or different wattage installed and redundancy disabled
System log and syslog messages are generated. System power equals the combined power capability of both supplies. The system powers up as many modules as the combined capacity allows.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-13
Note
Enter the show environment power command to display current system power usage.
Table 20-2 Module Power Requirements
Module Supervisor Engine 1: WS-X6K-SUP1A-2GE WS-X6K-SUP1-2GE Supervisor Engine 1 with PFC: WS-X6K-SUP1A-PFC Supervisor Engine 1 with PFC and MSFC: WS-X6K-SUP1A-MSFC Supervisor Engine 1 with PFC and MSFC2: WS-X6K-S1A-MSFC2 Supervisor Engine 2 with PFC2: WS-X6K-S2-PFC2 Supervisor Engine 2 with PFC2 and MSFC2: WS-X6K-S2-MSFC2 MSFC2 (spare): WS-F6K-MSFC2= Multilayer Switching Module: WS-X6302-MSM 24-Port 10BASE-FL: WS-X6024-10FL-MT Switch Fabric Modules: WS-C6500-SFM WS-X6500-SFM2 24-Port 100FX: WS-X6224-100FX-MT WS-X6324-100FX-SM WS-X6324-100FX-MM
Power Requirement 1.70A 1.70A 2.50A 3.30A 2.90A 3.06A 3.46A 0.40A 5.20A 1.52A 2.79A 3.09A 1.90A 1.52A 1.52A
20-14
78-13315-02
Chapter 20
Module 48-Port 10/100TX: WS-X6248-RJ-45 WS-X6248-TEL WS-X6248A-TEL WS-X6348-RJ-45 WS-X6548-RJ-45 WS-X6648-PWR 8-Port Gigabit Ethernet: WS-X6408-GBIC WS-X6408A-GBIC 16-Port Gigabit Ethernet: WS-X6416-GBIC WS-X6416-GE-MT WS-X6316-GE-TX WS-X6516-GE-TX 1-Port OC-12 ATM: WS-X6101-OC12-MMF WS-X6101-OC12-SMF WAN module: WS-X6182-2PA (FlexWAN) Optical Services Modules: OSM-2OC12-POS-MM, -SI, -SL OSM-4OC12-POS-MM, -SI, -SL OSM-8OC3-POS-MM, -SI, -SL OSM-16OC3-POS-MM, -SI, -SL OSM-10C48-POS-SS, -SI, -SL OSM-4GE-WAN (GBIC) Server load balancing: WS-X6066-SLB-APG 8-Port T1/E1 PSTN Interface: WS-X6608-T1 WS-X6608-E1 24-Port FXS Analog Interface: WS-X6624-FXS
Power Requirement 2.69A 2.69A 2.69A 2.39A 2.90A 2.39A 2.00A 2.00A 2.81A 2.50A 5.15A 3.45A 2.10A 2.10A 2.38A1 3.36A 4.78A 3.57A 5.09A 4.25A 3.59 3.00A 1.98A 1.98A 1.54A
Cisco IP Phone 7960 (when plugged into the WS-X6348-RJ-45 0.167A (default) and WS-X6648-PWR modules) 0.120A (after bootup, initialization) The total power available with the 4000W power supply is 95.70A.. The total power available with the 2500W power supply is 55.50A. The total power available with the 1300W power supply is 27.46A. The total power available with the 1000W power supply is 21.40A.
1. Based on the base FlexWAN module power draw plus a worst-case 15W per port adapter, plus margin.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-15
Environmental Monitoring
Environmental monitoring of chassis components provides early warning indications of possible component failure to ensure safe and reliable system operation and avoid network interruptions. This section describes how to monitor these critical system components, enabling you to identify and rapidly correct hardware-related problems in your system. The following sections describe the environmental monitors:
Environmental Monitoring Using CLI Commands, page 20-xvi LED Indications, page 20-xvi
temperature(Optional) Displays temperature information. all(Optional) Displays environmental status (for example, power supply, fan status, and temperature information) and information about the power available to the system. power(Optional) Displays environmental power information.
LED Indications
There are two alarm types, major and minor. Major alarms indicate a critical problem that could lead to the system being shut down. Minor alarms are for informational purposes only, giving you notice of a problem that could turn critical if corrective action is not taken. When the system has an alarm (major or minor), indicating an overtemperature condition, the alarm is not canceled or any action taken (such as a module reset or shutdown) for 5 minutes. If the temperature falls 5C (41F) below the alarm threshold during this period, the alarm is canceled. Table 3 lists the environmental indicators for the supervisor engine and switching modules.
Note
For additional information on LED indications, refer to the Catalyst 6000 Family Module Installation Guide.
20-16
78-13315-02
Chapter 20
Administering the Switch Displaying System Status Information for Technical Support
Table 20-3 Environmental Monitoring for Supervisor Engine and Switching Modules
Action syslog message and SNMP trap generated. If redundancy, system switches to redundant supervisor engine and the active supervisor engine shuts down. If there is no redundancy and the overtemperature condition is not corrected, the system shuts down after 5 minutes.
Minor
syslog message and SNMP trap generated. Monitor the condition. syslog message and SNMP trap generated. If major alarm and the overtemperature condition is not corrected, the system shuts down after 5 minutes.
Redundant supervisor engine Major temperature sensor exceeds major or minor threshold
Minor Switching module temperature sensor exceeds major threshold Switching module temperature sensor exceeds minor threshold Major
If minor alarm, monitor the condition. syslog message and SNMP trap generated. Power down the module4. syslog message and SNMP trap generated. Monitor the condition.
Minor
1. Temperature sensors monitor key supervisor engine components including daughter cards. 2. A STATUS LED is located on the supervisor engine front panel and all module front panels. 3. The STATUS LED is red on the failed supervisor engine. If there is no redundant supervisor, the SYSTEM LED is red also. 4. See the Power Management section on page 20-xi for instructions.
Generating a System Status Report, page 20-xviii Using System Dump Files, page 20-xviii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-17
This example shows a report sent to host 172.20.32.10 to a filename you supply. No keywords are specified, so the complete status of the switch will be included in the report.
Console> (enable) write tech-support 172.20.32.10 tech.txt Upload tech-report to tech.txt on 172.20.32.10 (y/n) [n]? y / Finished network upload. (67784 bytes) Console> (enable)
20-18
78-13315-02
Chapter 20
Administering the Switch Displaying System Status Information for Technical Support
The size of the file system depends on the size of your memory card. An error process will generate a core image that is proportional to the size of the system DRAM. Make sure that you have enough memory available to store the core dump file.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
20-19
The following is an example of an image stack that may display after you enter the show log command:
Breakpoint Exception occurred. Software version = 6.2(0.83) Process ID #52, Name = Console EPC: 807523F4 Stack content: sp+00: 00000000 80A75698 00000005 00000005 sp+10: BE000A00 00000000 83F84150 801194B8 sp+20: 80A75698 80A74BC8 80C8DBDC 000006E8 sp+30: 8006AF30 8006AE98 82040664 00000630 sp+40: 801AC744 801AC734 80A32488 80A32484 sp+50: 80A3249C 00000000 00000002 000009E4 sp+60: 8204067B 82040670 8011812C 81CAFC98 sp+70: 8011814C 82040670 8011812C 81CAFC98 sp+80: 00000002 000009E4 80110160 80110088 sp+90: 82040670 80A71EB4 81F1E9F8 00000004 sp+A0: 00000000 81F25EAC 81FF5750 00000000 sp+B0: 00000000 00000000 81F1E314 800840BC sp+C0: 0000000B 80084EB0 00000001 8073A358 sp+D0: 00000003 0000000D 00000000 0000000A sp+E0: 00000020 00000000 800831B4 0000001A sp+F0: 00000000 00000000 00000000 000D84F0 Register content: Status: 3401FC23 Cause: 00000024 AT: 81640000 V0: 00000007 V1: 00000007 A0: 00000000 A1: 80A756A6 A2: 00000011 A3: BE000BD0 T0: BFFFFFFE T1: 80000000 T2: 00000000 T3: 00000001 T4: 00000000 T5: 00000007 T6: 00000000 T7: 00000000 S0: 00000001 S1: 00000032 S2: 81F1E9F8 S3: 80A74BC8 S4: 80C8DBDC S5: 000006E8 S6: 00000000 S7: 00000000 T8: F0D09E3A T9: 82940828 K0: 3041C001 K1: 80C73038 GP: 811F39C0 SP: 83F84010 S8: 83F84010 RA: 807523F4 HIGH: 00000001 LOW: D5555559 BADVADDR: 7DFF7FFF ERR EPC: 58982466 GDB: Breakpoint Exception GDB: The system has trapped into the debugger. GDB: It will hang until examined with gdb.
20-20
78-13315-02
C H A P T E R
21
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Authentication Works, page 21-i Configuring Authentication, page 21-ix Authentication Example, page 21-xlviii Understanding How Authorization Works, page 21-l Configuring Authorization, page 21-lii Authorization Example, page 21-lvi Understanding How Accounting Works, page 21-lvii Configuring Accounting, page 21-lix Accounting Example, page 21-lxiii
Authentication Overview, page 21-ii Understanding How Login Authentication Works, page 21-ii Understanding How Local Authentication Works, page 21-ii Understanding How TACACS+ Authentication Works, page 21-iii Understanding How RADIUS Authentication Works, page 21-iv Understanding How Kerberos Authentication Works, page 21-iv Understanding How 802.1x Authentication Works, page 21-vii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-1
Authentication Overview
You can configure any combination of these authentication methods to control access to the switch:
Login authentication Local authentication RADIUS authentication TACACS+ authentication Kerberos authentication 802.1x authentication
Note
Kerberos authentication does not work if TACACS+ is used as the authentication method. When you enable local authentication with one or more other authentication methods, local authentication is always attempted last. However, you can specify different authentication methods for console and Telnet connections. For example, you might use local authentication for console connections and RADIUS authentication for Telnet connections.
21-2
78-13315-02
Chapter 21
When you first log on to a machine When you send a service request that requires privileged access
When you request privileged or restricted services, TACACS+ encrypts your user password information using the MD5 encryption algorithm and adds a TACACS+ packet header. This header information identifies the packet type being sent (for example, an authentication packet), the packet sequence number, the encryption type used, and the total packet length. The TACACS+ protocol then forwards the packet to the TACACS+ server. A TACACS+ server can provide authentication, authorization, and accounting functions. These services, while all part of TACACS+, are independent of one another, so a given TACACS+ configuration can use any or all of the three services. When the TACACS+ server receives the packet, it does the following:
Authenticates the user information and notifies the client that authentication has either passed or failed. Notifies the client that authentication will continue and that the client must provide additional information. This challenge-response process can continue through multiple iterations until authentication either passes or fails.
You can configure a TACACS+ key on the client and server. If you configure a key on the switch, it must be the same as the one configured on the TACACS+ servers. The TACACS+ clients and servers use the key to encrypt all TACACS+ packets transmitted. If you do not configure a TACACS+ key, packets are not encrypted. You can configure the following TACACS+ parameters on the switch:
Enable or disable TACACS+ authentication to determine if a user has permission to access the switch Enable or disable TACACS+ authentication to determine if a user has permission to enter privileged mode Specify a key used to encrypt the protocol packets Specify the server on which the TACACS+ server daemon resides Set the number of login attempts allowed Set the timeout interval for server daemon response Enable or disable the directed-request option
TACACS+ authentication is disabled by default. You can enable TACACS+ authentication and local authentication at the same time. When local authentication is disabled, if you disable all other authentication methods, local authentication is reenabled automatically.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-3
Note
For more information about how the RADIUS protocol operates, refer to RFC 2138, Remote Authentication Dial In User Service (RADIUS). You can configure the following RADIUS parameters on the switch:
Enable or disable RADIUS authentication to control login access Enable or disable RADIUS authentication to control enable access Specify the IP addresses and UDP ports of the RADIUS servers Specify the RADIUS key used to encrypt RADIUS packets Specify the RADIUS server timeout interval Specify the RADIUS retransmit count Specify the RADIUS server deadtime interval
RADIUS authentication is disabled by default. You can enable RADIUS authentication and other authentication methods at the same time. You can specify which method to use first using the primary keyword. When local authentication is disabled, if you disable all other authentication methods, local authentication is reenabled automatically.
21-4
78-13315-02
Chapter 21
Definition Applications and services that have been modified to support the Kerberos credential infrastructure. General term referring to authentication tickets, such as ticket granting tickets (TGTs) and service credentials. Kerberos credentials verify the ticket of a user or service. If a network service decides to trust the Kerberos server that issued the ticket, the Kerberos credential can be used in place of retyping in a username and password. Credentials have a default life span of eight hours. (See Kerberos principal.) The Kerberos principal is who you are or what a service is according to the Kerberos server. (Also known as a Kerberos identity.) A domain consisting of users, hosts, and network services that are registered to a Kerberos server. The Kerberos server is trusted to verify the identity of a user or network service to another user or network service. Kerberos realms must always be in uppercase characters. A daemon running on a network host. Users and network services register their identity with the Kerberos server. Network services query the Kerberos server to authenticate to other network services. A Kerberos server and database program running on a network host that allocates the Kerberos credentials to different users or network services. A credential for a network service. When issued from the KDC, this credential is encrypted with the password shared by the network service and the KDC and with the users TGT. A password that a network service shares with the KDC. The network service authenticates an encrypted service credential by using the SRVTAB (also known as a KEYTAB) to decrypt it. A credential that the KDC issues to authenticated users. When users receive a TGT, they can authenticate to network services within the Kerberos realm represented by the KDC.
Kerberos server
SRVTAB
In the Catalyst 6000 family switches, Telnet clients and servers through both the console and in-band management port can be Kerberized.
Note
Kerberos authentication does not work if TACACS+ is used as the authentication mechanism.
Note
If you are logged in to the console through a modem or a terminal server, you cannot use a Kerberized login procedure.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-5
The Telnet client asks the user for the username and issues a request for a TGT to the KDC on the Kerberos server. The KDC creates the TGT, which contains the users identity, the KDCs identity, and the TGTs expiration time. The KDC then encrypts the TGT with the users password and sends the TGT to the client. When the Telnet client receives the encrypted TGT, it prompts the user for the password. If the Telnet client can decrypt the TGT with the entered password, the user is successfully authenticated to the KDC. The client then builds a service credential request and sends this to the KDC. This request contains the users identity and a message saying that it wants to Telnet to the switch. This request is encrypted using the TGT. When the KDC successfully decrypts the service credential request with the TGT that it issued to the client, it builds a service to the switch. The service credential has the clients identity and the identity of the desired Telnet server. The KDC then encrypts the credential with the password that it shares with the switchs Telnet server and encrypts the resulting packet with the Telnet clients TGT and sends this packet to the client. The Telnet client decrypts the packet first with its TGT. If encryption is successful, the client then sends the resulting packet to the switchs Telnet server. At this point, the packet is still encrypted with the password that the switchs Telnet server and the KDC share. If the Telnet client has been instructed to do so, it forwards the TGT to the switch. This step ensures that the user does not need to get another TGT in order to use another network service from the switch.
3.
4.
5.
6.
1 2 3 4 5 6
6000
21-6
30794
78-13315-02
Chapter 21
Note
A non-Kerberized login can be performed through a modem or terminal server through the in-band management port. Telnet does not support non-Kerberized login. If you launch a non-Kerberized login, the following process takes place:
1. 2. 3. 4. 5.
The switch prompts you for a username and password. The switch requests a TGT from the KDC so that you can be authenticated to the switch. The KDC sends an encrypted TGT to the switch, which contains your identity, KDCs identity, and TGTs expiration time. The switch tries to decrypt the TGT with the password that you entered. If the decryption is successful, you are authenticated to the switch. If you want to access other network services, the KDC must be contacted directly for authentication. To obtain the TGT, you can run the program kinit, the client software provided with the Kerberos package.
2 3
Catalyst switch
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
55510
21-7
802.1x controls network access by creating two distinct virtual access points at each port. One access point is an uncontrolled port; the other is a controlled port. All traffic through the single port is available to both access points. Only EAPOL traffic is allowed to pass through the uncontrolled port, which is always open. The controlled port is open only when the device connected to the port has been authorized by 802.1x. After this authorization takes place, the controlled port opens, allowing normal traffic to pass. Table 2 defines the terms used in 802.1x.
Table 21-2 802.1x Terminology
Definition (Referred to as the authenticator) entity at one end of a point-to-point LAN segment that enforces supplicant authentication. The authenticator is independent of the actual authentication method and functions only as a pass-through for the authentication exchange. It communicates with the supplicant, submits the information from the supplicant to the authentication server, and authorizes the supplicant when instructed to do so by the authentication server. Entity that provides the authentication service for the authenticator PAE. It checks the credentials of the supplicant PAE and then notifies its client, the authenticator PAE, whether the supplicant PAE is authorized to access the LAN/switch services. Status of the port after the supplicant PAE is authorized. Bidirectional flow control, incoming and outgoing, at an unauthorized switch port. Secured access point. Extensible Authentication Protocol.
1
Authentication server
Authorized state Both Controlled port EAP EAPOL In Port PAE2 PDU RADIUS Supplicant PAE
Encapsulated EAP messages that can be handled directly by a LAN MAC service. Flow control only on incoming frames in an unauthorized switch port. Single point of attachment to the LAN infrastructure (for example, MAC bridge ports). Protocol object associated with a specific system port. Protocol data unit. Remote Access Dial-In User Service. (Referred to as the supplicant) entity that requests access to the LAN/switch services and responds to information requests from the authenticator. Status of the port before the supplicant PAE is authorized. Unsecured access point that allows the uncontrolled exchange of PDUs.
21-8
78-13315-02
Chapter 21
Traffic Control
You can restrict traffic in both directions or just incoming traffic.
Authentication Server
The frames exchanged between the authenticator and the authentication server are dependent on the authentication mechanism, so they are not defined by the 802.1x standard. You can use other protocols, but we recommend RADIUS for authentication, particularly when the authentication server is located remotely, because RADIUS has extensions that support encapsulation of EAP frames built into it.
Force-Authorized, Force-Unauthorized, or Automatic 802.1x port control Enable or disable multiple hosts on a specific port Enable or disable system authentication control Specify quiet time interval Specify the authenticator to supplicant retransmission time interval Specify the back-end authenticator to supplicant retransmission time interval Specify the back-end authenticator to authentication server retransmission time interval Specify the number of frames retransmitted from the back-end authenticator to supplicant Specify the automatic supplicant reauthentication time interval Enable or disable automatic supplicant reauthentication
Configuring Authentication
These sections describe how to configure the different authentication methods:
Authentication Default Configuration, page 21-x Authentication Configuration Guidelines, page 21-xi Configuring Login Authentication, page 21-xii Configuring Local Authentication, page 21-xiii Configuring TACACS+ Authentication, page 21-xvii Configuring RADIUS Authentication, page 21-xxiii Configuring Kerberos Authentication, page 21-xxxi Configuring 802.1x Authentication, page 21-xl Authentication Example, page 21-xlviii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-9
Feature Login authentication (console and Telnet) Local authentication (console and Telnet) TACACS+ login authentication (console and Telnet) TACACS+ enable authentication (console and Telnet) TACACS+ key TACACS+ login attempts TACACS+ server timeout TACACS+ directed request RADIUS login authentication (console and Telnet) RADIUS enable authentication (console and Telnet) RADIUS server IP address RADIUS server UDP auth-port RADIUS key RADIUS server timeout RADIUS server deadtime RADIUS retransmit attempts Kerberos login authentication (console and Telnet) Kerberos enable authentication (console and Telnet) Kerberos server IP address Kerberos DES key Kerberos server auth-port Kerberos local-realm name Kerberos credentials forwarding Kerberos clients mandatory Kerberos preauthentication 802.1x port control 802.1x multiple hosts 802.1x system authentication control 802.1x quiet period time 802.1x authenticator to supplicant retransmission time 802.1x back-end authenticator to supplicant retransmission time
Default Value Enabled Enabled Disabled Disabled None specified 3 5 seconds Disabled Disabled Disabled None specified Port 1812 None specified 5 seconds 0 (servers not marked dead) 2 times Disabled Disabled None specified None specified Port 750 NULL string Disabled Not mandatory Disabled Force-Authorized Disabled Enable 60 seconds 30 seconds 30 seconds
21-10
78-13315-02
Chapter 21
Feature 802.1x back-end authenticator to authentication server retransmission time 802.1x number of frames retransmitted from back-end authenticator to supplicant 802.1x automatic supplicant reauthentication time 802.1x automatic authenticator reauthentication of supplicant
Authentication configuration applies both to console and Telnet connection attempts unless you use the console and telnet keywords to specify the authentication methods to use for each connection type individually. If you configure a RADIUS or TACACS+ key on the switch, make sure you configure an identical key on the RADIUS or TACACS+ server. You must specify a RADIUS or TACACS+ server before enabling RADIUS or TACACS+ on the switch. If you configure multiple RADIUS or TACACS+ servers, the first server configured is the primary server and authentication requests are sent to this server first. You can specify a server as primary by using the primary keyword. RADIUS and TACACS+ support one privileged mode only (level 1). Kerberos authentication does not work if TACACS+ is also used as an authentication mechanism. 802.1x will work with other protocols, but we recommend RADIUS, particularly with a remotely located authentication server. You cannot enable 802.1x on a secure port until you turn off the security feature on that port. You cannot enable security on an 802.1x port. 802.1x is only supported on Ethernet ports. You cannot enable 802.1x on a trunk port until you turn off the trunking feature on that port. You cannot enable trunking on an 802.1x port. You cannot enable 802.1x on a dynamic port until you turn off the DVLAN feature on that port. You cannot enable DVLAN on an 802.1x port. You cannot enable 802.1x on a channeling port until you turn off the channeling feature on that port. You cannot enable channeling on an 802.1x port. You cannot enable 802.1x on a Multiple VLAN Access Port (MVAP) with an auxiliary VLAN ID until you turn off the auxiliary VLAN ID feature on that port. You cannot enable an auxiliary VLAN ID on an 802.1x port. You cannot enable 802.1x on a switched port analyzer (SPAN) destination port. You cannot configure SPAN destination on an 802.1x port. However, you can configure an 802.1x port as a SPAN source port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-11
Setting Authentication Login Attempts on the Switch, page 21-xii Setting Authentication Login Attempts for the Privileged Mode, page 21-xiii
Enable login attempt limits on the switch. Enter the console or telnet keyword if you want to enable local authentication only for the console port or for Telnet connection attempts.
Step 2
Enable the login lockout time on the switch. Enter set authentication login lockout {time} [console | telnet] the console or telnet keyword if you want to enable local authentication only for the console port or for Telnet connection attempts. Verify the local authentication configuration. show authentication
Step 3
This example shows how to limit login attempts to five, set the lockout time for both console and Telnet connections to 50 seconds, and verify the configuration:
Console> (enable) set authentication login attempt 5 Login authentication attempts for console and telnet logins set to 5. Console> (enable) set authentication login lockout 50 Login lockout time for console and telnet logins set to 50. Console> (enable) show authentication Login Authentication: --------------------tacacs radius kerberos local attempt limit lockout timeout (sec) Enable Authentication: ---------------------tacacs radius kerberos local attempt limit lockout timeout (sec) Console> (enable) Console Session ---------------disabled disabled disabled enabled(primary) 5 50 Console Session ----------------disabled disabled disabled enabled(primary) 3 disabled Telnet Session ---------------disabled disabled disabled enabled(primary) 5 50 Telnet Session ---------------disabled disabled disabled enabled(primary) 3 disabled Http Session ---------------disabled disabled disabled enabled(primary) Http Session ---------------disabled disabled disabled enabled(primary) -
21-12
78-13315-02
Chapter 21
Command
set authentication enable attempt {count} Enable the login attempt limits for privileged mode. Enter the console or telnet keyword if you [console | telnet] want to enable local authentication only for the console port or for Telnet connection attempts. set authentication enable lockout {time} Enable the login lockout time for privileged mode. Enter the console or telnet keyword if you [console | telnet] want to enable local authentication only for the console port or for Telnet connection attempts. Verify the local authentication configuration. show authentication
Step 2
Step 3
This example shows how to limit enable mode login attempts to five, set the enable mode lockout time for both console and Telnet connections to 50 seconds, and verify the configuration:
Console> (enable) set authentication enable attempt 5 Enable mode authentication attempts for console and telnet logins set to 5. Console> (enable) set authentication enable lockout 50 Enable mode lockout time for console and telnet logins set to 50. Console> (enable) show authentication Login Authentication: --------------------tacacs radius kerberos local attempt limit lockout timeout (sec) Enable Authentication: ---------------------tacacs radius kerberos local attempt limit lockout timeout (sec) Console> (enable) Console Session ---------------disabled disabled disabled enabled(primary) 5 50 Console Session ----------------disabled disabled disabled enabled(primary) 5 50 Telnet Session ---------------disabled disabled disabled enabled(primary) 5 50 Telnet Session ---------------disabled disabled disabled enabled(primary) 5 50 Http Session ---------------disabled disabled disabled enabled(primary) Http Session ---------------disabled disabled disabled enabled(primary) -
Enabling Local Authentication, page 21-xiv Setting the Login Password, page 21-xiv Setting the Enable Password, page 21-xv Disabling Local Authentication, page 21-xv Recovering a Lost Password, page 21-xvi
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-13
Local login and enable authentication are enabled for both console and Telnet connections by default. You do not need to perform this task unless you want to modify the default configuration or you have disabled local authentication. To enable local authentication on the switch, perform this task in privileged mode: Task Command
Step 1
Enable local login authentication on the switch. set authentication login local enable [all | Enter the console or telnet keyword if you want to console | http | telnet] enable local authentication only for console port or Telnet connection attempts. Enable local enable authentication on the switch. set authentication enable local enable [all | Enter the console or telnet keyword if you want to console | http | telnet] enable local authentication only for console port or Telnet connection attempts. Verify the local authentication configuration. show authentication
Step 2
Step 3
This example shows how to enable local login, how to enable authentication for both console and Telnet connections, and how to verify the configuration:
Console> (enable) set authentication login local enable local login authentication set to enable for console and telnet session. Console> (enable) set authentication enable local enable local enable authentication set to enable for console and telnet session. Console> (enable) show authentication Login Authentication: --------------------tacacs radius kerberos local Enable Authentication: ---------------------tacacs radius kerberos local Console> (enable) Console Session ---------------disabled disabled disabled enabled(primary) Console Session ----------------disabled disabled disabled enabled(primary) Telnet Session ---------------disabled disabled disabled enabled(primary) Telnet Session ---------------disabled disabled disabled enabled(primary)
Note
Passwords set in releases prior to software release 5.4 remain non-case sensitive. You must reset the password after installing software release 5.4 to activate case sensitivity.
21-14
78-13315-02
Chapter 21
To set the login password for local authentication, perform this task in privileged mode: Task Command
Set the login password for access. Enter your old set password password (press Return on a switch with no password configured), enter your new password, and reenter your new password. This example shows how to set the login password on the switch:
Console> (enable) set password Enter old password: <old_password> Enter new password: <new_password> Retype new password: <new_password> Password changed. Console> (enable)
Note
Passwords set in releases prior to software release 5.4 remain non-case sensitive. You must reset the password after installing software release 5.4 to activate case sensitivity. To set the enable password for local authentication, perform this task in privileged mode: Task Command
Set the password for privileged mode. Enter your set enablepass old password (press Return on a switch with no password configured), enter your new password, and reenter your new password. This example shows how to set the enable password on the switch:
Console> (enable) set enablepass Enter old password: <old_password> Enter new password: <new_password> Retype new password: <new_password> Password changed. Console> (enable)
Make sure that RADIUS or TACACS+ authentication is configured and operating correctly before disabling local login or enable authentication. If you disable local authentication and RADIUS or TACACS+ is not configured correctly, or if the RADIUS or TACACS+ server is not online, you may be unable to log in to the switch.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-15
To disable local authentication on the switch, perform this task in privileged mode: Task
Step 1
Command
Disable local login authentication on the switch. set authentication login local disable [all | Enter the console or telnet keyword if you want to console | http | telnet] disable local authentication only for console port or Telnet connection attempts. Disable local enable authentication on the switch. set authentication enable local disable [all | Enter the console or telnet keyword if you want to console | http | telnet] disable local authentication only for console port or Telnet connection attempts. Verify the local authentication configuration. show authentication
Step 2
Step 3
Note
You must have either RADIUS or TACACS+ authentication enabled before you disable local authentication. This example shows how to disable local login authentication, how to enable authentication for both console and Telnet connections, and how to verify the configuration:
Console> (enable) set authentication login local disable local login authentication set to disable for console and telnet session. Console> (enable) set authentication enable local disable local enable authentication set to disable for console and telnet session. Console> (enable) show authentication Login Authentication: --------------------tacacs radius kerberos local Enable Authentication: ---------------------tacacs radius kerberos local Console> (enable) Console Session ---------------disabled enabled(primary) disabled disabled Console Session ----------------disabled enabled(primary) disabled disabled Telnet Session ---------------disabled enabled(primary) disabled disabled Telnet Session ---------------disabled enabled(primary) disabled disabled
Connect to the switch through the supervisor engine console port. You cannot recover the password if you are connected through a Telnet connection. Enter the reset system command to reboot the switch.
21-16
78-13315-02
Chapter 21
At the Enter Password prompt, press Return. The login password is null for 30 seconds when you are connected to the console port. Enter privileged mode using the enable command. At the Enter Password prompt, press Return. (The enable password is null for 30 seconds when you are connected to the console port.) Enter the set password or set enablepass command, as appropriate. When prompted for your old password, press Return. Enter and confirm your new password.
Specifying TACACS+ Servers, page 21-xvii Enabling TACACS+ Authentication, page 21-xviii Specifying the TACACS+ Key, page 21-xix Specifying the TACACS+ Timeout Interval, page 21-xix Specifying the TACACS+ Login Attempts, page 21-xx Enabling TACACS+ Directed Request, page 21-xxi Disabling TACACS+ Directed Request, page 21-xxi Clearing TACACS+ Servers, page 21-xxii Clearing the TACACS+ Key, page 21-xxii Disabling TACACS+ Authentication, page 21-xxiii
Command
Specify the IP address of one or more TACACS+ set tacacs server ip_addr [primary] servers. Verify the TACACS+ configuration. show tacacs
This example shows how to specify TACACS+ servers and verify the configuration:
Console> (enable) set tacacs server 172.20.52.3 172.20.52.3 added to TACACS server table as primary server. Console> (enable) set tacacs server 172.20.52.2 primary 172.20.52.2 added to TACACS server table as primary server. Console> (enable) set tacacs server 172.20.52.10 172.20.52.10 added to TACACS server table as backup server. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-17
Console> (enable) show tacacs Login Authentication: --------------------tacacs radius local Console Session ---------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary)
Enable Authentication: Console Session ---------------------- ----------------tacacs disabled radius disabled local enabled(primary) Tacacs key: Tacacs login attempts: 3 Tacacs timeout: 5 seconds Tacacs direct request: disabled Tacacs-Server ---------------------------------------172.20.52.3 172.20.52.2 172.20.52.10 Console> (enable)
Status ------primary
Specify at least one TACACS+ server before enabling TACACS+ authentication on the switch. For information on specifying a TACACS+ server, see the Specifying TACACS+ Servers section on page 21-xvii. You can enable TACACS+ authentication for login and enable access to the switch. If desired, you can use the console and telnet keywords to specify that TACACS+ authentication be used only on console or Telnet connections. If you are using both RADIUS and TACACS+, you can use the primary keyword to force the switch to try TACACS+ authentication first. To enable TACACS+ authentication, perform this task in privileged mode: Task Command
Step 1
Enable TACACS+ authentication for normal login set authentication login tacacs enable [all | mode. Enter the console or telnet keyword if you console | http | telnet] [primary] want to enable TACACS+ only for console port or Telnet connection attempts. set authentication enable tacacs enable [all | Enable TACACS+ authentication for enable mode. Enter the console or telnet keyword if you console | http | telnet] [primary] want to enable TACACS+ only for console port or Telnet connection attempts. Verify the TACACS+ configuration. show authentication
Step 2
Step 3
This example shows how to enable TACACS+ authentication for console and Telnet connections and how to verify the configuration:
Console> (enable) set authentication login tacacs enable tacacs login authentication set to enable for console and telnet session.
21-18
78-13315-02
Chapter 21
Console> (enable) set authentication enable tacacs enable tacacs enable authentication set to enable for console and telnet session. Console> (enable) show authentication Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Console> (enable) Console Session ---------------enabled(primary) disabled enabled Console Session ----------------enabled(primary) disabled enabled Telnet Session ---------------enabled(primary) disabled enabled Telnet Session ---------------enabled(primary) disabled enabled
If you configure a TACACS+ key on the client, make sure you configure an identical key on the TACACS+ server. To specify the TACACS+ key, perform this task in privileged mode: Task Command set tacacs key key show tacacs
Step 1 Step 2
Specify the key used to encrypt packets. Verify the TACACS+ configuration.
This example shows how to specify the TACACS+ key and verify the configuration:
Console> (enable) set tacacs key Secret_TACACS_key The tacacs key has been set to Secret_TACACS_key. Console> (enable) show tacacs Tacacs key: Secret_TACACS_key Tacacs login attempts: 3 Tacacs timeout: 5 seconds Tacacs direct request: disabled Tacacs-Server ---------------------------------------172.20.52.3 172.20.52.2 172.20.52.10 Console> (enable) Status ------primary
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-19
To specify the TACACS+ timeout interval, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to specify the server timeout interval and verify the configuration:
Console> (enable) set tacacs timeout 30 Tacacs timeout set to 30 seconds. Console> (enable) show tacacs Tacacs key: Secret_TACACS_key Tacacs login attempts: 3 Tacacs timeout: 30 seconds Tacacs direct request: disabled Tacacs-Server ---------------------------------------172.20.52.3 172.20.52.2 172.20.52.10 Console> (enable) Status ------primary
Specify the number of allowed login attempts. Verify the TACACS+ configuration.
This example shows how to specify the number of login attempts and verify the configuration:
Console> (enable) set tacacs attempts 5 Tacacs number of attempts set to 5. Console> (enable) show tacacs Tacacs key: Secret_TACACS_key Tacacs login attempts: 5 Tacacs timeout: 30 seconds Tacacs direct request: disabled Tacacs-Server ---------------------------------------172.20.52.3 172.20.52.2 172.20.52.10 Console> (enable)
Status ------primary
21-20
78-13315-02
Chapter 21
Enable TACACS+ directed request on the switch. set tacacs directedrequest enable Verify the TACACS+ configuration.
This example shows how to enable TACACS+ directed request and verify the configuration:
Console> (enable) set tacacs directedrequest enable Tacacs direct request has been enabled. Console> (enable) show tacacs Tacacs key: Secret_TACACS_key Tacacs login attempts: 5 Tacacs timeout: 30 seconds Tacacs direct request: enabled Tacacs-Server ---------------------------------------172.20.52.3 172.20.52.2 172.20.52.10 Console> (enable) Status ------primary
Disable TACACS+ directed request on the switch. set tacacs directedrequest disable Verify the TACACS+ configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-21
Command
Specify the IP address of the TACACS+ server to clear tacacs server [ip_addr | all] clear from the configuration. Enter the all keyword to clear all of the servers from the configuration. Verify the TACACS+ server configuration. show tacacs
Step 2
This example shows how to clear a specific TACACS+ server from the configuration:
Console> (enable) clear tacacs server 172.20.52.3 172.20.52.3 cleared from TACACS table Console> (enable)
This example shows how to clear all TACACS+ servers from the configuration:
Console> (enable) clear tacacs server all All TACACS servers cleared Console> (enable)
21-22
78-13315-02
Chapter 21
Command
set authentication login tacacs disable [all | Disable TACACS+ authentication for normal login mode. Enter the console or telnet keyword console | http | telnet] if you want to disable TACACS+ only for console port or Telnet connection attempts. set authentication enable tacacs disable [all | Disable TACACS+ authentication for enable mode. Enter the console or telnet keyword if you console | http | telnet] want to disable TACACS+ only for console port or Telnet connection attempts. Verify the TACACS+ configuration. show authentication
Step 2
Step 3
This example shows how to disable TACACS+ authentication for console and Telnet connections and how to verify the configuration:
Console> (enable) set authentication login tacacs disable tacacs login authentication set to disable for console and telnet session. Console> (enable) set authentication enable tacacs disable tacacs enable authentication set to disable for console and telnet session. Console> (enable) show authentication Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Console> (enable) Console Session ---------------disabled disabled enabled(primary) Console Session ----------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary)
Specifying RADIUS Servers, page 21-xxiv Specifying the RADIUS Key, page 21-xxiv Enabling RADIUS Authentication, page 21-xxv Specifying the RADIUS Timeout Interval, page 21-xxvii Specifying the RADIUS Retransmit Count, page 21-xxvii Specifying the RADIUS Deadtime, page 21-xxviii Clearing RADIUS Servers, page 21-xxix
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-23
Clearing the RADIUS Key, page 21-xxix Disabling RADIUS Authentication, page 21-xxx
Specify the IP address of up to three RADIUS servers. Specify the primary server using the primary keyword. Optionally, specify the destination UDP port to use on the server. Verify the RADIUS server configuration.
Step 2
show radius
This example shows how to specify a RADIUS server and verify the configuration:
Console> (enable) set radius server 172.20.52.3 172.20.52.3 with auth-port 1812 added to radius server table as primary server. Console> (enable) show radius Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Radius Radius Radius Radius Deadtime: Key: Retransmit: Timeout: Console Session ---------------disabled disabled enabled(primary) Console Session ----------------disabled disabled enabled(primary) 0 minutes 2 5 seconds Auth-port -----------1812 Telnet Session ---------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary)
If you specify a RADIUS key on the client, make sure you specify an identical key on the RADIUS server. The RADIUS key is used to encrypt and authenticate all communication between the RADIUS client and server. You must configure the same key on the client and the RADIUS server. The length of the key is limited to 65 characters. It can include any printable ASCII characters except tabs.
21-24
78-13315-02
Chapter 21
To specify the RADIUS key, perform this task in privileged mode: Task
Step 1 Step 2
Command
Specify the RADIUS key used to encrypt packets set radius key key sent to the RADIUS server. Verify the RADIUS configuration. show radius
This example shows how to specify the RADIUS key and verify the configuration (in normal mode, the RADIUS key value is hidden):
Console> (enable) set radius key Secret_RADIUS_key Radius key set to Secret_RADIUS_key Console> (enable) show radius Login Authentication: Console Session Telnet Session --------------------- ---------------- ---------------tacacs disabled disabled radius enabled(primary) enabled(primary) local enabled enabled Enable Authentication: ---------------------tacacs radius local Radius Radius Radius Radius Deadtime: Key: Retransmit: Timeout: Console Session ----------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled
Specify at least one RADIUS server before enabling RADIUS authentication on the switch. For information on specifying a RADIUS server, see the Specifying RADIUS Servers section on page 21-xxiv. You can enable RADIUS authentication for login and enable access to the switch. If desired, you can enter the console or telnet keyword to specify that RADIUS authentication be used only on console or Telnet connections. If you are using both RADIUS and TACACS+, you can use the primary keyword to force the switch to try RADIUS authentication first.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-25
To set up the RADIUS username and enable RADIUS authentication, perform this task in privileged mode:
Step 1
Enable RADIUS authentication for normal login set authentication login radius enable [all | mode. Enter the console or telnet keyword if you console | http | telnet] [primary] want to enable RADIUS only for console port or Telnet connection attempts. Enable RADIUS authentication for enable mode. set authentication enable radius enable [all | Enter the console or telnet keyword if you want to console | http | telnet] [primary] enable RADIUS only for console port or Telnet connection attempts. Create a user $enab15$ on the RADIUS server, and assign a password to that user. Verify the RADIUS configuration. See the Note below for additional information. show authentication
Step 2
Step 3 Step 4
Note
To use RADIUS authentication for enable mode, you will need to create a user $enab15$ on the RADIUS server, and assign a password to that user. This user needs to be created in addition to your assigned username and password on the RADIUS server (example: username john, password hello.) After you log in to the Catalyst 6000 family switch with your assigned username and password (john/hello), you can enter enable mode using the password assigned to the $enab15$ user. If your RADIUS server does not support the $enab15$ username, you can set the service-type attribute (attribute 6) to Administrative (value 6) for a RADUIS user to directly launch the user into enable mode without asking for a separate enable password. This example shows how to enable RADIUS authentication and verify the configuration:
Console> (enable) set authentication login radius enable radius login authentication set to enable for console and telnet session. Console> (enable) set authentication enable radius enable radius enable authentication set to enable for console and telnet session. Console> (enable) show authentication Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Console> (enable) Console Session ---------------disabled enabled(primary) enabled Console Session ----------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled
21-26
78-13315-02
Chapter 21
This example shows how to specify the RADIUS timeout interval and verify the configuration:
Console> (enable) set radius timeout 10 Radius timeout set to 10 seconds. Console> (enable) show radius Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Radius Radius Radius Radius Deadtime: Key: Retransmit: Timeout: Console Session ---------------disabled enabled(primary) enabled Console Session ----------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled
Specify the RADIUS server retransmit count. Verify the RADIUS configuration.
This example shows how to specify the RADIUS retransmit count and verify the configuration:
Console> (enable) set radius retransmit 4 Radius retransmit count set to 4. Console> (enable) show radius
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-27
Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Radius Radius Radius Radius Deadtime: Key: Retransmit: Timeout:
Console Session ---------------disabled enabled(primary) enabled Console Session ----------------disabled enabled(primary) enabled
Telnet Session ---------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled
Specify the RADIUS server deadtime interval. Verify the RADIUS configuration.
This example shows how to specify the RADIUS deadtime interval and verify the configuration:
Console> (enable) set radius deadtime 5 Radius deadtime set to 5 minute(s) Console> (enable) show radius Login Authentication: --------------------tacacs radius local Enable Authentication: ---------------------tacacs radius local Console Session ---------------disabled enabled(primary) enabled Console Session ----------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled Telnet Session ---------------disabled enabled(primary) enabled
21-28
78-13315-02
Chapter 21
Specify the IP address of the RADIUS server to clear from the configuration. Enter the all keyword to clear all of the servers from the configuration. Verify the RADIUS server configuration.
Step 2
show radius
This example shows how to clear a single RADIUS server from the configuration:
Console> (enable) clear radius server 172.20.52.3 172.20.52.3 cleared from radius server table. Console> (enable)
This example shows how to clear all RADIUS servers from the configuration:
Console> (enable) clear radius server all All radius servers cleared from radius server table. Console> (enable)
This example shows how to clear the RADIUS key and verify the configuration:
Console> (enable) clear radius key Radius key cleared. Console> (enable) show radius Login Authentication: --------------------tacacs radius local Console Session ---------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-29
Enable Authentication: ---------------------tacacs radius local Radius Radius Radius Radius Deadtime: Key: Retransmit: Timeout:
Auth-port -----------1812
Command set authentication login radius disable [all | console | http | telnet]
Disable RADIUS authentication for enable mode. set authentication enable radius disable [all | console | http | telnet] Verify the RADIUS configuration. show authentication
21-30
78-13315-02
Chapter 21
Configuring a Kerberos Server, page 21-xxxi Enabling Kerberos, page 21-xxxii Defining the Kerberos Local Realm, page 21-xxxiii Specifying a Kerberos Server, page 21-xxxiii Mapping a Kerberos Realm to a Host Name or DNS Domain, page 21-xxxiv Copying SRVTAB Files, page 21-xxxiv Deleting an SRVTAB Entry, page 21-xxxv Enabling Credentials Forwarding, page 21-xxxvi Disabling Credentials Forwarding, page 21-xxxvii Defining and Clearing a Private DES Key, page 21-xxxviii Encrypting a Telnet Session, page 21-xxxviii Displaying and Clearing Kerberos Configurations, page 21-xxxix
Note
Kerberos authentication requires that NTP is enabled. Additionally, we recommend that you enable DNS. To configure the Kerberos server, perform this procedure:
Step 1
Before you can enter the switch in the Kerberos servers key table, you must create the database the KDC will use. In the following example, a database called CISCO.EDU is created:
/usr/local/sbin/kdb5_util create -r CISCO.EDU -s
Step 2
Add the switch to the database. The following example adds a switch called Cat6509 to the CISCO.EDU database:
ank host/Cat6509.cisco.edu@CISCO.EDU
Step 3
Step 4
Step 5
Using the admin.local ktadd command, create the database entry for the switch as follows:
ktadd host/Cat6509.cisco.edu@CISCO.EDU
Step 6
Move the keytab file to a place where the switch can reach it.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-31
Step 7
Enabling Kerberos
To enable Kerberos authentication, perform this task in privileged mode: Task
Step 1 Step 2
Command set authentication login kerberos enable [all | console | http | telnet] [primary] show authentication
This example shows how to enable Kerberos as the login authentication method for Telnet and verify the configuration:
kerberos> (enable) set authentication login kerberos enable telnet kerberos login authentication set to enable for telnet session. kerberos> (enable) show authentication Login Authentication: Console Session Telnet Session --------------------- ---------------- ---------------tacacs disabled disabled radius disabled disabled kerberos disabled enabled(primary) local enabled(primary) enabled Enable Authentication:Console Session Telnet Session ---------------------- ----------------- ---------------tacacs disabled disabled radius disabled disabled kerberos disabled enabled(primary) local enabled(primary) enabled kerberos> (enable)
This example shows how to enable Kerberos as the login authentication method for the console and verify the configuration:
kerberos> (enable) set authentication login kerberos enable console kerberos login authentication set to enable for console session. kerberos> (enable) show authentication Login Authentication: Console Session Telnet Session --------------------- ---------------- ---------------tacacs disabled disabled radius disabled disabled kerberos enabled(primary) enabled(primary) local enabled enabled Enable Authentication:Console Session Telnet Session ---------------------- ----------------- ---------------tacacs disabled disabled radius disabled disabled kerberos enabled(primary) enabled(primary) local enabled enabled kerberos> (enable)
21-32
78-13315-02
Chapter 21
Note
Make sure the realm is entered in uppercase letters. Kerberos will not authenticate users if the realm is entered in lowercase letters. This example shows how to define a local realm and how to verify the configuration:
kerberos> (enable) set kerberos local-realm CISCO.COM Kerberos local realm for this switch set to CISCO.COM. kerberos> (enable) show kerberos Kerberos Local Realm:CISCO.COM Kerberos server entries: Realm:CISCO.COM, Server:187.0.2.1, Port:750 Kerberos Domain<->Realm entries: Domain:cisco.com, Realm:CISCO.COM Kerberos Clients NOT Mandatory Kerberos Credentials Forwarding Enabled Kerberos Pre Authentication Method set to None Kerberos config key: Kerberos SRVTAB Entries Srvtab Entry 1:host/niners.cisco.com@CISCO.COM 0 932423923 1 1 8 01;;8>00>50;0=0=0 kerberos> (enable)
Command
Specify which KDC to use in a given Kerberos set kerberos server kerberos_realm {hostname | realm. Optionally, enter the port number the KDC ip_address} [port] is monitoring. (The default port number is 750.) Clear the Kerberos server entry. clear kerberos server kerberos_realm {hostname | ip_address} [port]
Step 2
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-33
This example shows how to specify which Kerberos server will serve as the KDC for the specified Kerberos realm and how to clear the entry:
kerberos> (enable) set kerberos server CISCO.COM 187.0.2.1 750 Kerberos Realm-Server-Port entry set to:CISCO.COM - 187.0.2.1 - 750 kerberos> (enable) Console> (enable) clear kerberos server CISCO.COM 187.0.2.1 750 Kerberos Realm-Server-Port entry CISCO.COM-187.0.2.1-750 deleted Console> (enable)
Command
(Optional) Map a host name or DNS domain to a set kerberos realm {dns_domain | host} Kerberos realm. kerberos_realm Clear the Kerberos realm domain or host mapping clear kerberos realm {dns_domain | host} entry. kerberos_realm This example shows how to map a Kerberos realm to a DNS domain and how to clear the entry:
Console> (enable) set kerberos realm CISCO CISCO.COM Kerberos DnsDomain-Realm entry set to CISCO - CISCO.COM Console> (enable) Console> (enable) clear kerberos realm CISCO CISCO.COM Kerberos DnsDomain-Realm entry CISCO - CISCO.COM deleted Console> (enable)
21-34
78-13315-02
Chapter 21
To remotely copy SRVTAB files to the switch from the KDC, perform this task in privileged mode: Task
Step 1 Step 2
Command
Retrieve a specified SRVTAB file from the KDC. set kerberos srvtab remote {hostname | ip_address} filename (Optional) Enter the SRVTAB directly into the switch. set kerberos srvtab entry kerberos_principal principal_type timestamp key_version number key_type key_length encrypted_keytab
This example shows how to retrieve an SRVTAB file from the KDC, enter an SRVTAB directly into the switch, and verify the configuration:
kerberos> (enable) set kerberos srvtab remote 187.20.32.10 /users/jdoe/krb5/ninerskeytab kerberos> (enable) kerberos> (enable) set kerberos srvtab entry host/niners.cisco.com@CISCO.COM 0 932423923 1 1 8 03;;5>00>50;0=0=0 Kerberos SRVTAB entry set to Principal:host/niners.cisco.com@CISCO.COM Principal Type:0 Timestamp:932423923 Key version number:1 Key type:1 Key length:8 Encrypted key tab:03;;5>00>50;0=0=0 kerberos> (enable) show kerberos Kerberos Local Realm:CISCO.COM Kerberos server entries: Realm:CISCO.COM, Server:187.0.2.1, Port:750 Realm:CISCO.COM, Server:187.20.2.1, Port:750 Kerberos Domain<->Realm entries: Domain:cisco.com, Realm:CISCO.COM Kerberos Clients NOT Mandatory Kerberos Credentials Forwarding Enabled Kerberos Pre Authentication Method set to None Kerberos config key: Kerberos SRVTAB Entries Srvtab Entry 1:host/niners.cisco.com@CISCO.COM 0 932423923 1 1 8 03;;5>00>50;0=0=0 Srvtab Entry 2:host/niners.cisco.edu@CISCO.EDU 0 933974942 1 1 8 00?58:127:223=:;9 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-35
Set all clients to forward user credentials upon successful Kerberos authentication. (Optional) Configure Telnet to fail if clients cannot authenticate to the remote server.
This example shows how to configure clients to forward user credentials and verify the configuration:
kerberos> (enable) set kerberos credentials forward Kerberos credentials forwarding enabled kerberos> (enable) show kerberos Kerberos Local Realm:CISCO.COM Kerberos server entries: Realm:CISCO.COM, Server:187.0.2.1, Port:750 Realm:CISCO.COM, Server:187.20.2.1, Port:750 Kerberos Domain<->Realm entries: Domain:cisco.com, Realm:CISCO.COM Kerberos Clients NOT Mandatory Kerberos Credentials Forwarding Enabled Kerberos Pre Authentication Method set to None Kerberos config key: Kerberos SRVTAB Entries Srvtab Entry 1:host/aspen-niners.cisco.edu@CISCO.EDU 0 933974942 1 1 8 00?91:107:423=:;9 kerberos> (enable)
This example shows how to configure the switch so that Kerberos clients are mandatory for users to authenticate to other network services:
Console> (enable) set kerberos clients mandatory Kerberos clients set to mandatory Console> (enable)
21-36
78-13315-02
Chapter 21
This example shows how to clear the credentials forwarding configuration and verify the change:
Console> Kerberos Console> Kerberos Kerberos (enable) clear kerberos credentials forward credentials forwarding disabled (enable) show kerberos Local Realm not configured server entries:
Kerberos Domain<->Realm entries: Kerberos Kerberos Kerberos Kerberos Kerberos Console> Clients NOT Mandatory Credentials Forwarding Disabled Pre Authentication Method set to None config key: SRVTAB Entries (enable)
To clear the Kerberos clients mandatory configuration, perform this task in privileged mode: Task Clear the Kerberos clients mandatory configuration. Command clear kerberos clients mandatory
This example shows how to clear the clients mandatory configuration and verify the change:
Console> Kerberos Console> Kerberos Kerberos (enable) clear kerberos clients mandatory clients mandatory cleared (enable) show kerberos Local Realm not configured server entries:
Kerberos Domain<->Realm entries: Kerberos Kerberos Kerberos Kerberos Kerberos Console> Kerberos Clients NOT Mandatory Credentials Forwarding Disabled Pre Authentication Method set to None config key: SRVTAB Entries (enable) server entries:
Kerberos Domain<->Realm entries: Kerberos Kerberos Kerberos Kerberos Kerberos Console> Clients Mandatory Credentials Forwarding Disabled Pre Authentication Method set to Encrypted Unix Time Stamp config key: SRVTAB Entries (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-37
This example shows how to define a DES key and verify the configuration:
kerberos> (enable) set key config-key abcd Kerberos config key set to abcd kerberos> (enable) show kerberos Kerberos Local Realm:CISCO.COM Kerberos server entries: Realm:CISCO.COM, Server:170.20.2.1, Port:750 Realm:CISCO.COM, Server:172.20.2.1, Port:750 Kerberos Domain<->Realm entries: Domain:cisco.com, Realm:CISCO.COM Kerberos Clients Mandatory Kerberos Credentials Forwarding Disabled Kerberos Pre Authentication Method set to Encrypted Unix Time Stamp Kerberos config key:abcd Kerberos SRVTAB Entries Srvtab Entry 1:host/aspen-niners.cisco.edu@CISCO.EDU 0 933974942 1 1 8 12151><88?=>>3>11 kerberos> (enable)
To clear the DES key, perform this task in privileged mode: Task Clear a DES key from the switch. This example shows how to clear the DES key:
Console> (enable) clear key config-key Kerberos config key cleared Console> (enable)
21-38
78-13315-02
Chapter 21
To encrypt a Telnet session, perform this task: Task Encrypt a Telnet session. Command telnet encrypt kerberos host
This example shows how to configure a Telnet session for Kerberos authentication and encryption:
Console> (enable) telnet encrypt kerberos
To display the Kerberos configuration, perform this task in privileged mode: Task Display the Kerberos configuration. Command show kerberos
To display the Kerberos credentials, perform this task in privileged mode: Task Display the Kerberos credentials. Command show kerberos creds
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-39
To clear all Kerberos credentials, perform this task in privileged mode: Task Clear all credentials. Command clear kerberos creds
This example shows how to clear all Kerberos credentials from the switch:
Console> (enable) clear kerberos creds Console> (enable)
Enabling 802.1x Globally, page 21-xl Disabling 802.1x Globally, page 21-xli Enabling and Initializing 802.1x Authentication for Individual Ports, page 21-xli Setting and Enabling Automatic Reauthentication of the Supplicant, page 21-xlii Manually Reauthenticating the Supplicant, page 21-xliii Enabling Multiple Hosts, page 21-xliii Disabling Multiple Hosts, page 21-xliii Setting the Quiet Period, page 21-xliv Setting the Authenticator-to-Supplicant Retransmission Time for EAP-Request/Identity Frames, page 21-xliv Setting the Back-End Authenticator-to-Supplicant Retransmission Time for EAP-Request Frames, page 21-xliv Setting theBack-End Authenticator-to-Authentication-Server Retransmission Time for Transport Layer Packets, page 21-xlv Setting the Back-End Authenticator-to-Supplicant Frame-Retransmission Number, page 21-xlv Resetting the 802.1x Configuration Parameters to the Default Values, page 21-xlvi Setting the Trace Severity, page 21-xlvi Using the show Commands, page 21-xlvii
21-40
78-13315-02
Chapter 21
To globally enable 802.1x authentication, perform this task in privileged mode: Task Globally enable 802.1x. Command set dot1x system-auth-control enable
Note
You must specify at least one RADIUS server before you can enable 802.1x authentication on the switch. For information on specifying a RADIUS server, see the Specifying RADIUS Servers section on page 21-xxiv. To enable and initialize 802.1x authentication for access to the switch, perform this task in privileged mode: Task Command set port dot1x mod/port port-control auto set port dot1x mod/port initialize show port dot1x mod/port
Enable 802.1x control on a specific port. Initialize 802.1x on the same port. Verify the 802.1x configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-41
This example shows how to enable 802.1x authentication on port 1 in module 4, initialize 802.1x authentication on the same port, and verify the configuration:
Console> (enable) set port dot1x 4/1 port-control auto Port 4/1 dot1x port-control is set to auto. Trunking disabled for port 4/1 due to Dot1x feature. Spantree port fast start option enabled for port 4/1. Console> (enable) set port dot1x 4/1 initialize Port 4/1 initializing... Port 4/1 dot1x initialization complete. Console> (enable) show port dot1x 4/1 Port Auth-State BEnd-State Port-Control Port-Status ----- ------------------- ---------- ------------------- ------------4/1 connecting finished auto unauthorized Port Multiple-Host Re-authentication ----- ------------- ----------------4/1 disabled disabled
Command set dot1x re-authperiod seconds set port dot1x re-authentication enable show port dot1x mod/port
Set the time constant for reauthenticating the supplicant. Enable reauthentication. Verify the 802.1x configuration.
This example shows how to set automatic reauthentication to 7200 seconds, enable 802.1x reauthentication, and verify the configuration:
Console> (enable) set dot1x re-authperiod 7200 dot1x re-authperiod set to 7200 seconds Console> (enable) set port dot1x re-authentication enable Port 4/1 re-authentication enabled. Console> (enable) show port dot1x 4/1 Port Auth-State BEnd-State Port-Control Port-Status ----- ------------------- ---------- ------------------- ------------4/1 connecting finished auto unauthorized Port Multiple-Host Re-authentication ----- ------------- ----------------4/1 disabled enabled
21-42
78-13315-02
Chapter 21
Manually reauthenticate the supplicant connected set port dot1x mod/port re-authenticate to a specific port. This example shows how to manually reauthenticate the supplicant connected to port 1 on module 4:
Console> (enable) set port dot1x 4/1 re-authenticate Port 4/1 re-authenticating... dot1x re-authentication successful... dot1x port 4/1 authorized.
This example shows how to enable access for multiple hosts on port 1 on module 4:
Console> (enable) set port dot1x 4/1 multiple-host enable Port 4/1 multiple hosts allowed.
This example shows how to disable access for multiple hosts on port 1 on module 4:
Console> (enable) set port dot1x 4/1 multiple-host disable Port 4/1 multiple hosts not allowed.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-43
This example shows how to set the authenticator-to-supplicant retransmission time for the EAP-request/identity frame to 15 seconds:
Console> (enable) set dot1x tx-period 15 dot1x tx-period set to 15 seconds.
Set the back-end authenticator-to-supplicant set dot1x supp-timeout seconds retransmission time for the EAP-request frame.
21-44
78-13315-02
Chapter 21
This example shows how to set the back-end authenticator-to-supplicant retransmission time for the EAP-request frame to 15 seconds:
Console> (enable) set dot1x supp-timeout 15 dot1x supp-timeout set to 15 seconds.
This example shows how to set the value for the retransmission time for transport layer packets sent from the back-end authenticator to the authentication server to 15 seconds:
Console> (enable) set dot1x server-timeout 15 dot1x server-timeout set to 15 seconds.
This example shows how to set the number of retransmitted frames sent from the back-end authenticator to the supplicant to 4:
Console> (enable) set dot1x max-req 4 dot1x max-req set to 4.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-45
Reset the 802.1x configuration parameters to the default values and globally disable 802.1x. Verify the 802.1x configuration.
This example shows how to reset the 802.1x configuration parameters to the default values and verify the configuration:
Console> (enable) clear dot1x config This command will disable dot1x on all ports and take dot1x parameter values back to factory defaults. Do you want to continue (y/n) [n]? Console> (enable) show dot1x PAE Capability Authenticator Only Protocol Version 1 system-auth-control enabled max-req 2 quiet-period 60 seconds re-authperiod 3600 seconds server-timeout 30 seconds supp-timeout 30 seconds tx-period 30 seconds
Set the trace severity for 802.1x authentication. set trace dot1x trace-level This example shows how to set the trace severity for 802.1x authentication to 5:
Console> (enable) set trace dot1x 5 DOT1X tracing set to 5 Warning!! Turning on trace may affect the operation of the system. Use with caution.
21-46
78-13315-02
Chapter 21
show port dot1x help show port dot1x show port dot1x statistics show dot1x
To display the usage options for the show port dot1x command, perform this task in normal mode: Task Display the usage options for the show port dot1x command. Command show port dot1x help
This example shows how to display the usage options for the show port dot1x command:
Console> (enable) show port dot1x help Usage: show port dot1x [<mod[/port]>] show port dot1x statistics [<mod[/port]>]
To display the values for all the parameters associated with the authenticator PAE and back-end authenticator on a specific port on a specific module, perform this task in normal mode: Task Command
Display the values for all configurable and current show port dot1x mod/port state parameters associated with the authenticator PAE and back-end authenticator on a specific port on a specific module. This example shows how to display the values for all the parameters associated with the authenticator PAE and back-end authenticator on port 1 on module 4:
Console> (enable) show port dot1x 4/1 Port Auth-State BEnd-State Port-Control Port-Status ----- ------------------- ---------- ------------------- ------------4/1 connecting finished auto unauthorized Port Multiple-Host Re-authentication ----- ------------- ----------------4/1 disabled enabled
To display the statistics for the different types of EAP frames transmitted and received by the authenticator on a specific port on a specific module, perform this task in normal mode: Task Display the statistics for the different types of EAP frames transmitted and received by the authenticator on a specific port on a specific module. Command show port dot1x statistics mod/port
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-47
This example shows how to display the statistics for the different types of EAP frames transmitted and received by the authenticator on port 1 on module 4:
Console> (enable) show port dot1x statistics 4/1 Port Tx_Req/Id Tx_Req Tx_Total Rx_Start Rx_Logoff Rx_Resp/Id Rx_Resp ----- --------- ------ -------- -------- --------- ---------- ------4/1 97 0 97 0 0 0 0 Port Rx_Invalid Rx_Len_Err Rx_Total Last_Rx_Frm_Ver Last_Rx_Frm_Src_Mac ----- ---------- ---------- -------- --------------- ------------------4/1 0 0 0 0 00-00-00-00-00-00
To display the global 802.1x parameters, perform this task in normal mode: Task Display the PAE capabilities, protocol version, system-auth-control, and other global dot1x parameters. Command show dot1x
Authentication Example
Figure 3 shows a simple network topology using TACACS+. In this example, TACACS+ authentication is enabled and local authentication is disabled for both login and enable access to the switch for all Telnet connections. When Workstation A attempts to connect to the switch, the user is challenged for a TACACS+ username and password. However, only local authentication is enabled for both login and enable access on the console port. Any user with access to the directly connected terminal can access the switch using the login and enable passwords.
21-48
78-13315-02
Chapter 21
Switch
Workstation A
This example shows how to configure the switch so that TACACS+ authentication is enabled for Telnet connections, local authentication is enabled for console connections, and a TACACS+ encryption key is specified:
Console> (enable) show tacacs Tacacs key: Tacacs login attempts: 3 Tacacs timeout: 5 seconds Tacacs direct request: disabled Tacacs-Server Status ---------------------------------------------Console> (enable) set tacacs server 172.20.52.10 172.20.52.10 added to TACACS server table as primary server. Console> (enable) set tacacs key tintin_et_milou The tacacs key has been set to tintin_et_milou. Console> (enable) set authentication login tacacs enable telnet tacacs login authentication set to enable for telnet session. Console> (enable) set authentication enable tacacs enable telnet tacacs enable authentication set to enable for telnet session. Console> (enable) set authentication login local disable telnet local login authentication set to disable for telnet session. Console> (enable) set authentication enable local disable telnet local enable authentication set to disable for telnet session. Console> (enable) show tacacs Tacacs key: tintin_et_milou Tacacs login attempts: 3 Tacacs timeout: 5 seconds Tacacs direct request: disabled Tacacs-Server ---------------------------------------172.20.52.10 Console> (enable) Status ------primary
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18927
Terminal
21-49
Authorization Overview, page 21-l Authorization Events, page 21-l TACACS+ Primary Options and Fallback Options, page 21-l TACACS+ Command Authorization, page 21-li RADIUS Authorization, page 21-li
Authorization Overview
Catalyst 6000 family switches support TACACS+ and RADIUS authorization. Authorization limits access to specified users using a dynamically applied access list (or user profile) based on the username and password pair. The access list resides on the host running the TACACS+ or RADIUS server. The server responds to the user password information with an access list number that causes the specific list to be applied.
Authorization Events
You can enable authorization for the following:
CommandsWhen you enable the authorization feature for commands, the user must supply a valid username and password pair to execute certain commands. You can require authorization for all commands or for configuration (enable mode) commands only. When a user issues a command, the authorization server receives the command and user information and compares it against an access list. If the user is authorized to issue that command, the command is executed; otherwise, the command is not executed. EXEC mode (normal login)When the authorization feature is enabled for EXEC mode, the user must supply a valid username and password pair to gain access to EXEC mode. Authorization is required only if you have enabled the authorization feature. Enable mode (privileged login)When the authorization feature is enabled for enable mode, the user must supply a valid username and password pair to gain access to enable mode. Authorization is required only if you have enabled the authorization feature for enable mode.
tacacs+If you have been authenticated, and there is no response from the TACACS+ server, then authorization will succeed immediately. denyDeny is strictly a fallback option. Authorization will fail if the TACACS+ server fails to respond. This is the default behavior. if-authenticatedIf you have been authenticated, and there is no response from the TACACS+ server, then authorization will succeed immediately. noneAuthorization will succeed if the TACACS+ server does not respond.
21-50
78-13315-02
Chapter 21
copy clear commit configure delete download format reload rollback session set squeeze switch undelete
The following TACACS+ authorization process occurs for every command that you enter:
If you have disabled the command authorization feature, the TACACS+ server will allow you to execute any command on the switch. If you have enabled authorization for configuration commands only, the switch will verify that the argument string matches one of the commands listed above. If there is no match, the switch completes the command. If there is a match, the switch forwards the command to the NAS for authorization. If you have enabled authorization for all commands, the switch forwards the command to the NAS for authorization.
RADIUS Authorization
RADUIS has limited authorization. There is one attribute, Service-Type, in the authentication protocol that provides authorization information. This attribute is part of the user-profile. When you log in using RADIUS authentication and you do not have Administrative/Shell (6) Service-Type access, the network access server (NAS) authenticates you, and then logs you in to the EXEC mode. If you have Administrative/Shell (6) Service-Type access, the NAS authenticates you, and then logs you in to the privileged mode.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-51
Configuring Authorization
These sections describe how to configure authorization:
TACACS+ Authorization Default Configuration, page 21-lii TACACS+ Authorization Configuration Guidelines, page 21-lii Configuring TACACS+ Authorization, page 21-lii Configuring RADIUS Authorization, page 21-lv
Feature TACACS+ login authorization (console and Telnet) TACACS+ EXEC authorization (console and Telnet) TACACS+ enable authorization (console and Telnet) TACACS+ commands authorization (console and Telnet)
TACACS+ authorization is disabled by default. Authorization configuration applies to console connections, Telnet connections, or both types of connections. You must specify the mode, option, fallback option, and connection type when enabling authorization. Configure RADIUS and TACACS+ servers before enabling authorization. See the Specifying TACACS+ Servers section on page 21-xvii or the Specifying RADIUS Servers section on page 21-xxiv for more information on server setup. Configure RADIUS and TACACS+ keys to encrypt protocol packets before enabling authorization. See the Specifying the TACACS+ Key section on page 21-xix or the Specifying the RADIUS Key section on page 21-xxiv for more information on the key setup.
Enabling TACACS+ Authorization, page 21-liii Disabling TACACS+ Authorization, page 21-liv
21-52
78-13315-02
Chapter 21
Enable authorization for normal mode. Enter the console or telnet keyword if you want to enable authorization only for console port or Telnet connection attempts. Enter the both keyword to enable authorization for both console port and Telnet connection attempts. Enable authorization for enable mode. Enter the console or telnet keyword if you want to enable authorization only for console port or Telnet connection attempts. Enter the both keyword to enable authorization for both console port and Telnet connection attempts.
Step 2
Step 3
Enable authorization of configuration commands. set authorization commands enable {config | Enter the console or telnet keyword if you want to all} {option}{fallbackoption} [console | telnet | both] enable authorization only for console port or Telnet connection attempts. Enter the both keyword to enable authorization for both console port and Telnet connection attempts. Verify the TACACS+ authorization configuration. show authorization This example shows how to enable TACACS+ EXEC mode authorization for both console and Telnet connections. Authorization is configured with the tacacs+ option. The fallback option is deny:
Console> (enable) set authorization exec enable tacacs+ deny both Successfully enabled enable authorization. Console>
Step 4
This example shows how to enable TACACS+ enable mode authorization for console and Telnet connections. Authorization is configured with the tacacs+ option. The fallback option is deny:
Console> (enable) set authorization enable enable tacacs+ deny both Successfully enabled enable authorization. Console>
This example shows how to enable TACACS+ command authorization for both console and Telnet connections. Authorization is configured with the tacacs+ option. The fallback option is deny:
Console> (enable) set authorization commands enable config tacacs+ deny both Successfully enabled commands authorization. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-53
tacacs+ -
deny -
Command
Disable authorization for normal mode. Enter the set authorization exec disable [console | telnet | console or telnet keyword if you want to disable both] authorization only for console port or Telnet connection attempts. Enter the both keyword to disable authorization for both console port and Telnet connection attempts. Disable authorization for enable mode. Enter the console or telnet keyword if you want to disable authorization only for console port or Telnet connection attempts. Enter the both keyword to disable authorization for both console port and Telnet connection attempts. set authorization enable disable [console | telnet | both]
Step 2
Step 3
set authorization commands disable [console | Disable authorization of configuration commands. Enter the console or telnet keyword if telnet | both] you want to disable authorization only for console port or Telnet connection attempts. Enter the both keyword to disable authorization for both console port and Telnet connection attempts. Verify the TACACS+ authorization configuration. show authorization This example shows how to disable TACACS+ EXEC mode authorization for both console and Telnet connections and how to verify the configuration:
Console> (enable) set authorization exec disable both Successfully disabled enable authorization. Console> (enable)
Step 4
This example shows how to disable TACACS+ enable mode authorization for both console and Telnet connections and how to verify the configuration:
Console> (enable) set authorization enable disable both Successfully disabled enable authorization. Console> (enable)
21-54
78-13315-02
Chapter 21
This example shows how to disable TACACS+ command authorization for both console and Telnet connections and how to verify the configuration:
Console> (enable) set authorization commands disable both Successfully disabled commands authorization. Console> (enable)
Enabling RADIUS Authorization, page 21-lv Disabling RADIUS Authorization, page 21-lv
Enter the set authentication login radius enable command in privileged mode. This command enables both RADIUS authentication and authorization. Set the Service-Type (RADIUS attribute 6) for the user to Admistrative (that is, a value of 6) in the RADIUS server to launch the user into enable mode in the RADIUS server. If the service-type is set for anything other than 6-administrative (for example, 1-login, 7-shell, or 2-framed), you will be at the switch EXEC prompt, not the enable prompt.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-55
Authorization Example
Figure 4 shows a simple network topology using TACACS+. When Workstation A initiates a command on the switch, the switch registers a request with the TACACS+ daemon. The TACACS+ daemon determines if the user is authorized to use the feature and sends a response either executing the command or denying access.
Figure 21-4 TACACS+ Example Network Topology
Switch
Workstation A
In this example, TACACS+ authorization is enabled for enable mode access to the switch for both Telnet and console connections, authorizing configuration commands:
Console> (enable) set authorization enable enable tacacs+ deny both Successfully enabled enable authorization. Console> (enable) set authorization commands enable config tacacs+ deny both Successfully enabled commands authorization. Console> (enable) show authorization Telnet: ------Primary Fallback -------------exec: tacacs+ deny enable: tacacs+ deny commands: config: tacacs+ deny all: Console: -------Primary ------tacacs+ tacacs+ Fallback -------deny deny deny -
21-56
18927
Terminal
78-13315-02
Chapter 21
Accounting Overview, page 21-lvii Accounting Events, page 21-lvii Specifying When to Create Accounting Records, page 21-lviii Specifying RADIUS Servers, page 21-lviii Updating the Server, page 21-lix Suppressing Accounting, page 21-lix
Accounting Overview
You can configure these accounting methods to monitor access to the switch:
Accounting allows you to track user activity to a specified host, suspicious connection attempts in the network, and unauthorized changes to the NAS configuration itself. The accounting information is sent to the accounting server where it is saved in the form of a record. Accounting information typically consists of the users action and the duration for which the action lasted. You can use the accounting feature for security, billing, and resource allocation purposes. The accounting protocol operates in a client-server model, using TCP for transport. The NAS acts as the client and the accounting server acts as the daemon. The NAS sends accounting information to the server. The server, after successfully processing the information, sends a response to the NAS, acknowledging the request. All transactions between the NAS and server are authenticated using a key. Once accounting has been enabled and an accountable event occurs on the system, the accounting information is gathered dynamically in memory. When the event ends, an accounting record is created and sent to the NAS, and then the system deletes the record from memory. The amount of memory used by the NAS for accounting varies depending on the number of concurrent accountable events.
Accounting Events
You can configure accounting for the following types of events:
EXEC mode accountingProvides information about user EXEC sessions (normal login sessions) on the NAS (includes the duration of the EXEC session but does not include traffic statistics). Connect accountingProvides information about all outbound connections from the NAS (such as Telnet, rlogin).
Note
If you get a connection immediately upon login and then your connection terminates, the EXEC and connect events overlap and have almost identical start and stop times.
System accountingProvides information on system events not related to users (includes system reset, system boot, and user configuration of accounting).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-57
Command accountingSends a record for each command issued by the user. This permits audit trail information to be gathered.
Start recordsInclude partial information of the event (when the event started, type of service, and traffic statistics). Stop recordsInclude complete information of the event (when the event started, its duration, type of service, and traffic statistics).
Accounting records are created and sent to the server at two events:
Start-stopRecords are sent at both the start and stop of an action if the action has duration. If the NAS fails to send the accounting record at the start of the action, it still allows you to proceed with the action. Stop-onlyRecords are sent only at the termination of the event. Commands are assumed to have zero duration, so only stop records are generated for command accounting. No users are associated with system events; therefore, the start-stop option in the set accounting system command is ignored for system events.
Note
Stop records include complete information of the event (when the event started, its duration, and traffic statistics). However, you might want redundancy and, therefore, may monitor both start and stop records of events occurring on the NAS.
Specify the IP address of up to three RADIUS servers. Specify the primary server using the primary keyword. Optionally, specify the destination UDP port to use on the server. Verify the RADIUS server configuration.
Step 2
show radius
This example shows how to specify a RADIUS server and verify the configuration:
Console> (enable) set radius server 172.20.52.3 172.20.52.3 with auth-port 1812 added to radius server table as primary server. Console> (enable) show radius Login Authentication: --------------------tacacs radius local Console Session ---------------disabled disabled enabled(primary) Telnet Session ---------------disabled disabled enabled(primary) Telnet Session
21-58
78-13315-02
Chapter 21
---------------------tacacs radius local Radius Radius Radius Radius Deadtime: Key: Retransmit: Timeout:
Auth-port -----------1812
NewinfoSends accounting information to the server only when new accounting information becomes available. PeriodicSends accounting update records at regular intervals. This option could be used to keep up-to-date connection and session information even if the NAS restarts and loses the initial start time. You must set a time lapse between periodic updates. Valid intervals are from 1 to 71,582 minutes.
Suppressing Accounting
You can configure the system to suppress accounting when an unknown user with no username accesses the switch by using the set accounting suppress null-username enable command.
Note
RADIUS and TACACS+ accounting are the same, except that RADIUS does not do command accounting, periodic updates, or allow null-username suppression.
Configuring Accounting
These sections describe how to configure accounting for both TACACS+ and RADIUS:
Accounting Default Configuration, page 21-lx Accounting Configuration Guidelines, page 21-lx Configuring Accounting, page 21-lx
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-59
Feature Accounting Accounting events (exec, system, commands, and connect) Accounting records
Configure RADIUS and TACACS+ servers before enabling accounting. See the Specifying TACACS+ Servers section on page 21-xvii or the Specifying RADIUS Servers section on page 21-xxiv for more information on server setup. Configure RADIUS and TACACS+ keys to encrypt protocol packets before enabling accounting. See the Specifying the TACACS+ Key section on page 21-xix or the Specifying the RADIUS Key section on page 21-xxiv for more information on the key setup.
Note
The amount of DRAM allocated for one accounting event is approximately 500 bytes. The total amount of DRAM used by accounting depends on the number of concurrent accountable events in the system.
Configuring Accounting
These sections describe how to configure RADIUS and TACACS+ accounting on the switch:
Enabling Accounting
To enable accounting on the switch, perform this task in privileged mode: Task
Step 1 Step 2 Step 3
Command set accounting connect enable {start-stop | stop-only} {tacacs+ | radius} set accounting exec enable {start-stop | stop-only} {tacacs+ | radius} set accounting system enable {start-stop | stop-only} {tacacs+ | radius}
Enable accounting for connection events. Enable accounting for EXEC mode. Enable accounting for system events.
21-60
78-13315-02
Chapter 21
Task
Step 4 Step 5 Step 6 Step 7
Command set accounting commands enable {config | all} {stop-only} tacacs+ set accounting suppress null-username enable set accounting update {new-info | {periodic [interval]}} show accounting
Enable accounting of configuration commands. Enable suppression of information for unknown users. Configure accounting to be updated as new information is available. Verify the accounting configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
21-61
Overall Accounting Traffic: Starts Stops Active --------- -----Exec 0 0 0 Connect 0 0 0 Command 0 0 0 System 1 0 0 Console> (enable)
Disabling Accounting
To disable RADIUS accounting on the switch, perform this task in privileged mode: Task
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6
Command set accounting connect disable set accounting exec disable set accounting system disable set accounting commands disable set accounting suppress null-username disable show accounting
Disable accounting for connection events. Disable accounting for EXEC mode. Disable accounting for system events. Disable accounting of configuration commands. Disable suppression of information for unknown users. Verify the accounting configuration.
21-62
78-13315-02
Chapter 21
TACACS+ Suppress for no username: disabled Update Frequency: new-info Accounting information: ----------------------Active Accounted actions on tty0, User (null) Priv 0 Active Accounted actions on tty288091924, User (null) Priv 0 Overall Accounting Traffic: Starts Stops Active --------- -----Exec 0 0 0 Connect 0 0 0 Command 0 0 0 System 1 2 0 Console> (enable)
Accounting Example
Figure 5 shows a simple network topology using TACACS+. When Workstation A initiates an accountable event on the switch, the switch gathers event information and forwards the information to the server at the conclusion of the event. Accounting information is gathered at the conclusion of the event. Accounting is suspended for unknown users and the system is updated every 120 minutes.
Figure 21-5 TACACS+ Example Network Topology
Switch
Workstation A
In this example, TACACS+ accounting is enabled for connection, exec, system, and all command accounting:
Console> (enable) Accounting set to Console> (enable) Accounting set to Console> (enable) Accounting set to set accounting connect enable stop-only tacacs+ enable for connect events in stop-only mode. set accounting exec enable stop-only tacacs+ enable for exec events in stop-only mode. set accounting commands enable all stop-only tacacs+ enable for commands-all events in stop-only mode.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
18927
Terminal
21-63
Console> (enable) set accounting update periodic 120 Accounting updates will be periodic at 120 minute intervals. Console> (enable) show accounting Event Method Mode ----------- ---exec: tacacs+ stop-only connect: tacacs+ stop-only system: tacacs+ stop-only commands: config: all: tacacs+ stop-only TACACS+ Suppress for no username: enabled Update Frequency: periodic, Interval = 120 Accounting information: ----------------------Active Accounted actions on tty0, User (null) Priv 0 Active Accounted actions on tty288091924, User (null) Priv 0 Overall Accounting Traffic: Starts Stops Active --------- -----Exec 0 0 0 Connect 0 0 0 Command 0 0 0 System 1 0 0 Console> (enable)
21-64
78-13315-02
C H A P T E R
22
Configuring Redundancy
This chapter describes how to configure redundant supervisor engines and how to configure redundancy on Multilayer Switch Feature Cards (MSFCs) on the Catalyst 6000 family switches. This chapter consists of these sections:
Understanding How Supervisor Engine Redundancy Works, page 22-ii Configuring Redundant Supervisor Engines, page 22-iii MSFC Redundancy, page 22-xviii
Caution
Dual MSFCs in a single chassis are designed to be used in redundant mode only and must have identical configurations. See the MSFC Redundancy section on page 22-xviii for detailed information. We do not support configurations where the MSFCs are not configured identically.
Note
Except where specifically differentiated, the information and procedures in this chapter apply to both Supervisor Engine 2 with Layer 3 Switching Engine II (Policy Feature Card 2 or PFC2) and Supervisor Engine 1 with Layer 3 Switching Engine II.
Note
The term MSFC is used to refer to the MSFC and MSFC2 except where specifically differentiated. For more information about installing redundant Catalyst 6000 family supervisor engines, refer to the Catalyst 6000 Family Module Installation Guide. For syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-1
Configuring Redundancy
Redundant supervisor engines must be of the same type with the same model feature card. When you install two supervisor engines, the first supervisor engine to come online becomes the active module; the second supervisor engine goes into standby mode. All administrative and network management functions, such as SNMP, command-line interface (CLI) console, Telnet, Spanning Tree Protocol (STP), Cisco Discovery Protocol (CDP), and VLAN Trunk Protocol (VTP) are processed on the active supervisor engine. On the standby supervisor engine, the console port is inactive, the module status shows as standby, and the status for the uplink ports is shown normally. You must install redundant supervisor engines in slots 1 and 2 of the chassis. Redundant supervisor engines are hot swappable. The system continues to operate with the same configuration after switching over to the redundant supervisor engine.
Note
To allow you to control the booting of each supervisor engine separately, the configuration registers are not synchronized between the supervisor engines.
Note
The switchover time from the active to the standby supervisor engine does not include spanning tree convergence time. At power-up, both supervisor engines run initial module-level diagnostics. Assuming both supervisor engines pass this level of diagnostics, the two supervisor engines communicate over the backplane, allowing them to cooperate during switching-bus diagnostics. The supervisor engine in slot 1 becomes active, and the supervisor engine in slot 2 enters standby mode. If the software versions of the two supervisor engines are different, or if the NVRAM configuration of the two supervisor engines is different, the active supervisor engine automatically downloads its software image and configuration to the standby supervisor engine. If the background diagnostics on the active supervisor engine detect a major problem or an exception occurs, the active supervisor engine resets. The standby supervisor engine detects that the active supervisor engine is no longer running and becomes active. The standby supervisor engine can detect if the active supervisor engine is not functioning and can force a reset, if necessary. If the reset supervisor engine comes online again, it enters standby mode. If you hot insert a second supervisor engine, the second module communicates with the active supervisor engine after completing its initial module-level diagnostics. Because the active supervisor engine is already switching traffic on the backplane, no switching-bus diagnostics are run for the second supervisor engine because running diagnostics can disrupt normal traffic. The second supervisor engine immediately enters standby mode. The active supervisor engine downloads the software image and configuration to the standby supervisor engine, if necessary. The supervisor engines use two Flash images: the boot image and the runtime image. The boot image filename is specified in the BOOT environment variable, which is stored in NVRAM. The runtime image is the boot image that the ROM monitor uses to boot the supervisor engine. After the system boots, the runtime image resides in dynamic RAM (DRAM). When you power up or reset a switch with redundant supervisor engines, synchronization occurs to ensure that the runtime and boot images on the standby supervisor engine are the same as the images on the active supervisor engine.
22-2
78-13315-02
Chapter 22
The supervisor engines can have different runtime and boot images. If the boot image and the runtime image are the same, and you change the BOOT environment variable or overwrite or destroy the current boot image on the Flash device that was used to boot the system, the runtime and boot images will differ. Whenever you reconfigure the boot image, the active supervisor engine synchronizes its current boot image with the standby supervisor engine. The boot image is read directly into the Flash file system. You can perform operations (such as copy, delete, undelete, and so on) on files stored on Flash memory devices, and you can store the boot image of the active supervisor engine in the standby supervisor engine bootflash. For more information about using the Flash file system, see Chapter 24, Working With the Flash File System. The supervisor engine has a Flash PC card (PCMCIA) slot (slot0) in addition to the onboard Flash memory; this slot can hold a Flash PC card that can store additional boot images.
Note
Throughout this publication, the term Flash PC card is used in place of the term PCMCIA card. Because you can store multiple boot images, you must specify the name of the boot file image and the location of the image file in the Flash file system in order to boot and synchronize properly. For information about how to specify the name and location of the boot image, see Chapter 23, Modifying the Switch Boot Configuration. In the synchronization process, the active supervisor engine checks the standby supervisor engine runtime image to make sure it matches its own runtime image. The active supervisor engine checks three conditions:
If it needs to copy its boot image to the standby supervisor engine If the standby supervisor engine bootstring needs to be changed If the standby supervisor engine needs to be reset
The following section describes the conditions that can initiate Flash synchronization. For examples of how the system synchronizes the supervisor engine Flash images with various configurations, see the Supervisor Engine Synchronization Examples section on page 22-xiv.
Synchronization Process Initiation, page 22-iv Redundant Supervisor Engine Configuration Guidelines and Restrictions, page 22-iv Verifying Standby Supervisor Engine Status, page 22-v Forcing a Switchover to the Standby Supervisor Engine, page 22-vi High Availability, page 22-viii Supervisor Engine Synchronization Examples, page 22-xiv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-3
Configuring Redundancy
Time stamp mismatch between the runtime images on the active and standby supervisor enginesThe active supervisor engine synchronizes its runtime image with the standby supervisor engine if the time stamps of their respective runtime images differ when the system is booted or reset. Time stamp mismatch between the boot images on the active and standby supervisor enginesThe active supervisor engine synchronizes its boot image with the standby supervisor engine if the time stamps of their respective boot images differ when the system is booted or reset, or if you change the BOOT environment variable. Current boot image overwrittenIf you overwrite the current boot image stored on one of the Flash devices, the file system management module detects this event and initiates synchronization. The active supervisor engine copies its new boot image to the standby supervisor engine. BOOT environment variables changedIf you change the BOOT environment variables to specify a different default boot image, the active supervisor engine initiates boot-image synchronization. The NVRAM configuration module detects this event and calls the Flash synchronization function with the next probable boot filename by looking at the boot configuration parameter. Flash PC cards with same boot-image filenameIf you change the Flash device on either the active or standby supervisor engine and the new Flash device contains a boot image that has the same name (but a different time stamp) as the boot image from the previous Flash device, the Flash file management module initiates synchronization. Current runtime image deletedIf you delete the current runtime image from the Flash device, the Flash file management module prompts you to verify that you want to delete the current runtime image. If you confirm the deletion, the Flash file management module initiates Flash synchronization and informs the NVRAM configuration module of the change. The NVRAM configuration module examines the BOOT environment variable to determine the next probable image to boot and calls the Flash synchronization function using the new image name.
Downloading a new image to the active supervisor engine When you download a new image to the active supervisor engine, it is copied to the file system (in bootflash or on a Flash PC card in the Flash PC card slot). Because you may or may not have configured this image as the boot image, the newly downloaded image is not copied to the standby supervisor engine automatically. To initiate the synchronization function between the active and standby supervisor engines, you must configure this newly downloaded image as the boot image on the active supervisor engine. Synchronization occurs when you change the boot variable. To run the new image, you must reset the system.
22-4
78-13315-02
Chapter 22
Unable to find the current runtime image If the active supervisor engine is unable to find the current runtime image on any of the Flash devices, it signals an error condition. In this case, if the standby supervisor engine is inserted or reset, Flash synchronization does not occur. In addition, the STATUS LED on the standby supervisor engine turns red and the system generates a syslog error message.
Active supervisor engine in slot 2 When the active supervisor engine is in slot 2, the standby supervisor engine is in slot 1. If you change the configuration to specify a new boot image and then reset the system, the supervisor engine in slot 1 becomes the active supervisor engine and loads its default boot image, canceling the configuration changes you have just made. To avoid this problem, the switch prompts you for Flash synchronization as soon as you change the boot file configuration.
Note
The show module output provides information about installed daughter cards. The show test command provides information about onboard application-specific integrated circuits (ASICs). To verify the status of the standby supervisor engine, perform one or more of these tasks: Task Show the state of the standby supervisor engine uplink ports. Show diagnostic test results for the standby supervisor engine. Command show port [mod[/port]] show test [mod]
Show the status of the standby supervisor engine. show module [mod]
This example shows how to check the status of the standby supervisor engine using the show module and show test commands:
Console> Mod Slot --- ---2 2 (enable) show module 2 Ports Module-Type Model Status ----- ------------------------- ------------------- -------2 1000BaseX Supervisor WS-X6K-SUP1-2GE ok
Mod Module-Name Serial-Num --- ------------------- ----------2 SAD02330231 Mod MAC-Address(es) Hw Fw Sw --- -------------------------------------- ------ ---------- ----------------2 00-e0-14-0e-f5-6c to 00-e0-14-0e-f5-6d 0.404 4.2(2038) 4.2(0.24)VAI50 00-e0-14-0e-f5-6e to 00-e0-14-0e-f5-6f 00-10-7b-bb-2b-00 to 00-10-7b-bb-2e-ff Mod Sub-Type Sub-Model Sub-Serial Sub-Hw --- ------------------- ------------------- ----------- -----2 L2 Switching Engine WS-F6020 SAD02350211 0.101 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-5
Configuring Redundancy
Console> (enable) show test 2 Module 2 : 2-port 1000BaseX Supervisor Network Management Processor (NMP) Status: (. = Pass, F = Fail, U = Unknown) ROM: . Flash-EEPROM: . Ser-EEPROM: . NVRAM: . EOBC Comm: . Line Card Status for Module 1 : PASS Port Status : Ports 1 2 ----------. . Line Card Diag Status for Module 2
Module 2 Cafe II Status : NewLearnTest: . IndexLearnTest: . DontForwardTest: . DontLearnTest: . ConditionalLearnTest: . BadBpduTest: . TrapTest: . Loopback Status [Reported by Module 2] : Ports 1 2 ----------. . Console> (enable)
Note
Resetting the active supervisor engine disconnects any open Telnet sessions. To force a switchover to the standby supervisor engine, perform this task in privileged mode: Task Command
Reset the active supervisor engine (where mod is reset mod the number of the active supervisor engine). In addition, you can also force a switchover to the standby supervisor engine by setting the CISCO-STACK-MIB moduleAction variable to reset(2) on the active supervisor engine. When the switchover occurs, the system sends a standard SNMP warm-start trap to the configured trap receivers. This example shows the console output on the active supervisor engine when you force a switchover from the active to the standby supervisor engine:
Console> (enable) reset 1 This command will force a switch-over to the standby Supervisor module. Do you want to continue (y/n) [n]? y Console> (enable) 12/07/1998,17:04:39:SYS-5:Module 1 reset from Console// System Bootstrap, Version 3.1(2) Copyright (c) 1994-1997 by cisco Systems, Inc. System Bootstrap, Version 3.1(2)
22-6
78-13315-02
Chapter 22
Copyright (c) 1994-1997 by cisco Systems, Inc. Presto processor with 32768 Kbytes of main memory Autoboot executing command: "boot bootflash:cat6000-sup.5-4-1a.bin" CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC Uncompressing file: ########################################################### System Power On Diagnostics NVRAM Size .. .................512KB ID Prom Test ..................Passed DPRAM Size ....................16KB DPRAM Data 0x55 Test ..........Passed DPRAM Data 0xaa Test ..........Passed DPRAM Address Test ............Passed Clearing DPRAM ................Done System DRAM Memory Size .......32MB DRAM Data 0x55 Test ...........Passed DRAM Data 0xaa Test ...........Passed DRAM Address Test ............Passed Clearing DRAM .................Done EARLII ........................Present EARLII RAM Test ...............Passed EARL Serial Prom Test .........Passed Level2 Cache ..................Present Level2 Cache test..............Passed Boot image: bootflash:cat6000-sup.5-4-1a.bin Downloading epld sram device please wait ... Programming successful for Altera 10K50 SRAM EPLD This module is now in standby mode. Console is disabled for standby supervisor
This example shows the console output on the standby supervisor engine when you force a switchover from the active to the standby supervisor engine:
Cisco Systems Console Enter password: 12/07/1998,17:04:43:MLS-5:Multilayer switching is enabled 12/07/1998,17:04:43:MLS-5:Netflow Data Export disabled 12/07/1998,17:04:44:SYS-5:Module 2 is online 12/07/1998,17:04:45:SYS-5:Module 5 is online 12/07/1998,17:04:45:SYS-5:Module 7 is online 12/07/1998,17:04:45:SYS-5:Module 3 is online 12/07/1998,17:04:52:MLS-5:Route Processor 172.20.52.6 added 12/07/1998,17:05:10:SYS-5:Module 8 is online 12/07/1998,17:05:14:SYS-5:Module 9 is online 12/07/1998,17:05:22:SYS-5:Module 4 is online 12/07/1998,17:06:13:SYS-5:Module 1 is in standby mode Supervisor image synchronization process will start in 10 seconds 12/07/1998,17:06:37:SYS-5:Ports on standby supervisor(Module 1) are UP 12/07/1998,17:06:41:SYS-5:Active supervisor is synchronizing the NMP image. 12/07/1998,17:06:44:SYS-5:The active supervisor has synchronized the NMP image. Console>
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-7
Configuring Redundancy
High Availability
High availability allows you to minimize the switchover time from the active supervisor engine to the standby supervisor engine if the active supervisor engine fails. Prior to this feature, fast switchover ensured that a switchover to the standby supervisor engine happened quickly. However, with fast switchover, because the state of the switch features before the switchover was unknown, you had to reinitialize and restart all the switch features when the standby supervisor engine assumed the active role. High availability removes this limitation; high availability allows the active supervisor engine to communicate with the standby supervisor engine, keeping feature protocol states synchronized. Synchronization between the supervisor engines allows the standby supervisor engine to take over in the event of a failure. In addition, high availability provides a versioning option that allows you to run different software images on the active and standby supervisor engines. These features are discussed in these sections:
High-Availability Overview, page 22-viii High-Availability Supported Features, page 22-ix Versioning Overview, page 22-x CLI Commands, page 22-xi Loading a Different (but Compatible) Image on the Standby Supervisor Engine, page 22-xiii
High-Availability Overview
For high availability, a system database is maintained on the active supervisor engine and updates are sent to the standby supervisor engine for any change of data in the system database. The active supervisor engine communicates and updates the standby supervisor engine when any state changes occur, ensuring that the standby supervisor engine knows the current protocol state of supported features. The standby supervisor engine knows the current protocol states for all modules, ports, and VLANs; the protocols can initialize with this state information and start running immediately. The active supervisor engine controls the system bus (backplane), sends and receives packets to and from the network, and controls all modules. Protocols run on the active supervisor engine only. The standby supervisor engine is isolated from the system bus and does not switch packets. But it does receive packets from the switching bus to learn and populate its Layer 2 forwarding table for Layer 2-switched flows. The standby supervisor engine also receives packets from the switching bus to learn and populate the Multilayer Switching (MLS) table for Layer 3-switched flows. The standby supervisor engine does not participate in forwarding any packets and does not communicate with any modules. If you enable high availability when the standby supervisor engine is running, image version compatibility is checked and if found compatible, the database synchronization is started. High availability compatible features continue from the saved states on the standby supervisor engine after a switchover. When you disable high availability, the database synchronization is not done and all features must restart on the standby supervisor engine after a switchover. If you change high availability from enabled to disabled, synchronization from the active supervisor engine is stopped and the standby supervisor engine discards all current synchronization data.
22-8
78-13315-02
Chapter 22
If you change high availability from disabled to enabled, synchronization from the active to standby supervisor engine is started (provided the standby supervisor engine is present and its image version is compatible). NVRAM synchronization occurs irrespective of high availability being enabled or disabled (provided there are compatible NVRAM versions on the two supervisor engines). If you do not install a standby supervisor engine during system bootup, the active supervisor engine detects this and the database updates are not queued for synchronization. Similarly, when you reset or remove the standby supervisor engine, the synchronization updates are not queued and any pending updates in the synchronization queue are discarded. When you hot insert or restart a second supervisor engine that becomes the standby supervisor engine, the active supervisor engine downloads the entire system database to the standby supervisor engine. Only after this global synchronization is completed, the active supervisor engine queues and synchronizes the individual updates to the standby supervisor engine.
Note
When you hot insert or restart a second supervisor engine, it might take a few minutes for the global synchronization to complete.
MLS flows are preserved from the active supervisor engine to the standby supervisor engine.
Note
High availability does not preserve routing table entries on the active MSFC because high availability is not run on the MSFC IOS software. However, you can configure both MSFCs on the active and standby supervisor engines with the same configuration to preserve routing table entries across the active and standby MSFCs. You can then configure HSRP on the MSFCs to provide automatic routing backup. See the MSFC Redundancy section on page 22-xviii for detailed information. High availability for the Catalyst 6000 family switch is classified into three categories (see Table 1):
Supported featuresHigh availability is fully supported; the features database is synchronized from the active supervisor engine to the standby supervisor engine. Compatible featuresHigh availability is not supported; the features database is not synchronized from the active supervisor engine to the standby supervisor engine. However, the feature can be enabled (operational) with high availability. Incompatible featuresHigh availability is not supported; the features database is not synchronized from the active supervisor engine to the standby supervisor engine. The feature cannot be enabled if high availability is enabled and similarly, high availability cannot be enabled if the feature is enabled.
Note
Timers and statistics are not synchronized from the active to the standby supervisor engine.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-9
Configuring Redundancy
Supported Features CEF COPS-DS COPS-PR DTP EtherChannel IOS ACLs MLS PAgP QoS SPAN STP Trunking UDLD VACLs VTP
Compatible Features ASLB CDP GMRP IGMP snooping RMON RSVP SNMP Telnet sessions UplinkFast VTP pruning
Versioning Overview
When you enable high-availability versioning, you can have two different but compatible images on the active and standby supervisor engines. The active supervisor engine exchanges image version information with the standby supervisor engine and determines whether the images are compatible for enabling high availability. If the active and standby supervisor engines are not running compatible image versions, you cannot enable high availability. Image versioning is supported in supervisor engine software release 5.4(1)CSX and later releases. With versioning enabled, high availability is fully supported with the active and standby supervisor engines running different images as long as the images are compatible. The only fully compatible images are as follows:
Images that are compatible with all modules except Gigabit Ethernet switching modules are as follows:
Images that are compatible with Gigabit Ethernet switching modules but not compatible with 10/100BASE-T modules are as follows:
Note
22-10
78-13315-02
Chapter 22
Note
When you install two supervisor engines, the first supervisor engine to come online becomes the active module; the second supervisor engine goes into standby mode. If two supervisor engines are installed in your system, at power up the supervisor engine in slot 1 becomes active, and the supervisor engine in slot 2 enters standby mode. If the software versions of the two supervisor engines are different, or if the NVRAM configuration of the two supervisor engines is different, and if you do not enable versioning, the active supervisor engine automatically downloads its software image and configuration to the standby supervisor engine.
CLI Commands
This section describes the CLI commands for high availability and versioning.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-11
Configuring Redundancy
High-availability setting (enabled or disabled) Versioning setting (enabled or disabled) High-availability operational status (based on whether the standby supervisor engine is present and operational). The operational status field displays one of the following:
OFF (high-availability-not-enabled): The high availability option in NVRAM is disabled. OFF (standby-supervisor-not-present): The standby supervisor engine is not installed. OFF (standby-supervisor-image-incompatible): The standby supervisor engine is running a
different image than the active supervisor engine and it is not version compatible (the versioning option in NVRAM is enabled). No synchronization is done (even a configuration change in NVRAM on the active supervisor engine cannot be propagated to the standby supervisor engine because of the version incompatibility).
OFF (standby-supervisor-image-nvram-only-compat): The standby supervisor engine is
running a different image than the active supervisor engine (versioning option in NVRAM is enabled) and the image is only NVRAM compatible (that is, a configuration change in NVRAM on the active supervisor engine is propagated to the standby supervisor engine). However, high availability cannot be supported.
OFF (standby-supervisor-not-operational-yet): The standby supervisor engine is detected but is
(online), but high availability is not operational yet (when the system is booted from reset, it takes a few minutes before high availability is operational).
ON: High availability is operational. The active supervisor engines features have started
queuing their state changes for synchronizing to the standby supervisor engine. To show the high-availability configuration and operational states, perform this task: Task Show high-availability configuration and operational states. Command show system highavailability
22-12
78-13315-02
Chapter 22
Step 2
Step 3
Step 4
Modify the BOOT environment variable so the standby supervisor engine boots the new image.
Console> (enable) set boot system flash bootflash:image2.bin prepend 2 BOOT variable = bootflash:image2.bin,1;slot0:image1.bin,1 Console> (enable)
Step 5
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-13
Configuring Redundancy
Synchronizing the Runtime Image with the Bootstring, page 22-xiv Synchronizing the Boot Images on the Active and Standby Supervisor Engines, page 22-xvi
Note
In the following examples, the number 1 following the filename in the bootstring (for example, bootflash:f1,1) indicates the number of Trivial File Transfer Protocol (TFTP) boot retries that are attempted. However, the supervisor engine does not support TFTP booting. The number is included in these examples to be consistent with Cisco IOS conventions.
Note
The active supervisor engine configuration is as follows (if the image in the standby supervisor engine is identical to the image in the active supervisor engine, the output is the same):
Runtime image: bootflash:f1 Boot string: bootflash:f1,1 Bootflash: f1
The time stamp for f1 on the active supervisor engine is the same as f1 on the standby supervisor engine. The expected results are as follows:
The active supervisor engine f1 image is not copied to the standby supervisor engine. The standby supervisor engine bootstring is not modified. The standby supervisor engine is not reset.
22-14
78-13315-02
Chapter 22
The time stamp for f1 on the active supervisor engine is not the same as f2 on the standby supervisor engine. The expected results are as follows:
The active supervisor engine copies f1 to the standby supervisor engine and renames the file
RTSYNC_f1.
The standby supervisor engine bootflash is modified to the following: f2, RTSYNC_f1. The standby supervisor engine bootstring is modified to the following:
bootflash:RTSYNC_f1,1;f2,1;.
The standby supervisor engine is reset.
Example 3: File not copied, bootstring changed, standby supervisor engine reset
The configuration for example 3 is as follows:
The time stamp for f1 on the active supervisor engine is the same as f1 on the standby supervisor engine but is not the same as f2 on the standby supervisor engine. The expected results are as follows:
The active supervisor engine runtime image is synchronized to the standby supervisor engine. The active supervisor engine f1 image is not copied to the standby supervisor engine. The standby supervisor engine boot string is modified to the following: f1,1;f2,1;. The standby supervisor engine is reset.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-15
Configuring Redundancy
The time stamp for f1 on the active supervisor engine is not the same as f2 on the standby supervisor engine. The f2 time stamp is older than f3, and the f3 time stamp is older than f4. The expected results are as follows:
The active supervisor engine runtime image is synchronized with the standby supervisor engine. The active supervisor engine attempts to copy its f1 image to the standby supervisor engine. Because there is not enough space on the standby supervisor engine bootflash, the redundant
synchronization function finds the oldest file, deletes it, and squeezes bootflash.
The active supervisor engine copies the f1 image to the standby supervisor engine and renames
it RTSYNC_f1.
The standby supervisor engine bootflash is modified to the following: f3, f4, RTSYNC_f1. The standby supervisor engine boot string is modified to the following: RTSYNC_f1,1;f2,1;. The standby supervisor engine is reset.
Synchronizing the Boot Images on the Active and Standby Supervisor Engines
This section contains four examples in which the bootstrings on the active and standby supervisor engines are synchronized.
The time stamp for f1 on the active supervisor engine is the same as f1 on the standby supervisor engine. The system attempts to modify the active supervisor engine bootstring to the following: f2,1;. The expected results are as follows:
The active supervisor engine is unable to allocate f2, causing the synchronization to fail. An error is recorded in syslog.
22-16
78-13315-02
Chapter 22
The active supervisor engine f1 image is not copied to the standby supervisor engine. The standby supervisor engine bootstring is not modified. The standby supervisor engine is not reset.
Example 2: File copied, bootflash modified, standby supervisor engine not reset
The configuration for this example is as follows:
The time stamp for f1 on the active supervisor engine is the same as f1 on the standby supervisor engine. You modify the active supervisor engine bootstring to the following: f2,1;. The expected results are as follows:
The active supervisor engine copies its f2 image to the standby supervisor engine and renames
it BTSYNC_f2.
The standby supervisor engine bootflash is modified to the following: f1, BTSYNC_f2. The standby supervisor engine bootstring is modified to the following:
bootflash:BTSYNC_f2,1;f1,1;.
The standby supervisor engine is not reset.
Example 3: File not copied, bootstring modified, standby supervisor engine not reset
The configuration for this example is as follows:
The time stamp for f1 on the active supervisor engine is the same as f1 on the standby supervisor engine; the time stamp for f2 on the active supervisor engine is the same as f2 on the standby supervisor engine. The active supervisor engine bootstring is modified to the following: f2,1; f1,1;.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-17
Configuring Redundancy
bootflash:f2,1;bootflash:f1,1;.
The standby supervisor engine is not reset.
Example 4: File copied, oldest file deleted, bootflash squeezed, bootstring modified, standby supervisor engine not reset
The configuration for this example is as follows:
The time stamp for f1 on the active supervisor engine is the same as f1 on the standby supervisor engine. The time stamp for f0 is older than f1, and the time stamp for f1 is older than f3. The active supervisor engine bootstring is modified to the following: bootflash:f2,1;bootflash:f1,1; The expected results are as follows:
The active supervisor engine attempts to copy its f2 image to the standby supervisor engine. Because there is not enough space available on the standby supervisor engine bootflash, the
redundant synchronization function finds the oldest file (f0), deletes it, and squeezes bootflash.
The active supervisor engine copies its f2 image to the standby supervisor engine and renames
it BTSYNC_f2.
The standby supervisor engine bootflash is modified to the following: f1, f3, BTSYNC_f2. The standby supervisor engine boot string is modified to the following:
bootflash:BTSYNC_f2,1;bootflash:f1,1;.
MSFC Redundancy
MSFC redundancy is described in these sections:
Dual MSFC Redundancy, page 22-xix Single Router Mode Redundancy, page 22-xli Manual-Mode MSFC Redundancy, page 22-xlv
22-18
78-13315-02
Chapter 22
You must configure both MSFCs identically. Table 2 on page 22-xx summarizes the identical requirements and the exceptions for Layer 3 redundancy for a single switch chassis. We do not support configurations where the MSFCs are not configured identically. These sections describe how to configure MSFC redundancy:
Hardware and Software Requirements, page 22-xix Layer 3 Redundancy for a Single Chassis, page 22-xix Routing Protocol Peering, page 22-xx Access Control List Configuration, page 22-xxii Dual MSFC Operational Model for Redundancy and Load Sharing, page 22-xxii Understanding Failure Scenarios, page 22-xxiv
A single chassis with two identical supervisor engine daughter card configurations:
Supervisor Engine 1 with Policy Feature Card (PFC) and MSFC or MSFC2 (both supervisor
Two chassis with a supervisor engine in eachYou must have at least one supervisor engine in each chassis. Each supervisor engine must be equipped with a PFC and an MSFC.
Note
Each MSFC must be running the same release of Cisco IOS software.
Caution
You must configure both MSFCs identically. Table 2 summarizes the identical requirements and the exceptions for Layer 3 redundancy for a single switch chassis.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-19
Configuring Redundancy
Table 22-2
ExceptionsInterface Level
ExceptionsGlobal Level
1. Dynamic and reflexive ACLs, which are based on actual data flow, may be programmed by either MSFC. 2. In addition to defining the same ACLs on both MSFCs, you must also apply the ACLs to the same VLAN interfaces, in the same direction, on both MSFCs. 3. The IP or IPX addresses do not have to be identical on both MSFCs, but there must be an IP or IPX address configured on both MSFCs.
For information on specifying alternate configurations for the interface and global level exceptions listed in Table 2, see the alt Keyword Usage section on page 22-xxxiii. Redundant supervisor engines must have identical hardware (MSFC and PFC). See the Hardware and Software Requirements section on page 22-xix for more information.
Note
For MSFC and MSFC2 memory requirements, refer to the Release Notes for MSFC publication: http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/relnotes/index.htm
Note
PFC: With the PFC, MLS entries can be associated with either MSFC (based on which MSFC routed the first packet). Only the PFC on the active supervisor engine switches the packets.
Note
PFC2: With PFC2, only the designated MSFC programs the forwarding information base (FIB) the adjacency table, Cisco IOS software, and policy routing ACLs on the active supervisor engine. If you configure static routes or policy routing, you must have the identical configuration on both MSFCs. If you have a static route on the nondesignated MSFC that is not on the designated MSFC, that route will not be programmed in the PFC2.
22-20
78-13315-02
Chapter 22
Both MSFCs are operational from a routing protocol peering perspective. For example, if you have two MSFCs in a single Catalyst 6000 family switch chassis, each configured with interface VLAN 10 and VLAN 21, the MSFCs are peered to each other over these VLANs. Combined with a dual chassis and dual MSFC design for the same VLANs, each MSFC has 6 peers: its peer in the same chassis as well as the 2 MSFCs in the second chassis (3 in VLAN 10 and 3 in VLAN 21). See Figure 1.
Figure 22-1 Dual Chassis and Dual MSFC Peering
Switch 2
Although the MSFCs (from a peering perspective) act as independent routers, the two MSFCs in the chassis operate at the same time, have the same interfaces, and run the same routing protocols. If you combine high availability on the supervisor engines with HSRP on the MSFCs, you have the following Layer 2 and Layer 3 redundancy mechanisms:
Layer 2 redundancy for the supervisor engines (one active and one in standby)If the active supervisor engine fails (the MSFC installed on it will also fail), both Layer 2 and Layer 3 functions roll over to the redundant supervisor engine and MSFC combination. Layer 3 redundancy and load sharing for the two MSFCsIf one MSFC fails, the other MSFC takes over almost immediately (using HSRP) without any Layer 2 disruption (the active supervisor engine continues to forward Layer 2 traffic).
The Layer 3 entries programmed by the failed MSFC on the active supervisor engine are used until they gracefully age out and are replaced by the Layer 3 entries populated by the newly active MSFC. Aging takes 4 minutes and allows the newly active MSFC to repopulate the MLS entries using its XTAG value, while concurrently hardware-switching flows yet to be aged. In addition, this process prevents a newly active MSFC from being overwhelmed with initial flow traffic.
Note
Each MSFC has its own XTAG value to identify itself as the MLS Route Processor. MSFC #1 (on the active supervisor engine) has an XTAG of 1, and MSFC #2 (on the standby supervisor engine) has an XTAG of 2. Only Supervisor Engine 1 uses the XTAG values; XTAG values are not used on Supervisor Engine 2.
Caution
For same-chassis Layer 3 redundancy to function as expected, the configuration on each MSFC must be the same (see Table 2 on page 22-xx).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38594
22-21
Configuring Redundancy
Note
Table 2 lists configuration exceptions. For example, in Figure 1, there are 4 MSFCs on VLAN 10; therefore, each MSFC has different IP addresses and HSRP priorities.
Note
In addition to defining the same ACLs on both MSFCs, you must also apply the ACLs to the same VLAN interfaces on both MSFCs.
Note
Dynamic and reflexive ACLs, which are based on actual data flow, may be programmed by either MSFC.
Note
PFC: For detailed information on hardware and software handling of IOS ACLs with the PFC, see the Hardware and Software Handling of Cisco IOS ACLs with PFC section on page 16-10.
Note
PFC2: For detailed information on hardware and software handling of IOS ACLs with the PFC2, see the Hardware and Software Handling of Cisco IOS ACLs with PFC2 section on page 16-12. To determine the status of the designated MSFC, enter the show fm features or the show redundancy command:
Router-15# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: non-designated Config Sync AdminStatus : enabled Config Sync RuntimeStatus: enabled Router-16# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: designated Config Sync AdminStatus : enabled Config sync RuntimeStatus: enabled
22-22
78-13315-02
Chapter 22
(Sup #2/MSFC #2). Sup #1 is active and Sup #2 is in standby mode in both switches. High availability is enabled on the supervisor engines. The supervisor engines automatically perform image and configuration synchronization; you must manually synchronize the images and configurations on the MSFCs.
Figure 22-2 Dual MSFC Operational Model for Redundancy and Load SharingVLANs 10 and 21
Switch S1 Slot 1 Sup#1/MSFC#1 HSRP Active VLAN 10: priority 110 HSRP Standby VLAN 21: priority 108 Slot 2 Sup#2/MSFC#2 HSRP Standby VLAN 10: priority 109 HSRP Standby VLAN 21: priority 107
Switch S2 Slot 1 Sup#1/MSFC#1 HSRP Standby VLAN 10: priority 108 HSRP Active VLAN 21: priority 110 Slot 2 Sup2/MSFC#2 HSRP Standby VLAN 10: priority 107 HSRP Standby VLAN 21: priority 109
38595
VLAN 10 (even-numbered VLANs)Configure MSFC #1 in Switch S1 as the primary HSRP router (priority 110) and configure MSFC #2 as the standby router (priority 109). VLAN 21 (odd-numbered VLANs)Configure MSFC #1 in Switch S2 as the primary HSRP router (priority 110) and configure MSFC #2 as the standby router (priority 109).
Load sharing is achieved by having the even-numbered VLANs routed by Switch S1 and the odd-numbered VLANs by Switch S2. In a complete switch failure, the remaining switch would service both even and odd VLANs. You can achieve further load sharing by using MSFC #2 in Switch S1 as the primary HSRP router for VLAN 12 and MSFC #2 as the primary HSRP router in Switch S2 for VLAN 23 (see Figure 3).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-23
Configuring Redundancy
Figure 22-3 Dual MSFC Operational Model for Redundancy and Load Sharing VLANs 10, 12, 21, and 23
Switch S1 Slot 1 Sup#1/MSFC#1 HSRP Active VLAN 10: priority 110 HSRP Standby VLAN 21: priority 108 HSRP Standby VLAN 12: priority 109 HSRP Standby VLAN 23: priority 107 Slot 2 Sup#2/MSFC#2 HSRP Standby VLAN 10: priority 109 HSRP Standby VLAN 21: priority 107 HSRP Active VLAN 12: priority 110 HSRP Standby VLAN 23: priority 108
Switch S2 Slot 1 Sup#1/MSFC#1 HSRP Standby VLAN 10: priority 108 HSRP Active VLAN 21: priority 110 HSRP Standby VLAN 12: priority 107 HSRP Standby VLAN 23: priority 109 Slot 2 Sup#2/MSFC#2 HSRP Standby VLAN 10: priority 107 HSRP Standby VLAN 21: priority 109 HSRP Standby VLAN 12: priority 108 HSRP Active VLAN 23: priority 110
Only the active HSRP router for a VLAN will respond with the HSRP MAC address for ARP requests to the HSRP IP address. The active HSRP router will in turn ARP for the end stations MAC address and populate its ARP cache. By using both MSFCs in a single chassis to share HSRP duties for even VLANs, you can share the control plane ARP traffic. In an MSFC failure, only the ARP entries on the affected VLAN would need to be relearned. The tradeoff for this level of redundancy and load sharing is the added complexity of keeping track of the even and odd VLANs on the MSFCs within a Catalyst 6000 family switch chassis. MLS entries are created for packets arriving at the HSRP MAC addresses as well as those arriving with the routers real MAC addresses. HSRP is used for unicast traffic first-hop redundancy; for traffic received through another router attached to VLAN 10, for example, the actual MAC address of Sup #1/MSFC #1 is used.
22-24
38850
78-13315-02
Chapter 22
Note
While the examples are specific to the PFC, the failover scenarios for the PFC2/MSFC2 would be similar for handling ACLs and CEF table entries. On a Supervisor Engine 2, the designated MSFC2 programs many of the ASICs on the PFC2 including building the CEF table. In a designated MSFC2 HSRP failover to the nondesignated MSFC2, the PFC2 continues to function with the CEF table programmed by the previously designated MSFC2. Similar to the process with the MLS cache in a Supervisor Engine 1/MSFC configuration, the newly designated MSFC2 eventually reprograms the CEF table with its own entries and the old entries age out.
Figure 22-4 Single Chassis with Dual Supervisor Engines and Dual MSFCs
VLAN 10
VLAN 21 Slot 1 Sup#1(active)/MSFC#1 HSRP Active VLAN 10: priority 110 HSRP Standby VLAN 21: priority 109
Switch S1
Slot 2 Sup#2(standby)/MSFC#2 HSRP Active VLAN 21: priority 110 HSRP Standby VLAN 10: priority 109
38596
MLS entries for MSFC #1 gracefully age out of the Sup #1 Layer-3 cache, while MSFC #2 takes temporary ownership of these MLS entries using its XTAG value. MLS entries for MSFC #2 are not affected. MSFC #2 removes all dynamic and reflexive ACLs programmed in hardware by MSFC #1. MSFC #2 reprograms the static ACLs in the Sup #1 ACL ASIC because it is now the designated MSFC.
MLS entries for MSFC #2 gracefully age out of the Sup #1 Layer 3 cache, while MSFC #1 takes temporary ownership of these MLS entries using its XTAG value. MLS entries from MSFC #1 are not affected. MSFC #1 removes all dynamic and reflexive ACLs programmed in hardware by MSFC #2. MSFC #1 remains the designated MSFC.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-25
Configuring Redundancy
Because the Layer 3 state is maintained, MLS entries of MSFC #1 gracefully age out of the Sup #2 Layer 3 cache while MSFC #2 takes temporary ownership of these MLS entries using its XTAG value. The standby supervisor engine maintains the Layer 2 state so that there is no Layer 2 convergence time. MSFC #2 removes all dynamic and reflexive ACLs programmed in hardware by MSFC #1. MSFC #2 reprograms the static ACLs in the Sup #2 ACL ASIC. MSFC #2 is now the designated MSFC.
2. 3. 4.
MLS entries for MSFC #2 gracefully age out of the Sup #1 Layer 3 cache while MSFC #1 takes temporary ownership of these MLS entries using its XTAG value. MLS entries from MSFC #1 are not affected. MSFC #1 removes all dynamic and reflexive ACLs programmed in hardware by MSFC #2. MSFC #1 remains the designated MSFC.
Sup #1 continues to be the active supervisor engine. Sup #2 synchronizes its image and configuration with Sup #1 (unless high-availability versioning is enabled). MSFC #2 (on Sup #2) comes up. If the HSRP preempt for VLAN 21 is configured, then MSFC #2 becomes HSRP active. The MLS entries for MSFC #1 are purged and then relearned via MSFC #2. MSFC #1 remains the designated MSFC for the static ACLs.
Note
PFC2: The PFC2 supports a maximum of 16 unique HSRP group numbers. You can use the same HSRP group numbers in different VLANs. If you configure more than 16 HSRP groups, this restriction prevents use of the VLAN number as the HSRP group number.
22-26
78-13315-02
Chapter 22
Note
PFC2: Identically numbered HSRP groups use the same virtual MAC address, which might cause errors if you configure bridging on the MSFC. The standby use-bia option should not be used in an HSRP configuration. MLS entries are not created when you use the standby use-bia option. When the standby use-bia option is configured, if an HSRP active interface goes up and down, there will be no router CAM address for the standby VLAN interface and without the router CAM entry, no shortcuts are created. This problem is independent of any MSFC Cisco IOS release. (This problem is documented in caveat CSCdz17169.) To configure HSRP on an MSFC VLAN interface, perform this task in interface configuration mode:
Task
Step 1
Enable HSRP and specify the HSRP IP address. If you do not specify a group_number, group 0 is used. To assist in troubleshooting, configure the group number to match the VLAN number. Specify the priority for the HSRP interface. Increase the priority of at least one interface in the HSRP group (the default is 100). The interface with the highest priority becomes active for that HSRP group.
Step 2
Step 3
Configure the interface to preempt the current Router(config-if)# standby [group_number] preempt [delay delay] active HSRP interface and become active if the interface priority is higher than the priority of the current active interface. (Optional) Set the HSRP hello timer and holdtime timer for the interface. The default values are 3 (hello) and 10 (holdtime). All interfaces in the HSRP group should use the same timer values. (Optional) Specify a clear-text HSRP authentication string for the interface. All interfaces in the HSRP group should use the same authentication string. Router(config-if)# standby [group_number] timers hellotime holdtime
Step 4
Step 5
This example shows how to configure an interface as part of HSRP group 100:
Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan100 Router(config-if)# standby 100 ip 172.20.100.10 Router(config-if)# standby 100 priority 110 Router(config-if)# standby 100 preempt Router(config-if)# standby 100 timers 5 15 Router(config-if)# standby 100 authentication Secret Router(config-if)# ^Z Router#
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-27
Configuring Redundancy
Configuration Examples
This section describes three configuration options for achieving redundancy:
Example 1Two Chassis with One Supervisor Engine and One MSFC Each, page 22-xxviii Example 2Single Chassis with Dual Supervisor Engines and MSFCs, page 22-xxix Example 3Double Chassis with Dual Supervisor Engines and MSFCs, page 22-xxx
For the following examples, the designated MSFC is on the active supervisor engine. To determine the status of the designated MSFC, enter the show fm features or the show redundancy command. This example shows that Router-16 is the designated MSFC:
Router-15# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: non-designated Config Sync AdminStatus : enabled Config Sync RuntimeStatus: enabled Router-16# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: designated Config Sync AdminStatus : enabled Config sync RuntimeStatus: enabled
Example 1Two Chassis with One Supervisor Engine and One MSFC Each
In the example in Figure 5, high availability cannot be configured on the supervisor engines but HSRP can be configured on the MSFCs.
Figure 22-5 Two Chassis with One Supervisor Engine and One MSFC Each
VLAN 10
VLAN 21
Slot 1 Sup#1/MSFC#1 HSRP Active VLAN 10: priority 110 HSRP Standby VLAN 21: priority 109 Switch S1 Switch S2
Slot 1 Sup#1/MSFC#1 HSRP Active VLAN 21: priority 110 HSRP Standby VLAN 10: priority 109
This example shows how to configure HSRP on the MSFC in Switch S1:
Console> (enable) switch console 15 Trying Router-15... Connected to Router-15. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 110 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21
22-28
78-13315-02
38597
Chapter 22
21 21 21 21
This example shows how to configure HSRP on the MSFC in Switch S2:
Console> (enable) switch console 15 Trying Router-15... Connected to Router-15. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 109 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21 Router(config-if)# standby 21 priority 110 Router(config-if)# standby 21 preempt Router(config-if)# standby 21 timers 5 15 Router(config-if)# standby 21 authentication Secret Router(config-if)# ^Z Router# ^C^C^C
VLAN 10
VLAN 21 Slot 1 Sup#1(active)/MSFC#1 HSRP Active VLAN 10: priority 110 HSRP Standby VLAN 21: priority 109
Switch S1
Slot 2 Sup#2(standby)/MSFC#2 HSRP Active VLAN 21: priority 110 HSRP Standby VLAN 10: priority 109
38596
This example shows how to configure HSRP on the MSFC in Switch S1:
Console> (enable) switch console 15 Trying Router-15... Connected to Router-15. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-29
Configuring Redundancy
Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router(config-if)# Router# ^C^C^C
standby 10 priority 110 standby 10 preempt standby 10 timers 5 15 standby 10 authentication Secret interface vlan21 standby 21 ip 192.20.100.21 standby 21 priority 109 standby 21 preempt standby 21 timers 5 15 standby 21 authentication Secret ^Z
Console> (enable) switch console 16 Trying Router-16... Connected to Router-16. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 109 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21 Router(config-if)# standby 21 priority 110 Router(config-if)# standby 21 preempt Router(config-if)# standby 21 timers 5 15 Router(config-if)# standby 21 authentication Secret Router(config-if)# ^Z Router# ^C^C^C
VLAN 10 Slot 1 Sup#1/MSFC#1 HSRP Active VLAN 10: priority 110 HSRP Standby VLAN 21: priority 108 Slot 2 Switch S1 Sup#2/MSFC#2 HSRP Standby VLAN 10: priority 109 HSRP Standby VLAN 21: priority 107
VLAN 21 Slot 1 Sup#1/MSFC#1 HSRP Standby VLAN 10: priority 108 HSRP Active VLAN 21: priority 110 Slot 2 Switch S2 Sup#2/MSFC#2 HSRP Standby VLAN 10: priority 107 HSRP Standby VLAN 21: priority 109
38599
22-30
78-13315-02
Chapter 22
This example shows how to configure HSRP on the MSFC in Switch S1:
Console> (enable) switch console 15 Trying Router-15... Connected to Router-15. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 110 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21 Router(config-if)# standby 21 priority 108 Router(config-if)# standby 21 preempt Router(config-if)# standby 21 timers 5 15 Router(config-if)# standby 21 authentication Secret Router(config-if)# ^Z Router# ^C^C^C Console> (enable) switch console 16 Trying Router-16... Connected to Router-16. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 109 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21 Router(config-if)# standby 21 priority 107 Router(config-if)# standby 21 preempt Router(config-if)# standby 21 timers 5 15 Router(config-if)# standby 21 authentication Secret Router(config-if)# ^Z Router# ^C^C^C
This example shows how to configure HSRP on the MSFC in Switch S2:
Console> (enable) switch console 15 Trying Router-15... Connected to Router-15. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 108 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21 Router(config-if)# standby 21 priority 110 Router(config-if)# standby 21 preempt Router(config-if)# standby 21 timers 5 15 Router(config-if)# standby 21 authentication Secret
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-31
Configuring Redundancy
Router(config-if)# ^Z Router# ^C^C^C Console> (enable) switch console 16 Trying Router-16... Connected to Router-16. Type ^C^C^C to switch back... Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan10 Router(config-if)# standby 10 ip 172.20.100.10 Router(config-if)# standby 10 priority 107 Router(config-if)# standby 10 preempt Router(config-if)# standby 10 timers 5 15 Router(config-if)# standby 10 authentication Secret Router(config-if)# interface vlan21 Router(config-if)# standby 21 ip 192.20.100.21 Router(config-if)# standby 21 priority 109 Router(config-if)# standby 21 preempt Router(config-if)# standby 21 timers 5 15 Router(config-if)# standby 21 authentication Secret Router(config-if)# ^Z Router# ^C^C^C
Caution
Configuration synchronization is only supported for IP and IPX configurations. Before enabling synchronization, you must ensure that both MSFCs have identical configurations for all protocols. If you are using AppleTalk, DECnet, VINES or any other routing, you must manually ensure that identical configurations are on both MSFCs for all protocols. To determine the status of the designated MSFC, enter the show fm features or the show redundancy command:
Router-15# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: non-designated Config Sync AdminStatus : enabled Config Sync RuntimeStatus: enabled Router-16# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: designated Config Sync AdminStatus : enabled Config sync RuntimeStatus: enabled
High-availability redundancy provides startup and running configuration synchronization. When you enable high-availability redundancy, the startup configuration of both MSFCs is updated when you enter either of these commands on the designated MSFC:
22-32
78-13315-02
Chapter 22
When you enable high-availability redundancy, every configuration command executed on the designated MSFC is sent to the nondesignated MSFC. Also, the running configuration synchronization is updated when you enter the copy source running-config command on the designated MSFC. These sections provide information about MSFC configuration synchronization:
Configuration Synchronization States, page 22-xxxiii alt Keyword Usage, page 22-xxxiii
Config Sync AdminStatussignifies what the user has configured for this feature at that moment Config Sync RuntimeStatusenabled only when the following occurs:
The Config Sync AdminStatus is enabled on both designated and nondesignated MSFCs The designated and nondesignated MSFCs are running compatible images
When you enable the Config Sync RuntimeStatus, the following occurs:
No configuration mode is available on the CLI of the nondesignated MSFC; EXEC mode is available The alt keyword is available and required (see the alt Keyword Usage section on page 22-xxxiii for more information on the alt keyword) The running and startup configurations are synchronized
When the Config Sync RuntimeStatus is in disabled mode, the following occurs:
Configuration mode is available on the CLI of both MSFCs The alt keyword is available but optional The running and startup configurations are not synchronized
Various configuration and operation cases are covered in the High-Availability Redundancy Configuration Examples section on page 22-xxxv.
Note
The alt keyword is required when Config Sync AdminStatus is enabled. Table 3 shows the interface and global configuration commands that contain the alt keyword.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-33
Configuring Redundancy
Table 22-3 Interface and Global Configuration Commands Containing the alt Keyword
[no] standby [group_number] ip [ip_address [secondary]] alt [no] standby [group_number] ip [ip_address [secondary]] [no] standby [group_number] priority priority [preempt [delay delay]] alt [no] standby [group_number] priority priority [preempt [delay delay]] [no] ip address ip_address mask [secondary] alt [no] ip address ip_address mask [secondary] [no] ipx network network [encapsulation encapsulation_type [secondary]] [alt [no] ipx network network [encapsulation encapsulation_type [secondary]]]
[no] hostname hostname alt hostname hostname [no] ip default-gateway ip_address alt [no] ip default-gateway ip_address router bgp autonomous_system bgp router-id ip_address [alt ip_address] router ospf process_id router-id ip_address [alt ip_address]
This example shows how the alt keyword is used when entering the ip address command:
Router-1(config-if)# ip address 1.2.3.4 255.255.255.0 alt ip address 1.2.3.5 255.255.255.0
This example shows how to enable high-availability redundancy and configuration synchronization (Router-15 is the designated MSFC):
Console>(enable) session 15 Trying Router-15... Connected to Router-15. Escape character is ^]. Router-15> enable Router-15# configure terminal Enter configuration commands, one per line. Router-15(config)# redundancy Router-15(config-r)# high-availability Router-15(config-r-ha)# config-sync Router-15(config-r-ha)# end
Note
When you enable high-availability redundancy, the configuration mode is disabled on the nondesignated MSFC; only the EXEC mode is available.
22-34
78-13315-02
Chapter 22
In this example, Router-16 is the nondesignated MSFC; high-availability redundancy and configuration synchronization are enabled:
Console>(enable) session 16 Trying Router-16... Connected to Router-16. Escape character is ^]. Router-16> enable Router-16# configure terminal Config mode is disabled on non-designated Router, please configure from designated Router
Scenario 1: Enabling Configuration Synchronization on Both MSFCs, page 22-xxxv Scenario 2: Disabling Configuration Synchronization on the Designated MSFC, page 22-xxxviii Scenario 3: Designated MSFC Comes Up, page 22-xxxix Scenario 4: Nondesignated MSFC Comes Up, page 22-xxxix Scenario 5: Designated MSFC Goes Down, page 22-xl
Alternate IP address missing for Vlan1 The alternate configuration is missing. The auto-config sync can not be enabled
Note
When specifying the alternate IP configuration, the configuration specified before the alt keyword relates to the MSFC on the supervisor engine in slot 1 of the switch; the configuration specified after the alt keyword relates to the MSFC on the supervisor engine in slot 2. See the alt Keyword Usage section on page 22-xxxiii for more information.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-35
Configuring Redundancy
This example shows how to specify the alternate configuration for VLAN 1:
Router-16(config)# interface vlan 1 Router-16(config-if)# ip address 70.0.70.4 255.255.0.0 alt ip address 70.0.70.5 255.255.0.0 Router-16(config-if)# exit
Because the Config Sync AdminStatus on the nondesignated MSFC is disabled, the Config Sync RuntimeStatus on the designated MSFC will remain in disabled mode. The following message is displayed on the designated MSFC:
00:17:05: %RUNCFGSYNC-6-SYNCEVENT: Non-Designated Router is now online High-Availability Redundancy Feature is not enabled on the Non-Designated Router
This example shows how to enable the configuration synchronization feature on the nondesignated MSFC:
Router-151(config)# redundancy Router-15(config-r)# high-availability Router-15(config-r-ha)# config-sync Router-15(config-r-ha)# end Router-15# 00:03:31: %SYS-5-CONFIG_I: Configured from console by console
Note
When you enable high-availability redundancy, the configuration mode is disabled on the console of the nondesignated MSFC; only the EXEC mode is available. The following message, acknowledging that the high-availability redundancy is enabled, and that the configuration mode will be automatically exited, is displayed on the nondesignated MSFC:
00:18:57: %RUNCFGSYNC-6-SYNCEVENT: The High-Availability Redundancy Feature is enabled The config mode is no longer accessible Router-15# 00:19:41: %RUNCFGSYNC-6-SYNCEVENT: Non-Designated Router is now online Running Configuration Synchronization will begin in 1 minute
A one-minute timer will start, allowing for stabilization of the nondesignated MSFC. When the timer expires, a snapshot of the current running configuration is sent to the nondesignated MSFC. This message is displayed before the running configuration is synchronized:
00:20:41: %RUNCFGSYNC-6-SYNCEVENT: Syncing Running Configuration to the Non-Designated Router 00:20:41: %RUNCFGSYNC-6-SYNCEVENT: Syncing Startup Configuration to the Non-Designated Router
22-36
78-13315-02
Chapter 22
These examples show that the designated MSFC and nondesignated MSFC have the same running configuration after synchronization:
<designated MSFC> Router-16# show running-config Building configuration... Current configuration: ! version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router-15 alt hostname Router-16 ! boot bootldr bootflash:c6msfc-boot-mz.120-7.XE1 ! ip subnet-zero ! ip cef redundancy high-availability config-sync cns event-service server ! ! ! interface Vlan1 ip address 70.0.70.4 255.255.0.0 alt ip address 70.0.70.5 255.255.0.0 ! interface Vlan10 ip address 192.10.10.1 255.255.255.0 alt ip address 192.10.10.2 255.255.255.0 no ip redirects shutdown standby ip 192.20.20.1 alt standby ip 192.20.20.1 ! ip classless ip route 223.255.254.0 255.255.255.0 70.0.100.0 no ip http server ! ! ! line con 0 transport input none line vty 0 4 login transport input lat pad mop telnet rlogin udptn nasi ! end
<nondesignated MSFC> Router-15# show running-config Building configuration... Current configuration: ! version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption !
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-37
Configuring Redundancy
hostname Router1 alt hostname Router2 ! boot bootldr bootflash:c6msfc-boot-mz.120-7.XE1 ! ip subnet-zero ! ip cef redundancy high-availability config-sync cns event-service server ! ! ! interface Vlan1 ip address 70.0.70.4 255.255.0.0 alt ip address 70.0.70.5 255.255.0.0 ! interface Vlan10 ip address 192.10.10.1 255.255.255.0 alt ip address 192.10.10.2 255.255.255.0 no ip redirects shutdown standby ip 192.20.20.1 alt standby ip 192.20.20.1 ! ip classless ip route 223.255.254.0 255.255.255.0 70.0.100.0 no ip http server ! ! ! line con 0 transport input none line vty 0 4 login transport input lat pad mop telnet rlogin udptn nasi ! end
When configuration synchronization is disabled, the following message is displayed on the nondesignated MSFC:
00:13:00: %RUNCFGSYNC-6-SYNCEVENT: The High-Availability Redundancy Feature is now disabled The config mode is now accessible
Configuration mode is available on the CLI of the designated and nondesignated MSFC.
22-38
78-13315-02
Chapter 22
In this scenario, the nondesignated MSFC notifies the designated MSFC that it is up and Config Sync AdminStatus is enabled. The designated MSFC requests the nondesignated MSFC to enable Config Sync RuntimeStatus. The nondesignated MSFC enables Config Sync RuntimeStatus. The following message is displayed on the nondesignated MSFC:
00:00:07: %RUNCFGSYNC-6-SYNCEVENT: The High-Availability Redundancy Feature is enabled The config mode is no longer accessible 00:00:51: %RUNCFGSYNC-6-SYNCEVENT: Non-Designated Router is now online Running Configuration Synchronization will begin in 1 minute
A one-minute timer will start, allowing the nondesignated MSFC to stabilize. When the timer expires, a snapshot of the current running configuration is sent to the nondesignated MSFC. The following message is displayed before synchronizing the running configuration:
00:01:51: %RUNCFGSYNC-6-SYNCEVENT: Syncing Running Configuration to the Non-Designated Router
In this scenario, the nondesignated MSFC notifies the designated MSFC that it is up. Because the Config Sync AdminStatus is disabled on the nondesignated MSFC, the designated MSFC displays the following message indicating that high-availability redundancy needs to be enabled on the nondesignated MSFC:
Router-16# Non-Designated Router came up. High-Availability Redundancy Feature is not enabled on the Non-Designated Router
This example shows how to enable the high-redundancy availability feature on the nondesignated MSFC:
Router-15# configure terminal Enter configuration commands, one per line. Router-15(config)# redundancy Router-15(config-r)# high-availability Router-15(config-r-ha)# config-sync End with CNTL/Z.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-39
Configuring Redundancy
Router-15(config-r-ha)# 00:03:47: %SYS-5-CONFIG_I: Configured from console by console 00:03:47: %RUNCFGSYNC-6-SYNCEVENT: The High-Availability Redundancy Feature is enabled The config mode is no longer accessible 00:00:51: %RUNCFGSYNC-6-SYNCEVENT: Non-Designated Router is now online Running Configuration Synchronization will begin in 1 minute
A one-minute timer will start, allowing the nondesignated MSFC to stabilize. When the timer expires, a snapshot of the current running configuration is sent to the nondesignated MSFC. This message is displayed before synchronizing the running configuration:
00:01:51: %RUNCFGSYNC-6-SYNCEVENT: Syncing Running Configuration to the Non-Designated Router
These examples show that Config Sync AdminStatus and RuntimeStatus are enabled on the designated and nondesignated MSFCs:
Router-15# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: non-designated Config Sync AdminStatus : enabled Config Sync RuntimeStatus: enabled
Router-16# show redundancy Designated Router: 1 Non-designated Router:2 Redundancy Status: designated Config Sync AdminStatus : enabled Config sync RuntimeStatus: enabled
22-40
78-13315-02
Chapter 22
Hardware and Software Requirements, page 22-xli Configuration Guidelines, page 22-xlii Configuring Single Router Mode Redundancy, page 22-xlii Upgrading Images with Single Router Mode Enabled, page 22-xliv Getting Out of Single Router Mode, page 22-xliv
SRM redundancy is an alternative to internally redundant (dual) MSFC2 configurations where both MSFC2s are active at the same time. In SRM redundancy, only the designated router is visible to the network at any given time. The nondesignated router is booted up completely and participates in configuration synchronization which is automatically enabled when entering SRM. All configuration following the alt keyword is ignored in SRM. Due to this, the nondesignated routers configuration is exactly the same as the designated router but its interfaces are kept in a line down state and are not visible to the network. Processes, such as routing protocols, are created on the nondesignated router and the designated router, but all nondesignated router interfaces are in a line down state; they do not send or receive updates from the network. When the designated router fails, the nondesignated router changes its state from a nondesignated router to a designated router and its interface state changes to link up. It builds up its routing table while the existing supervisor engine switch processor entries are used to forward Layer 3 traffic. After the newly designated router builds its routing table, the entries in the switch processor are updated.
A single chassis with two identical supervisor engine daughter card configurations:
Supervisor Engine 2 with PFC2 and MSFC2 Supervisor Engine 1 with PFC and MSFC or MSFC2
Note
Cisco IOS Release 12.1(8a)E4 provides initial support for single router mode (SRM) redundancy with Supervisor Engine 1 and MSFC. When using Supevisor Engine 1 with the MSFC or MSFC2 for SRM redundancy, be aware that failover to the second MSFC is not stateful for multicast MLS. When the primary MSFC fails, all multicast MLS entries are removed and are then recreated and reinstalled in the hardware by the newly active MSFC.
Supervisor engine software release 6.3(1) or later releases Cisco IOS Release 12.1(8a)E2 or later releases
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-41
Configuring Redundancy
Configuration Guidelines
Use these guidelines when configuring SRM redundancy:
SRM redundancy requires that both the designated router and nondesignated router run the same Cisco IOS image. SRM redundancy requires that a Cisco IOS image is present in the bootflash of both the designated router and nondesignated router. With SRM redundancy, the nondesignated router cannot connect to external networks. With SRM redundancy, we do not recommend booting from an external network with the designated router. Booting from the network could severely degrade SRM functionality. With SRM redundancy, the designated router can reach external networks and copy commands such as copy tftp: can be used without any restrictions. For SRM to work properly, high availability must be enabled on the supervisor engine. When using authentication methods to control access to the switch such as RADIUS or TACACS+, you need to configure a fallback option to login in with a local username and password if you want to be able to access the nondesignated router through the switch console or session commands. See Chapter 21, Configuring Switch Access Using AAA for information on configuring the fallback option.
Caution
Before going from dual router mode to SRM redundancy, we recommend that you use the copy running-config command on the MSFCs to save the non-SRM configuration to bootflash. When going to SRM redundancy, the alternative configuration (the configuration following the alt keyword) is lost. Therefore, before enabling SRM redundancy, save the dual router mode configuration to bootflash by entering the following command on both MSFCs: copy running-config bootflash:nosrm_dual_router_config. See the Getting Out of Single Router Mode section on page 22-xliv for additional information.
Note
This procedure assumes that the designated router is the MSFC2 in slot 1 and the nondesignated router is the MSFC2 in slot 2; the active supervisor engine is in slot 1 and the standby supervisor engine is in slot 2.
Step 1 Step 2
Enter the show version command to ensure that both supervisor engines are running supervisor engine software release 6.3(1) or later releases. Enter the set system highavailability enable command to enable high availability on the active supervisor engine. Enter the show system highavailability command to verify that high availability is enabled. If you have a console connection, enter the switch console command to access the designated router. If connected through a Telnet session, enter the session mod command to access the designated router.
Step 3
22-42
78-13315-02
Chapter 22
Step 4 Step 5
Copy the Cisco IOS Release 12.1(8a)E2 or later image to the bootflash of the designated router and nondesignated router. Set the boot image and configuration register on the designated router and nondesignated router to boot the new image on a reload: For the designated router, enter boot system flash bootflash:image_name and ensure that this image is the first in the boot list. Clear any existing 'boot system commands that appear in the running configuration (show running-config) using the no form of the boot system command. For the nondesignated router, set the configuration register to auto boot by entering config-register 0x102.
Step 6
Enter the reload command to reload the designated router and nondesignated router.
Note
If you already have SRM-capable Cisco IOS images loaded, you do not need to perform Step 6.
Step 7
Disable configuration synchronization (config-sync) on the designated router using the no form of the command. Enter the write memory command. This lets you have access to configuration mode on both designated and nondesignated routers. Enable SRM on the designated router first, and then enable SRM on the nondesignated router as follows:
Router(config)#redundancy Router(config-r)#high-availability Router(config-r-ha)#single-router-mode
Step 8
Step 9 Step 10
Enter the write memory command on the designated router to ensure that the nondesignated routers start-up configuration has SRM enabled. Enter the show startup-config command on the nondesignated router to ensure that the nondesignated router has the following configuration statements:
redundancy high-availability single-router-mode
Step 11
Enter the show redundancy command on the designated router and nondesignated router to ensure that both have the following configuration statement:
Single Router Mode RuntimeStatus: enabled
Enter the reload command to reload the nondesignated router. When asked whether the configuration should be saved, enter no. This display summarizes the above configuration commands used on the designated router and nondesignated router to enable SRM redundancy:
Time Designated Router -----t0: conf t->red->hi->no config-sync t1: t2: conf t->red->hi->single-router-mode t3: t4: write mem t5: Nondesignated Router ---conf t->red->hi->no config-sync conf t->red->hi->single-router-m reload
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-43
Configuring Redundancy
On the active supervisor engine, enter the copy tftp sup-slot0: command and follow the prompts to load the new (c6msfc2-jsv-mz.9E) image onto the supervisor engine Flash PC card. If you have a console connection, enter the switch console command to access the active MSFC. If you are connected through a Telnet session, enter the session mod command to access the active MSFC. On the active MSFC, copy the new image from the supervisor engine Flash PC card to the MSFC bootflash as follows:
copy sup-slot0:c6msfc2-jsv-mz.9E bootflash:c6msfc2-jsv-mz.9E
Step 4
On the standby MSFC, copy the new image from the supervisor engine Flash PC card to the MSFC bootflash as follows:
copy sup-slot0:c6msfc2-jsv-mz.9E bootflash:c6msfc2-jsv-mz.9E
Step 5
On the active MSFC, specify that the new image is booted when the MSFC is reloaded as follows:
boot system flash bootflash:c6msfc2-jsv-mz.9E
On the active MSFC, enter the write memory command to ensure that the standby MSFC start-up configuration gets the boot information. Enter the reload command to reload the standby MSFC. Enter the show redundancy command on the active and standby MSFCs to ensure that both have the following configuration statement:
Single Router Mode RuntimeStatus: enabled
Step 9
Enter the reload command to reload the active MSFC. Both MSFCs are now running the c6msfc2-jsv-mz.9E image.
If you saved a copy of the running configuration used in dual router mode before configuring SRM redundancy, you do not need to use the procedure in this section. To get out of SRM redundancy and back to dual router mode, enter the following command on both MSFCs: copy bootflash:nosrm_dual_router_config startup-config. After the configurations are copied, reload the MSFCs using the reload command.
22-44
78-13315-02
Chapter 22
On the designated router, disable SRM using the no form of the command as follows:
Router(config)#redundancy Router(config-r)#high-availability Router(config-r-ha)#no single-router-mode
Enter the write memory command on the designated router and nondesignated router. Enter the show startup-config command on the designated and nondesignated routers to ensure that single-router mode is not in the startup configuration. Enter the reload command to reload the designated router and nondesignated router. SRM is now disabled on the designated router and nondesignated router.
Manual-mode MSFC redundancy will be supported until December, 2002, due to the release of supervisor engine software release 6.3(1), which contains the feature SRM. Cisco recommends using SRM rather than manual-mode MSFC redundancy to attain automatic Layer-3 failover capabilities in addition to unlimited support of the feature. These sections describe how to configure redundant MSFCs with one MSFC active and the other MSFC in ROM-monitor mode:
Hardware and Software Requirements, page 22-xlv Guidelines for Configuring Manual-Mode MSFC Redundancy, page 22-xlvi Accessing the Standby MSFC, page 22-xlvii Manually Booting the MSFC, page 22-xlvii Setting the MSFC Configuration Register, page 22-xlvii MSFC Recovery Procedures, page 22-xlvii
Two chassis with a supervisor engine in eachYou must have at least one supervisor engine in each chassis. Each supervisor engine must be equipped with a PFC and an MSFC.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-45
Configuring Redundancy
later releases
Supervisor engine software release 5.5.8 or later releases and MSFC IOS Release 12.1(7a)E1
or later releases
Note
Each MSFC must be running the same release of Cisco IOS software.
Because the MSFC switchover is manual, we recommend that you have this feature only in environments where externally redundant routers are present and where either HSRP is used or some form of gateway discovery is implemented on hosts. Ensure that the configuration register on the active MSFC (MSFC-15) is set to 0x2102 and that the configuration register on the MSFC in ROM-monitor mode (MSFC-16) is set to 0x0. This setting prevents both MSFCs from becoming active at the same time and allows the active MSFC to come online after a reset. See the Setting the MSFC Configuration Register section on page 22-xlvii for details on setting the configuration register.
Note
Setting both MSFCs to 0x0 is a supported option but requires user intervention in the event the switch is reset.
To conserve IP address space and reduce the overall Layer 3 complexity, ensure that configuration synchronization is disabled on both MSFCs and that all alt addresses are removed. If alt addresses are used, IP address space is not conserved and in cases where link-level peering is present (such as BGP), the Layer 3 complexity is increased. When the MSFC in ROM-monitor mode is brought up during a maintenance window, ensure that it has the exact same configuration as the active MSFC. Follow the configuration guidelines in Table 2 on page 22-xx. During manual-mode MSFC redundancy, high availability should be enabled on the supervisor engine to keep Layer 2 downtime to a minimum when doing an MSFC switchover. Since high availability is not compatible with protocol filtering, port security, DVLAN, or GVRP, we recommend that you disable these features when using manual-mode MSFC redundancy. Ensure that the console port on both supervisor engines is accessible to operations personnel (out-of-band access through terminal server or modem). The procedures in this section use the switch console command to access the MSFC from the supervisor engine. The switch console command is not supported on Telnet sessions.
22-46
78-13315-02
Chapter 22
Note
The standby MSFC does not appear in the show module command display issued from the active supervisor engine.
Enter the switch console command to gain access to the MSFC ROMMON prompt. Enter the boot bootflash:image command. Once the MSFC has booted, enter ^C^C^C at the Router> prompt to return to the supervisor engine prompt. Now you may enter the session command to access the MSFC.
From Cisco IOS configuration mode on the active MSFC (MSFC-15), perform the following:
Router(config)#config-register 0x2102 Router(config)#
Step 2
From Cisco IOS configuration mode on the MSFC in ROM-monitor mode (MSFC-16), perform the following:
Router(config)#config-register 0x0 Router(config)#
Note
We recommend that boot system commands in both MSFC configurations point to a valid image on bootflash and that you do not set the configuration registers to ignore these boot commands.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-47
Configuring Redundancy
Enter the switch console command. From the ROMMON prompt, enter the boot bootflash:image command. After the standby MSFC has booted, from Cisco IOS configuration mode enter the config-register 0x2102 command to ensure the MSFC will boot when the switch is reset.
Note
If the problematic MSFC is on the standby supervisor engine, enter the switch supervisor command.
Step 1 Step 2
Enter the switch console command. Send a Break signal to get into the problematic MSFCs ROMMON (the break will work if the MSFC is continually rebooting). You need to time the break so that it is issued after the system bootstrap message, but before the main Cisco IOS image is decompressed (see the two arrows in the following display output):
System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 131072 Kbytes of main memory <======= ISSUE BREAK AFTER THIS POINT
Self decompressing the image : ###################################################################################### [OK] <==========BUT BEFORE THIS POINT Self decompressing the image : ########################################################################################## ########################################################################################## ########################################################################################## ########################################################################################## ########################################################################################## ########################################################################################## ########################################################################################## ########################################################################################## ### [OK]
Step 3
Enter y at the do you wish to change the configuration? y/n [n]: prompt Press Enter to accept the default for all questions until you reach this prompt: change the boot characteristics? y/n [n]:
22-48
78-13315-02
Chapter 22
Enter y Enter 0 to select the 0 = ROM Monitor option at the next prompt Review the Configuration Summary to ensure the following value: boot: the ROM Monitor You are again prompted with: do you wish to change the configuration? y/n [n]: Enter n You are returned to the ROMMON prompt
Enter the reset command and verify that the MSFC boots into ROMMON. This step ensures that this MSFC and the active MSFC will not boot concurrently. Enter ^C^C^C to return to the supervisor engine prompt. Ensure that high availability has synchronized the supervisor engine state by entering the show system highavailability command and verifying that high availability Operational-status is ON. Enter the switch supervisor command. Enter the switch console command. From the standby MSFCs ROMMON prompt, perform step 3 above but in step 3d, select option 2 boot system as follows:
change the boot characteristics? y/n [n]: enter to boot: 0 = ROM Monitor 1 = the boot helper image 2-15 = boot system [2]: 2 <======================== y
Configuration Summary enabled are: load rom after netboot fails console baud: 9600 boot: the ROM Monitor do you wish to change the configuration? y/n [n]: n
You must reset or power cycle for new config to take effect rommon 2 >
Enter the reset command at the ROMMON prompt to boot the system. After the MSFC has booted from the IOS configuration mode on the newly active MSFCs console port, enter the config-register 0x2102 command. Enter ^C^C^C to return to the supervisor engine prompt.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
22-49
Configuring Redundancy
22-50
78-13315-02
C H A P T E R
23
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How the Switch Boot Configuration Works, page 23-i Default Switch Boot Configuration, page 23-iv Setting the Configuration Register, page 23-v Setting the BOOT Environment Variable, page 23-x Setting the CONFIG_FILE Environment Variable, page 23-xi Displaying the Switch Boot Configuration, page 23-xii
Understanding the Boot Process, page 23-ii Understanding the ROM Monitor, page 23-ii Understanding the Configuration Register, page 23-ii Understanding the BOOT Environment Variable, page 23-iii Understanding the CONFIG_FILE Environment Variable, page 23-iii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23-1
Two user-configurable parameters determine how the switch boots: the configuration register and the BOOT environment variable. The configuration register is described in the Understanding the Configuration Register section on page 23-ii. The BOOT environment variable is described in the Understanding the BOOT Environment Variable section on page 23-iii.
Note
The Break key is always enabled for 60 seconds after rebooting the system, regardless of whether the configuration-register setting has the Break key disabled. The following functionality is built into the ROM monitor:
Power-on confidence test Hardware initialization Boot capability (allows manual boot and autoboot) Debug utility and crash analysis Monitor call interface (EMT callsthe ROM monitor provides information and some functionality to the running system images via EMT calls) File system (the ROM monitor knows the simple file system and supports the newly developed file system through the dynamic linked file system library [MONLIB]) Exception handling
When the boot field equals 0000, the switch does not load a system image. Instead, it enters ROM-monitor mode from which you can enter ROM-monitor commands to load a system image manually. When the boot field equals 0001, the switch loads the first valid system image found in onboard Flash memory.
23-2
78-13315-02
Chapter 23
Modifying the Switch Boot Configuration Understanding How the Switch Boot Configuration Works
When the boot field equals a value between 0010 and 1111, the switch loads the system image specified by boot system commands in the NVRAM configuration. It attempts to boot the image in the order in which you entered the boot system commands. If it cannot boot any image in the BOOT environment variable list, the switch remains in ROM-monitor mode. The exact booting sequence is defined by the ROM monitor.
The other bits in the configuration register function as follows when set:
Bit 5 (0x0020)Enables CONFIG_FILE recurrence. Bit 6 (0x0040)Causes system software to clear NVRAM contents. Bit 7 (0x0080)Enables OEM bit (not used). Bit 8 (0x0100)Disables break. Bit 9 (0x0200)Uses secondary bootstrap (not used by the ROM monitor). Bit 10 (0x0400)Provides IP broadcast with all zeros (not used). Bits 11/12 (0x0800/0x1000)Provide console line speed: 0/0=9600, 0/1=1200, 1/0=4800, 1/1=2400 (default is 9600). Bit 13 (0x2000)Boots default Flash software if network boot fails (not used). Bit 14 (0x4000)IP broadcasts do not have network numbers (not used). Bit 15 (0x8000)Enables diagnostic messages and ignores NVRAM contents (not used).
NonrecurringWhen you add a list of configuration files to the CONFIG_FILE environment variable, the next time the switch is restarted, the system erases the configuration in NVRAM and uses the specified files to configure the switch. The CONFIG_FILE environment variable is cleared before the switch is configured. Nonrecurring is the default setting.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23-3
RecurringWhen you add a list of configuration files to the CONFIG_FILE environment variable, the list is stored indefinitely in NVRAM. Each time the switch is restarted, the system erases the configuration in NVRAM and configures the switch using the configuration files specified. The CONFIG_FILE environment variable is not cleared. For information on specifying recurrence or nonrecurrence, see the Setting CONFIG_FILE Recurrence section on page 23-vii.
OverwriteWhen you add a list of configuration files to the CONFIG_FILE environment variable, overwriting means that the NVRAM configuration will be cleared before executing the configuration files. Overwrite is the default setting. AppendAppend means that the configuration files will be executed without first clearing NVRAM. For information on specifying overwriting or appending, see the Setting CONFIG_FILE Overwrite section on page 23-vii.
Sync enableEnables synchronization to force the configuration files to synchronize automatically to the standby supervisor engine. The file(s) are kept consistent with what is on the active supervisor engine. Sync disableDisables synchronization. For information on specifying synchronization, see the Setting CONFIG_FILE Synchronization section on page 23-viii.
Tip
Remember that you can alter the CONFIG_FILE environment variable or change its other properties by commands in the configuration files used to configure the switch at startup. You can add multiple configuration files to the CONFIG_FILE environment variable. The specified files can be any valid configuration file stored on a local Flash device (bootflash: or slot0:). When the switch boots up, if any of the files specified in the CONFIG_FILE environment variable are valid configuration files, the configuration in NVRAM is erased and the system uses the specified configuration file to configure the switch. If multiple valid configuration files are specified, each configuration file is executed in the order in which it appears in the CONFIG_FILE environment variable. If any specified file is not a valid configuration file, the entry is skipped and subsequent files are tried until there are no additional images specified. If no valid configuration file is specified, the system retains the last configuration stored in NVRAM.
Feature Configuration register value Boot method ROM-monitor console port baud rate
Default Configuration 0x10f System boots from the image specified in the BOOT environment variable 9600 baud
23-4
78-13315-02
Chapter 23
CONFIG_FILE recurrence configuration register Nonrecurring parameter CONFIG_FILE overwrite configuration register parameter CONFIG_FILE synchronization configuration register parameter Overwrite Synchronization disabled
Configuration register settings are not copied automatically to a redundant supervisor engine. You must set the configuration register separately for each supervisor engine in the switch. These sections describe how to modify the configuration register:
Setting the Boot Field in the Configuration Register, page 23-v Setting the ROM-Monitor Console-Port Baud Rate, page 23-vi Setting CONFIG_FILE Recurrence, page 23-vii Setting CONFIG_FILE Overwrite, page 23-vii Setting CONFIG_FILE Synchronization, page 23-viii Setting the Switch to Ignore the NVRAM Configuration, page 23-ix Setting the Configuration Register Value, page 23-x
ROM monitorEnter the rommon keyword to force the switch to remain in ROM-monitor mode at startup. BootflashEnter the bootflash keyword to cause the switch to boot from the first image stored in the onboard Flash. SystemEnter the system keyword to boot from the image specified in the BOOT environment variable (the default).
Note
We recommend that you use only the rommon and system options to the set boot config-register boot command.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23-5
To set the configuration register boot field, perform this task in privileged mode: Task Set the boot field in the configuration register. Command set boot config-register boot {rommon | bootflash | system} [mod]
This example shows how to set the boot field in the configuration register:
Console> (enable) set boot config-register boot rommon Configuration register is 0x0 ignore-config: disabled auto-config: non-recurring console baud: 9600 boot: the ROM monitor Console> (enable)
Note
The baud rate specified in the configuration register is used by the ROM monitor only and is different from the baud rate specified by the set system baud command. To set the ROM-monitor console-port baud rate in the configuration register, perform this task in privileged mode: Task Set the ROM-monitor console-port baud rate in the configuration register. Command set boot config-register baud {1200 | 2400 | 4800 | 9600} [mod]
This example shows how to set the ROM-monitor console-port baud rate in the configuration register to 2400:
Console> (enable) set boot config-register baud 2400 Configuration register is 0x1800 ignore-config: disabled auto-config: non-recurring console baud: 2400 boot: the ROM monitor Console> (enable)
23-6
78-13315-02
Chapter 23
Caution
With the CONFIG_FILE environment variable set to recurring, the current configuration in NVRAM is erased each time the switch is restarted and the switch is configured using the specified configuration files. With the CONFIG_FILE environment variable set to non-recurring, the current configuration in NVRAM is erased at the next restart and the switch is configured using the specified configuration files. The NVRAM configuration is retained after subsequent restarts (unless you again set the CONFIG_FILE variable). To set the switch to retain the current CONFIG_FILE environment variable indefinitely, perform this task in privileged mode: Task Set the switch to retain the current CONFIG_FILE environment variable indefinitely. Command set boot config-register auto-config {recurring | non-recurring}
This example shows how to set the switch to retain the current CONFIG_FILE environment variable indefinitely:
Console> (enable) set boot config-register auto-config recurring Configuration register is 0x1820 ignore-config: disabled auto-config: recurring, overwrite, sync disabled console baud: 2400 boot: the ROM monitor Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23-7
To specify if the auto-config file should be used to overwrite the NVRAM configuration or if the file configuration should be appended to what is currently in NVRAM, perform this task in privileged mode: Task Command
Specify if the auto-config file should be used to set boot config-register auto-config overwrite the NVRAM configuration or if the file {overwrite | append} configuration should be appended to what is currently in NVRAM. This example shows how to specify that the auto-config file be used to overwrite the NVRAM configuration:
Console> (enable) set boot config-register auto-config overwrite Configuration register is 0x12F ignore-config: disabled auto-config: recurring, overwrite, sync disabled console baud: 9600 boot: image specified by the boot system commands Console> (enable)
This example shows how to specify that the auto-config file be appended to what is currently in NVRAM:
Console> (enable) set boot config-register auto-config append Configuration register is 0x12F ignore-config: disabled auto-config: recurring, append, sync disabled console baud: 9600 boot: image specified by the boot system commands Console> (enable)
Changing the auto-config file(s) on either supervisor engine (if the file is deleted on the active supervisor engine, it is also deleted on the standby supervisor engine) Changing the boot string CONFIG_FILE variable setting Inserting a new supervisor engine System startup
The CONFIG_FILE variable from the active supervisor engine is made identical on the standby supervisor engine. Each auto-config file on the active supervisor engine is compared against each corresponding auto-config file on the standby supervisor engine. Two files are considered identical if their lengths and CRC are the same. If a file on the standby supervisor engine is not identical to the file on the active supervisor engine, a new file is generated on the standby supervisor engine with the name of the file on the active supervisor engine. If a file with that name already exists on the standby supervisor engine, it is overwritten.
23-8
78-13315-02
Chapter 23
To enable or disable synchronization, perform this task in privileged mode: Task Specify if synchronization should be enabled or disabled. Command set boot config-register auto-config sync {enable | disable}
Caution
Enabling the ignore-config parameter is the same as entering the clear config all command; that is, it clears the entire configuration stored in NVRAM the next time the switch is restarted. To set the switch to ignore the NVRAM configuration at the next startup, perform this task in privileged mode: Task Command
Set the switch to ignore the contents of NVRAM set boot config-register ignore-config enable at startup. This example shows how to set the switch to ignore the NVRAM configuration at the next startup:
Console> (enable) set boot config-register ignore-config enable Configuration register is 0x1860 ignore-config: enabled auto-config: recurring console baud: 2400 boot: the ROM monitor Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23-9
This example shows how to set the configuration register value to 0x90f:
Console> (enable) set boot config-register 0x90f Configuration register is 0x90f ignore-config: disabled auto-config: non-recurring console baud: 4800 boot: image specified by the boot system commands Console> (enable)
BOOT environment variable settings are not copied automatically to a redundant supervisor engine (if present). You must set the BOOT variable separately for each supervisor engine in the switch. These sections describe how to modify the BOOT environment variable:
Setting the BOOT Environment Variable, page 23-x Clearing the BOOT Environment Variable Settings, page 23-xi
23-10
78-13315-02
Chapter 23
Modifying the Switch Boot Configuration Setting the CONFIG_FILE Environment Variable
This example shows how to clear a specific entry from the BOOT environment variable:
Console> (enable) clear boot system flash bootflash:cat6000-sup.5-1-1.bin BOOT variable = bootflash:cat6000-sup.5-2-1.bin,1;bootflash:cat6000-sup.4-5-2. bin,1; Console> (enable)
This example shows how to clear the entire BOOT environment variable:
Console> (enable) clear boot system all BOOT variable = Console> (enable)
Setting the CONFIG_FILE Environment Variable, page 23-xi Clearing the CONFIG_FILE Environment Variable Settings, page 23-xii
Note
You cannot prepend or append configuration files to the CONFIG_FILE environment variable. Entering the set boot auto-config command erases any list of configuration files previously specified using the set boot auto-config command. To set the CONFIG_FILE environment variable, perform this task in privileged mode: Task Set the CONFIG_FILE environment variable. Command set boot auto-config device:filename[;device:filename...]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
23-11
This example shows how to clear the entries in the CONFIG_FILE environment variable:
Console> (enable) clear boot auto-config CONFIG_FILE variable = Console> (enable)
This example shows how to display the current configuration register, the BOOT environment variable, and the CONFIG_FILE environment variable settings:
Console> (enable) show boot BOOT variable = bootflash:cat6000-sup.5-2-1.bin,1; CONFIG_FILE variable = bootflash:generic.cfg;bootflash:6509_1_noc.cfg Configuration register is 0x12f ignore-config: disabled auto-config: recurring console baud: 9600 boot: image specified by the boot system commands Console> (enable)
23-12
78-13315-02
C H A P T E R
24
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How the Flash File System Works, page 24-i Working with the Flash File System, page 24-i
bootflash: onboard Flash memory slot0: Flash PC card in the PCMCIA slot
Setting the Default Flash Device, page 24-ii Setting the Text File Configuration Mode, page 24-ii Listing the Files on a Flash Device, page 24-iii Copying Files, page 24-iv Deleting Files, page 24-vi Restoring Deleted Files, page 24-vii Verifying a File Checksum, page 24-viii Formatting a Flash Device, page 24-viii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
24-1
Set the default Flash device for the switch. Verify the default Flash device for the switch.
This example shows how to change the default Flash device to slot0: and verify the default device:
Console> (enable) cd slot0: Console> (enable) pwd slot0 Console> (enable)
Note
VLAN commands are not saved as part of the configuration file when the switch is operating in text mode with the VTP mode set to server. To set the text file configuration mode, perform this task: Task Command set config mode {binary | text} [nvram | device:file-id] write memory show running-config all
Set the file configuration mode for the system to text. Save the text file configuration. Display the current runtime configuration.
Verify the file configuration mode for the system. show config mode
Display the startup configuration that will be used show config after the next reset.
24-2
78-13315-02
Chapter 24
Working With the Flash File System Working with the Flash File System
This example shows how to configure the system to save its configuration as a text file in NVRAM, verify the configuration mode, and display the current runtime configuration:
Console> (enable) set config mode text nvram Binary system configuration has been deleted from NVRAM. Configuration mode set to text. Use the write memory command to save configuration changes. System configuration file set to: nvram The nvram file will be used for configuration during the next bootup. Console> (enable) show config mode System configuration mode set to text. System configuration file set to nvram. Console> (enable) show running-config all ........... begin ! # ***** ALL (DEFAULT and NON-DEFAULT) CONFIGURATION ***** ! ! #time: Wed Jul 18 2001, 06:51:56 ! #version 6.3(0.74) ! set password $2$FMFQ$HfZR5DUszVHIRhrz4h6V70 set enablepass $2$FMFQ$HfZR5DUszVHIRhrz4h6V70 set prompt Console> set length 24 default set logout 20 set config mode text nvram set banner motd ^C^C set banner lcd ^C^C ! #test set test diaglevel complete ! #errordetection set errordetection inband disable set errordetection memory disable set errordetection portcounter enable ! #system set system baud 9600 set system modem disable set system name set system location ----display truncated-----Console> (enable)
Display a list of all files on a Flash device, including dir [[m/]device:][filename] all deleted files. Display a detailed list of files on a Flash device. dir [[m/]device:][filename] long
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
24-3
This example shows how to list the files on the default Flash device:
Console> (enable) dir -#- -length- -----date/time-----4 3134688 Mar 15 1999 08:27:01 5 3231989 Jan 24 1999 12:04:40 6 135 Feb 17 1999 11:30:05 name cat6000-sup.5-2-1-CSX.bin cat6000-sup.5-1-1-CSX.bin dns_config.cfg
This example shows how to list the files on a Flash device other than the default device:
Console> (enable) dir slot0: -#- -length- -----date/time-----1 3209261 Jun 16 1998 13:18:19 2 135 Jul 17 1998 11:32:53 3 3231989 Jul 17 1998 16:54:23 4 8589 Jul 17 1998 17:02:52 name cat6000-sup.5-2-1-CSX.bin dns-config.cfg cat5000-sup3.4-1-2.bin 6000_config.cfg
This example shows how to list the deleted files on the default Flash device:
Console> (enable) dir deleted -#- ED --type-- --crc--- -seek-- nlen -length- -----date/time-----1 .D ffffffff 81a027ca 41bdc 22 7004 Apr 01 1998 15:27:45 4.1.98.cfg 2 .D ffffffff ccce97a3 43644 23 6630 Apr 01 1998 15:36:47 .config.cfg 3 .D ffffffff 81a027ca 45220 15 7004 Apr 19 1998 10:05:59 cfg 1213952 bytes available (6388224 bytes used) Console> (enable) name 5002.config. 5002.default 5002_config.
Copying Files
To copy a file, perform one of these tasks in privileged mode: Task Copy a Flash file to a TFTP server, rcp server, Flash memory, another Flash device, or to the running configuration. Command copy file-id {tftp | rcp | flash | file-id | config}
Copy a file from a TFTP server, rcp server to copy {tftp | rcp} {flash | file-id | config} Flash memory, to a Flash device, or to the running configuration. Copy a file from Flash memory to a TFTP server, copy flash {tftp | rcp | file-id | config} rcp server, to a Flash device, or to the running configuration. Copy the running configuration to Flash memory, copy config {flash | file-id | tftp | rcp} another Flash device, to a TFTP server, or rcp server.
24-4
78-13315-02
Chapter 24
Working With the Flash File System Working with the Flash File System
This example shows how to copy a file from the default Flash device to another Flash device:
Console> (enable) copy cat6000-sup.5-2-1-CSX.bin slot0: 13174216 bytes available on device slot0, proceed (y/n) [n]? y CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc ccccccccccccCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC File has been copied successfully. Console> (enable)
This example shows how to copy a file from a TFTP server to the running configuration:
Console> (enable) copy tftp config IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? dns_config.cfg Configure using tftp:dns_config.cfg (y/n) [n]? y / Finished network download. (135 bytes) >> >> set ip dns server 172.16.10.70 primary 172.16.10.70 added to DNS server table as primary server. >> set ip dns server 172.16.10.140 172.16.10.140 added to DNS server table as backup server. >> set ip dns enable DNS is enabled >> set ip dns domain corp.com Default DNS domain name set to corp.com Console> (enable)
This example shows how to download a configuration file from a TFTP server for storage on a Flash device:
Console> (enable) copy tftp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? dns-config.cfg Flash device [slot0]? Name of file to copy to [dns-config.cfg]? 9932056 bytes available on device slot0, proceed (y/n) [n]? y / File has been copied successfully. Console> (enable)
This example shows how to copy the running configuration to Flash memory:
Console> (enable) copy config flash Flash device [bootflash]? slot0: Name of file to copy to []? 6000_config.cfg Upload configuration to slot0:6000_config.cfg 9942096 bytes available on device slot0, proceed (y/n) [n]? y ..... .......... ....... .. Configuration has been copied successfully. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
24-5
This example shows how to upload a configuration file on a Flash device to a TFTP server:
Console> (enable) copy slot0:6000_config.cfg tftp IP address or name of remote host []? 172.20.52.3 Name of file to copy to [6000_config.cfg]? / File has been copied successfully. Console> (enable)
This example shows how to upload an image from a remote host into Flash using rcp:
Console> (enable) copy rcp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? 6000_config.cfg Flash device [bootflash]? Name of file to copy to [6000_config.cfg]? 4369664 bytes available on device bootflash, proceed (y/n) [n]? y CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC File has been copied successfully. Console> (enable)
Deleting Files
Caution
If you enter the squeeze command on a Flash device, you cannot restore files deleted prior to the squeeze command. To delete files on a Flash device, perform this task in privileged mode: Task Command delete [[m/]device:]filename
Step 1 Step 2
If desired, permanently remove all deleted files on squeeze [m/]device: the Flash device (this operation can take a number of minutes to complete). Verify the files are deleted. dir [[m/]device:][filename]
Step 3
This example shows how to permanently remove all deleted files from a Flash device:
Console> (enable) squeeze slot0: All deleted files will be removed, proceed (y/n) [n]? y Squeeze operation may take a while, proceed (y/n) [n]? y Erasing squeeze log Console> (enable)
24-6
78-13315-02
Chapter 24
Working With the Flash File System Working with the Flash File System
Identify the index number of the deleted files on the Flash device. Undelete a file on a Flash device. Verify that the file is restored. This example shows how to restore a deleted file:
Console> (enable) dir deleted -#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name 6 .D ffffffff 42da7f71 657a00 14 135 Jul 17 1998 11:30:05 dns_config.cfg 1213952 bytes available (6388224 bytes used) Console> (enable) undelete 6 Console> (enable) dir -#- -length- -----date/time------ name 4 3134688 Apr 27 1998 08:27:01 cat6000-sup.5-2-1.bin 5 3231989 Jun 24 1998 12:04:40 cat6000-sup.5-2-1.bin 6 135 Jul 17 1998 11:30:05 dns_config.cfg 1213952 bytes available (6388224 bytes used) Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
24-7
Note
Flash PC cards formatted on Supervisor Engine 1 or on a route-switch processor (RSP)-based Cisco 7500 series router are interchangeable if the router is running software at least at the same level as the supervisor engine. You cannot use Flash PC cards formatted on a route processor (RP)-based Cisco 7000 series router without reformatting. When you format a Flash device, you can specify the monlib file (the ROM monitor library), which the ROM monitor uses to access files in the Flash file system. The monlib file is also compiled into the software image. In the format command syntax, use the device2 argument to specify the device that contains the monlib file to use. If you omit the entire device2 argument, the switch formats the device using the monlib file that is bundled with the software. If you omit just the device name (device2) from the [[device2:][monlib-filename]] argument, the switch formats the device using the named monlib file from the default Flash device. If you omit the monlib-filename from the [[device2:][monlib-filename]] argument, the switch formats the device using the monlib file from device2. If you specify the entire [[device2:][monlib-filename]] argument, the switch formats the device using the specified monlib file from the specified device. If the switch cannot find a monlib file, it terminates the formatting process.
Note
If the Flash device has a volume ID, you must provide the volume ID to format the device. The volume ID is displayed using the show flash m/device: filesys command. To format a Flash device, perform this task in privileged mode: Task Format a Flash device. Command format [spare spare-number] [m/]device1: [[device2:] [monlib-filename]]
Note
Supervisor Engine 2 and Supervisor Engine 1 do not support the same Flash PC card format. To use a Flash PC card with Supervisor Engine 2, format the card with Supervisor Engine 2. To use a Flash PC card with Supervisor Engine 1, format the card with Supervisor Engine 1.
24-8
78-13315-02
C H A P T E R
25
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Software Image Naming Conventions, page 25-i Downloading Software Images to the Switch With TFTP, page 25-ii Uploading System Software Images to a TFTP Server, page 25-viii Downloading System Software Images Using rcp, page 25-ix Uploading System Software Images to an rcp Server, page 25-xiv Downloading Software Images Over a Serial Connection on the Console Port, page 25-xv Downloading a System Image Using Xmodem or Ymodem, page 25-xxi
6.1(3) Flash image (standard)cat6000-sup2.6-1-3.bin 6.1(3) Flash image (CiscoView)cat6000-sup2cv.6-1-3.bin 6.1(3) Flash image (Secure Shell)cat6000-sup2k9.6-1-3.bin 6.1(3) Flash image (Secure Shell and CiscoView)cat6000-sup2cvk9.6-1-3.bin
Note
Notice the sup2cv, sup2k9, and sup2cvk9 designations; sup2cv means it is a Ciscoview image, sup2k9 means it is a Secure Shell image, sup2cvk9 means it is a Secure Shell and CiscoView image.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-1
Understanding How TFTP Software Image Downloads Work, page 25-ii Preparing to Download an Image Using TFTP, page 25-ii Downloading Supervisor Engine Images Using TFTP, page 25-iii Downloading Switching Module Images Using TFTP, page 25-iv TFTP Download Procedures Example, page 25-v
Supervisor engine software imageThe image file is downloaded to the supervisor engine Flash memory. You can store multiple image files on the Flash memory system devices (such as boot Flash and Flash PC cards). Intelligent module software imagesIf you specified a module number, the image file is downloaded to the specified module only (provided the image file is designed for the specified module type). If you do not specify a module number, the image file is downloaded to every module of the appropriate type. The file is relayed packet by packet to the appropriate modules using the Inter-Process Communications protocol internal to the system, with communication taking place across the switching bus. Downloading a software image to multiple modules significantly speeds up the process of updating the software on multiple modules of the same type.
Note
For more information on working with system software image files on the Flash file system, see Chapter 24, Working With the Flash File System.
Ensure that the workstation acting as the TFTP server is configured properly. On a Sun workstation, make sure that the /etc/inetd.conf file contains the following line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
25-2
78-13315-02
Chapter 25
Working with System Software Images Downloading Software Images to the Switch With TFTP
Note
You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). Refer to the documentation for your workstation for more information on using the TFTP daemon.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the TFTP server using the ping command. Ensure that the software image to be downloaded is in the correct directory on the TFTP server (usually /tftpboot on a UNIX workstation). Ensure that the permissions on the file are set correctly. Permissions on the file should be world-read. A power interruption (or other problem) during the download procedure can corrupt the Flash code. If the Flash code is corrupted, you can connect to the switch through the console port and boot from an uncorrupted system image on a Flash PC card.
If you have a redundant supervisor engine, you cannot download a system image directly from a TFTP server to the Flash memory on the standby supervisor engine. When you download the image to the active supervisor engine, the standby supervisor engine synchronizes automatically with the new image. In addition, you cannot copy an image from the standby supervisor engine to the active supervisor engine. To download a supervisor engine software image to the switch from a TFTP server, perform these steps:
Copy the software image file to the appropriate TFTP directory on the workstation. Log into the switch through the console port or through a Telnet session. If you log in using Telnet, your Telnet session disconnects when you reset the switch to run the new software. Enter the copy tftp flash command. When prompted, enter the IP address or host name of the TFTP server and the name of the file to download. On those platforms that support the Flash file system, you are also prompted for the Flash device to which to copy the file and the destination filename. The switch downloads the image file from the TFTP server to the specified Flash device.
Note Step 4
Modify the BOOT environment variable using the set boot system flash device:filename prepend command, so that the new image boots when you reset the switch. Specify the Flash device (device:) and the filename of the downloaded image (filename). Reset the switch using the reset system command. If you are connected to the switch through Telnet, your Telnet session disconnects. During startup, the Flash memory on the supervisor engine is reprogrammed with the new Flash code.
Step 5
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-3
Step 6
When the switch reboots, enter the show version command to check the version of the code on the switch.
Note
For examples that show complete TFTP download procedures for the various supervisor engine and switch types, see the TFTP Download Procedures Example section on page 25-v.
Copy the software image file to the appropriate TFTP directory on the workstation. Log into the switch through the console port or a Telnet session. If you log in using Telnet, your Telnet session might disconnect when you reset modules to run the new software. If there is only one module of the type appropriate for the image, or if there are multiple modules of the same type and you want to update the image on all of them, enter the copy tftp flash command. When prompted, enter the IP address or host name of the TFTP server, the name of the file to download, the Flash device to which to copy the file, and the destination filename. If there are multiple modules of the type appropriate for the image but you only want to update a single module, enter the copy tftp m/bootflash: command, where m is the number of the module to which to download the software image.
Step 4
Note
If you do not specify a module number, the switch examines the header of the image file to determine to which modules the software is downloaded. The image is then downloaded to all the modules of that type.
The switch downloads the image file, erases the Flash memory on the appropriate modules, and reprograms the Flash memory with the downloaded Flash code.
All modules in the switch remain operational while the image downloads.
Reset the appropriate modules using the reset mod command. If you are connected through Telnet, your Telnet session disconnects if you reset the module through which your connection was made. When the upgraded modules come online, enter the show version [mod] command to check the version of the code on the switch.
Note
For examples that show complete procedures for TFTP downloads to intelligent modules, see the Single Module Image TFTP Download Example section on page 25-vi and the Multiple Module Image TFTP Download Example section on page 25-vii.
25-4
78-13315-02
Chapter 25
Working with System Software Images Downloading Software Images to the Switch With TFTP
Supervisor Image TFTP Download Example, page 25-v Single Module Image TFTP Download Example, page 25-vi Multiple Module Image TFTP Download Example, page 25-vii
For a step-by-step procedure for downloading a supervisor engine software image from a TFTP server, see the Downloading Supervisor Engine Images Using TFTP section on page 25-iii. This example shows a complete TFTP download procedure of a supervisor engine software image to a Catalyst 6000 family switch:
Console> (enable) copy tftp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-sup.5-2-1-CSX.bin Flash device [bootflash]? Name of file to copy to [cat6000-sup.5-2-1-CSX.bin]? 4369664 bytes available on device bootflash, proceed (y/n) [n]? y CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC File has been copied successfully. Console> (enable) set boot system flash bootflash:cat6000-sup.5-2-1-CSX.bin BOOT variable = bootflash:cat6000-sup.5-2-1-CSX.bin,1; Console> (enable) reset system This command will reset the system. Do you want to continue (y/n) [n]? y Console> (enable) 07/21/1998,13:51:39:SYS-5:System reset from Console// System Bootstrap, Version 4.2 Copyright (c) 1994-1998 by cisco Systems, Inc. c6k_sup1 processor with 32768 Kbytes of main memory Autoboot executing command: "boot bootflash:cat6000-sup.5-2-1-CSX.bin" CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC Uncompressing file: ########################################################### ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ############# System Power On Diagnostics DRAM Size ....................32 MB Testing DRAM..................Passed Verifying Text segment .......Passed NVRAM Size ...................512 KB
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-5
Saving NVRAM ................. Testing NVRAM ................Passed Restoring NVRAM............... Level2 Cache ..................Present Level2 Cache test..............Passed Leaving power_on_diags Cafe Daughter Present. EOBC link up Boot image: bootflash:cat6000-sup.5-2-1-CSX.bin Flash Size = 0X1000000, num_flash_sectors = 64 readCafe2Version: 0x00000001 RIn Local Test Mode, Pinnacle Synch Retries: 2 Running System Diagnostics from this Supervisor (Module 1) This may take up to 2 minutes....please wait Cisco Systems Console
Enter password: 07/21/1998,13:52:51:SYS-5:Module 1 is online 07/21/1998,13:53:11:SYS-5:Module 4 is online 07/21/1998,13:53:11:SYS-5:Module 5 is online 07/21/1998,13:53:14:PAGP-5:Port 1/1 joined bridge port 1/1. 07/21/1998,13:53:14:PAGP-5:Port 1/2 joined bridge port 1/2. 07/21/1998,13:53:40:SYS-5:Module 2 is online 07/21/1998,13:53:45:SYS-5:Module 3 is online Console>
For a step-by-step procedure for downloading software images to intelligent modules, see the Downloading Switching Module Images Using TFTP section on page 25-iv. This example shows a complete TFTP download procedure of an ATM software image to a single ATM module:
Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(6)
Console> (enable) copy tftp 4/flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-atm.3-2-7.bin Download image tftp:cat6000-atm.3-2-7.bin to Module 4 FLASH (y/n) [n]? y This command will reset Download Module(s) you selected.
25-6
78-13315-02
Chapter 25
Working with System Software Images Downloading Software Images to the Switch With TFTP
Do you wish to continue download flash (y/n) [n]? y Download done for module 4, please wait for it to come online File has been copied successfully. Console> (enable) 07/21/1998,13:13:54:SYS-5:Module 4 is online Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(7) Console> (enable)
For a step-by-step procedure for downloading software images to intelligent modules, see the Downloading Switching Module Images Using TFTP section on page 25-iv. This example shows a complete TFTP download procedure of an ATM software image to multiple ATM modules:
Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(6) Console> (enable) show version 5 Mod Port Model Serial # Versions --- ---- ---------- --------- ---------------------------------------5 1 WS-X6101 003414463 Hw : 1.2 Fw : 1.3 Sw : 3.2(6) Console> (enable) copy tftp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-atm.3-2-7.bin Download image tftp:cat6000-atm.3-2-7.bin to Module 4 FLASH (y/n) [n]? y Download image tftp:cat6000-atm.3-2-7.bin to Module 5 FLASH (y/n) [n]? y This command will reset Download Module(s) you selected. Do you wish to continue download flash (y/n) [n]? y Download done for module 4, please wait for it to come online Download done for module 5, please wait for it to come online File has been copied successfully. Console> (enable) 07/21/1998,12:25:10:SYS-5:Module 4 is online 07/21/1998,12:25:10:SYS-5:Module 5 is online Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(7)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-7
(enable) show version 5 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414463 Hw : 1.2 Fw : 1.3 Sw : 3.2(7) Console> (enable)
Preparing to Upload an Image to a TFTP Server, page 25-viii Uploading Software Images to a TFTP Server, page 25-ix
Note
For more information on working with system software image files on the Flash file system, see Chapter 24, Working With the Flash File System.
Ensure that the workstation acting as the TFTP server is configured properly. On a Sun workstation, make sure that the /etc/inetd.conf file contains this line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Note
You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). Refer to the documentation for your workstation for more information on using the TFTP daemon.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the TFTP server using the ping command. You might need to create an empty file on the TFTP server before uploading the image. To create an empty file, enter the touch filename command, where filename is the name of the file you will use when uploading the image to the server. If you are overwriting an existing file (including an empty file, if you had to create one), ensure that the permissions on the file are set correctly. Permissions on the file should be world-write.
25-8
78-13315-02
Chapter 25
Working with System Software Images Downloading System Software Images Using rcp
Log into the switch through the console port or a Telnet session. Upload the software image to the TFTP server with the copy flash tftp command. When prompted, specify the TFTP server address and destination filename. On platforms that support the Flash file systems, you are first prompted for the Flash device and source filename. If desired, you can use the copy file-id tftp command on these platforms. The software image is uploaded to the TFTP server.
This example shows how to upload the supervisor engine software image:
Console> (enable) copy flash tftp Flash device [bootflash]? slot0: Name of file to copy from []? cat6000-sup.5-4-1.bin IP address or name of remote host [172.20.52.3]? 172.20.52.10 Name of file to copy to [cat6000-sup.5-4-1.bin]? CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC| File has been copied successfully. Console> (enable)
Preparing to Download an Image Using rcp, page 25-ix Downloading Supervisor Engine Images Using rcp, page 25-x Downloading Switching Module Images Using rcp, page 25-x Example rcp Download Procedures, page 25-xi
Ensure that the workstation acting as the rcp server supports the remote shell (rsh). Ensure that the switch has a route to the rcp server. The switch and the rcp server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the rcp server using the ping command.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-9
If you are accessing the switch through the console or a Telnet session without a valid username, make sure that the current rcp username is the one you want to use for the rcp download. You can enter the show users command to view the current valid username. If you do not want to use the current username, create a new rcp username using the set rcp username command. The new username will be stored in NVRAM. If you are accessing the switch through a Telnet session with a valid username, this username will be used and there is no need to set the rcp username. A power interruption (or other problem) during the download procedure can corrupt the Flash code. If the Flash code is corrupted, you can connect to the switch through the console port and boot from an uncorrupted system image on a Flash PC card.
Copy the software image file to the appropriate rcp directory on the workstation. Log into the switch through the console port or through a Telnet session. If you log in using Telnet, your Telnet session disconnects when you reset the switch to run the new software. Download the software image from the rcp server by entering the copy rcp flash command. When prompted, enter the IP address or host name of the rcp server and the name of the file to download. On those platforms that support the Flash file system, you are also prompted for the Flash device to which to copy the file and the destination filename. The switch downloads the image file from the rcp server.
Note Step 4
Modify the BOOT environment variable by entering the set boot system flash device:filename prepend command, so that the new image boots when you reset the switch. Specify the Flash device (device:) and the filename of the downloaded image (filename). Reset the switch by entering the reset system command. If you are connected to the switch through Telnet, your Telnet session disconnects. During startup, the Flash memory on the supervisor engine is reprogrammed with the new Flash code.
Step 5
Step 6
When the switch reboots, enter the show version command to check the version of the code on the switch.
Copy the software image file to the appropriate rcp directory on the workstation. Log into the switch through the console port or a Telnet session. If you log in using Telnet, your Telnet session might disconnect when you reset modules to run the new software.
25-10
78-13315-02
Chapter 25
Working with System Software Images Downloading System Software Images Using rcp
Step 3
Enter the command appropriate for your switch and supervisor engine to download the software image from the rcp server:
If there is only one module of the type appropriate for the image, or if there are multiple modules of the same type and you want to update the image on all of them, enter the copy rcp flash command. When prompted, enter the IP address or host name of the rcp server, the name of the file to download, the Flash device to which to copy the file, and the destination filename. If there are multiple modules of the type appropriate for the image but you only want to update a single module, enter the copy rcp | m/bootflash: command, where m is the number of the module to which to download the software image. If you do not specify the module, all modules of the same type will be updated.
Note
If you do not specify a module number, the switch examines the header of the image file to determine to which modules the software is downloaded. The image is then downloaded to all the modules of that type.
The switch downloads the image file, erases the Flash memory on the appropriate modules, and reprograms the Flash memory with the downloaded Flash code.
All modules in the switch remain operational while the image downloads.
Reset the appropriate modules using the reset mod command. If you are connected through Telnet, your Telnet session disconnects if you reset the module through which your connection was made. When the upgraded modules come online, enter the show version [mod] command to check the version of the code on the switch.
Supervisor Image rcp Download Example, page 25-xi Single Module Image rcp Download Example, page 25-xiii Multiple Module Image rcp Download Example, page 25-xiii
For a step-by-step procedure for downloading a supervisor engine software image from an rcp server, see the Downloading Supervisor Engine Images Using rcp section on page 25-x. This example shows a complete rcp download procedure of a supervisor engine software image to a Catalyst 6000 family switch:
Console> (enable) copy rcp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-sup.5-2-1-csx.bin Flash device [bootflash]?
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-11
Name of file to copy to [cat6000-sup.5-2-1-csx.bin]? 4369664 bytes available on device bootflash, proceed (y/n) [n]? y CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC File has been copied successfully. Console> (enable) set boot system flash bootflash:cat6000-sup.5-2-1-csx.bin prepend BOOT variable = bootflash:cat6000-sup.5-2-1-csx.bin,1;bootflash:cat6000-sup.5-21-csx.bin,1; Console> (enable) reset system This command will reset the system. Do you want to continue (y/n) [n]? y Console> (enable) 09/2/1999,13:51:39:SYS-5:System reset from Console// System Bootstrap, Version 4.2 Copyright (c) 1994-1999 by cisco Systems, Inc. Presto processor with 32768 Kbytes of main memory Autoboot executing command: "boot bootflash:cat6000-sup.5-2-1-csx.bin" CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC Uncompressing file: ########################################################### ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ #############
System Power On Diagnostics DRAM Size ....................32 MB Testing DRAM..................Passed Verifying Text segment .......Passed NVRAM Size ...................512 KB Saving NVRAM ................. Testing NVRAM ................Passed Restoring NVRAM............... Level2 Cache ..................Present Level2 Cache test..............Passed Leaving power_on_diags Cafe Daughter Present. EOBC link up Boot image: bootflash:cat6000-sup.5-2-1-CSX.bin Flash Size = 0X1000000, num_flash_sectors = 64 readCafe2Version: 0x00000001 RIn Local Test Mode, Pinnacle Synch Retries: 2 Running System Diagnostics from this Supervisor (Module 1) This may take up to 2 minutes....please wait Cisco Systems Console
25-12
78-13315-02
Chapter 25
Working with System Software Images Downloading System Software Images Using rcp
Enter password: 09/2/1999,13:52:51:SYS-5:Module 1 is online 09/2/1999,13:53:11:SYS-5:Module 4 is online 09/2/1999,13:53:11:SYS-5:Module 5 is online 09/2/1999,13:53:14:PAGP-5:Port 1/1 joined bridge port 1/1. 09/2/1999,13:53:14:PAGP-5:Port 1/2 joined bridge port 1/2. 09/2/1999,13:53:40:SYS-5:Module 2 is online 09/2/1999,13:53:45:SYS-5:Module 3 is online Console> (enable)
For a step-by-step procedure for downloading software images to intelligent modules, see the Downloading Switching Module Images Using rcp section on page 25-x. This example shows a complete rcp download procedure of an ATM software image to a single ATM module:
Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(6) Console> (enable) copy rcp 4/flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-atm.3-2-7.bin Download image rcp:cat6000-atm.3-2-7.bin to Module 4 FLASH (y/n) [n]? y This command will reset Download Module(s) you selected. Do you wish to continue download flash (y/n) [n]? y Download done for module 4, please wait for it to come online File has been copied successfully. Console> (enable) 09/2/1999,13:13:54:SYS-5:Module 4 is online Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(7) Console> (enable)
For a step-by-step procedure for downloading software images to intelligent modules, see the Downloading Switching Module Images Using rcp section on page 25-x.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-13
This example shows a complete rcp download procedure of an ATM software image to multiple ATM modules:
Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(6) Console> (enable) show version 5 Mod Port Model Serial # Versions --- ---- ---------- --------- ---------------------------------------5 1 WS-X6101 003414463 Hw : 1.2 Fw : 1.3 Sw : 3.2(6) Console> (enable) copy rcp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-atm.3-2-7.bin Download image rcp:cat6000-atm.3-2-7.bin to Module 4 FLASH (y/n) [n]? y Download image rcp:cat6000-atm.3-2-7.bin to Module 5 FLASH (y/n) [n]? y This command will reset Download Module(s) you selected. Do you wish to continue download flash (y/n) [n]? y Download done for module 4, please wait for it to come online Download done for module 5, please wait for it to come online File has been copied successfully. Console> (enable) 09/2/1999,12:25:10:SYS-5:Module 4 is online 09/2/1999,12:25:10:SYS-5:Module 5 is online Console> Mod Port --- ---4 1 (enable) show version 4 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(7) (enable) show version 5 Model Serial # Versions ---------- --------- ---------------------------------------WS-X6101 003414463 Hw : 1.2 Fw : 1.3 Sw : 3.2(7) (enable)
Console>
Preparing to Upload an Image to an rcp Server, page 25-xv Uploading Software Images to an rcp Server, page 25-xv
Note
For more information on working with system software image files on the Flash file system, see Chapter 24, Working With the Flash File System.
25-14
78-13315-02
Chapter 25
Working with System Software Images Downloading Software Images Over a Serial Connection on the Console Port
Ensure that the workstation acting as the rcp server is configured properly. Ensure that the switch has a route to the rcp server. The switch and the rcp server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the rcp server using the ping command. If you are overwriting an existing file (including an empty file, if you had to create one), ensure that the permissions on the file are set correctly. Permissions on the file should be write for the specific username.
Log into the switch through the console port or a Telnet session. Upload the software image to the rcp server using the copy flash rcp command. When prompted, specify the rcp server address and destination filename. On platforms that support the Flash file systems, you are first prompted for the Flash device and source filename. If desired, you can use the copy file-id rcp command on these platforms. The software image is uploaded to the rcp server.
This example shows how to upload the supervisor engine software image to an rcp server:
Console> (enable) copy flash rcp Flash device [bootflash]? slot0: Name of file to copy from []? cat6000-sup.5-3-1.bin IP address or name of remote host [172.20.52.3]? 172.20.52.10 Name of file to copy to [cat6000-sup.5-3-1.bin]? CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC| File has been copied successfully. Console> (enable)
Preparing to Download an Image Using Kermit, page 25-xvi Downloading Software Images Using Kermit (PC Procedure), page 25-xvi Downloading Software Images Using Kermit (UNIX Procedure), page 25-xvii Example Serial Software Image Download Procedures, page 25-xviii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-15
Chapter 25 Downloading Software Images Over a Serial Connection on the Console Port
On a UNIX workstation, make sure your shell window is local (not an rlogin window to a different workstation). Ensure that the supervisor engine console port is connected to a serial port on your PC or workstation with a serial cable. Ensure that the Kermit software is installed on your PC or workstation. Ensure that the line speed settings are the same on the PC or workstation and on the switch:
On the switch, you can change the console port speed by entering the set system baud rate
Caution
To prevent communication problems, do not use a speed greater than 19,200 baud.
This procedure applies to PC serial downloads only. For information on performing a serial download on a UNIX workstation, see the Downloading Software Images Using Kermit (UNIX Procedure) section on page 25-xvii. To perform a serial download of a software image over the supervisor engine console port, perform these steps:
Step 1 Step 2
Copy the software image file to the directory where Kermit is loaded. Start Kermit on the PC.
Note
Before continuing, ensure that the line speed is correct and that you have selected the proper serial line, as described in the Preparing to Download an Image Using Kermit section on page 25-xvi.
At the Kermit> prompt, enter the connect command to connect to the switch. If your line and speed are set correctly, the switch Console> prompt appears. Enter the enable command to enter privileged mode. Enter the download serial command. The file is downloaded to module 1 by default.
25-16
78-13315-02
Chapter 25
Working with System Software Images Downloading Software Images Over a Serial Connection on the Console Port
When prompted, confirm the download. Enter the escape sequence Ctrl-]-c by holding down the Ctrl key while you press ], and then press c. At the Kermit> prompt, enter the send filename command to send the file to the switch. The switch downloads the image file, erases the Flash memory on the supervisor engine or the appropriate module, and reprograms the Flash memory with the downloaded Flash code.
Note Step 9
When the Kermit> prompt reappears, enter the connect command to return to the switch Console> prompt. You will see status information as the switch erases and reprograms the Flash memory.
Note
If you enter the connect command more than two minutes after the Kermit> prompt reappears, you might see only a Console> prompt instead of the status information about erasing and programming Flash code.
Step 10 Step 11
Reset the switch using the reset system command. When the switch reboots, enter the show version [mod] command to check the version of the code on the switch.
Note
For an example that shows a complete serial download procedure using Kermit on a PC, see the PC Serial Download Procedure Example section on page 25-xix.
This procedure applies to UNIX serial downloads only. For information on performing a serial download on a PC, see the Downloading Software Images Using Kermit (PC Procedure) section on page 25-xvi. Use this procedure to perform a serial download of a software image over the supervisor engine console port. To copy the software to the workstation, log in as root, and perform these steps:
Step 1 Step 2
Copy the software image file to your home directory. At the UNIX command prompt, start Kermit by entering the kermit command (make sure the directory where Kermit is installed is included in the $PATH environment variable on the workstation).
Note
Before continuing, ensure that the line speed is correct and that you have selected the proper serial line, as described in the Preparing to Download an Image Using Kermit section on page 25-xvi.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-17
Chapter 25 Downloading Software Images Over a Serial Connection on the Console Port
At the C-Kermit> prompt, enter the connect command to connect to the switch. If your line and speed are set correctly, the switch Console> prompt appears. Enter the enable command to enter privileged mode. Enter the download serial command. The file downloads to module 1 by default. When prompted, confirm the download. Enter the escape sequence Ctrl-\-c by holding down the Ctrl key while you press \, and then press c. At the Kermit> prompt, enter the send filename command to send the file to the switch. You can monitor the progress of the download by pressing the a key at any time during the Kermit download. A dot appears onscreen for every four packets transferred. If there is a problem transferring the file, one or more of the following letter codes appear:
TKermit timed out. NKermit is not acknowledging the switch download process. EKermit detected an error in the progress of the transaction.
The switch downloads the image file, erases the Flash memory on the supervisor engine or the appropriate module, and reprograms the Flash memory with the downloaded Flash code.
Note Step 9
Press Return to return to the C-Kermit> prompt. When the Kermit> prompt reappears, enter the connect command to return to the switch Console> prompt. You will see status information as the switch erases and reprograms the Flash memory.
Note
If you enter the connect command more than two minutes after the Kermit> prompt reappears, you might see only a Console> prompt instead of the status information about erasing and programming Flash code.
Step 10 Step 11
Reset the switch using the reset system command. When the switch reboots, enter the show version [mod] command to check the version of the code on the switch.
Note
For an example that shows a complete serial download procedure using Kermit on a UNIX workstation, see the UNIX Workstation Serial Download Procedure Example section on page 25-xx.
PC Serial Download Procedure Example, page 25-xix UNIX Workstation Serial Download Procedure Example, page 25-xx
25-18
78-13315-02
Chapter 25
Working with System Software Images Downloading Software Images Over a Serial Connection on the Console Port
File name: c6509_xx.bin KBytes transferred: xxxx Percent transferred: 100% Sending: Complete Number of Packets: Number of retries: Last error: Last warning: Kermit> connect xxxx None None None
Finished network download. (1136844 bytes) Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete The system needs to be reset to run the new image. Cisco Systems Console Enter password: Mon Apr 06, 1998, 14:35:08 Console>
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-19
Chapter 25 Downloading Software Images Over a Serial Connection on the Console Port
blocks
Type the escape character followed by C to get back, or followed by ? to see other options. Console> enable Console> (enable) download serial c5009_xx.bin Download CBI image via console port (y/n) [n]? y Waiting for DOWNLOAD! Return to your local Machine by typing its escape sequence Issue Kermit send command from there[ Send `Filename`] [Back at Local System] C-Kermit> send c5009_xx.bin SF c5009_xx.bin => c5009_xx.bin, Size: 1156046 CTRL-F to cancel file, CTRL-R to resend current packet CTRL-B to cancel batch, CTRL-A for status report: .......................................................................................... .................................... *** Display Truncated *** ............................................................... .................................... [OK] ZB? C-Kermit> connect Connecting thru /dev/ttya, speed 9600. The escape character is CTRL-\ (28). Type the escape character followed by C to get back, or followed by ? to see other options. Download OK Initializing Flash Programming Flash Base....Code....Length....Time....Done Cisco Systems Console Enter password: Mon Apr 06, 1998, 17:35:08 Console>
25-20
78-13315-02
Chapter 25
Working with System Software Images Downloading a System Image Using Xmodem or Ymodem
In the example, the -y option uses the Ymodem protocol; -c provides CRC-16 checksumming; and -s sets the console port data rate.
Note
See the ROM Monitor Command-Line Interface section in the Command-Line Interfaces chapter for more information about the ROM monitor. The computer from which you transfer the supervisor engine software image must be running terminal emulation software that supports the Xmodem or Ymodem protocol. The following procedure shows a file transfer using the Xmodem protocol. To use the Ymodem protocol, include the -y option with the xmodem command.
Caution
A modem connection from the telephone network to your console port introduces security issues that you should consider before enabling the connection. For example, remote users can dial into your modem and access the switch configuration settings.
Caution
If you have redundant supervisor engines, you must remove the second (redundant) supervisor engine before you perform this procedure. The image that is downloaded via Xmodem is not saved to memory; therefore, after the download if you have two supervisor engines installed and attempt to reboot the active supervisor engine with the downloaded image, the redundant supervisor engine will take over and synchronize with the active supervisor engine; the downloaded image will not be booted.
Step 1 Step 2
Place a supervisor engine software image on the computers hard drive. You can download an image from Cisco.com (see the Preface section for details). To download from a local computer, connect the console port (port mode switch in the in position) to a serial port on the computer, using a null-modem cable. The console port speed must match the speed configured on the local computer.
Note
If you are transferring from a local computer, you may need to configure the terminal emulation program to ignore RTS/DTR signals.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
25-21
Step 3
Connect a modem to the console port and to the telephone network. The modem and console port must communicate at the same speed, which can be from 1200 to 38400 bps, depending on the speed supported by your modem. Enter the confreg ROM monitor command to configure the console port transmission speed. Connect a modem to the remote computer and to the telephone network and configure it for the same speed as the supervisor engine. Dial the number of the supervisor engine modem from the remote computer.
c. d. Step 4
Enter the xmodem command at the ROM-monitor prompt in the terminal emulation window:
rommon > xmodem -s 38400 -c
Step 5
Start an Xmodem or Ymodem send operation with the computers terminal emulation software. The computer downloads the system image to the supervisor engine. See your terminal emulation software application manual for instructions on how to execute a Xmodem or Ymodem file transfer. After the new image is completely downloaded, the ROM monitor boots it.
Step 6
Note
Downloading an image through the console port does not create an image file on any of the Flash devices. The downloaded image resides only in memory. The image in memory cannot be saved as a file.
Step 7
After the download, the console port returns to the default baud rate: 9600. If the download took place at other than 9600 baud, you must change the remote computers baud rate back to 9600 baud.
Note
Establish network connectivity to the switch to copy an image file from a TFTP server to one of the Flash devices.
25-22
78-13315-02
C H A P T E R
26
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Working with Configuration Files on the Switch, page 26-i Working with Configuration Files on the MSFC, page 26-ix
Creating and Using Configuration File Guidelines, page 26-ii Creating a Configuration File, page 26-ii Downloading Configuration Files to the Switch Using TFTP, page 26-iii Uploading Configuration Files to a TFTP Server, page 26-v Copying Configuration Files Using rcp, page 26-vi Downloading Configuration Files from an rcp Server, page 26-vi Uploading Configuration Files to an rcp Server, page 26-vii Clearing the Configuration, page 26-viii
Note
For more information on working with configuration files on the Flash file system, see Chapter 24, Working With the Flash File System.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-1
We recommend that you connect through the console port when using configuration files to configure the switch. If you configure the switch from a Telnet session, IP addresses are not changed, and ports and modules are not disabled. If no passwords have been set on the switch, you must set them on each switch by entering the set password and set enablepass commands. Enter a blank line after the set password and set enablepass commands. The passwords are saved in the configuration file as clear text. If passwords already exist, you cannot enter the set password and set enablepass commands because the password verification will fail. If you enter passwords in the configuration file, the switch mistakenly attempts to execute the passwords as commands as it executes the file.
Certain commands must be followed by a blank line in the configuration file. The blank line is necessary; without the blank line, these commands might disconnect your Telnet session. Before disconnecting a session, the switch prompts you for confirmation. The blank line acts as a carriage return, which indicates a negative response to the prompt and retains the Telnet session. Include a blank line after each occurrence of these commands in a configuration file:
set interface sc0 ip_addr netmask set interface sc0 disable set module disable mod set port disable mod/port
Download an existing configuration from a switch. Open the configuration file in a text editor, such as vi or emacs on UNIX or Notepad on a PC. Extract the portion of the configuration file with the desired commands and save it in a new file. Make sure the file begins with the word begin on a line by itself and ends with the word end on a line by itself. Copy the configuration file to the appropriate TFTP directory on the workstation (usually /tftpboot on a UNIX workstation). Make sure the permissions on the file are set to world-read.
This example shows an example configuration file. This file could be used to set the Domain Name System (DNS) configuration on multiple switches.
begin ! #dns set ip set ip set ip set ip end
26-2
78-13315-02
Chapter 26
Working with Configuration Files Working with Configuration Files on the Switch
Preparing to Download a Configuration File Using TFTP, page 26-iii Configuring the Switch Using a File on a TFTP Server, page 26-iii Configuring the Switch Using a File on a Flash Device, page 26-iv
Ensure that the workstation acting as the TFTP server is configured properly. On a Sun workstation, make sure that the /etc/inetd.conf file contains this line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Note
You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). Refer to the documentation for your workstation for more information about the TFTP daemon.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the TFTP server using the ping command. Ensure that the configuration file to be downloaded is in the correct directory on the TFTP server (usually /tftpboot on a UNIX workstation). Ensure that the permissions on the file are set as world-read.
Copy the configuration file to the appropriate TFTP directory on the workstation. Log into the switch through the console port or a Telnet session. Configure the switch using the configuration file downloaded from the TFTP server with the copy tftp config command. Specify the IP address or host name of the TFTP server and the name of the file to download. The configuration file downloads, and the commands are executed as the file is parsed line-by-line.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-3
This example shows how to configure the switch using a configuration file downloaded from a TFTP server:
Console> (enable) copy tftp config IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? dns-config.cfg Configure using tftp:dns-config.cfg (y/n) [n]? y / Finished network download. (134 bytes) >> >> set ip dns server 172.16.10.70 primary 172.16.10.70 added to DNS server table as primary server. >> set ip dns server 172.16.10.140 172.16.10.140 added to DNS server table as backup server. >> set ip dns enable DNS is enabled >> set ip dns domain corp.com Default DNS domain name set to corp.com Console> (enable)
Log into the switch through the console port or a Telnet session. Locate the configuration file using the cd and dir commands (for more information, see Chapter 24, Working With the Flash File System). Configure the switch using the configuration file stored on the Flash device using the copy file-id config command. The commands are executed as the file is parsed line-by-line.
This example shows how to configure the switch using a configuration file stored on a Flash device:
Console> (enable) copy slot0:dns-config.cfg config Configure using slot0:dns-config.cfg (y/n) [n]? y Finished network download. (134 bytes) >> >> set ip dns server 172.16.10.70 primary 172.16.10.70 added to DNS server table as primary server. >> set ip dns server 172.16.10.140 172.16.10.140 added to DNS server table as backup server. >> set ip dns enable DNS is enabled >> set ip dns domain corp.com Default DNS domain name set to corp.com Console> (enable)
26-4
78-13315-02
Chapter 26
Working with Configuration Files Working with Configuration Files on the Switch
Preparing to Upload a Configuration File to a TFTP Server, page 26-v Uploading a Configuration File to a TFTP Server, page 26-v
Ensure that the workstation acting as the TFTP server is configured properly. On a Sun workstation, make sure that the /etc/inetd.conf file contains this line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Note
You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). Refer to the documentation for your workstation for more information about the TFTP daemon.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the TFTP server using the ping command. You might need to create an empty file on the TFTP server before uploading the configuration file. To create an empty file, enter the touch filename command, where filename is the name of the file you will use when uploading the configuration to the server. If you are overwriting an existing file (including an empty file, if you had to create one), ensure that the permissions on the file are set as world-write.
Log into the switch through the console port or a Telnet session. Upload the switch configuration to the TFTP server with the copy config tftp command. Specify the IP address or host name of the TFTP server and the destination filename. The file is uploaded to the TFTP server.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-5
This example shows how to upload the running configuration to a TFTP server for storage:
Console> (enable) copy config tftp IP address or name of remote host []? 172.20.52.3 Name of file to copy to []? cat6000_config.cfg Upload configuration to tftp:cat6000_config.cfg, (y/n) [n]? y ..... .......... ....... .......... ........... .. / Configuration has been copied successfully. Console> (enable)
Preparing to Download a Configuration File Using rcp, page 26-vi Configuring the Switch Using a File on an rcp Server, page 26-vii
Ensure that the workstation acting as the rcp server supports the remote shell (rsh). Ensure that the switch has a route to the rcp server. The switch and the server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the rcp server using the ping command.
26-6
78-13315-02
Chapter 26
Working with Configuration Files Working with Configuration Files on the Switch
If you are accessing the switch through the console or a Telnet session without a valid username, make sure that the current rcp username is the one you want to use for the rcp download. You can enter the show users command to view the current valid username. If you do not want to use the current username, create a new rcp username using the set rcp username command. The new username will be stored in NVRAM. If you are accessing the switch through a Telnet session with a valid username, this username will be used and there is no need to set the rcp username.
Copy the configuration file to the appropriate rcp directory on the workstation. Log into the switch through the console port or a Telnet session. Configure the switch using the configuration file downloaded from the rcp server using the copy rcp config command. Specify the IP address or host name of the rcp server and the name of the file to download. The configuration file downloads and the commands are executed as the file is parsed line-by-line.
This example shows how to configure a Catalyst 6000 family switch using a configuration file downloaded from an rcp server:
Console> (enable) copy rcp config IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? dns-config.cfg Configure using rcp:dns-config.cfg (y/n) [n]? y / Finished network download. (134 bytes) >> >> set ip dns server 172.16.10.70 primary 172.16.10.70 added to DNS server table as primary server. >> set ip dns server 172.16.10.140 172.16.10.140 added to DNS server table as backup server. >> set ip dns enable DNS is enabled >> set ip dns domain corp.com Default DNS domain name set to corp.com Console> (enable)
Preparing to Upload a Configuration File to an rcp Server, page 26-viii Uploading a Configuration File to an rcp Server, page 26-viii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-7
Ensure that the workstation acting as the rcp server is configured properly. Ensure that the switch has a route to the rcp server. The switch and the rcp server must be in the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the rcp server using the ping command. If you are overwriting an existing file (including an empty file, if you had to create one), ensure that the permissions on the file are set correctly. Permissions on the file should be user-write.
Log into the switch through the console port or a Telnet session. Upload the switch configuration to the rcp server using the copy config rcp command. Specify the IP address or host name of the rcp server and the destination filename. The file is uploaded to the rcp server.
This example shows how to upload the running configuration on a Catalyst 6000 family switch to an rcp server for storage:
Console> (enable) copy config rcp IP address or name of remote host []? 172.20.52.3 Name of file to copy to []? cat6000_config.cfg Upload configuration to rcp:cat6000_config.cfg, (y/n) [n]? y ..... .......... ....... .......... ........... .. / Configuration has been copied successfully. Console> (enable)
26-8
78-13315-02
Chapter 26
Working with Configuration Files Working with Configuration Files on the MSFC
This example shows how to clear the configuration for the entire switch:
Console> (enable) clear config all This command will clear all configuration in NVRAM. This command will cause ifIndex to be reassigned on the next system startup. Do you want to continue (y/n) [n]? y ........ ............................. System configuration cleared. Console> (enable)
To clear the configuration on an individual module, perform this task in privileged mode: Task Clear the configuration for a specific module. Command clear config mod
Note
If you remove a module and replace it with a module of another type (for example, if you remove a 10/100 Ethernet module and insert a Gigabit Ethernet module), the module configuration is inconsistent. The output of the show module command indicates this problem. To resolve the inconsistency, clear the configuration on the problem module. This example shows how to clear the configuration on a specific module:
Console> (enable) clear config 2 This command will clear module 2 configuration. Do you want to continue (y/n) [n]? y ............................. Module 2 configuration cleared. Console> (enable)
Uploading the Configuration File to a TFTP Server, page 26-x Uploading the Configuration File to the Supervisor Engine Flash PC Card, page 26-xi Downloading the Configuration File from a Remote Host, page 26-xi Downloading the Configuration File from the Supervisor Engine Flash PC Card, page 26-xiii
Configuration information resides in two places when the MSFC is operating: the default (permanent) configuration in NVRAM and the running (temporary) memory in RAM. The default configuration always remains available; NVRAM retains the information even when the power is shut down. The current information is lost if the system power is shut down. The current configuration contains all nondefault configuration information that you added by using the configure command or the setup command facility, or by editing the configuration file. The copy running-config startup-config command adds the current configuration to the default configuration in NVRAM, so that it is saved if power is shut down. Whenever you make changes to the system configuration, enter the copy running-config startup-config command to save the new configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-9
If you replace the MSFC, you need to replace the entire configuration. If you upload (copy) the configuration file to a remote server before removing the MSFC, you can retrieve it later and write it into NVRAM on the new MSFC. If you do not upload the configuration file, you need to use the configure command to reenter the configuration information after you install the new MSFC. Saving and retrieving the configuration file is not necessary if you are temporarily removing an MSFC that you are going to reinstall; the lithium batteries retain the configuration in memory. This procedure requires privileged-level access to the EXEC command interpreter, which usually requires a password.
You have a connection to the MSFC either with a console terminal or remotely through a Telnet session. The MSFC is connected to a network supporting a file server (remote host). The remote host supports the TFTP application. You have the IP address or name of the remote host available.
To store information on a remote host, enter the privileged write network EXEC command. This command prompts you for the destination host address and a filename and then displays the instructions for confirmation. When you confirm the instructions, the MSFC sends a copy of the currently running configuration to the remote host. The system default is to store the configuration in a file called by the name of the MSFC with -confg appended. You can either accept the default filename by pressing Return at the prompt, or enter a different name before pressing Return. To upload (copy) the currently running configuration to a remote host, perform these steps:
Step 1 Step 2 Step 3
Check if the system prompt displays a pound sign (#) to indicate the privileged level of the EXEC command interpreter. Enter the ping command to check the connection between the MSFC and the remote host. Enter the write term command to display the currently running configuration on the terminal and ensure that the configuration information is complete and correct. If it is not correct, enter the configure command to add or modify the existing configuration. Enter the write net command. The EXEC command interpreter prompts you for the name or IP address of the remote host that is to receive the configuration file. (The prompt might include the name or address of a default file server.)
Router# write net Remote host []?
Step 4
Step 5
Enter the name or IP address of the remote host. In this example, the name of the remote server is servername:
Router# write net Remote host []? servername Translating "servername"...domain server (1.1.1.1) [OK]
Step 6
Note that the EXEC command interpreter prompts you to specify a name for the file that is to hold the configuration. By default, the system appends -confg to the MSFC name to create the new filename. Press Return to accept the default filename, or enter a different name for the file before pressing Return. In the following example, the default is accepted:
Name of configuration file to write [Router-confg]?
26-10
78-13315-02
Chapter 26
Working with Configuration Files Working with Configuration Files on the MSFC
Step 7
Note that before the MSFC executes the copy process, it displays the instructions you entered for confirmation. If the instructions are not correct, enter n (no) and then Return to abort the process. To accept the instructions, press Return or y (yes) and then Return, and the system begins the copy process. In the following example, the default is accepted:
Write file Router-confg on host 1.1.1.1? [confirm] Writing Router-confg: !!!! [ok]
While the MSFC copies the configuration to the remote host, it displays a series of exclamation points (! ! !) or periods (. . .). The ! ! ! and [ok] indicate that the operation is successful. A display of . . . [timed out] or [failed] indicates a failure, which would probably be due to a network fault or the lack of a writable, readable file on the remote file server.
Step 8
Note that if the display indicates that the process was successful (with the series of ! ! ! and [ok]), the upload process is complete. The configuration is safely stored in the temporary file on the remote file server. If the display indicates that the process failed (with the series of . . . as shown in the following example):
Writing Router-confg .....
your configuration was not saved. Repeat the preceding steps, or select a different remote file server and repeat the preceding steps. If you are unable to copy the configuration to a remote host successfully, contact your network administrator or see the Obtaining Technical Assistance section on page xxxii for instructions on contacting the technical assistance center.
Command Router> enable Router# copy startup-config sup-slot0:file_name Router# copy running-config sup-slot0:file_name
At the EXEC prompt, enter enable mode. Copy the startup configuration file to slot 0. Copy the running configuration file to slot 0.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-11
Step 1
Check if the system prompt displays a pound sign (#) to indicate the privileged level of the EXEC command interpreter.
Note
Until you retrieve the previous configuration, the MSFC runs from the default configuration in NVRAM. Any passwords that were configured on the previous system are not valid until you retrieve the configuration.
Step 2 Step 3
Enter the ping command to verify the connection between the router and the remote host. At the system prompt, enter the configure network command and press Return to enter configuration mode. Specify that you want to configure the system from a network device (instead of from the console terminal, which is the default).
Router# configure network
Step 4
Note that the system prompts you to select a host or network configuration file. The default is host; press Return to accept the default.
Host or network configuration file [host]?
Step 5
Note that the system prompts you for the IP address of the host. Enter the IP address or name of the remote host (the remote file server to which you uploaded the configuration file).
IP address of remote host [255.255.255.255]? 1.1.1.1
Step 6
Note that the system prompts you for the configuration filename. When uploading the file, the default is to use the name of the MSFC with the suffix -confg (router-confg in the following example). If you specified a different filename when you uploaded the configuration, enter the filename; otherwise, press Return to accept the default.
Name of configuration file [router-confg]?
Step 7
Note that before the system reboots with the new configuration, it displays the instructions you entered for confirmation. If the instructions are not correct, enter n (no), and then press Return to cancel the process. To accept the instructions, press Return, or y, and then Return.
Configure using router-confg from 1.1.1.1? [confirm] Booting router-confg from 1.1.1.1: ! ! [OK - 874/16000 bytes]
While the MSFC retrieves and boots from the configuration on the remote host, the console display indicates whether or not the operation was successful. A series of !!!! and [OK] (as shown in the preceding example) indicate that the operation was successful. A series of . . . and [timed out] or [failed] indicate a failure (which would probably be due to a network fault or an incorrect server name, address, or filename). The following is an example of a failed attempt to boot from a remote server:
Booting Router-confg ..... [timed out]
Step 8
Proceed to the next step if the display indicates that the process was successful. If the display indicates that the process failed, verify the name or address of the remote server and the filename, and repeat the preceding steps. If you are unable to retrieve the configuration, contact your network administrator or see the Obtaining Technical Assistance section on page xxxii for instructions on contacting the technical assistance center.
Step 9
Enter the write term command to display the currently running configuration on the terminal. Review the display and ensure that the configuration information is complete and correct. If it is not, verify the filename and repeat the preceding steps to retrieve the correct file, or use the configure command to add or modify the existing configuration. (See the appropriate software documentation for the configuration options available for the system, the individual interfaces, and specific configuration instructions.)
26-12
78-13315-02
Chapter 26
Working with Configuration Files Working with Configuration Files on the MSFC
Step 10
When you have verified that the currently running configuration is correct, enter the copy running-config startup-config command to save the retrieved configuration in NVRAM. Otherwise, you will lose the new configuration if you restart the system.
This completes the procedure for downloading (retrieving) the configuration file.
Downloading the Configuration File from the Supervisor Engine Flash PC Card
To download the configuration file from the supervisor engine Flash PC card in PCMCIA slot 0, perform this task: Task
Step 1 Step 2
Command
At the EXEC prompt, enter enable Router> enable mode. Copy the stored running configuration file to the MSFC running configuration. Copy the stored startup configuration file to the MSFC running configuration. Router# copy sup-slot0: file_name running-config
Step 3
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
26-13
26-14
78-13315-02
C H A P T E R
27
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication.
Note
For more information on system messages, refer to the System Message GuideCatalyst 6000 Family, Catalyst 5000 Family, and Catalyst 4000 Family, Catalyst 2948G, and Catalyst 2980G publication. This chapter consists of these sections:
Understanding How System Message Logging Works, page 27-i System Log Message Format, page 27-iii Default System Message Logging Configuration, page 27-iv Configuring System Message Logging, page 27-iv
Provides you with logging information for monitoring and troubleshooting Allows you to select the types of logging information captured Allows you to select the destination of captured logging information
By default, the switch logs normal but significant system messages to its internal buffer and sends these messages to the system console. You can specify which system messages should be saved based on the type of facility (see Table 1) and the severity level (see Table 2). Messages are time-stamped to enhance real-time debugging and management. You can access logged system messages 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 that can store up to 500 messages. You can monitor system messages remotely by accessing the switch through Telnet or the console port, or by viewing the logs on a syslog server.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
27-1
Note
When the switch first initializes, the network is not connected until the initialization completes. Therefore, messages redirected to a syslog server are delayed up to 90 seconds. Table 1 describes the facility types supported by the system message logs.
Table 27-1 System Message Log Facility Types
Facility Name all acl cdp cops dtp dvlan earl filesys gvrp ip kernel ld mcast mgmt mls pagp protfilt pruning privatevlan qos radius rsvp security snmp spantree sys tac tcp
Definition All facilities ACL facility Cisco Discovery Protocol Common Open Policy Server Dynamic Trunking Protocol Dynamic VLAN Enhanced Address Recognition Logic File System GARP VLAN Registration Protocol Internet Protocol Kernel ASLB facility Multicast Management Multilayer Switching Port Aggregation Protocol Protocol Filter VTP pruning Private VLAN facility Quality of Service Remote Access Dial-In User Service ReSerVation Protocol Security Simple Network Management Protocol Spanning Tree Protocol System Terminal Access Controller Transmission Control Protocol
27-2
78-13315-02
Chapter 27
Definition Terminal Emulation Protocol Trivial File Transfer Protocol User Datagram Protocol VLAN Membership Policy Server VLAN Trunking Protocol
Table 2 describes the severity levels supported by the system message logs.
Table 27-2 Severity Level Definitions
Severity Level 0emergencies 1alerts 2critical 3errors 4warnings 5notifications 6informational 7debugging
Description System unusable Immediate action required Critical condition Error conditions Warning conditions Normal bug significant condition Informational messages Debugging messages
Description Date and time of the error or event. This information appears only if configured using the set logging timestamp enable command. Indicates the facility to which the message refers (for example, SNMP, SYS, etc.). Single-digit code from 0 to 7 that indicates the severity of the message. Text string that uniquely describes the error message. Text string containing detailed information about the event being reported.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
27-3
This example shows typical switch system messages (at system startup):
1999 1999 1999 1999 1999 1999 1999 Apr Apr Apr Apr Apr Apr Apr 16 16 16 16 16 16 16 10:01:26 10:01:26 10:01:26 10:01:47 10:01:42 10:02:27 10:02:28 %MLS-5-MLSENABLED:IP Multilayer switching is enabled %MLS-5-NDEDISABLED:Netflow Data Export disabled %SYS-5-MOD_OK:Module 1 is online %SYS-5-MOD_OK:Module 3 is online %SYS-5-MOD_OK:Module 6 is online %PAGP-5-PORTTOSTP:Port 3/1 joined bridge port 3/1 %PAGP-5-PORTTOSTP:Port 3/2 joined bridge port 3/2
Configuration Parameter System message logging to the console System message logging to Telnet sessions Logging buffer size Logging history size Timestamp option Logging server Syslog server IP address Server facility Server severity Facility/severity level for system messages
Default Setting Enabled Enabled 500 (default and maximum setting) 1 Enabled Disabled None configured LOCAL7 Warnings (4) sys/5 dtp/5 pagp/5 mgmt/5 mls/5 cdp/4 udld/4 all other facilities/2
Enabling and Disabling Session Logging Settings, page 27-v Setting the System Message Logging Levels, page 27-vi Enabling and Disabling the Logging Time Stamp Enable State, page 27-vi Setting the Logging Buffer Size, page 27-vi Configuring the syslog Daemon on a UNIX syslog Server, page 27-vii
27-4
78-13315-02
Chapter 27
Configuring syslog Servers, page 27-vii Displaying the Logging Configuration, page 27-ix Displaying System Messages, page 27-x
Note
If you enter the set logging session command while connected through the console port, the command has the same effect as entering the set logging console command. However, if you enter the set logging console command while connected through a Telnet session, the default console logging enable state is changed. To enable or disable the logging state for console sessions, perform this task in privileged mode: Task Command set logging console {enable | disable} show logging [noalias]
Step 1 Step 2
Enable or disable the default logging state for console sessions. Verify the logging configuration.
This example shows how to disable logging to the current and future console sessions:
Console> (enable) set logging console disable System logging messages will not be sent to the console. Console> (enable)
To enable or disable the logging state for the current Telnet session, perform this task in privileged mode: Task
Step 1 Step 2
Enable or disable the logging state for a Telnet session. Verify the logging configuration.
This example shows how to disable logging to the current Telnet session:
Console> (enable) set logging session disable System logging messages will not be sent to the current login session. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
27-5
Verify the system message logging configuration. show logging [noalias] This example shows how to set the logging severity level to 5 for all facilities (for the current session only):
Console> (enable) set logging level all 5 All system logging facilities for this session set to severity 5(notifications) Console> (enable)
This example shows how to set the default logging severity level to 3 for the cdp facility:
Console> (enable) set logging level cdp 3 default System logging facility <cdp> set to severity 3(errors) Console> (enable)
Enable or disable the logging time stamp state. Verify the logging time stamp state.
This example shows how to enable the time stamp display on system logging messages:
Console> (enable) set logging timestamp enable System logging messages timestamp will be enabled. Console> (enable)
Command
Set the number of messages to log to the logging set logging buffer buffer_size buffer. Verify the system message logging configuration. show logging [noalias]
27-6
78-13315-02
Chapter 27
This example shows how to set the logging buffer size to 200 messages:
Console> (enable) set logging buffer 200 System logging buffer size set to <200> Console> (enable)
Note
There must be five tab characters between user.debug and /var/log/myfile.log. Refer to entries in the /etc/syslog.conf file for further examples.
The switch sends messages according to specified facility types and severity levels. The user keyword specifies the UNIX logging facility used. The messages from the switch are generated by user processes. The debug keyword specifies the severity level of the condition being logged. You can set UNIX systems to receive all messages from the switch.
Step 2
Create the log file by entering these commands at the UNIX shell prompt:
$ touch /var/log/myfile.log $ chmod 666 /var/log/myfile.log
Step 3
Make sure that the syslog daemon reads the new changes by entering this command:
$ kill -HUP `cat /etc/syslog.pid
Before you can send system log messages to a UNIX syslog server, you must configure the syslog daemon on the UNIX server as described in the Configuring the syslog Daemon on a UNIX syslog Server section on page 27-vii. To configure the switch to log messages to a syslog server, perform this task in privileged mode: Task Command set logging server ip_addr set logging server facility server_facility_parameter set logging server severity server_severity_level
Step 1 Step 2
Specify the IP address of one or more syslog servers1. Set the facility and severity levels for syslog server messages.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
27-7
Task
Step 3 Step 4
Enable system message logging to configured syslog servers. Verify the configuration.
1. You can configure a maximum of three syslog servers.
This example shows how to specify a syslog server, set the facility and severity levels, and enable logging to the server:
Console> (enable) set logging server 10.10.10.100 10.10.10.100 added to System logging server table. Console> (enable) set logging server facility local5 System logging server facility set to <local5> Console> (enable) set logging server severity 5 System logging server severity set to <5> Console> (enable) set logging server enable System logging messages will be sent to the configured syslog servers. Console> (enable)
To delete a syslog server from the syslog server table, perform this task in privileged mode: Task Delete a syslog server from the syslog server table. Command clear logging server ip_addr
This example shows how to delete a syslog server from the syslog server table:
Console> (enable) clear logging server 10.10.10.100 System logging server 10.10.10.100 removed from system logging server table. Console> (enable)
To disable logging to the syslog server, perform this task in privileged mode: Task Disable system message logging to configured syslog servers. Command set logging server disable
27-8
78-13315-02
Chapter 27
This example shows how to display the current system message logging configuration:
Console> (enable) show logging Logging buffered size: 500 timestamp option: enabled Logging history size: 1 Logging console: enabled Logging server: disabled server facility: LOCAL7 server severity: warnings(4 Current Logging Session: enabled
Facility ------------acl cdp cops dtp dvlan earl filesys gvrp ip kernel ld mcast mgmt mls pagp protfilt pruning privatevlan qos radius rsvp security snmp spantree sys tac tcp telnet tftp udld vmps vtp
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
27-9
2(critical) 5(notifications)
Display the last number_of_messages messages in show logging buffer -[number_of_messages] the buffer. This example shows how to display the first five messages in the buffer:
Console> 1999 Apr 1999 Apr 1999 Apr 1999 Apr 1999 Apr (enable) show logging buffer 5 16 08:40:11 %SYS-5-MOD_OK:Module 1 16 08:40:14 %SYS-5-MOD_OK:Module 3 16 08:40:14 %SYS-5-MOD_OK:Module 2 16 08:41:15 %PAGP-5-PORTTOSTP:Port 16 08:41:15 %PAGP-5-PORTTOSTP:Port is online is online is online 2/1 joined bridge port 2/1 2/2 joined bridge port 2/2
This example shows how to display the last five messages in the buffer:
Console> (enable) show logging buffer -5 %PAGP-5-PORTFROMSTP:Port 3/1 left bridge port 3/1 %SPANTREE-5-PORTDEL_SUCCESS:3/2 deleted from vlan 1 (PAgP_Group_Rx) %PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/2 %PAGP-5-PORTTOSTP:Port 3/1 joined bridge port 3/1-2 %PAGP-5-PORTTOSTP:Port 3/2 joined bridge port 3/1-2 Console> (enable)
27-10
78-13315-02
C H A P T E R
28
Configuring DNS
This chapter describes how to configure the Domain Name System (DNS) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How DNS Works, page 28-i DNS Default Configuration, page 28-i Configuring DNS, page 28-ii
Feature DNS enable state DNS default domain name DNS servers
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
28-1
Configuring DNS
Configuring DNS
These sections describe how to configure DNS:
Setting Up and Enabling DNS, page 28-ii Clearing a DNS Server, page 28-iii Clearing the DNS Domain Name, page 28-iii Disabling DNS, page 28-iii
Command set ip dns server ip_addr [primary] set ip dns domain name set ip dns enable show ip dns [noalias]
Specify the IP address of one or more DNS servers. Set the domain name. Enable DNS. Verify the DNS configuration.
This example shows how to set up and enable DNS on the switch and verify the configuration:
Console> (enable) set ip dns server 10.2.2.1 10.2.2.1 added to DNS server table as primary server. Console> (enable) set ip dns server 10.2.24.54 primary 10.2.24.54 added to DNS server table as primary server. Console> (enable) set ip dns server 10.12.12.24 10.12.12.24 added to DNS server table as backup server. Console> (enable) set ip dns domain corp.com Default DNS domain name set to corp.com Console> (enable) set ip dns enable DNS is enabled Console> (enable) show ip dns DNS is currently enabled. The default DNS domain name is: corp.com DNS name server ---------------------------------------dns_serv2 dns_serv1 dns_serv3 Console> (enable) status ------primary
28-2
78-13315-02
Chapter 28
Remove one or all of the DNS servers from the table. Verify the DNS configuration.
This example shows how to clear a DNS server from the DNS server table:
Console> (enable) clear ip dns server 10.12.12.24 10.12.12.24 cleared from DNS table Console> (enable)
This example shows how to clear all of the DNS servers from the DNS server table:
Console> (enable) clear ip dns server all All DNS servers cleared Console> (enable)
Clear the default DNS domain name. Verify the DNS configuration.
This example shows how to clear the default DNS domain name:
Console> (enable) clear ip dns domain Default DNS domain name cleared. Console> (enable)
Disabling DNS
To disable DNS, perform this task in privileged mode: Task
Step 1 Step 2
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
28-3
Configuring DNS
28-4
78-13315-02
C H A P T E R
29
Configuring CDP
This chapter describes how to configure the Cisco Discovery Protocol (CDP) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How CDP Works, page 29-i Default CDP Configuration, page 29-ii Configuring CDP, page 29-ii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
29-1
Configuring CDP
Feature CDP global enable state CDP port enable state CDP message interval CDP holdtime
Configuring CDP
These sections describe how to configure CDP:
Setting the CDP Global Enable and Disable States, page 29-ii Setting the CDP Enable and Disable States on a Port, page 29-iii Setting the CDP Message Interval, page 29-iv Setting the CDP Holdtime, page 29-iv Displaying CDP Neighbor Information, page 29-v
Set the CDP global enable state on the switch. Verify the CDP configuration.
This example shows how to enable CDP globally and verify the configuration:
Console> (enable) set cdp enable CDP enabled globally Console> (enable) show cdp CDP : enabled Message Interval : 60 Hold Time : 180 Console> (enable)
This example shows how to disable CDP globally and verify the configuration:
Console> (enable) set cdp disable CDP disabled globally Console> (enable) show cdp CDP : disabled Message Interval : 60 Hold Time : 180 Console> (enable)
29-2
78-13315-02
Chapter 29
Command set cdp {enable | disable} [mod/port] show cdp port [mod[/port]]
Set the CDP enable state on individual ports. Verify the CDP configuration.
This example shows how to enable CDP on ports 3/1-2 and verify the configuration:
Console> (enable) set cdp enable 3/1-2 CDP enabled on ports 3/1-2. Console> (enable) show cdp port 3 CDP : enabled Message Interval : 60 Hold Time : 180 Port CDP Status -------- ---------3/1 enabled 3/2 enabled 3/3 disabled 3/4 disabled 3/5 disabled 3/6 disabled 3/7 enabled 3/8 enabled 3/9 enabled 3/10 enabled 3/11 enabled 3/12 enabled Console> (enable)
This example shows how to disable CDP on ports 3/1-6 and verify the configuration:
Console> (enable) set cdp disable 3/1-6 CDP disabled on ports 3/1-6. Console> (enable) show cdp port 3 CDP : enabled Message Interval : 60 Hold Time : 180 Port CDP Status -------- ---------3/1 disabled 3/2 disabled 3/3 disabled 3/4 disabled 3/5 disabled 3/6 disabled 3/7 enabled 3/8 enabled 3/9 enabled 3/10 enabled 3/11 enabled 3/12 enabled Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
29-3
Configuring CDP
Set the default CDP message interval. The allowed range is 5900 seconds. Verify the CDP configuration.
This example shows how to set the default CDP message interval to 100 seconds and verify the configuration:
Console> (enable) set cdp interval 100 CDP message interval set to 100 seconds for all ports. Console> (enable) show cdp CDP : enabled Message Interval : 100 Hold Time : 180 Console> (enable)
Command
Set the default CDP holdtime. The allowed range set cdp holdtime interval is 10255 seconds. Verify the CDP configuration. show cdp
This example shows how to set the default CDP holdtime to 225 seconds and verify the configuration:
Console> (enable) set cdp holdtime 225 CDP holdtime set to 225 seconds. Console> (enable) show cdp CDP : enabled Message Interval : 100 Hold Time : 225 Console> (enable)
29-4
78-13315-02
Chapter 29
Note
If you enter the show cdp neighbors command for a device that supports earlier versions of CDP, unknown is displayed in the following fields: VTP Management Domain, Native VLAN, and Duplex. To display information about directly connected Cisco devices, perform this task: Task Display information about CDP neighbors. Command show cdp neighbors [mod[/port]] [vlan | duplex | capabilities | detail]
This example shows how to display CDP neighbor information for connected Cisco devices:
Console> (enable) show cdp neighbors * - indicates vlan mismatch. # - indicates duplex mismatch. Port Device-ID -------- ------------------------------2/3 JAB023807H1(2948) 3/1 JAB023806JR(4003) 3/2 JAB023806JR(4003) 3/5 JAB023806JR(4003) 3/6 JAB023806JR(4003) Console> (enable)
This example shows how to display the native VLAN for each port connected on the neighboring device (there is a native VLAN mismatch between port 3/6 on the local switch and port 2/6 on the neighboring device, as indicated by the asterisk [*]):
Console> (enable) show cdp neighbors vlan * - indicates vlan mismatch. # - indicates duplex mismatch. Port Device-ID Port-ID -------- ------------------------------- ------------------------2/3 JAB023807H1(2948) 2/2 3/1 JAB023806JR(4003) 2/1 3/2 JAB023806JR(4003) 2/2 3/5 JAB023806JR(4003) 2/5 3/6 JAB023806JR(4003) 2/6* Console> (enable)
This example shows how to display detailed information about the neighboring device:
Console> (enable) show cdp neighbors 2/3 detail Port (Our Port): 2/3 Device-ID: JAB023807H1(2948) Device Addresses: IP Address: 172.20.52.36 Holdtime: 132 sec Capabilities: TRANSPARENT_BRIDGE SWITCH
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
29-5
Configuring CDP
Version: WS-C2948 Software, Version McpSW: 5.1(57) NmpSW: 5.1(1) Copyright (c) 1995-1999 by Cisco Systems, Inc. Platform: WS-C2948 Port-ID (Port on Neighbors's Device): 2/2 VTP Management Domain: Lab_Network Native VLAN: 522 Duplex: full Console> (enable)
29-6
78-13315-02
C H A P T E R
30
Configuring UDLD
This chapter describes how to configure the UniDirectional Link Detection (UDLD) protocol on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How UDLD Works, page 30-i Default UDLD Configuration, page 30-ii Configuring UDLD, page 30-iii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
30-1
Configuring UDLD
The switch periodically transmits UDLD messages (packets) to neighbor devices on ports with UDLD enabled. If the messages are echoed back to the sender within a specific time frame and they are lacking a specific acknowledgment (echo), the link is flagged as unidirectional and the port is shut down. Devices on both ends of the link must support UDLD in order for the protocol to successfully identify and disable unidirectional links.
Note
With supervisor engine software release 5.4(3) and later releases, you can specify the message interval between UDLD messages. Previously, the message interval was fixed at 60 seconds. With a configurable message interval, UDLD reacts much faster to link failures.
Note
By default, UDLD is locally disabled on copper ports to avoid sending unnecessary control traffic on this type of media since it is often used for access ports. Figure 1 shows an example of a unidirectional link condition. Switch B successfully receives traffic from Switch A on the port. However, Switch A does not receive traffic from Switch B on the same port. UDLD detects the problem and disables the port.
Figure 30-1 Unidirectional Link
Switch A TX RX
TX
RX
18720
Switch B
Feature UDLD global enable state UDLD per-port enable state for twisted-pair (copper) media UDLD message interval UDLD aggressive mode
Default Value Globally disabled Disabled on all Ethernet 10/100 and 1000BASE-TX ports 15 seconds Disabled
UDLD per-port enable state for fiber-optic media Enabled on all Ethernet fiber-optic ports
30-2
78-13315-02
Chapter 30
Configuring UDLD
These sections describe how to configure UDLD:
Enabling UDLD Globally, page 30-iii Enabling UDLD on Individual Ports, page 30-iii Disabling UDLD on Individual Ports, page 30-iv Disabling UDLD Globally, page 30-iv Specifying the UDLD Message Interval, page 30-iv Enabling UDLD Aggressive Mode, page 30-v Displaying the UDLD Configuration, page 30-v
This example shows how to enable UDLD globally and verify the configuration:
Console> (enable) set udld enable UDLD enabled globally Console> (enable) show udld UDLD : enabled Console> (enable)
This example shows how to enable UDLD on port 4/1 and verify the configuration:
Console> (enable) set udld enable 4/1 UDLD enabled on port 4/1 Console> (enable) show udld port 4/1 UDLD : enabled Message Interval: 15 seconds Port Admin Status Aggressive Mode Link State -------- ------------ --------------- --------4/1 enabled disabled bidirectional Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
30-3
Configuring UDLD
This example shows how to specify the UDLD message interval on the switch:
Console> (enable) set udld interval 20 UDLD message interval set to 20 seconds Console> (enable)
This example shows how to verify the message interval on the switch:
Console> (enable) show udld UDLD : enabled Message Interval : 20 seconds Console> (enable)
30-4
78-13315-02
Chapter 30
One side of a link has a port stuck (both Tx and Rx) One side of a link remains up while the other side of the link has gone down
In these cases, UDLD aggressive mode errdisables one of the ports on the link and stops the blackholing of traffic. Even with aggressive mode disabled, there would have been no risk for a broadcast storm due to a spanning tree loop in this situation, as one port is unable to pass traffic in both directions. Task
Step 1 Step 2
This example shows how to enable UDLD aggressive mode on the switch:
Console> (enable) set udld aggressive-mode enable 4/1 Aggressive UDLD enabled on port 4/1. Console> (enable)
This example shows how to verify that UDLD aggressive mode is enabled on the switch:
Console> (enable) show udld port 4/1 UDLD : enabled Message Interval: 30 seconds Port Admin Status Aggressive Mode Link State -------- ------------ --------------- --------4/1 enabled Enabled bidirectional Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
30-5
Configuring UDLD
To display UDLD configuration for a module or port, perform this task in privileged mode: Task Command
Display the UDLD configuration for a module or show udld port [mod] [mod/port] port. This example shows how to display the UDLD configuration for ports on module 4:
Console> (enable) show udld port 4 UDLD : enabled Message Interval: 15 seconds Port Admin Status Aggressive Mode -------- ------------ --------------4/1 enabled disabled 4/2 enabled disabled 4/3 enabled disabled 4/4 enabled disabled . . Console> (enable)
Field UDLD Message Interval Port Admin Status Aggressive Mode Link State
Description Status of whether UDLD is enabled or disabled. Message interval in seconds. Module and port number(s). Status of whether administration status is enabled or disabled. Status of whether aggressive mode is enabled or disabled. Status of the link: undetermined (detection in progress or UDLD on the neighbors has been disabled), not applicable (UDLD and/or the local port has been manually disabled), shutdown (unidirectional link has been detected and the port err-disabled), or bidirectional (a bidirectional link has been detected since the port is functioning properly in both directions).
30-6
78-13315-02
C H A P T E R
31
Configuring NTP
This chapter describes how to configure the Network Time Protocol (NTP) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How NTP Works, page 31-i NTP Default Configuration, page 31-iii Configuring NTP, page 31-iii
NTP never synchronizes to a machine that is not synchronized itself. NTP compares the time reported by several machines and does not synchronize to a machine whose time is significantly different from the others, even if its stratum is lower.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
31-1
Configuring NTP
The communications between machines running NTP, known as associations, are usually statically configured; each machine is given the IP address of all machines with which it should form associations. Accurate timekeeping is possible by exchanging NTP messages between each pair of machines with an association. However, in a LAN environment, you can configure NTP to use IP broadcast messages. With this alternative, you can configure the machine to send or receive broadcast messages, but the accuracy of timekeeping is marginally reduced because the information flow is one-way only. Ciscos implementation of NTP does not support stratum 1 service; it is not possible to connect to a radio or atomic clock. We recommend that you obtain the time service for your network from the public NTP servers available in the IP Internet. If the network is isolated from the Internet, Ciscos NTP implementation allows a machine to be configured so that it acts as though it is synchronized using NTP, when in fact it has determined the time using other means. Other machines then synchronize to that machine using NTP. A number of manufacturers include NTP software for their host systems, and a publicly available version for systems running UNIX and its various derivatives is also available. This software allows time-synchronized host systems.
Feature Broadcast client mode Client mode Broadcast delay Time zone Offset from UTC Summertime adjustment NTP server Authentication mode
Default Value Disabled Disabled 3000 microseconds Not specified 0 hours Disabled None specified Disabled
Configuring NTP
These sections describe how to configure NTP:
Enabling NTP in Broadcast-Client Mode, page 31-iv Configuring NTP in Client Mode, page 31-iv Configuring Authentication in Client Mode, page 31-v Setting the Time Zone, page 31-vi Enabling the Daylight Saving Time Adjustment, page 31-vi Disabling the Daylight Saving Time Adjustment, page 31-viii Clearing the Time Zone, page 31-viii
31-2
78-13315-02
Chapter 31
Command set ntp broadcastclient enable set ntp broadcast delay microseconds show ntp [noalias]
Enable NTP broadcast-client mode. (Optional) Set the estimated NTP broadcast packet delay. Verify the NTP configuration.
This example shows how to enable NTP broadcast-client mode on the switch, set a broadcast delay of 4000 microseconds, and verify the configuration:
Console> (enable) set ntp broadcastclient enable NTP Broadcast Client mode enabled Console> (enable) set ntp broadcastdelay 4000 NTP Broadcast delay set to 4000 microseconds Console> (enable) show ntp Current time: Tue Jun 23 1998, 20:25:43 Timezone: '', offset from UTC is 0 hours Summertime: '', disabled Last NTP update: Broadcast client mode: enabled Broadcast delay: 4000 microseconds Client mode: disabled NTP-Server ---------------------------------------Console> (enable)
Command set ntp server ip_addr set ntp client enable show ntp [noalias]
Configure the IP address of the NTP server. Enable NTP client mode. Verify the NTP configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
31-3
Configuring NTP
This example shows how to configure the NTP server address, enable NTP client mode on the switch, and verify the configuration:
Console> (enable) set ntp server 172.20.52.65 NTP server 172.20.52.65 added. Console> (enable) set ntp client enable NTP Client mode enabled Console> (enable) show ntp Current time: Tue Jun 23 1998, 20:29:25 Timezone: '', offset from UTC is 0 hours Summertime: '', disabled Last NTP update: Tue Jun 23 1998, 20:29:07 Broadcast client mode: disabled Broadcast delay: 3000 microseconds Client mode: enabled NTP-Server ---------------------------------------172.16.52.65 Console> (enable)
A public key numberA 32-bit integer that can range from 1 to 4294967295 A secret key stringAn arbitrary string of 32 characters, including all printable characters and spaces
To authenticate the message, the client authentication key must match that of the server. Therefore, the authentication key must be securely distributed in advance (that is, the client administrator must get the key pair from the server administrator and configure it on the client). To configure authentication, perform this task in privileged mode: Task
Step 1 Step 2 Step 3 Step 4 Step 5
Command
Configure an authentication key pair for NTP and set ntp key public_key [trusted | untrusted] md5 specify whether the key is trusted or untrusted. secret_key Specify the IP address of the NTP server and the public key. Enable NTP client mode. Enable NTP authentication. Verify the NTP configuration. set ntp server ip_addr [key public_key] set ntp client enable set ntp authentication enable show ntp [noalias]
31-4
78-13315-02
Chapter 31
This example shows how to configure the NTP server address, enable NTP client and authentication modes on the switch, and verify the configuration:
Console> (enable) set ntp server 172.20.52.65 key 879 NTP server 172.20.52.65 with key 879 added. Console> (enable) set ntp client enable NTP Client mode enabled Console> (enable) set ntp authentication enable NTP authentication feature enabled Console> (enable) show ntp Current time: Tue Jun 23 1998, 20:29:25 Timezone: '', offset from UTC is 0 hours Summertime: '', disabled Last NTP update: Tue Jun 23 1998, 20:29:07 Broadcast client mode: disabled Broadcast delay: 3000 microseconds Client mode: enabled Authentication: enabled NTP-Server Server Key ---------------------------------------- ---------172.16.52.65 Key Number ---------Mode --------Key String --------------------------------
Console> (enable)
This example shows how to set the time zone on the switch:
Console> (enable) set timezone Pacific -8 Timezone set to 'Pacific', offset from UTC is -8 hours Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
31-5
Configuring NTP
To enable the daylight saving time clock adjustment following the U.S. rules, perform this task in privileged mode: Task
Step 1
Enable the daylight saving time clock adjustment. set summertime enable [zone_name] Verify the configuration. show summertime
Step 2
This example shows how to set the clock adjusted for Pacific Daylight Time following the U.S. standards:
Console> (enable) set summertime enable PDT Console> (enable) set summertime recurring Summertime is enabled and set to 'PDT' Console> (enable)
To enable the daylight saving time clock adjustment that recurs every year on different days or with a different offset than the U.S. standard, perform this task in privileged mode: Task
Step 1 Step 2
Command
Enable the daylight saving time clock adjustment. set summertime recurring week day month hh:mm week day month hh:mm offset Verify the configuration. show summertime
This example shows how to set the daylight saving time clock adjustment, repeating every year, starting on the third Monday of February at noon and ending on the second Saturday of August at 3:00 p.m. with a 30-minute offset forward in February and back in August:
Console> (enable) set summertime recurring 3 mon feb 3:00 2 saturday aug 15:00 30 Summer time is disabled and set to start: Sun Feb 13 2000, 03:00:00 end: Sat Aug 26 2000, 14:00:00 Offset: 30 minutes Recurring: yes, starting at 3:00am Sunday of the third week of February and ending 14:00pm Saturday of the fourth week of August. Console> (enable)
To enable the daylight saving time clock adjustment to a nonrecurring specific date, perform this task in privileged mode: Task
Step 1 Step 2
Command
Enable the daylight saving time clock adjustment. set summertime date month date year hh:mm month date year hh:mm offset Verify the configuration. show summertime
31-6
78-13315-02
Chapter 31
This example shows how to set the nonrecurring daylight saving time clock adjustment on April 30, 1999 at 11:32, ending on February 1, 2003 at 12:02 a.m., with an offset of 50 minutes:
Console> (enable) set summertime date apr 13 2000 4:30 jan 21 2002 5:30 1440 Summertime is disabled and set to '' Start : Thu Apr 13 2000, 04:30:00 End : Mon Jan 21 2002, 05:30:00 Offset: 1440 minutes (1 day) Recurring: no Console> (enable)
Disable the daylight saving time clock adjustment. Verify the configuration.
This example shows how to disable the daylight saving time adjustment:
Console> (enable) set summertime disable Arizona Summertime is disabled and set to 'Arizona' Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
31-7
Configuring NTP
This example shows how to clear an NTP server address from the NTP server table:
Console> (enable) clear ntp server 172.16.64.10 NTP server 172.16.64.10 removed. Console> (enable)
Disabling NTP
To disable NTP broadcast-client mode on the switch, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to disable NTP client mode on the switch:
Console> (enable) set ntp broadcastclient disable NTP Broadcast Client mode disabled Console> (enable)
To disable NTP client mode on the switch, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to disable NTP client mode on the switch:
Console> (enable) set ntp client disable NTP Client mode disabled Console> (enable)
31-8
78-13315-02
C H A P T E R
32
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Broadcast Suppression Works, page 32-i Configuring Broadcast Suppression, page 32-ii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
32-1
Threshold
T1
T2
T3
T4
T5
Time
The broadcast suppression threshold numbers and the time interval 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 6000 family switches is implemented in hardware. The suppression circuitry monitors packets passing from a port to the switching bus. Using the Individual/Group bit in the packet destination address, the broadcast suppression circuitry determines if the packet is unicast or broadcast. It keeps track of the current count of broadcasts within the one-second time interval, and when a threshold is reached, 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. A threshold value of 100 percent means that no limit is placed on broadcast traffic. Using the set port broadcast command, you can set up the broadcast suppression threshold value. Because packets do not arrive at uniform intervals, the one-second time interval during which broadcast activity is measured can affect the behavior of broadcast suppression. On Gigabit Ethernet ports, you can use the broadcast suppression to filter multicast and unicast traffic. You can suppress multicast or unicast traffic separately on a port; both require that you configure broadcast suppression. When you specify a percentage of the total bandwidth to be used for multicast or unicast traffic, the same limit applies to the broadcast traffic.
Note
Multicast suppression does not drop bridge protocol data unit (BPDU) packets.
Enabling Broadcast Suppression, page 32-iii Disabling Broadcast Suppression, page 32-iv
32-2
S5706
78-13315-02
Chapter 32
Command
Configure the broadcast suppression threshold for set port broadcast mod/port threshold% one or more ports as a percentage of total [multicast {enable | disable}] [unicast {enable | bandwidth. disable}] Verify the broadcast suppression configuration. show port broadcast [mod[/port]]
Step 2
Note
Although you can specify the broadcast suppression threshold to 0.01 percent, not all modules adjust to that level of precision. Most thresholds vary between 0.01 percent and 0.05 percent. If you specify a finer threshold, the threshold percent adjusts as closely as possible. This example shows how to enable bandwidth-based broadcast suppression and verify the configuration:
Console> (enable) set port broadcast 3/1-6 75.25% Port(s) 3/1-24 broadcast traffic limited to 75.25%. Console> (enable) show port broadcast 3 Port Broadcast-Limit -------- --------------3/1 75.25 % 3/2 75.25 % 3/3 75.25 % 3/4 75.25 % 3/5 75.25 % 3/6 75.25 % 3/7 0 % 3/8 0 % 3/90 % 3/10 0 % 3/110 % 3/120 % Broadcast-Drop --------------
This example shows how to limit the multicast and broadcast traffic to 80 percent for port 2 on module 1 and verify the configuration:
Console> (enable) set port broadcast 1/2 80% multicast enable Port 1/2 broadcast and multicast traffic limited to 80.00%. Console> (enable) show port broadcast 1/2 Port Broadcast-Limit Total-Drop Multicast Unicast -------- --------------- -------------------- --------- ------1/2 80.00 % 0 80.00 % Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
32-3
Disable broadcast suppression on one or more clear port broadcast mod/port ports. This example shows how to disable broadcast suppression on one or more ports:
Console> (enable) clear port broadcast 3/1 Port 3/1-8 broadcast traffic unlimited. Console> (enable)
32-4
78-13315-02
C H A P T E R
33
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Layer 3 Protocol Filtering Works, page 33-i Default Layer 3 Protocol Filtering Configuration, page 33-ii Configuring Layer 3 Protocol Filtering, page 33-ii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
33-1
For example, if a host that supports both IP and Internetwork Packet Exchange (IPX) is connected to a switch port configured as auto for IPX, but the host is transmitting only IP traffic, the port to which the host is connected will not forward any IPX flood traffic to the host. However, if the host sends an IPX packet, the supervisor engine software detects the protocol traffic and the port is added to the IPX group, allowing the port to receive IPX flood traffic. If the host stops sending IPX traffic for more than 60 minutes, the port is removed from the IPX protocol group. By default, ports are configured to on for the IP protocol group. Typically, you should only configure a port to auto for IP if there is a directly connected end station out the port. The default port configuration for IPX and Group is auto. With Layer 3 protocol filtering enabled, ports are identified on a protocol basis. A port can be a member of one or more of the protocol groups. Flood traffic for each protocol group is forwarded out a port only if that port belongs to the appropriate protocol group. Packets are classified into the following protocol groups:
IP IPX AppleTalk, DECnet, and Banyan VINES (group mode) Packets not belonging to any of these protocols
Enabling Layer 3 Protocol Filtering, page 33-iii Disabling Layer 3 Protocol Filtering, page 33-iii
33-2
78-13315-02
Chapter 33
Set the protocol membership of the desired ports. set port protocol mod/port {ip | ipx | group} {on | off | auto} Verify the port filtering configuration. show port protocol [mod[/port]]
This example shows how to enable Layer 3 protocol filtering, set the protocol membership of ports, and verify the configuration:
Console> (enable) set protocolfilter enable Protocol filtering enabled on this switch. Console> (enable) set port protocol 7/1-4 ip on IP protocol set to on mode on ports 7/1-4. Console> (enable) set port protocol 7/1-4 ipx off IPX protocol disabled on ports 7/1-4. Console> (enable) set port protocol 7/1-4 group auto Group protocol set to auto mode on ports 7/1-4. Console> (enable) show port protocol 7/1-4 Port Vlan IP IP Hosts IPX IPX Hosts -------- ---------- -------- -------- -------- --------7/1 4 on 1 off 0 7/2 5 on 1 off 0 7/3 2 on 1 off 0 7/4 4 on 1 off 0 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
33-3
33-4
78-13315-02
C H A P T E R
34
Note
The functionality of the IP permit list can also be achieved with VLAN access control lists (VACLs). Because VACLs are handled by hardware (Policy Feature Card [PFC]), VACL processing is considerably faster than IP permit list processing.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How the IP Permit List Works, page 34-i IP Permit List Default Configuration, page 34-ii Configuring the IP Permit List, page 34-ii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
34-1
If you do not specify the mask for an IP permit list entry, or if you enter a host name instead of an IP address, the mask has an implicit value of all bits set to one (255.255.255.255 or 0xffffffff), which matches only the IP address of that host. If you do not specify SNMP or Telnet for the type of permit list for the IP address, the IP address is added to both the SNMP and Telnet permit lists. You can specify the same IP address in more than one entry in the permit list if the masks are different. The mask is applied to the address before it is stored in NVRAM, so that entries that have the same effect (but different addresses) are not stored. When you add such an address to the IP permit list, the system displays the address after the mask is applied.
Feature IP permit list enable state Permit list entries IP syslog message severity level SNMP IP permit trap (ippermit)
Adding IP Addresses to the IP Permit List, page 34-ii Enabling the IP Permit List, page 34-iii Disabling the IP Permit List, page 34-iv Clearing an IP Permit List Entry, page 34-v
Command set ip permit ip_address [mask] [telnet | snmp | ssh] show ip permit
Specify the IP addresses to add to the IP permit list. Verify the IP permit list configuration.
34-2
78-13315-02
Chapter 34
This example shows how to add IP addresses to the IP permit list and verify the configuration:
Console> (enable) set ip permit 172.16.0.0 255.255.0.0 telnet 172.16.0.0 with mask 255.255.0.0 added to telnet permit list. Console> (enable) set ip permit 172.20.52.32 255.255.255.224 snmp 172.20.52.32 with mask 255.255.255.224 added to snmp permit list. Console> (enable) set ip permit 172.20.52.3 all 172.20.52.3 added to IP permit list. Console> (enable) show ip permit Telnet permit list feature enabled. Snmp permit list feature enabled. Permit List Mask Access Type ------------------------------------------172.16.0.0 255.255.0.0 telnet 172.20.52.3 snmp telnet 172.20.52.32 255.255.255.224 snmp Denied IP Address Last Accessed Time Type Telnet Count SNMP Count ---------------------------------- ------ --------------------172.100.101.104 01/20/97,07:45:20 SNMP 14 1430 172.187.206.222 01/21/97,14:23:05 Telnet 7 236 Console> (enable)
Caution
Before enabling the IP permit list, make sure you add the IP address of your workstation or network management system to the permit list, especially when configuring through SNMP. Failure to do so could result in your connection being dropped by the switch you are configuring. We recommend that you disable the IP permit list before clearing IP permit entries or host addresses. To enable the IP permit list on the switch, perform this task in privileged mode: Task Command set ip permit enable [telnet | snmp | ssh] set snmp trap enable ippermit set logging level ip 4 default
Enable the IP permit list. If desired, enable the IP permit trap to generate traps for unauthorized access attempts. If desired, configure the logging level to see syslog messages for unauthorized access attempts. Verify the IP permit list configuration.
Step 4
This example shows how to enable the IP permit list and verify the configuration:
Console> (enable) set ip permit enable IP permit list enabled. Console> (enable) set snmp trap enable ippermit SNMP IP Permit traps enabled. Console> (enable) set logging level ip 4 default System logging facility <ip> set to severity 4(warnings)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
34-3
Console> (enable) show ip permit Telnet permit list feature enabled. Snmp permit list feature disabled. Permit List ---------------172.16.0.0 172.20.52.3 172.20.52.32 Denied IP Address ----------------172.100.101.104 172.187.206.222 Mask --------------255.255.0.0 255.255.255.224 Last Accessed Time -----------------01/20/97,07:45:20 01/21/97,14:23:05 Access-Type --------------telnet snmp telnet snmp Type -----SNMP Telnet Telnet Count -----------14 7 SNMP Count ---------1430 236
Console> (enable) show snmp RMON: Disabled Extended Rmon: Extended RMON module is not present Traps Enabled: ippermit Port Traps Enabled: None Community-Access ---------------read-only read-write read-write-all Community-String -------------------public private secret Trap-Rec-Community --------------------
Disable the IP permit list on the switch. Verify the IP permit list configuration.
Caution
Disable the IP permit list before you clear IP permit entries or host addresses to prevent your connection from being dropped by the switch you are configuring in case you clear your current IP address.
34-4
78-13315-02
Chapter 34
To clear an IP permit list entry, perform this task in privileged mode: Task
Step 1 Step 2 Step 3
Command set ip permit disable [telnet | snmp | ssh] clear ip permit {ip_address [mask] | all} [telnet | snmp | ssh] show ip permit
Disable the IP permit list. Specify the IP address to remove from the IP permit list. Verify the IP permit list configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
34-5
34-6
78-13315-02
C H A P T E R
35
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Port Security Works, page 35-i Port Security Configuration Guidelines, page 35-iii Configuring Port Security, page 35-iii
Allowing Traffic Based on the Host MAC Address, page 35-i Restricting Traffic Based on the Host MAC Address, page 35-ii
1025 (1 + 1024) addresses on 1 port and 1 address each on the rest of the ports. 513 (1 + 512) each on 2 ports in a system and 1 address each on the rest of the ports. 901 (1 + 900) on one port, 101 (1 + 100) on another port, 25 (1 + 24) on the third port, and 1 address each on the rest of the ports.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
35-1
After you allocate the maximum number of MAC addresses on a port, you can either specify the secure MAC address for the port manually or you can have the port dynamically configure the MAC address of the connected devices. Out of an allocated number of maximum MAC addresses on a port, you can manually configure all, allow all to be autoconfigured, or configure some manually and allow the rest to be autoconfigured. Once you manually configure or autoconfigure the addresses, they are stored in NVRAM and maintained after a reset. After you allocate a maximum number of MAC addresses on a port, you can specify how long addresses on the port will remain secure. After the age time expires, the MAC addresses on the port become insecure. By default, all addresses on a port are secured permanently. If a security violation occurs, you can configure the port to go into shutdown mode or restrictive mode. The shutdown mode option allows you to specify whether the port is permanently disabled or disabled for only a specified time. The default is for the port to shut down permanently. The restrictive mode allows you to configure the port to remain enabled during a security violation and drop only packets that are coming in from insecure hosts.
Note
If you configure a secure port in restrictive mode, and a station is connected to the port whose MAC address is already configured as a secure MAC address on another port on the switch, the port in restrictive mode shuts down instead of restricting traffic from that station. For example, if you configure MAC-1 as the secure MAC address on port 2/1 and MAC-2 as the secure MAC address on port 2/2 and then connect the station with MAC-1 to port 2/2 when port 2/2 is configured for restrictive mode, port 2/2 shuts down instead of restricting traffic from MAC-1. When a secure port receives a packet, the source MAC address of the packet is compared to the list of secure source addresses that were manually configured or autoconfigured (learned) on the port. If a MAC address of a device attached to the port differs from the list of secure addresses, the port either shuts down permanently (default mode), shuts down for the time you have specified, or drops incoming packets from the insecure host. The ports behavior depends on how you configure it to respond to a security violation. If a security violation occurs, the Link LED for that port turns orange, and a link-down trap is sent to the Simple Network Management Protocol (SNMP) manager. An SNMP trap is not sent if you configure the port for restrictive violation mode. A trap is sent only if you configure the port to shut down during a security violation.
Note
The set cam filter command allows filtering for unicast addresses only. You cannot filter traffic for multicast addresses with this command.
35-2
78-13315-02
Chapter 35
You cannot configure port security on a trunk port. You cannot enable port security on a SPAN destination port and vice versa. You cannot configure dynamic, static, or permanent CAM entries on a secure port. When you enable port security on a port, any static or dynamic CAM entries associated with the port are cleared; any currently configured permanent CAM entries are treated as secure.
Enabling Port Security, page 35-iii Setting the Maximum Number of Secure MAC Addresses, page 35-iv Setting the Port Security Age Time, page 35-v Clearing MAC Addresses, page 35-v Specifying the Security Violation Action, page 35-vi Setting the Shutdown Timeout, page 35-vi Disabling Port Security, page 35-vii Restricting Traffic Based on a Host MAC Address, page 35-vii Displaying Port Security, page 35-viii
Enable port security on the desired ports. If desired, specify the secure MAC address.
You can add MAC addresses to the list of secure set port security mod/port mac_addr addresses. Verify the configuration. show port [mod[/port]]
This example shows how to enable port security using the learned MAC address on a port and verify the configuration:
Console> (enable) set port security 2/1 enable Port 2/1 port security enabled with the learned mac address. Trunking disabled for Port 2/1 due to Security Mode Console> (enable) show port 2/1 Port Name Status Vlan Level Duplex Speed Type ----- ------------------ ---------- ---------- ------ ------ ----- -----------2/1 connected 522 normal half 100 100BaseTX
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
35-3
Port Security Secure-Src-Addr Last-Src-Addr Shutdown Trap IfIndex ----- -------- ----------------- ----------------- -------- -------- ------2/1 enabled 00-90-2b-03-34-08 00-90-2b-03-34-08 No disabled 1081 Port Broadcast-Limit Broadcast-Drop -------- --------------- -------------2/1 0 Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize ----- ---------- ---------- ---------- ---------- --------2/1 0 0 0 0 0 Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants ----- ---------- ---------- ---------- ---------- --------- --------- --------2/1 0 0 0 0 0 0 0 Last-Time-Cleared -------------------------Fri Jul 10 1998, 17:53:38
This example shows how to enable port security on a port and manually specify the secure MAC address:
Console> Port 2/1 Trunking Console> (enable) set port security 2/1 enable 00-90-2b-03-34-08 port security enabled with 00-90-2b-03-34-08 as the secure mac address disabled for Port 2/1 due to Security Mode (enable)
This example shows how to set the number of MAC addresses to be secured:
Console> (enable) set port security 7/7 maximum 20 Maximum number of secure addresses set to 20 for port 7/7. Console> (enable)
35-4
78-13315-02
Chapter 35
This example shows how to reduce the number of MAC addresses and the list that displays the cleared MAC addresses:
Console> (enable) Maximum number of 00-11-22-33-44-55 00-11-22-33-44-66 Console> (enable) set port security 7/7 maximum 18 secure addresses set to 18 for port 7/7 cleared from secure address list for port 7/7 cleared from secure address list for port 7/7
Set the age time for which addresses on a port will set port security mod/port age time be secured. This example shows how to set the age time on port 7/7:
Console> (enable) set port security 7/7 age 600 Secure address age time set to 600 minutes for port 7/7. Console> (enable)
Note
If the clear command is executed on a MAC address that is in use, that MAC address may be learned and made secure again. We recommend that you disable port security before you clear MAC addresses. To clear all or a particular MAC address from the list of secure MAC addresses, perform this task in privileged mode: Task Command
Clear all or a particular MAC address from the list clear port security mod/port {mac_addr | all} of secure MAC addresses. This example shows how to clear one MAC address from the secure address list on port 7/7:
Console> (enable) clear port security 7/7 00-11-22-33-44-55 00-11-22-33-44-55 cleared from secure address list for port 7/7 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
35-5
This example shows how to clear all MAC addresses from ports 7/5-7:
Console> (enable) clear port security 7/5-7 all All addresses cleared from secure address list for ports 7/5-7 Console> (enable)
ShutdownShuts down the port permanently or for a specified time. Permanent shutdown is the default mode. RestrictiveDrops all packets from insecure hosts but remains enabled.
To specify the security violation action to be taken, perform this task in privileged mode: Task Specify the violation action on a port. Command set port security mod/port violation {shutdown | restrict}
This example shows how to specify that port 7/7 drop all packets from insecure hosts:
Console> (enable) set port security 7/7 violation restrict Port security violation on port 7/7 will cause insecure packets to be dropped. Console> (enable)
Note
If you restrict the number of secure MAC addresses on a port to one and additional hosts attempt to connect to that port, port security blocks these additional hosts from connecting to that port and to any other port in the same VLAN for the duration of the VLAN aging time. By default, the VLAN aging time is five minutes. If a host is blocked from joining a port in the same VLAN as the secured port, allow the VLAN aging time to expire before you attempt to connect the host to the port again.
Note
When the shutdown timeout expires, the port is reenabled and all port security-related configuration is maintained. To set the shutdown timeout, perform this task in privileged mode: Task Set the shutdown timeout on a port. Command set port security mod/port shutdown time
35-6
78-13315-02
Chapter 35
This example shows how to set the shutdown timeout to 600 minutes on port 7/7:
Console> (enable) set port security 7/7 shutdown 600 Secure address shutdown time set to 600 minutes for port 7/7. Console> (enable)
Command set port security mod/port disable show port security [mod/port]
Command set cam static | permanent filter unicast_mac vlan clear cam mac_address vlan show cam static
Restrict traffic destined to or originating from a specific MAC address. Remove the filter. Verify the configuration.
This example shows how to create a filter that restricts traffic for a specific MAC address:
Console> (enable) set cam static filter 00-02-03-04-05-06 1 Filter entry added to CAM table. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
35-7
List of secure MAC addresses for a port Maximum number of secure addresses allowed on a port Total number of secure MAC addresses Age Age left and shutdown timeout left Shutdown/security mode Statistics related to port security
To display port security configuration information and statistics, perform this task in privileged mode: Task
Step 1 Step 2
Command show port security [statistics] mod/port show port security statistics [system] [mod/port]
This example shows how to display port security configuration information and statistics:
Console> (enable) show port security 3/24 Port Security Violation Shutdown-Time Age-Time Max-Addr Trap IfIndex ----- -------- --------- ------------- -------- -------- -------- ------3/24 enabled shutdown 300 60 10 disabled 921 Port Num-Addr Secure-Src-Addr Age-Left Last-Src-Addr Shutdown/Time-Left ----- -------- ----------------- -------- ----------------- -----------------3/24 4 00-e0-4f-ac-b4-00 60 00-e0-4f-ac-b4-00 no 00-11-22-33-44-55 0 00-11-22-33-44-66 0 00-11-22-33-44-77 0 Console> (enable) Port Total-Addrs ----- ----------3/24 4 Console> (enable) Port Total-Addrs ----- ----------3/24 1 Console> (enable) show port security statistics 3/24 Maximum-Addrs ------------10 Maximum-Addrs ------------10
35-8
78-13315-02
Chapter 35
This example shows how to display port security statistics on the system:
Console> (enable) show port security statistics system Module 1: Total ports: 2 Total MAC address(es): 2 Total global address space used (out of 1024): 0 Status: installed Module 3: Module does not support port security feature Module 6: Total ports: 48 Total MAC address(es): 48 Total global address space used (out of 1024): 0 Status: installed Module 7: Total ports: 24 Total MAC address(es): 223 Total global address space used (out of 1024): 199 Status: installed Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
35-9
35-10
78-13315-02
C H A P T E R
36
Configuring SNMP
This chapter describes how to configure the Simple Network Management Protocol (SNMP) on the Catalyst 6000 family switches. This chapter consists of these sections:
SNMP Terminology, page 36-i Understanding SNMP, page 36-iv Understanding How SNMPv1 and SNMPv2c Works, page 36-vi Understanding SNMPv3, page 36-viii Configuring SNMPv1 and SNMPv2c, page 36-xi Configuring SNMPv3, page 36-xii
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication.
SNMP Terminology
Table 1 lists the terms used in SNMP technology.
Table 36-1 SNMP Terminology
Term authentication
Definition The process of ensuring message integrity and protection against message replays, including both data integrity and data origin authentication. One of the SNMP copies involved in network communication is designated the allowed SNMP engine to protect against message replay, delay, and redirection. The security keys used for authenticating and encrypting SNMPv3 packets are generated as a function of the authoritative SNMP engines ID and user passwords. When an SNMP message expects a response (for example, get exact, get next, set request), the receiver of these messages is authoritative. When an SNMP message does not expect a response, the sender is authoritative.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-1
Configuring SNMP
Definition A text string used to authenticate messages between a management station and an SNMPv1 or SNMPv2c engine. A condition or state of data in which a message packet has not been altered or destroyed in an unauthorized manner. The ability to verify the identity of a user that the message is supposedly sent to. This ability protects users against both message capture and replay by a different SNMP engine, and against packets received or sent to a particular user that uses an incorrect password or security level. A method of hiding data from an unauthorized user by scrambling the contents of an SNMP packet. A set of users belonging to a particular security model. A group defines the access rights for all the users belonging to it. Access rights define the SNMP objects that can be read, written to, or created. In addition, the group defines the notifications that a user is allowed to receive. An SNMP entity to which notifications (traps and informs) are to be sent. A view name (not to exceed 64 characters) for each group; the view name defines the list of notifications that can be sent to each user in the group. An encrypted state of the contents of an SNMP packet; in this state the contents are prevented from being disclosed on a network. Encryption is performed with an algorithm called CBC-DES (DES-56). A view name (not to exceed 64 characters) for each group; the view name defines the list of object identifiers (OIDs) that can be read by users belonging to the group. A type of security algorithm performed on each SNMP packet. There are three levels: noauth, auth, and priv. The noauth level authenticates a packet by a string match of the username. The auth level authenticates a packet by using either the HMAC MD5 or SHA algorithms. The priv level authenticates a packet by using either the HMAC MD5 or SHA algorithms and encrypts the packet using the CBC-DES (DES-56) algorithm. The security strategy used by the SNMP agent. Currently, Cisco IOS supports three security models: SNMPv1, SNMPv2c, and SNMPv3. A network management protocol that provides a method to monitor and control network devices, and to manage configurations, statistics collection, performance, and security. Second version of SNMP. This protocol supports centralized and distributed network management strategies and includes improvements in the structure of management information (SMI), protocol operations, management architecture, and security.
encryption group
privacy
read view
security level
security model
Simple Network Management Protocol (SNMP) Simple Network Management Protocol Version 2c (SNMPv2c)
36-2
78-13315-02
Chapter 36
Definition A copy of SNMP that can reside on the local or remote device. Unlike SNMPv1 and SNMPv2c, in SNMPv3 the terms SNMP Agents and SNMP Managers are no longer used. These concepts have been combined and called an SNMP entity. An SNMP entity is made up of an SNMP engine and SNMP applications. A collection of SNMP users that belong to a common SNMP list that defines an access policy, in which object identification numbers (OIDs) are both read-accessible and write-accessible. Users belonging to a particular SNMP group inherit all of these attributes defined by the group. A person for which an SNMP management operation is performed. The user is the person on a remote SNMP engine who receives the inform messages. A mapping between SNMP objects and the access rights available for those objects. An object can have different access rights in each view. Access rights indicate whether the object is accessible by either a community string or a user. A view name (not to exceed 64 characters) for each group; the view name defines the list of object identifiers (OIDs) that can be created or modified by users of the group.
SNMP group
SNMP user
SNMP view
write view
Understanding SNMP
SNMP is an application-layer protocol that facilitates the exchange of management information between network devices. SNMP enables network administrators to manage network performance, find and solve network problems, and plan for network growth. There are three versions of SNMP:
Version 1 (SNMPv1)This is the initial implementation of SNMP. Refer to RFC 1157 for a full description of functionality. See the Understanding How SNMPv1 and SNMPv2c Works section on page 36-vi for more information on SNMPv1. Version 2 (SNMPv2c)The second release of SNMP, described in RFC 1902, has additions and enhancements to data types, counter size, and protocol operations. See the Understanding How SNMPv1 and SNMPv2c Works section on page 36-vi for more information on SNMPv2. Version 3 (SNMPv3)This is the most recent version of SNMP and is fully described in RFC 2571, RFC 2572, RFC 2573, RFC 2574, and RFC 2575. The SNMP functionality on the Catalyst enterprise LAN switches for SNMPv1 and SNMPv2c remain intact; however, SNMPv3 has significant enhancements to administration and security. See the Understanding SNMPv3 section on page 36-viii for more information on SNMPv3.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-3
Configuring SNMP
Model v1 v2c v3 v3
Encryption No No No No
What Happens Uses a community string match for authentication. Uses a community string match for authentication. Uses a username match for authentication. Provides authentication based on the HMAC-MD5 or HMAC-SHA algorithms. 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.
v3
authPriv
MD5 or SHA
DES
36-4
78-13315-02
Chapter 36
Switch reboot High-availability switchover Software upgrade Module reset Module removal and insertion of the same type of module
For Fast EtherChannel and Gigabit EtherChannel interfaces, the ifIndex value is only retained and used after a high-availability switchover.
Managed devices (such as a switch) SNMP agents and MIBs, including Remote Monitoring (RMON) MIBs, which run on managed devices SNMP network management applications, such as CiscoWorks2000, which communicate with agents to get statistics and alerts from the managed devices. See the Using CiscoWorks2000 section on page 36-vii for more information on CiscoWorks2000.
Note
An SNMP management application, together with the computer it runs on, is called a Network ManagementSystem (NMS).
SNMP traps (see the Configuring SNMPv1 and SNMPv2c from the CLI section on page 36-xi) RMON in the supervisor engine module software (see Chapter 37, Configuring RMON) RMON and RMON2 on an external SwitchProbe device
Accessing a MIB variableThis function is initiated by the SNMP agent 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.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-5
Configuring SNMP
Setting a MIB variableThis function is also initiated by the SNMP agent 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.
Note
For more information about MIBs, refer to http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml. SNMP trapThis function is used to notify an NMS that a significant event has occurred at an agent. When a trap condition occurs, the SNMP agent sends an SNMP trap message to any NMSs specified as the trap receivers, under the following conditions:
When a port or module goes up or down When temperature limitations are exceeded When there are spanning tree topology changes When there are authentication failures When power supply errors occur
SNMP community stringsSNMP community strings authenticate access to MIB objects and function as embedded passwords:
Read-onlyGives read access to all objects in the MIB except the community strings, but does
strings
Note
The community string definitions on your NMS must match at least one of the three community string definitions on the switch.
Using CiscoWorks2000
CiscoWorks2000 is a family of Web-based and management platform-independent products for managing Cisco enterprise networks and devices. CiscoWorks2000 includes Resource Manager Essentials and CWSI Campus, which allow you to deploy, configure, monitor, manage, and troubleshoot a switched internetwork. For more information, refer to the following publications:
Getting Started With Resource Manager Essentials Getting Started With CWSI Campus
36-6
78-13315-02
Chapter 36
Understanding SNMPv3
SNMPv3 contains all the functionality of SNMPv1 and SNMPv2c, but SNMPv3 has significant enhancements to administration and security. SNMPv3 is an interoperable standards-based protocol and provides secure access to devices by authenticating and encrypting packets over the network. The security features provided in SNMPv3 are as follows:
Message integrityCollects data securely without being tampered with or corrupted AuthenticationDetermines the message is from a valid source EncryptionScrambles the contents of a packet to prevent it from being seen by an unauthorized source
SNMP Entity
Unlike SNMPv1 and SNMPv2c, in SNMPv3 the concept of SNMP Agents and SNMP Managers no longer apply. These concepts have been combined into an SNMP entity. An SNMP entity consists of an SNMP engine and SNMP applications. An SNMP engine consists of the following four components:
Dispatcher
The dispatcher is a traffic manager that sends and receives messages. After receiving a message, the dispatcher tries to determine the version number of the message and then passes the message to the appropriate message processing model. The dispatcher is also responsible for dispatching PDUs to applications and for selecting the appropriate transports for sending messages.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-7
Configuring SNMP
Transport Mapping
v2c MP Message Dispatcher v3MP Other security model Other access control model
PDU Dispatcher
otherMP
MIB Instrumentation
SNMP Applications
Security Subsystem
The security subsystem authenticates and encrypts messages. Each outgoing message is passed to the security subsystem from the message processing subsystem. Depending on the services required, the security subsystem may encrypt the enclosed PDU and some fields in the message header. In addition, the security subsystem may generate an authentication code and insert it into the message header. After encryption, the message is returned to the message processing subsystem.
36-8
78-13315-02
58568
Chapter 36
Each incoming message is passed to the security subsystem from the message processing subsystem. If required, the security subsystem checks the authentication code and performs decryption. The processed message is returned to the message processing subsystem. An implementation of the security subsystem may support one or more distinct security models. The only currently defined security model is the user-based security model (USM) for SNMPv3, specified in RFC 2274. The USM protects SNMPv3 messages from the following potential security threats:
An authorized user sending a message that gets modified in transit by an unauthorized SNMP entity. An unauthorized user trying to masquerade as an authorized user. A user modifying the message stream. An unauthorized user listening to the message.
The USM currently defines the use of HMAC-MD5-96 and HMAC-SHA-96 as the possible authentication protocols and CBC-DES as the privacy protocol. SNMPv1 and SNMPv2c security models provide only community names for authentication and no privacy.
Applications
SNMPv3 applications refer to internal applications within an SNMP entity. These internal applications can do the following operations:
Generate SNMP messages Respond to received SNMP messages Generate and receive notifications Forward messages between SNMP entities
Command generatorsGenerate SNMP commands to collect or set management data. Command respondersProvide access to management data. For example, processing get, get-next, get-bulk and set pdus are used in a command responder application. Notification originators Initiate Trap or Inform messages. Notification receiversReceive and process Trap or Inform messages. Proxy forwardersForward messages between SNMP entities.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-9
Configuring SNMP
Command set snmp community read-only community_string set snmp community read-write community_string set snmp community read-write-all community_string set snmp trap rcvr_address rcvr_community set snmp trap enable [all | module | chassis | bridge | repeater | auth | vtp | ippermit | vmps | config | entity | stpx] show snmp
Step 2 Step 3
Assign a trap receiver and community. You can specify up to ten trap receivers. Specify the SNMP traps to send to the trap receiver. Verify the SNMP configuration.
Step 4
This example shows how to define community strings, assign a trap receiver, and specify which traps to send to the trap receiver:
Console> (enable) set snmp community read-only Everyone SNMP read-only community string set to 'Everyone'. Console> (enable) set snmp community read-write Administrators SNMP read-write community string set to 'Administrators'. Console> (enable) set snmp community read-write-all Root SNMP read-write-all community string set to 'Root'. Console> (enable) set snmp trap 172.16.10.10 read-write SNMP trap receiver added.
36-10
78-13315-02
Chapter 36
Console> (enable) set snmp trap 172.16.10.20 read-write-all SNMP trap receiver added. Console> (enable) set snmp trap enable all All SNMP traps enabled. Console> (enable) show snmp RMON: Disabled Extended RMON: Extended RMON module is not present Traps Enabled: Port,Module,Chassis,Bridge,Repeater,Vtp,Auth,ippermit,Vmps,config,entity,stpx Port Traps Enabled: 1/1-2,4/1-48,5/1 Community-Access Community-String ----------------------------------read-only Everyone read-write Administrators read-write-all Root Trap-Rec-Address Trap-Rec-Community ----------------------------------------------------------172.16.10.10 read-write 172.16.10.20 read-write-all Console> (enable)
Note
To disable access for an SNMP community, set the community string for that community to the null string (do not enter a value for the community string).
Configuring SNMPv3
This section provides basic SNMPv3 configuration information. For detailed information on the SNMP commands supported by the Catalyst 6000 family switches, refer to the Catalyst 6000 Family Command Reference publication.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-11
Configuring SNMP
Command set snmp engineid engineid set snmp view [-hex] {viewname} {subtree} [mask] [included | excluded] [volatile | nonvolatile] set snmp access [-hex] {groupname} {security-model v3} {noauthentication | authentication | privacy} [read [-hex] {readview}] [write [-hex] {writeview}] [notify [-hex] {notifyview}] [context [-hex] {contextname} [exact | prefix]] [volatile | nonvolatile] set snmp notify [-hex] {notifyname} tag [-hex] {notifytag} [trap | inform] [volatile | nonvolatile] set snmp targetaddr [-hex] {addrname} param [-hex] {paramsname} {ipaddr} [udpport {port}] [timeout {value}] [retries {value}] [volatile | nonvolatile] [taglist {[-hex] tag} [[-hex] tag]]
Set the SNMP-Server EngineID name for the local SNMP engine. Configure the MIB views. Set the access rights for a group with a certain security model in different security levels.
Step 4 Step 5
Specify the target addresses for notifications. Set the snmpTargetAddrEntry in the target address table.
Step 6
Set the SNMP parameters used to set snmp targetparams [-hex] {paramsname} user [-hex] generate a message to a target. {username} {security-model v3} {message-processing v3} {noauthentication | authentication | privacy} [volatile | nonvolatile] Configure a new user. set snmp user [-hex] {username} [remote {engineid}] [{authentication [md5 | sha] {authpassword}] [privacy {privpassword}] [volatile | nonvolatile] set snmp group [-hex] {groupname} user [-hex] {username} {security-model v1 | v2 | v3} [volatile | nonvolatile]
Step 7
Step 8 Step 9
Configure the community table for set snmp community {read-only | read-write | read-write-all} [community_string] the system default part, which maps community strings of previous versions of SNMP to SNMPv3. Configure the community table for mappings between different community strings and security models with full permissions. Verify the SNMP configuration. set snmp community index {index_name} name [community_string] security {security_name} context {context_name} transporttag {tag_value} [volatile | nonvolatile] show snmp
Step 10
Step 11
36-12
78-13315-02
Chapter 36
This example shows how to set the access rights for a group called guestgroup to SNMPv3 authentication read mode:
Console> (enable) set snmp access guestgroup security-model v3 authentication read interfacesMibView Snmp access group was set to guestgroup version v3 level authentication, readview interfacesMibView, context match:exact, nonvolatile.
These examples show how to set the snmpTargetAddrEntry in the target address table:
Console> (enable) set snmp targetaddr router_1 param p1 172.20.21.1 Snmp targetaddr name was set to router_1 with param p1 ipAddr 172.20.21.1, udpport 162, timeout 1500, retries 3, storageType nonvolatile. Console> (enable) set snmp targetaddr router_2 param p2 172.20.30.1 Snmp targetaddr name was set to router_2 with param p2 ipAddr 172.20.30.1, udpport 162, timeout 1500, retries 3, storageType nonvolatile.
These examples show how to set guestuser1 and guestuser2 as members of the groups guestgroup and mygroup:
Console> (enable) set snmp group guestgroup user guestuser1 security-model v3 Snmp group was set to guestgroup user guestuser1 and version v3, nonvolatile. Console> (enable) set snmp group mygroup user guestuser1 security-model v3 Snmp group was set to mygroup user guestuser1 and version v3, nonvolatile. Console> (enable) set snmp group mygroup user guestuser2 security-model v3 Snmp group was set to mygroup user guestuser2 and version v3, nonvolatile.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
36-13
Configuring SNMP
This example shows how to verify the SNMPv3 setup for guestuser1 from a workstation:
workstation% getnext -v3 10.6.4.201 guestuser1 ifDescr.0 Enter Authentication password :guestuser1password Enter Privacy password :privacypasswd1 ifDescr.1 = sc0
This example shows how to verify the SNMPv3 setup for guestgroup in the snmpEngineID MIB from a workstation:
workstation% getnext -v3 10.6.4.201 guestuser1 snmpEngineID Enter Authentication password :guestuser1pasword Enter Privacy password :privacypasswd1 snmpEngineID = END_OF_MIB_VIEW_EXCEPTION
This example shows how to verify the SNMPv2c setup for public access from a workstation:
workstation% getnext -v2c 10.6.4.201 public snmpEngineID snmpEngineID.0 = 00 00 00 09 00 10 7b f2 82 00 00 00
These examples show how to increase guestgroups access right to read privileges for snmpEngineMibView:
Console> (enable) set snmp view snmpEngineMibView 1.3.6.1.6.3.10.2.1 included Snmp view name was set to snmpEngineMibView with subtree 1.3.6.1.6.3.10.2.1 included, nonvolatile Console> (enable) set snmp access guestgroup security-model v3 authentication read snmpEngineMibView Snmp access group was set to guestgroup version v3 level authentication, readview snmpEngineMibView, nonvolatile.
This example shows how to verify the SNMPv3 access for guestuser1 from a workstation:
workstation% getnext -v3 10.6.4.201 guestuser1 snmpEngineID Enter Authentication password :guestuser1password Enter Privacy password :privacypasswd1 snmpEngineID.0 = 00 00 00 09 00 10 7b f2 82 00 00 00
This example shows how to verify that the access for guestuser1 has been removed from a workstation:
workstation% getnext -v3 10.6.4.201 guestuser1 ifDescr.1 Enter Authentication password :guestuser1password Enter Privacy password :privacypasswd1 Error code set in packet - AUTHORIZATION_ERROR:1.
This example shows how to verify the access for guestuser2 from a workstation:
workstation% getnext -v3 10.6.4.201 guestuser2 ifDescr.1 Enter Authentication password :guestuser2password Enter Privacy password :privacypasswd2 REPORT received, cannot recover: usmStatsUnsupportedSecLevels.0 = 1
36-14
78-13315-02
C H A P T E R
37
Configuring RMON
This chapter describes how to configure RMON on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How RMON Works, page 37-i Enabling RMON, page 37-ii Viewing RMON Data, page 37-ii Supported RMON and RMON2 MIB Objects, page 37-ii
switch ports (uses 140 bytes of supervisor engine RAM per port)
History (RMON group 2) for Ethernet, Fast Ethernet, Fast EtherChannel, and Gigabit Ethernet
switch ports (uses 3 KB of supervisor engine RAM for the first 50 buckets; each additional bucket uses another 56 bytes)
Alarm (RMON group 3; each alarm configured uses 1.3 KB of supervisor engine RAM) Event (RMON group 9; each event configured uses 1.3 KB of supervisor engine RAM)
The embedded RMON agent allows the switch to monitor network traffic from all ports simultaneously at Layer 2 without requiring a dedicated monitoring probe or network analyzer.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
37-1
Configuring RMON
Enabling RMON
Note
RMON is disabled by default. To enable RMON, perform this task in privileged mode: Task Command set snmp rmon enable show snmp
Step 1 Step 2
This example shows how to enable RMON on the switch and how to verify that RMON is enabled:
Console> (enable) set snmp rmon enable SNMP RMON support enabled. Console> (enable) show snmp RMON: Enabled Extended RMON: Extended RMON module is not present Traps Enabled: Port,Module,Chassis,Bridge,Repeater,Vtp,Auth,ippermit,Vmps,config,entity,stpx Port Traps Enabled: 1/1-2,4/1-48,5/1 Community-Access Community-String ----------------------------------read-only Everyone read-write Administrators read-write-all Root Trap-Rec-Address Trap-Rec-Community ----------------------------------------------------------172.16.10.10 read-write 172.16.10.20 read-write-all Console> (enable)
Object Identifier (OID) and Description ...mib-2(1).rmon(16).statistics(1).etherStatsTable(1) Counters for packets, octets, broadcasts, errors, etc. ...mib-2(1).rmon(16).history(2).historyControlTable(1) ...mib-2(1).rmon(16).history(2).etherHistoryTable(2)
Source RFC 1757 (RMON-MIB) RFC 1757 (RMON-MIB) RFC 1757 (RMON-MIB)
37-2
78-13315-02
Chapter 37
Object Identifier (OID) and Description Periodically samples and saves statistics group counters for later retrieval. ...mib-2(1).rmon(16).alarm(3) ...mib-2(1).rmon(16).event(9) ...mib-2(1).rmon(16).usrHistory(18) ...mib-2(1).rmon(16).probeConfig(19) Displays a list of agent capabilities and configurations.
Source RFC 1757 (RMON-MIB) RFC 1757 (RMON-MIB) RFC 2021 (RMON2-MIB) RFC 2021 (RMON2-MIB)
A threshold that can be set on critical RMON variables for network management. Generates SNMP traps when an Alarms group threshold is exceeded and logs the events. Extends history beyond RMON1 link-layer statistics to include any RMON, RMON2, MIB-I, or MIB-II statistic.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
37-3
Configuring RMON
37-4
78-13315-02
C H A P T E R
38
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How SPAN and RSPAN Works, page 38-i SPAN and RSPAN Session Limits, page 38-iv Configuring SPAN, page 38-v Configuring RSPAN, page 38-ix
Note
To configure SPAN or RSPAN from a network management station (NMS), refer to the NMS documentation (see the Using CiscoWorks2000 section on page 38-6).
SPAN Session, page 38-ii Destination Port, page 38-ii Source Port, page 38-ii Ingress SPAN, page 38-iii Egress SPAN, page 38-iii VSPAN, page 38-iii Trunk VLAN Filtering, page 38-iv SPAN Traffic, page 38-iv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-1
SPAN Session
A SPAN session is an association of a destination port with a set of source ports, configured with parameters that specify the monitored network traffic. You can configure multiple SPAN sessions in a switched network. SPAN sessions do not interfere with the normal operation of the switches. You can enable or disable SPAN sessions with command-line interface (CLI) or SNMP commands. When enabled, a SPAN session might become active or inactive based on various events or actions, and this would be indicated by a syslog message. The Status field in the show span and show rspan commands displays the operational status of a SPAN or RSPAN session. A SPAN or RSPAN destination session remains inactive after system power up until the destination port is operational. An RSPAN source session remains inactive until any of the source ports are operational or the RSPAN VLAN becomes active.
Destination Port
A destination port (also called a monitor port) is a switch port where SPAN sends packets for analysis. After a port becomes an active destination port, it does not forward any traffic except that required for the SPAN session. By default, an active destination port disables incoming traffic (from the network to the switching bus), unless you specifically enable the port. If incoming traffic is enabled for the destination port, it is switched in the native VLAN of the destination port. The destination port does not participate in spanning tree while the SPAN session is active. See the caution statement in the Configuring SPAN from the CLI section on page 38-vi for information on how to prevent loops in your network topology. Only one destination port is allowed per SPAN session, and the same port cannot be a destination port for multiple SPAN sessions. A switch port configured as a destination port cannot be configured as a source port. EtherChannel ports cannot be SPAN destination ports. If the trunking mode of a SPAN destination port is on or nonegotiate during SPAN session configuration, the SPAN packets forwarded by the destination port have the encapsulation as specified by the trunk type; however, the destination port stops trunking, and the show trunk command reflects the trunking status for the port prior to SPAN session configuration.
Source Port
A source port is a switch port monitored for network traffic analysis. The traffic through the source ports can be categorized as ingress, egress, or both. You can monitor one or more source ports in a single SPAN session with user-specified traffic types (ingress, egress, or both) applicable for all the source ports. You can configure source ports in any VLAN. You can configure VLANs as source ports (src_vlans), which means that all ports in the specified VLANs are source ports for the SPAN session. Source ports are administrative (Admin Source) or operational (Oper Source) or both. Administrative source ports are the source ports or source VLANs specified during SPAN session configuration. Operational source ports are the source ports monitored by the destination port. For example, when source VLANs are used as the administrative source, the operational source is all the ports in all the specified VLANs. The operational sources are always active ports. If a port is not in the spanning tree, it is not an operational source. All physical ports in an EtherChannel source are included in operational sources if the logical port is included in the spanning tree.
38-2
78-13315-02
Chapter 38
Configuring SPAN and RSPAN Understanding How SPAN and RSPAN Works
The destination port, if it belongs to any of the administrative source VLANs, is excluded from the operational source. You can configure a port as a source port in multiple active SPAN sessions, but you cannot configure an active source port as a destination port for any SPAN session. If a SPAN session is inactive, the oper source field is not updated until the session becomes active. Trunk ports can be configured as source ports and can be mixed with nontrunk source ports; however, the encapsulation of the packets forwarded by the destination port are determined by the trunk settings of the destination port during SPAN session configuration.
Ingress SPAN
Ingress SPAN copies network traffic received by the source ports for analysis at the destination port.
Egress SPAN
Egress SPAN copies network traffic transmitted from the source ports for analysis at the destination port.
VSPAN
VLAN-based SPAN (VSPAN) is analysis of the network traffic in one or more VLANs. You can configure VSPAN as ingress SPAN, egress SPAN, or both. All the ports in the source VLANs become operational source ports for the VSPAN session. The destination port, if it belongs to any of the administrative source VLANs, is excluded from the operational source. If you add or remove ports from the administrative source VLANs, the operational sources are modified accordingly. Use the following guidelines for VSPAN sessions:
Trunk ports are included as source ports for VSPAN sessions, but only the VLANs that are in the Admin source list are monitored, provided these VLANs are active for the trunk. For VSPAN sessions with both ingress and egress SPAN configured, the system operates as follows based upon the type of supervisor engine you have:
WS-X6K-SUP1A-PFC, WS-X6K-SUP1A-MSFC, WS-X6K-SUP1A-MSFC2,
WS-X6K-SUP2-PFC2, WS-X6K-SUP2-MSFC2Two packets are forwarded by the SPAN destination port if the packets get switched on the same VLAN.
WS-X6K-SUP1-2GE, WS-X6K-SUP1A-2GEOnly one packet is forwarded by the SPAN
destination port.
An inband port is not included as Oper source for VSPAN sessions. When a VLAN is cleared, it is removed from the source list for VSPAN sessions. A VSPAN session is disabled if the Admin source VLANs list is empty. Inactive VLANs are not allowed for VSPAN configuration. A VSPAN session is made inactive if any of the source VLANs become RSPAN VLANs.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-3
SPAN Traffic
All network traffic, including multicast and bridge protocol data unit (BPDU) packets, can be monitored using SPAN (RSPAN does not support monitoring of BPDU packets). Multicast packet monitoring is enabled by default. In some SPAN configurations, multiple copies of the same source packet are sent to the SPAN destination port. For example, a bidirectional (both ingress and egress) SPAN session is configured for sources a1 and a2 to a destination port d1. If a packet enters the switch through a1 and gets switched to a2, both incoming and outgoing packets are sent to destination port d1; both packets would be the same (if a Layer-3 rewrite occurs, the packets are different). Similarly, for RSPAN sessions with sources distributed in multiple switches, the destination ports might forward multiple copies of the same packet.
SPAN/RSPAN Sessions rx or both SPAN sessions tx SPAN sessions tx, rx, or both RSPAN source sessions RSPAN destinations Total SPAN sessions
1. When an RSPAN source session is configured, it will reduce the limit for rx or both SPAN sessions by one. 2. 2 rx or both SPAN sessions + 4 tx SPAN sessions + 24 RSPAN destination sessions = 30 total SPAN sessions.
38-4
78-13315-02
Chapter 38
Configuring SPAN
These sections describe how to configure SPAN:
SPAN Hardware Requirements, page 38-v Understanding How SPAN Works, page 38-v SPAN Configuration Guidelines, page 38-vi Configuring SPAN from the CLI, page 38-vi
E5 E4 E2 E1 E3
E6 E7
E8 E9
Network analyzer
For SPAN configuration, the source ports and the destination port must be on the same switch. SPAN does not affect the switching of network traffic on source ports; a copy of the packets received or transmitted by the source ports are sent to the destination port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
S6884
38-5
Use a network analyzer to monitor ports. For SPAN source ports, SPAN is not supported with ATM ports; it works with Ethernet 10/100/1000-Mbps ports and 10-Gbps ports. When enabled, SPAN uses any previously entered configuration; if you have not entered any configuration commands, SPAN uses default parameters. If you specify multiple SPAN source ports, the ports can belong to different VLANs. See the SPAN and RSPAN Session Limits section on page 38-iv. RSPAN sessions can coexist with SPAN sessions within the SPAN/RSPAN limits described in the SPAN and RSPAN Session Limits section on page 38-iv. The inpkts option is disabled by default. Use the inpkts keyword with the enable option to allow the SPAN destination port to receive normal incoming traffic. Use the disable option to prevent the SPAN destination port from receiving normal incoming traffic. When you enable the inpkts option, a warning message notifies you that the destination port does not support the Spanning Tree Protocol (STP) and may cause loops if you enable this option. Learning is enabled by default. Use the inpkts keyword with the learning option to enable or disable learning for a specific port. You can specify a Multilayer Switch Module (MSM) port as the SPAN source port. However, you cannot specify an MSM port as the SPAN destination port. When you configure multiple SPAN sessions, the destination module number/port number must be known to index the particular SPAN session. If you do not specify the keyword create with the set span command and you have only one session, the session will be overwritten. If a matching destination port exists, the particular session will be overwritten (with or without specifying create). If you specify the keyword create and there is no matching destination port, the session will be created. If any VLANs on SPAN source port(s) are blocked by spanning tree, you may see extra packets transmitted on the destination port that were not actually transmitted out the source port(s). The extra packets seen at the destination port are packets sent through the switch fabric to the source port and then blocked by spanning tree at the source port.
38-6
78-13315-02
Chapter 38
Task
Step 1
Command
Configure the SPAN source and destination ports. set span {src_mod/src_ports | src_vlans | sc0} {dest_mod/dest_port} [rx | tx | both] [inpkts {enable | disable}] [learning {enable | disable}] [multicast {enable | disable}] [filter vlans...] [create] Verify the SPAN configuration. show span
Step 2
Caution
If the SPAN destination port is connected to another device and you enable reception of incoming packets (using the inpkts enable keywords), the SPAN destination port receives traffic for whatever VLAN the SPAN destination port belongs to. However, the SPAN destination port does not participate in spanning tree for that VLAN. Use caution when using the inpkts keyword to avoid creating network loops with the SPAN destination port or assigning the SPAN destination port to an unused VLAN. This example shows how to configure SPAN so that both transmit and receive traffic from port 1/1 (the SPAN source) is mirrored on port 2/1 (the SPAN destination):
Console> (enable) set span 1/1 2/1 Destination : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Port 2/1 Port 1/1 Port 1/1 transmit/receive disabled enabled enabled -
This example shows how to set VLAN 522 as the SPAN source and port 2/1 as the SPAN destination:
Console> (enable) set span 522 2/1 Destination : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Console> (enable) Port 2/1 VLAN 522 Port 3/1-2 transmit/receive disabled enabled enabled -
This example shows how to set VLAN 522 as the SPAN source and port 2/12 as the SPAN destination. Only transmit traffic is monitored. Normal incoming packets on the SPAN destination port are allowed.
Console> (enable) set span 522 2/12 tx inpkts enable Destination : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Port 2/12 VLAN 522 Port 2/1-2 transmit enabled enabled enabled -
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-7
Console> (enable)
This example shows how to set port 3/2 as the SPAN source and port 2/2 as the SPAN destination:
Console> (enable) set span 3/2 2/2 tx create Destination : Admin Source : Oper Source : Direction : Incoming Packets: Port 2/1 port 3/1 Port 3/1 transmit/receive disabled
38-8
78-13315-02
Chapter 38
Destination : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Console> (enable)
Port 2/2 port 3/2 Port 3/2 transmit disabled enabled enabled -
To disable SPAN, perform this task in privileged mode: Task Disable SPAN on the switch. Command set span disable [dest_mod/dest_port | all]
Configuring RSPAN
These sections describe how to configure RSPAN:
RSPAN Hardware Requirements, page 38-ix Understanding How RSPAN Works, page 38-x RSPAN Configuration Guidelines, page 38-x Configuring RSPAN, page 38-xi RSPAN Configuration Examples, page 38-xiv
For source switchesCatalyst 6000 family switch with any of the following:
Supervisor Engine 1 and Policy Feature Card (PFC): WS-X6K-SUP1A-PFC Supervisor Engine 1, PFC, and Multilayer Switch Feature Card (MSFC):
WS-X6K-SUP1A-MSFC
Supervisor Engine 1, PFC, and MSFC2: WS-X6K-S1A-MSFC2 Supervisor Engine 2 and PFC2: WS-X6K-S2-PFC2 Supervisor Engine 2, PFC2, and MSFC2: WS-X6K-S1A-MSFC2
No third party or other Cisco switches can be placed in the end-to-end path for RSPAN traffic.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-9
See the Understanding How SPAN and RSPAN Works section on page 38-i for concepts and terminology that apply to both SPAN and RSPAN configuration. RSPAN has all the features of SPAN (see the Understanding How SPAN Works section on page 38-v), plus support for source ports and destination ports distributed across multiple switches, allowing remote monitoring of multiple switches across your network (see Figure 2). 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, which cannot be in the RSPAN VLAN, is switched to the RSPAN VLAN and then forwarded to destination ports configured in the RSPAN VLAN. The traffic type for sources (ingress, egress, or both) in an RSPAN session can be different in different source switches, but is the same for all sources in each source switch for each RSPAN session. Do not configure any ports in an RSPAN VLAN except those selected to carry RSPAN traffic. Learning is disabled on the RSPAN VLAN.
Figure 38-2 RSPAN Configuration
Switch D D1
A3 Switch A A1 A2
B4 Switch B B1 B2 B3
27389
Tip
As RSPAN VLANs have special properties, we recommend that you reserve a few VLANs across your network for use as RSPAN VLANs; do not assign access ports to these VLANs.
Tip
You can apply an output access control list (ACL) to RSPAN traffic to selectively filter specific flows. Specify these ACLs on the RSPAN VLAN in the RSPAN source switches.
38-10
78-13315-02
Chapter 38
All the items in the SPAN Configuration Guidelines section on page 38-vi apply to RSPAN. RSPAN sessions can coexist with SPAN sessions within the SPAN/RSPAN limits described in the SPAN and RSPAN Session Limits section on page 38-iv. For RSPAN configuration, you can distribute the source ports and the destination port across multiple switches. For RSPAN, trunking is required if you have a source switch with all source ports in one VLAN (VLAN 2 for example) and it is connected to the destination switch through an uplink port that is also in VLAN 2. With RSPAN, the traffic is forwarded to remote switches in the RSPAN VLAN. The RSPAN VLAN is configured only on trunk ports and not on access ports. The learning option applies to RSPAN destination ports only. RSPAN does not support BPDU packet monitoring. To optimize bandwidth utilization in the connecting links, you can configure quality of service (QoS) parameters for the RSPAN VLAN in each of the participating source, intermediate, or destination switches. Each Catalyst 6000 family switch can source a maximum of one RSPAN session (ingress, egress, or both). When you configure a remote ingress or bidirectional SPAN session in a source switch, the limit for local ingress or bidirectional SPAN sessions is reduced to one. There are no limits on the number of RSPAN sessions carried across the network within the RSPAN session limits (see the SPAN and RSPAN Session Limits section on page 38-iv). RSPAN VLANs cannot be included as sources for port-based RSPAN sessions when source trunk ports have active RSPAN VLANs. Additionally, RSPAN VLANs cannot be sources in VSPAN sessions. You can configure any VLAN as an RSPAN VLAN as long as these conditions are met:
The same RSPAN VLAN is used for an RSPAN session in all the switches. All participating switches have appropriate hardware and software. No access port (including the sc0 interface) is configured in the RSPAN VLAN.
If you enable VLAN Trunk Protocol (VTP) and VTP pruning, RSPAN traffic is pruned in the trunks to prevent the unwanted flooding of RSPAN traffic across the network. If you enable GARP VLAN Registration Protocol (GVRP) and GVRP requests conflict with existing RSPAN VLANs, you might observe unwanted traffic might in the respective RSPAN sessions. You can use RSPAN VLANs in Inter-Switch Link (ISL) to dot1q mapping. However, ensure that the special properties of RSPAN VLANs are supported in all the switches to avoid unwanted traffic in these VLANs.
Configuring RSPAN
The first step in configuring an RSPAN session is to select an RSPAN VLAN for the RSPAN session that does not exist in any of the switches that will participate in RSPAN. With VTP enabled in the network, you can create the RSPAN VLAN in one switch and VTP propagates it to the other switches in the VTP domain. 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. Once the RSPAN VLAN is created, you configure the source and destination switches using the set rspan command.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-11
To configure RSPAN source ports, perform this task in privileged mode: Task
Step 1
Command set rspan source {mod/ports... | vlans... | sc0} {rspan_vlan} [rx | tx | both] [multicast {enable | disable}] [filter vlans...] [create] show rspan
Configure RSPAN source ports. Use this command on each of the source switches participating in RSPAN. Verify the RSPAN configuration.
Step 2
This example shows how to specify ports 4/1 and 4/2 as ingress source ports for RSPAN VLAN 500:
Console> (enable) Rspan Type : Destination : Rspan Vlan : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Console> (enable) set rspan source 4/1-2 500 rx Source 500 Port 4/1-2 None receive enabled -
38-12
78-13315-02
Chapter 38
To configure RSPAN source VLANs, perform this task in privileged mode: Task
Step 1
Command
Configure RSPAN source VLANs. All the ports in set rspan source {mod/ports... | vlans... | sc0} the source VLAN become operational source {rspan_vlan} [rx | tx | both] [multicast {enable | ports. disable}] [filter vlans...] [create] Verify the RSPAN configuration. show rspan
Step 2
This example shows how to specify VLAN 200 as a source VLAN for RSPAN VLAN 500 (selecting the rx option makes all the ports in the VLAN ingress ports):
Console> (enable) Rspan Type : Destination : Rspan Vlan : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Console> (enable) set rspan source 200 500 rx Source 500 VLAN 200 None receive enabled -
To configure RSPAN destination ports, perform this task in privileged mode: Task
Step 1
Command set rspan destination {mod/port} {rspan_vlan} [inpkts {enable | disable}] [learning {enable | disable}] [create] show rspan
Configure RSPAN destination ports. Use this command on each of the destination switches participating in RSPAN. Verify the RSPAN configuration.
Console> (enable) Rspan Type : Destination : Rspan Vlan : Admin Source : Oper Source : Direction : Incoming Packets: Learning : Multicast : Filter : Console> (enable)
Step 2
set rspan destination 3/1 500 Destination Port 3/1 500 disabled enabled -
To disable RSPAN, perform this task in privileged mode: Task Disable RSPAN on the switch. Command set rspan disable source [rspan_vlan | all] set rpsan disable destination [mod/port | all]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-13
This example shows how to disable one source session by rspan_vlan number:
Console> (enable) set rspan disable source 903 Disabled monitoring of all source(s) on the switch for rspan_vlan 903. Console> (enable)
Configuring a Single RSPAN Session, page 38-xiv Modifying an Active RSPAN Session, page 38-xv Adding RSPAN Source Ports in Intermediate Switches, page 38-xvi Configuring Multiple RSPAN Sessions, page 38-xvi Adding Multiple Network Analyzers to an RSPAN Session, page 38-xviii
38-14
78-13315-02
Chapter 38
Switch D
1/1
1/2
T1 Probe Switch C 1/2 3/1 3/2 T3 1/1 3/1 3/2 3/3 Source switch(es) (access)
27390
Switch A
Switch B
RSPAN CLI Commands set rspan source 4/1-2 901 rx set rspan source 3/1-3 901 No RSPAN CLI command needed set rspan destination 1/2 901
Action Disable the RSPAN session. Remove source port 3/2 from RSPAN session. Add back source port 3/2 to RSPAN session.
RSPAN CLI Commands set rspan disable source 901 set rspan source 3/1, 3/3 901 set rspan source 3/1-3 901
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-15
Switch D
1/1
1/2
T1 Probe Switch C 1/2 3/1 2/1 2/2 3/2 T2 1/2 4/1 4/2 T3 1/1 3/1 3/2 3/3 Source switch(es) (access)
27391
Switch A
Switch B
RSPAN CLI Commands set rspan source 4/1-2 901 rx set rspan source 3/1-3 901 No RSPAN CLI command needed set rspan source 2/1-2 901 set rspan destination 1/2 901
38-16
78-13315-02
Chapter 38
Switch A Probe 1 2/1 1/1 T1 1/2 3/1 T3 3/2 3/3 T4 3/1 T5 2/2 1/2 T2 1/2 3/2 3/3 T6 Source switch(es) (access) Switch F Intermediate switch(es) (distribution) Probe 2 Destination switch (data center)
Switch B
Switch C
Switch D
1/2
1/2 Switch E
1/1
1/2
RSPAN VLAN(s) 901 902 901, 902 901, 902 901 901 901
RSPAN CLI Commands set rspan destination 2/1 901 set rspan destination 2/2 902 No RSPAN CLI command needed No RSPAN CLI command needed set rspan source 2/1-2 901 rx set rspan source 3/1-2 901 tx set rspan source 4/1-3 902
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38-17
Switch A Probe 1 2/1 1/1 T1 Probe 3 Switch B 1/2 1/1 3/1 T3 3/2 3/3 T4 3/1 T5 2/2 1/2 T2 Switch C 1/2 3/2 3/3 T6 Source switch(es) (access) Switch F Intermediate switch(es) (distribution) Probe 2 Destination switch (data center)
Switch D
1/2
1/2 Switch E
1/1
1/2
38-18
78-13315-02
27393
C H A P T E R
39
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How the Switch TopN Reports Utility Works, page 39-i Running and Viewing Switch TopN Reports, page 39-iv
TopN Reports Overview, page 39-i Running Switch TopN Reports without the Background Option, page 39-iii Running Switch TopN Reports with the Background Option, page 39-iii
Note
The Switch TopN Reports utility cannot be used to generate reports on Multilayer Switch Module (MSM) or Multilayer Switch Feature Card (MSFC and MSFC2) ports.
Note
When calculating port utilization, the Switch TopN Reports utility bundles the Tx and Rx lines into the same counter and also looks at the full-duplex bandwidth when calculating the percentage of utilization. For example, a Gigabit Ethernet port would be 2000 Mbps full duplex.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
39-1
The Switch TopN Reports utility collects the following data for each physical port:
Port utilization (util) Number of in/out bytes (bytes) Number of in/out packets (pkts) Number of in/out broadcast packets (bcst) Number of in/out multicast packets (mcst) Number of in errors (in-errors) Number of buffer-overflow errors (buf-ovflw)
When the Switch TopN Reports utility starts, it gathers data from the appropriate hardware counters, and then goes into sleep mode for a user-specified period. When the sleep time ends, the utility gathers the current data from the same hardware counters, compares the current data from the earlier data, and stores the difference. The data for each port is sorted using a user-specified metric chosen from the values shown in Table 1.
Table 39-1 Valid Switch TopN Reports Metric Values
Definition Utilization Input/output bytes Input/output packets Input/output broadcast packets Input/output multicast packets Input errors Buffer overflows
39-2
78-13315-02
Chapter 39
Using Switch TopN Reports Running and Viewing Switch TopN Reports
You can terminate a Switch TopN process invoked with the background option only by entering the clear top [report_num] command. Pressing Ctrl-C does not terminate the process. Completed reports remain available for viewing until you remove them using the clear top {all | report_num} command.
Command show top [N] [metric] [interval interval] [port_type] background show top report [report_num]
Run the Switch TopN Reports utility in the background. View the generated report when it is complete.
Note
You must run the Switch TopN Reports utility with the background keyword in order to use the show top report command to view the completed report contents. Otherwise, the report is displayed immediately upon completion of the process, and the results are not saved. If you specify the report_num with the show top report command, the associated report is displayed. Each process is associated with a unique report number. If you do not specify the report_num variable, all active Switch TopN processes and all available Switch TopN reports for the switch are displayed. All Switch TopN processes (both with and without the background option) are shown in the list. This example shows how to run the Switch TopN Reports utility with the background option:
Console> (enable) show top 5 pkts background Console> (enable) 06/16/1998,17:21:08:MGMT-5:TopN report 4 Console> (enable) 06/16/1998,17:21:39:MGMT-5:TopN report 4 Console> (enable) show top report 4 Start Time: 06/16/1998,17:21:08 End Time: 06/16/1998,17:21:39 PortType: all Metric: pkts (Tx + Rx) Port Band- Uti Bytes Pkts Bcst width % (Tx + Rx) (Tx + Rx) (Tx + Rx) ----- ----- --- -------------------- ---------- ---------1/1 100 0 7950 81 0 2/1 100 0 2244 29 0 1/2 100 0 1548 12 0 2/10 100 0 0 0 0 2/9 100 0 0 0 0 Console> (enable) started by Console//. available.
Mcst Error Over (Tx + Rx) (Rx) flow ---------- ----- ---81 0 0 23 0 0 12 0 0 0 0 0 0 0 0
To run the Switch TopN Reports utility in the foreground and view the results immediately, perform this task in privileged mode: Task Run the Switch TopN Reports utility in the foreground. Command show top [N] [metric] [interval interval] [port_type]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
39-3
This example shows how to run the Switch TopN Reports utility in the foreground:
Console> (enable) show top 5 pkts Start Time: 06/16/1998,17:26:38 End Time: 06/16/1998,17:27:09 PortType: all Metric: pkts (Tx + Rx) Port Band- Uti Bytes Pkts Bcst Mcst Error Over width % (Tx + Rx) (Tx + Rx) (Tx + Rx) (Tx + Rx) (Rx) flow ----- ----- --- -------------------- ---------- ---------- ---------- ----- ---2/1 100 0 10838 94 2 26 0 0 1/1 100 0 7504 79 0 79 0 0 1/2 100 0 2622 21 0 21 0 0 2/10 100 0 0 0 0 0 0 0 2/9 100 0 0 0 0 0 0 0 Console> (enable)
To display stored and pending reports, perform this task in privileged mode: Task Display a report. Command show top report [report_num]
Note
To display all stored and pending reports, do not specify a report_num. This example shows how to display a specific report and how to display all stored and pending reports:
Console> (enable) show top report 5 Start Time: 06/16/1998,17:29:40 End Time: 06/16/1998,17:30:11 PortType: all Metric: overflow Port Band- Uti Bytes Pkts Bcst Mcst Error Over width % (Tx + Rx) (Tx + Rx) (Tx + Rx) (Tx + Rx) (Rx) flow ----- ----- --- -------------------- ---------- ---------- ---------- ----- ---1/1 100 0 7880 83 0 83 0 0 2/12 100 0 0 0 0 0 0 0 2/11 100 0 0 0 0 0 0 0 2/10 100 0 0 0 0 0 0 0 2/9 100 0 0 0 0 0 0 0 Console> (enable) show top report Rpt Start time Int N Metric Status Owner (type/machine/user) --- ------------------- --- --- ---------- -------- ------------------------1 06/16/1998,17:05:00 30 20 Util done telnet/172.16.52.3/ 2 06/16/1998,17:05:59 30 5 Util done telnet/172.16.52.3/ 3 06/16/1998,17:08:06 30 5 Pkts done telnet/172.16.52.3/ 4 06/16/1998,17:21:08 30 5 Pkts done Console// 5 06/16/1998,17:29:40 30 5 Overflow pending Console// Console> (enable)
To remove stored reports, perform this task in privileged mode: Task Remove reports. Use the all keyword to remove all completed reports. Command clear top {all | report_num}
39-4
78-13315-02
Chapter 39
Using Switch TopN Reports Running and Viewing Switch TopN Reports
Note
The command clear top all command does not clear pending reports. Only the reports that have completed are cleared. This example shows how to remove a specific report and how to remove all stored reports:
Console> (enable) clear top 4 Console> (enable) 06/16/1998,17:36:45:MGMT-5:TopN report 4 killed by Console//. Console> (enable) clear top all 06/16/1998,17:36:52:MGMT-5:TopN report 1 killed by Console//. 06/16/1998,17:36:52:MGMT-5:TopN report 2 killed by Console//. Console> (enable) 06/16/1998,17:36:52:MGMT-5:TopN report 3 killed by Console//. 06/16/1998,17:36:52:MGMT-5:TopN report 5 killed by Console//. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
39-5
39-6
78-13315-02
C H A P T E R
40
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How Multicasting Works, page 40-i Configuring IGMP Snooping, page 40-vi Configuring GMRP, page 40-xi Configuring Multicast Router Ports and Group Entries, page 40-xix Configuring RGMP, page 40-xxi Displaying Multicast Protocol Status, page 40-xxv
Multicasting and Multicast Services Overview, page 40-ii Understanding How IGMP Snooping Works, page 40-ii Understanding How GMRP Works, page 40-iv Understanding How RGMP Works, page 40-v Suppressing Multicast Traffic, page 40-v Nonreverse Path Forwarding Multicast Fast Drop, page 40-v Enabling Installation of Directly Connected Subnets, page 40-vi
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-1
Note
For more information on IP multicast and IGMP, refer to RFC 1112. GMRP is described in IEEE 802.1p. You can statically configure multicast groups using the set cam static command. Multicast groups learned through IGMP snooping are dynamic. If you specify group membership for a multicast group address, your static setting supersedes any automatic manipulation by IGMP snooping or GMRP. Multicast group membership lists can consist of both user-defined setting and setting learned through IGMP snooping or GMRP.
You can run IGMP snooping on any Catalyst 6000 family supervisor engine model (Supervisor Engine 1, Supervisor Engine 1A, and Supervisor Engine 2). A PFC is not required to enable IGMP snooping. Cisco Group Management Protocol (CGMP) is not supported on the Catalyst 6000 family switches, although CGMP server is supported on the MSFC. To support CGMP client devices, configure the MSFC as a CGMP server. IGMP snooping manages multicast traffic at Layer 2 on the Catalyst 6000 family switches by allowing directed switching of IP multicast traffic. Switches can use IGMP snooping to configure Layer 2 interfaces dynamically so that IP multicast traffic is forwarded only to those interfaces associated with IP multicast devices. Catalyst 6000 switches can distinguish IGMP control traffic from multicast data traffic. When IGMP is enabled on the switch, IGMP control traffic is redirected to the CPU for further processing. This process is performed in hardware by specialized ASICs, which allow the switch to snoop IGMP control traffic with no performance penalty. The route processor periodically sends out general queries to all VLANs, and as multicast receivers respond to the routers queries, the switch intercepts them. Only the first IGMP join (report) per VLAN and per IP multicast group is forwarded to the router. Subsequent reports for the same VLAN and group are suppressed. The switch processor creates one entry per VLAN in the Layer 2 forwarding table for each MAC group from which it receives an IGMP join request. All hosts interested in this multicast traffic send join requests and are added to the port list of this forwarding table entry. If a port is disabled, it will be removed from all multicast group entries.
Note
You cannot enable IGMP snooping on a switch if GMRP is already enabled on the switch.
40-2
78-13315-02
Chapter 40
Note
If there are CGMP switches in the network, join and leave suppression does not occur. In a network that has both IGMP and CGMP switches, all join and leave messages are forwarded to the multicast routers so that CGMP join and leave messages can be generated by the router.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-3
When the router receives the IGMP leave, it sends several IGMP group-specific queries. If no join messages are received in response to the queries, and there are no downstream routers connected through that interface, the router removes the interface from the OIL for that IP multicast group entry in the multicast routing table.
Note
Do not use the fast-leave processing feature if more than one host is connected to each port. If fast-leave is enabled when more than one host is connected to a port, some hosts might be dropped inadvertently. Fast leave is supported with IGMP version 2 hosts only.
Note
To use GMRP in a routed environment, enable the GMRP forwardall option on all ports where routers are attached. (See the Enabling GMRP Forward-All Option section on page 40-xiv.)
40-4
78-13315-02
Chapter 40
Note
To use RGMP, IGMP Snooping must be enabled on the switch. Protocol independent multicast (PIM) must be enabled on all routers for RGMP to work. Only PIM sparse mode is currently supported. All routers on the network must be RGMP-capable. RGMP-capable routers periodically send an RGMP hello message to the switch. The RGMP hello message tells the switch not to send multicast data to the router unless an RGMP join has also been sent to the switch from that router. When an RGMP join is sent, the router is able to receive multicast data. To learn how to set a router to receive RGMP data, see the RGMP-Related CLI Commands section on page 40-xxv. To stop receiving multicast data, a router must send an RGMP leave message to the switch. To disable RGMP on a router, the router must send an RGMP bye message to the switch. Table 1 provides a summary of the RGMP packet types.
Table 40-1 RGMP Message Types
Action When the RGMP feature is enabled on the router, no multicast data traffic is sent to the router by the switch unless an RGMP join is specifically sent for a group. When RGMP feature is disabled on the router, all multicast data traffic will be sent to the router by the switch. Multicast data traffic for a multicast MAC address from the L3 group address G are sent to the router. These packets will have group G in the Group Address field of the RGMP packet. Multicast data traffic for the group G will not be sent to the router. These packets will have group G in the group address field of the RGMP packet.
Leave
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-5
Non-RPF multicast fast drop (MFD) rate limits packets that fail the RPF check (non-RPF packets) and drops the majority of the non-RPF packets in hardware. According to the multicast protocol specification, the router needs to see the non-RPF packets for the PIM assert mechanism to work, so all non-RPF packets cannot be dropped in hardware. To support the PIM assert mechanism, the PFC leaks a percentage of the non-RFP flow packets to the MSFC. Non-RPF MFD is enabled on the switch by default. Non-RPF MFD is supported with Supervisor Engine 2 only.
Enable downloading of directly connected subnets. Router(config) # mls ip multicast connected This example shows how to install directly connected subnets:
Router(config)# mls ip multicast connected Router(config)#
Note
Quality of service (QoS) does not support IGMP traffic when IGMP snooping is enabled. These sections describe how to configure IGMP snooping:
Default IGMP Snooping Configuration, page 40-vii Enabling IGMP Snooping, page 40-vii Specifying IGMP Snooping Mode, page 40-viii Enabling IGMP Fast-Leave Processing, page 40-viii Displaying Multicast Router Information, page 40-ix Displaying Multicast Group Information, page 40-x Displaying IGMP Snooping Statistics, page 40-x Disabling IGMP Fast-Leave Processing, page 40-xi
40-6
78-13315-02
Chapter 40
Note
IGMP snooping is enabled by default in supervisor engine software release 5.5(9) and later releases and 6.3(1) and later releases.
Table 40-2 IGMP Snooping Default Configuration
You cannot enable IGMP snooping if GMRP is enabled. To enable IGMP snooping, perform this task in privileged mode: Task Command set igmp enable show igmp statistics [vlan]
Step 1 Step 2
Enable IGMP snooping on the switch. Verify that IGMP snooping is enabled.
This example shows how to enable IGMP snooping and verify the configuration:
Console> (enable) set igmp enable IGMP Snooping is enabled. Console> (enable) show igmp statistics IGMP enabled IGMP statistics for vlan 1: Total valid pkts rcvd: 18951 Total invalid pkts recvd 0 General Queries recvd 377 Group Specific Queries recvd 0 MAC-Based General Queries recvd 0 Leaves recvd 14 Reports recvd 16741 Queries Xmitted 0 GS Queries Xmitted 16 Reports Xmitted 0 Leaves Xmitted 0 Failures to add GDA to EARL 0 Topology Notifications rcvd 10 IGMP packets dropped 0 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-7
Command set igmp mode {igmp-only | igmp-cgmp | auto} show igmp mode
Specifies the IGMP snooping mode. Displays the IGMP snooping mode.
This example shows how to set the IGMP mode to IGMP-only and verify the configuration:
Console> (enable) set igmp mode igmp-only IGMP mode set to igmp-only Console> (enable) show igmp mode IGMP Mode: igmp-only IGMP Operational Mode: igmp-only IGMP Address Aliasing Mode: normal Console> (enable)
Enable IGMP fast-leave processing on the switch. set igmp fastleave enable Verify that IGMP fast-leave processing is enabled.
This example shows how to enable IGMP fast-leave processing and verify the configuration:
Console> (enable) set igmp fastleave enable IGMP fastleave set to enable. Console> (enable) show igmp statistics IGMP enabled IGMP fastleave enabled IGMP statistics for vlan 1: Total valid pkts rcvd: Total invalid pkts recvd General Queries recvd Group Specific Queries recvd MAC-Based General Queries recvd Leaves recvd Reports recvd Other Pkts recvd Queries Xmitted GS Queries Xmitted Reports Xmitted Leaves Xmitted Failures to add GDA to EARL
40-8
78-13315-02
Chapter 40
10
This example shows how to display information on all multicast router ports (the asterisk [*] next to the multicast router on port 5/7 indicates that the entry was configured manually):
Console> (enable) show multicast router IGMP enabled Port --------1/1 2/1 5/7 * Vlan ---------------1 2,99,255 99
This example shows how to display only those multicast router ports that were learned dynamically through IGMP:
Console> (enable) show multicast router igmp IGMP enabled Port --------1/1 2/1 Vlan ---------------1 2,99,255
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-9
This example shows how to display information about all multicast groups on the switch:
Console> (enable) show multicast group IGMP enabled VLAN ---1 1 1 1 Dest MAC/Route Des -----------------01-00-11-22-33-44* 01-11-22-33-44-55* 01-22-33-44-55-66* 01-33-44-55-66-77* Destination Ports or VCs / [Protocol Type] ---------------------------------------------------2/6-12 2/6-12 2/6-12 2/6-12
40-10
78-13315-02
Chapter 40
Leaves Xmitted Failures to add GDA to EARL Topology Notifications rcvd IGMP packets dropped Console> (enable)
0 0 10 0
This example shows how to disable IGMP fast-leave processing on the switch:
Console> (enable) set igmp fastleave disable IGMP fastleave set to disable. Console> (enable)
Configuring GMRP
These sections describe how to configure the GARP Multicast Registration Protocol (GMRP):
GMRP Software Requirements, page 40-xii Default GMRP Configuration, page 40-xii Enabling GMRP Globally, page 40-xii Enabling GMRP on Individual Switch Ports, page 40-xiii Disabling GMRP on Individual Switch Ports, page 40-xiv Enabling GMRP Forward-All Option, page 40-xiv Disabling GMRP Forward-All Option, page 40-xv Configuring GMRP Registration, page 40-xv Setting the GARP Timers, page 40-xvii
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-11
Displaying GMRP Statistics, page 40-xviii Clearing GMRP Statistics, page 40-xviii Disabling GMRP Globally on the Switch, page 40-xix
Note
For an overview of GMRP operation, see the Understanding How GMRP Works section on page 40-iv.
Feature GMRP enable state GMRP per-port enable state GMRP forward all GMRP registration GARP/GMRP timers
Default Value Disabled Disabled Disabled on all ports Normal on all ports
You cannot enable GMRP if IGMP snooping is enabled. To enable GMRP globally, perform this task in privileged mode: Task Command set gmrp enable show gmrp configuration
Step 1 Step 2
40-12
78-13315-02
Chapter 40
This example shows how to enable GMRP globally and verify the configuration:
Console> (enable) set gmrp enable GMRP enabled. Console> (enable) show gmrp configuration Global GMRP Configuration: GMRP Feature is currently enabled on this switch. GMRP Timers (milliseconds): Join = 200 Leave = 600 LeaveAll = 10000 Port based GMRP Configuration: Port GMRP Status Registration ForwardAll -------------------------------------------- ----------- ------------ ---------1/1-2,3/1,6/1-48,7/1-24 Enabled Normal Disabled Console> (enable)
You can change the per-port GMRP configuration regardless of whether GMRP is enabled globally. However, GMRP will not function on any ports until you enable it globally. For information on configuring GMRP globally on the switch, see the Enabling GMRP Globally section on page 40-xii. To enable GMRP on individual switch ports, perform this task in privileged mode: Task Command set port gmrp enable mod/port show gmrp configuration
Step 1 Step 2
This example shows how to enable GMRP on port 6/12 and verify the configuration:
Console> (enable) set port gmrp enable 6/12 GMRP enabled on port 6/12. Console> (enable) show gmrp configuration Global GMRP Configuration: GMRP Feature is currently enabled on this switch. GMRP Timers (milliseconds): Join = 200 Leave = 600 LeaveAll = 10000 Port based GMRP Configuration: Port GMRP Status -------------------------------------------- ----------1/1-2,3/1,6/1-9,6/12,6/15-48,7/1-24 Enabled 6/10-11,6/13-14 Disabled Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-13
You can change the per-port GMRP configuration regardless of whether GMRP is enabled globally. However, GMRP will not function on any ports until you enable it globally. For information on configuring GMRP globally on the switch, see the Enabling GMRP Globally section on page 40-xii. To disable GMRP on individual switch ports, perform this task in privileged mode: Task Command set port gmrp disable mod/port show gmrp configuration
Step 1 Step 2
This example shows how to disable GMRP on ports 6/1014 and verify the configuration:
Console> (enable) set port gmrp disable 6/10-14 GMRP disabled on ports 6/10-14. Console> (enable) show gmrp configuration Global GMRP Configuration: GMRP Feature is currently enabled on this switch. GMRP Timers (milliseconds): Join = 200 Leave = 600 LeaveAll = 10000 Port based GMRP Configuration: Port GMRP Status -------------------------------------------- ----------1/1-2,3/1,6/1-9,6/15-48,7/1-24 Enabled 6/10-14 Disabled Console> (enable)
Enable the GMRP forward-all option on a switch set gmrp fwdall enable mod/port port. This example shows how to enable the GMRP forward-all option on port 1/1:
Console> (enable) set gmrp fwdall enable 1/1 GMRP Forward All groups option enabled on port 1/1. Console> (enable)
40-14
78-13315-02
Chapter 40
This example shows how to disable the GMRP forward-all option on port 1/1:
Console> (enable) set gmrp fwdall disable 1/1 GMRP Forward All groups option disabled on port 1/1. Console> (enable)
Setting Normal Registration, page 40-xv Setting Fixed Registration, page 40-xv Setting Forbidden Registration, page 40-xvi
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-15
To set fixed registration on a port, perform this task in privileged mode: Task
Step 1 Step 2
This example shows how to set fixed registration on port 2/10 and verify the configuration:
Console> (enable) set gmrp registration fixed 2/10 GMRP Registration is set fixed on port 2/10. Console> (enable) show gmrp configuration Global GMRP Configuration: GMRP Feature is currently enabled on this switch. GMRP Timers (milliseconds): Join = 200 Leave = 600 LeaveAll = 10000 Port based GMRP Configuration: GMRP-Status Registration ForwardAll Port(s) ----------- ------------ ---------- -------------------------------------------Enabled Normal Disabled 1/1-4 2/1-9,2/11-48 3/1-24 5/1 Enabled Fixed Disabled 2/10 Console> (enable)
This example shows how to set forbidden registration on port 2/10 and verify the configuration:
Console> (enable) set gmrp registration forbidden 2/10 GMRP Registration is set forbidden on port 2/10. Console> (enable) show gmrp configuration Global GMRP Configuration: GMRP Feature is currently enabled on this switch. GMRP Timers (milliseconds): Join = 200 Leave = 600 LeaveAll = 10000 Port based GMRP Configuration:
40-16
78-13315-02
Chapter 40
GMRP-Status Registration ForwardAll Port(s) ----------- ------------ ---------- -------------------------------------------Enabled Normal Disabled 1/1-4 2/1-9,2/11-48 3/1-24 5/1 Enabled Forbidden Disabled 2/10 Console> (enable)
The commands set gmrp timer and show gmrp timer are aliases for set garp timer and show garp timer. The aliases may be used if desired.
Note
Modifying the GARP timer values affects the behavior of all GARP applications running on the switch, not just GMRP. (For example, GVRP uses the same timers.)
Note
The only ports that send out the GMRP LeaveAll messages are the ports that have previously received GMRP joins. You can modify the default GARP timer values on the switch. When setting the timer values, the value for leave must be equal to or greater than three times the join value (leave >= join * 3). The value for leaveall must be greater than the value for leave (leaveall > leave). The more registered attributes on the switch, the greater you should configure the difference between the leave value and the join value. For better performance on switches with many registered multicast groups, increase the timer values to the order of seconds. If you attempt to set a timer value that does not adhere to these rules, an error is returned. For example, if you set the leave timer to 600 ms and you attempt to configure the join timer to 350 ms, an error is returned. Set the leave timer to at least 1050 ms and then set the join timer to 350 ms.
Caution
Set the same GARP timer values on all Layer 2-connected devices. If the GARP timers are set differently on the Layer 2-connected devices, GARP applications (for example, GMRP and GVRP) do not operate successfully. To set the GARP timer values, perform this task in privileged mode: Task Command set garp timer {join | leave | leaveall} timer_value show garp timer
Step 1 Step 2
This example shows how to set the GARP timers and verify the configuration:
Console> (enable) set garp timer leaveall 12000
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-17
GMRP/GARP leaveAll timer value is set to 12000 milliseconds. Console> (enable) set garp timer leave 650 GMRP/GARP leave timer value is set to 650 milliseconds. Console> (enable) set garp timer join 300 GMRP/GARP join timer value is set to 300 milliseconds. Console> (enable) show garp timer Timer Timer Value (milliseconds) -------- -------------------------Join 300 Leave 650 LeaveAll 12000 Console> (enable)
This example shows how to display GMRP statistics for VLAN 23:
Console> show gmrp statistics 23 GMRP Statistics for vlan <23>: Total valid GMRP Packets Received:500 Join Empties:200 Join INs:250 Leaves:10 Leave Alls:35 Empties:5 Fwd Alls:0 Fwd Unregistered:0 Total valid GMRP Packets Transmitted:600 Join Empties:200 Join INs:150 Leaves:45 Leave Alls:200 Empties:5 Fwd Alls:0 Fwd Unregistered:0 Total valid GMRP Packets Received:0 Total GMRP packets dropped:0 Total GMRP Registrations Failed:0 Console>
This example shows how to clear the GMRP statistics for all VLANs:
40-18
78-13315-02
Chapter 40
Configuring Multicast Services Configuring Multicast Router Ports and Group Entries
Specifying Multicast Router Ports, page 40-xix Configuring Multicast Groups, page 40-xx Clearing Multicast Router Ports, page 40-xx Clearing Multicast Group Entries, page 40-xxi
Command set multicast router mod/port show multicast router [mod/port] [vlan_id]
This example shows how to specify a multicast router port manually and verify the configuration (the asterisk [*] next to the multicast router on port 3/1 indicates that the entry was configured manually):
Console> (enable) set multicast router 3/1 Port 3/1 added to multicast router port list. Console> (enable) show multicast router IGMP disabled Port --------2/1 2/2 Vlan ---------------99 255
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-19
3/1 7/9
1 2,99
Note
With software release 6.3(2) and later releases, the maximum number of Layer 2 multicast entries is 15488.
Task
Step 1 Step 2
Command
Add one or more multicast MAC addresses to the set cam {static | permanent} multicast_mac CAM table. mod/port [vlan] Verify the multicast group configuration. show multicast group [mac_addr] [vlan_id]
This example shows how to configure multicast groups manually and verify the configuration (the asterisks indicate the entry was manually configured):
Console> (enable) set cam static 01-00-11-22-33-44 Static multicast entry added to CAM table. Console> (enable) set cam static 01-11-22-33-44-55 Static multicast entry added to CAM table. Console> (enable) set cam static 01-22-33-44-55-66 Static multicast entry added to CAM table. Console> (enable) set cam static 01-33-44-55-66-77 Static multicast entry added to CAM table. Console> (enable) show multicast group IGMP disabled VLAN ---1 1 1 1 Dest MAC/Route Des -----------------01-00-11-22-33-44* 01-11-22-33-44-55* 01-22-33-44-55-66* 01-33-44-55-66-77* 2/6-12 2/6-12 2/6-12 2/6-12
40-20
78-13315-02
Chapter 40
Task Clear specific, manually configured multicast router ports. Clear all manually configured multicast router ports.
This example shows how to clear a manually configured multicast router port entry:
Console> (enable) clear multicast router 2/12 Port 2/12 cleared from multicast router port list. Console> (enable)
This example shows how to clear a multicast group entry from the CAM table:
Console> (enable) clear cam 01-11-22-33-44-55 1 CAM entry cleared. Console> (enable)
Configuring RGMP
These sections describe the commands for configuring RGMP:
Configuring RGMP on the Supervisor Engine, page 40-xxi Configuring RGMP on the MSFC, page 40-xxv
Default RGMP Configuration, page 40-xxii Enabling and Disabling RGMP, page 40-xxii Displaying RGMP Group Information, page 40-xxii Displaying RGMP VLAN Statistics, page 40-xxiii Displaying Ports Connected to RGMP-Capable Routers, page 40-xxiv Clearing RGMP Statistics, page 40-xxiv RGMP-Related CLI Commands, page 40-xxv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-21
To enable RGMP, you must have IGMP snooping enabled. To enable or disable RGMP, perform these tasks in privileged mode: Task Enable RGMP. Disable RGMP. This example shows how to enable RGMP:
Console> (enable) set rgmp enable RGMP enabled. Console> (enable)
40-22
78-13315-02
Chapter 40
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-23
40-24
78-13315-02
Chapter 40
You can use the debug ip rgmp command to monitor RGMP on the MSFC.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
40-25
40-26
78-13315-02
C H A P T E R
41
Configuring QoS
This chapter describes how to configure quality of service (QoS) on the Catalyst 6000 family switches and includes the configuration information required to support Common Open Policy Service (COPS) and Resouce ReSerVation Protocol (RSVP).
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. You can configure QoS using one of the following:
SNMP COPS protocol RSVP null service template and receiver proxy functionality Command-line interface (CLI)
Understanding How QoS Works, page 41-i QoS Default Configuration, page 41-xxviii Configuring QoS, page 41-xxx
Throughout this publication and all Catalyst 6500 series documents, the term QoS refers to the QoS feature as implemented on the Catalyst 6500 series. Supervisor Engine 1 and Supervisor Engine 2 provide policing only for ingress traffic.
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. The QoS feature on the Catalyst 6000 family switches selects network traffic, prioritizes it according to its relative importance, and provides priority-indexed treatment through congestion avoidance techniques. Implementing QoS in your network makes network performance more predictable and bandwidth utilization more effective.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-1
Configuring QoS
QoS sets Layer 2 and Layer 3 values in network traffic to a configured value or to a value based on received Layer 2 or Layer 3 values. IP traffic retains the Layer 3 value when it leaves the switch. These sections describe QoS:
Definitions, page 41-ii Flowcharts, page 41-iii QoS Feature Set Summary, page 41-viii Ethernet Ingress Port Marking, Scheduling, Congestion Avoidance, and Classification, page 41-x Classification, Marking, and Policing with a Layer 3 Switching Engine, page 41-xiv Classification and Marking with a Layer 2 Switching Engine, page 41-xxiv Ethernet Egress Port Scheduling, Congestion Avoidance, and Marking, page 41-xxiv QoS Statistics Data Export, page 41-xxvii
Definitions
This section defines some QoS terminology:
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 packets and frames:
Layer 2 class of service (CoS) values 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 CoS values. On ports configured as ISL trunks, all traffic is in ISL frames. On ports configured as 802.1Q trunks, all traffic is in 802.1Q frames except for traffic in the native VLAN.
Note
Layer 3 IP precedence valuesThe IP version 4 specification defines the three most significant
bits of the 1-byte Type of Service (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) valuesThe Internet Engineering Task
Force (IETF) defines the six most significant bits of the 1-byte ToS field as the DSCP. The priority represented by a particular DSCP value is configurable. DSCP values range between 0 and 63 (for more information, see the Configuring DSCP Value Maps section on page 41-lv).
Note
Layer 3 IP packets can carry either an IP precedence value or a DSCP value. QoS supports the use of either value, because DSCP values can be set equal to IP precedence values.
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.
41-2
78-13315-02
Chapter 41
Scheduling is the assignment of traffic to a queue. QoS assigns traffic based on CoS values. Congestion avoidance is the process by which QoS reserves ingress and egress port capacity for traffic with high-priority CoS values. QoS implements congestion avoidance with CoS value-based drop thresholds. A drop threshold is the percentage of buffer utilization at which traffic with a specified CoS value is dropped, leaving the buffer available for traffic with higher-priority CoS values. Policing is the process by which the switch limits the bandwidth consumed by a flow of traffic. Policing can mark or drop traffic. Except where specifically differentiated, Layer 3 switching engine refers to either:
Supervisor Engine 2 with Layer 3 Switching Engine II (Policy Feature Card 2 or PFC2) Supervisor Engine 1 with Layer 3 Switching Engine WS-F6K-PFC (Policy Feature Card
or PFC)
Flowcharts
Figure 1 shows how traffic flows through the QoS features; Figure 2 through Figure 7 show more details of the traffic flow through QoS features.
Figure 41-1 Traffic Flow Through QoS Features
Ethernet egress port Frame enters switch Ethernet ingress port L3 Switching Engine* or L2 Switching Engine Cell enters switch ATM-LANE ingress port *PFC or PFC2 CoS = 0 for all traffic (not configurable) ATM-LANE egress port
Note
Traffic that is Layer 3 switched does not go through the Multilayer Switch Feature Card (MSFC or MSFC2) and retains the CoS value assigned by the Layer 3 switching engine.
Note
Enter the show port capabilities command to see the queue structure of a port (for more information, see the Receive Queues section on page 41-xi and the Transmit Queues section on page 41-xxv).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41866
Transmit cell
41-3
Configuring QoS
Figure 41-2 Ethernet ingress Port Classification, Marking, Scheduling, and Congestion Avoidance
Yes
ISL or 802.1Q?
No
Yes
Yes
No
Yes 1q4t port (tail-drop thresholds) 100% for CoS 6 and 7 80% for CoS 4 and 5 60% for CoS 2 and 3 50% for CoS 0 and 1 1p1q4t (tail-drop thresholds)
Strict pr iority queue 100% for CoS 5 Standard queue 100% for CoS 6 and 7 80% for CoS 4 60% for CoS 2 and 3 50% for CoS 0 and 1 1p1q0t port (tail-drop thresholds) Strict priority queue 100% for CoS 5 Standard queue 100% for CoS 0, 1, 2, 3, 4, 6, 7
To switching engine
41-4
49393
78-13315-02
Chapter 41
From ingress port or VLAN L3 Switching Engine (PFC) classification, marking, and policing ACL(s) on interface? Yes Yes
1 Trust received DSCP?
No
IP Packet? No
Yes
No
1
1 3 Trust Set DSCP Yes received or port from received CoS? or port CoS
No
1
No
Yes Markdown?
Out of profile?
Yes
No
Specified by ACE keyword or by port keyword and dscp ACE keyword From IP precedence-to-DSCP map From CoS-to-DSCP map From DSCP markdown map From DSCP-to-CoS map
2 3 4 5
To egress interface
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-5
Configuring QoS
No
To Egress port
Figure 41-5 Multilayer Switch Feature Card Marking (MSFC and MSFC2)
Route traffic
27107
41-6
25031
78-13315-02
Chapter 41
Figure 41-6 Ethernet Egress Port Scheduling, Congestion Avoidance, and Marking
From switching engine or MSFC Ethernet egress port scheduling, congestion avoidance, and marking 2q2t port (tail-drop thresholds) High priority standard queue 100% for CoS 6 and 7 80% for CoS 4 and 5 Low priority standard queue 100% for CoS 2 and 3 80% for CoS 0 and 1 1p2q2t port Strict priority queue 100% for CoS 5 High priority standard queue (WRED-drop thresholds) 70%:100% for CoS 6 and 7 40%:70% for CoS 4 Low priority standard queue (WRED-drop thresholds) 70%:100% for CoS 2 and 3 40%:70% for CoS 0 and 1 1p3q1t port Strict priority queue 100% for CoS 5 standard queues (WRED-drop or tail-drop thresholds) High priority 100% for CoS 6 and 7 Medium priority 100% for CoS 2, 3 and 4 Low priority 100% for CoS 0 and 1 (Default values shown) Transmit frame ISL or 802.1Q? No
Yes
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
49380
41-7
Configuring QoS
From switching engine or MSFC Single-port ATM OC-12 switching module marking
Transmit cell
Supervisor Engine 2 (WS-X6K-SUP2-2GE) with Layer 3 Switching Engine II (WS-F6K-PFC2Policy Feature Card 2 or PFC2) Supervisor Engine 1 (WS-X6K-SUP1A-2GE or WS-X6K-SUP1-2GE) with one of the following:
Layer 3 Switching Engine (WS-F6K-PFCPolicy Feature Card or PFC) Layer 2 Switching Engine II (WS-F6020A) Layer 2 Switching Engine I (WS-F6020)
The Layer 3 Switching Engine WS-F6K-PFC and Layer 3 Switching Engine II support similar feature sets. The two Layer 2 switching engines support the same QoS feature set. These sections describe the QoS feature sets:
Ethernet Ingress Port Features, page 41-ix Layer 3 Switching Engine Features, page 41-ix Layer 2 Switching Engine Features, page 41-ix Ethernet Egress Port Features, page 41-ix Single-Port ATM OC-12 Switching Module Features, page 41-ix Multilayer Switch Feature Card (MSFC or MSFC2), page 41-ix
41-8
27105
78-13315-02
Chapter 41
Note
Traffic that is Layer 3 switched does not go through the MFSC and retains the CoS value assigned by the Layer 3 switching engine.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-9
Configuring QoS
Overview, page 41-x Marking at Untrusted Ports, page 41-xi Marking at Trusted Ports, page 41-xi Ethernet Ingress Port Scheduling and Congestion Avoidance, page 41-xi Receive Queues, page 41-xi Ingress Scheduling, page 41-xi Ingress Congestion Avoidance, page 41-xi Ethernet Ingress Port Classification Features with a Layer 3 Switching Engine, page 41-xiii
Overview
The trust state of an Ethernet port determines how it marks, schedules, and classifies received traffic, and whether or not congestion avoidance is implemented. You can configure the trust state of each port with one of these keywords:
untrusted (default) trust-ipprec (Layer 3 switching engine onlynot supported on 1q4t ports except Gigabit Ethernet) trust-dscp (Layer 3 switching engine onlynot supported on 1q4t ports except Gigabit Ethernet) trust-cos
Note
1q4t ports (except Gigabit Ethernet) do not support the trust-ipprec and trust-dscp port keywords. You must configure a trust-ipprec or trust-dscp ACL that matches the ingress traffic to apply the trust-ipprec or trust-dscp trust state. On 1q4t ports (except Gigabit Ethernet), the trust-cos port keyword displays an error message, activates receive queue drop thresholds, andas indicated by the error messagedoes not apply the trust-cos trust state to traffic. You must configure a trust-cos ACL that matches the ingress traffic to apply the trust-cos trust state.
For more information, see the Configuring the Trust State of a Port section on page 41-xxxii. In addition to the port configuration keywords listed above, with a Layer 3 switching engine, QoS uses trust-ipprec, trust-dscp, and trust-cos ACE keywords. Do not confuse the ACE keywords with the port keywords. Ports configured with the untrusted keyword are called untrusted ports. Ports configured with the trust-ipprec, trust-dscp, or trust-cos keywords are called trusted ports. QoS implements ingress port congestion avoidance only on ports configured with the trust-cos keyword. Ingress port marking, scheduling, and congestion avoidance use Layer 2 CoS values. Ingress port marking, scheduling, and congestion avoidance do not use or set Layer 3 IP precedence or DSCP values.
41-10
78-13315-02
Chapter 41
Receive Queues
Enter a show port capabilities command to see the queue structure of a port. The command displays one of the following:
rx-(1p1q4t)one strict-priority queue and one standard queue with four thresholds rx-(1q4t)one standard queue with four thresholds rx-(1p1q0t)one strict-priority queue and one standard queue with no configurable thresholds
Strict-priority queues are serviced in preference to other queues. QoS services traffic in a strict-priority queue before servicing the standard queue. When QoS services the standard queue, after receiving a packet, it checks for traffic in the strict-priority queue. If QoS detects traffic in the strict-priority queue, it suspends its service of the standard queue and completes service of all traffic in the strict-priority queue before returning to the standard queue.
Ingress Scheduling
QoS schedules traffic through the receive queues based on CoS values. In the 1p1q4t and 1p1q0t default configurations, QoS assigns all traffic with CoS 5 to the strict-priority queue; QoS assigns all other traffic to the standard queue. In the 1q4t default configuration, QoS assigns all traffic to the standard queue.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-11
Configuring QoS
Using receive-queue drop threshold 1, the switch drops incoming frames with CoS 0 or 1 when the receive-queue buffer is 50 percent or more full. Using receive-queue drop threshold 2, the switch drops incoming frames with CoS 2 or 3 when the receive-queue buffer is 60 percent or more full. Using receive-queue drop threshold 3, the switch drops incoming frames with CoS 4 or 5 when the receive-queue buffer is 80 percent or more full. Using receive-queue drop threshold 4, the switch drops incoming frames with CoS 6 or 7 when the receive-queue buffer is 100 percent full.
Frames with CoS 5 go to the strict-priority receive queue (queue 2), where the switch drops incoming frames only when the strict-priority receive-queue buffer is 100 percent full.
Frames with CoS 0, 1, 2, 3, 4, 6, or 7 go to the standard receive queue. The switch drops incoming frames when the receive-queue buffer is 100 percent full. Frames with CoS 5 go to the strict-priority receive queue (queue 2), where the switch drops incoming frames only when the strict-priority receive-queue buffer is 100 percent full.
Note
The explanations in this section use default values. You can configure many of the parameters (for more information, see the Configuring QoS section on page 41-xxx). All ports of the same type use the same drop-threshold configuration. Figure 8 shows the drop thresholds for a 1q4t port. Drop thresholds in other configurations function similarly.
41-12
78-13315-02
Chapter 41
Drop threshold 4: 100% Reserved for CoS 6 and 7 Reserved for CoS 4 and higher Reserved for CoS 2 and higher
Co
S
d7 an
S
4
d5 an
Co S
2
d3 an 1 and
CoS
Traffic is dropped
100% available for CoS 6 and 7 80% available for CoS 4 and 5 60% available for CoS 2 and 3 50% available for CoS 0 and 1
26249
Receive queue
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-13
Configuring QoS
Port Keyword ACE Keyword Marking Rule untrusted trust-ipprec dscp dscp Set internal and egress DSCP as specified in the ACE. For IP traffic, set internal and egress DSCP from the received Layer 3 IP precedence value. For other traffic, set internal and egress from the received or port Layer 2 CoS value. NoteWith the trust-ipprec port keyword, QoS uses only the IP precedence bits. If traffic with a DSCP value enters the switch through a port configured with the trust-ipprec port keyword, the three most significant bits of the DSCP value are interpreted as an IP precedence value; QoS ignores the rest of the DSCP value. trust-dscp dscp For IP traffic, set internal and egress DSCP from the received Layer 3 DSCP value. For other traffic, set internal and egress DSCP from the received or port Layer 2 CoS value. Set internal and egress DSCP from the received or port Layer 2 CoS value.
trust-cos
dscp
QoS uses configurable mapping tables to set internal and egress DSCP, which is a 6-bit value, from CoS and IP precedence, which are 3-bit values (for more information, see the Internal DSCP Values section on page 41-xv and the Configuring DSCP Value Maps section on page 41-lv).
With a Layer 3 switching engine, the Catalyst 6000 family switches provide QoS only for the following frame types: Ethernet_II, Ethernet_802.3, Ethernet_802.2, and Ethernet_SNAP. These sections describe classification, marking, and policing with a Layer 3 switching engine:
Internal DSCP Values, page 41-xv ACLs, page 41-xv Named ACLs, page 41-xvi Default ACLs, page 41-xx Marking Rules, page 41-xxi Policing Rules, page 41-xxii PFC2 Policing Decisions, page 41-xxiii Attaching ACLs, page 41-xxiii Final Layer 3 Switching Engine CoS and ToS Values, page 41-xxiv
Note
Classification with a Layer 3 switching engine uses Layer 2, 3, and 4 values. Marking with a Layer 3 switching engine uses Layer 2 CoS values and Layer 3 IP precedence or DSCP values.
41-14
78-13315-02
Chapter 41
Internal DSCP Sources, page 41-xv Egress DSCP and CoS Sources, page 41-xv
For trust-cos traffic, from received or port Layer 2 CoS values (traffic from an untrusted port has the port CoS value and if traffic from an untrusted port matches a trust-cos ACL, QoS derives the internal DSCP value from the port CoS value) For trust-ipprec traffic, from received IP precedence values For trust-dscp traffic, from received DSCP values For untrusted traffic, from port CoS or configured DSCP values
The trust state of traffic is the trust state of the ingress port unless set otherwise by the matching ACE.
Note
A trust-cos ACL cannot restore received CoS in traffic from untrusted ports. Traffic from untrusted ports always has the port CoS value. QoS uses configurable mapping tables to derive the internal 6-bit DSCP value from CoS or IP precedence, which are 3-bit values (see theMapping Received CoS Values to Internal DSCP Values section on page 41-lv or the Mapping Received IP Precedence Values to Internal DSCP Values section on page 41-lvi).
ACLs
QoS uses ACLs that contain ACEs. The ACEs specify classification criteria, a marking rule, and policing rules. QoS compares received traffic to the ACEs in ACLs until a match occurs. When the traffic matches the classification criteria in an ACE, QoS marks and polices the packet as specified in the ACE and makes no further comparisons. There are three ACL types: IP and, with a Layer 3 switching engine, IPX and MAC. QoS compares traffic of each type (IP, IPX, and MAC) only to the corresponding ACL type (see Table 2).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-15
Configuring QoS
Ethertype Field Value 0x0800 0x8137 and 0x8138 0x0600 and 0x0601 0x0BAD and 0x0BAF 0x6000-0x6009 and 0x8038-0x8042 0x809b and 0x80f3
1. QoS MAC ACLs that do not include an ethertype parameter match traffic with any value in the ethertype field, which allows MAC-level QoS to be applied to any traffic except IP and IPX.
QoS supports user-created named ACLs, each containing an ordered list of ACEs, and user-configurable default ACLs, each containing a single ACE.
Named ACLs
You create a named ACL when you enter an ACE with a new ACL name. You add an ACE to an existing ACL when you enter an ACE with the name of the existing ACL. You can specify the classification criteria for each ACE in a named ACL. The classification criteria can be specific values or wildcards (for more information, see the Creating or Modifying ACLs section on page 41-xxxvii). These sections describe the classification criteria that can be specified in a named ACL:
IP ACE Layer 3 Classification Criteria, page 41-xvi IP ACE Layer 4 Protocol Classification Criteria, page 41-xvii IP ACE Layer 4 TCP Classification Criteria, page 41-xvii IP ACE Layer 4 UDP Classification Criteria, page 41-xviii IP ACE Layer 4 ICMP Classification Criteria, page 41-xviii IP ACE Layer 4 IGMP Classification Criteria, page 41-xix IPX ACE Classification Criteria, page 41-xix MAC ACE Layer 2 Classification Criteria, page 41-xx
IP source address and mask, entered as specific values or with the any keyword or with the host keyword and a host address. IP destination address and mask, entered as specific values or with the any keyword or with the host keyword and a host address. DSCP value (063) or IP precedence specified with a numeric value (07) or these keywords:
Network (IP precedence 7) Internet (IP precedence 6)
41-16
78-13315-02
Chapter 41
Critical (IP precedence 5) Flash-override (IP precedence 4) Flash (IP precedence 3) Immediate (IP precedence 2) Priority (IP precedence 1) Routine (IP precedence 0)
Note
IP ACEs that do not include a DSCP or IP precedence value parameter match all DSCP or IP precedence values.
Note
IP ACEs that do not include a Layer 4 protocol parameter or that include the ip keyword match all IP traffic.
Note
TCP ACEs that do not include a Layer 4 TCP port parameter match all TCP traffic.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-17
Configuring QoS
Note
UDP ACEs that do not include a Layer 4 UDP port parameter match all UDP traffic.
Type 3 6 31 3 3 8 0 12 3 3 5 5 3 3 3 16
Code 13 0 10 9 0 0 8 14 1 3 12 7 1 0
Keyword net-tos-unreachable net-unreachable network-unknown no-room-for-option option-missing packet-too-big parameter-problem port-unreachable precedence-unreachable protocol-unreachable reassembly-timeout redirect
1
Type 3 3 3 12 12 3 12 3 3 3 11 5 9 10 4 3
Code 11 0 6 2 1 4 0 3 15 2 1 0 0 0 5
41-18
78-13315-02
Chapter 41
Type 15 18 17 32 5 5
Code 0 0 0 0 0 2
Keyword time-exceeded
1
Type 11 14 13 30 11
1
Code 0 0 0 0
Note
ICMP ACEs with only a Layer 4 ICMP type parameter match all code values for that type value. ICMP ACEs that do not include any Layer 4 ICMP type and code parameters match all ICMP traffic.
Note
QoS does not support Internet Group Management Protocol (IGMP) traffic when IGMP snooping is enabled. QoS supports IGMP classification using version 1 four-bit Type fields.
Note
IGMP ACEs that do not include a Layer 4 IGMP type parameter match all IGMP traffic.
IPX source network (-1 matches any network number) Protocol, which can be specified numerically (0255) or with these keywords: any, ncp (17), netbios (20), rip (1), sap (4), spx (5) IPX ACEs support the following optional parameters:
IPX destination network (-1 matches any network number) If you specify an IPX destination network, IPX ACEs support the following optional
parameters: an IPX destination network mask (-1 matches any network number), an IPX destination node, and an IPX destination node mask
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-19
Configuring QoS
Ethernet source and destination addresses and masks, entered as specific values or with the any keyword or with the host keyword and a host Ethernet address Optionally, an ethertype parameter from this list:
0x809B (or ethertalk) 0x80F3 (or aarp) 0x6001 (or dec-mop-dump) 0x6002 (or dec-mop-remote-console) 0x6003 (or dec-phase-iv) 0x6004 (or dec-lat) 0x6005 (or dec-diagnostic-protocol) 0x6007 (or dec-lavc-sca) 0x6008 (or dec-amber) 0x6009 (or dec-mumps) 0x8038 (or dec-lanbridge) 0x8039 (or dec-dsm) 0x8040 (or dec-netbios) 0x8041 (or dec-msdos) 0x8042 (no keyword) 0x0BAD (no keyword) 0x0baf (or banyan-vines-echo) 0x0600 (or xerox-ns-idp)
QoS MAC ACLs that do not include an ethertype parameter match traffic with any value in the ethertype field, which allows MAC-level QoS to be applied to any traffic except IP and IPX.
Default ACLs
There are three default ACLs, one each for IP and, with a Layer 3 switching engine, IPX and MAC traffic. Each ACL has a single ACE that has a configurable marking rule and configurable policing rules. The default ACLs have nonconfigurable classification criteria that matches all traffic. QoS compares any traffic with a supported ethertype field value that does not match a named ACL to the default ACLs. Unmatched IP traffic matches the default IP ACL. Unmatched IPX traffic matches the default IPX ACL. Unmatched Ethernet traffic matches the default MAC ACL.
Note
All traffic matches an ACE in an ACL, either an ACE in a named ACL or one of the default ACLs, because the default ACLs match all traffic.
41-20
78-13315-02
Chapter 41
Marking Rules
Note
Marking is not supported for IPX or MAC traffic with a PFC2. Marking rules specify how QoS marks traffic when the traffic matches the filtering parameters in an ACE (see the ACE Name, Marking Rule, Policing, and Filtering Syntax section on page 41-xxxvii). QoS supports four marking rules, specified with the following four ACE keywords: trust-dscp, trust-ipprec, trust-cos, and dscp. Each ACE contains one of the keywords. The marking rules are as follows:
trust-dscp (IP ACLs only)Instructs QoS to set internal and egress DSCP from received DSCP values (see the Internal DSCP Values section on page 41-xv). trust-ipprec (IP ACLs only)Instructs QoS to set internal and egress DSCP from received IP precedence values.
Note
With the trust-ipprec port keyword, QoS uses only the IP precedence bits. If traffic with a DSCP value enters the switch through a port configured with the trust-ipprec port keyword, the three most significant bits of the DSCP value are interpreted as an IP precedence value; QoS ignores the rest of the DSCP value.
trust-cos (all ACLs except IPX and MAC with a PFC2)Instructs QoS to set internal and egress DSCP from received or port CoS values. In traffic from ports configured with the trust-cos keyword, the CoS value is that received in ISL and 802.1Q frames; in all other cases, the CoS value is that configured on the port (default is zero). dscp (all ACLs except IPX and MAC with a PFC2)Instructs QoS to mark traffic as indicated by the port trust keywords:
In IP traffic from ingress ports configured with the trust-dscp port keyword, the dscp ACE
keyword instructs QoS to set the internal and egress DSCP values from the received DSCP values. In non-IP traffic, QoS sets the DSCP from the received or port CoS value.
In IP traffic from ingress ports configured with the trust-ipprec port keyword, the dscp ACE
keyword instructs QoS to set the internal and egress DSCP values from the received IP precedence values. In non-IP traffic, QoS sets the DSCP value from the received or port CoS value.
In traffic from ingress ports configured with the trust-cos port keyword, the dscp ACE keyword
instructs QoS to set the internal and egress DSCP values from the received or port CoS values.
In traffic from ingress ports configured with the untrusted port keyword, the dscp ACE
keyword instructs QoS to set the internal and egress DSCP values from the DSCP value in the ACE.
Note
The default configuration of the ACEs in the default ACLs contains the dscp ACE keyword, which supports per-port classification of traffic. With the default values, the ACEs in the default ACLs apply DSCP zero to traffic from ingress ports configured with the untrusted port keyword.
QoS uses configurable mapping tables to set the DSCP value, which is 6 bits, from CoS and IP precedence, which are 3-bit values (for more information, see the Mapping Received CoS Values to Internal DSCP Values section on page 41-lv and the Mapping Received IP Precedence Values to Internal DSCP Values section on page 41-lvi).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-21
Configuring QoS
Policing Rules
You can create named policing rules that specify bandwidth utilization limits, which you can apply to traffic by including the policing rule name in an ACE (for more information, see the Creating Policing Rules section on page 41-xxxiv). Policing uses a token bucket scheme. As packets arrive, the packet size in bytes is added to the bucket level. Every 0.25 milliseconds, a value equal to the token rate is subtracted from the bucket level. You specify the bandwidth utilization limits as an average rate and a maximum burst size. Packets that exceed these limits are out of profile. Traffic is in profile as long as it flows in at an average rate and never bursts beyond the burst size. In each policing rule, you specify if out-of-profile packets are to be dropped or to have a new DSCP value applied to them (applying a new DSCP value is called markdown). Since out-of-profile packets do not retain their original priority, they are not counted as part of the bandwidth consumed by in-profile packets. For all policing rules, QoS uses a configurable table that maps received DSCP values to marked-down DSCP values (for more information, see the Mapping DSCP Markdown Values section on page 41-lvii). When markdown occurs, QoS gets the marked-down DSCP value from the table. You cannot specify a marked-down DSCP value in individual policing rules.
Note
By default, the markdown table is configured so that no markdown occurs: the marked-down DSCP values are equal to the received DSCP values. To enable markdown, configure the table appropriately for your network. You give each policing rule a unique name when you create it and then use the name to include the policing rule in an ACE. The same policing rule can be used in multiple ACEs. You can create these policing rules:
MicroflowQoS applies the bandwidth limit specified in a microflow policing rule separately to each flow that matches any ACEs that use that particular microflow policing rule. You can create up to 63 microflow policing rules. AggregateQoS applies the bandwidth limits specified in an aggregate policing rule cumulatively to all flows that match any ACEs that use that particular aggregate policing rule. You can create up to 1023 aggregate policing rules. With a PFC2, you can specify a dual rate aggregate policing rule with a normal rate and an excess rate.
Normal ratepackets exceeding this rate are marked down. Excess ratepackets exceeding this rate are either marked down or dropped as specified by the
Note
The drop indication flag applies to the excess rate policer and cannot be set for the normal rate policer. To achieve the effect of a drop indication flag for the normal rate aggregate policer, set the excess rate equal to the normal rate and set the drop indication flag. Alternatively, you can set the normal rate without specifying an excess rate, which automatically sets the excess rate to the normal rate when the drop indicator flag is on.
You can include both a microflow policing rule and an aggregate policing rule in each ACE to police a flow based on both its own bandwidth utilization and on its bandwidth utilization combined with that of other flows.
41-22
78-13315-02
Chapter 41
For example, you could create a microflow policing rule named group_individual with bandwidth limits suitable for individuals in a group and you could create an aggregate policing rule named group_all with bandwidth limits suitable for the group as a whole. You could include both policing rules in ACEs that match the groups traffic. The combination would affect individuals separately and the group cumulatively. For ACEs that include both a microflow policing rule and an aggregate policing rule, QoS responds to an out-of-profile status from either policing rule and, as specified by the policing rule, applies a new DSCP value or drops the packet. If both policing rules return an out-of-profile status, then if either policing rule specifies that the packet is to be dropped, it is dropped; otherwise, QoS applies a new DSCP value. Follow these guidelines when creating policing rules:
You can include a microflow policing rule in IP ACEs. You cannot include a microflow policing rule in IPX or MAC ACEs. IPX and MAC ACEs support only aggregate policing rules. By default, microflow policing rules do not affect bridged traffic. To enable microflow policing of bridged traffic, enter the set qos bridged-microflow-policing command (for more information, see the Enabling or Disabling Microflow Policing of Bridged Traffic section on page 41-xlviii). With a Layer 3 Switching Engine II, to do any microflow policing, you must enable microflow policing of bridged traffic. With an MSFC, QoS does not apply microflow policing rules to Multilayer Switching (MLS) candidate frames (MSFC2 does not use candidate and enabler frames). To avoid inconsistent results, all ACEs that include the same aggregate policing rule must use the same ACE keyword: trust-dscp, trust-ipprec, trust-cos, or dscp. If the ACE uses the dscp keyword, all traffic that matches the ACE must come through ports configured with the same port keyword: trust-dscp, trust-ipprec, trust-cos, or untrusted. If the ACL is attached to a VLAN, all ports in the VLAN must be configured with the same port keyword.
Normal Police LevelSet if either the microflow policer or the aggregate normal rate policer returns an out-of-profile decision. Excess Police LevelSet if the aggregate excess rate policer returns an out-of-profile decision.
Packets are dropped if the excess rate aggregate policer returns an out-of-profile decision and the drop indication flag is set, or if the microflow policer returns an out-of-profile decision and the drop indication flag is set. If an excess police level is set, the excess DSCP mapping is used to replace the original DSCP value with a marked-down value. If only a normal police level is set, the normal DSCP mapping is used. The excess police level has precedence for selecting mapping rules when both police levels are set because the excess police level represents the worst out-of-profile transgression.
Attaching ACLs
You can configure each port for either port-based QoS (default) or VLAN-based QoS (see the Enabling Port-Based or VLAN-Based QoS section on page 41-xxxii) and attach ACLs to the selected interface (see the Attaching ACLs to Interfaces section on page 41-xlvi). You can attach up to three named ACLs, one of each type (IP, IPX, and Ethernet) to each port and VLAN.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-23
Configuring QoS
On ports configured for VLAN-based QoS, you can attach named ACLs to the ports VLAN; or for a trunk, you can attach named ACLs to any VLANs allowed on the trunk as follows:
On a port configured for VLAN-based QoS, traffic received through the port is compared to any named ACLs attached to the ports VLAN. If you do not attach any named ACLs to the ports VLAN, or if the traffic does not match an ACE in a named ACL, QoS compares the traffic received through the port to the default ACLs. On a trunk configured for VLAN-based QoS, traffic received through the port is compared to any named ACLs attached to the traffics VLAN. For traffic in VLANs that have no named ACLs attached, or if the traffic does not match an ACE in a named ACL, QoS compares the traffic to the default ACLs.
On ports configured for port-based QoS, you can attach named ACLs to the port as follows:
On a port configured for port-based QoS, traffic received through the port is compared to any named ACLs attached to the port. If you do not attach any named ACLs to the port, or if the traffic does not match an ACE in a named ACL, QoS compares the traffic received through the port to the default ACLs. On a trunk configured for port-based QoS, traffic in all VLANs received through the port is compared to any named ACLs attached to the port. If you do not attach any named ACLs to the port, or if the traffic does not match an ACE in a named ACL, QoS compares the traffic received through the port to the default ACLs.
Note
Classification and marking with a Layer 2 Switching Engine uses Layer 2 CoS values. Classification and marking with a Layer 2 Switching Engine does not use or set Layer 3 IP precedence or DSCP values.
Overview, page 41-xxv Transmit Queues, page 41-xxv Scheduling and Congestion Avoidance, page 41-xxv Marking, page 41-xxvii
41-24
78-13315-02
Chapter 41
Overview
QoS schedules traffic through the transmit queues based on CoS values and uses CoS-value-based transmit-queue drop thresholds to avoid congestion in traffic transmitted from Ethernet ports.
Note
Ethernet egress port scheduling and congestion avoidance uses Layer 2 CoS values. Ethernet egress port marking writes Layer 2 CoS values and, for IP traffic, the Layer 3 ToS byte.
Transmit Queues
Enter the show port capabilities command to see the queue structure of a port. The command displays one of the following:
tx-(2q2t)Two standard queues with two thresholds each tx-(1p2q2t)One strict-priority queue and two standard queues with two thresholds each tx-(1p3q1t)One strict-priority queue and three standard queues with one threshold each
All ports have a low-priority and a high-priority standard transmit queue. 1p3q1t ports have a medium-priority standard transmit queue. 1p2q2t and 1p3q1t ports have a strict-priority transmit queue in addition to the standard queues. On 2q2t ports, the default QoS configuration allocates a minimum of 80 percent of the total transmit queue size to the low-priority standard queue and a minimum of 20 percent to the high-priority standard queue. On 1p2q2t and 1p3q1t ports, the switch services traffic in the strict-priority queue before servicing the standard queues. When the switch is servicing a standard queue, after transmitting a packet, it checks for traffic in the strict-priority queue. If the switch detects traffic in the strict-priority queue, it suspends its service of the standard queue and completes service of all traffic in the strict-priority queue before returning to the standard queue. On 1p2q2t ports, the default QoS configuration allocates a minimum of 70 percent of the total transmit queue size to the low-priority standard queue, a minimum of 15 percent to the high-priority standard queue, and a minimum of 15 percent to the strict-priority queue. On 1p3q1t ports, the transmit queue size is not configurable and is allocated equally among all queues.
2q2t Ports, page 41-xxvi 1p2q2t Ports, page 41-xxvi 1p3q1t Ports, page 41-xxvi
Note
The explanations in these sections use default values. You can configure many of the parameters (for more information, see the Configuring QoS section on page 41-xxx). All ports of the same type use the same drop-threshold configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-25
Configuring QoS
2q2t Ports
For 2q2t ports, each transmit queue has two drop thresholds that function as follows:
1p2q2t Ports
For 1p2q2t ports, the low- and high-priority standard transmit queues each have two drop thresholds that function as follows:
Frames with CoS 0, 1, 2, or 3 go to the low-priority standard transmit queue (queue 1):
Using standard transmit queue 1, drop threshold 1, the switch drops frames with CoS 0 or 1
Frames with CoS 4, 6, or 7 go to the high-priority standard transmit queue (queue 2):
Using standard transmit queue 2, drop threshold 1, the switch drops frames with CoS 4 when
Frames with CoS 5 go to the strict-priority transmit queue (queue 3), where the switch drops frames only when the buffer is 100 percent full.
1p3q1t Ports
For 1p3q1t ports, the queues each have one drop threshold that function as follows:
Frames with CoS 0 and 1 go to the low-priority standard transmit queue (queue 1). Frames with CoS 2, 3, or 4 go to the medium-priority standard transmit queue (queue 2).
41-26
78-13315-02
Chapter 41
Frames with CoS 6 or 7 go to the high-priority standard transmit queue (queue 3).
Note
You can configure each standard transmit queue to use both a tail-drop and a WRED-drop threshold by mapping a CoS value to a queue or to a queue and a threshold. The switch uses tail-drop thresholds for traffic carrying CoS values mapped only to a queue. The switch uses WRED-drop thresholds for traffic carrying CoS values mapped to a queue and a threshold.
Frames with CoS 5 go to the strict-priority transmit queue (queue 3), where the switch drops frames only when the buffer is 100 percent full.
Marking
When traffic is transmitted from the switch, QoS writes the ToS byte into IP traffic (Layer 3 switching engine only) and the CoS value that was used for scheduling and congestion avoidance into ISL or 802.1Q traffic (for more information, see the Final Layer 3 Switching Engine CoS and ToS Values section on page 41-xxiv).
Note
Per-port counter information and utilization statistics are not available for ATM ports.
Note
The QoS statistics data export feature is completely separate from TopN and NetFlow Data Export and does not interact with either of these features.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-27
Configuring QoS
Default Value Disabled NoteWith QoS enabled and all other QoS parameters at default values, QoS sets Layer 3 DSCP to zero and Layer 2 CoS to zero in all traffic transmitted from the switch.
Port CoS value IntraVLAN microflow policing CoS to internal DSCP map (internal DSCP set from CoS values)
0 Disabled 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 IP precedence 0 = DSCP 0 IP precedence 1 = DSCP 8 IP precedence 2 = DSCP 16 IP precedence 3 = DSCP 24 IP precedence 4 = DSCP 32 IP precedence 5 = DSCP 40 IP precedence 6 = DSCP 48 IP precedence 7 = DSCP 56 DSCP 07 = CoS 0 DSCP 815 = CoS 1 DSCP 1623 = CoS 2 DSCP 2431 = CoS 3 DSCP 3239 = CoS 4 DSCP 4047 = CoS 5 DSCP 4855 = CoS 6 DSCP 5663 = CoS 7 Marked-down DSCP value equals original DSCP value (no markdown) None None Supports per-port classification and marking, sets DSCP to 0 in traffic from untrusted ports, no policing Disabled Disabled Disabled
IP precedence to internal DSCP map (internal DSCP set from IP precedence values)
Internal DSCP to egress CoS map (egress CoS set from internal DSCP values)
Marked-down DSCP from DSCP map Policing rules Named ACLs Default ACLs COPS1 support RSVP support QoS statistics data export
41-28
78-13315-02
Chapter 41
Feature
With QoS enabled
RuntimePort based or VLAN based ConfigPort based or VLAN based Port trust state Receive-queue tail-drop threshold percentages
Threshold 1: 50% Threshold 2: 60% Threshold 3: 80% Threshold 4: 100% Low-priority queue threshold 1: 80% Low-priority queue threshold 2: 100% High-priority queue threshold 1: 80% High-priority queue threshold 2: 100% Low-priority queue threshold 1:
Low WRED-drop threshold: 40% High WRED-drop threshold: 70%
Low WRED-drop threshold: 70% High WRED-drop threshold: 100% Low priority: 80% High priority: 20%
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-29
Configuring QoS
Default Value
1p1q0t/1p3q1t ports:
Receive queue 1 (standard) tail-drop threshold:
CoS 0, 1, 2, 3, 4, 6, and 7
Receive queue 2 (priority): CoS 5 With QoS disabled
RuntimePort based or VLAN based ConfigPort based or VLAN based Port trust state Receive-queue drop-threshold percentages Transmit-queue drop-threshold percentages Transmit-queue low-priority/high-priority bandwidth allocation ratio Transmit-queue size ratio CoS value/drop-threshold mapping
1. COPS=Common Open Policy Service
VLAN based Port based trust-cos (Layer 2 switching engine) trust-dscp (Layer 3 switching engine) All thresholds set to 100% All thresholds set to 100% 255:1
2. QoS implements receive-queue drop thresholds only on ports configured with the trust-cos port keyword. 3. On 1p1q4t and 1p2q2t ports, QoS maps CoS 5 to the strict-priority queues.
Configuring QoS
These sections describe how to configure QoS on the Catalyst 6000 family switches:
Enabling QoS, page 41-xxxi Enabling Port-Based or VLAN-Based QoS, page 41-xxxii Configuring the Trust State of a Port, page 41-xxxii Configuring the CoS Value for a Port, page 41-xxxiii Creating Policing Rules, page 41-xxxiv Deleting Policing Rules, page 41-xxxvi
41-30
78-13315-02
Chapter 41
Creating or Modifying ACLs, page 41-xxxvii Attaching ACLs to Interfaces, page 41-xlvi Detaching ACLs from Interfaces, page 41-xlvi Mapping a CoS Value to a Host Destination MAC Address/VLAN Pair, page 41-xlvii Deleting a CoS Value to a Host Destination MAC Address/VLAN Pair, page 41-xlvii Enabling or Disabling Microflow Policing of Bridged Traffic, page 41-xlviii Configuring Standard Receive-Queue Tail-Drop Thresholds, page 41-xlviii Configuring 2q2t Port Standard Transmit-Queue Tail-Drop Thresholds, page 41-xlix Configuring Standard Transmit-Queue WRED-Drop Thresholds, page 41-xlix Allocating Bandwidth Between Standard Transmit Queues, page 41-l Configuring the Receive-Queue Size Ratio, page 41-li Configuring the Transmit-Queue Size Ratio, page 41-li Mapping CoS Values to Drop Thresholds, page 41-lii Configuring DSCP Value Maps, page 41-lv Displaying QoS Information, page 41-lviii Displaying QoS Statistics, page 41-lix Reverting to QoS Defaults, page 41-lx Disabling QoS, page 41-lx Configuring COPS Support, page 41-lx Configuring RSVP Support, page 41-lxvi Configuring QoS Statistics Data Export, page 41-lxx
Note
Some QoS show commands support the config and runtime keywords. Use the runtime keyword to display the QoS values currently programmed into the hardware. When you disable QoS, the display with the runtime keyword is QoS is disabled. Use the config keyword to display values from commands that have been entered, but which may not currently be programmed into the hardware (for example, locally configured QoS values that are currently not used because COPS has been selected as the QoS policy source or QoS values configured when QoS is disabled).
Enabling QoS
To enable QoS, perform this task in privileged mode: Task Enable QoS on the switch. This example shows how to enable QoS:
Console> (enable) set qos enable QoS is enabled. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-31
Configuring QoS
The commands in this section are not supported with a Layer 2 Switching Engine. By default, QoS uses ACLs attached to ports. On a per-port basis, you can configure QoS to use ACLs attached to a VLAN. To enable VLAN-based QoS on a port, perform this task in privileged mode: Task Command set port qos mod/port {port-based | vlan-based} show port qos mod/port
Step 1 Step 2
For more information, see the Attaching ACLs section on page 41-xxiii. This example shows how to enable VLAN-based QoS on a port:
Console> (enable) set port qos 1/1-2 vlan-based Hardware programming in progress... QoS interface is set to vlan-based for ports 1/1-2. Console> (enable)
Changing a port from port-based to VLAN-based QoS detaches all ACLs from the port. Any ACLs attached to the VLAN apply to the port immediately (for more information, see the Attaching ACLs to Interfaces section on page 41-xlvi).
Command set port qos trust {untrusted | trust-cos | trust-ipprec | trust-dscp} show port qos
Note the following syntax guidelines whenconfiguring the trust state of a port:
The trust-ipprec and trust-dscp keywords are supported only with a Layer 3 switching engine. 1q4t ports (except Gigabit Ethernet) do not support the trust-ipprec and trust-dscp port keywords. You must configure a trust-ipprec or trust-dscp ACL that matches the ingress traffic to apply the trust-ipprec or trust-dscp trust state. On 1q4t ports (except Gigabit Ethernet), the trust-cos port keyword displays an error message, activates receive-queue drop thresholds, andas indicated by the error messagedoes not apply the trust-cos trust state to traffic. You must configure a trust-cos ACL that matches the ingress traffic to apply the trust-cos trust state.
41-32
78-13315-02
Chapter 41
This example shows how to configure port 1/1 with the trust-cos keyword:
Console> (enable) set port qos 1/1 trust trust-cos Port 1/1 qos set to trust-cos Console> (enable)
Note
Only ISL or 802.1Q frames carry CoS values. Configure ports with the trust-cos keyword only when the received traffic is ISL or 802.1Q frames carrying CoS values that you know to be consistent with network policy or to trust a configured port CoS value.
Whether or not QoS uses the CoS value applied with the set port qos ... cos command depends on the trust state of the port and the trust state of the traffic received through the port. The set port qos ... cos command does not configure the trust state of the port or the trust state of the traffic received through the port. To use the CoS value applied with the set port qos ... cos command, configure a trust-CoS ACL that matches the ingress traffic; or for a port that receives no tagged traffic, configure the port to trust CoS. Unmarked frames from ports configured as trusted and all frames from ports configured as untrusted are assigned the CoS value specified with this command. To configure the CoS value for a port, perform this task in privileged mode: Task Command set port qos cos cos-value show port qos
Step 1 Step 2
This example shows how to configure the port CoS value to 3 for port 1/1:
Console> (enable) set port qos 1/1 cos 3 Port 1/1 qos cos set to 3 Console> (enable)
To revert to the default CoS value for a port, perform this task in privileged mode: Task
Step 1 Step 2
Revert to the default CoS value for a port. Verify the configuration.
This example shows how to revert to the default CoS value for port 1/1:
Console> (enable) clear port qos 1/1 cos Port 1/1 qos cos setting cleared. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-33
Configuring QoS
The commands in this section are not supported with a Layer 2 Switching Engine. To create a policing rule, perform this task in privileged mode: Task Command set qos policer microflow microflow_name {rate rate} {burst burst} {drop | policed-dscp} With PFC or PFC2: set qos policer aggregate aggregate_name {rate rate} {burst burst} {drop | policed-dscp} With PFC2: set qos policer aggregate aggregate_name {rate rate} policed-dscp {erate erate} {drop | policed-dscp} burst burst
Step 1
Step 2
For more information, see the Policing Rules section on page 41-xxii. The policer_name parameter can be up to 31 characters long, is case sensitive, and may include az, AZ, 09, the dash character (-), the underscore character (_), and the period character (.). Policing rule names must start with an alphabetic character (not a digit) and must be unique across all microflow and aggregate policing rules. You cannot use keywords from any command as a policing rule name. The valid values for the rate and erate parameters are 32 Kbps (entered as 32) to 8 Gbps (entered as 8000000); or to classify all traffic as out of profile, set the rate parameter to zero (0). The PFC1 and PFC2 have the following hardware granularity for rate values: Rate Value Range 1 to 1024 (1 Mbs) 1025 to 2048 (2 Mbs) 2049 to 4096 (4 Mbs) 4097 to 8192 (8 Mbs) 8193 to 16384 (16 Mbs) 16385 to 32768 (32 Mbs) 32769 to 65536 (64 Mbs) Granularity 32768 (32 K) 65536 (64 K) 131072 (128 K) 262144 (256 K) 524288 (512 K) 1048576 (1 M) 2097152 (2 M) Rate Value Range 65537 to 131072 (128 Mbs) 131073 to 262144 (256 Mbs) 262145 to 524288 (512 Mbs) 524289 to 1048576 (1 Gps) 1048577 to 2097152 (2 Gps) 2097153 to 4194304 (4 Gps) 4194305 to 8000000 (8 Gps) Granularity 4194304 (4 M) 8388608 (8 M) 16777216 (16 M) 33554432 (32 M) 67108864 (64 M) 134217728 (128 M) 268435456 (256 M)
Within each range, QoS programs the hardware with rate values that are multiples of the granularity values. The valid values for the burst parameter are 1 Kb (entered as 1) to 32 Mb (entered as 32000).
41-34
78-13315-02
Chapter 41
Note
The burst parameter sets the token bucket size. To sustain a specific rate, set the token bucket size with the burst parameter to be at least the rate divided by 4000, because tokens are removed from the bucket every 1/4000th of a second (0.25 ms) and the bucket needs to be at least burst-size long to sustain the specified rate.
Note
Because any packet larger than the burst size is considered an out-of-profile packet, make sure that the burst size is greater than or equal to the largest packet size of the policer that is applied to it.
Note
QoS programs the hardware with values that are multiples of 32K (32,768), not with the specific value entered. Enter either the drop keyword to cause all out-of-profile packets to be dropped or the policed-dscp keyword to cause all out-of-profile packets with the normal rate to be marked down as specified in the normal markdown DSCP map (for more information, see the Mapping DSCP Markdown Values section on page 41-lvii). This example shows how to create a microflow policing rule with a 1-Mbps rate limit and a 10-Mb burst limit that marks down out-of-profile traffic:
Console> (enable) set qos policer microflow my-micro rate 1000 burst 10000 policed-dscp Hardware programming in progress... QoS policer for microflow my-micro created successfully. Console> (enable)
For PFC2, this example shows how to create an aggregate excess rate policing rule with a 64-Kbps rate limit and a 128-Kb burst limit that drops traffic exceeding these values:
Console> (enable) set qos policer aggregate test rate 64 burst 128 drop QoS policer for aggregate test created successfully. Console> (enable) show qos policer config aggregate test QoS aggregate policers: QoS aggregate policers: Aggregate name Normal rate (kbps) Burst size (kb) Normal action ----------------------------- ------------------ --------------- ------------test 64 128 policed-dscp Excess rate (kbps) Burst size (kb) Excess action ------------------ --------------- ------------64 128 drop ACL attached -----------------------------------Console> (enable)
For PFC2, this example shows how to create an aggregate excess rate policing rule with a 64-Kbps rate limit and a 100-Kb burst limit that will cause all out-of-profile packets to be marked down as specified in the normal markdown DSCP map:
Console> (enable) set qos policer aggregate test2 rate 64 burst 100 policed-dscp QoS policer for aggregate test2 created successfully.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-35
Configuring QoS
Console> (enable) show qos policer config aggregate test2 QoS aggregate policers: Aggregate name Normal rate (kbps) Burst size (kb) Normal action ----------------------------- ------------------ --------------- ------------test2 64 100 policed-dscp Excess rate (kbps) Burst size (kb) Excess action ------------------ -------------- --------------8000000 100 policed-dscp ACL attached -----------------------------------Console> (enable)
For PFC2, this example shows how to create an aggregate excess rate policing rule with a 64-Kbps rate limit and a 128-Kb burst limit that will cause traffic that exceeds the normal rate of 64 Kbps and a burst size of 96 Kb to be marked down as specified in the normal markdown DSCP map, and traffic that exceeds 128 Kbps and a burst size of 96 Kb to be dropped:
Console> (enable) set qos policer aggregate test3 rate 64 policed-dscp erate 128 drop burst 96 QoS policer for aggregate test3 created successfully. Console> (enable) show qos policer config aggregate test3 QoS aggregate policers: Aggregate name Normal rate (kbps) Burst size (kb) Normal action ----------------------------- ------------------ --------------- ------------test3 64 96 policed-dscp Excess rate (kbps) Burst size (kb) Excess action ------------------ --------------- --------------128 96 drop ACL attached -----------------------------------Console> (enable)
You can only delete policing rules if they are not attached to any interfaces (for more information, see the Detaching ACLs from Interfaces section on page 41-xlvi). To delete one or all policing rules, perform this task in privileged mode: Task Command clear qos policer {microflow | aggregate} {policer_name | all} show qos policer {config | runtime} {microflow | aggregate | all}
Step 1 Step 2
This example shows how to delete the microflow policing rule named my_micro:
Console> (enable) clear qos policer microflow my_micro my_micro QoS microflow policer cleared. Console> (enable)
41-36
78-13315-02
Chapter 41
The commands in this section are not supported with a Layer 2 Switching Engine. These sections describe ACL creation and modification:
ACL Names, page 41-xxxvii ACE Name, Marking Rule, Policing, and Filtering Syntax, page 41-xxxvii Named IP ACLs, page 41-xxxviii Modifying the Default IP ACL, page 41-xlii Creating or Modifying Named IPX ACLs, page 41-xlii Creating or Modifying Named MAC ACLs, page 41-xliii Creating or Modifying the Default IPX and MAC ACLs, page 41-xliv Deleting Named ACLs, page 41-xliv Reverting to Default Values in Default ACLs, page 41-xliv Discarding Uncommitted ACLs, page 41-xlv Committing ACLs, page 41-xlv
ACL Names
ACL names can be up to 31 characters long, are case sensitive, and may include az, AZ, 09, the dash character (-), the underscore character (_), and the period character (.). ACL names must start with an alphabetic character and must be unique across all QoS ACLs of all types. You cannot use keywords from any command as an ACL name.
For example, in an IP ACE, the command syntax is as follows: set qos acl ip acl_name {dscp dscp | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] src_ip_spec [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index]
set qos acl ip acl_nameCreates a named ACL of the specified type or adds the ACE to the ACL if it already exists. See the ACL Names section on page 41-xxxvii. {dscp dscp | trust-cos | trust-ipprec | trust-dscp}Selects a marking rule. See the Marking Rules section on page 41-xxi. [microflow microflow_name] [aggregate aggregate_name]Optionally configures policing in the ACE. See the Policing Rules section on page 41-xxii. src_ip_spec [precedence precedence | dscp-field dscp]The rest of the parameters, except the editbuffer keywords, configure filtering.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-37
Configuring QoS
Named IP ACLs
These sections describe creating or modifying IP ACLs:
Source and Destination IP Addresses and Masks, page 41-xxxviii Port Operator Parameters, page 41-xxxviii Precedence Parameter Options, page 41-xxxviii IP ACEs for TCP Traffic, page 41-xxxix IP ACEs for UDP Traffic, page 41-xxxix IP ACEs for ICMP Traffic, page 41-xl IP ACEs for IGMP Traffic, page 41-xl IP ACLs for Other Layer 4 Protocols, page 41-xli IP ACEs for Any IP Traffic, page 41-xli
Four-part dotted-decimal 32-bit values The keyword any as an abbreviation for a wildcard address and wildcard mask of 0.0.0.0 255.255.255.255 The abbreviation host ip_address for an address and wildcard mask of ip_address 0.0.0.0
lt (less than) gt (greater than) eq (equal) neq (not equal) range (with a pair of port parameters)
See the Guidelines for Using Layer 4 Operations section on page 16-20 for restrictions that apply to QoS ACLs.
41-38
78-13315-02
Chapter 41
Command set qos acl ip {acl_name} {{dscp dscp} | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] tcp {src_ip_spec} [{operator} {port} [port]] {dest_ip_spec} [{operator} {port} [port]] [established] [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index] show qos acl info {acl_name | all} editbuffer [editbuffer_index]
Step 2
For port parameter keyword options, see the IP ACE Layer 4 TCP Classification Criteria section on page 41-xvii. The established keyword matches traffic with the ACK or RST bits set. This example shows how to create an IP ACE for TCP traffic:
Console> (enable) set qos acl ip my_IPacl trust-ipprec microflow my-micro aggregate my-agg tcp any any my_IPacl editbuffer modified. Use commit command to apply changes. Console> (enable)
Command set qos acl ip {acl_name} {{dscp dscp} | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] udp {src_ip_spec} [{operator} {port} [port]] {dest_ip_spec} [{operator} {port} [port]] [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index] show qos acl info {acl_name | all} editbuffer [editbuffer_index]
Step 2
For port parameter keyword options, see the IP ACE Layer 4 UDP Classification Criteria section on page 41-xviii. This example shows how to create an IP ACE for UDP traffic:
Console> (enable) set qos acl ip my_IPacl trust-ipprec microflow my-micro aggregate my-agg udp any any my_IPacl editbuffer modified. Use commit command to apply changes. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-39
Configuring QoS
Command set qos acl ip acl_name {dscp dscp | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] icmp src_ip_spec dest_ip_spec [icmp_type [icmp_code] | icmp_message] [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index] show qos acl info {acl_name | all} editbuffer [editbuffer_index]
Step 2
For icmp_code and icmp_type parameter keyword options, see the IP ACE Layer 4 ICMP Classification Criteria section on page 41-xviii. This example shows how to create an IP ACE for ICMP echo traffic:
Console> icmp any my_IPacl Console> (enable) set qos acl ip my_IPacl trust-ipprec microflow my-micro aggregate my-agg any echo editbuffer modified. Use commit command to apply changes. (enable)
Note
QoS does not support IGMP traffic when IGMP snooping is enabled. To create or modify an IP ACE for IGMP traffic, perform this task in privileged mode: Task Command set qos acl ip acl_name {dscp dscp | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] igmp src_ip_spec dest_ip_spec [igmp_type] [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index] show qos acl info {acl_name | all} editbuffer [editbuffer_index]
Step 1
Step 2
41-40
78-13315-02
Chapter 41
For igmp_type parameter keyword options, see the IP ACE Layer 4 IGMP Classification Criteria section on page 41-xix. This example shows how to create an IP ACE for IGMP protocol independent multicast (PIM) traffic:
Console> igmp any my_IPacl Console> (enable) set qos acl ip my_IPacl trust-ipprec microflow my-micro aggregate my-agg any pim editbuffer modified. Use commit command to apply changes. (enable)
Command set qos acl ip acl_name {dscp dscp | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] protocol src_ip_spec dest_ip_spec [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index] show qos acl info {acl_name | all} editbuffer [editbuffer_index]
Step 2
For protocol parameter keyword options, see the IP ACE Layer 4 Protocol Classification Criteria section on page 41-xvii. This example shows how to create an IP ACE for IPINIP traffic:
Console> (enable) set qos acl ip my_IPacl trust-ipprec microflow my-micro aggregate my-agg ipinip any any my_IPacl editbuffer modified. Use commit command to apply changes. Console> (enable)
Command set qos acl ip acl_name {dscp dscp | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] src_ip_spec [precedence precedence | dscp-field dscp] [before editbuffer_index | modify editbuffer_index] show qos acl info {acl_name | all} editbuffer [editbuffer_index]
Step 2
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-41
Configuring QoS
Command set qos acl default-action ip {dscp dscp | trust-cos | trust-ipprec | trust-dscp} [microflow microflow_name] [aggregate aggregate_name] show qos acl info default-action {ip | ipx | mac | all}
Step 2
For more information, see the Default ACLs section on page 41-xx. This example shows how to modify the default IP ACL:
Console> (enable) set qos acl default-action ip dscp 5 microflow my-micro aggregate my-agg QoS default-action for IP ACL is set successfully. Console> (enable)
Command With PFC: set qos acl ipx acl_name {dscp dscp | trust-cos} [aggregate aggregate_name] protocol src_net [dest_net[.dest_node] [[dest_net_mask].dest_node_ mask]] [before editbuffer_index | modify editbuffer_index] With PFC2: set qos acl ipx acl_name aggregate aggregate_name protocol src_net [dest_net[.dest_node] [[dest_net_mask].dest_node_ mask]] [before editbuffer_index | modify editbuffer_index]
Step 2
The protocol parameter can be specified numerically (0255) or with these keywords: any, ncp (17), netbios (20), rip (1), sap (4), or spx (5). The src_net and dest_net parameters are IPX network numbers, entered as up to 8 hexadecimal digits in the range 1 to FFFFFFFE (-1 matches any network number). You do not need to enter leading zeros.
41-42
78-13315-02
Chapter 41
If you specify an IPX destination network, IPX ACEs support the following optional parameters:
An IPX destination network mask, entered as up to 8 hexadecimal digits in the range 1 to FFFFFFFE (-1 matches any network number). Use one bits, which need not be contiguous, where you want wildcards. An IPX destination node, entered as 12 hexadecimal digits (48 bits), formatted as a dotted triplet of four-digit hexadecimal digits each (xxxx.xxxx.xxxx). If you specify an IPX destination node, IPX ACEs support an IPX destination node mask, entered as 12 hexadecimal digits (48 bits), formatted as a dotted triplet of four-digit hexadecimal digits each (xxxx.xxxx.xxxx). Use one bits, which need not be contiguous, where you want wildcards.
Command With PFC: set qos acl mac acl_name {dscp dscp | trust-cos} [aggregate aggregate_name] src_mac_spec dest_mac_spec [ethertype] [before editbuffer_index | modify editbuffer_index] With PFC2: set qos acl mac acl_name aggregate aggregate_name src_mac_spec dest_mac_spec [ethertype] [before editbuffer_index | modify editbuffer_index]
Step 2
Enter the src_mac_spec and dest_mac_spec parameters as a MAC address and a mask. Each parameter is 12 hexadecimal digits (48 bits), formatted as dash-separated pairs. Use one bits, which need not be contiguous, where you want wildcards. Use the any keyword for a MAC address and mask of 0-0-0-0-0-0 ff-ff-ff-ff-ff-ff. Use the host keyword with a MAC address to specify an all-zero mask (mac_address 0-0-0-0-0-0). Enter the ethertype parameter as 4 hexadecimal digits (16 bits) prefaced with 0x (for example, 0x0600) or as a keyword (see the MAC ACE Layer 2 Classification Criteria section on page 41-xx). This example shows how to create a MAC ACE:
Console> (enable) set qos acl mac my_MACacl trust-cos aggregate my-agg any any my_MACacl editbuffer modified. Use commit command to apply changes. Console> (enable)
Note
QoS MAC ACLs that do not include an ethertype parameter match traffic with any value in the ethertype field, which allows MAC-level QoS to be applied to any traffic except IP and IPX.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-43
Configuring QoS
Command With PFC: set qos acl default-action {ipx | mac} {dscp dscp | trust-cos} [aggregate aggregate_name] With PFC2: set qos acl default-action {ipx | mac} aggregate aggregate_name
Step 2
For more information, see the Default ACLs section on page 41-xx. This example shows how to modify the default IPX ACL:
Console> (enable) set qos acl default-action ipx dscp 5 aggregate my-agg QoS default-action for IPX ACL is set successfully. Console> (enable)
Note
Command clear qos acl acl_name [editbuffer_index] show qos acl info {acl_name | all}
Command clear qos acl default-action {ip | ipx | mac} show qos acl info default-action {ip | ipx | mac | all}
Revert to the default values for a default ACL. Verify the configuration.
41-44
78-13315-02
Chapter 41
This example shows how to revert to the default values for the default IP ACL:
Console> (enable) clear qos acl default-action ip Hardware programming in progress... QoS default-action for IP ACL is restored to default setting. Console> (enable)
Command rollback qos acl {acl_name | all} show qos acl info {acl_name | all}
Discard an uncommitted ACL. If you discarded changes to an existing ACL, verify the configuration.
Note
Changes to the default ACLs take effect immediately and cannot be discarded.
Committing ACLs
When you create, change, or delete a named ACL, the changes exist temporarily in an edit buffer in memory. To commit the ACL so that it can be used, perform this task in privileged mode: Task
Step 1 Step 2
Command commit qos acl acl_name show config qos acl {acl_name | all}
Note
When you commit an ACL that has already been attached to interfaces, the new values go into effect immediately. Changes to the default ACLs do not need to be committed. See Configuring and Storing VACLs and QoS ACLs in Flash Memory section on page 16-42 for information about where QoS ACLs are stored.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-45
Configuring QoS
The commands in this section are not supported with a Layer 2 Switching Engine. You can attach one ACL of each type to each VLAN and to each port configured for port-based QoS. You cannot attach ACLs to a port configured for VLAN-based QoS (for more information, see the Enabling Port-Based or VLAN-Based QoS section on page 41-xxxii). When an ACL of a particular type (IP, IPX, or Ethernet) is already attached to an interface, attaching a different ACL of the same type detaches the previous ACL. To attach an ACL to a port or a VLAN, perform this task in privileged mode: Task Command set qos acl map acl_name {mod/port | vlan} show qos acl map {config | runtime} {acl_name | mod/port | vlan | all}
Step 1 Step 2
This example shows how to attach an ACL named my_acl to port 2/1:
Console> (enable) set qos acl map my_acl 2/1 Hardware programming in progress... ACL my_acl is attached to port 2/1. Console> (enable)
Note
The commands in this section are not supported with a Layer 2 Switching Engine. To detach an ACL from a port or a VLAN, perform this task in privileged mode: Task Command clear qos acl map acl_name {mod/port | vlan | all} show qos acl map {config | runtime} {acl_name | mod/port | vlan | all}
Step 1 Step 2
41-46
78-13315-02
Chapter 41
This example shows how to detach an ACL named my_acl from port 2/1:
Console> (enable) clear qos acl map my_acl 2/1 Hardware programming in progress... ACL my_acl is detached from port 2/1. Console> (enable)
This example shows how to detach an ACL named my_acl from VLAN 4:
Console> (enable) clear qos acl map my_acl 4 Hardware programming in progress... ACL my_acl is detached from vlan 4. Console> (enable)
Note
QoS only supports this command with a Layer 2 Switching Engine. To map a CoS value to all frames destined for a particular host destination MAC address and VLAN number value pair, perform this task in privileged mode: Task Command set qos mac-cos dest_mac VLAN cos_value show qos mac-cos {dest_mac [vlan] | all}
Step 1 Step 2
Map a CoS value to a host destination MAC address/VLAN pair. Verify the configuration.
This example shows how to map CoS 2 to a destination MAC address and VLAN 525:
Console> (enable) set qos mac-cos 00-40-0b-30-03-48 525 2 CoS 2 is assigned to 00-40-0b-30-03-48 vlan 525. Console> (enable)
QoS only supports this command with a Layer 2 Switching Engine. To delete a host destination MAC address and VLAN number value pair CoS assignment, perform this task in privileged mode: Task Command clear qos mac-cos {dest_mac [vlan] | all} show qos mac-cos {dest_mac [vlan] | all}
Step 1 Step 2
Delete a host destination MAC address and VLAN number value pair CoS assignment. Verify the configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-47
Configuring QoS
This example shows how to delete all CoS assignments to destination MAC addresses and VLANs:
Console> (enable) clear qos mac-cos all All CoS to Mac/Vlan entries are cleared. Console> (enable)
The commands in this section are not supported with a Layer 2 Switching Engine. By default, microflow policing rules affect only Layer 3-switched traffic. To enable or disable microflow policing of bridged traffic on the switch or on specified VLANs, perform one of these tasks in privileged mode: Task Enable microflow policing of bridged traffic on the switch or on specified VLANs. Disable microflow policing of bridged traffic on the switch or on specified VLANs. Verify the configuration. Command set qos bridged-microflow-policing {enable | disable} vlan set qos bridged-microflow-policing {enable | disable} vlan show qos bridged-packet-policing {config | runtime} vlan
Note
With Layer 3 Switching Engine II, to do any microflow policing, you must enable microflow policing of bridged traffic. For more information, see the Policing Rules section on page 41-xxii. This example shows how to enable microflow policing of traffic in VLANs 1 through 20:
Console> (enable) set qos bridged-microflow-policing enable 1-20 QoS microflow policing is enabled for bridged packets on vlans 1-20. Console> (enable)
For more information, see the Receive Queues section on page 41-xi.
41-48
78-13315-02
Chapter 41
QoS maintains separate configurations for 1q4t ports and 1p1q4t ports. With either keyword, this command configures only the standard queue. Specify queue 1 for both port types (the threshold in the strict-priority queue is not separately configurable; it uses threshold 4 as specified for queue 1). The thresholds are all specified as percentages ranging from 1 to 100. A value of 10 indicates a threshold when the buffer is 10 percent full. This example shows how to configure the standard receive-queue tail-drop thresholds:
Console> (enable) set qos drop-threshold 1q4t rx queue 1 20 40 75 100 Receive drop thresholds for queue 1 set at 20% 40% 75% 100% Console> (enable)
Note
Queue number 1 is the low-priority transmit queue and queue number 2 is high priority. In each queue, the low-priority threshold number is 1 and the high-priority threshold number is 2. The thresholds are all specified as percentages ranging from 1 to 100. A value of 10 indicates a threshold when the buffer is 10 percent full. This example shows how to configure the low-priority transmit-queue tail-drop thresholds:
Console> (enable) set qos drop-threshold 2q2t tx queue 1 40 100 Transmit drop thresholds for queue 1 set at 40% 100% Console> (enable)
Note
Note
1p3q1t ports also have nonconfigurable tail-drop thresholds (see the 1p3q1t Ports section on page 41-xxvi).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-49
Configuring QoS
To configure the standard transmit-queue WRED-drop thresholds on all ports of each type, perform this task in privileged mode: Task Configure the standard transmit-queue WRED-drop thresholds on all ports of a given type. Command set qos wred 1p2q2t [tx] queue q# [thr1Lo:]thr1Hi [thr2Lo:]thr2Hi set qos wred 1p3q1t [tx] queue q# [thr1Lo:]thr1Hi
For 1p2q2t ports, queue number 1 is the low-priority transmit queue and queue number 2 is high priority. In each queue, the low-priority threshold is number 1 and the high-priority threshold is number 2. For 1p3q1t ports, queue number 1 is the low-priority transmit queue, queue number 2 is medium priority, and queue number 3 is high priority. In each queue, the threshold is number 1. The thresholds are all specified as percentages ranging from 0 to 100. A value of 10 indicates a threshold when the buffer is 10 percent full. You can configure both the low WRED threshold and the high WRED threshold. You must set the low threshold to a lower percentage than the high threshold. The low WRED threshold is the traffic level under which no traffic is dropped. The high WRED threshold is the traffic level above which all traffic is dropped. Traffic in the queue between the low and high WRED thresholds has an increasing chance of being dropped as the queue fills. The default low WRED threshold is zero (all traffic has some chance of being dropped). This example shows how to configure the low-priority transmit-queue WRED-drop thresholds:
Console> (enable) set qos wred 1p2q2t queue 1 40:70 70:100 WRED thresholds for queue 1 set to 40:70 and 70:100 on all WRED-capable 1p2q2t ports. Console> (enable)
Note
QoS maintains separate configurations for each port type. This command configures only the standard queues; the strict-priority queue requires no configuration. The valid values for weight range from 1255.
41-50
78-13315-02
Chapter 41
This example shows how to allocate bandwidth for the 2q2t ports:
Console> (enable) set qos wrr 2q2t 30 70 QoS wrr ratio is set successfully. Console> (enable)
Valid port_type parameters are 2q2t and 1p2q2t. QoS maintains separate configurations for each port type. This example shows how to configure the transmit-queue size ratio:
Console> (enable) set qos txq-ratio 2q2t 80 20 QoS txq-ratio is set successfully. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-51
Configuring QoS
Associating 1q4t, 2q2t Ports, page 41-lii Associating 1p1q4t, 1p2q2t Ports, page 41-lii Associating 1p1q0t, 1p3q1t Ports, page 41-liii Reverting to CoS Map Defaults, page 41-liv
Command set qos map 2q2t tx q# thr# cos coslist show qos info config {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx}
Receive queue 1 (standard) threshold 1 = transmit queue 1 (standard low priority) threshold 1 Receive queue 1 (standard) threshold 2 = transmit queue 1 (standard low priority) threshold 2 Receive queue 1 (standard) threshold 3 = transmit queue 2 (standard high priority) threshold 1 Receive queue 1 (standard) threshold 4 = transmit queue 2 (standard high priority) threshold 2
Use the transmit queue and transmit-queue drop-threshold values in this command. This example shows how to associate the CoS values 0 and 1 to both standard receive-queue 1/threshold 1 and standard transmit- queue 1/threshold 1:
Console> (enable) set qos map 2q2t tx 1 1 cos 0,1 Qos tx priority queue and threshold mapped to cos successfully. Console> (enable)
Command set qos map 1p1q4t rx q# thr# cos coslist show qos info config {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx}
41-52
78-13315-02
Chapter 41
Queue 1 is the standard queue. Queue 2 is the strict-priority queue. Threshold numbers range from 1 for low priority to 4 for high priority. This example shows how to associate the CoS value 5 to strict-priority receive-queue 2/threshold 1:
Console> (enable) set qos map 1p1q4t rx 2 1 cos 5 Qos rx strict queue and threshold mapped to cos successfully. Console> (enable)
Command set qos map 1p2q2t tx q# thr# cos coslist show qos info config {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx}
Queue 1 is standard low priority, queue 2 is high priority, and queue 3 is strict priority. Threshold 1 low priority and 2 is high priority. This example shows how to associate the CoS value 5 to strict-priority transmit-queue 3/drop threshold 1:
Console> (enable) set qos map 1p2q2t tx 3 1 cos 5 Qos tx strict queue and threshold mapped to cos successfully. Console> (enable)
Command set qos map 1p1q0t rx q# cos coslist show qos info config {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx}
Queue 1 is the standard queue. Queue 2 is the strict-priority queue. This example shows how to associate the CoS value 5 to strict-priority receive-queue 2:
Console> (enable) set qos map 1p1q0t rx 2 cos 7 QoS queue mapped to cos successfully. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-53
Configuring QoS
To associate a CoS value with the tail-drop threshold, map the CoS value to the queue. To associate a CoS value with the WRED-drop threshold, map the CoS value to the queue and threshold.
To associate CoS values to the 1p3q1t transmit-queue drop thresholds, perform this task in privileged mode: Task
Step 1 Step 2
Command set qos map 1p3q1t tx q# [thr#] cos coslist show qos info config {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx}
Queue 1 is standard low priority, queue 2 is medium priority, and queue 3 is high priority. Queue 4 is strict priority. To map CoS values to the tail-drop threshold, omit the threshold number or enter 0. The WRED-drop threshold number is 1. This example shows how to associate the CoS value 0 to transmit-queue 1/drop threshold 1:
Console> (enable) set qos map 1p3q1t tx 1 1 cos 0 Qos tx strict queue and threshold mapped to cos successfully. Console> (enable)
Command clear qos map {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx} show qos info config {1p1q4t rx | 1p1q0t rx | 1p2q2t tx | 2q2t tx | 1p3q1t tx}
41-54
78-13315-02
Chapter 41
The commands in this section are not supported with a Layer 2 Switching Engine. These sections describe how DSCP values are mapped to other values:
Mapping Received CoS Values to Internal DSCP Values, page 41-lv Mapping Received IP Precedence Values to Internal DSCP Values, page 41-lvi Mapping Internal DSCP Values to Egress CoS Values, page 41-lvi Mapping DSCP Markdown Values, page 41-lvii
Command set qos cos-dscp-map dscp1 dscp2 dscp3 dscp4 dscp5 dscp6 dscp7 dscp8 show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Map received CoS values to internal DSCP values. Verify the configuration.
Enter 8 DSCP values to which QoS maps received CoS values 0 through 7. This example shows how to map received CoS values to internal DSCP values:
Console> (enable) set qos cos-dscp-map 20 30 1 43 63 12 13 8 QoS cos-dscp-map set successfully. Console> (enable)
To revert to default CoS to DSCP value mapping, perform this task in privileged mode: Task
Step 1 Step 2
Command clear qos cos-dscp-map show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-55
Configuring QoS
Command set qos ipprec-dscp-map dscp1 dscp2 dscp3 dscp4 dscp5 dscp6 dscp7 dscp8 show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Map received IP precedence values to internal DSCP values. Verify the configuration.
Enter 8 internal DSCP values to which QoS maps received IP precedence values 0 through 7. This example shows how to map received IP precedence values to internal DSCP values:
Console> (enable) set qos ipprec-dscp-map 20 30 1 43 63 12 13 8 QoS ipprec-dscp-map set successfully. Console> (enable)
To revert to default IP precedence to DSCP value mapping, perform this task in privileged mode: Task
Step 1 Step 2
Command
Revert to IP precedence value to DSCP value map clear qos ipprec-dscp-map defaults. Verify the configuration. show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Command set qos dscp-cos-map dscp_list:cos ... show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Map internal DSCP values to egress CoS values. Verify the configuration.
For more information, see the Internal DSCP Values section on page 41-xv and the Ethernet Egress Port Scheduling, Congestion Avoidance, and Marking section on page 41-xxiv.
41-56
78-13315-02
Chapter 41
Enter up to 64 internal DSCP value list/egress CoS value pairs. This example shows how to map internal DSCP values to egress CoS values:
Console> (enable) set qos dscp-cos-map 20-25:7 33-38:3 QoS dscp-cos-map set successfully. Console> (enable)
To revert to default CoS to DSCP value mapping, perform this task in privileged mode: Task
Step 1 Step 2
Command clear qos dscp-cos-map show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Command set qos policed-dscp-map dscp_list:markdown_dscp ... set qos policed-dscp-map [normal | excess] in_profile_dscp_list:policed_dscp ... show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Map DSCP values to markdown DSCP values. With PFC2, map DSCP values to markdown DSCP values. Verify the configuration.
For more information, see the Policing Rules section on page 41-xxii. Enter up to 64 DSCP-value-list/DSCP-value pairs. This example shows how to map DSCP markdown values:
Console> (enable) set qos policed-dscp-map 20-25:7 33-38:3 QoS dscp-dscp-map set successfully. Console> (enable)
This example shows how to map DSCP markdown values for packets exceeding the excess rate:
Console> (enable) set qos policed-dscp-map 33:30 QoS normal-rate policed-dscp-map set successfully. Console> (enable) set qos policed-dscp-map excess-rate 33:30 QoS excess-rate policed-dscp-map set successfully. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-57
Configuring QoS
Note
Configure marked-down DSCP values that map to CoS values consistent with the markdown penalty (see the Mapping Internal DSCP Values to Egress CoS Values section on page 41-lvi). To revert to default DSCP markdown value mapping, perform this task in privileged mode: Task Command clear qos policed-dscp-map [normal-rate | excess-rate] show qos maps {config | runtime} [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
Step 1 Step 2
Note
Without the normal-rate or the excess-rate keywords, the clear qos policed-dscp-map command clears only the normal policed-dscp map.
This example shows how to display the QoS runtime information for port 2/1:
Console> show qos info config 2/1 QoS setting in NVRAM: QoS is enabled Port 2/1 has 2 transmit queue with 2 drop thresholds (2q2t). Port 2/1 has 1 receive queue with 4 drop thresholds (1q4t). Interface type:vlan-based ACL attached: The qos trust type is set to untrusted. Default CoS = 0 Queue and Threshold Mapping: Queue Threshold CoS ----- --------- --------------1 1 0 1 1 2 2 3 2 1 4 5 2 2 6 7 Rx drop thresholds: Rx drop thresholds are disabled for untrusted ports. Queue # Thresholds - percentage (abs values ) ------- -------------------------------------
41-58
78-13315-02
Chapter 41
1 50% 60% 80% 100% Tx drop thresholds: Queue # Thresholds - percentage (abs values ) ------- ------------------------------------1 40% 100% 2 40% 100% Tx WRED thresholds: WRED feature is not supported for this port_type. Queue Sizes: Queue # Sizes - percentage (abs values ) ------- ------------------------------------1 80% 2 20% WRR Configuration of ports with speed 1000Mbps: Queue # Ratios (abs values ) ------- ------------------------------------1 100 2 255 Console> (enable)
This example shows how to display QoS statistics for port 2/1:
Console> (enable) show qos statistics 2/1 On Transmit:Port 2/1 has 2 Queue(s) 2 Threshold(s) Q # Threshold #:Packets dropped --- ----------------------------------------------1 1:0 pkts, 2:0 pkts 2 1:0 pkts, 2:0 pkts On Receive:Port 2/1 has 1 Queue(s) 4 Threshold(s) Q # Threshold #:Packets dropped --- ----------------------------------------------1 1:0 pkts, 2:0 pkts, 3:0 pkts, 4:0 pkts
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-59
Configuring QoS
Reverting to defaults disables QoS, because QoS is disabled by default. To revert to QoS defaults, perform this task in privileged mode: Task Revert to QoS defaults. This example shows how to revert to QoS defaults:
Console> (enable) clear qos config This command will disable QoS and take values back to factory default. Do you want to continue (y/n) [n]? y QoS config cleared. Console> (enable)
Disabling QoS
To disable QoS, perform this task in privileged mode: Task Disable QoS on the switch. This example shows how to disable QoS:
Console> (enable) set qos disable QoS is disabled. Console> (enable)
The commands in this section are not supported with a Layer 2 Switching Engine.
Note
COPS can configure QoS only for IP traffic. Use the CLI or SNMP to configure QoS for all other traffic. These sections describe configuring COPS support:
Port ASICs, page 41-lxi Understanding QoS Policy, page 41-lxi Selecting COPS as the QoS Policy Source, page 41-lxi Selecting Locally Configured QoS Policy, page 41-lxii
41-60
78-13315-02
Chapter 41
Enabling Use of Locally Configured QoS Policy, page 41-lxii Assigning Port Roles, page 41-lxiii Removing Roles from Port ASICs, page 41-lxiii Deleting Roles, page 41-lxiv Configuring Policy Decision Point Servers, page 41-lxiv Deleting PDP Server Configuration, page 41-lxiv Configuring the COPS Domain Name, page 41-lxv Deleting the COPS Domain Name, page 41-lxv Configuring the COPS Communications Parameters, page 41-lxv
Note
Throughout this publication and all Catalyst 6000 family documents, the term COPS refers to COPS support as implemented on the Catalyst 6000 family switches.
Port ASICs
Some COPS support features affect all ports controlled by a port ASIC. The following sections use the term per-ASIC to identify features that configure all ports on the same port ASIC:
The port ASICs on Gigabit Ethernet switching modules control up to 4 ports each: 14, 58, 912, and 1316. There is a port ASIC on 10-Mbps, 10/100-Mbps, and 100-Mbps Ethernet switching modules that controls all ports. On 10-Mbps, 10/100-Mbps, and 100-Mbps Ethernet switching modules, there is another set of port ASICs that control 12 ports each (112, 1324, 2536, and 3748), but COPS cannot configure them. Changes to an EtherChannel port apply to all ports in the EtherChannel and to all ports controlled by the ASIC (or ASICs) that control the EtherChannel ports.
Select COPS as the QoS policy source. Verify the QoS policy source.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-61
Configuring QoS
This example shows how to select COPS as the QoS policy source:
Console> (enable) QoS policy source Console> (enable) QoS policy source Console> (enable) set qos policy-source cops for the switch set to COPS. show qos policy-source for the switch set to COPS.
Selecting COPS as the QoS policy source switches the following values from locally configured values to received COPS values:
All DSCP maps Named and default ACL definitions Microflow and aggregate policing rules CoS to queue assignments Threshold configuration WRR weight and buffer configuration Default port CoS and ACL-to-interface attachments
Select locally configured QoS policy. Verify the QoS policy source.
Command
Enable use of locally configured QoS policy on a set port qos policy-source {local | cops} port. Verify the QoS policy source for the port. show port qos
41-62
78-13315-02
Chapter 41
This example shows how to enable use of locally configured QoS policy:
Console> (enable) set port qos 1/1 policy-source local QoS policy source set to local on port(s) 1/1-2. Console> (enable)
Command set port cops {mod/port} roles role1 [role2] ... show port cops [mod[/port]]
Assign roles to a port ASIC. Verify the roles for the port.
This example shows how to assign two new roles to the ASIC controlling port 2/1:
Console> (enable) set port cops 2/1 roles mod2ports1-12 access New role mod2ports1-12 created. New role access created. Roles added for port 2/1-12. Console> (enable)
Command clear port cops {mod/port} {all-roles | roles role1 [role2] ...} show port cops [mod[/port]]
Remove a role from a port ASIC. Verify the roles for the port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-63
Configuring QoS
Deleting Roles
To delete a role (which removes it from all ports), perform this task in privileged mode: Task
Step 1 Step 2
Command clear cops {all-roles | roles role1 [role2] ...} show port cops [mod[/port]]
Delete a role. Verify the roles for the port. This example shows how to delete a role:
Console> (enable) clear cops roles backbone_port main_port Roles cleared. Console> (enable)
COPS and RSVP can use the same policy decision point (PDP) server. COPS obtains QoS policy from a PDP server. Configure a primary PDP server and, optionally, a backup PDP server. To configure a PDP server, perform this task in privileged mode: Task Command set cops server ip_address [port] [primary] [diff-serv | rsvp] show cops info
Step 1 Step 2
The ip_address parameter can be the IP address or name of the server. The port variable is the PDP server TCP port number. Use the diff-serv keyword to set the address only for COPS. This example shows how to configure a PDP server:
Console> (enable) set cops server my_server1 primary my_server1 added to the COPS diff-serv server table as primary server. my_server1 added to the COPS rsvp server table as primary server. Console> (enable)
Command clear cops server {all | ip_address [diff-serv | rsvp]} show cops info
41-64
78-13315-02
Chapter 41
Configure the COPS domain name. Verify the COPS domain name.
Command set cops retry-interval initial increment maximum show cops info
Configure the parameters COPS uses to communicate with the PDP server. Verify the configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-65
Configuring QoS
Enter the parameters as a number of seconds in the range 0 to 65535. The value of the initial parameter plus the value of the increment parameter must not exceed the value of the maximum parameter. This example shows how to configure the parameters COPS uses to communicate with the PDP server:
Console> (enable) set cops retry-interval 15 1 30 Connection retry intervals set. Console> (enable)
The commands in this section are not supported with a Layer 2 Switching Engine. These sections describe configuring RSVP null service template and receiver proxy functionality support:
Enabling RSVP Support, page 41-lxvi Disabling RSVP Support, page 41-lxvii Enabling Participation in the DSBM Election, page 41-lxvii Disabling Participation in the DSBM Election, page 41-lxvii Configuring Policy Decision Point Servers, page 41-lxviii Deleting PDP Server Configuration, page 41-lxviii Configuring RSVP Policy Timeout, page 41-lxix Configuring RSVP Use of Local Policy, page 41-lxix
Note
Throughout this publication and all Catalyst 6000 family switch documents, the term RSVP refers to RSVP null service template and receiver proxy functionality support as implemented on the Catalyst 6000 family switches.
Command set qos rsvp {enable | disable} show qos rsvp info show qos rsvp flow-info
Enable RSVP support on the switch. Verify the configuration. Display RSVP activity. This example shows how to enable RSVP support:
Console> (enable) set qos rsvp enable RSVP enabled on the switch. Console> (enable)
41-66
78-13315-02
Chapter 41
Command set qos rsvp {enable | disable} show qos rsvp info
Disable RSVP support on the switch. Verify the configuration. This example shows how to disable RSVP support:
Console> (enable) set qos rsvp disable RSVP disabled on the switch. Console> (enable)
Note
The DSBM is not reelected when additional RSVP devices join the network. To control which device is the DSBM, disable election participation in all devices except the one that you want elected as DSBM. After the DSBM is elected, reenable election participation in other devices, as appropriate for the network configuration. To enable the participation of a port in the election of the DSBM, perform this task in privileged mode: Task Command
Step 1 Step 2
Enable the participation of a port in the election of set port rsvp {mod/port} dsbm-election the DSBM. {disable | enable priority} Verify the configuration of the port. The range for the priority parameter is 128 to 255. This example shows how to enable the participation of ports 2/1 and 3/2 in the election of the DSBM:
Console> (enable) set port rsvp 2/1,3/2 dsbm-election enable 232 DSBM enabled and priority set to 232 for ports 2/1,3/2. Console> (enable)
Command set port rsvp {mod/port} dsbm-election {disable | enable priority} show port rsvp show port rsvp [mod[/port]]
Disable the participation of a port in the election of the DSBM. Verify the configuration.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-67
Configuring QoS
This example shows how to disable the participation of port 2/1 in the election of the DSBM:
Console> (enable) set port rsvp 2/1 dsbm-election disable DSBM disabled for port 2/1. Console> (enable)
COPS and RSVP can use the same PDP server. When the switch is the DSBM, RSVP communicates with a PDP server. Configure a primary PDP server and, optionally, a backup PDP server. To configure a PDP server, perform this task in privileged mode: Task Command set cops server ip_address [port] [primary] [diff-serv | rsvp] show cops info
Step 1 Step 2
The ip_address parameter can be the IP address or name of the server. The port variable is the PDP server TCP port number. Use the rsvp keyword to set the address only for RSVP. This example shows how to configure a PDP server:
Console> (enable) set cops server my_server1 primary rsvp my_server1 added to the COPS rsvp server table as primary server. Console> (enable)
Command clear cops server {all | ip_address [diff-serv | rsvp]} show cops info
Use the rsvp keyword to delete only the RSVP address. This example shows how to delete PDP server configuration:
Console> All COPS All COPS Console> (enable) clear cops server all diff-serv servers cleared. rsvp servers cleared. (enable)
41-68
78-13315-02
Chapter 41
Command set qos rsvp policy-timeout timeout show qos rsvp info
Enter the timeout parameter as a number of minutes in the range 0 to 65535 (default is 30). This example shows how to configure the RSVP policy timeout:
Console> (enable) set qos rsvp policy-timeout 45 RSVP database policy timeout set to 45 minutes. Console> (enable)
Command set qos rsvp local-policy {forward | reject} show qos rsvp info
Configure how RSVP operates when there is no communication with the PDP server. Verify the configuration.
The forward keyword sets the local policy to forward all new or modified RSVP path messages. The reject keyword sets the local policy to reject all new or modified RSVP path messages. This example shows how to change the default local RSVP policy setting to reject all new or modified RSVP path messages:
Console> (enable) set qos rsvp local-policy reject RSVP local policy set to reject. Console> (enable)
Note
The RSVP local policy is only used until the RSVP policy timeout expires after the connection to the PDP is lost. After the RSVP policy timeout expires, the switch behaves as an SBM client. RSVP messages pass through the switch unchanged regardless of the RSVP local policy setting. The RSVP local policy setting is not used if the switch never establishes a connection to the PDP.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-69
Configuring QoS
Enabling QoS Statistics Data Export Globally, page 41-lxx Enabling Per-Port QoS Statistics Data Export, page 41-lxxi Enabling Per-Aggregate Policer QoS Statistics Data Export, page 41-lxxii Setting the QoS Statistics Data Export Time Interval, page 41-lxxiii Configuring QoS Statistics Data Export Destination Host and UDP Port, page 41-lxxiii Displaying QoS Statistics Information, page 41-lxxiv
Command set qos statistics export enable | disable show qos statistics export info
This example shows how to enable QoS statistics data export globally and verify the configuration:
Console> (enable) set qos statistics export enable Export is enabled. Export destination:172.20.52.3 SYSLOG facility LOG_LOCAL6 (176), severity LOG_DE BUG (7) Aggregate policer export is not supported Console> (enable) show qos statistics export info Statistics export status and configuration information -----------------------------------------------------Export status: enabled Export time interval: 300 Export destination:172.20.52.3 SYSLOG facility LOG_LOCAL6 (176), severity LOG_DE BUG (7) Port Export ------ -------1/1 disabled 1/2 disabled 3/1 disabled 3/2 disabled 5/1 disabled 5/2 disabled 5/3 disabled 5/4 disabled <output truncated> Console> (enable)
41-70
78-13315-02
Chapter 41
Command set qos statistics export port mod/port enable | disable show qos statistics export info
Enable QoS statistics data export per port. Verify the configuration.
Note
You must enable QoS statistics data export globally in order for the per-port configuration to take effect. This example shows how to enable the QoS statistics data export feature per port and verify the configuration:
Console> (enable) set qos statistics export port 5/1 enable Port export enabled on 5/1. Console> (enable) show qos statistics export info Statistics export status and configuration information -----------------------------------------------------Export status: enabled Export time interval: 300 Export destination:172.20.52.3 SYSLOG facility LOG_LOCAL6 (176), severity LOG_DE BUG (7) Port Export ------ -------1/1 disabled 1/2 disabled 3/1 disabled 3/2 disabled 5/1 enabled 5/2 disabled <output truncated> Console> (enable)
When enabled on a port, QoS statistics data export contains the following fields, separated by the delimiter character:
Export type ("1" for a port) Slot/port Number of ingress packets Number of ingress bytes Number of egress packets Number of egress bytes Time stamp
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-71
Configuring QoS
Command set qos statistics export enable | disable show qos statistics export info
Enable QoS statistics data export per aggregate policer. Verify the configuration.
Note
You must enable QoS statistics data export globally in order for the per-aggregate policer configuration to take effect. This example shows how to enable QoS statistics data export for a specific aggregate policer and verify the configuration:
Console> (enable) set qos statistics export aggregate ipagg_3 enable Statistics data export enabled for aggregate policer ipagg_3 Console> (enable) show qos statistics export info Statistics export status and configuration information -----------------------------------------------------Export status: enabled Export time interval: 300 Export destination:172.20.52.3 SYSLOG facility LOG_LOCAL6 (176), severity LOG_DE BUG (7) Port Export ------ -------1/1 disabled 1/2 disabled 3/1 disabled 3/2 disabled 5/1 enabled 5/2 disabled <output truncated> Aggregate name Export -------------- -------ipagg_3 enabled Console> (enable)
When enabled for a named aggregate policer, QoS statistics data export contains the following fields, separated by the delimiter character:
Export type ("2" for an aggregate policer) Aggregate policer name Number of in-profile packets Number of packets that exceed the CIR Number of packets that exceed the PIR Time stamp
41-72
78-13315-02
Chapter 41
Command set qos statistics export interval interval show qos statistics export info
Set the time interval for the QoS statistics data export. Verify the configuration.
This example shows how to set the QoS statistics data export interval and verify the configuration:
Console> (enable) set qos statistics export interval 500 Time interval set to 500 Console> (enable) show qos statistics export info Statistics export status and configuration information -----------------------------------------------------Export status: enabled Export time interval: 500 Export destination:172.20.52.3 SYSLOG facility LOG_LOCAL6 (176), severity LOG_DE BUG (7) Port Export ------ -------1/1 disabled 1/2 disabled 3/1 disabled 3/2 disabled 5/1 enabled 5/2 disabled <output truncated> Aggregate name Export -------------- -------ipagg_3 enabled Console> (enable)
Configuring QoS Statistics Data Export Destination Host and UDP Port
To configure the QoS statistics data export destination host and UDP port number, perform this task in privileged mode: Task
Step 1 Step 2
Command set qos statistics export destination {host_name | ip_address} [syslog [facility | severity] port] show qos statistics export info
Configure the QoS statistics data export destination host and UDP port number. Verify the configuration.
This example shows how to configure the QoS statistics data export destination host and UDP port number and verify the configuration:
Console> (enable) set qos statistics export destination stargate 9996 Statistics data export destination set to stargate port 9996. Console> (enable) show qos statistics export info Statistics export status and configuration information -----------------------------------------------------Export status: enabled
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
41-73
Configuring QoS
Export time interval: 500 Export destination:Stargate, UDP port 9996 Port Export ------ -------1/1 disabled 1/2 disabled 3/1 disabled 3/2 disabled 5/1 enabled 5/2 disabled <output truncated> Aggregate name Export -------------- -------ipagg_3 enabled Console> (enable)
This example shows how to display the QoS statistics per-aggregate policer packet and byte rates:
Console> show qos statistics aggregate-policer QoS aggregate-policer statistics: Aggregate Policer Packet Count Packets exceed Packets exceed normal rate excess rate -------------------------------- ------------ -------------- ----------------test 1000 20 5 Console>
41-74
78-13315-02
C H A P T E R
42
Configuring ASLB
This chapter describes how to configure accelerated server load balancing (ASLB) on the Catalyst 6000 family switches.
Note
For complete syntax and usage information for hte commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication.
Note
The information and procedures in this chapter apply only to the Supervisor Engine 1 with Layer 3 switching engine (Policy Feature Card or PFC). ASLB is not supported on Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2). This chapter consists of these sections:
Hardware and Software Requirements, page 42-i Understanding How ASLB Works, page 42-ii Cabling Guidelines, page 42-vii Configuring ASLB, page 42-vii ASLB Configuration Example, page 42-xix ASLB Redundant Configuration Example, page 42-xxi Troubleshooting the ASLB Configuration, page 42-xxv
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-1
Configuring ASLB
Note
1000BASE-X interfaces are only supported on the LocalDirector 420 and 430. They are not supported on the LocalDirector 410, 415, or 416.
Catalyst 6000 family switch can be used as a participating router for ASLB. With earlier supervisor engine software releases, an internal MSFC cannot be a participating router.
External MSFCAn MSFC in an externally attached Catalyst 6000 family switch can be used
as a participating router.
Multilayer Switch Module (MSM)If the Catalyst 6000 family switch that you are using for
ASLB has an MSM, it can be used as a participating router for ASLB. The MSM in an externally attached Catalyst 6000 family switch can also be used as a participating router.
Other Cisco routers can also be used as participating routers for ASLB.
Refer to the Cisco LocalDirector Installation and Configuration Guide, Version 3.2, for an overview on load balancing TCP/IP traffic. These sections describe ASLB:
Layer 3 Operations for ASLB, page 42-iii Layer 2 Operations for ASLB, page 42-iii Client-to-Server Data Forwarding, page 42-iv Server-to-Client Data Forwarding, page 42-vi
The LocalDirector is a secure, real-time, embedded operating system that intelligently load balances TCP/IP traffic across multiple servers. ASLB enables Catalyst 6000 family switches to cache Cisco LocalDirector load-balancing flows, accelerating the performance of the LocalDirector.
Note
The accelerated performance of the LocalDirector is achieved through the Catalyst 6000 family Layer 3 switching technology. Figure 1 shows a network using the ASLB feature. You must connect the LocalDirector to the switch with two links; one link connects to the same VLAN that the router is on and the other link connects to the VLAN that the servers are on. In Figure 1, one LocalDirector link is connected to VLAN 10, the router VLAN; the other link is connected to VLAN 20, the server VLAN. The LocalDirector supports directed mode and dispatched mode. Only the dispatched mode can be supported for ASLB feature implementation on Catalyst 6000 family switches.
42-2
78-13315-02
Chapter 42
LocalDirector
28062
VLAN 10 VLAN 20
VLAN 10 20
Xtag1 14 14
1. Xtag = The identifier field in the Layer 2 table that identifies the router to which the MAC address belongs. 2. Note that the router MAC address is added on the server VLAN (VLAN 20), not on the router VLAN (VLAN 10).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-3
Configuring ASLB
Path 1, page 42-iv Path 2, page 42-iv Path 3N, page 42-iv Path N + 1, N + 2..., page 42-iv
Path 1
The first packet from the router has a destination MAC address of the LocalDirector and is on VLAN 10. The MAC address has an Xtag value of 14 in the Layer 2 table. This value indicates that it requires a Layer 3 lookup, and the SYN flag is set so the frame goes to port PA. In addition to forwarding the frame to port PA, the switch hardware creates a candidate entry in the Layer 3 forwarding table. This entry is updated later by an enabler frame to become a full ASLB Multilayer Switching (MLS) entry.
Path 2
After receiving the frame from port PA, the LocalDirector makes its standard load-balancing decision and forwards the frame to port PB. The LocalDirector changes the destination MAC address to that of the appropriate server. When this frame enters the switch, it is considered an enabler frame. The switch hardware does a lookup in the Layer 3 table and searches for the entry created by the previous candidate packet (the packet forwarded through the LocalDirector). If the search was successful, a hit occurs in the Layer 3 table.
Path 3N
The ASLB MLS entry has been created and the next and subsequent frames from the router with a destination MAC address of the LocalDirector MAC will be Layer 3 switched unless the packet has SYN, FIN, or RST flags set or the packet is fragmented.
Path N + 1, N + 2...
On the last frame of a connection, either the FIN or RST flags will be set in the TCP header causing the packet to go to the LocalDirector. The LocalDirector must then forward the frame back to the switch after modifying the destination MAC address to be that of the appropriate server. This redirected frame takes the same path as the first frame of the flow. The FIN packet is used by the LocalDirector as an indication that the connection with the server has been terminated, and by the ASLB to purge the affected ASLB MLS entry.
42-4
78-13315-02
Chapter 42
Clients
Server pool S1 S2 S3
VLAN 10 VLAN 20
LocalDirector
VLAN 10 20 10 10 20
MAC Destination Address LocalDirector MAC1 Server MAC4 LocalDirector MAC1 LocalDirector MAC1 Server MAC
MAC Source Address Router MAC Router MAC 1 Router MAC Router MAC Router MAC 1
28063
Action Candidate entry in Layer 3 table Enabler frame Full ASLB MLS entry created Path 1 redirect Path 2
1. This MAC address has an Xtag value of 14 in the Layer 2 table for this packets VLAN. 2. VIP = virtual-IP address. 3. CIP = clients IP address. 4. MAC address of the server that the LocalDirector selected.
Protocol TCP
Ports 80/YZ
VLAN 20
1. VIP = virtual-IP address. 2. CIP = clients IP address. 3. MAC address of the server that the LocalDirector selected.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-5
Configuring ASLB
Clients
Server pool S1 S2 S3
LocalDirector
VLAN 20 10 20 20 10
Action Candidate entry in Layer 3 table Enabler packet Full ASLB MLS entry created Path 1 redirect Path 2
Router MAC1 Server MAC Router MAC1 Server MAC Router MAC
1. This MAC address has an Xtag value of 14 in the Layer 2 table for this packets VLAN. 2. MAC address of the server that the LocalDirector selected. 3. CIP = clients IP address. 4. VIP = virtual-IP address.
42-6
78-13315-02
Chapter 42
VLAN 20 10
1. VIP = virtual-IP address. 2. CIP = clients IP address. 3. MAC address of the server that the LocalDirector selected.
Cabling Guidelines
Follow these cabling guidelines for your ASLB configuration:
Check your connections to the servers attached to the switch. The servers must be either directly attached to the switch or within the same bridging domain as the LocalDirector port in the server VLAN. Use two Category 5 unshielded twisted-pair cables to connect two 10/100 or two 1000BASE-X switch ports to two comparable LocalDirector interfaces.
Caution
Connect the LocalDirector directly to the Catalyst 6000 family switch. See the Configuring the LocalDirector Interfaces section on page 42-vii to configure the LocalDirector interfaces. See the Configuring ASLB from the CLI section on page 42-xi to configure the switch.
Configuring ASLB
This section lists the tasks necessary to configure ASLB:
Configuring the LocalDirector Interfaces, page 42-vii ASLB Configuration Guidelines, page 42-viii
To implement these tasks, follow the guidelines and use the detailed configuration procedures in the sections that follow.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-7
Configuring ASLB
Routers, page 42-viii Servers, page 42-viii IP Addresses, page 42-ix Supervisor Engine, page 42-ix Backup LocalDirector Configuration (Optional), page 42-ix MSFC and Multilayer Switching, page 42-x NetFlow Data Export, page 42-x VLANs, page 42-x Switch Port Configuration, page 42-x
For configuration examples, see the ASLB Configuration Example section on page 42-xix. If you run into problems during your configuration, see the Troubleshooting the ASLB Configuration section on page 42-xxv.
Routers
Follow these router configuration guidelines:
The router must be the default gateway for the servers being load balanced and its MAC address must be known. Multiple routers must be on the same router VLAN. Specify all the participating router MAC addresses using the set lda mac router command. When ASLB is configured, a VACL is created to redirect TCP traffic on the two VLANs that the LocalDirector is connected to; no security IOS ACLs or VACLs can be configured on these VLANs.
Servers
Follow these server configuration guidelines:
The servers must be either directly attached to the switch or within the same bridging domain as the LocalDirector port in the server VLAN. Configure the servers to ignore ARP requests for the virtual-IP address. Configure the server default route as the aliased address of the router that is on the same subnet as the real IP address of the server.
Caution
To accelerate traffic in the client to server direction, you must configure the servers to ignore ARP requests for the virtual-IP address. If you fail to do this step, traffic acceleration will not start, and fully redundant topologies in your network will take a long time to recover from a LocalDirector failure.
On some server operating systems you cannot disable responses to ARP requests on alias (secondary) IP addresses. Use static ARP entries at the routers as a workaround for the servers that respond to ARP requests for the virtual-IP address.
42-8
78-13315-02
Chapter 42
IP Addresses
Follow these IP address configuration guidelines:
Note
You can specify an IP address for the virtual-IP address other than server IP network addresses.
Ensure that the LocalDirectors and servers are on the same subnet to allow the LocalDirector to ARP the real IP address of each server. Ensure that the routers are on the same subnet as the virtual-IP address to allow the router to ARP the virtual-IP address.
Configure the network for ASLB is as follows (the virtual-IP address in this example is 171.1.1.200): Router 171.1.1.1 LocalDirector 171.1.1.2 Servers1 171.1.1.x
If the servers in your ASLB configuration need to follow RFC 1918 for privacy, use the following as a guideline (the virtual-IP address in this example is 171.1.1.200): Routers 171.1.1.1 Alias 10.1.1.1 LocalDirector 171.1.1.2 Alias 10.1.1.2 Servers1 10.1.1.x (real IP address) Loopback alias to 171.1.1.200
Supervisor Engine
Follow these supervisor engine configuration guidelines:
Up to 32 router MAC addresses are supported. Up to 1024 virtual-IP/TCP port pairs are supported.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-9
Configuring ASLB
With supervisor engine software release 5.4(1)CSX or later releases, an MSFC can be the participating router for ASLB.
Note
Traffic is Layer 3 switched when an MSFC routes traffic from clients. This process creates MLS entries that exist separately from the ASLB MLS entries for the same traffic.
The aging task that removes terminated ASLB flows also purges MLS terminated flows. ASLB MLS entries share the Layer 3 MLS cache with the MLS shortcut entries. The MLS commands (set mls, clear mls, and show mls) do not interoperate with ASLB (set lda, clear lda, show lda, and commit lda) commands. ASLB uses separate commands to view the LocalDirector MLS entries.
When you enable ASLB, ASLB MLS entries are established using one flow mask, full-flow mode (ip-flow).
VLANs
Follow these VLAN configuration guidelines:
When you configure ASLB, a VACL is created to redirect TCP traffic on the two VLANs to which the LocalDirector is connected (router VLAN and server VLAN). You cannot configure any security IOS access control lists (ACLs) or VLAN access control lists (VACLs) on these VLANs. Dedicate the router VLAN and server VLAN for ASLB use only. Do not connect other network devices (such as end stations and clients) to these two VLANs. The VLANs created for ASLB propagate to other switches through VLAN Trunking Protocol (VTP) when VTP is in the server mode. Spanning Tree Protocol runs over these ASLB VLANs on all VTP switches in the network, introducing additional overhead over the entire network. To avoid spanning tree propagation delays, do the following:
Configure the switch as VTP transparent so it does not populate the VLANs. Remove the ASLB VLANs from all trunks on all switches (enter the clear trunk command).
Disable CDP on ports connected to the LocalDirectors (both active and standby LocalDirectors if a backup is configured). If you specify a port that is part of an EtherChannel, traffic is automatically redirected among all ports in the EtherChannel.
42-10
78-13315-02
Chapter 42
Configuring the Switch Ports Connected to the LocalDirector, page 42-xi Enabling and Disabling ASLB, page 42-xi Specifying Server Virtual-IP Addresses and TCP Ports for Acceleration, page 42-xii Specifying MAC Addresses for Participating Routers, page 42-xii Specifying a MAC Address for the LocalDirector, page 42-xiii Specifying the Router VLAN and the LocalDirector Port on the VLAN, page 42-xiii Specifying the Server VLAN and the LocalDirector Port on the VLAN, page 42-xiv Configuring UDP Aging, page 42-xiv Committing the ASLB Configuration, page 42-xiv Displaying the ASLB Configuration, page 42-xv Displaying the ASLB MLS Entries, page 42-xvi Displaying the ASLB MLS Statistics, page 42-xvii Clearing the ASLB Configuration, page 42-xviii
Enter the set vlan vlan_num mod_ports command to add the switch ports to the correct VLANs (router VLAN and server VLAN). Note that the port speed and duplex type for the switch ports should not need setting as all 10/100 switch ports are set to autonegotiate as the default. If you have a problem with autonegotiation, configure the port speed and duplex type as follows: Enter the set port speed mod/port {10 | 100 | auto} command to set the port speed. Enter the set port duplex mod/port {full | half | auto} command to set the type of duplex.
ASLB is disabled by default. When ASLB is disabled, you cannot enter the set lda commands to perform configuration tasks; to enter the set lda commands, you must enable ASLB. To enable or disable ASLB, perform these tasks in privileged mode: Task Enable or disable ASLB. Command set lda enable | disable
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-11
Configuring ASLB
You can specify up to 1024 virtual-IP addresses and TCP port pairs for acceleration by the Catalyst 6000 family switch. Newly specified pairs do not replace previously specified pairs. To cancel a previously entered pair, enter the clear lda vip command.
Note
You can use a zero (0) as a wildcard (dont care) digit for the destination_tcp_port. To specify server virtual-IP addresses and TCP ports for acceleration, perform this task in privileged mode: Task Specify server virtual-IP addresses and TCP ports for acceleration. Command set lda vip {server_virtual_ip} {destination_tcp_port} [{server_virtual_ip} {destination_tcp_port}...]
This example shows how to specify a server virtual-IP address and TCP port for acceleration:
Console> (enable) set lda vip 10.0.0.8 8 Successfully set server virtual ip and port information. Use commit lda command to save settings to hardware. Console> (enable)
You can specify up to 32 router MAC addresses. To specify MAC addresses for participating routers, perform this task in privileged mode: Task Command
Specify MAC addresses for participating routers. set lda mac router {mac-address}...
42-12
78-13315-02
Chapter 42
This example shows how to specify MAC addresses for participating routers:
Console> (enable) set lda mac router 00-23-45-67-ee-7f Successfully set mac address. Use commit lda command to save settings to hardware. Console> (enable)
Specify a MAC address for the LocalDirector. set lda mac ld {ld_mac-address} This example shows how to specify a MAC address for the LocalDirector:
Console> (enable) set lda mac ld 00-11-22-33-55-66 Successfully set mac address. Use commit lda command to save settings to hardware. Console> (enable)
Specifying the Router VLAN and the LocalDirector Port on the VLAN
Note
After entering the set lda router command, if you change the switch port(s) that the LocalDirector is connected to, you must enter the set lda router command again to specify the new configuration.
Note
Specifying a backup LocalDirector port is optional unless you are setting up a failover configuration of LocalDirectors. If you are setting up a failover configuration, you must specify the ports for the backup LocalDirector. If this is not done, failover will not work because the supervisor engine will not send any traffic to the intended backup LocalDirector. To specify the VLAN the router is on and the LocalDirector port on the VLAN, perform this task in privileged mode: Task Specify the router VLAN and the LocalDirector port on the VLAN. Command set lda router {router_vlan} {ld_mod/port} [backup_ld_mod/port]
This example shows how to specify the router VLAN and the LocalDirector port on the VLAN:
Console> (enable) set lda router 110 4/26 Successfully set router vlan and LD port. Use commit lda command to save settings to hardware. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-13
Configuring ASLB
Specifying the Server VLAN and the LocalDirector Port on the VLAN
Note
After entering the set lda server command, if you change the switch port(s) that the LocalDirector is connected to, you must enter the set lda server command again to specify the new configuration.
Note
Specifying a backup LocalDirector port is optional unless you are setting up a failover configuration of LocalDirectors. If you are setting up a failover configuration, you must specify the ports for the backup LocalDirector. If this is not done, failover will not work because the supervisor engine will not send any traffic to the intended backup LocalDirector. To specify the VLAN the server is on and the LocalDirector port on the VLAN, perform this task in privileged mode: Task Specify the server VLAN and the LocalDirector port on the VLAN. Command set lda server {server_vlan} {ld_mod/port} [backup_ld_mod/port]
This example shows how to specify the server VLAN and the LocalDirector port on the VLAN:
Console> (enable) set lda server 105 4/40 Successfully set server vlan and LD port. Use commit lda command to save settings to hardware. Console> (enable)
You can set aging from 1 to 2024000 milliseconds (ms). Enter a value of zero to disable UDP aging. This example shows how to configure UDP aging to 500 ms:
Console> (enable) set lda udpage 500 Successfully set LDA UDP aging time to 500ms. Console> (enable)
ASLB configuration settings are temporarily stored in an edit buffer. The settings are saved in NVRAM, but for the settings to take effect, you must enter the commit lda command. This command verifies your configuration settings and if the information is entered correctly and passes a consistency check, the settings are programmed into hardware. Once the ASLB configuration is successfully committed, the mapping is saved in NVRAM and restored at system bootup.
42-14
78-13315-02
Chapter 42
To commit your ASLB configuration settings, perform this task in privileged mode: Task Commit your ASLB configuration settings. Command commit lda
Entering show lda without a keyword (committed | uncommitted) displays committed configuration settings. To display committed or uncommitted ASLB configuration settings, perform this task in privileged mode: Task Display committed or uncommitted ASLB configuration settings. Command show lda [committed | uncommitted]
LD MAC:00-11-22-33-55-66 LD Router Side: --------------Router and LD are on VLAN 110 LD is connected to switch port 4/26 on VLAN 110 LD Server Side: --------------Server(s) and LD are on VLAN 105 LD is connected to switch port 4/40 on VLAN 105 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-15
Configuring ASLB
If the configuration is then modified and the changes are not committed, entering the show lda command again gives an indication that the configuration has been modified since the last commit but the new modifications are not shown, only the committed modifications are displayed. To view the new modifications, enter the show lda uncommitted command.
The short | long options give the flexibility to display the output in regular (80 characters in width) or wide-screen format. To display the ASLB MLS entries, perform this task in privileged mode: Task Display ASLB MLS entries. Command show lda mls entry show lda mls entry [destination ip_addr_spec] [source ip_addr_spec] [protocol protocol] [src-port port] [dst-port port] [short | long] This example shows how to display all ASLB MLS entries in short format:
Console> (enable) show lda mls entry short Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac Vlan --------------- --------------- ----- ------ ------ ----------------- ---EDst ESrc DPort SPort Stat-Pkts Stat-Bytes Uptime Age ---- ---- ------ ------ ---------- ----------- -------- -------10.0.0.8 172.20.20.10 TCP 8 64 00-33-66-99-22-44 105 ARPA ARPA 4/25 0 0 00:00:02 00:00:05 10.0.0.8 172.20.20.11 ARPA ARPA 4/25 0 Console> (enable) TCP 0 8 64 00-33-66-99-22-44 105 00:00:05 00:00:08
This example shows how to display ASLB information for the source IP address in short format:
Console> (enable) show lda mls entry source 172.20.20.11 short Destination-IP Source-IP Prot DstPrt SrcPrt Destination-Mac Vlan --------------- --------------- ----- ------ ------ ----------------- ---EDst ESrc DPort SPort Stat-Pkts Stat-Bytes Uptime Age ---- ---- ------ ------ ---------- ----------- -------- -------10.0.0.8 172.20.20.11 TCP 8 64 00-33-66-99-22-44 105 ARPA ARPA 4/25 0 0 00:00:05 00:00:08 Console> (enable)
42-16
78-13315-02
Chapter 42
Stat-Pkts ---------636 0
Stat-Bytes --------------29256 0
This example shows how to display the number of ASLB active MLS entries:
Console> (enable) show lda mls statistics count LDA active shortcuts: 20 Console> (enable)
This example shows how to display the statistics for a specific destination IP address:
Console> (enable) show lda mls statistics entry destination 172.20.22.14 Last Used Last Used Destination IP Source IP Prot DstPrt SrcPrt Stat-Pkts Stat-Bytes --------------- --------------- ---- ------ ------ ---------- --------------172.20.22.14 172.20.25.10 6 50648 80 3152 347854 Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-17
Configuring ASLB
If you do not enter any keywords with the clear lda command, the entire ASLB configuration is removed from the hardware and NVRAM along with the MLS entries. If you do not enter any keywords with the clear lda mls command, all MLS entries are cleared. To clear ASLB entries or router MAC addresses, perform this task in privileged mode: Task Clear ASLB configuration settings. Command clear lda mls clear lda mls [destination ip_addr_spec] [source ip_addr_spec] [protocol protocol src-port src_port dst-port dst_port] clear lda vip {all | vip | vip tcp_port} clear lda mac {all | router_mac_address} This example shows how to clear the MLS entry at a specific destination address:
Console> (enable) clear lda mls destination 172.20.26.22 MLS IP entry cleared. Console> (enable)
This example shows how to delete a virtual-IP address and port pair (10.0.0.8, port 8):
Console> (enable) clear lda vip 10.0.0.8 8 Successfully deleted vip/port pairs. Console> (enable)
This example shows how to clear all ASLB router MAC addresses:
Console> (enable) clear lda mac all Successfully cleared Router MAC address. Console> (enable)
This example shows how to clear a specific ASLB router MAC address:
Console> (enable) clear lda mac 1-2-3-4-5-6 Successfully cleared Router MAC address. Console> (enable)
42-18
78-13315-02
Chapter 42
The virtual-IP address is 192.255.201.55. The router interface MAC address is 00-d0-bc-e9-fb-47 and its IP address is 192.255.201.1. The LocalDirector IP address is 192.255.201.2. The LocalDirector MAC address is 00-e0-b6-00-4b-04. The server farm IP addresses are 192.255.201.3 through 192.255.201.11. The servers have been configured to ignore ARP requests for the virtual-IP address 192.255.201.55.
Load balance HTTP connections in a round-robin fashion among servers 192.255.201.3 through 192.255.201.10. Forward connections to port 8001 to server 192.255.201.11. Load balance FTP connections to servers 192.255.201.3 through 192.255.201.8 in a leastconns fashion (which is the default for the LocalDirector).
Server pool S1
Catalyst 6500 series switches Clients 5/6 5/7 5/5 5/n 5/n 5/n
S2
S3 VLAN 7 VLAN 5
LocalDirector
28229
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-19
Configuring ASLB
Local Director Flow:192.255.201.55/www (TCP port 80) Local Director Flow:192.255.201.55/ (TCP port 8001) Local Director Flow:192.255.201.55/ftp (TCP port 21) Router MAC: 00-d0-bc-e9-fb-47 LD MAC: 00-e0-b6-00-4b-04
LD Router Side: --------------Router and LD are on VLAN 7 LD is connected to switch port 5/7 on VLAN 7 LD Server Side: --------------Server(s) and LD are on VLAN 5 LD is connected to switch port 5/5 on VLAN 5 Console (enable)
42-20
78-13315-02
Chapter 42
fixed-ttl 60 igmp 224.0.1.2 port 1637 redirection 192.255.201.55:8001:0:tcp dispatched assisted wildcard-ttl 60 fixed-ttl 60 igmp 224.0.1.2 port 1637 redirection 192.255.201.55:21:0:tcp dispatched assisted wildcard-ttl 60 fixed-ttl 60 igmp 224.0.1.2 port 1637 real 192.255.201.5:80:0:tcp is real 192.255.201.3:80:0:tcp is real 192.255.201.4:80:0:tcp is real 192.255.201.6:80:0:tcp is real 192.255.201.7:80:0:tcp is real 192.255.201.8:80:0:tcp is real 192.255.201.9:80:0:tcp oos real 192.255.201.10:80:0:tcp oos real 192.255.201.11:8001:0:tcp oos real 192.255.201.3:21:0:tcp is real 192.255.201.4:21:0:tcp is real 192.255.201.5:21:0:tcp is real 192.255.201.6:21:0:tcp is real 192.255.201.7:21:0:tcp is real 192.255.201.8:21:0:tcp is bind 192.255.201.55:80:0:tcp 192.255.201.3:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.4:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.5:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.6:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.7:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.8:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.9:80:0:tcp bind 192.255.201.55:80:0:tcp 192.255.201.10:80:0:tcp bind 192.255.201.55:8001:0:tcp 192.255.201.11:8001:0:tcp bind 192.255.201.55:21:0:tcp 192.255.201.3:21:0:tcp bind 192.255.201.55:21:0:tcp 192.255.201.4:21:0:tcp bind 192.255.201.55:21:0:tcp 192.255.201.5:21:0:tcp bind 192.255.201.55:21:0:tcp 192.255.201.6:21:0:tcp bind 192.255.201.55:21:0:tcp 192.255.201.7:21:0:tcp bind 192.255.201.55:21:0:tcp 192.255.201.8:21:0:tcp
Caution
Router 1 and router 2 are running Hot Standby Routing Protocol (HSRP) on both interfaces, f1 and f2 in Figure 5. Interface f1 must be active on the same router where f2 is active; otherwise, traffic will reach interface f1 on one router and will not be forwarded to interface f2 which is active on the other router. Use the HSRP track command to track the opposite side interface of each router.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-21
Configuring ASLB
LocalDirector 1
3/23
VLAN 5 & 9 (ISL trunk) Router 2 f1 3/23 3/42 f2 VLAN 9 3/27 VLAN 9 Catalyst 6500 series switches 2 3/28 VLAN 5 LocalDirector failover cable
33440
VLAN 5
LocalDirector 2
IP Addresses
The IP addresses are as follows:
Router 1, f1 IP address: 7.0.0.100 (network 7) Router 2, f1 IP address: 7.0.0.101 (network 7) HSRP IP address: 7.0.0.1 for network 7 Router 1, f2 IP address: 5.0.0.100 (network 5) Router 2, f2 IP address: 5.0.0.101 (network 5) HSRP IP address: 5.0.0.2 for network 5 LocalDirector IP address: 5.0.0.1 Server IP address: 5.100.100.100 VIP address for servers: 13.13.13.13
42-22
78-13315-02
Chapter 42
MAC Addresses
The MAC addresses are as follows:
HSRP MAC address for network 7: 00-00-0c-07-ac-00 HSRP MAC address for network 5: 00-00-0c-07-ac-01 Router 1, f2 MAC address: 00-d0-79-7b-20-88 Router 2, f2 MAC address: 00-d0-79-7b-18-88 LocalDirector MAC address: 00-e0-b6-00-47-ec
Router 1 Configuration
The router 1 configuration is as follows:
interface FastEthernet1 ip address 7.0.0.100 255.0.0.0 no ip redirects no ip directed-broadcast no ip route-cache distributed load-interval 30 no keepalive
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-23
Configuring ASLB
full-duplex standby 1 ip 7.0.0.1 standby 1 track FastEthernet2 ! interface FastEthernet2 ip address 5.0.0.100 255.0.0.0 no ip redirects no ip directed-broadcast no ip route-cache distributed no keepalive full-duplex standby priority 250 standby 2 ip 5.0.0.2 standby 2 track FastEthernet1 ! ip route 13.13.13.13 255.255.255.255 5.0.0.1
Router 2 Configuration
The router 2 configuration is as follows:
interface FastEthernet1 ip address 7.0.0.101 255.0.0.0 no ip redirects no ip directed-broadcast no ip route-cache distributed load-interval 30 no keepalive full-duplex standby 1 ip 7.0.0.1 standby 1 track FastEthernet2 ! interface FastEthernet2 ip address 5.0.0.101 255.0.0.0 no ip redirects no ip directed-broadcast no ip route-cache distributed no keepalive full-duplex standby priority 250 standby 2 ip 5.0.0.2 standby 2 track FastEthernet1 ! ip route 13.13.13.13 255.255.255.255 5.0.0.1
LocalDirector Configuration
The LocalDirector 1 and LocalDirector 2 configuration is as follows (the configuration is the same for both LocalDirectors):
no shutdown ethernet 0 no shutdown ethernet 4 interface ethernet 0 100full interface ethernet 4 100full ip address 5.0.0.1 255.0.0.0 failover ip address 5.0.0.5 virtual 13.13.13.13:80:0:tcp is virtual 13.13.13.13:23:0:tcp is predictor 13.13.13.13:80:0:tcp roundrobin predictor 13.13.13.13:23:0:tcp roundrobin
42-24
78-13315-02
Chapter 42
redirection 13.13.13.13:80:0:tcp dispatched assisted redirection 13.13.13.13:23:0:tcp dispatched assisted real 5.100.100.100:80:0:tcp is real 5.100.100.100:23:0:tcp is bind 13.13.13.13:80:0:tcp 5.100.100.100:80:0:tcp bind 13.13.13.13:23:0:tcp 5.100.100.100:23:0:tcp
Recommended Action Ensure that the LocalDirector is connected to the ports you specified by entering the set lda server and set lda router commands.
LocalDirector connection entries are not Ensure that you configured all the virtual-IP/port pairs by entering the set lda vip purged. command. ASLB MLS entries are created in only one direction. Ensure that you configured all the virtual-IP/port pairs on both the supervisor engine (set lda vip command) and the LocalDirector. Ensure that the LocalDirector is in the dispatched assisted mode. Ensure that you configured the IP addresses of the routers, LocalDirector, and servers following the guidelines in the IP Addresses section on page 42-ix. Ensure that the router knows how to reach the LocalDirector when traffic goes to the virtual-IP address (if the virtual-IP address is on a different subnet than the router interface). Ensure that the router MAC address is the same as specified by entering the set lda mac router command. Ensure that the LocalDirector MAC address is the same as specified by entering the set lda mac ld command. Backup LocalDirector does not receive any traffic. Ensure that you configured the backup LocalDirector ports by entering the set lda router and set lda server commands; for example, enter set lda router {router_vlan} 3/7 3/9 and set lda server {server_vlan} 3/8 3/10.
You can ping servers from the router, but Ensure that the servers were configured to ignore ARP requests for the virtual-IP ASLB MLS entries are not created when address. you send data traffic. You see the message: %CDP-4-NVLANMISMATCH: Native vlan mismatch detected on port ... Disable CDP on ports connected to the LocalDirector (enter set cdp disable command).
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
42-25
Configuring ASLB
Symptom
Recommended Action
LocalDirector set commands did not take The set lda commands will not take effect until you enter the commit lda effect. command. You can verify which set lda commands are in effect by entering the show lda commit command. You can determine which set lda commands are set but not committed, or determine what changes will occur if the current set lda commands are committed by entering the show lda uncommitted command. You see collisions or port disabled on the Catalyst 6000 port. Ensure that the port speed and duplex settings are compatible on both ends of the link between the LocalDirector and the switch. For example, if port 3/7 on the switch is connected to interface ethernet 0 on the LocalDirector, make sure that port 3/7 is set to 100full and that interface ethernet 0 on the LocalDirector is also set to 100full.
42-26
78-13315-02
C H A P T E R
43
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Understanding How the Switch Fabric Module Works, page 43-i Configuring and Monitoring the Switch Fabric Module, page 43-ii
Note
The WS-C6500-SFM is supported in the Catalyst 6500 6-and 9-slot chassis only. The WS-X6500-SFM 2 is supported in the Catalyst 6500 6-slot, 9-slot, 13-slot, and 6509-NEB chassis.
The Switch Fabric Module is supported only with Supervisor Engine 2 in the Catalyst 6500 series switch. The Switch Fabric Module creates a dedicated connection between fabric-enabled modules and provides uninterrupted transmission of frames between these modules. The Switch Fabric Module also provides fabric-enabled modules with a direct connection to the Catalyst 6500 32-Gbps forwarding bus. You can use the set system crossbar-fallback bus-mode | none command to specify how packets are handled if the Switch Fabric Module is removed or fails. If you specify bus-mode, the switching is done in flow-through mode. If you specify none, the switch ports are disabled and switching stops. The Switch Fabric Module does not have a console. A two-line LCD display on the front panel shows fabric utilization, software revision, and basic system information. Install the WS-C6500-SFM in either slot 5 or 6 in the 6-slot and 9-slot Catalyst 6500 series switches. Install the WS-X6500-SFM 2 in slots 7 or 8 in the 13-slot Catalyst 6500 switches. The Switch Fabric Module first installed functions as the primary module. For redundancy, you can install a standby Switch Fabric Module.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
43-1
When you install two Switch Fabric Modules at the same time in a 6- or 9-slot chassis, the primary module is in slot 5 and the backup is in slot 6. If you reset the module in slot 5, the module in slot 6 becomes active. When you install two Switch Fabric Modules at the same time in a 13-slot chassis, the primary module is in slot 7 and the backup is in slot 8. If you reset the module in slot 7, the module in slot 8 becomes active. When you install a Switch Fabric Module in a Catalyst 6500 series switch, the traffic is forwarded to and from modules in one of these modes:
Flow-through modeData passes between the local bus and the supervisor engine bus. This mode is used for traffic to or from nonfabric-enabled modules. Truncated modeIf there are at least two fabric-enabled modules installed in a system with both fabric-enabled and nonfabric-enabled modules, traffic between the fabric-enabled modules is forwarded in truncated mode. In this mode, only the truncated data (the first 64 bytes of the frame) is sent over the switch fabric channel if both the destination and the source are fabric-enabled modules. If either the source or destination is a nonfabric-enabled module, the data goes through the switch fabric channel and the data bus. The Switch Fabric Module does not get involved when traffic is forwarded between nonfabric-enabled modules. Compact modeA compact version of the DBus header is forwarded over the switch fabric channel, delivering the best possible switching rate. Nonfabric-enabled modules do not support the compact mode and generate cyclic redundancy check (CRC) errors if they receive frames in compact mode. This mode is used only when no nonfabric-enabled modules are installed in the chassis.
Table 1 shows the switch modes used with fabric-enabled and nonfabric-enabled modules installed.
Table 43-1 Switching Modes with Switch Fabric Module Installed
Modules
Switching Modes
Between fabric-enabled modules Compact (no nonfabric-enabled modules installed) Between fabric-enabled modules Truncated (when nonfabric-enabled modules are also installed) Between fabric-enabled and nonfabric-enabled modules Between non-fabric-enabled modules Flow-through Flow-through
43-2
78-13315-02
Chapter 43
Configuring the Switch Fabric Modules Configuring and Monitoring the Switch Fabric Module
Configuring a Fallback Option, page 43-iii Configuring the Switching Mode, page 43-iii Switch Fabric Redundancy, page 43-iv Monitoring the Switch Fabric Module, page 43-iv Configuring the LCD Banner, page 43-viii
Configure a fallback option for the Switch Fabric set system crossbar-fallback {bus-mode | none} Module. This example shows how to configure a fallback option to bus-mode:
Console> (enable) set system crossbar-fallback bus-mode System crossbar-fallback set to bus-mode. Console> (enable)
Note
Nonfabric-enabled modules do not support compact mode. To configure the switch to use flow-through mode if you have non-fabric enabled modules installed, perform this task: Task Configure the switch to use flow-through mode. Command set system switchmode allow bus-only
This example shows how to configure the switch to use flow-through mode:
Console> (enable) set system switchmode allow bus-only Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
43-3
To configure the switch to use compact mode if you have only fabric-enabled modules installed, perform this task: Task Configure the switch to use compact mode. Command set system switchmode allow truncated
This example shows how to configure the switch to use compact mode:
Console> (enable) set system switchmode allow truncated Console> (enable)
Displaying the Module Information, page 43-iv Displaying the Fabric Channel Counters, page 43-v Displaying the Fabric Channel Switching Mode and Channel Status, page 43-v Displaying the Fabric Channel Utilization, page 43-vi Displaying Fabric Channel Input and Output, page 43-vii Displaying Switching Mode Configuration, page 43-viii
Note
Enter all show commands supported by the Switch Fabric Module from the supervisor engine.
43-4
78-13315-02
Chapter 43
Configuring the Switch Fabric Modules Configuring and Monitoring the Switch Fabric Module
WS-C6500-SFM
no
ok
Mod MAC-Address(es) --- -------------------------------------1 00-40-0b-ff-00-00 to 00-40-0b-ff-00-01 00-50-3e-7e-71-56 to 00-50-3e-7e-71-57 00-01-64-f8-ca-00 to 00-01-64-f8-cd-ff 4 00-10-7b-c2-3a-c0 to 00-10-7b-c2-3a-d7 5 00-40-0b-ff-00-00
0.204 0.204
Mod Sub-Type Sub-Model Sub-Serial Sub-Hw --- ----------------------- ------------------- ----------- -----1 L3 Switching Engine II WS-F6K-PFC2 SAD04110B5S 0.305 Console> (enable)
0 0 0 0 0 0
This example shows how to display the fabric channel switching mode and channel status:
Console> (enable) show fabric channel switchmode Global switching mode:truncated Module Num Fab Chan Fab Chan Switch Mode Channel Status ------ ------------ -------- ------------ -------------1 1 0, 0 flow through ok
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
43-5
4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a
n/a ok unused unused unused unused unused unused unused unused unused unused unused unused unused unused unused unused unused
In the show fabric channel switchmode command output, the Switch Mode field displays one of the following modes:
Note
See the Understanding How the Switch Fabric Module Works section on page 43-i for definitions for the different modes.
43-6
78-13315-02
Chapter 43
Configuring the Switch Fabric Modules Configuring and Monitoring the Switch Fabric Module
14 15 16 17
0% 0% 0% 0%
0% 0% 0% 0%
This example shows how to display the fabric channel input and output:
Console> show system PS1-Status PS2-Status ---------- ---------ok none Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout ---------- ---------- ---------- -------------- --------ok off ok 0,00:53:38 20 min PS1-Type PS2-Type ------------ -----------WS-CAC-1000W none Modem Baud Traffic Peak Peak-Time ------- ----- ------- ---- ------------------------disable 9600 0% 0% Wed Jun 7 2000, 10:33:00 PS1 Capacity: 852.60 Watts (20.30 Amps @42V) System Name System Location System Contact CC ------------------------ ------------------------ ------------------------ --Fab Chan Input Output -------- ----- -----0 0% 0% 1 0% 0% 2 0% 0% 3 0% 0% 4 0% 0% 5 0% 0% 6 0% 0% 7 0% 0% 8 0% 0% 9 0% 0% 10 0% 0% 11 0% 0% 12 0% 0% 13 0% 0% 14 0% 0% 15 0% 0% 16 0% 0% 17 0% 0%
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
43-7
Console> show backplane-traffic Threshold: 100% Traffic Peak Peak-Time ------- ---- ------------------------0% 0% Wed Jun 7 2000, 10:33:00 Fab Chan Input Output -------- ----- -----0 0% 0% 1 0% 0% 2 0% 0% 3 0% 0% 4 0% 0% 5 0% 0% 6 0% 0% 7 0% 0% 8 0% 0% 9 0% 0% 10 0% 0% 11 0% 0% 12 0% 0% 13 0% 0% 14 0% 0% 15 0% 0% 16 0% 0% 17 0% 0%
Chassis serial number Switch IP address System Name Supervisor engine version Multilayer Switch Feature Card (MSFC) version on active and standby supervisor engine System contact
43-8
78-13315-02
Chapter 43
Configuring the Switch Fabric Modules Configuring and Monitoring the Switch Fabric Module
After the LCD banner content is modified, this information is sent to the Switch Fabric Modules installed in the chassis and displayed in the LCDs. To modify the LCD banner content, perform this task in privileged mode: Task
Step 1 Step 2
Modify the LCD banner content. Verify the LCD bannder change.
This example shows how to modify the LCD banner for the Switch Fabric Module:
Console> (enable) set banner lcd &HelloWorld!& LCD banner set Console> (enable) show banner MOTD banner: LCD config: Hello World!
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
43-9
43-10
78-13315-02
C H A P T E R
44
Note
While this chapter introduces a number of Cisco networking products related to VoIP, the primary focus of the chapter is to provide configuration information for integrating Catalyst 6000 family products into your VoIP network.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6000 Family Command Reference publication. This chapter consists of these sections:
Hardware and Software Requirements, page 44-1 Understanding How a VoIP Network Works, page 44-2 Understanding How VLANs Work, page 44-8 Configuring VoIP on a Switch, page 44-9
Catalyst 4000, 5000, and 6000 switches running supervisor engine software release 6.1(1) or later releases. Cisco CallManager release 3.0 or later releases
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-1
Cisco IP Phone 7960, page 44-2 Cisco CallManager, page 44-4 Access Gateways, page 44-4 How a Call Is Made, page 44-7
Cisco CallManager
IP cloud
PSTN or PBX
PSTN or PBX
Digital Trunk Gateway (WS-X6608-T1/E1) Analog Station Gateway (WS-X6624-FXS) Analog stations (phone, fax, modem) WS-PWR-PNL IP phone IP phone PC PC
Catalyst 6500 series switches * Catalyst 4000, 5000, and 6000 10/100 modules
38202
44-2
78-13315-02
Chapter 44
External power sourceOptional transformer and power cord for connecting to a standard wall receptacle. WS-X6348-RJ45V 10/100 switching moduleProvides inline power to the IP phone. WS-PWR-PNLInline-power patch panel provides inline power to the IP phone. The inline patch panel allows the IP phone to be connected to existing Catalyst 4000, 5000, and 6000 family 10/100BASE-TX switching modules.
Examples 1 through 4 in Figure 44-2 show how to connect the Cisco IP Phone 7960 and PCs to the Catalyst 6000 family switch.
Figure 44-2 Connecting the Cisco IP Phone 7960 to the Catalyst 6000 Family Switch
10/100BASE-TX Module (WS-X6348-RJ45V) 10/100BASE-TX Module (WS-X6348-RJ45V) 10/100BASE-TX Module (WS-X6348-RJ45V) 10/100BASE-TX Module (WS-X6348-RJ45V)
* * * *
* Or any Catalyst 4000, 5000, and 6000 10/100 module using the inline-power patch panel (WS-PWR-PNL)
Example 2Single PC
Example 2 shows one PC connected to the 10/100 port on the Catalyst 6000 family switch. The PC is wall-powered.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
38203
44-3
Note
For information on configuring Cisco IP phones and third-party vendor phones, refer to the documentation that shipped with the phone.
Cisco CallManager
Cisco CallManager is an open and industry-standard call processing system; its software runs on a Windows NT server and sets up and tears down calls between phones, integrating traditional PBX functionality with the corporate IP network. Cisco CallManager manages the components of the IP PBX system, the phones, access gateways, and the resources necessary for such features as call conferencing and media mixing. Each Cisco CallManager manages the devices within its zone and exchanges information with the Cisco CallManager in charge of another zone to make calls possible across multiple zones. Additionally, Cisco CallManager can work with existing PBX systems to route a call over the Public Switched Telephone Network (PSTN).
Note
For information on configuring Cisco CallManager to work with the IP devices described in this chapter, refer to the Cisco CallManager Administration Guide, Release 3.0, the Configuration Notes for Cisco CallManager Release 3.0, and the Cisco CallManager v3.0 Remote Serviceability Users Guide publications.
Access Gateways
Access gateways allow the IP PBX system to talk to existing PSTN or PBX systems. Access gateways consist of analog station gateways, analog trunk gateways, digital trunk gateways, and a converged voice gateway. These sections describe the gateways:
Analog Station Gateway, page 44-5 Analog Trunk Gateway, page 44-5 Digital Trunk Gateway, page 44-6 Converged Voice Gateway, page 44-7
44-4
78-13315-02
Chapter 44
Digital Signal Processing Per Port G.711 and G.729 voice encoding Silence suppression; voice activity detection Comfort noise generation Ringer, software programmable frequency and cadence, based on country DTMF1 detection Signaling, loop start Line echo cancellation (32 ms) Impedance (600 ohms) Programmable analog gain, signaling timers Fax passthrough SPAN2 or port mirroring support FXS Interface Features Address signaling formats: In-band DTMF Signaling formats: Loop start Ringing tone: Programmable Ringing voltage: Programmable, based on country Ringing frequency: Programmable, based on country Distance: 500-ohms maximum loop
1. DTMF = dual tone multifrequency 2. SPAN = Switched Port Analyzer
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-5
Digital Signal Processing Per T1/E1 Port G.711 to G.723 and G.729a transcoding (maximum of 8 x 32 channels of transcoding) Conference bridging, meet-me and ad-hoc conference modes (maximum of 8 x 16 channels of conferencing) Comfort noise generation Fax passthrough Silence suppression, voice activity detection Line echo cancellation Common channel signaling For T1: 23 DS0 channels for voice traffic; 24th channel is used for signaling For E1: 29 DS0 channels for voice traffic; 16th channel is reserved for signaling Any channel can be configured for common channel signaling ISDN Primary Rate Interface signaling: Each interface supports 23 channels for T1 and 30 channels for E1. The default mode is for the 24th T1 channel or 16th E1 channel to be reserved for signaling. Both network side and user side operation modes are supported. T1 binary 8-zero substitution/alternate mark inversion (B8ZS/AMI) line coding, u-law or a-law coding E1 HDB3 line coding T1 line bit rate: 1.544 Mbps E1 line bit rate: 2.048 Mbps T1 line code: AMI, B8ZS E1 line code: HDB3 Framing format: D4 superframe and extended superframe Link Management FDL1 is a link management protocol used to help diagnose problems and gather statistics on T1 lines
1. FDL = Facilities Data Link
44-6
78-13315-02
Chapter 44
One to four Foreign Exchange Office (FXO) ports for connecting to a central office or PBX One to four FXS ports for connecting to POTS telephony devices One or two T1 digital ports for connecting to the following:
PSTN using FXO emulation T1 channel bank using FXS emulation PBX through a trunk (tie) line using ear and mouth (E&M) emulation
These ports can be used to integrate a VoIP network with POTS devices, PBXs, or the PSTN. To configure the Cisco VG200, refer to the documentation that shipped with the gateway.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-7
Auxiliary VLANSeparate VLAN for IP phones Native VLANTraditional VLAN for data Auxiliary VLAN IDVLAN ID of an auxiliary VLAN Native VLAN IDVLAN ID of a native VLAN
Note
For more information about VLANs, see Chapter 11, Configuring VLANs. Figure 44-3 shows how a Cisco IP Phone 7960 can be connected to a Catalyst 6000 family switch.
Figure 44-3 Switch-to-Phone Connections
Phone ASIC Catalyst switch P2 P1 10/100 module 3-port switch P3 Access port
38204
Workstation/PC
When the IP phone connects to a 10/100 port on the Catalyst 6000 family switch, the access port (PC-to-phone jack) of the IP phone can be used to connect a PC. Packets to and from the PC and to and from the phone share the same physical link to the switch and the same port of the switch. Various configurations of connecting the phone and the PC are possible (see the Cisco IP Phone 7960 section on page 44-2). Introducing IP-based phones into existing switch-based networks raises the following issues:
The current VLANs might be configured on an IP subnet basis and additional IP addresses might not be available to assign the phone to a port so that it belongs to the same subnet as other devices (PC) connected to the same port. Data traffic present on the VLAN supporting phones might reduce the quality of VoIP traffic.
44-8
78-13315-02
Chapter 44
You can resolve these issues by isolating the voice traffic onto a separate VLAN on each of the ports connected to a phone. The switch port configured for connecting a phone would have separate VLANs configured for carrying the following:
Voice traffic to and from the IP phone (auxiliary VLAN) Data traffic to and from the PC connected to the switch through the access port of the IP phone (native VLAN)
Isolating the phones on a separate, auxiliary VLAN increases the quality of the voice traffic and allows a large number of phones to be added to an existing network where there are not enough IP addresses. A new VLAN means a new subnet and a new set of IP addresses.
Voice-Related CLI Commands, page 44-9 Configuring Per-Port Power Management, page 44-10 Configuring Auxiliary VLANs on Catalyst LAN Switches, page 44-19 Configuring the Access Gateways, page 44-21 Displaying Active Call Information, page 44-27 Configuring QoS in the Cisco IP Phone 7960, page 44-29
Note
You must enable Cisco Discovery Protocol (CDP) on the Catalyst 6000 family switch port connected to the IP phone in order to communicate information such as auxiliary VLAN ID, per-port power management details, and quality of service (QoS) configuration information.
CLI Commands
Inline-power related commands
WS-X6348-RJ45V1 X4 X X X
WS-X6608-T1/E12
WS-X6624-FXS3
set port inlinepower set inlinepower defaultallocation show port inlinepower show environment power
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-9
Table 44-3 Voice-Related CLI Command Module and Platform Support (continued)
CLI Commands
Voice-related commands
WS-X6608-T1/E12
WS-X6624-FXS3
set port auxiliaryvlan show port auxiliaryvlan set port voice interface show port voice interface show port voice show port voice fdl show port voice active
QoS commands related to voice
X X X X X/X X/X X X X
X X X X
set port qos mod/port cos-ext set port qos mod/port trust-ext show port qos
2. WS-X6608-T1 and WS-X6608-E1 = 8-port T1/E1 ISDN PRI modules. 3. WS-X6624-FXS = 24-port FXS analog station interface module.
4. X = Command supported on Catalyst 6000 family switch only; XX = Command supported on Catalyst 4000, 5000, and 6000 family switches (note that all modules listed in Table 44-3 are supported only on Catalyst 6000 family switches).
Note
To determine the exact power requirements for your configuration to ensure that you are within the system power budget, see the Determining System Power Requirements section on page 20-14.
Note
This section applies to the WS-X6348-RJ45V 10/100BASE-TX Ethernet switching module only. For information on powering IP phones connected to other Catalyst 10/100BASE-TX switching modules, refer to the Catalyst Family Inline-Power Patch Panel Installation Note publication. For each IP phone connected to the WS-X6348-RJ45V module, the supervisor engine software allocates part of the available system power to power up and run the phone. The power can be applied on an individual port basis. Only one IP phone can be powered per port; the phone must be connected directly to the switch port. If a second phone is daisy chained off the phone connected to the switch port, the second phone cannot be powered by the switch.
44-10
78-13315-02
Chapter 44
Using show Commands to Display Module Type and Version Information, page 44-11 Power Management Modes, page 44-12 Phone Detection Summary, page 44-14 Error Detection and Handling, page 44-16 Setting the Power Mode of a Port or Group of Ports, page 44-17 Setting the Default Power Allocation for a Port, page 44-17 Displaying the Power Status for Modules and Individual Ports, page 44-17 Displaying the Power Status for Modules and Individual Ports, page 44-18
WS-X6248-RJ-45standard 10/100BASE-TX switching module WS-X6348-RJ-45enhanced 10/100BASE-TX switching module (enhanced QoS features and 128K per port packet buffers), accepts field-upgradable voice daughter card WS-X6348-RJ45Venhanced 10/100BASE-TX switching module with voice daughter card
When you enter the show module command, the WS-X6348 modules both display as WS-X6348-RJ-45 in the Model field. To determine if the module has a voice daughter card installed, look at the Sub field. For example, in the following display, the 10/100BASE-TX module in slot 8 does not have a voice daughter card, while the module in slot 9 does have a voice daughter card. To display module status and information, perform this task in normal mode: Task Display module status and information. Command show module [mod]
This example shows that there is a submodule field that provides information about submodules. The EARL daughter card is treated as a submodule while the Multilayer Switch Feature Card (MSFC) internal router is not treated as a submodule. The model number for the voice daughter card, as shown in the display, is WS-F6K-VPWR.
Console> Mod Slot --- ---1 1 15 1 8 8 9 9 (enable) show module Ports Module-Type ----- ------------------------2 1000BaseX Supervisor 1 Multilayer Switch Feature 48 10/100BaseTX Ethernet 48 10/100BaseTX Ethernet Serial-Num ----------SAD03436055 SAD03432597 SAD03414268 Model ------------------WS-X6K-SUP1A-2GE WS-F6K-MSFC WS-X6348-RJ-45 WS-X6348-RJ-45 Sub Status ----------yes ok no ok no ok yes ok
Mod MAC-Address(es) Hw Fw Sw --- -------------------------------------- ------ -----------------------1 00-30-80-f7-a5-06 to 00-30-80-f7-a5-07 1.0 5.2(1) 6.2(0.32-Eng)FTL 00-30-80-f7-a5-04 to 00-30-80-f7-a5-05
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-11
15 8 9
to to to to
Mod Sub-Type --- ----------------------1 L3 Switching Engine 9 Inline Power Module Console> (enable)
To display the version of modules and submodules, perform this task in normal mode: Task Display the version of modules and submodules. Command show version [mod]
Console>
AutoThe supervisor engine directs the switching module to power up the port only if the switching module discovers the phone. OffThe supervisor engine does not direct the switching module to power up the port even if an unpowered phone is connected.
onPower is supplied by the port. offPower is not supplied by the port. Power-denyThe supervisor engine does not have enough power to allocate to the port; power is not being supplied by the port. faultyThe port is unable to provide power to the connected device.
44-12
78-13315-02
Chapter 44
These sections provide information related to IP phone power requirements and management:
Unpowered Phone, page 44-13 Power Requirements, page 44-13 Wall-Powered Phones, page 44-13 Powering Off the Phone, page 44-14 Phone Removal, page 44-14 High-Availability Support, page 44-14
Unpowered Phone
When an unpowered phone is discovered on a switching module port, the switching module reports to the supervisor engine that an unpowered phone is present and on which module/port. If the port is configured in Auto mode, the supervisor engine determines if there is enough available system power to allow the switching module to power up and run the phone. If there is sufficient power, the supervisor engine removes the default allocated power required by a phone from the total available system power and then sends a message to the switching module instructing it to provide power to the port. If there is not enough available power for the phone, the supervisor engine sends a message to the switching module indicating that power is denied to the port. After power is applied to the port, the supervisor engine monitors the port to ensure that the link comes up. If the link does not come up within 4 seconds, the supervisor engine instructs the switching module to turn power off. The entire cycle is repeated, and the switching module performs discovery and reports to the supervisor engine if a device is present on the port.
Power Requirements
IP Phones may have different power requirements. The supervisor engine initially allocates the configured default of 7W (167 mA at 42V) to the Cisco IP Phone. When the correct amount of power is determined from the CDP messaging with the Cisco IP Phone, the supervisor engine reduces or increases the allocated power. For example, the default allocated power is 7W. A Cisco IP Phone requiring 6.3W is plugged into a port. The supervisor engine allocates 7W for the Cisco IP Phone and powers it up. Once the Cisco IP Phone is operational, it sends a CDP message with the actual power requirement to the supervisor engine. The supervisor engine then decreases the allocated power to the required amount.
Wall-Powered Phones
When a wall-powered phone is present on a switching module port, the switching module cannot detect its presence. The supervisor engine discovers the phone through CDP messaging with the port. If the phone supports inline power (the supervisor engine determines this through CDP), and the mode is set to Auto or Off, the supervisor engine does not attempt to power on the port. If a power outage occurs, and the mode is set to Auto, the phone loses power, but the switching module discovers the phone and informs the supervisor engine, which then applies inline power to the phone.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-13
Phone Removal
The switching module informs the supervisor engine if a powered phone is removed using a link-down message. The supervisor engine then adds the allocated power for that port back to the available system power. In addition, the switching module informs the supervisor engine if an unpowered phone is removed.
Caution
When a phone cable is plugged into a port and power is turned on, the supervisor engine has a 4-second timeout waiting for the link to go up on the line. During those 4 seconds, if the phone cable is unplugged and a network device is plugged in, the device could be damaged. We recommend that you wait at least 10 seconds between unplugging a device and plugging in a new device.
High-Availability Support
To support high availability during a failover from the active supervisor engine to the standby supervisor engine, the per-port power management and phone status information is synchronized between the active and standby supervisor engines. The information to be synchronized (on a per-port basis) is the presence of a phone, the phone power status (on, off, denied, or faulty), and the amount of power consumed by the phone. The active supervisor engine sends this information to the standby supervisor engine, and the standby supervisor engine updates its internal data structures. When a switchover occurs, the standby supervisor engine allocates power to the modules and ports from the available power, one module at a time. Once the power for each module has been allocated, the supervisor engine allocates power to the phones, beginning with the lowest slot number, until all inline powered ports have been either powered on, off, or denied.
44-14
78-13315-02
Chapter 44
Catalyst Switch
10/100 module
Cisco phone
10/100 module
Wall-power
10/100 module
Switching module will not discover phone; supervisor engine will not know about phone.
10/100 module
Network device
Phone is inserted but has not booted, then phone is removed. A network device is plugged in. Inline power might damage the network device.
10/100 module
Network device
Supervisor engine discovers the phone through CDP and/or IEEE. Inline powermight damage the network device.
38205
Wall-power
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-15
Device is Powered but Link is Not Up, page 44-16 Port is Unable to Provide Inline Power to the Device, page 44-16 Not Enough Available Power to Power the Device, page 44-16 Power Supply Configured from Nonredundant to Redundant, page 44-16 Power Supply Configured from Redundant to Nonredundant, page 44-16
The supervisor engine also directs the switching module to power off the port. The switching module then performs discovery again on the port.
The supervisor engine informs the switching module that power to the port is denied.
44-16
78-13315-02
Chapter 44
For modules that are already powered on, but have devices connected that are power denied, the supervisor engine attempts to power on the devices starting with the lowest numbered slot to the highest numbered slot, and from the lowest port number to the highest port number, one module at a time.
This example shows how to set the power mode of a port or group of ports:
Console> (enable) set port inlinepower 2/5 off Inline power for port 2/5 set to off. Console> (enable) set port inlinepower 2/3-9 auto Inline power for ports 2/3-9 set to auto. Console> (enable)
This example shows how to set the default power allocation for a port:
Console> (enable) set inlinepower defaultallocation 9500 Default inline power allocation set to 9500 mWatt per applicable port. Console> (enable)
This example shows how to display the power status for modules and individual ports:
Console> show port inlinepower 3/2-6 Default Inline Power allocation per port: 9.500 Watts (0.22 Amps @42V) Total inline power drawn by module 3: 0 Watt Port InlinePowered PowerAllocated Admin Oper Detected mWatt mA @42V ----- ----- ------ -------- ----- -------3/2 auto on yes 10.00 0.250 3/3 auto on yes 9.8 0.198 3/4 auto denied yes 0 0
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-17
no yes
0 0
0 0
The Operational (Oper) status field descriptions in the display are as follows:
onPower is supplied by the port. offPower is not supplied by the port. deniedThe system does not have enough available power for the port. faultyThe port is unable to supply power.
This example shows how to display the power status for modules and individual ports:
Console> (enable) show environment power 5 Feature not supported on module 5. Console> (enable) show environment power 9 Module 9: Default Inline Power allocation per port: 9.500 Watts (0.22 Amps @42V) Total inline power drawn by module 9: 0 Watt Slot power Requirement/Usage : Slot Card Type PowerRequested Watts A @42V ---- ------------------- ------- -----9 WS-X6348 123.06 2.93 PowerAllocated CardStatus Watts A @42V ------- ------ ---------123.06 2.93 ok
Default Inline Power allocation per port: 9.500 Watts (0.22 Amps @42V) Port InlinePowered PowerAllocated Admin Oper Detected mWatt mA @42V ----- ----- ------ -------- ----- -------9/1 auto off no 0 0 9/2 auto off no 0 0 9/3 auto off no 0 0 9/4 auto off no 0 0 9/5 auto off no 0 0 9/6 auto off no 0 0 9/7 auto off no 0 0 9/8 auto off no 0 0 . (display text omitted) . 9/48 auto off no 0 0 Console> (enable) Console> (enable) show environment power PS1 Capacity: 1153.32 Watts (27.46 Amps @ 42V) PS2 Capacity: none
44-18
78-13315-02
Chapter 44
PS Configuration : PS1 and PS2 in Redundant Configuration. Total Power Available: 1153.32 Watts (27.46 Amps @ 42V) Total Power Available for Line Card Usage: 1153.32 Watts (27.46 Amps @ 42V) Total Power Drawn From the System: 289.80 Watts (6.90 Amps @ 42V) Remaining Power in the System: 863.52 Watts (20.56 Amps @42V) Default inline power allocation: 10.5 Watts/port (0.25 Amps @ 42V) Slot power Requirement/Usage : Slot Card-Type Power-Requested Watts A @ 42V ------- ------0.00 0.00 138.60 3.30 114.24 2.72 109.20 2.60 112.98 2.69 84.84 2.02 105.00 2.50 Power-Allocated Watts A @ 42V ------- ------126.42 3.01 138.60 3.30 151.20 3.60 100.88 2.40 0 0 0 0 0 0 Card-Status -----------none ok ok partial-deny unknown power-bad power-deny
---- ------------------1 2 WS-X6K-SUP1-2GE 3 WS-X6348-RJ-45 5 WS-X6348-RJ-45 6 Unknown 7 WS-X6248-RJ-45 9 WS-X6416-GE-MT Console> (enable)
A partial-deny status indicates that some module ports are inline powered but not all the ports on the module are inline powered.
Understanding Auxiliary VLANs, page 44-19 Auxiliary VLAN Configuration Guidelines, page 44-20 Configuring Auxiliary VLANs, page 44-20 Verifying Auxiliary VLAN Configuration, page 44-21
802.1Q frames carrying the auxiliary VLAN ID and Layer 2 CoS set to 5 (the switch port drops all 802.1Q frames except those carrying the auxiliary VLAN ID).
Reset the Cisco IP Phone 7960 if the auxiliary VLAN ID changes. Enter the set port auxiliaryvlan mod[/port] aux_vlan_id command.
Note
802.1p frames, which are 802.1Q frames carrying VLAN ID 0 and Layer 2 CoS set to 5 (enter the set port auxiliaryvlan mod[/port] dot1p command) 802.3 frames, which are untagged and carry no VLAN ID and no Layer 2 CoS value (enter the set port auxiliaryvlan mod[/port] untagged command)
Note
The Cisco IP Phone 7960 always sets Layer 3 IP precedence to 5 in voice traffic.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-19
An auxiliary VLAN port is operationally a trunk, even though it is not treated like a normal trunk port. When an auxiliary VLAN is added to a port and the set dot1q-all-tagged command is enabled, the set dot1q-all-tagged command tags the native VLAN on the port where the auxiliary VLAN is configured. A port with an auxiliary VLAN configured is not viewed as a dot1q trunk in the show trunk command output, but the port acts like a dot1q trunk if the set dot1q-all-tagged command is enabled. The IP phone and a device attached to the phone are in the same VLAN and must be in the same IP subnet:
If they use the same frame type If the phone uses 802.1p frames and the device uses untagged frames If the phone uses untagged frames and the device uses 802.1p frames If the phone uses 802.1Q frames and the auxiliary VLAN equals the native VLAN
The IP phone and a device attached to the phone cannot communicate if they are in the same VLAN and subnet but use different frame types, because traffic between devices in the same subnet is not routed (routing would eliminate the frame type difference). You cannot use switch commands to configure the frame type used by traffic received from a device attached to the phones access port. With software release 6.2(1) and later releases, dynamic ports can belong to two VLANsa native VLAN and an auxiliary VLAN. See Chapter 18, Configuring Dynamic Port VLAN Membership with VMPS, for configuration details for auxiliary VLANs.
This example shows how to add voice ports to auxiliary VLANs, specify an encapsulation type, or specify that the VLAN will not send or receive CDP messages with voice-related information:
Console> (enable) set port auxiliaryvlan 2/1-3 222 Auxiliaryvlan 222 configuration successful. AuxiliaryVlan AuxVlanStatus Mod/Ports ------------- ------------- ------------------------222 active 1/2,2/1-3 Console> (enable) set port auxiliaryvlan 5/7 untagged Port 5/7 allows the connected device send and receive untagged packets and without 802.1p priority. Console> (enable) set port auxiliaryvlan 5/9 dot1p Port 5/9 allows the connected device send and receive packets with 802.1p priority. Console> (enable) set port auxiliaryvlan 5/12 none Port 5/12 will not allow sending CDP packets with Voice VLAN information. Console> (enable)
44-20
78-13315-02
Chapter 44
The default setting is none. Table 44-4 lists the set port auxiliaryvlan command keywords and their descriptions.
Table 44-4 Keyword Descriptions
Action of the Phone Specify that the phone send packets with 802.1p priority 5. Specify that the phone send untagged packets. Specify that the switch not send any auxiliary VLAN information in the CDP packets from that port.
Analog station gateway24-port FXS analog interface module Digital trunk gateway8-port T1/E1 PSTN interface module
If you do not specify DNS parameters, the software uses the system DNS configuration on the supervisor engine to configure the port. 8-port T1/E1 PSTN interface module only: You cannot specify more than one port at a time because a unique IP address must be set for each port.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-21
To configure port voice interface for DHCP, TFTP, and DNS servers, perform this task in privileged mode: Task Configure port voice interface for DHCP, TFTP, and DNS servers. Command set port voice interface mod/port dhcp enable [vlan vlan] set port voice interface mod/port dhcp disable {ipaddrspec} {tftp ipaddr} [vlan vlan] [gateway ipaddr] [dns [ipaddr] [domain_name]] These examples shows how to configure the port voice interface for DHCP, TFTP, and DNS servers:
Console> (enable) set port voice interface 7/1 dhcp enable Port 7/1 DHCP enabled. Console> (enable) set port voice interface 7/3 dhcp disable 171.68.111.41/24 tftp 173.32.43.11 dns 172.20.34.204 cisco.com Port 7/3 dhcp disabled. System DNS configurations applied. Console> (enable) set port voice interface 7/4-6 dhcp enable vlan 3 Vlan 3 configuration successful Ports 7/4-6 DHCP enabled. Console> (enable)
This example shows how to display the port voice interface configuration (this display is from the 24-port FXS analog interface module):
Console> Port -------5/1-24 show port voice interface DHCP MAC-Address ------- ----------------disable 00-10-7b-00-13-ea 5 IP-Address Subnet-Mask --------------- --------------10.6.15.158 255.255.255.0
Port Call-Manager(s) DHCP-Server TFTP-Server Gateway -------- ----------------- --------------- --------------- --------------5/1-24 10.6.15.155 10.6.15.155 Port DNS-Server(s) Domain -------- ----------------- ------------------------------------------------5/1-24 12.2.2.1* cisco.cisco.com 7.7.7.7 (*): Primary Console> (enable)
44-22
78-13315-02
Chapter 44
FDL is a link management protocol used to help diagnose problems and gather statistics. To display Facilities Data Link (FDL) statistics for the specified ports, perform this task in privileged mode: Task Display FDL statistics for the specified ports. Command show port voice fdl [mod[/port]]
This example shows how to display FDL statistics for the specified ports:
Console> (enable) show port voice fdl 7/1-3 Port ErrorEvents ErroredSecond SeverlyErroredSecond Last 15' Last 24h Last 15' Last 24h Last 15' Last 24h ----- -------- -------- -------- -------- -------- ----------7/1 17 18 19 20 21 22 7/2 17 18 19 20 21 22 7/3 17 18 19 20 21 22 Port FailedSignalState Last 15' Last 24h ----- -------- -------7/1 37 38 7/2 37 38 7/3 37 38 Port LES Last 15' Last 24h ----- -------- -------7/1 41 48 7/2 41 48 7/3 41 48 Console> (enable) FailedSignalSecond Last 15' Last 24h -------- --------39 40 39 40 39 40 BES Last 15' Last 24h -------- -------49 50 49 50 49 50 LCV Last 15' Last 24h -------- -------53 54 53 54 53 54
Table 44-5 describes the possible fields (depending on the port type queried) in the show port voice fdl command output.
Table 44-5 FDL Field Descriptions
Description Count of errored events. Count of errored seconds. Count of severely errored seconds. Count of failed signal state errors. Count of errored events. Line errored seconds detected. Bursty errored seconds detected. Line code violation seconds detected.
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-23
This section provides the show port command displays for the following gateway modules:
8-Port T1/E1 PSTN Interface Module, page 44-24 8-Port T1/E1 PSTN Interface Module Configured for Trancoding/Conferencing, page 44-25 24-Port FXS Analog Interface Module, page 44-26
IP-Address Subnet-Mask --------------- --------------172.20.34.68 255.255.255.0 172.20.34.70 255.255.255.0 172.20.34.64 255.255.255.0 172.20.34.66 255.255.255.0 172.20.34.59 255.255.255.0 172.20.34.67 255.255.255.0 (Port host processor not online) (Port host processor not online) TFTP-Sever Gateway --------------- --------------172.20.34.207 172.20.34.207 172.20.34.207 172.20.34.207 172.20.34.207 172.20.34.207 172.20.34.20 -
Port Call-Manager(s) DHCP-Server -------- ----------------- --------------7/1 172.20.34.207* 172.20.34.207 callm.cisco.com 7/2 172.20.34.207 172.20.34.207 7/3 172.20.34.207 172.20.34.207 7/4 172.20.34.207 172.20.34.207 7/5 172.20.34.207 172.20.34.207 7/6 172.20.34.207 172.20.34.207 7/7 (Port host processor not online) 7/8 (Port host processor not online)
44-24
78-13315-02
Chapter 44
7/3 7/4 7/5 7/6 7/7 7/8 Port -------7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8 Port ----7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8
DNS-Server(s) Domain --------------- ------------------------------------------------172.20.34.207 cisco.com 172.20.34.207* int.cisco.com 171.69.45.34 172.78.111.132 172.20.34.207 172.20.34.207 172.20.34.207 172.20.34.207 (Port host processor not online) (Port host processor not online) CallManagerState DSP-Type ---------------- -------registered C549 registered C549 registered C549 registered C549 registered C549 notregistered C549 (Port host processor not online) (Port host processor not online) NonLinearProcessing ------------------disabled disabled disabled disabled disabled enabled processor not online) processor not online)
NoiseRegen ---------disabled disabled disabled disabled enabled disabled (Port host (Port host
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-25
7/4 7/5 7/6 7/7 7/8 Port -------7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8 Port -------7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8 Port -------7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8
Call-Manager(s) ----------------10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 DNS-Server(s) ----------------CallManagerState ---------------registered registered registered registered registered registered registered registered
Domain ------------------------------------------------DSP-Type -------C549 C549 C549 C549 C549 C549 C549 C549
Port NoiseRegen NonLinearProcessing ----- ---------- ------------------7/1 enabled enabled 7/2 enabled enabled 7/3 enabled enabled 7/4 enabled enabled 7/5 enabled enabled 7/6 enabled enabled 7/7 disabled disabled 7/8 disabled disabled Console> (enable)
44-26
78-13315-02
Chapter 44
3/5 3/6 3/7 3/8 3/9 3/10 3/11 3/12 3/13 3/14 3/15 3/16 3/17 3/18 3/19 3/20 3/21 3/22 3/23 3/24
onhook onhook onhook offhook offhook onhook onhook onhook onhook onhook onhook onhook onhook onhook onhook onhook onhook onhook onhook onhook
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
full full full full full full full full full full full full full full full full full full full full
64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k
FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS FXS
Port DHCP MAC-Address IP-Address Subnet-Mask -------- ------- ----------------- --------------- --------------3/1-24 enable 00-10-7b-00-13-e4 172.20.34.50 255.255.255.0 Port Call-Manager(s) DHCP-Server TFTP-Sever Gateway -------- ----------------- --------------- --------------- --------------3/1-24 172.20.34.207 172.20.34.207 172.20.34.207 Port DNS-Server(s) Domain -------- ----------------- ------------------------------------------------3/1-24 172.20.34.207* cisco.com 172.34.23.111 Port CallManagerState DSP-Type -------- ---------------- -------3/1-24 registered C549 Port ToneLocal Impedance InputGain(dB) OutputAtten(dB) -------- ------------- --------- ------------- --------------3/1-24 northamerica 0 0 0 Port RingFreq (Hz) -------- -------3/1-24 20 (*): Primary Console> (enable) Timing Digit(ms) --------100 Timing InterDigit(ms) -------------100 Timing Pulse(ms) --------0 Timing PulseDigit(ms) -------------0
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-27
To display active call information, perform this task in normal mode: Task Display active call information. Command show port voice active [mod/port] [all | call | conference | transcode] [ipaddr]
Entering the show port voice active command without any parameters shows all the calls in the system (regular calls, conference calls, and transcoding calls). Display field descriptions are as follows:
TypeThe call notation is for 24-port FXS analog interface module and 8-port PSTN interface module calls. When you configure 8-port T1/E1 PSTN interfaces for transcoding and/or conferencing, the Type field displays conferencing for conferencing calls and transcoding for transcoding calls.
Conference-ID, Transcoding-ID, and Party-ID are only applicable to 8-port T1/E1 PSTN interfaces configured for transcoding and/or conferencing.
3/8
conferencing 2
3/2 3/8
call transcoding
1 1
1 2 3 5 1 3 6 1 2
This example shows how to display detailed call information for a port (specifying the module only, this example shows detailed call information for all ports on the module):
Console> show port voice active 3/2 Port 3/2: Channel #1: Remote IP address Remote UDP port Call state Codec Type Coder Type Rate Tx duration Voice Tx duration ACOM Level Current ERL Level Fax Transmit Duration Hi Water Playout Delay Logical If index Low water playout delay Receive delay Receive bytes
: : : : : : : : : : : : : : :
165.34.234.111 124 Ringing G.711 35243 438543 sec 34534 sec 123213 123 dB 332433 23004 ms 4 234 ms 23423 ms 2342342332423
44-28
78-13315-02
Chapter 44
Receive packets Transmit bytes Transmit packets Channel #2: Remote IP address Remote UDP port Call state Codec Type Coder Type Rate Tx duration Voice Tx duration ACOM Level Current ERL Level Fax Transmit Duration Hi Water Playout Delay Logical If index Low water playout delay Receive delay Receive bytes Receive packets Transmit bytes Transmit packets Channel #3: . (display text omitted) . Console>
: 23423423402384 : 23472377 : 94540 : : : : : : : : : : : : : : : : : : 165.34.234.112 125 Ringing G.711 35243 438543 sec 34534 sec 123213 123 dB 332433 23004 ms 4 234 ms 23423 ms 2342342332423 23423423402384 23472377 94540
Understanding How QoS Works in the Cisco IP Phone 7960, page 44-30 Configuring QoS in the Cisco IP Phone 7960, page 44-30
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-29
The Cisco IP Phone 7960 always sets Layer 3 IP precedence and Layer 2 CoS to 5 in voice traffic generated by the phone. The Layer 3 IP precedence and Layer 2 CoS values in voice traffic generated by the phone are not configurable. You can configure the Cisco IP Phone 7960 access port (see Figure 44-5) to either trusted or untrusted mode. Untrusted mode means that all traffic in 802.1Q or 802.1p frames received through the access port is marked with a configured Layer 2 CoS value. The default Layer 2 CoS value is 0. Untrusted mode is the default when the phone is connected to a Cisco LAN switch. Trusted mode means that all traffic received through the access port passes through the phone switch unchanged. Trusted mode is the default when the phone is not connected to a Cisco LAN switch. Traffic in frame types other than 802.1Q or 802.1p passes through the phone switch unchanged, regardless of the access port trust state.
Figure 44-5 Configuring QoS on the IP Phone Ports
Phone ASIC Catalyst switch P2 P1 10/100 module 3-port switch P3 Access port
38204
Workstation/PC
Setting the Phone Access Port Trust Mode, page 44-31 Setting the Phone Access Port CoS Value, page 44-31 Verifying the Phone Access Port QoS Configuration, page 44-31
44-30
78-13315-02
Chapter 44
This example shows how to set the phone access port to the trusted mode:
Console> (enable) set port qos 3/7 trust-ext trusted Port in the phone device connected to port 3/7 is configured to be trusted. Console> (enable)
This example shows how to set the phone access port to the untrusted mode:
Console> (enable) set port qos 3/7 trust-ext untrusted Port in the phone device connected to port 3/7 is configured to be untrusted. Console> (enable)
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
44-31
44-32
78-13315-02
I N D E X
Numerics
10/100-Mbps port speeds, setting configuring description 802.1Q configuring
5-6 5-13 11-9, 11-10 44-26 44-4 4-5
setting retransmission number supplicant automatic reauthentication manual reauthentication transport layer packets setting retransmission time configuring description
44-25 44-6
21-45
21-42 21-42
21-45
A
abbreviating commands
21-43 2-9
VLAN mapping
802.1x authentication disabling multiple hosts EAP-request frames setting retransmit time enabling multiple hosts global disabling enabling
21-41 21-40 21-44 21-42
Accelerated Server Load Balancing See ASLB access control entries See IOS ACLs See QoS ACE See VACLs access control lists See IOS ACLs See QoS ACL See VACLs
21-44
identity frames setting retransmit time individual ports enabling initializing overview
21-7 21-45 21-42 21-41 21-41 21-42
access control subsystem SNMP entity console port Telnet session accounting configuration guidelines default configuration
21-42 21-60 21-57 36-7
disabling
21-61
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-1
Index
enabling events
ARP configuring permanent and static entries restricting ARP traffic using VACLs ASLB
21-58 20-8 16-26
specifying RADIUS servers suppressing accounting updating the server ACE See IOS ACLs See QoS ACE See VACLs ACL See IOS ACLs See QoS ACL See VACLs addresses IP, see IP addresses MAC, see MAC addresses address resolution protocol See ARP address table and switching adjacency table
13-6 21-59
cabling guidelines
21-59
configuration examples
configuring ASLB on the switch data forwarding Layer 2 operation Layer 3 operation overview audience login enabling overview password NTP and
4-2 21-12, 21-13 21-2 21-14 42-1, 42-2 xxvii 42-4
authentication
recovering password
20-1, 28-1 10-2
administering the switch advertisements, VTP aggregate policing rule See QoS policing aging-time CEF MLS
13-10 14-17
Kerberos authentication local authentication login authentication RADIUS authentication TACACS+ authentication authorization
13-23
PFC2 NetFlow statistics alarms, major and minor aliases creating for commands IP creating
20-6 2-6
21-49
20-16
20-5
designating
trunks
IN-2
78-13315-02
Index
displaying configuration
12-5
overview
auxiliary VLANs
44-19
note
B
BackboneFast disabling enabling figure adding a switch
9-5, 9-6 9-5 9-4 21-45 9-4
bridge ID and MAC addresses bridge ID priority, PVST+ bridge protocol data units See BPDUs
9-16 8-15
9-16
displaying statistics
9-15
32-1
40-5 32-2
after indirect link failure before indirect link failure banner See login banner BOOT environment variables clearing default overview setting boot field overview setting booting
23-2 23-5 22-2 23-11, 23-12 23-4 23-12 23-3 23-10, 23-11
back-end authenticator-to-supplicant
C
cache IP MLS, displaying entries MLS, overview CAM, IP MLS CDP default configuration disabling globally on ports
23-10 29-2 29-3 29-5 29-2 14-5 14-20 16-38 14-22
displaying
booting the MSFC for the first time BOOTP and in-band (sc0) interface Bootstrap Protocol See BOOTP
3-4 3-9
holdtime, setting
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-3
Index
29-4
classless interdomain routing See CIDR clear boot system flash command clearing the configuration clearing VLAN mappings
13-11 26-8 23-11
13-14
displaying information
console configuration mode getting list of commands global configuration mode levels of access
13-10 13-10 2-8 2-9 13-10 2-9 13-10
flow masks
2-9 2-9
interface configuration mode (IOS) privileged EXEC mode ROM monitor software basics switch accessing
2-2 2-2 2-1 2-8
Layer 3 switching
13-4 13-2
console port
13-11
2-6 2-5
channel modes, EtherChannel (table) checksum, verifying Flash file CIDR, configuring static routes Cisco CallManager, overview Cisco Discovery Protocol See CDP Cisco Group Management Protocol See CGMP Cisco IP Phone 7960 Cisco VG200
44-7 44-2
2-5 2-5
2-5
20-5
IN-4
78-13315-02
Index
command-line interface See CLI commands, getting list of committing ACLs See QoS ACL committing community ports configuration clearing (switch) MISTP
8-23 26-8 11-14 23-7 2-9
congestion avoidance See QoS congestion avoidance console configuration mode console port accessing MSFC
2-4 2-9
27-5
19-6
19-6 20-3
via TFTP
content-addressable memory
guidelines for creating running configuration downloading via rcp uploading via rcp uploading preparation to rcp server
26-5, 26-8 26-8 26-5 2-8
26-7 26-3
41-65
26-5
41-65
deleting removing
41-62
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-5
Index
D
database, VMPS downloading date, setting
18-7 18-9
28-3
domain name
28-3 28-2 28-2 28-1
daylight saving time disabling adjustment enabling adjustment default gateway configuring removing DES key clearing defining See QoS destination flow masks
14-6 13-10 13-10 21-38 21-38 3-6 3-7 22-22
28-3 28-2
designated MSFC
documentation, related document organization domain name clearing setting See DNS dot1x
28-3 28-2
destination-based QoS
destination-ip flow masks destination-ipx flow masks detection BPDU skewing DHCP
8-37
21-43
21-44 21-42
21-43
on MSFC interfaces DISL See DTP dispatcher SNMP entity DNS default configuration
36-7
14-14 14-17
21-45
21-45
28-1
IN-6
78-13315-02
Index
E
enable mode
2-9
via TFTP
software images example, multiple module example, single module overview preparation supervisor
25-2 25-2, 25-9 25-3, 25-10 25-4, 25-10 25-21
14-14
encapsulation type descriptions, trunks (table) environmental monitoring LED indications SNMP traps
20-16 20-16
xmodem or ymodem
20-16
See QoS congestion avoidance DSCP See QoS DSCP DTP non-Cisco devices and overview
5-2 4-5 5-4
See BOOT environment variables errdisable timeout, configuring error messages system message logging (syslog) VMPS (table) EtherChannel administrative groups bundling
6-1 6-3 6-4 6-2 18-8 27-1 4-9
Dynamic Host Configuration Protocol dynamic interswitch link (DISL) protocol See DTP dynamic port VLAN membership configuring example overview
18-5 18-2
channel modes (table) configuration guidelines configuring port modes port path cost
18-12 6-5 6-5 6-6 6-6
default configuration
18-10
VLAN cost
5-10, 5-13
reconfirming
6-1, 6-4
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-7
Index
port aggregation protocol port VLAN cost Ethernet autonegotiation, speed checking connectivity configuring
4-1 4-3 4-5 6-6
6-2
filters, NDE See NDE filters Flash file system checksum files copying deleting
4-6 24-4 24-6 24-3 24-7 24-2 24-8 24-7
4-13
flow control keywords (table) port duplex, setting port enable state port name, setting port negotiation port speed, setting setting port duplex switching frames timeout periods ACLs ethertypes
41-16 41-15 4-9 4-7 4-4 4-7 4-5 4-8 4-2 4-5
listing
restoring
24-2
Flash PC cards, formatting Flash synchronization examples overview flow control configuring flow masks
22-14 22-3 41-3
24-8
flowcharts, QoS
4-6
41-16
4-6 4-6
F
fast aging-time PFC2 statistics Fast EtherChannel See EtherChannel Fast Ethernet See Ethernet setting port duplex FIB
13-5 30-1 4-8 14-19 13-24
13-10 13-10
source-destination-ip source-destination-vlan IP MLS entries and IP MLS full flow IPX MLS minimum
14-6 14-19 13-24 14-7 14-6
13-10 13-10
fiber-optic, detecting unidirectional links filtering syntax for QoS filters See protocol filtering
41-37
PFC2 statistics
IN-8
78-13315-02
Index
MLS destination
14-6 14-6 14-6
overview
40-15
IP MMLS, completely and partially switched multicast completely and partially switched formatting Flash devices
24-8 13-5
40-18 40-17
40-16
forwarding information base (FIB) frame retransmission number full flow flow mask
13-10, 14-6 21-45
G
GARP Multicast Registration Protocol See GMRP GARP timers, setting Gigabit Ethernet See Ethernet Gigabit Ethernet trunks See trunks global configuration mode GMRP default configuration disabling globally per-port enabling globally per-port
40-12 40-12 40-18 40-13 40-11 2-9 17-7, 40-16
dynamic VLAN creation globally registration fixed normal statistics clearing viewing timers
17-7 17-8 17-8 17-5 17-6 17-3 17-3
17-4
on 802.1Q ports
forbidden
17-5 17-7
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-9
Index
H
high availability configuring
22-11
supported features versioning overview history, switch CLI See HSRP HSRP ACLs
2-7
40-2 40-10
IP address, assigning
3-1, 3-4 3-9
VLAN assignment
11-2 9-4
inferior BPDU, BackboneFast and interface configuration mode interfaces in-band (sc0)
3-4, 3-5, 11-2 2-9
I
ICMP ping executing overview
19-8 19-7 4-13 19-10
3-4, 3-7
Internet Group Management Protocol interVLAN routing AppleTalk, configuring IP, configuring IPX, configuring overview IOS bringing up interface
40-7 40-11 40-7 40-3 2-11 2-11 12-1 12-3 12-3 12-4
testing connectivity with time exceeded messages traceroute and IGMP configuration guidelines disabling enabling
19-10
IN-10
78-13315-02
Index
16-3 16-9
hardware and software handling in PFC hardware and software handling in PFC II hardware requirements overview
16-1 16-11 16-14 16-2
configuration guidelines
13-11 13-17, 14-31
reflexive ACLs with PFC reflexive ACLs with PFC II supported features with VACLS IP accounting, IP MMLS and CIDR and
20-7 16-15
16-10, 16-12
group information
14-13
groups clearing
12-3 40-20 40-9, 40-19
configuring interVLAN routing default gateway, configuring static routes IP addresses adding to IP permit list aliases, creating BOOTP
3-9 34-4 20-6 3-2 34-2 20-7 11-2 3-6
configuring joining
40-3
IGMP fast-leave processing IGMP snooping and IGMP statistics overview router clearing ports
40-20 40-19 40-9 40-1 40-10 40-6
40-10
automatic assignment
obtaining from DHCP, BOOTP or RARP setting on supervisor SLIP (sl0) interface IP aliases creating
20-6 2-6 3-5 3-9
13-17, 14-31
34-2
34-4 34-2
default configuration
designating
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-11
Index
IP PIM
13-15, 14-29
PC procedure
UNIX procedure
preparing to download software images UNIX software download procedure keys see DES key see RADIUS key see TACACS+ key
25-17
J
jumbo frames configuring disabling enabling
4-11 4-11 4-11
L
Layer 2 forwarding table, IP MMLS and Layer 2 traceroute utility CEF MLS
13-2 14-2 19-9 14-4
K
Kerberos authentication DES key, defining and clearing disabling credentials forwarding enabling
21-32 21-36 21-38 21-37
servers, specifying
21-14
21-16
16-40
IN-12
78-13315-02
Index
logical operation unit See LOU login authentication enabling overview login banners clearing overview recovering setting loop guard configuring overview LOU description
16-21 16-21 9-17 9-5 20-5 20-5 20-4 21-12, 21-13 21-2
41-22
configuring an instance conflicts, MISTP VLAN default configuration enabling an instance mapping VLANs to MIST-PVST+ port cost
8-24 8-25 8-20
8-23 8-28
21-16
21-14
8-25
8-28
14-6
M
MAC addresses address table allocation blocking designating
35-1 2-6 35-1 8-12 11-9 4-2 8-12
clearing entries
displaying by IP destination address displaying by IP source address displaying by specific flow entries, clearing
14-26 14-36 14-22
14-24 14-23
entries, displaying IP multicast entries, displaying IP unicast overview size (note) clearing cache entries statistics
36-8 14-26 13-28, 14-28 14-5 14-18 14-20
MAC address reduction mapping reserved VLANs mapping VLANs markdown (QoS) marking (QoS) message-of-the-day See login banner
11-10 41-22 41-27
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-13
Index
modes
overview
configuration guidelines for IPX MLS interaction with other features MTU
14-14
completely and partially switched multicast Layer 2 forwarding table monitoring on MSFC MSFC disabling on interfaces enabling globally
14-29 13-15, 14-14, 14-30 14-14 13-16, 14-31
configuring threshold
debug commands on MSFC2 for multicast traffic debug commands on MSFC for multicast traffic debugging on MSFC
13-19, 14-16, 14-33 13-28, 14-28 14-10
on supervisor engine default configuration disabling on MSFC interface displaying cache entries information statistics enabling IP PIM on MSFC IP PIM on router on MSFC interfaces entries (note) examples flow masks access lists and destination full flow minimum
14-6 14-6 14-6 14-8 14-19 14-18 14-22 14-21
14-14 14-17
13-15, 14-30
13-21
14-2 14-19
restrictions for IP MMLS, MSFC restrictions for IP MMLS, switches route-processor (note) routers enabling globally PIM, enabling
13-14 14-29
14-13 14-12
13-17
fast aging-time
routing command restrictions setting minimum flow mask specifying aging time
14-7 14-17
14-19
IN-14
78-13315-02
Index
statistics clearing
13-28, 14-28 14-27 14-27
12-1 12-3
12-3
configuration, displaying statistics, clearing statistics, displaying topology (figure) MMLS See MLS modules checking status
19-1 14-9
12-3
14-31
designating on command-line downloading software images status, checking supervisor engine configuring MOTD See login banner MSFC accessing from switch console port telnet session
2-4 2-4 3-1 19-1
PIM, enabling on MSFC interfaces session command and MSFC2 Catalyst 5000 support configuring IP multicast
13-14 13-14 13-14 13-1 2-4 2-4
14-29
13-17 13-15
PIM, enabling on MSFC2 VLAN interfaces MTU IP MLS and IPX MLS and multicast groups leaving
40-3 14-11 14-14
as MLS route processor for Catalyst 5000 family switches 14-14 booting for the first time configuration guidelines interVLAN routing IP MMLS MLS
14-11 2-10 14-13 12-2 3-4
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-15
Index
statistics collection removing protocols for specifying protocols for NetFlow Data Export See NDE Network Address Translation See NAT network management See RMON
15-10 15-8 15-8
N
NAT
16-12, 16-15
native VLAN 802.1Q and NDE configuration, displaying data collection removing disabling filters clearing
15-9 15-6 15-6 15-7 15-2 5-4
normal-range VLANs See VLANs NTP authentication configuring disabling client mode configuring
31-3 31-8 31-4
displaying configuration
broadcast-client mode
31-3 31-8
source host and destination TCP/UDP port, specifying 15-7 overview protocols removing for statistics collection specifying for statistics collection RMON
15-1 15-1
specifying collectors destination and source subnets destination host filters protocol filters
15-8 15-8 15-6 15-7
31-7 31-5
23-9 24-2
IN-16
78-13315-02
Index
O
out of profile See QoS out of profile
MS-Windows
16-55
P
packet rewrite CEF packets bridged multicast routed CEF PAgP
16-7 16-8 13-2 14-2
Sun Workstations overview PC card See Flash PC card PCMCIA See Flash PC card PDP server See COPS or RSVP permit list See IP permit list PFC IGMP snooping and protocol filtering and
21-15 21-14 21-16 16-47
16-54
MLS and
16-7
packet threshold
13-24 14-19
IP MLS
6-2
40-7 33-1
QoS, see Layer 3 Switching Engine PFC2 NetFlow fast aging-time flow masks statistics
13-24 13-24 13-24
recovering lost
13-23
configuring VACLs for PBF displaying PBF information displaying PBF statistics enabling PBF
16-48
displaying for NetFlow table entries phones, Cisco IP Phone 7960 PIM
16-50 16-48 16-47 40-5 14-29 13-15 44-2
13-26
enabling jumbo frame forwarding specifying adjacency table entries specifying a PBF MAC address hardware and software requirements
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-17
Index
overview
19-7 4-13
reconfirming
testing connectivity
policy-based forwarding, see PBF policy decision point servers See COPS or RSVP PDP Policy Feature Card See PFC Port Aggregation Protocol See PAgP port-based QoS features See QoS port bundling, EtherChannel port debounce timer disabling displaying enabling PortFast BPDU filter configuring BPDU guard configuring disabling enabling caution disabling enabling ports capabilities, checking checking status community duplex
4-5 19-2 19-4 4-7 9-2 9-11 9-2 9-9 9-10, 9-12 9-9, 9-11 4-8 4-8 4-8 6-1
promiscuous
setting the debounce timer speed, 10/100 Ethernet VLAN assignments port security age time, specifying
35-5 4-5 11-12
4-8
changing the default port enable state clearing MAC addresses configuration guidelines disabling enabling monitoring overview
35-7 35-3 35-5 35-3
4-7
35-4
security violation action, specifying shutdown time, specifying port status, checking power management
19-2 35-6
35-6
configuring
determining system power requirements, nine-slot chassis 20-14 enabling/disabling redundancy overview voice
20-11 20-13 20-11
private VLANs
configuration guidelines
16-26
delete mapping
11-22
11-23
default configuration
18-10 18-1
IN-18
78-13315-02
Index
trust-dscp port keyword trust-ipprec port keyword QoS ACE ICMP, creating ICMP, options IGMP, creating IGMP, options
33-2 41-10 2-9 41-10
two-way community VLAN privileged EXEC mode prompt configuring overview configuring disabling enabling overview pruning, VTP See VTP, pruning PVST+
8-14 20-3 20-1
protocol filtering
33-3
default configuration
33-3 33-3 33-1 33-2
protocol support
IP with only Layer 3 options IPX, options MAC, creating MAC, options TCP, creating TCP, options UDP, creating
8-18
41-41
bridge ID priority, configuring default configuration default port cost mode disabling port cost
8-19 8-16 8-17 8-14 8-17
port priority
Q
QoS (note) COPS See COPS receive queue statistics data export configuring
41-70 41-73 41-27 16-2
default IPX, creating default MAC, creating deleting named detaching IP, named modifying
41-10 41-46 41-44
configuring destination host configuring time interval displaying information trust-cos port keyword
41-74
discarding uncommitted
41-38 41-21
41-45
41-73
41-37
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-19
Index
names
41-21
policing rules
policing rules, creating policing rules, deleting storing in Flash memory QoS classification criteria IP ACE Layer 3
41-16
QoS dual transmit queue thresholds, configuring congestion avoidance QoS enabling
41-31 41-49
IP ACE Layer 4 ICMP IP ACE Layer 4 IGMP IP ACE Layer 4 protocol IP ACE Layer 4 TCP IP ACE Layer 4 UDP IPX ACE
41-19
41-17 41-18
feature summary
44-29
41-9 41-13
Layer 3 Switching Engine classification features marking, scheduling, congestion avoidance, and classification 41-10 scheduling
41-25 41-11 41-11
scheduling and congestion avoidance QoS ethertype field values QoS feature set summary QoS filtering
41-37 41-16 41-8
and ToS final values from Layer 3 Switching Engine 41-24 configuring port value definition
41-2 41-28 41-33
QoS final Layer 3 Switching Engine CoS and ToS values 41-24 QoS flowcharts
41-3 41-15 44-29
QoS default configuration QoS definitions deleting QoS display information statistics QoS DSCP definition
41-2 41-15 41-55 41-58 41-59 41-47 41-60 41-2
QoS internal DSCP values QoS IP phone, configuring QoS IPX ACE
41-19
41-47
41-2
QoS Layer 3 Switching Engine classification, marking, and policing feature summary
41-9 41-20 41-5, 41-14
internal values
maps, configuring
IN-20
78-13315-02
Index
QoS mapping CoS values to drop thresholds CoS values to DSCP values DSCP markdown values DSCP values to CoS values QoS markdown QoS marking definition MSFC
41-22 41-27 41-14 41-57 41-56 41-56 41-52 41-55
QoS single-receive, dual-transmit queue ports configuring QoS ToS and CoS final values from Layer 3 Switching Engine 41-24 definition
41-2 41-3 41-52 41-11
QoS traffic flow through QoS features QoS transmit queue allocating bandwidth between size ratio
41-51 41-25, 41-53, 41-54 41-50
QoS triple transmit queue WRED drop thresholds ACE keyword QoS trust-dscp ACE keyword
41-48 41-21
41-49
41-6 41-22
41-21
microflow, enabling for nonrouted traffic token bucket aggregate dual rate deleting microflow QoS port trust state
41-32 41-32 41-22 41-22
QoS understanding
QoS understanding policy QoS untrusted port keyword QoS WRED drop thresholds
41-36 41-22
41-49
R
41-10 41-11 41-11, 41-54 41-13 41-48
QoS port-based or VLAN-based QoS port keywords QoS receive queue drop thresholds
QoS single-port ATM OC-12 switching module features 41-9 QoS single-port ATM OC-12 switching module marking 41-8
servers, specifying
21-59
21-58
21-59
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-21
Index
reserved-range VLANs See VLANs reset scheduling absolute date and time scheduling system reset retransmission time authenticator-to-supplicant
21-27 21-44 21-45 20-10 20-10
default configuration
back-end authenticator-to-authentication-server back-end authenticator-to-supplicant Reverse Address Resolution Protocol See RARP rewrite, packet CEF MLS RGMP configuring disabling
40-21 40-21 13-2 14-2 21-44
21-27
RADIUS authorization
default configuration
40-21 40-21 3-3
enabling
26-7 25-10 25-10
40-3
downloading supervisor engine images downloading switching module images uploading configuration files receive queues See QoS receive queues redundancy overview redundant synchronizing boot images redundant supervisor engine See supervisor engine, redundant related documentation Remote Monitoring See RMON Remote Switched Port Analyzer See RSPAN
xxix 22-16 22-18 26-8
40-24
packet types
40-23 40-24
40-23
VLAN statistics
40-22
enabling overview
IN-22
78-13315-02
Index
ROM monitor BOOT environment variable and boot process and CLI
2-1 23-2 23-2 23-3
S
sc0 (in-band) interface configuring overview scheduling See QoS scheduling a system reset
8-31 20-9 3-5 3-5
configuration register and console port baud rate root guard disabling enabling root switch improving convergence primary, configuring secondary, configuring See also root guard router, multicast See RGMP routing tables, multicast RSPAN concepts and terminology configuration examples configuration guidelines configuring examples from CLI
40-19 8-29 8-32 8-32 23-6
IP address, assigning
3-1
VLAN assignment
11-2
8-30
passwords, configuring
security ACL, removing VACL to VLAN mapping Serial Control Protocol commands (table)
38-1 38-13 38-9 14-16
See also RADIUS accounting, TACACS+ accounting serial download example PC software image download PC software image download procedure
25-19 25-20 25-16
UNIX software image download procedure session command, MSFC and set defaultcostmode command set logging level acl command set mls agingtime command
38-4 2-4 8-18 16-40 13-23, 14-18 13-24, 14-19
25-17
multiple RSPAN sessions single RSPAN session hardware requirements session limits RSVP
41-66 41-67 38-4 38-8
38-13
set module power up/down command set spantree portcost command set spantree portpri command set spantree priority command shortcuts, Layer 3 See MLS
8-15, 8-23
policy timeout
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-23
Index
14-7 14-20 13-12, 14-21 13-28, 14-28 13-25, 14-7, 14-22 14-23
slip attach command slip detach command SLIP (sl0) interface configuring SNMP
3-7
3-7 3-7
show mls entry ip destination command show mls entry ip flow command show mls entry ip source command show mls entry ipx command displaying IP MMLS group
14-25 14-24
36-10
14-24
ifindex persistence feature security models and levels SNMP agents and MIBs SNMPv1 overview SNMPv2c overview SNMPv3 overview terms
36-1 36-5 36-5 36-7
show mls ip multicast interface command displaying IP MMLS interface displaying IP MMLS source displaying IP MMLS statistics show mls ip multicast summary displaying IP MMLS configuration show mls rp command
14-15 13-26, 14-27 14-27 13-17, 14-32 13-17, 14-32
supported RMON MIB objects SNMP entity access control subsystem definition dispatcher
36-7 36-7 36-7
37-2
message processing subsystem software images downloading example, multiple module example, single module example, supervisor overview preparation
25-2 25-2, 25-9 25-3, 25-10 25-4, 25-10
36-7, 36-8
show mls statistics protocol command show spantree conflicts command single router mode redundancy See SRM skewing BPDU configuring sl0 (SLIP) interface configuring overview SLIP caution enabling overview
3-7 3-7 3-7 3-1 8-36 8-28
25-5, 25-11
switching module
25-8, 25-15 25-15 25-9, 25-15 25-9 13-10, 14-6 13-10, 14-6
supervisor engine
3-1, 43-1
sl0 interface
IN-24
78-13315-02
Index
SPAN caution
38-7 38-6
configuration guidelines configuring from CLI destination port disabling egress ingress NMS and overview session
38-3 38-2 38-8, 38-12
IEEE, overview
38-5
hardware requirements
38-3 38-1 38-5 38-2
See also BackboneFast See also MISTP and PVST+ See also PortFast See also UplinkFast timers See timers, configuring strict-priority queue See QoS
4-5
10/100 Ethernet port, setting SRM configuration guidelines configuration procedure getting out of SRM
22-44
22-42 22-42
hardware and software requirements upgrading images with SRM enabled SSH
19-5
standby supervisor engine See redundant supervisor engine See supervisor engine, redundant startup tasks booting the MSFC static routes CIDR and VLSM and statistics BPDU skewing statistics, PFC2
8-36 13-9 20-7 20-7 3-4 20-7
23-6
23-4
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-25
Index
downloading software images See Flash file system IP address, setting overview
3-1 3-5
history substitution
management interfaces sc0 (in-band), configuring sl0 (SLIP), configuring preparing to configure redundant configuration guidelines Flash synchronization overview
22-2 22-2 22-2 22-5 22-4 22-4, 22-14 22-6 3-4 3-7
2-6
ports, designating
VLANs, designating Switched Port Analyzer See SPAN switch fabric module
2-4
forcing switchover to standby slot assignment understanding verifying status ROM monitor
43-2
23-2
slot locations
3-7
sc0 (in-band) interface sl0 (SLIP) interface software images downloading uploading static routes switchover
switch management interfaces See supervisor engine, management interfaces switchover See supervisor engine, switchover switch TopN reports background execution
25-9, 25-15 39-2 39-2 39-2
uploading software images Supervisor Engine 1 environmental monitoring supplicant automatic reauthentication manual reauthentication switch administration modules, checking status ports, checking status procedures
20-1, 28-1 23-1
foreground execution metric values (table) overview running viewing syslog buffer size, setting
39-1 39-3 39-3
20-16
21-42 21-42
27-6 27-9
19-1
19-2
IN-26
78-13315-02
Index
27-6
message log, displaying session settings, setting system clock, setting system contact, setting system image switch downloading uploading
20-4
27-10
clearing
20-3
startup, specifying system location, setting system message logging buffer size, setting configuring disabling enabling
27-4
27-6
T
TACACS+ accounting configuration guidelines creating records
27-3 27-3 27-9 21-57 21-60
daemon, configuring default configuration definitions elements (table) severity level (table) logging levels, setting message format overview
27-1 27-3
21-61 21-60
21-57 21-63
27-10
suppressing
21-59
21-11, 21-51
disabling logging
21-17, 21-21
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-27
Index
enabling
primary options and fallback options servers, clearing servers, specifying timeout interval
21-22 21-17
time, setting
20-4
21-19
TACACS+ authorization overview TCP intercept with PFC TCP intercept with PFC II TCP QoS features See QoS ACE or ACL Telnet executing
19-4
See VLANs, Token Ring TopN reports See switch TopN reports
21-12 21-2
11-24
ToS See QoS traceroute See IP traceroute traceroute command traffic, handling
27-5 4-13
21-18, 21-20
21-13
16-5 16-5
text file configuration mode setting the configuration mode TFTP downloading configuration files downloading software images example, multiple module example, single module example, supervisor
25-7, 25-13 25-6 26-3
TrCRF See VLANS, Token Ring Trivial File Transfer Protocol See TFTP troubleshooting system message logging and VMPS
18-8 27-1
25-5, 25-11
IN-28
78-13315-02
Index
trunks 802.1Q configuring negotiating restrictions autonegotiation configuring 802.1Q trunk ISL trunk
5-5 5-5 5-7 5-6 5-7 5-6 5-7 5-4 5-7 5-2
displaying configuration
allowed VLANs
specify the message interval UDP QoS features See QoS ACE or ACL unicast suppression See UDLD untrusted
5-2 32-2
defining allowed VLANs encapsulation types descriptions (table) example configurations 802.1Q ISL ISL over EtherChannel link trunk configuration load-sharing traffic modes (table) overview
5-1 5-22 5-2 5-9 5-16 5-13 5-9, 5-10 5-16
see QoS trust-cos See QoS untrusted UplinkFast disabling enabling figure
5-10 9-3 9-13 9-13 9-2 9-14 9-13
load sharing
parallel configuration VLAN 1, disabling VLANs, allowed trust-dscp see QoS trust-dscp trust-ipprec see QoS trust-ipprec
U
UDLD default configuration
30-2
19-6
19-6
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-29
Index
V
VACLs ACEs overview applying on bridged packets multicast packets routed packets common uses for configuration figure
16-23 16-28 16-29 16-28 16-7 16-8 16-4 16-3
types and ACE parameters types and parameters with IOS ACLs virtual LAN See VLANs VLAN Access Control Lists See VACLs
16-15 16-4
16-4
16-7 16-38
VLAN Management Policy Server See VMPS VLANs allowed on trunk auxiliary
5-7 44-8, 44-19 11-9
configuration guidelines
16-28
11-13 2-5
designating on command-line
11-5 11-2, 11-7
extended range
11-24
features unsupported hardware requirements Layer 2 parameters Layer 3 parameters Layer 4 parameters logging messages overview figure
16-1
11-2
11-9, 11-10
IP subnetworks and
11-10 11-9
mapping reserved to non-reserved mapping VLANs to VLANs MISTP VLAN conflicts See MISTP
16-26 11-9
procedure
16-42
IN-30
78-13315-02
Index
protocol filtering and reserved range Token Ring trunks See trunks VTP domain and See VTP VLSM static routes and VMPS administering configuring database creating
18-4 18-7 18-6 18-5 20-7 11-1 11-2
33-1
44-4 44-2
CLI commands
digital trunk gateway, 8-port T1/E1 PSTN interface module 44-6 display active call information how a call is made overview
44-1 44-29 44-1 44-7 44-27
10-2
downloading
10-6 10-5
configuration guidelines
default configuration
10-7 10-2
10-5
reconfirming
troubleshooting
18-7
10-9 10-10
voice-over-IP network analog station gateway, 24-port FXS analog interface module 44-4 analog trunk gateway, description auxiliary VLANs, configuring
44-5 44-19
10-3 10-6
server, configuring
10-10
10-7
Catalyst 6000 Family Software Configuration GuideReleases 6.3 and 6.4 78-13315-02
IN-31
Index
version 2 disabling enabling overview VLANs and VTP pruning configuring disabling overview
10-9 10-10 10-3 10-9 10-8 10-3 11-1
W
WCCP
16-3, 16-12, 16-14
X
xmodem software download
25-21
Y
ymodem software download
25-21
IN-32
78-13315-02