Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide
Total Page:16
File Type:pdf, Size:1020Kb
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883 Text Part Number: OL-20920-02 THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http:// www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) © 2016 Cisco Systems, Inc. All rights reserved. CONTENTS Preface Preface xiii Audience xiii Document Organization xiii Document Conventions xiv Obtaining Documentation and Submitting a Service Request xv CHAPTER 1 New and Changed Information 1 New and Changed Information for this Release 1 CHAPTER 2 Overview 3 Layer 2 Ethernet Switching Overview 3 VLANs 3 Private VLANs 4 Spanning Tree 4 STP Overview 4 Rapid PVST+ 5 MST 5 STP Extensions 5 CHAPTER 3 Configuring Ethernet Interfaces 7 Information About Ethernet Interfaces 7 Interface Command 7 Information About Unified Ports 8 Guidelines and Limitations for Unified Ports 8 Unidirectional Link Detection Parameter 8 Default UDLD Configuration 9 UDLD Aggressive and Nonaggressive Modes 10 Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide OL-20920-02 iii Contents Interface Speed 10 Cisco Discovery Protocol 10 Default CDP Configuration 10 Error-Disabled State 11 About Port Profiles 11 Guidelines and Limitations for Port Profiles 12 Debounce Timer Parameters 13 MTU Configuration 13 Configuring Ethernet Interfaces 13 Configuring Unified Ports 13 Configuring the UDLD Mode 15 Configuring Interface Speed 16 Disabling Link Negotiation 17 Configuring the CDP Characteristics 18 Enabling or Disabling CDP 19 Enabling the Error-Disabled Detection 19 Enabling the Error-Disabled Recovery 20 Configuring the Error-Disabled Recovery Interval 21 Configuring the Debounce Timer 22 Configuring the Description Parameter 23 Disabling and Restarting Ethernet Interfaces 23 Displaying Interface Information 24 Default Physical Ethernet Settings 27 CHAPTER 4 Configuring VLANs 29 Information About VLANs 29 Understanding VLANs 29 Understanding VLAN Ranges 30 Creating, Deleting, and Modifying VLANs 32 About the VLAN Trunking Protocol 32 Guidelines and Limitations for VTP 33 Configuring a VLAN 33 Creating and Deleting a VLAN 33 Changing the Range of Reserved VLANs 34 Configuring a VLAN 36 Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide iv OL-20920-02 Contents Adding Ports to a VLAN 37 Verifying the VLAN Configuration 38 CHAPTER 5 Configuring Private VLANs 39 Information About Private VLANs 39 Primary and Secondary VLANs in Private VLANs 40 Private VLAN Ports 40 Primary, Isolated, and Community Private VLANs 41 Associating Primary and Secondary VLANs 42 Private VLAN Promiscuous Trunks 43 Private VLAN Isolated Trunks 43 Broadcast Traffic in Private VLANs 44 Private VLAN Port Isolation 44 Guidelines and Limitations for Private VLANs 44 Configuring a Private VLAN 45 Enabling Private VLANs 45 Configuring a VLAN as a Private VLAN 45 Associating Secondary VLANs with a Primary Private VLAN 46 Configuring an Interface as a Private VLAN Host Port 48 Configuring an Interface as a Private VLAN Promiscuous Port 49 Configuring a Promiscuous Trunk Port 50 Configuring an Isolated Trunk Port 51 Configuring Private VLANs on FEX Trunk Ports 52 Configuring the Allowed VLANs for PVLAN Trunking Ports 53 Configuring Native 802.1Q VLANs on Private VLANs 54 Verifying the Private VLAN Configuration 55 CHAPTER 6 Configuring Access and Trunk Interfaces 57 Information About Access and Trunk Interfaces 57 Understanding Access and Trunk Interfaces 57 Understanding IEEE 802.1Q Encapsulation 58 Understanding Access VLANs 59 Understanding the Native VLAN ID for Trunk Ports 60 Understanding Allowed VLANs 60 Understanding Native 802.1Q VLANs 60 Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide OL-20920-02 v Contents Configuring Access and Trunk Interfaces 61 Configuring a LAN Interface as an Ethernet Access Port 61 Configuring Access Host Ports 62 Configuring Trunk Ports 62 Configuring the Native VLAN for 802.1Q Trunking Ports 63 Configuring the Allowed VLANs for Trunking Ports 64 Configuring Native 802.1Q VLANs 65 Verifying the Interface Configuration 66 CHAPTER 7 Configuring Port Channels 67 Information About Port Channels 67 Understanding Port Channels 67 Guidelines and Limitations for Port Channel Configuration 68 Compatibility Requirements 69 Load Balancing Using Port Channels 70 Understanding LACP 72 LACP Overview 72 LACP ID Parameters 73 Channel Modes 73 LACP Marker Responders 74 LACP-Enabled and Static Port Channel Differences 75 Configuring Port Channels 75 Creating a Port Channel 75 Adding a Port to a Port Channel 76 Configuring Load Balancing Using Port Channels 77 Configuring Hardware Hashing for Multicast Traffic 78 Enabling LACP 79 Configuring the Channel Mode for a Port 79 Configuring the LACP Fast Timer Rate 80 Configuring the LACP System Priority and System ID 81 Configuring the LACP Port Priority 82 Disabling LACP Graceful Convergence 83 Reenabling LACP Graceful Convergence 84 Verifying Port Channel Configuration 85 Verifying the Load-Balancing Outgoing Port ID 86 Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide vi OL-20920-02 Contents CHAPTER 8 Configuring Virtual Port Channels 89 Information About vPCs 89 vPC Overview 89 Terminology 90 vPC Terminology 90 Supported vPC Topologies 91 Cisco Nexus Device vPC Topology 91 vPC Domain 91 Peer-Keepalive Link and Messages 91 Compatibility Parameters for vPC Peer Links 92 Configuration Parameters That Must Be Identical 92 Configuration Parameters That Should Be Identical 93 vPC Peer Links 94 vPC Peer Link Overview 94 vPC Number 95 vPC Interactions with Other Features 96 Configuring vPC Peer Links and Links to the Core 96 vPC and LACP 98 vPC Peer Links and STP 98 vPC and ARP 98 CFSoE 99 vPC Peer Switch 99 Guidelines and Limitations for vPCs 100 Configuring vPCs 100 Enabling vPCs 100 Disabling vPCs 101 Creating a vPC Domain 102 Configuring a vPC Keepalive Link and Messages 103 Creating a vPC Peer Link 105 Checking the Configuration Compatibility 106 Moving Other Port Channels into a vPC 107 Manually Configuring a vPC Domain MAC Address 108 Manually Configuring the System Priority 109 Manually Configuring a vPC Peer Switch Role 110 Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide OL-20920-02 vii Contents Configuring the vPC Peer Switch 111 Configuring a Pure vPC Peer Switch Topology 111 Configuring a Hybrid vPC Peer Switch Topology 113 Verifying the vPC Configuration 115 vPC Default Settings 115 CHAPTER 9 Configuring Rapid PVST+ 117 Information About Rapid PVST+ 117 Understanding STP 117 STP Overview 117 Understanding How a Topology is Created 118 Understanding the Bridge ID 118 Bridge Priority Value 118 Extended System ID 119 STP MAC Address Allocation 119 Understanding BPDUs 120 Election of the Root Bridge 121 Creating the Spanning Tree Topology 121 Understanding Rapid PVST+ 122 Rapid PVST+ Overview 122 Rapid PVST+ BPDUs 123 Proposal and Agreement Handshake 124 Protocol Timers 125 Port Roles 125 Port States 126 Rapid PVST+ Port State Overview 126 Blocking State 127 Learning State 127 Forwarding State 127 Disabled State 128