G8052 Application Guide For Lenovo Networking OS 8.3 389 AG 8 3
User Manual: 389
Open the PDF directly: View PDF
.
Page Count: 580
| Download | |
| Open PDF In Browser | View PDF |
Lenovo RackSwitch G8052 Application Guide For Networking OS 8.3 Note: Before using this information and the product it supports, read the general information in the Safety information and Environmental Notices and User Guide documents on the Lenovo Documentation CD and the Warranty Information document that comes with the product. First Edition (May 2015) © Copyright Lenovo 2015 Portions © Copyright IBM Corporation 2014. LIMITED AND RESTRICTED RIGHTS NOTICE: If data or software is delivered pursuant a General Services Administration “GSA” contract, use, reproduction, or disclosure is subject to restrictions set forth in Contract No. GS-35F-05925. Lenovo and the Lenovo logo are trademarks of Lenovo in the United States, other countries, or both. Contents Preface . . . . . . . . . . Who Should Use This Guide . . What You’ll Find in This Guide . Additional References . . . . . Typographic Conventions . . . How to Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 .18 .19 .23 .24 .25 Part 1: Getting Started . . . . . . . . . . . . . . . . . . . . . . 27 Chapter 1. Switch Administration . . . . . . . . . Administration Interfaces . . . . . . . . . . . . . . Industry Standard Command Line Interface . . . . Browser-Based Interface . . . . . . . . . . . . . Establishing a Connection . . . . . . . . . . . . . . Using Telnet . . . . . . . . . . . . . . . . . . Using Secure Shell. . . . . . . . . . . . . . . . Using a Web Browser . . . . . . . . . . . . . . Using Simple Network Management Protocol. . . . BOOTP/DHCP Client IP Address Services . . . . . . . DHCP Host Name Configuration . . . . . . . . . DHCP SYSLOG Server. . . . . . . . . . . . . . Global BOOTP Relay Agent Configuration . . . . . Domain-Specific BOOTP Relay Agent Configuration. DHCP Option 82 . . . . . . . . . . . . . . . . DHCP Snooping . . . . . . . . . . . . . . . . Switch Login Levels . . . . . . . . . . . . . . . . . Setup vs. the Command Line . . . . . . . . . . . . . Idle Disconnect . . . . . . . . . . . . . . . . . . . Boot Strict Mode . . . . . . . . . . . . . . . . . . Acceptable Cipher Suites . . . . . . . . . . . . . Configuring Strict Mode . . . . . . . . . . . . . Configuring No-Prompt Mode . . . . . . . . . . SSL/TLS Version Limitation . . . . . . . . . . . Limitations . . . . . . . . . . . . . . . . . . . Chapter 2. Initial Setup . . . . . . . . . . . . Information Needed for Setup . . . . . . . . . . Default Setup Options . . . . . . . . . . . . . . Setting the Management Interface Default IP Address Stopping and Restarting Setup Manually . . . . . Setup Part 1: Basic System Configuration . . . . . Setup Part 2: Port Configuration . . . . . . . . . Setup Part 3: VLANs . . . . . . . . . . . . . . Setup Part 4: IP Configuration . . . . . . . . . . IP Interfaces . . . . . . . . . . . . . . . . Default Gateways . . . . . . . . . . . . . . IP Routing . . . . . . . . . . . . . . . . . © Copyright Lenovo 2015 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 .30 .30 .30 .31 .32 .33 .35 .37 .38 .38 .39 .39 .40 .40 .40 .42 .44 .45 .46 .49 .50 .50 .50 .50 . 53 .54 .55 .56 .57 .58 .60 .62 .63 .63 .64 .64 3 Setup Part 5: Final Steps . . . . . . . . . . . . . . Optional Setup for Telnet Support . . . . . . . . . Loopback Interfaces . . . . . . . . . . . . . . . Using Loopback Interfaces for Source IP Addresses Loopback Interface Limitation . . . . . . . . . . . . . . . . . . . . . . . . Chapter 3. Switch Software Management . . Loading New Software to Your Switch . . . . Loading Software via the ISCLI . . . . . . Loading Software via BBI . . . . . . . . USB Options . . . . . . . . . . . . . . USB Boot. . . . . . . . . . . . . . USB Copy . . . . . . . . . . . . . The Boot Management Menu . . . . . . . . Recovering from a Failed Software Upgrade Recovering from a Failed Boot Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Part 2: Securing the Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 5. Authentication & Authorization Protocols . . RADIUS Authentication and Authorization . . . . . . . How RADIUS Authentication Works . . . . . . . . Configuring RADIUS on the Switch . . . . . . . . . RADIUS Authentication Features in Networking OS . Switch User Accounts . . . . . . . . . . . . . . . RADIUS Attributes for Networking OS User Privileges TACACS+ Authentication . . . . . . . . . . . . . . . How TACACS+ Authentication Works . . . . . . . TACACS+ Authentication Features in Networking OS . Command Authorization and Logging . . . . . . . Configuring TACACS+ Authentication on the Switch . LDAP Authentication and Authorization . . . . . . . . G8052 Application Guide for N/OS 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 . 67 . 68 . 68 . 69 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 . 72 . 72 . 73 . 74 . 74 . 75 . 76 . 76 . 78 . . . . . . . . . . . . . . . . . . . 81 Chapter 4. Securing Administration . . . . . . . . Secure Shell and Secure Copy . . . . . . . . . . . . Configuring SSH/SCP Features on the Switch. . . . Configuring the SCP Administrator Password . . . Using SSH and SCP Client Commands . . . . . . SSH and SCP Encryption of Management Messages . Generating RSA Host Key for SSH Access . . . . . SSH/SCP Integration with Radius Authentication . . SSH/SCP Integration with TACACS+ Authentication End User Access Control . . . . . . . . . . . . . . Considerations for Configuring End User Accounts . Strong Passwords . . . . . . . . . . . . . . . . User Access Control . . . . . . . . . . . . . . . Listing Current Users . . . . . . . . . . . . . . Logging into an End User Account . . . . . . . . Password Fix-Up Mode . . . . . . . . . . . . . 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 . 84 . 84 . 85 . 85 . 87 . 87 . 87 . 87 . 88 . 88 . 88 . 89 . 90 . 90 . 90 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 . 92 . 92 . 92 . 94 . 94 . 95 . 96 . 96 . 97 . 98 . 99 100 Chapter 6. 802.1X Port-Based Network Access Control . Extensible Authentication Protocol over LAN . . . . . . . EAPoL Authentication Process . . . . . . . . . . . . . . EAPoL Message Exchange . . . . . . . . . . . . . . . . EAPoL Port States . . . . . . . . . . . . . . . . . . . Guest VLAN . . . . . . . . . . . . . . . . . . . . . . Supported RADIUS Attributes . . . . . . . . . . . . . . EAPoL Configuration Guidelines . . . . . . . . . . . . . Chapter 7. Access Control Lists . . Summary of Packet Classifiers . . . . Summary of ACL Actions . . . . . . Assigning Individual ACLs to a Port . ACL Order of Precedence . . . . . . ACL Groups . . . . . . . . . . . . Assigning ACL Groups to a Port . . . ACL Metering and Re-Marking . . . . ACL Port Mirroring . . . . . . . . . Viewing ACL Statistics . . . . . . . ACL Logging . . . . . . . . . . . Enabling ACL Logging . . . . . Logged Information . . . . . . . Rate Limiting Behavior . . . . . Log Interval . . . . . . . . . . ACL Logging Limitations . . . . ACL Configuration Examples . . . . VLAN Maps . . . . . . . . . . . . Management ACLs . . . . . . . . . Using Storm Control Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 104 105 106 107 107 108 110 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 . 112 . 113 . 114 . 114 . 115 . 116 . 116 . 117 . 117 . 118 . 118 . 118 . 119 . 119 . 119 . 120 . 123 . 124 . 125 Part 3: Switch Basics . . . . . . . . . . . . . . . . . . . . . . 127 Chapter 8. VLANs . . . . . . . . . . . . . . . . VLANs Overview. . . . . . . . . . . . . . . . . . VLANs and Port VLAN ID Numbers . . . . . . . . . VLAN Numbers . . . . . . . . . . . . . . . . PVID/Native VLAN Numbers . . . . . . . . . . VLAN Tagging/Trunk Mode . . . . . . . . . . . . . VLAN Topologies and Design Considerations . . . . . Multiple VLANs with Tagging/Trunk Mode Adapters VLAN Configuration Example . . . . . . . . . . Protocol-Based VLANs . . . . . . . . . . . . . . . Port-Based vs. Protocol-Based VLANs . . . . . . . PVLAN Priority Levels . . . . . . . . . . . . . PVLAN Tagging/Trunk Mode . . . . . . . . . . PVLAN Configuration Guidelines . . . . . . . . . Configuring PVLAN . . . . . . . . . . . . . . © Copyright Lenovo 2015 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 130 130 130 131 132 137 137 140 141 141 142 142 142 143 Contents 5 Private VLANs . . . . . . . Private VLAN Ports . . . Configuration Guidelines Configuration Example . 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 9. Ports and Trunking . . . . . Trunking Overview. . . . . . . . . . . . Static Trunks. . . . . . . . . . . . . . . Static Trunk Requirements . . . . . . . Static Trunk Group Configuration Rules . Configuring a Static Port Trunk . . . . . Link Aggregation Control Protocol . . . . . Static LACP Trunks . . . . . . . . . . LACP Port Modes. . . . . . . . . . . LACP Individual . . . . . . . . . . . LACP Minimum Links Option . . . . . LACP Configuration Guidelines . . . . Configuring LACP . . . . . . . . . . Configurable Trunk Hash Algorithm . . . . Packet-Based Trunk Hashing . . . . . . Port-Based Trunk Hashing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 10. Spanning Tree Protocols . . . . . . Spanning Tree Protocol Modes . . . . . . . . . . . Global STP Control . . . . . . . . . . . . . . . . PVRST Mode . . . . . . . . . . . . . . . . . . Port States . . . . . . . . . . . . . . . . . . Bridge Protocol Data Units . . . . . . . . . . . Determining the Path for Forwarding BPDUs . Simple STP Configuration . . . . . . . . . . . Per-VLAN Spanning Tree Groups. . . . . . . . Using Multiple STGs to Eliminate False Loops VLANs and STG Assignment . . . . . . . . Manually Assigning STGs . . . . . . . . . Guidelines for Creating VLANs . . . . . . . Rules for VLAN Tagged/Trunk Mode Ports. . Adding and Removing Ports from STGs . . . The Switch-Centric Model . . . . . . . . . Configuring Multiple STGs . . . . . . . . . . Rapid Spanning Tree Protocol . . . . . . . . . . . Port States . . . . . . . . . . . . . . . . . . RSTP Configuration Guidelines . . . . . . . . . RSTP Configuration Example. . . . . . . . . . Multiple Spanning Tree Protocol . . . . . . . . . . MSTP Region. . . . . . . . . . . . . . . . . Common Internal Spanning Tree . . . . . . . . MSTP Configuration Guidelines . . . . . . . . MSTP Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G8052 Application Guide for N/OS 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 144 145 145 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 148 149 149 150 150 152 153 153 154 154 155 156 157 157 158 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 161 162 162 163 163 163 165 167 167 168 168 169 169 170 171 172 174 174 174 175 176 176 176 177 177 Port Type and Link Type . . . . . . . . . . . . . . . . . . . . . . . 180 Edge/Portfast Port. . . . . . . . . . . . . . . . . . . . . . . . . 180 Link Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 Chapter 11. Virtual Link Aggregation Groups . . . . VLAG Capacities . . . . . . . . . . . . . . . . . . VLAGs versus Port Trunks. . . . . . . . . . . . . . Configuring VLAGs. . . . . . . . . . . . . . . . . Basic VLAG Configuration . . . . . . . . . . . . VLAG Configuration - VLANs Mapped to MSTI. VLAGs with VRRP . . . . . . . . . . . . . . . Configuring VLAGs in Multiple Layers . . . . . . Chapter 12. Quality of Service . . . . . . . QoS Overview . . . . . . . . . . . . . . . Using ACL Filters. . . . . . . . . . . . . . Summary of ACL Actions . . . . . . . . ACL Metering and Re-Marking . . . . . . Using DSCP Values to Provide QoS . . . . . . Differentiated Services Concepts . . . . . Per Hop Behavior . . . . . . . . . . . . QoS Levels . . . . . . . . . . . . . . . DSCP Re-Marking and Mapping . . . . . DSCP Re-Marking Configuration Examples Using 802.1p Priority to Provide QoS . . . . . Queuing and Scheduling . . . . . . . . . . Control Plane Protection . . . . . . . . . . . WRED with ECN . . . . . . . . . . . . . . How WRED/ECN work together . . . . . Configuring WRED/ECN. . . . . . . . . WRED/ECN Configuration Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 . 183 . 184 . 185 . 186 . 189 . 191 . 196 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 200 201 201 202 204 204 206 207 207 208 210 211 211 212 212 213 214 Part 4: Advanced Switching Features. . . . . . . . . . . . . . . . 219 Chapter 13. OpenFlow . . . . . . . . OpenFlow Overview . . . . . . . . . . Switch Profiles . . . . . . . . . . . . . OpenFlow Versions . . . . . . . . . . . OpenFlow Instance . . . . . . . . . . . Flow Tables . . . . . . . . . . . . . . Static Flows . . . . . . . . . . . . . . Port Membership . . . . . . . . . . FDB Aging and ECMP with OpenFlow. Static Flow Examples . . . . . . . . Table-Miss . . . . . . . . . . . . . . . Fail Secure Mode . . . . . . . . . . . . Emergency Mode . . . . . . . . . . . . © Copyright Lenovo 2015 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 . 222 . 223 . 224 . 225 . 226 . 228 . 230 . 230 . 231 . 233 . 234 . 235 Contents 7 OpenFlow Ports . . . . . . . . . . . . . . . . OpenFlow Edge Ports . . . . . . . . . . . . Link Aggregation . . . . . . . . . . . . . . Data Path ID . . . . . . . . . . . . . . . . sFlow Compatibility . . . . . . . . . . . . . . OpenFlow Groups . . . . . . . . . . . . . . . Configuring OpenFlow . . . . . . . . . . . . . Configuration Example 1 - OpenFlow Boot Profile Configuration Example 2 - Default Boot Profile . Feature Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 237 238 239 240 241 242 242 244 247 Chapter 14. Virtualization . . . . . . . . . . . . . . . . . . . . 249 Chapter 15. Stacking . . . . . . . . . . . . . . . Stacking Overview . . . . . . . . . . . . . . . . . . Stacking Requirements . . . . . . . . . . . . . . Stacking Limitations . . . . . . . . . . . . . . . Stack Membership . . . . . . . . . . . . . . . . . . The Master Switch . . . . . . . . . . . . . . . . Splitting and Merging One Stack . . . . . . . . Merging Independent Stacks . . . . . . . . . . Backup Switch Selection . . . . . . . . . . . . . . Master Failover . . . . . . . . . . . . . . . . Secondary Backup. . . . . . . . . . . . . . . Master Recovery . . . . . . . . . . . . . . . No Backup . . . . . . . . . . . . . . . . . . Stack Member Identification . . . . . . . . . . . . Configuring a Stack. . . . . . . . . . . . . . . . . . Configuration Overview . . . . . . . . . . . . . . Best Configuration Practices . . . . . . . . . . . . Stacking VLANs . . . . . . . . . . . . . . . Configuring Each Switch for the Stack . . . . . . . . Additional Master Configuration . . . . . . . . . . Configuring an External IPv4 Address for the Stack Locating an External Stack Interface . . . . . . . Viewing Stack Connections . . . . . . . . . . . Binding Members to the Stack . . . . . . . . . Assigning a Stack Backup Switch . . . . . . . . Managing the Stack . . . . . . . . . . . . . . . . . . Accessing the Master Switch CLI . . . . . . . . . . Rebooting Stacked Switches via the Master . . . . . . Upgrading Software in an Existing Stack . . . . . . . . Replacing or Removing Stacked Switches . . . . . . . . Removing a Switch from the Stack . . . . . . . . . Installing the New Switch or Healing the Topology . . Binding the New Switch to the Stack . . . . . . . . Performing a Rolling Upgrade . . . . . . . . . . . Saving Syslog Messages . . . . . . . . . . . . . . . . ISCLI Stacking Commands . . . . . . . . . . . . . . 8 G8052 Application Guide for N/OS 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 252 252 253 254 254 254 255 256 256 256 256 257 257 258 258 258 259 259 261 261 261 262 263 263 264 264 264 266 268 268 268 270 270 272 274 © Copyright Lenovo 2015 Chapter 16. VMready . . . . . . . . . . VE Capacity . . . . . . . . . . . . . . . . Defining Server Ports . . . . . . . . . . . . VM Group Types . . . . . . . . . . . . . . Local VM Groups . . . . . . . . . . . . . . Distributed VM Groups . . . . . . . . . . . VM Profiles . . . . . . . . . . . . . . Initializing a Distributed VM Group . . . . Assigning Members . . . . . . . . . . . Synchronizing the Configuration . . . . . Removing Member VEs . . . . . . . . . VMcheck . . . . . . . . . . . . . . . . . Virtual Distributed Switch . . . . . . . . . . Prerequisites . . . . . . . . . . . . . . Guidelines . . . . . . . . . . . . . . . Migrating to vDS . . . . . . . . . . . . Virtualization Management Servers . . . . . . Assigning a vCenter . . . . . . . . . . . vCenter Scans . . . . . . . . . . . . . Deleting the vCenter. . . . . . . . . . . Exporting Profiles . . . . . . . . . . . . VMware Operational Commands . . . . . Pre-Provisioning VEs . . . . . . . . . . . . VLAN Maps . . . . . . . . . . . . . . . . VM Policy Bandwidth Control . . . . . . . . VM Policy Bandwidth Control Commands . Bandwidth Policies vs. Bandwidth Shaping. VMready Information Displays . . . . . . . . VMready Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 . 276 . 276 . 276 . 277 . 279 . 279 . 280 . 280 . 281 . 281 . 282 . 284 . 284 . 284 . 285 . 286 . 286 . 287 . 287 . 288 . 288 . 289 . 290 . 291 . 291 . 292 . 293 . 297 Chapter 17. Edge Virtual Bridging . . EVB Operations Overview . . . . . . . VSIDB Synchronization . . . . . . VLAN Behavior. . . . . . . . . . Manual Reflective Relay . . . . . . EVB Configuration . . . . . . . . . . Limitations . . . . . . . . . . . . . Unsupported features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 18. Static Multicast ARP . . Configuring Static Multicast ARP . . . . Configuration Example . . . . . . Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 . 306 . 306 . 307 Chapter 19. Dynamic ARP Inspection. . . . Understanding ARP Spoofing Attacks . . . Understanding DAI . . . . . . . . . . . Interface Trust States and Network Security DAI Configuration Guidelines and Restrictions . DAI Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 . 309 . 309 . 310 . 312 . 312 . 299 300 300 301 301 302 304 304 Contents 9 Part 5: IP Routing. . . . . . . . . . . . . . . . . . . . . . . . 315 Chapter 20. Basic IP Routing . . . . . . . . IP Routing Benefits . . . . . . . . . . . . . . Routing Between IP Subnets . . . . . . . . . . Example of Subnet Routing . . . . . . . . . . Using VLANs to Segregate Broadcast Domains Configuration Example . . . . . . . . . . ECMP Static Routes. . . . . . . . . . . . . . ECMP Route Hashing . . . . . . . . . . . Configuring ECMP Static Routes . . . . . . Dynamic Host Configuration Protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 318 318 319 320 320 323 323 324 325 Chapter 21. Policy-Based Routing . PBR Policies and ACLs . . . . . . Applying PBR ACLs . . . . . . . Configuring Route Maps . . . . . Match Clauses . . . . . . . . Set Clauses. . . . . . . . . . Configuring Health Check . . . Example PBR Configuration . . . . Configuring PBR with other Features Unsupported Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 328 328 329 329 329 331 332 333 333 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 336 338 338 339 339 339 340 340 341 341 342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 343 344 345 347 348 349 351 352 353 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 22. Routed Ports . . . . . Overview . . . . . . . . . . . . . . Configuring a Routed Port. . . . . . . Configuring OSPF on Routed Ports . OSPF Configuration Example . . Configuring RIP on Routed Ports . . RIP Configuration Example. . . Configuring PIM on Routed Ports . . PIM Configuration Example . . Configuring BGP on Routed Ports. . Configuring IGMP on Routed Ports . Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 23. Internet Protocol Version 6 IPv6 Limitations . . . . . . . . . . . IPv6 Address Format . . . . . . . . . IPv6 Address Types . . . . . . . . . IPv6 Address Autoconfiguration . . . . IPv6 Interfaces . . . . . . . . . . . . Neighbor Discovery . . . . . . . . . Supported Applications . . . . . . . . Configuration Guidelines . . . . . . . IPv6 Configuration Examples . . . . . . . . . . . . . . Chapter 24. IPsec with IPv6 . . . . . . . . . . . . . . . . . . . 355 IPsec Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 10 G8052 Application Guide for N/OS 8.3 Using IPsec with the RackSwitch G8052 . . . . . . . Setting up Authentication . . . . . . . . . . . Creating an IKEv2 Proposal . . . . . . . . . Importing an IKEv2 Digital Certificate . . . . Generating an IKEv2 Digital Certificate. . . . Enabling IKEv2 Preshared Key Authentication Setting Up a Key Policy . . . . . . . . . . . . Using a Manual Key Policy . . . . . . . . . . . Using a Dynamic Key Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 25. Routing Information Protocol . Distance Vector Protocol . . . . . . . . . . Stability . . . . . . . . . . . . . . . . . Routing Updates . . . . . . . . . . . . . RIPv1 . . . . . . . . . . . . . . . . . . RIPv2 . . . . . . . . . . . . . . . . . . RIPv2 in RIPv1 Compatibility Mode. . . . . RIP Features . . . . . . . . . . . . . . . RIP Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 26. Internet Group Management Protocol . IGMP Terms . . . . . . . . . . . . . . . . . . . How IGMP Works . . . . . . . . . . . . . . . . IGMP Capacity and Default Values . . . . . . . . . IGMP Snooping . . . . . . . . . . . . . . . . . IGMP Querier . . . . . . . . . . . . . . . . IGMP Groups . . . . . . . . . . . . . . . . IGMPv3 Snooping. . . . . . . . . . . . . . . IGMP Snooping Configuration Guidelines . . . . IGMP Snooping Configuration Example . . . . . Advanced Configuration Example: IGMP Snooping Prerequisites . . . . . . . . . . . . . . . Configuration . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . IGMP Relay . . . . . . . . . . . . . . . . . . . Configuration Guidelines . . . . . . . . . . . Configure IGMP Relay. . . . . . . . . . . . . Advanced Configuration Example: IGMP Relay . . Prerequisites . . . . . . . . . . . . . . . Configuration . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . Additional IGMP Features . . . . . . . . . . . . . FastLeave . . . . . . . . . . . . . . . . . . IGMP Filtering . . . . . . . . . . . . . . . . Static Multicast Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 357 358 358 359 359 360 361 363 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365 365 365 366 366 366 366 367 368 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371 372 373 374 375 375 376 376 378 379 380 381 381 385 388 388 389 390 390 391 395 397 397 397 398 Chapter 27. Multicast Listener Discovery . . . . . . . . . . . . . . 399 MLD Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400 © Copyright Lenovo 2015 Contents 11 How MLD Works . . . . . . . MLD Querier. . . . . . . . Dynamic Mrouters . . . . . MLD Capacity and Default Values Configuring MLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 28. Border Gateway Protocol . . . . . . . Internal Routing Versus External Routing . . . . . . . Route Reflector . . . . . . . . . . . . . . . . . Restrictions. . . . . . . . . . . . . . . . . Forming BGP Peer Routers . . . . . . . . . . . . . Loopback Interfaces . . . . . . . . . . . . . . . . What is a Route Map? . . . . . . . . . . . . . . . . Next Hop Peer IP Address . . . . . . . . . . Incoming and Outgoing Route Maps . . . . . . . Precedence. . . . . . . . . . . . . . . . . . . Configuration Overview . . . . . . . . . . . . . Aggregating Routes. . . . . . . . . . . . . . . . . Redistributing Routes . . . . . . . . . . . . . . . . BGP Communities . . . . . . . . . . . . . . . . . BGP Attributes . . . . . . . . . . . . . . . . . . . Selecting Route Paths in BGP. . . . . . . . . . . . . Multipath Relax . . . . . . . . . . . . . . . BGP Failover Configuration . . . . . . . . . . . . . Default Redistribution and Route Aggregation Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 29. Open Shortest Path First OSPFv2 Overview . . . . . . . . . Types of OSPF Areas . . . . . . Types of OSPF Routing Devices. . Neighbors and Adjacencies . . . The Link-State Database . . . . . The Shortest Path First Tree . . . Internal Versus External Routing . 12 G8052 Application Guide for N/OS 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401 402 403 404 405 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407 408 409 411 411 413 413 414 414 415 415 417 417 418 419 421 421 422 424 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 428 428 429 431 431 432 432 . . . . . . . . . . . . . . . . OSPFv2 Implementation in Networking OS . . . . . . . . Configurable Parameters . . . . . . . . . . . . . . . Defining Areas . . . . . . . . . . . . . . . . . . . Assigning the Area Index . . . . . . . . . . . . . Using the Area ID to Assign the OSPF Area Number . Attaching an Area to a Network . . . . . . . . . . Interface Cost . . . . . . . . . . . . . . . . . . . . Electing the Designated Router and Backup . . . . . . Summarizing Routes . . . . . . . . . . . . . . . . Default Routes . . . . . . . . . . . . . . . . . . . Virtual Links . . . . . . . . . . . . . . . . . . . . Router ID . . . . . . . . . . . . . . . . . . . . . Authentication . . . . . . . . . . . . . . . . . . . Configuring Plain Text OSPF Passwords . . . . . . Configuring MD5 Authentication . . . . . . . . . Host Routes for Load Balancing . . . . . . . . . . . . Loopback Interfaces in OSPF . . . . . . . . . . . . . OSPF Features Not Supported in This Release. . . . . . OSPFv2 Configuration Examples . . . . . . . . . . . . . Example 1: Simple OSPF Domain . . . . . . . . . . . Example 2: Virtual Links . . . . . . . . . . . . . . . Example 3: Summarizing Routes . . . . . . . . . . . Verifying OSPF Configuration . . . . . . . . . . . . OSPFv3 Implementation in Networking OS . . . . . . . . OSPFv3 Differences from OSPFv2 . . . . . . . . . . . OSPFv3 Requires IPv6 Interfaces . . . . . . . . . OSPFv3 Uses Independent Command Paths . . . . OSPFv3 Identifies Neighbors by Router ID . . . . . Other Internal Improvements . . . . . . . . . . . OSPFv3 Limitations . . . . . . . . . . . . . . . . . OSPFv3 Configuration Example. . . . . . . . . . . . Neighbor Configuration Example . . . . . . . . . Chapter 30. Protocol Independent Multicast . . . PIM Overview . . . . . . . . . . . . . . . . . Supported PIM Modes and Features . . . . . . . Basic PIM Settings . . . . . . . . . . . . . . . Globally Enabling or Disabling the PIM Feature . Defining a PIM Network Component . . . . . Defining an IP Interface for PIM Use . . . . . . PIM Neighbor Filters . . . . . . . . . . . . Additional Sparse Mode Settings . . . . . . . . . Specifying the Rendezvous Point . . . . . . . Influencing the Designated Router Selection . . Specifying a Bootstrap Router. . . . . . . . . Configuring a Loopback Interface . . . . . . . Using PIM with Other Features . . . . . . . . . . PIM Configuration Examples. . . . . . . . . . . © Copyright Lenovo 2015 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 . 458 . 459 . 460 . 460 . 460 . 460 . 461 . 463 . 463 . 463 . 464 . 464 . 466 . 467 Contents 433 433 434 434 435 435 436 436 436 437 437 438 439 440 440 441 442 442 443 444 446 450 451 452 452 452 452 453 453 453 453 456 13 Part 6: High Availability Fundamentals . . . . . . . . . . . . . . . 471 Chapter 31. Basic Redundancy . Trunking for Link Redundancy. . Virtual Link Aggregation . . . . Hot Links . . . . . . . . . . . Forward Delay . . . . . . . Preemption . . . . . . . . FDB Update . . . . . . . . Configuration Guidelines . . Configuring Hot Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 474 474 475 475 475 475 475 476 Chapter 32. Layer 2 Failover . Monitoring Trunk Links . . . . Setting the Failover Limit . . . Manually Monitoring Port Links L2 Failover with Other Features LACP . . . . . . . . . . Spanning Tree Protocol . . Configuration Guidelines . . . Configuring Layer 2 Failover. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477 478 478 479 480 480 480 481 481 Chapter 33. Virtual Router Redundancy Protocol VRRP Overview . . . . . . . . . . . . . . . . VRRP Components . . . . . . . . . . . . . VRRP Operation . . . . . . . . . . . . . . Selecting the Master VRRP Router . . . . . . Failover Methods. . . . . . . . . . . . . . . . Active-Active Redundancy . . . . . . . . . . Virtual Router Group . . . . . . . . . . . . Networking OS Extensions to VRRP . . . . . . . Virtual Router Deployment Considerations . . . . High Availability Configurations . . . . . . . . . VRRP High-Availability Using Multiple VIRs . VRRP High-Availability Using VLAGs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483 484 484 485 486 487 487 487 488 489 490 490 494 . . . . . . . . . Part 7: Network Management . . . . . . . . . . . . . . . . . . . 495 Chapter 34. Link Layer Discovery Protocol LLDP Overview . . . . . . . . . . . . . Enabling or Disabling LLDP . . . . . . . . Global LLDP Setting . . . . . . . . . Transmit and Receive Control . . . . . LLDP Transmit Features. . . . . . . . . . Scheduled Interval . . . . . . . . . . Minimum Interval . . . . . . . . . . Time-to-Live for Transmitted Information Trap Notifications . . . . . . . . . . Changing the LLDP Transmit State . . . Types of Information Transmitted. . . . 14 G8052 Application Guide for N/OS 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497 498 499 499 499 500 500 500 501 501 502 502 LLDP Receive Features . . . . . . . . . Types of Information Received . . . . Viewing Remote Device Information . Time-to-Live for Received Information . LLDP Example Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 35. Simple Network Management Protocol . SNMP Version 1 & Version 2 . . . . . . . . . . . . SNMP Version 3 . . . . . . . . . . . . . . . . . Configuring SNMP Trap Hosts . . . . . . . . . . . SNMP MIBs . . . . . . . . . . . . . . . . . . . Switch Images and Configuration Files . . . . . . . Loading a New Switch Image . . . . . . . . . . Loading a Saved Switch Configuration. . . . . . Saving the Switch Configuration . . . . . . . . Saving a Switch Dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504 504 504 506 508 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509 509 510 512 515 522 523 523 524 524 Chapter 36. Service Location Protocol . . . . . . . . . . . . . . . 525 Active DA Discovery . . . . . . . . . . . . . . . . . . . . . . . . . 525 SLP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 526 Chapter 37. NETCONF . . . . . NETCONF Overview . . . . . . XML Requirements . . . . . . . Installing the NETCONF Client . . Using Juniper Perl Client . . . . Establishing a NETCONF Session . NETCONF Operations . . . . . Protocol Operations Examples . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527 . 528 . 529 . 530 . 532 . 533 . 535 . 536 . 536 . 537 . 539 . 540 . 540 . 541 . 542 . 543 . 543 . 544 . 545 Part 8: Monitoring . . . . . . . . . . . . . . . . . . . . . . . . 549 Chapter 38. Remote Monitoring . RMON Overview . . . . . . . . RMON Group 1—Statistics. . . . RMON Group 2—History . . . . History MIB Object ID . . . . Configuring RMON History . © Copyright Lenovo 2015 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551 . 551 . 552 . 553 . 553 . 553 Contents 15 RMON Group 3—Alarms . . . Alarm MIB objects . . . . Configuring RMON Alarms RMON Group 9—Events . . . . . . . . . . . Chapter 39. sFlow . . . . sFlow Statistical Counters . . sFlow Network Sampling . . sFlow Example Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554 554 555 556 . . . . . . . . . . . . . . . . . . . . . . . . 557 557 557 558 Chapter 40. Port Mirroring . . . . . . . . . . . . . . . . . . . . 559 Part 9: Appendices . . . . . . . . . . . . . . . . . . . . . . . 561 Appendix A. Glossary . . . . . . . . . . . . . . . . . . . . . . 563 Appendix B. Getting help and technical assistance. . . . . . . . . . 565 Appendix C. Notices . . . . . . . . . . . . . . . . . . . . Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . Important Notes . . . . . . . . . . . . . . . . . . . . . . . . . Recycling Information. . . . . . . . . . . . . . . . . . . . . . . Particulate Contamination . . . . . . . . . . . . . . . . . . . . . Telecommunication Regulatory Statement . . . . . . . . . . . . . . Electronic Emission Notices . . . . . . . . . . . . . . . . . . . . Federal Communications Commission (FCC) Statement . . . . . . Industry Canada Class A Emission Compliance Statement . . . . . Avis de Conformité à la Réglementation d'Industrie Canada . . . . Australia and New Zealand Class A Statement . . . . . . . . . . European Union EMC Directive Conformance Statement. . . . . . Germany Class A Statement . . . . . . . . . . . . . . . . . . Japan VCCI Class A Statement . . . . . . . . . . . . . . . . . Japan Electronics and Information Technology Industries Association (JEITA) Statement. . . . . . . . . . . . . . . . . . . . . . . Korea Communications Commission (KCC) Statement. . . . . . . Russia Electromagnetic Interference (EMI) Class A statement . . . . . People’s Republic of China Class A electronic emission statement. . . . Taiwan Class A compliance statement. . . . . . . . . . . . . . . . 16 G8052 Application Guide for N/OS 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 569 570 571 572 573 574 574 574 574 574 574 575 576 . . . . . . . . . . 577 577 578 579 580 Preface This Application Guide describes how to configure and use the Lenovo Network Operating System 8.3 software on the Lenovo RackSwitch G8052 (referred to as G8052 throughout this document). For documentation on installing the switch physically, see the Installation Guide for your G8052. © Copyright Lenovo 2015 17 Who Should Use This Guide This guide is intended for network installers and system administrators engaged in configuring and maintaining a network. The administrator should be familiar with Ethernet concepts, IP addressing, Spanning Tree Protocol, and SNMP configuration parameters. 18 G8052 Application Guide for N/OS 8.3 What You’ll Find in This Guide This guide will help you plan, implement, and administer Networking OS software. Where possible, each section provides feature overviews, usage examples, and configuration instructions. The following material is included: Part 1: Getting Started This material is intended to help those new to N/OS products with the basics of switch management. This part includes the following chapters: Chapter 1, “Switch Administration,” describes how to access the G8052 to configure the switch and view switch information and statistics. This chapter discusses a variety of manual administration interfaces, including local management via the switch console, and remote administration via Telnet, a web browser, or via SNMP. Chapter 2, “Initial Setup,” describes how to use the built-in Setup utility to perform first-time configuration of the switch. Chapter 3, “Switch Software Management,” describes how to update the N/OS software operating on the switch. Part 2: Securing the Switch Chapter 4, “Securing Administration,” describes methods for using Secure Shell for administration connections, and configuring end-user access control. Chapter 5, “Authentication & Authorization Protocols,” describes different secure administration for remote administrators. This includes using Remote Authentication Dial-in User Service (RADIUS), as well as TACACS+ and LDAP. Chapter 6, “802.1X Port-Based Network Access Control,” describes how to authenticate devices attached to a LAN port that has point-to-point connection characteristics. This feature prevents access to ports that fail authentication and authorization and provides security to ports of the G8052 that connect to blade servers. Chapter 7, “Access Control Lists,” describes how to use filters to permit or deny specific types of traffic, based on a variety of source, destination, and packet attributes. Part 3: Switch Basics © Copyright Lenovo 2015 Chapter 8, “VLANs,” describes how to configure Virtual Local Area Networks (VLANs) for creating separate network segments, including how to use VLAN tagging for devices that use multiple VLANs. This chapter also describes Protocol-based VLANs, and Private VLANs. Chapter 9, “Ports and Trunking,” describes how to group multiple physical ports together to aggregate the bandwidth between large-scale network devices. Chapter 10, “Spanning Tree Protocols,” discusses how Spanning Tree Protocol (STP) configures the network so that the switch selects the most efficient path when multiple paths exist. Covers Rapid Spanning Tree Protocol (RSTP), Per-VLAN Rapid Spanning Tree (PVRST), and Multiple Spanning Tree Protocol (MSTP). Preface 19 Chapter 11, “Virtual Link Aggregation Groups,” describes using Virtual Link Aggregation Groups (VLAG) to form trunks spanning multiple VLAG-capable aggregator switches. Chapter 12, “Quality of Service,” discusses Quality of Service (QoS) features, including IP filtering using Access Control Lists (ACLs), Differentiated Services, and IEEE 802.1p priority values. Part 4: Advanced Switching Features Chapter 13, “OpenFlow,” describes how to create an OpenFlow Switch instance on the RackSwitch G8052. Chapter 14, “Virtualization,” provides an overview of allocating resources based on the logical needs of the data center, rather than on the strict, physical nature of components. Chapter 15, “Stacking,” describes how to combine multiple switches into a single, aggregate switch entity. Chapter 16, “VMready,” discusses virtual machine (VM) support on the G8052. Chapter 17, “Edge Virtual Bridging (EVB) discusses the IEEE 802.1Qbg—a standards-based protocol that defines how virtual Ethernet bridges exchange configuration information. EVB bridges the gap between physical and virtual network resources, thus simplifying network management. Chapter 18, “Static Multicast ARP discusses the configuration of a static ARP entry with multicast MAC address for Microsoft’s Network Load Balancing (NLB) feature to function efficiently. Chapter 19, “Dynamic ARP Inspection.” discusses this security feature that lets a switch intercept and examine all ARP request and response packets in a subnet, discarding those packets with invalid IP to MAC address bindings. This capability protects the network from man-in-the-middle attacks. Chapter 20, “Basic IP Routing,” describes how to configure the G8052 for IP routing using IP subnets, BOOTP, and DHCP Relay. Chapter 21, “Policy-Based Routing describes how to configure the G8052 to forward traffic based on defined policies rather than entries in the routing table. Chapter 22, “Routed Ports describes how to configure a switch port to forward Layer 3 traffic. Chapter 23, “Internet Protocol Version 6,” describes how to configure the G8052 for IPv6 host management. Chapter 24, “IPsec with IPv6,” describes how to configure Internet Protocol Security (IPsec) for securing IP communications by authenticating and encrypting IP packets, with emphasis on Internet Key Exchange version 2, and authentication/confidentiality for OSPFv3. Chapter 25, “Routing Information Protocol,” describes how the N/OS software implements standard Routing Information Protocol (RIP) for exchanging TCP/IP route information with other routers. Part 5: IP Routing 20 G8052 Application Guide for N/OS 8.3 Chapter 26, “Internet Group Management Protocol,” describes how the N/OS software implements IGMP Snooping or IGMP Relay to conserve bandwidth in a multicast-switching environment. Chapter 27, “Multicast Listener Discovery,” describes how Multicast Listener Discovery (MLD) is used with IPv6 to support host users requests for multicast data for a multicast group. Chapter 28, “Border Gateway Protocol,” describes Border Gateway Protocol (BGP) concepts and features supported in N/OS. Chapter 29, “Open Shortest Path First,” describes key Open Shortest Path First (OSPF) concepts and their implemented in N/OS, and provides examples of how to configure your switch for OSPF support. Chapter 30, “Protocol Independent Multicast,” describes how multicast routing can be efficiently accomplished using the Protocol Independent Multicast (PIM) feature. Part 6: High Availability Fundamentals Chapter 31, “Basic Redundancy,” describes how the G8052 supports redundancy through trunking, and hotlinks. Chapter 32, “Layer 2 Failover,” describes how the G8052 supports high-availability network topologies using Layer 2 Failover. Chapter 33, “Virtual Router Redundancy Protocol,” describes how the G8052 supports high-availability network topologies using Virtual Router Redundancy Protocol (VRRP). Part 7: Network Management © Copyright Lenovo 2015 Chapter 34, “Link Layer Discovery Protocol,” describes how Link Layer Discovery Protocol helps neighboring network devices learn about each others’ ports and capabilities. Chapter 35, “Simple Network Management Protocol,” describes how to configure the switch for management through an SNMP client. Chapter 36, “Service Location Protocol,” describes the Service Location Protocol (SLP) that allows the switch to provide dynamic directory services. Chapter 37, “NETCONF,” describes how to manage the G8052 using Network Configuration Protocol (NETCONF), a mechanism based on the Extensible Markup Language (XML). Preface 21 Part 8: Monitoring Chapter 38, “Remote Monitoring,” describes how to configure the RMON agent on the switch, so that the switch can exchange network monitoring data. Chapter 39, “sFlow, described how to use the embedded sFlow agent for sampling network traffic and providing continuous monitoring information to a central sFlow analyzer. Chapter 40, “Port Mirroring,” discusses tools how copy selected port traffic to a monitor port for network analysis. Appendix A, “Glossary,” describes common terms and concepts used throughout this guide. Part 9: Appendices 22 G8052 Application Guide for N/OS 8.3 Additional References Additional information about installing and configuring the G8052 is available in the following guides: © Copyright Lenovo 2015 Lenovo RackSwitch G8052 Installation Guide Lenovo Network Operating System 8.3 ISCLI Reference Guide Lenovo Network Operating System 8.3 Release Notes Preface 23 Typographic Conventions The following table describes the typographic styles used in this book. Table 1. Typographic Conventions Typeface or Symbol Meaning Example ABC123 This type is used for names of commands, files, and directories used within the text. View the readme.txt file. It also depicts on-screen computer Main# output and prompts. 24 ABC123 This bold type appears in command examples. It shows text that must be typed in exactly as shown. Main# sys This italicized type appears in command examples as a parameter placeholder. Replace the indicated text with the appropriate real name or value when using the command. Do not type the brackets. To establish a Telnet session, enter: host# telnet This also shows book titles, special terms, or words to be emphasized. Read your User’s Guide thoroughly. [ ] Command items shown inside brackets are optional and can be used or excluded as the situation demands. Do not type the brackets. host# ls [a] | The vertical bar ( | ) is used in command examples to separate choices where multiple options exist. Select only one of the listed options. Do not type the vertical bar. host# set left|right AaBbCc123 Click the Save button. This block type depicts menus, buttons, and other controls that appear in Web browsers and other graphical interfaces. G8052 Application Guide for N/OS 8.3 How to Get Help If you need help, service, or technical assistance, visit our web site at the following address: http://www.ibm.com/support The warranty card received with your product provides details for contacting a customer support representative. If you are unable to locate this information, please contact your reseller. Before you call, prepare the following information: © Copyright Lenovo 2015 Serial number of the switch unit Software release version number Brief description of the problem and the steps you have already taken Technical support dump information (# show techsupport) Preface 25 26 G8052 Application Guide for N/OS 8.3 Part 1: Getting Started © Copyright Lenovo 2015 27 28 G8052 Application Guide for N/OS 8.3 Chapter 1. Switch Administration Your RackSwitch G8052 (G8052) is ready to perform basic switching functions right out of the box. Some of the more advanced features, however, require some administrative configuration before they can be used effectively. The extensive Lenovo Network Operating System switching software included in the G8052 provides a variety of options for accessing the switch to perform configuration, and to view switch information and statistics. This chapter discusses the various methods that can be used to administer the switch. © Copyright Lenovo 2015 29 Administration Interfaces Networking OS provides a variety of user-interfaces for administration. These interfaces vary in character and in the methods used to access them: some are text-based, and some are graphical; some are available by default, and some require configuration; some can be accessed by local connection to the switch, and others are accessed remotely using various client applications. For example, administration can be performed using any of the following: A built-in, text-based command-line interface and menu system for access via serial-port connection or an optional Telnet or SSH session The built-in Browser-Based Interface (BBI) available using a standard web-browser SNMP support for access through network management software such as IBM Director or HP OpenView The specific interface chosen for an administrative session depends on user preferences, as well as the switch configuration and the available client tools. In all cases, administration requires that the switch hardware is properly installed and turned on. (see the RackSwitch G8052 Installation Guide). Industry Standard Command Line Interface The Industry Standard Command Line Interface (ISCLI) provides a simple, direct method for switch administration. Using a basic terminal, you can issue commands that allow you to view detailed information and statistics about the switch, and to perform any necessary configuration and switch software maintenance. You can establish a connection to the ISCLI in any of the following ways: Serial connection via the serial port on the G8052 (this option is always available) Telnet connection over the network SSH connection over the network Browser-Based Interface The Browser-based Interface (BBI) provides access to the common configuration, management and operation features of the G8052 through your Web browser. 30 G8052 Application Guide for N/OS 8.3 Establishing a Connection The factory default settings permit initial switch administration through only the built-in serial port. All other forms of access require additional switch configuration before they can be used. Remote access using the network requires the accessing terminal to have a valid, routable connection to the switch interface. The client IP address may be configured manually, or an IPv4 address can be provided automatically through the switch using a service such as DHCP or BOOTP relay (see “BOOTP/DHCP Client IP Address Services” on page 38), or an IPv6 address can be obtained using IPv6 stateless address configuration. Note: Throughout this manual, IP address is used in places where either an IPv4 or IPv6 address is allowed. IPv4 addresses are entered in dotted-decimal notation (for example, 10.10.10.1), while IPv6 addresses are entered in hexadecimal notation (for example, 2001:db8:85a3::8a2e:370:7334). In places where only one type of address is allowed, IPv4 address or IPv6 address is specified. To manage the switch using Telnet, SNMP, or a Web browser, you must configure an IP interface. When a DHCP server is present in the local network for the switch, the DHCP server will be used to configures the IP interface. However, if the switch fails to renew the address obtained through DHCP, the following factory configured settings will be used for IP interface 1: IPv4 address: 192.168.49.50 Mask:255.255.255.0 Gateway:192.168.49.255 DHCP: enabled If you manually configure a static IP address, DHCP is disabled. If you manually enable DHCP, the interface will be configured by the DHCP server. To access the switch, the following IP parameters must be configured: 1. Log on to the switch. 2. Enter IP interface mode. RS G8052> enable RS G8052# configure terminal RS G8052(config)# interface ip 3. Configure the management IP interface/mask. Using IPv4: RS G8052(configipif)# ip address RS G8052(configipif)# ip netmask Using IPv6: RS G8052(configipif)# ipv6 address RS G8052(configipif)# ipv6 prefixlen © Copyright Lenovo 2015 Chapter 1: Switch Administration 31 4. Configure the VLAN, and enable the interface. RS G8052(configipif)# vlan 1 RS G8052(configipif)# enable RS G8052(configipif)# exit 5. Configure the default gateway. If using IPv4: RS G8052(config)# ip gateway address RS G8052(config)# ip gateway enable If using IPv6: RS G8052(config)# ip gateway6 address RS G8052(config)# ip gateway6 enable Once you configure the IP address and have a network connection, you can use the Telnet program from an external management station to access and control the switch. Once the default gateway is enabled, the management station and your switch do not need to be on the same IP subnet. The G8052 supports a menu-based command-line interface (CLI) as well as an industry standard command-line interface (ISCLI) that you can use to configure and control the switch over the network using the Telnet program. You can use the CLI or ISCLI to perform many basic network management functions. In addition, you can configure the switch for management using an SNMP-based network management system or a Web browser. For more information, see the documents listed in “Additional References” on page 23. Using Telnet A Telnet connection offers the convenience of accessing the switch from a workstation connected to the network. Telnet access provides the same options for user and administrator access as those available through the console port. By default, Telnet access is enabled. Use the following commands to disable or re-enable Telnet access: RS G8052(config)# [no] access telnet enable Once the switch is configured with an IP address and gateway, you can use Telnet to access switch administration from any workstation connected to the management network. To establish a Telnet connection with the switch, run the Telnet program on your workstation and issue the following Telnet command: telnet You will then be prompted to enter a password as explained “Switch Login Levels” on page 42. Two attempts are allowed to log in to the switch. After the second unsuccessful attempt, the Telnet client is disconnected via TCP session closure. 32 G8052 Application Guide for N/OS 8.3 Using Secure Shell Although a remote network administrator can manage the configuration of a G8052 via Telnet, this method does not provide a secure connection. The Secure Shell (SSH) protocol enables you to securely log into another device over a network to execute commands remotely. As a secure alternative to using Telnet to manage switch configuration, SSH ensures that all data sent over the network is encrypted and secure. The switch can do only one session of key/cipher generation at a time. Thus, a SSH/SCP client will not be able to login if the switch is doing key generation at that time. Similarly, the system will fail to do the key generation if a SSH/SCP client is logging in at that time. The supported SSH encryption and authentication methods are: Server Host Authentication: Client RSA-authenticates the switch when starting each connection Key Exchange: ecdh-sha2-nistp521, ecdh-sha2-nistp384, ecdh-sha2-nistp256, ecdh-sha2-nistp224, ecdh-sha2-nistp192, rsa2048-sha256, rsa1024-sha1, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, diffie-hellman-group1-sha1 Encryption: aes128-ctr, aes128-cbc, rijndael128-cbc, blowfish-cbc,3des-cbc, arcfour256, arcfour128, arcfour MAC: hmac-sha1, hmac-sha1-96, hmac-md5, hmac-md5-96 User Authentication: Local password authentication, public key authentication, RADIUS, TACACS+ Lenovo Network Operating System implements the SSH version 2.0 standard and is confirmed to work with SSH version 2.0-compliant clients such as the following: OpenSSH_5.4p1 for Linux Secure CRT Version 5.0.2 (build 1021) Putty SSH release 0.60 Using SSH with Password Authentication By default, the SSH feature is disabled. Once the IP parameters are configured and the SSH service is enabled, you can access the command line interface using an SSH connection. To establish an SSH connection with the switch, run the SSH program on your workstation by issuing the SSH command, followed by the switch IPv4 or IPv6 address: # ssh You will then be prompted to enter a password as explained “Switch Login Levels” on page 42. © Copyright Lenovo 2015 Chapter 1: Switch Administration 33 Using SSH with Public Key Authentication SSH can also be used for switch authentication based on asymmetric cryptography. Public encryption keys can be uploaded on the switch and used to authenticate incoming login attempts based on the clients’ private encryption key pairs. After a predefined number of failed public key login attempts, the switch reverts to password-based authentication. To set up public key authentication: 1. Enable SSH: RS G8052(config)# ssh enable 2. Import the public key file using SFTP or TFTP for the admin user account:: RS G8052(config)# copy {sftp|tftp} publickey Port type ["DATA"/"MGT"]: mgt Address or name of remote host: 9.43.101.151 Source file name: 11.key Username of the public key: admin Confirm download operation (y/n) ? y Notes: When prompted to input a username, a valid user account name must be entered. If no username is entered, the key is stored on the switch, and can be assigned to a user account later. Note: A user account can have up to 100 public keys set up on the switch. 3. Configure a maximum number of 3 failed public key authentication attempts before the system reverts to password-based authentication: RS G8052(config)# ssh maxauthattempts 3 Once the public key is configured on the switch, the client can use SSH to login from a system where the private key pair is set up: # ssh 34 G8052 Application Guide for N/OS 8.3 Using a Web Browser The switch provides a Browser-Based Interface (BBI) for accessing the common configuration, management, and operation features of the G8052 through your Web browser. By default, BBI access via HTTP is enabled on the switch. You can also access the BBI directly from an open Web browser window. Enter the URL using the IP address of the switch interface (for example, http:// ). Configuring HTTP Access to the BBI By default, BBI access via HTTP is enabled on the switch. To disable or re-enable HTTP access to the switch BBI, use the following commands: RS G8052(config)# access http enable (Enable HTTP access) -orRS G8052(config)# no access http enable (Disable HTTP access) The default HTTP web server port to access the BBI is port 80. However, you can change the default Web server port with the following command: RS G8052(config)# access http port To access the BBI from a workstation, open a Web browser window and type in the URL using the IP address of the switch interface (for example, http:// ). Configuring HTTPS Access to the BBI The BBI can also be accessed via a secure HTTPS connection. 1. Enable HTTPS. By default, BBI access via HTTPS is disabled on the switch. To enable BBI Access via HTTPS, use the following command: RS G8052(config)# access https enable 2. Set the HTTPS server port number (optional). To change the HTTPS Web server port number from the default port 443, use the following command: RS G8052(config)# access https port 3. Generate the HTTPS certificate. © Copyright Lenovo 2015 Chapter 1: Switch Administration 35 Accessing the BBI via HTTPS requires that you generate a certificate to be used during the key exchange. A default certificate is created the first time HTTPS is enabled, but you can create a new certificate defining the information you want to be used in the various fields. RS G8052(config)# access https generatecertificate Country Name (2 letter code) [US]: State or Province Name (full name) [CA]: Locality Name (eg, city) [Santa Clara]: Organization Name (eg, company) [Lenovo Networking Operating System]: Organizational Unit Name (eg, section) [Network Engineering]: Common Name (eg, YOUR name) [0.0.0.0]: Email (eg, email address) []: Confirm generating certificate? [y/n]: y Generating certificate. Please wait (approx 30 seconds) restarting SSL agent 4. Save the HTTPS certificate. The certificate is valid only until the switch is rebooted. To save the certificate so it is retained beyond reboot or power cycles, use the following command: RS G8052(config)# access https savecertificate When a client (such as a web browser) connects to the switch, the client is asked to accept the certificate and verify that the fields match what is expected. Once BBI access is granted to the client, the BBI can be used. Browser-Based Interface Summary The BBI is organized at a high level as follows: Context buttons—These buttons allow you to select the type of action you wish to perform. The Configuration button provides access to the configuration elements for the entire switch. The Statistics button provides access to the switch statistics and state information. The Dashboard button allows you to display the settings and operating status of a variety of switch features. Navigation Window—Provides a menu of switch features and functions: 36 System—Provides access to the configuration elements for the entire switch. Switch Ports—Configure each of the physical ports on the switch. Port-Based Port Mirroring—Configure port mirroring behavior. Layer 2—Configure Layer 2 features for the switch. RMON Menu—Configure Remote Monitoring features for the switch. Layer 3—Configure Layer 3 features for the switch. QoS—Configure Quality of Service features for the switch. Access Control—Configure Access Control Lists to filter IP packets. Virtualization—Configure VMready. G8052 Application Guide for N/OS 8.3 Using Simple Network Management Protocol N/OS provides Simple Network Management Protocol (SNMP) version 1, version 2, and version 3 support for access through any network management software, such as IBM Director or HP-OpenView. Note: SNMP read and write functions are enabled by default. For best security practices, if SNMP is not needed for your network, it is recommended that you disable these functions prior to connecting the switch to the network. To access the SNMP agent on the G8052, the read and write community strings on the SNMP manager must be configured to match those on the switch. The default read community string on the switch is public and the default write community string is private. The read and write community strings on the switch can be configured using the following commands: RS G8052(config)# snmpserver readcommunity <1-32 characters> -andRS G8052(config)# snmpserver writecommunity <1-32 characters> The SNMP manager must be able to reach any one of the IP interfaces on the switch. For the SNMP manager to receive the SNMPv1 traps sent out by the SNMP agent on the switch, configure the trap host on the switch with the following commands: RS G8052(config)# snmpserver trapsource RS G8052(config)# snmpserver host To restrict SNMP access to specific IPv4 subnets, use the following commands: RS G8052(config)# access managementnetwork snmpro -andRS G8052(config)# access managementnetwork snmprw For IPv6 networks, use: RS G8052(config)# access managementnetwork6 snmpro -andRS G8052(config)# access managementnetwork6 snmprw Note: Subnets allowed for SNMP read-only access must not overlap with subnets allowed for SNMP read-write access. For more information on SNMP usage and configuration, see Chapter 35, “Simple Network Management Protocol.” © Copyright Lenovo 2015 Chapter 1: Switch Administration 37 BOOTP/DHCP Client IP Address Services For remote switch administration, the client terminal device must have a valid IP address on the same network as a switch interface. The IP address on the client device may be configured manually, or obtained automatically using IPv6 stateless address configuration, or an IPv4 address may obtained automatically via BOOTP or DHCP relay as discussed in the next section. The G8052 can function as a relay agent for Bootstrap Protocol (BOOTP) or DHCP. This allows clients to be assigned an IPv4 address for a finite lease period, reassigning freed addresses later to other clients. Acting as a relay agent, the switch can forward a client’s IPv4 address request to up to five BOOTP/DHCP servers. In addition to the five global BOOTP/DHCP servers, up to five domain-specific BOOTP/DHCP servers can be configured for each of up to 10 VLANs. When a switch receives a BOOTP/DHCP request from a client seeking an IPv4 address, the switch acts as a proxy for the client. The request is forwarded as a UDP Unicast MAC layer message to the BOOTP/DHCP servers configured for the client’s VLAN, or to the global BOOTP/DHCP servers if no domain-specific BOOTP/DHCP servers are configured for the client’s VLAN. The servers respond to the switch with a Unicast reply that contains the IPv4 default gateway and the IPv4 address for the client. The switch then forwards this reply back to the client. DHCP is described in RFC 2131, and the DHCP relay agent supported on the G8052 is described in RFC 1542. DHCP uses UDP as its transport protocol. The client sends messages to the server on port 67 and the server sends messages to the client on port 68. BOOTP and DHCP relay are collectively configured using the BOOTP commands and menus on the G8052. DHCP Host Name Configuration The G8052 supports DHCP host name configuration as described in RFC 2132, option 12. DHCP host name configuration is enabled by default. Host name can be manually configured using the following command: RS G8052(config)# hostname If the host name is manually configured, the switch does not replace it with the host name received from the DHCP server. After the host name is configured on the switch, if DHCP or DHCP host name configuration is disabled, the switch retains the host name. The switch prompt displays the host name. Host name configuration can be enabled/disabled using the following command: RS G8052(config)# [no] system dhcp hostname 38 G8052 Application Guide for N/OS 8.3 DHCP SYSLOG Server During switch startup, if the switch fails to get the configuration file, a message can be recorded in the SYSLOG server. The G8052 supports requesting of a SYSLOG server IP address from the DHCP server as described in RFC 2132, option 7. DHCP SYSLOG server request option is enabled by default. Manually configured SYSLOG server takes priority over DHCP SYSLOG server. Up to two SYSLOG server addresses received from the DHCP server can be used. The SYSLOG server can be learnt over a management port or a data port. Use the RS G8052# show logging command to view the SYSLOG server address. DHCP SYSLOG server address option can be enabled/disabled using the following command: RS G8052(config)# [no] system dhcp syslog Global BOOTP Relay Agent Configuration To enable the G8052 to be a BOOTP (or DHCP) forwarder, enable the BOOTP relay feature, configure up to four global BOOTP server IPv4 addresses on the switch, and enable BOOTP relay on the interface(s) on which the client requests are expected. Generally, it is best to configure BOOTP for the switch IP interface that is closest to the client, so that the BOOTP server knows from which IPv4 subnet the newly allocated IPv4 address will come. In the G8052 implementation, there are no primary or secondary BOOTP servers. The client request is forwarded to all the global BOOTP servers configured on the switch (if no domain-specific servers are configured). The use of multiple servers provides failover redundancy. However, no health checking is supported. 1. Use the following commands to configure global BOOTP relay servers: RS G8052(config)# ip bootprelay enable RS G8052(config)# ip bootprelay server <1-5> address 2. Enable BOOTP relay on the appropriate IP interfaces. BOOTP/DHCP Relay functionality may be assigned on a per-interface basis using the following commands: RS G8052(config)# interface ip RS G8052(configipif)# relay RS G8052(configipif)# exit © Copyright Lenovo 2015 Chapter 1: Switch Administration 39 Domain-Specific BOOTP Relay Agent Configuration Use the following commands to configure up to five domain-specific BOOTP relay agents for each of up to 10 VLANs: RS G8052(config)# ip bootprelay bcastdomain <1-10> vlan RS G8052(config)# ip bootprelay bcastdomain <1-10> server <1-5> address RS G8052(config)# ip bootprelay bcastdomain <1-10> enable As with global relay agent servers, domain-specific BOOTP/DHCP functionality may be assigned on a per-interface basis (see Step 2 in page 39). DHCP Option 82 DHCP Option 82 provides a mechanism for generating IP addresses based on the client device’s location in the network. When you enable the DHCP relay agent option on the switch, it inserts the relay agent information option 82 in the packet, and sends a unicast BOOTP request packet to the DHCP server. The DHCP server uses the option 82 field to assign an IP address, and sends the packet, with the original option 82 field included, back to the relay agent. DHCP relay agent strips off the option 82 field in the packet and sends the packet to the DHCP client. Configuration of this feature is optional. The feature helps resolve several issues where untrusted hosts access the network. See RFC 3046 for details. Given below are the commands to configure DHCP Option 82: RS G8052(config)# ip bootprelay information enable (Enable Option 82) RS G8052(config)# ip bootprelay enable (Enable DHCP relay) RS G8052(config)# ip bootprelay server <1-5> address DHCP Snooping DHCP snooping provides security by filtering untrusted DHCP packets and by building and maintaining a DHCP snooping binding table. This feature is applicable only to IPv4. An untrusted interface is a port that is configured to receive packets from outside the network or firewall. A trusted interface receives packets only from within the network. By default, all DHCP ports are untrusted. The DHCP snooping binding table contains the MAC address, IP address, lease time, binding type, VLAN number, and port number that correspond to the local untrusted interface on the switch; it does not contain information regarding hosts interconnected with a trusted interface. By default, DHCP snooping is disabled on all VLANs. You can enable DHCP snooping on one or more VLANs. You must enable DHCP snooping globally. To enable this feature, enter the commands below: RS G8052(config)# ip dhcp snooping vlan RS G8052(config)# ip dhcp snooping 40 G8052 Application Guide for N/OS 8.3 Following is an example of DHCP snooping configuration, where the DHCP server and client are in VLAN 100, and the server connects using port 24. RS RS RS RS RS G8052(config)# ip dhcp snooping vlan 100 G8052(config)# ip dhcp snooping G8052(config)# interface port 24 G8052(configif)# ip dhcp snooping trust(Optional; Set port as trusted) G8052(configif)# ip dhcp snooping information optioninsert (Optional; add DHCP option 82) RS G8052(configif)# ip dhcp snooping limit rate 100 (Optional; Set DHCP packet rate) © Copyright Lenovo 2015 Chapter 1: Switch Administration 41 Switch Login Levels To enable better switch management and user accountability, three levels or classes of user access have been implemented on the G8052. Levels of access to CLI, Web management functions, and screens increase as needed to perform various switch management tasks. Conceptually, access classes are defined as follows: User interaction with the switch is completely passive—nothing can be changed on the G8052. Users may display information that has no security or privacy implications, such as switch statistics and current operational state information. Operators can only effect temporary changes on the G8052. These changes will be lost when the switch is rebooted/reset. Operators have access to the switch management features used for daily switch operations. Because any changes an operator makes are undone by a reset of the switch, operators cannot severely impact switch operation. Administrators are the only ones that may make permanent changes to the switch configuration—changes that are persistent across a reboot/reset of the switch. Administrators can access switch functions to configure and troubleshoot problems on the G8052. Because administrators can also make temporary (operator-level) changes as well, they must be aware of the interactions between temporary and permanent changes. Access to switch functions is controlled through the use of unique user names and passwords. Once you are connected to the switch via console, remote Telnet, or SSH, you are prompted to enter a password. The default user names/password for each access level are listed in the following table. Note: It is recommended that you change default switch passwords after initial configuration and as regularly as required under your network security policies. Table 2. User Access Levels - Default Settings 42 User Account Password Description and Tasks Performed Status user user The User has no direct responsibility for switch management. He or she can view all switch status information and statistics, but cannot make any configuration changes to the switch. Disabled oper oper The Operator manages all functions of the switch. The Operator can reset ports, except the management ports. Disabled admin admin The superuser Administrator has complete access to all menus, information, and configuration commands on the G8052, including the ability to change both the user and administrator passwords. Enabled G8052 Application Guide for N/OS 8.3 Note: Access to each user level (except admin account) can be disabled by setting the password to an empty value. To disable admin account, use no access user administratorenable command. Admin account can be disabled only if there is at least one user account enabled and configured with administrator privilege. © Copyright Lenovo 2015 Chapter 1: Switch Administration 43 Setup vs. the Command Line Once the administrator password is verified, you are given complete access to the switch. If the switch is still set to its factory default configuration, the system will ask whether you wish to run Setup (see Chapter 2, “Initial Setup”), a utility designed to help you through the first-time configuration process. If the switch has already been configured, the command line is displayed instead. 44 G8052 Application Guide for N/OS 8.3 Idle Disconnect By default, the switch will disconnect your Telnet session after 10 minutes of inactivity. This function is controlled by the idle timeout parameter, which can be set from 0 to 60 minutes, where 0 means the session will never timeout. Use the following command to set the idle timeout value: RS G8052(config)# system idle <0-60> © Copyright Lenovo 2015 Chapter 1: Switch Administration 45 Boot Strict Mode The implementations specified in this section are compliant with National Institute of Standards and Technology (NIST) Special Publication (SP) 800-131A. The RackSwitch G8052 can operate in two boot modes: Compatibility mode (default): This is the default switch boot mode. This mode may use algorithms and key lengths that may not be allowed/acceptable by NIST SP 800-131A specification. This mode is useful in maintaining compatibility with previous releases and in environments that have lesser data security requirements. Strict mode: Encryption algorithms, protocols, and key lengths in strict mode are compliant with NIST SP 800-131A specification. When in boot strict mode, the switch uses Secure Sockets Layer (SSL)/Transport Layer Security (TLS) 1.2 protocols to ensure confidentiality of the data to and from the switch. Before enabling strict mode, ensure the following: The software version on all connected switches is Networking OS 8.3. The supported protocol versions and cryptographic cipher suites between clients and servers are compatible. For example: if using SSH to connect to the switch, ensure that the SSH client supports SSHv2 and a strong cipher suite that is compliant with the NIST standard. Compliant Web server certificate is installed on the switch, if using BBI. A new self-signed certificate is generated for the switch (RS G8052(config)# access https generatecertificate). The new certificate is generated using 2048-bit RSA key and SHA-256 digest. Protocols that are not NIST SP 800-131A compliant must be disabled or not used. Only SSHv2 or higher is used. The current configuration, if any, is saved in a location external to the switch. When the switch reboots, both the startup and running configuration are lost. Only protocols/algorithms compliant with NIST SP 800-131A specification are used/enabled on the switch. Please see the NIST SP 800-131A publication for details. The following table lists the acceptable protocols and algorithms: Table 3. Acceptable Protocols and Algorithms Protocol/Function Strict Mode Algorithm 46 Compatibility Mode Algorithm BGP BGP does not comply with NIST SP Acceptable 800-131A specification. When in strict mode, BGP is disabled. However, it can be enabled, if required. Certificate Generation RSA-2048 SHA-256 RSA 2048 SHA 256 Certificate Acceptance RSA 2048 or higher SHA 224 or higher RSA SHA, SHA2 G8052 Application Guide for N/OS 8.3 Table 3. Acceptable Protocols and Algorithms (continued) Protocol/Function Strict Mode Algorithm Compatibility Mode Algorithm HTTPS TLS 1.2 only See “Acceptable Cipher Suites” on page 49; TLS 1.0, 1.1, 1.2 See “Acceptable Cipher Suites” on page 49; Key Exchange DH Group 24 DH group 1, 2, 5, 14, 24 Encryption 3DES, AES-128-CBC 3DES, AES-128-CBC Integrity HMAC-SHA1 HMAC-SHA1, HMAC-MD5 AH HMAC-SHA1 HMAC-SHA1, HMAC-MD5 ESP 3DES, AES-128-CBC, HMAC-SHA1 3DES, AES-128-CBC, HMAC-SHA1, HMAC-MD5 LDAP LDAP does not comply with NIST Acceptable SP 800-131A specification. When in strict mode, LDAP is disabled. However, it can be enabled, if required. OSPF OSPF does not comply with NIST SP Acceptable 800-131A specification. When in strict mode, OSPF is disabled. However, it can be enabled, if required. RADIUS Acceptable RADIUS does not comply with NIST SP 800-131A specification. When in strict mode, RADIUS is disabled. However, it can be enabled, if required. Random Number Generator NIST SP 800-90A AES CTR DRBG Secure NTP Secure NTP does not comply with Acceptable NIST SP 800-131A specification. When in strict mode, secure NTP is disabled. However, it can be enabled, if required. SLP SHA-256 or higher RSA/DSA 2048 or higher SNMP SNMPv3 only AES-128-CFB-128/SHA1 IKE IPSec NIST SP 800-90A AES CTR DRBG SNMPv1, SNMPv2, SNMPv3 DES/MD5, AES-128-CFB-128/SHA1 Note: Following algorithms are acceptable if you choose to support old SNMPv3 factory default users: AES-128-CFB/SHA1 DES/MD5 AES-128-CFB-128/SHA1 © Copyright Lenovo 2015 Chapter 1: Switch Administration 47 Table 3. Acceptable Protocols and Algorithms (continued) Protocol/Function Strict Mode Algorithm Compatibility Mode Algorithm SSH/SFTP 48 Host Key SSH-RSA SSH-RSA Key Exchange ECDH-SHA2-NISTP521 ECDH-SHA2-NISTP384 ECDH-SHA2-NISTP256 ECDH-SHA2-NISTP224 RSA2048-SHA256 DIFFIE-HELLMAN-GROUP-EXCH ANGE-SHA256 DIFFIE-HELLMAN-GROUP-EXCH ANGE-SHA1 ECDH-SHA2-NISTP521 ECDH-SHA2-NISTP384 ECDH-SHA2-NISTP256 ECDH-SHA2-NISTP224 ECDH-SHA2-NISTP192 RSA2048-SHA256 RSA1024-SHA1 DIFFIE-HELLMAN-GROUP-EX CHANGE-SHA256 DIFFIE-HELLMAN-GROUP-EX CHANGE-SHA1 DIFFIE-HELLMAN-GROUP14-S HA1 DIFFIE-HELLMAN-GROUP1-S HA1 Encryption AES128-CTR AES128-CBC 3DES-CBC AES128-CTR AES128-CBC RIJNDAEL128-CBC BLOWFISH-CBC 3DES-CBC ARCFOUR256 ARCFOUR128 ARCFOUR MAC HMAC-SHA1 HMAC-SHA1-96 HMAC-SHA1 HMAC-SHA1-96 HMAC-MD5 HMAC-MD5-96 TACACS+ TACACS+ does not comply with NIST SP 800-131A specification. When in strict mode, TACACS+ is disabled. However, it can be enabled, if required. Acceptable G8052 Application Guide for N/OS 8.3 Acceptable Cipher Suites The following cipher suites are acceptable (listed in the order of preference) when the RackSwitch G8052 is in compatibility mode: Table 4. List of Acceptable Cipher Suites in Compatibility Mode Cipher ID Key Exchange 0xC027 ECDHE 0xC013 ECDHE 0xC012 ECDHE Authenti Encryption MAC cation RSA AES_128_CB SHA256 C RSA AES_128_CB SHA1 C RSA 3DES SHA1 0xC011 ECDHE RSA RC4 0x002F RSA RSA 0x003C RSA RSA 0x0005 RSA RSA AES_128_CB SHA1 C AES_128_CB SHA256 C RC4 SHA1 SSL_RSA_WITH_RC4_128_SHA 0x000A RSA RSA 3DES SSL_RSA_WITH_3DES_EDE_CBC_SHA 0x0033 DHE RSA 0x0067 DHE RSA 0x0016 DHE RSA AES128_CB SHA1 C AES_128_CB SHA256 C 3DES SHA1 SHA1 SHA1 Cipher Name TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA2 56 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA SSL_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA SSL_ECDHE_RSA_WITH_RC4_128_SHA TLS_RSA_WITH_AES_128_CBC_SHA TLS_RSA_WITH_AES_128_CBC_SHA256 TLS_DHE_RSA_WITH_AES_128_CBC_SHA TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA The following cipher suites are acceptable (listed in the order of preference) when the RackSwitch G8052 is in strict mode: Table 5. List of Acceptable Cipher Suites in Strict Mode Cipher ID Key Exchange 0xC027 ECDHE © Copyright Lenovo 2015 0xC013 ECDHE 0xC012 ECDHE Authenti Encryption MAC cation RSA AES_128_CB SHA256 C RSA AES_128_CB SHA1 C RSA 3DES SHA1 0x0033 DHE RSA 0x0067 DHE RSA 0x0016 DHE RSA 0x002F RSA RSA 0x003C RSA RSA 0x000A RSA RSA AES128_CB SHA1 C AES_128_CB SHA256 C 3DES SHA1 AES_128_CB SHA1 C AES_128_CB SHA256 C 3DES SHA1 Cipher Name TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA2 56 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA SSL_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA TLS_DHE_RSA_WITH_AES_128_CBC_SHA TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA TLS_RSA_WITH_AES_128_CBC_SHA TLS_RSA_WITH_AES_128_CBC_SHA256 SSL_RSA_WITH_3DES_EDE_CBC_SHA Chapter 1: Switch Administration 49 Configuring Strict Mode To change the switch mode to boot strict mode, use the following command: RS G8052(config)# [no] boot strict enable When strict mode is enabled, you will see the following message: Warning, security strict mode limits the cryptographic algorithms used by secure protocols on this switch. Please see the documentation for full details, and verify that peer devices support acceptable algorithms before enabling this mode. The mode change will take effect after reloading the switch and the configuration will be wiped during the reload. System will enter security strict mode with default factory configuration at next boot up. Do you want SNMPV3 support old default users in strict mode (y/n)? For SNMPv3 default users, see “SNMP Version 3” on page 510. When strict mode is disabled, the following message is displayed: Warning, disabling security strict mode. The mode change will take effect after reloading the switch. You must reboot the switch for the boot strict mode enable/disable to take effect. Configuring No-Prompt Mode If you expect to administer the switch using SNSC or another browser-based interface, you need to turn off confirmation prompts. To accomplish this, use the command: RS G8052(config)# [no] terminal dontask In no-prompt mode, confirmation prompts are disabled for this and future sessions. SSL/TLS Version Limitation Each of the following successive encryption protocol versions provide more security and less compatibility: SSLv3, TLS1.0, TLS1.1, TLS1.2. When negotiating the encryption protocol during the SSL handshake, the switch will accept, by default, the latest (and most secure) protocol version supported by the client equipment. To enforce a minimal level of security acceptable for the connections, use the following command: RS G8052(config)# ssl minimumversion {ssl|tls10|tls11|tls12} Limitations In Networking OS 8.3, consider the following limitation/restrictions if you need to operate the switch in boot strict mode: 50 G8052 Application Guide for N/OS 8.3 © Copyright Lenovo 2015 Power ITEs and High-Availability features do not comply with NIST SP 800-131A specification. The G8052 will not discover Platform agents/Common agents that are not in strict mode. Web browsers that do not use TLS 1.2 cannot be used. Limited functions of the switch managing Windows will be available. Chapter 1: Switch Administration 51 52 G8052 Application Guide for N/OS 8.3 Chapter 2. Initial Setup To help with the initial process of configuring your switch, the Lenovo Network Operating System software includes a Setup utility. The Setup utility prompts you step-by-step to enter all the necessary information for basic configuration of the switch. Whenever you log in as the system administrator under the factory default configuration, you are asked whether you wish to run the Setup utility. Setup can also be activated manually from the command line interface any time after login. © Copyright Lenovo 2015 53 Information Needed for Setup Setup requests the following information: 54 Basic system information Date & time Whether to use Spanning Tree Group or not Optional configuration for each port Speed, duplex, flow control, and negotiation mode (as appropriate) Whether to use VLAN trunk mode/tagging or not (as appropriate) Optional configuration for each VLAN Name of VLAN Which ports are included in the VLAN Optional configuration of IP parameters IP address/mask and VLAN for each IP interface IP addresses for default gateway Whether IP forwarding is enabled or not G8052 Application Guide for N/OS 8.3 Default Setup Options The Setup prompt appears automatically whenever you login as the system administrator under the factory default settings. 1. Connect to the switch. After connecting, the login prompt appears. Enter Password: 2. Enter admin as the default administrator password. If the factory default configuration is detected, the system prompts: RackSwitch G8052 18:44:05 Wed Jan 3, 2009 The switch is booted with factory default configuration. To ease the configuration of the switch, a "Set Up" facility which will prompt you with those configuration items that are essential to the operation of the switch is provided. Would you like to run "Set Up" to configure the switch? [y/n]: Note: If the default admin login is unsuccessful, or if the administrator Main Menu appears instead, the system configuration has probably been changed from the factory default settings. If desired, return the switch to its factory default configuration. 3. Enter y to begin the initial configuration of the switch, or n to bypass the Setup facility. © Copyright Lenovo 2015 Chapter 2: Initial Setup 55 Setting the Management Interface Default IP Address To facilitate switch boot up, the in-band and out-of-band management interfaces are configured with factory default IP addresses. These are as follows: VLAN 1/ Interface 1: 192.168.49.50/24 If you configure static IP addresses or if DHCP/BOOTP addresses are assigned to these interfaces, the factory default IP addresses will not be applied. By default, DHCP and BOOTP are enabled on the management interfaces. If you add interface 1 to another VLAN and do not configure any IP address, the factory default IP address will be automatically assigned to the interface. We recommend that you disable the factory default IP address configuration after the switch boot up and configuration is complete. Use the following command: RS G8052(config)# no system default-ip data 56 G8052 Application Guide for N/OS 8.3 Stopping and Restarting Setup Manually Stopping Setup To abort the Setup utility, press during any Setup question. When you abort Setup, the system will prompt: Would you like to run from top again? [y/n] Enter n to abort Setup, or y to restart the Setup program at the beginning. Restarting Setup You can restart the Setup utility manually at any time by entering the following command at the administrator prompt: RS G8052(config)# setup © Copyright Lenovo 2015 Chapter 2: Initial Setup 57 Setup Part 1: Basic System Configuration When Setup is started, the system prompts: "Set Up" will walk you through the configuration of System Date and Time, Spanning Tree, Port Speed/Mode, VLANs, and IP interfaces. [type CtrlC to abort "Set Up"] 1. Enter y if you will be configuring VLANs. Otherwise enter n. If you decide not to configure VLANs during this session, you can configure them later using the configuration menus, or by restarting the Setup facility. For more information on configuring VLANs, see the Lenovo Network Operating System Application Guide. Next, the Setup utility prompts you to input basic system information. 2. Enter the year of the current date at the prompt: System Date: Enter year [2009]: Enter the four-digits that represent the year. To keep the current year, press . 3. Enter the month of the current system date at the prompt: System Date: Enter month [1]: Enter the month as a number from 1 to 12. To keep the current month, press . 4. Enter the day of the current date at the prompt: Enter day [3]: Enter the date as a number from 1 to 31. To keep the current day, press . The system displays the date and time settings: System clock set to 18:55:36 Wed Jan 28, 2009. 5. Enter the hour of the current system time at the prompt: System Time: Enter hour in 24hour format [18]: Enter the hour as a number from 00 to 23. To keep the current hour, press . 6. Enter the minute of the current time at the prompt: Enter minutes [55]: 58 G8052 Application Guide for N/OS 8.3 Enter the minute as a number from 00 to 59. To keep the current minute, press . 7. Enter the seconds of the current time at the prompt: Enter seconds [37]: Enter the seconds as a number from 00 to 59. To keep the current second, press . The system then displays the date and time settings: System clock set to 8:55:36 Wed Jan 28, 2009. 8. Turn Spanning Tree Protocol on or off at the prompt: Spanning Tree: Current Spanning Tree Group 1 setting: ON Turn Spanning Tree Group 1 OFF? [y/n] Enter y to turn off Spanning Tree, or enter n to leave Spanning Tree on. © Copyright Lenovo 2015 Chapter 2: Initial Setup 59 Setup Part 2: Port Configuration Note: When configuring port options for your switch, some prompts and options may be different. 1. Select whether you will configure VLANs and VLAN trunk mode/tagging for ports: Port Config: Will you configure VLANs and VLAN Tagging/TrunkMode for ports? [y/n] If you wish to change settings for VLANs, enter y, or enter n to skip VLAN configuration. Note: The sample screens that appear in this document might differ slightly from the screens displayed by your system. Screen content varies based on the firmware versions and options that are installed. 2. Select the port to configure, or skip port configuration at the prompt: If you wish to change settings for individual ports, enter the number of the port you wish to configure. To skip port configuration, press without specifying any port and go to “Setup Part 3: VLANs” on page 62. 3. Configure Gigabit Ethernet port flow parameters. The system prompts: Gig Link Configuration: Port Flow Control: Current Port EXT1 flow control setting: both Enter new value ["rx"/"tx"/"both"/"none"]: Enter rx to enable receive flow control, tx for transmit flow control, both to enable both, or none to turn flow control off for the port. To keep the current setting, press . 4. Configure Gigabit Ethernet port autonegotiation mode. If you selected a port that has a Gigabit Ethernet connector, the system prompts: Port Auto Negotiation: Current Port EXT1 autonegotiation: Enter new value ["on"/"off"]: on Enter on to enable port autonegotiation, off to disable it, or press to keep the current setting. 5. If configuring VLANs, enable or disable VLAN trunk mode/tagging for the port. If you have selected to configure VLANs back in Part 1, the system prompts: Port VLAN tagging/trunk mode config (tagged/trunk mode port can be a member of multiple VLANs) Current VLAN tagging/trunk mode support: disabled Enter new VLAN tagging/trunk mode support [d/e]: 60 G8052 Application Guide for N/OS 8.3 Enter d to disable VLAN trunk mode/tagging for the port or enter e to enable VLAN tagging for the port. To keep the current setting, press . 6. The system prompts you to configure the next port: Enter port (152): When you are through configuring ports, press without specifying any port. Otherwise, repeat the steps in this section. © Copyright Lenovo 2015 Chapter 2: Initial Setup 61 Setup Part 3: VLANs If you chose to skip VLANs configuration back in Part 2, skip to “Setup Part 4: IP Configuration” on page 63. 1. Select the VLAN to configure, or skip VLAN configuration at the prompt: VLAN Config: Enter VLAN number from 2 to 4094, NULL at end: If you wish to change settings for individual VLANs, enter the number of the VLAN you wish to configure. To skip VLAN configuration, press without typing a VLAN number and go to “Setup Part 4: IP Configuration” on page 63. 2. Enter the new VLAN name at the prompt: Current VLAN name: VLAN 2 Enter new VLAN name: Entering a new VLAN name is optional. To use the pending new VLAN name, press . 3. Enter the VLAN port numbers: Define Ports in VLAN: Current VLAN 2: empty Enter ports one per line, NULL at end: Enter each port, by port number or port alias, and confirm placement of the port into this VLAN. When you are finished adding ports to this VLAN, press without specifying any port. 4. Configure Spanning Tree Group membership for the VLAN: Spanning Tree Group membership: Enter new Spanning Tree Group index [1128]: 5. The system prompts you to configure the next VLAN: VLAN Config: Enter VLAN number from 2 to 4094, NULL at end: Repeat the steps in this section until all VLANs have been configured. When all VLANs have been configured, press without specifying any VLAN. 62 G8052 Application Guide for N/OS 8.3 Setup Part 4: IP Configuration The system prompts for IPv4 parameters. Although the switch supports both IPv4 and IPv6 networks, the Setup utility permits only IPv4 configuration. For IPv6 configuration, see Chapter 23, “Internet Protocol Version 6.” IP Interfaces IP interfaces are used for defining the networks to which the switch belongs. Up to 128 IP interfaces can be configured on the RackSwitch G8052 (G8052). The IP address assigned to each IP interface provides the switch with an IP presence on your network. No two IP interfaces can be on the same IP network. The interfaces can be used for connecting to the switch for remote configuration, and for routing between subnets and VLANs (if used). 1. Select the IP interface to configure, or skip interface configuration at the prompt: IP Config: IP interfaces: Enter interface number: (1128) If you wish to configure individual IP interfaces, enter the number of the IP interface you wish to configure. To skip IP interface configuration, press without typing an interface number and go to “Default Gateways” on page 64. 2. For the specified IP interface, enter the IP address in IPv4 dotted decimal notation: Current IP address: Enter new IP address: 0.0.0.0 To keep the current setting, press . 3. At the prompt, enter the IPv4 subnet mask in dotted decimal notation: Current subnet mask: Enter new subnet mask: 0.0.0.0 To keep the current setting, press .If configuring VLANs, specify a VLAN for the interface. This prompt appears if you selected to configure VLANs back in Part 1: Current VLAN: 1 Enter new VLAN [14094]: Enter the number for the VLAN to which the interface belongs, or press without specifying a VLAN number to accept the current setting. © Copyright Lenovo 2015 Chapter 2: Initial Setup 63 4. At the prompt, enter y to enable the IP interface, or n to leave it disabled: Enable IP interface? [y/n] 5. The system prompts you to configure another interface: Enter interface number: (1128) Repeat the steps in this section until all IP interfaces have been configured. When all interfaces have been configured, press without specifying any interface number. Default Gateways To set up a default gateway: 1. At the prompt, select an IP default gateway for configuration, or skip default gateway configuration: IP default gateways: Enter default gateway number: (14) Enter the number for the IP default gateway to be configured. To skip default gateway configuration, press without typing a gateway number and go to “IP Routing” on page 64. 2. At the prompt, enter the IPv4 address for the selected default gateway: Current IP address: Enter new IP address: 0.0.0.0 Enter the IPv4 address in dotted decimal notation, or press without specifying an address to accept the current setting. 3. At the prompt, enter y to enable the default gateway, or n to leave it disabled: Enable default gateway? [y/n] 4. The system prompts you to configure another default gateway: Enter default gateway number: (14) Repeat the steps in this section until all default gateways have been configured. When all default gateways have been configured, press without specifying any number. IP Routing When IP interfaces are configured for the various IP subnets attached to your switch, IP routing between them can be performed entirely within the switch. This eliminates the need to send inter-subnet communication to an external router device. Routing on more complex networks, where subnets may not have a direct presence on the G8052, can be accomplished through configuring static routes or by letting the switch learn routes dynamically. 64 G8052 Application Guide for N/OS 8.3 This part of the Setup program prompts you to configure the various routing parameters. At the prompt, enable or disable forwarding for IP Routing: Enable IP forwarding? [y/n] Enter y to enable IP forwarding. To disable IP forwarding, enter n. To keep the current setting, press . © Copyright Lenovo 2015 Chapter 2: Initial Setup 65 Setup Part 5: Final Steps 1. When prompted, decide whether to restart Setup or continue: Would you like to run from top again? [y/n] Enter y to restart the Setup utility from the beginning, or n to continue. 2. When prompted, decide whether you wish to review the configuration changes: Review the changes made? [y/n] Enter y to review the changes made during this session of the Setup utility. Enter n to continue without reviewing the changes. We recommend that you review the changes. 3. Next, decide whether to apply the changes at the prompt: Apply the changes? [y/n] Enter y to apply the changes, or n to continue without applying. Changes are normally applied. 4. At the prompt, decide whether to make the changes permanent: Save changes to flash? [y/n] Enter y to save the changes to flash. Enter n to continue without saving the changes. Changes are normally saved at this point. 5. If you do not apply or save the changes, the system prompts whether to abort them: Abort all changes? [y/n] Enter y to discard the changes. Enter n to return to the “Apply the changes?” prompt. Note: After initial configuration is complete, it is recommended that you change the default passwords. 66 G8052 Application Guide for N/OS 8.3 Optional Setup for Telnet Support Note: This step is optional. Perform this procedure only if you are planning on connecting to the G8052 through a remote Telnet connection. Telnet is enabled by default. To change the setting, use the following command: RS G8052(config)# no access telnet © Copyright Lenovo 2015 Chapter 2: Initial Setup 67 Loopback Interfaces A loopback interface provides an IP address, but is not otherwise associated with a physical port or network entity. Essentially, it is a virtual interface that is perceived as being “always available” for higher-layer protocols to use and advertise to the network, regardless of other connectivity. Loopback interfaces improve switch access, increase reliability, security, and provide greater flexibility in Layer 3 network designs. They can be used for many different purposes, but are most commonly for management IP addresses, router IDs for various protocols, and persistent peer IDs for neighbor relationships. In Networking OS 8.3, loopback interfaces have been expanded for use with routing protocols such as OSPF, PIM, and BGP. Loopback interfaces can also be specified as the source IP address for syslog, SNMP, RADIUS, TACACS+, NTP, and router IDs. Loopback interfaces must be configured before they can be used in other features. Up to five loopback interfaces are currently supported. They can be configured using the following commands: RS G8052(config)# interface loopback <1-5> RS G8052(configiploopback)# [no] ip address enable RS G8052(configiploopback)# exit Using Loopback Interfaces for Source IP Addresses The switch can use loopback interfaces to set the source IP addresses for a variety of protocols. This assists in server security, as the server for each protocol can be configured to accept protocol packets only from the expected loopback address block. It may also make is easier to locate or process protocol information, since packets have the source IP address of the loopback interface, rather than numerous egress interfaces. Configured loopback interfaces can be applied to the following protocols: Syslogs RS G8052(config)# logging sourceinterface loopback <1-5> SNMP traps RS G8052(config)# snmpserver trapsource loopback <1-5> RADIUS RS G8052(config)# ip radius sourceinterface loopback <1-5> TACACS+ RS G8052(config)# ip tacacs sourceinterface loopback <1-5> NTP RS G8052(config)# ntp source loopback <1-5> 68 G8052 Application Guide for N/OS 8.3 Loopback Interface Limitation ARP is not supported. Loopback interfaces will ignore ARP requests. Loopback interfaces cannot be assigned to a VLAN. © Copyright Lenovo 2015 Chapter 2: Initial Setup 69 70 G8052 Application Guide for N/OS 8.3 Chapter 3. Switch Software Management The switch software image is the executable code running on the G8052. A version of the image comes pre-installed on the device. As new versions of the image are released, you can upgrade the software running on your switch. To get the latest version of software supported for your G8052, go to the following website: http://www.ibm.com/support/ To determine the software version currently used on the switch, use the following switch command: RS G8052# show boot The typical upgrade process for the software image consists of the following steps: Load a new software image and boot image onto an FTP, SFTP or TFTP server on your network. Transfer the new images to your switch. Specify the new software image as the one which will be loaded into switch memory the next time a switch reset occurs. Reset the switch. For instructions on the typical upgrade process using the N/OS ISCLI, USB, or BBI, see “Loading New Software to Your Switch” on page 72. CAUTION: Although the typical upgrade process is all that is necessary in most cases, upgrading from (or reverting to) some versions of Lenovo Network Operating System requires special steps prior to or after the software installation process. Please be sure to follow all applicable instructions in the release notes document for the specific software release to ensure that your switch continues to operate as expected after installing new software. © Copyright Lenovo 2015 71 Loading New Software to Your Switch The G8052 can store up to two different switch software images (called image1 and image2) as well as special boot software (called boot). When you load new software, you must specify where it is placed: either into image1, image2, or boot. For example, if your active image is currently loaded into image1, you would probably load the new image software into image2. This lets you test the new software and reload the original active image (stored in image1), if needed. CAUTION: When you upgrade the switch software image, always load the new boot image and the new software image before you reset the switch. If you do not load a new boot image, your switch might not boot properly (To recover, see “Recovering from a Failed Software Upgrade” on page 76). To load a new software image to your switch, you will need the following: The image and boot software loaded on an FTP, SFTP or TFTP server on your network. Note: Be sure to download both the new boot file and the new image file. The hostname or IP address of the FTP, SFTP or TFTP server Note: The DNS parameters must be configured if specifying hostnames. The name of the new software image or boot file When the software requirements are met, use one of the following procedures to download the new software to your switch. You can use the ISCLI, USB, or the BBI to download and activate new software. Loading Software via the ISCLI 1. In Privileged EXEC mode, enter the following command: Router# copy {tftp|ftp|sftp} {image1|image2|bootimage} 2. Enter the hostname or IP address of the FTP, SFTP or TFTP server. Address or name of remote host: 3. Enter the name of the new software file on the server. Source file name: The exact form of the name will vary by server. However, the file location is normally relative to the FTP, SFTP or TFTP directory (for example, tftpboot). 4. If required by the FTP, SFTP or TFTP server, enter the appropriate username and password. 72 G8052 Application Guide for N/OS 8.3 5. The switch will prompt you to confirm your request. Once confirmed, the software will begin loading into the switch. 6. When loading is complete, use the following commands to enter Global Configuration mode to select which software image (image1 or image2) you want to run in switch memory for the next reboot: Router# configure terminal boot image {image1|image2} Router(config)# The system will then verify which image is set to be loaded at the next reset: Next boot will use switch software image1 instead of image2. 7. Reboot the switch to run the new software: Router(config)# reload The system prompts you to confirm your request. Once confirmed, the switch will reboot to use the new software. Loading Software via BBI You can use the Browser-Based Interface to load software onto the G8052. The software image to load can reside in one of the following locations: FTP server TFTP server SFTP server Local computer After you log onto the BBI, perform the following steps to load a software image: 1. Click the Configure context tab in the toolbar. 2. In the Navigation Window, select System > Config/Image Control. The Switch Image and Configuration Management page appears. 3. If you are loading software from your computer (HTTP client), skip this step and go to the next. Otherwise, if you are loading software from an FTP, SFTP, or TFTP server, enter the server’s information in the FTP, SFTP, or TFTP Settings section. 4. In the Image Settings section, select the image version you want to replace (Image for Transfer). If you are loading software from an FTP, SFTP, or TFTP server, enter the file name and click Get Image. If you are loading software from your computer, click Browse. In the File Upload Dialog, select the file and click OK. Then click Download via Browser. Once the image has loaded, the page refreshes to show the new software. © Copyright Lenovo 2015 Chapter 3: Switch Software Management 73 USB Options You can insert a USB drive into the USB port on the G8052 and use it to work with switch image and configuration files. You can boot the switch using files located on the USB drive, or copy files to and from the USB drive. To safely remove the USB drive, first use the following command to un-mount the USB file system: system usbeject Command mode: Global configuration USB Boot USB Boot allows you to boot the switch with a software image file, boot file, or configuration file that resides on a USB drive inserted into the USB port. Use the following command to enable or disable USB Boot: [no] boot usbboot enable Command mode: Global configuration When enabled, when the switch is reset/reloaded, it checks the USB port. If a USB drive is inserted into the port, the switch checks the root directory on the USB drive for software and image files. If a valid file is present, the switch loads the file and boots using the file. Note: The following file types are supported: FAT32, NTFS (read-only), EXT2, and EXT3. The following list describes the valid file names, and describes the switch behavior when it recognizes them. The file names must be exactly as shown, or the switch will not recognize them. 74 RSG8052_Boot.img The switch replaces the current boot image with the new image, and boots with the new image. RSG8052_OS.img The switch boots with the new software image. The existing images are not affected. RSG8052_replace1_OS.img The switch replaces the current software image1 with the new image, and boots with the new image. RSG8052_replace1_OS.img takes precedence over RSG8052_OS.img RSG8052_replace2_OS.img The switch replaces the current software image2 with the new image, and boots with the new image. RSG8052_replace2_OS.img takes precedence over RSG8052_OS.img RSG8052.cfg The switch boots with the new configuration file. The existing configuration files (active and backup) are not affected. G8052 Application Guide for N/OS 8.3 RSG8052_replace.cfg The switch replaces the active configuration file with the new file, and boots with the new file. This file takes precedence over any other configuration files that may be present on the USB drive. If more than one valid file is present, the switch loads all valid files and boots with them. For example, you may simultaneously load a new boot file, image file, and configuration file from the USB drive. The switch ignores any files that do not match the valid file names or that have the wrong format. USB Copy If a USB drive is inserted into the USB port, you can copy files from the switch to the USB drive, or from the USB drive to the switch. USB Copy is available only for software image 1 and the active configuration. Copy to USB Use the following command to copy a file from the switch to the USB drive (Privileged EXEC mode): usbcopy tousb {boot|image1|active|syslog|crashdump} In this example, the active configuration file is copied to a directory on the USB drive: G8052(config)# usbcopy tousb a_folder/myconfig.cfg active Copy from USB Use the following command to copy a file from the USB drive to the switch: usbcopy fromusb {boot|image1|active} In this example, the active configuration file is copied from a directory on the USB drive: G8052(config)# usbcopy fromusb a_folder/myconfig.cfg active The new file replaces the current file. Note: Do not use two consecutive dot characters ( .. ). Do not use a slash character ( / ) to begin a filename. © Copyright Lenovo 2015 Chapter 3: Switch Software Management 75 The Boot Management Menu The Boot Management menu allows you to switch the software image, reset the switch to factory defaults, or to recover from a failed software download. You can interrupt the boot process and enter the Boot Management menu from the serial console port. When the system displays Memory Test, press . The Boot Management menu appears. Resetting the System ... Memory Test ................................ Boot Management Menu I Change booting image C Change configuration block R Boot in recovery mode (tftp and xmodem download of images to recover switch) Q Reboot E Exit Please choose your menu option: I Current boot image is 1. Enter image to boot: 1 or 2: 2 Booting from image 2 The Boot Management menu allows you to perform the following actions: To change the booting image, press I and follow the screen prompts. To change the configuration block, press C, and follow the screen prompts. To perform a TFTP/XModem download, press R and follow the screen prompts. To reboot the switch, press Q. The booting process restarts. To exit the Boot Management menu, press E. The booting process continues. Recovering from a Failed Software Upgrade Use the following procedure to recover from a failed software upgrade. 1. Connect a PC to the serial port of the switch. 2. Open a terminal emulator program that supports XModem Download (for example, HyperTerminal, CRT, PuTTY) and select the following serial port characteristics: 76 Speed: 9600 bps Data Bits: 8 Stop Bits: 1 Parity: None Flow Control: None G8052 Application Guide for N/OS 8.3 3. To access the Boot Management menu you must interrupt the boot process from the Console port. Boot the G8052, and when the system begins displaying Memory Test progress (a series of dots), press . The boot managment menu appears: 4. Select R for Boot in recovery mode. The following appears: Entering Rescue Mode. Please select one of the following options: T) Configure networking and tftp download an image X) Use xmodem 1K to serial download an image R) Reboot E) Exit If you choose option X (Xmodem serial download), go to Step 5. If you choose option T (TFTP download), go to Step 6. 5. Xmodem download: When you see the following message, change the Serial Port characteristics to 115200 bps: Change the baud rate to 115200 bps and hit the key before initiating the download. a. Press to set the system into download accept mode. When the readiness meter displays (a series of “C” characters), start XModem on your terminal emulator. b. When you see the following message, change the Serial Port characteristics to 9600 bps: Change the baud rate back to 9600 bps, hit the key. c. When you see the following prompt, enter the image number where you want to install the new software and press : Install image as image 1 or 2 (hit return to just boot image): 1 d. The following message is displayed when the image download is complete. Continue to step 7. Entering Rescue Mode. Please select one of the following options: T) Configure networking and tftp download an image X) Use xmodem 1K to serial download an image R) Reboot E) Exit Option?: © Copyright Lenovo 2015 Chapter 3: Switch Software Management 77 6. TFTP download: The switch prompts you to enter the following information: Performing TFTP rescue. Please answer the following questions (enter 'q' to quit): IP addr : Server addr: Netmask : Gateway : Image Filename: a. Enter the required information and press . b. You will see a display similar to the following: Host IP : 10.10.98.110 Server IP : 10.10.98.100 Netmask : 255.255.255.0 Broadcast : 10.10.98.255 Gateway : 10.10.98.254 Installing image G80528.3.1.0_OS.img from TFTP server 10.10.98.100 c. When you see the following prompt, enter the image number and press : Install image as image 1 or 2 (hit return to just boot image): 1 d. The following message is displayed when the image download is complete. Continue to step 7. Installing image as image1... Image1 updated successfully Please select one of the following options: T) Configure networking and tftp download an image X) Use xmodem 1K to serial download an image R) Reboot E) Exit 7. Image recovery is complete. Perform one of the following steps: Press r to reboot the switch. Press e to exit the Boot Management menu Press the Escape key ( ) to re-display the Boot Management menu. Recovering from a Failed Boot Image Use the following procedure to recover from a failed boot image upgrade. 1. Connect a PC to the serial port of the switch. 2. Open a terminal emulator program that supports Xmodem download (for example, HyperTerminal, CRT, PuTTY) and select the following serial port characteristics: 78 Speed: 9600 bps Data Bits: 8 Stop Bits: 1 G8052 Application Guide for N/OS 8.3 Parity: None Flow Control: None 3. Boot the switch and access the Boot Management menu by pressing while the Memory Test is in progress and the dots are being displayed. 4. Select X for Xmodem download. The following appears: Perform xmodem download To download an image use 1K Xmodem at 115200 bps. 5. When you see the following message, change the Serial Port characteristics to 115200 bps: Change the baud rate to 115200 bps and hit the key before initiating the download. a. Press to set the system into download accept mode. When the readiness meter displays (a series of “C” characters), start Xmodem on your terminal emulator.You will see a display similar to the following: Extracting images ... Do *NOT* power cycle the switch. **** RAMDISK **** UnProtected 38 sectors Erasing Flash... ...................................... done Erased 38 sectors Writing to Flash...9....8....7....6....5....4....3....2....1....done Protected 38 sectors **** KERNEL **** UnProtected 24 sectors Erasing Flash... ........................ done Erased 24 sectors Writing to Flash...9....8....7....6....5....4....3....2....1.... b. When you see the following message, change the Serial Port characteristics to 9600 bps: Change the baud rate back to 9600 bps, hit the key. Boot image recovery is complete. © Copyright Lenovo 2015 Chapter 3: Switch Software Management 79 80 G8052 Application Guide for N/OS 8.3 Part 2: Securing the Switch © Copyright Lenovo 2015 81 82 G8052 Application Guide for N/OS 8.3 Chapter 4. Securing Administration Secure switch management is needed for environments that perform significant management functions across the Internet. Common functions for secured management are described in the following sections: “Secure Shell and Secure Copy” on page 84 “End User Access Control” on page 88 Note: SNMP read and write functions are enabled by default. For best security practices, if SNMP is not needed for your network, it is recommended that you disable these functions prior to connecting the switch to the network (see Chapter 35, “Simple Network Management Protocol). © Copyright Lenovo 2015 83 Secure Shell and Secure Copy Because using Telnet does not provide a secure connection for managing a G8052, Secure Shell (SSH) and Secure Copy (SCP) features have been included for G8052 management. SSH and SCP use secure tunnels to encrypt and secure messages between a remote administrator and the switch. SSH is a protocol that enables remote administrators to log securely into the G8052 over a network to execute management commands. SCP is typically used to copy files securely from one machine to another. SCP uses SSH for encryption of data on the network. On a G8052, SCP is used to download and upload the switch configuration via secure channels. Although SSH and SCP are disabled by default, enabling and using these features provides the following benefits: Identifying the administrator using Name/Password Authentication of remote administrators Authorization of remote administrators Determining the permitted actions and customizing service for individual administrators Encryption of management messages Encrypting messages between the remote administrator and switch Secure copy support Lenovo Network Operating System implements the SSH version 2.0 standard and is confirmed to work with SSH version 2.0-compliant clients such as the following: OpenSSH_5.4p1 for Linux Secure CRT Version 5.0.2 (build 1021) Putty SSH release 0.60 Configuring SSH/SCP Features on the Switch SSH and SCP features are disabled by default. To change the SSH/SCP settings, using the following procedures. Note: To use SCP, you must first enable SSH. To Enable or Disable the SSH Feature Begin a Telnet session from the console port and enter the following command: RS G8052(config)# [no] ssh enable To Enable or Disable SCP Apply and Save Enter the following command from the switch CLI to enable the SCP putcfg_apply and putcfg_apply_save commands: RS G8052(config)# [no] ssh scpenable 84 G8052 Application Guide for N/OS 8.3 Configuring the SCP Administrator Password To configure the SCP-only administrator password, enter the following command (the default password is admin): RS G8052(config)# [no] ssh scppassword Changing SCPonly Administrator password; validation required... Enter current administrator password: Enter new SCPonly administrator password: Reenter new SCPonly administrator password: New SCPonly administrator password accepted. Using SSH and SCP Client Commands This section shows the format for using some client commands. The following examples use 205.178.15.157 as the IP address of a sample switch. To Log In to the Switch Syntax: >> ssh [4|6] -or>> ssh [4|6] @ Note: The 4 option (the default) specifies that an IPv4 switch address will be used. The 6 option specifies IPv6. Example: >> ssh scpadmin@205.178.15.157 To Copy the Switch Configuration File to the SCP Host Syntax: >> scp [4|6] @ :getcfg Example: >> scp scpadmin@205.178.15.157:getcfg ad4.cfg To Load a Switch Configuration File from the SCP Host Syntax: >> scp [4|6] @ :putcfg Example: >> scp ad4.cfg scpadmin@205.178.15.157:putcfg © Copyright Lenovo 2015 Chapter 4: Securing Administration 85 To Apply and Save the Configuration When loading a configuration file to the switch, the apply and save commands are still required for the configuration commands to take effect. The apply and save commands may be entered manually on the switch, or by using SCP commands. Syntax: >> scp [4|6] @ :putcfg_apply >> scp [4|6] @ :putcfg_apply_save Example: >> scp ad4.cfg scpadmin@205.178.15.157:putcfg_apply >> scp ad4.cfg scpadmin@205.178.15.157:putcfg_apply_save The CLI diff command is automatically executed at the end of putcfg to notify the remote client of the difference between the new and the current configurations. putcfg_apply runs the apply command after the putcfg is done. putcfg_apply_save saves the new configuration to the flash after putcfg_apply is done. The putcfg_apply and putcfg_apply_save commands are provided because extra apply and save commands are usually required after a putcfg; however, an SCP session is not in an interactive mode. To Copy the Switch Image and Boot Files to the SCP Host Syntax: >> scp [4|6] @ :getimg1 >> scp [4|6] @ :getimg2 >> scp [4|6] @ :getboot Example: >> scp scpadmin@205.178.15.157:getimg1 6.1.0_os.img To Load Switch Configuration Files from the SCP Host Syntax: >> scp [4|6] @ :putimg1 >> scp [4|6] @ :putimg2 >> scp [4|6] @ :putboot Example: >> scp 6.1.0_os.img scpadmin@205.178.15.157:putimg1 86 G8052 Application Guide for N/OS 8.3 SSH and SCP Encryption of Management Messages The following encryption and authentication methods are supported for SSH and SCP: Server Host Authentication: Client RSA authenticates the switch at the beginning of every connection Key Exchange: RSA Encryption: 3DES-CBC, DES User Authentication: Local password authentication, RADIUS Generating RSA Host Key for SSH Access To support the SSH host feature, an RSA host key is required. The host key is 2048 bits and is used to identify the G8052. To configure RSA host key, first connect to the G8052 through the console port (commands are not available via external Telnet connection), and enter the following command to generate it manually. RS G8052(config)# ssh generatehostkey When the switch reboots, it will retrieve the host key from the FLASH memory. Note: The switch will perform only one session of key/cipher generation at a time. Thus, an SSH/SCP client will not be able to log in if the switch is performing key generation at that time. Also, key generation will fail if an SSH/SCP client is logging in at that time. SSH/SCP Integration with Radius Authentication SSH/SCP is integrated with RADIUS authentication. After the RADIUS server is enabled on the switch, all subsequent SSH authentication requests will be redirected to the specified RADIUS servers for authentication. The redirection is transparent to the SSH clients. SSH/SCP Integration with TACACS+ Authentication SSH/SCP is integrated with TACACS+ authentication. After the TACACS+ server is enabled on the switch, all subsequent SSH authentication requests will be redirected to the specified TACACS+ servers for authentication. The redirection is transparent to the SSH clients. © Copyright Lenovo 2015 Chapter 4: Securing Administration 87 End User Access Control Networking OS allows an administrator to define end user accounts that permit end users to perform operation tasks via the switch CLI commands. Once end user accounts are configured and enabled, the switch requires username/password authentication. For example, an administrator can assign a user, who can then log into the switch and perform operational commands (effective only until the next switch reboot). Considerations for Configuring End User Accounts Note the following considerations when you configure end user accounts: A maximum of 20 user IDs are supported on the switch. N/OS supports end user support for console, Telnet, BBI, and SSHv2 access to the switch. If RADIUS authentication is used, the user password on the Radius server will override the user password on the G8052. Also note that the password change command only modifies only the user password on the switch and has no effect on the user password on the Radius server. Radius authentication and user password cannot be used concurrently to access the switch. Passwords for end users can be up to 128 characters in length for TACACS, RADIUS, Telnet, SSH, Console, and Web access. Strong Passwords The administrator can require use of Strong Passwords for users to access the G8052. Strong Passwords enhance security because they make password guessing more difficult. The following rules apply when Strong Passwords are enabled: Minimum length: 8 characters; maximum length: 64 characters Must contain at least one uppercase alphabet Must contain at least one lowercase alphabet Must contain at least one number Must contain at least one special character: Supported special characters: ! “ # % & ‘ ( ) ; < = >> ? [\] * + , - . / : ^ _ { | } ~ Cannot be same as the username No consecutive four characters can be the same as in the old password When strong password is enabled, users can still access the switch using the old password but will be advised to change to a strong password at log-in. Strong password requirement can be enabled using the following command: RS G8052(config)# access user strongpassword enable 88 G8052 Application Guide for N/OS 8.3 The administrator can choose the number of days allowed before each password expires. When a strong password expires, the user is allowed to log in one last time (last time) to change the password. A warning provides advance notice for users to change the password. User Access Control The end-user access control commands allow you to configure end-user accounts. Setting up User IDs Up to 20 user IDs can be configured. Use the following commands to define any user name and set the user password at the resulting prompts: RS G8052(config)# access user 1 name <1-64 characters> RS G8052(config)# access user 1 password Changing user1 password; validation required: Enter current admin password: Enter new user1 password: Reenter new user1 password: New user1 password accepted. Defining a User’s Access Level The end user is by default assigned to the user access level (also known as class of service, or COS). COS for all user accounts have global access to all resources except for User COS, which has access to view only resources that the user owns. For more information, see Table 8 on page 97. To change the user’s level, select one of the following options: RS G8052(config)# access user 1 level {user|operator|administrator} Validating a User’s Configuration RS G8052# show access user uid 1 Enabling or Disabling a User An end user account must be enabled before the switch recognizes and permits login under the account. Once enabled, the switch requires any user to enter both username and password. RS G8052(config)# [no] access user 1 enable Locking Accounts To protect the switch from unauthorized access, the account lockout feature can be enabled. By default, account lockout is disabled. To enable this feature, ensure the strong password feature is enabled (See “Strong Passwords” on page 88). Then use the following command: RS G8052(config)# access user strongpassword lockout © Copyright Lenovo 2015 Chapter 4: Securing Administration 89 After multiple failed login attempts, the switch locks the user account if lockout has been enabled on the switch. Re-enabling Locked Accounts The administrator can re-enable a locked account by reloading the switch or by using the following command: RS G8052(config)# access user strongpassword clear local user lockout username However, the above command cannot be used to re-enable an account disabled by the administrator. To re-enable all locked accounts, use the following command: RS G8052(config)# access user strongpassword clear local user lockout all Listing Current Users The following command displays defined user accounts and whether or not each user is currently logged into the switch. RS G8052# show access user Usernames: user Enabled offline oper Disabled offline admin Always Enabled online 1 session Current User ID table: 1: name jane , ena, cos user 2: name john , ena, cos user , password valid, online 1 session , password valid, online 2 sessions Logging into an End User Account Once an end user account is configured and enabled, the user can login to the switch using the username/password combination. The level of switch access is determined by the COS established for the end user account. Password Fix-Up Mode Password Fix-Up Mode enables admin user account recovery if administrator access is lost. A user must connect to the switch over the serial console and log in using the “ForgetMe!” password. This enables the admin account if disabled and a new administrator password can be entered. To disable the Password Fix-Up functionality, use the following command: RS G8052(config)# no access user passwordrecovery 90 G8052 Application Guide for N/OS 8.3 Chapter 5. Authentication & Authorization Protocols Secure switch management is needed for environments that perform significant management functions across the Internet. The following are some of the functions for secured IPv4 management and device access: “RADIUS Authentication and Authorization” on page 92 “TACACS+ Authentication” on page 96 “LDAP Authentication and Authorization” on page 100 Note: Lenovo Network Operating System 8.3 does not support IPv6 for RADIUS, TACACS+ or LDAP. © Copyright Lenovo 2015 91 RADIUS Authentication and Authorization Networking OS supports the RADIUS (Remote Authentication Dial-in User Service) method to authenticate and authorize remote administrators for managing the switch. This method is based on a client/server model. The Remote Access Server (RAS)—the switch—is a client to the back-end database server. A remote user (the remote administrator) interacts only with the RAS, not the back-end server and database. RADIUS authentication consists of the following components: A protocol with a frame format that utilizes UDP over IP (based on RFC 2138 and 2866) A centralized server that stores all the user authorization information A client: in this case, the switch The G8052—acting as the RADIUS client—communicates to the RADIUS server to authenticate and authorize a remote administrator using the protocol definitions specified in RFC 2138 and 2866. Transactions between the client and the RADIUS server are authenticated using a shared key that is not sent over the network. In addition, the remote administrator passwords are sent encrypted between the RADIUS client (the switch) and the back-end RADIUS server. How RADIUS Authentication Works The RADIUS authentication process follows these steps: 1. A remote administrator connects to the switch and provides a user name and password. 2. Using Authentication/Authorization protocol, the switch sends request to authentication server. 3. The authentication server checks the request against the user ID database. 4. Using RADIUS protocol, the authentication server instructs the switch to grant or deny administrative access. Configuring RADIUS on the Switch Use the following procedure to configure Radius authentication on your switch. 1. Configure the IPv4 addresses of the Primary and Secondary RADIUS servers, and enable RADIUS authentication. RS G8052(config)# radiusserver primaryhost 10.10.1.1 RS G8052(config)# radiusserver secondaryhost 10.10.1.2 RS G8052(config)# radiusserver enable Note: You can use a configured loopback address as the source address so the RADIUS server accepts requests only from the expected loopback address block. Use the following command to specify the loopback interface: RS G8052(config)# ip radius sourceinterface loopback <1-5> 92 G8052 Application Guide for N/OS 8.3 2. Configure the RADIUS secret. RS G8052(config)# radiusserver primaryhost 10.10.1.1 key <1-32 character secret> RS G8052(config)# radiusserver secondaryhost 10.10.1.2 key <1-32 character secret> 3. If desired, you may change the default UDP port number used to listen to RADIUS. The well-known port for RADIUS is 1812. RS G8052(config)# radiusserver port 4. Configure the number retry attempts for contacting the RADIUS server, and the timeout period. RS G8052(config)# radiusserver retransmit 3 RS G8052(config)# radiusserver timeout 5 © Copyright Lenovo 2015 Chapter 5: Authentication & Authorization Protocols 93 RADIUS Authentication Features in Networking OS N/OS supports the following RADIUS authentication features: Supports RADIUS client on the switch, based on the protocol definitions in RFC 2138 and RFC 2866. Allows RADIUS secret password up to 32 bytes and less than 16 octets. Supports secondary authentication server so that when the primary authentication server is unreachable, the switch can send client authentication requests to the secondary authentication server. Use the following command to show the currently active RADIUS authentication server: RS G8052# show radiusserver Supports user-configurable RADIUS server retry and time-out values: Time-out value = 1-10 seconds Retries = 1-3 The switch will time out if it does not receive a response from the RADIUS server in 1-3 retries. The switch will also automatically retry connecting to the RADIUS server before it declares the server down. Supports user-configurable RADIUS application port. The default is UDP port 1645. UDP port 1812, based on RFC 2138, is also supported. Allows network administrator to define privileges for one or more specific users to access the switch at the RADIUS user database. Switch User Accounts The user accounts listed in Table 6 can be defined in the RADIUS server dictionary file. Table 6. User Access Levels 94 User Account Description and Tasks Performed Password User The User has no direct responsibility for switch management. They can view all switch status information and statistics but cannot make any configuration changes to the switch. user Operator The Operator manages all functions of the switch. The Operator can reset ports. oper Administrator The super-user Administrator has complete access admin to all commands, information, and configuration commands on the switch, including the ability to change both the user and administrator passwords. G8052 Application Guide for N/OS 8.3 RADIUS Attributes for Networking OS User Privileges When the user logs in, the switch authenticates his/her level of access by sending the RADIUS access request, that is, the client authentication request, to the RADIUS authentication server. If the remote user is successfully authenticated by the authentication server, the switch will verify the privileges of the remote user and authorize the appropriate access. The administrator has two options: to allow backdoor access via Telnet, SSH, HTTP, or HTTPS; to allow secure backdoor access via Telnet, SSH, or BBI. Backdoor and secure backdoor provides access to the switch when the RADIUS servers cannot be reached. The default G8052 setting for backdoor and secure backdoor access is disabled. Backdoor and secure backdoor access is always enabled on the console port. Irrespective of backdoor/secure backdoor being enabled or not, you can always access the switch via the console port by using noradius as radius username. You can then enter the username and password configured on the switch. If you are trying to connect via SSH/Telnet/HTTP/HTTPS (not console port), there are two possibilities: Backdoor is enabled: The switch acts like it is connecting via console. Secure backdoor is enabled: You must enter the username: noradius. The switch checks if RADIUS server is reachable. If it is reachable, then you must authenticate via remote authentication server. Only if RADIUS server is not reachable, you will be prompted for local user/password to be authenticated against these local credentials. All user privileges, other than those assigned to the Administrator, have to be defined in the RADIUS dictionary. RADIUS attribute 6 which is built into all RADIUS servers defines the administrator. The file name of the dictionary is RADIUS vendor-dependent. The following RADIUS attributes are defined for G8052 user privileges levels: Table 7. Networking OS-proprietary Attributes for RADIUS © Copyright Lenovo 2015 User Name/Access User-Service-Type Value User Vendor-supplied 255 Operator Vendor-supplied 252 Admin Vendor-supplied 6 Chapter 5: Authentication & Authorization Protocols 95 TACACS+ Authentication N/OS supports authentication and authorization with networks using the Cisco Systems TACACS+ protocol. The G8052 functions as the Network Access Server (NAS) by interacting with the remote client and initiating authentication and authorization sessions with the TACACS+ access server. The remote user is defined as someone requiring management access to the G8052 through a data port. TACACS+ offers the following advantages over RADIUS: TACACS+ uses TCP-based connection-oriented transport; whereas RADIUS is UDP-based. TCP offers a connection-oriented transport, while UDP offers best-effort delivery. RADIUS requires additional programmable variables such as re-transmit attempts and time-outs to compensate for best-effort transport, but it lacks the level of built-in support that a TCP transport offers. TACACS+ offers full packet encryption whereas RADIUS offers password-only encryption in authentication requests. TACACS+ separates authentication, authorization and accounting. How TACACS+ Authentication Works TACACS+ works much in the same way as RADIUS authentication as described on page 92. 1. Remote administrator connects to the switch and provides user name and password. 2. Using Authentication/Authorization protocol, the switch sends request to authentication server. 3. Authentication server checks the request against the user ID database. 4. Using TACACS+ protocol, the authentication server instructs the switch to grant or deny administrative access. During a session, if additional authorization checking is needed, the switch checks with a TACACS+ server to determine if the user is granted permission to use a particular command. 96 G8052 Application Guide for N/OS 8.3 TACACS+ Authentication Features in Networking OS Authentication is the action of determining the identity of a user, and is generally done when the user first attempts to log in to a device or gain access to its services. N/OS supports ASCII inbound login to the device. PAP, CHAP and ARAP login methods, TACACS+ change password requests, and one-time password authentication are not supported. Authorization Authorization is the action of determining a user’s privileges on the device, and usually takes place after authentication. The default mapping between TACACS+ authorization levels and N/OS management access levels is shown in Table 8. The authorization levels must be defined on the TACACS+ server. Table 8. Default TACACS+ Authorization Levels N/OS User Access Level TACACS+ level user 0 oper 3 admin 6 Alternate mapping between TACACS+ authorization levels and N/OS management access levels is shown in Table 9. Use the following command to set the alternate TACACS+ authorization levels. RS G8052(config)# tacacsserver privilegemapping Table 9. Alternate TACACS+ Authorization Levels N/OS User Access Level TACACS+ level user 0-1 oper 6-8 admin 14 - 15 If the remote user is successfully authenticated by the authentication server, the switch verifies the privileges of the remote user and authorizes the appropriate access. The administrator has an option to allow secure backdoor access via Telnet/SSH. Secure backdoor provides switch access when the TACACS+ servers cannot be reached. You always can access the switch via the console port, by using notacacs and the administrator password, whether secure backdoor is enabled or not. Note: To obtain the TACACS+ backdoor password for your G8052, contact Technical Support. © Copyright Lenovo 2015 Chapter 5: Authentication & Authorization Protocols 97 Accounting Accounting is the action of recording a user's activities on the device for the purposes of billing and/or security. It follows the authentication and authorization actions. If the authentication and authorization is not performed via TACACS+, there are no TACACS+ accounting messages sent out. You can use TACACS+ to record and track software login access, configuration changes, and interactive commands. The G8052 supports the following TACACS+ accounting attributes: protocol (console/Telnet/SSH/HTTP/HTTPS) start_time stop_time elapsed_time disc_cause Note: When using the Browser-Based Interface, the TACACS+ Accounting Stop records are sent only if the Logout button on the browser is clicked. Command Authorization and Logging When TACACS+ Command Authorization is enabled, N/OS configuration commands are sent to the TACACS+ server for authorization. Use the following command to enable TACACS+ Command Authorization: RS G8052(config)# tacacsserver commandauthorization When TACACS+ Command Logging is enabled, N/OS configuration commands are logged on the TACACS+ server. Use the following command to enable TACACS+ Command Logging: RS G8052(config)# tacacsserver commandlogging The following examples illustrate the format of N/OS commands sent to the TACACS+ server: authorization request, cmd=shell, cmdarg=interface ip accounting request, cmd=shell, cmdarg=interface ip authorization request, cmd=shell, cmdarg=enable accounting request, cmd=shell, cmdarg=enable 98 G8052 Application Guide for N/OS 8.3 Configuring TACACS+ Authentication on the Switch 1. Configure the IPv4 addresses of the Primary and Secondary TACACS+ servers, and enable TACACS authentication. RS G8052(config)# tacacsserver primaryhost 10.10.1.1 RS G8052(config)# tacacsserver secondaryhost 10.10.1.2 RS G8052(config)# tacacsserver enable Note: You can use a configured loopback address as the source address so the TACACS+ server accepts requests only from the expected loopback address block. Use the following command to specify the loopback interface: RS G8052(config)# ip tacacs sourceinterface loopback <1-5> 2. Configure the TACACS+ secret and second secret. RS G8052(config)# tacacsserver primaryhost 10.10.1.1 key <1-32 character secret> RS G8052(config)# tacacsserver secondaryhost 10.10.1.2 key <1-32 character secret> 3. If desired, you may change the default TCP port number used to listen to TACACS+. The well-known port for TACACS+ is 49. RS G8052(config)# tacacsserver port 4. Configure the number of retry attempts, and the timeout period. RS G8052(config)# tacacsserver retransmit 3 RS G8052(config)# tacacsserver timeout 5 © Copyright Lenovo 2015 Chapter 5: Authentication & Authorization Protocols 99 LDAP Authentication and Authorization N/OS supports the LDAP (Lightweight Directory Access Protocol) method to authenticate and authorize remote administrators to manage the switch. LDAP is based on a client/server model. The switch acts as a client to the LDAP server. A remote user (the remote administrator) interacts only with the switch, not the back-end server and database. LDAP authentication consists of the following components: A protocol with a frame format that utilizes TCP over IP A centralized server that stores all the user authorization information A client: in this case, the switch Each entry in the LDAP server is referenced by its Distinguished Name (DN). The DN consists of the user-account name concatenated with the LDAP domain name. If the user-account name is John, the following is an example DN: uid=John,ou=people,dc=domain,dc=com Configuring the LDAP Server G8052 user groups and user accounts must reside within the same domain. On the LDAP server, configure the domain to include G8052 user groups and user accounts, as follows: User Accounts: Use the uid attribute to define each individual user account. If a custom attribute is used to define individual users, it must also be configured on the switch. User Groups: Use the members attribute in the groupOfNames object class to create the user groups. The first word of the common name for each user group must be equal to the user group names defined in the G8052, as follows: admin oper user Configuring LDAP Authentication on the Switch 1. Turn LDAP authentication on, then configure the IPv4 addresses of the Primary and Secondary LDAP servers. RS G8052(config)# ldapserver enable RS G8052(config)# ldapserver primaryhost 10.10.1.1 RS G8052(config)# ldapserver secondaryhost 10.10.1.2 2. Configure the domain name. RS G8052(config)# ldapserver domain 3. You may change the default TCP port number used to listen to LDAP (optional). 100 G8052 Application Guide for N/OS 8.3 The well-known port for LDAP is 389. RS G8052(config)# ldapserver port <1-65000> 4. Configure the number of retry attempts for contacting the LDAP server, and the timeout period. RS G8052(config)# ldapserver retransmit 3 RS G8052(config)# ldapserver timeout 10 5. You may change the default LDAP attribute (uid) or add a custom attribute. For instance, Microsoft’s Active Directory requires the cn attribute. RS G8052(config)# ldapserver attribute username <128 alpha-numeric characters> © Copyright Lenovo 2015 Chapter 5: Authentication & Authorization Protocols 101 102 G8052 Application Guide for N/OS 8.3 Chapter 6. 802.1X Port-Based Network Access Control Port-Based Network Access control provides a means of authenticating and authorizing devices attached to a LAN port that has point-to-point connection characteristics. It prevents access to ports that fail authentication and authorization. This feature provides security to ports of the RackSwitch G8052 (G8052) that connect to blade servers. The following topics are discussed in this section: © Copyright Lenovo 2015 “Extensible Authentication Protocol over LAN” on page 104 “EAPoL Authentication Process” on page 105 “EAPoL Port States” on page 107 “Guest VLAN” on page 107 “Supported RADIUS Attributes” on page 108 “EAPoL Configuration Guidelines” on page 110 103 Extensible Authentication Protocol over LAN Lenovo Network Operating System can provide user-level security for its ports using the IEEE 802.1X protocol, which is a more secure alternative to other methods of port-based network access control. Any device attached to an 802.1X-enabled port that fails authentication is prevented access to the network and denied services offered through that port. The 802.1X standard describes port-based network access control using Extensible Authentication Protocol over LAN (EAPoL). EAPoL provides a means of authenticating and authorizing devices attached to a LAN port that has point-to-point connection characteristics and of preventing access to that port in cases of authentication and authorization failures. EAPoL is a client-server protocol that has the following components: Supplicant or Client The Supplicant is a device that requests network access and provides the required credentials (user name and password) to the Authenticator and the Authenticator Server. Authenticator The Authenticator enforces authentication and controls access to the network. The Authenticator grants network access based on the information provided by the Supplicant and the response from the Authentication Server. The Authenticator acts as an intermediary between the Supplicant and the Authentication Server: requesting identity information from the client, forwarding that information to the Authentication Server for validation, relaying the server’s responses to the client, and authorizing network access based on the results of the authentication exchange. The G8052 acts as an Authenticator. Authentication Server The Authentication Server validates the credentials provided by the Supplicant to determine if the Authenticator ought to grant access to the network. The Authentication Server may be co-located with the Authenticator. The G8052 relies on external RADIUS servers for authentication. Upon a successful authentication of the client by the server, the 802.1X-controlled port transitions from unauthorized to authorized state, and the client is allowed full access to services through the port. When the client sends an EAP-Logoff message to the authenticator, the port will transition from authorized to unauthorized state. 104 G8052 Application Guide for N/OS 8.3 EAPoL Authentication Process The clients and authenticators communicate using Extensible Authentication Protocol (EAP), which was originally designed to run over PPP, and for which the IEEE 802.1X Standard has defined an encapsulation method over Ethernet frames, called EAP over LAN (EAPOL). Figure 1 shows a typical message exchange initiated by the client. Figure 1. Authenticating a Port Using EAPoL RADIUS Server 802.1x Client EAPOL Ethernet Lenovo Switch Authenticator (RADIUS Client) RADIUS-EAP UDP/IP Port Unauthorized EAPOL-Start EAP-Request (Credentials) EAP-Response (Credentials) Radius-Access-Request Radius-Access-Challenge EAP-Request (Credentials) EAP-Response (Credentials) Radius-Access-Request Radius-Access-Accept EAP-Success Port Authorized © Copyright Lenovo 2015 Chapter 6: 802.1X Port-Based Network Access Control 105 EAPoL Message Exchange During authentication, EAPOL messages are exchanged between the client and the G8052 authenticator, while RADIUS-EAP messages are exchanged between the G8052 authenticator and the RADIUS server. Authentication is initiated by one of the following methods: The G8052 authenticator sends an EAP-Request/Identity packet to the client The client sends an EAPOL-Start frame to the G8052 authenticator, which responds with an EAP-Request/Identity frame. The client confirms its identity by sending an EAP-Response/Identity frame to the G8052 authenticator, which forwards the frame encapsulated in a RADIUS packet to the server. The RADIUS authentication server chooses an EAP-supported authentication algorithm to verify the client’s identity, and sends an EAP-Request packet to the client via the G8052 authenticator. The client then replies to the RADIUS server with an EAP-Response containing its credentials. Upon a successful authentication of the client by the server, the 802.1X-controlled port transitions from unauthorized to authorized state, and the client is allowed full access to services through the controlled port. When the client later sends an EAPOL-Logoff message to the G8052 authenticator, the port transitions from authorized to unauthorized state. If a client that does not support 802.1X connects to an 802.1X-controlled port, the G8052 authenticator requests the client's identity when it detects a change in the operational state of the port. The client does not respond to the request, and the port remains in the unauthorized state. Note: When an 802.1X-enabled client connects to a port that is not 802.1X-controlled, the client initiates the authentication process by sending an EAPOL-Start frame. When no response is received, the client retransmits the request for a fixed number of times. If no response is received, the client assumes the port is in authorized state, and begins sending frames, even if the port is unauthorized. 106 G8052 Application Guide for N/OS 8.3 EAPoL Port States The state of the port determines whether the client is granted access to the network, as follows: Unauthorized While in this state the port discards all ingress and egress traffic except EAP packets. Authorized When the client is successfully authenticated, the port transitions to the authorized state allowing all traffic to and from the client to flow normally. Force Unauthorized You can configure this state that denies all access to the port. Force Authorized You can configure this state that allows full access to the port. Use the 802.1X global configuration commands (dot1x) to configure 802.1X authentication for all ports in the switch. Use the 802.1X port commands to configure a single port. Guest VLAN The guest VLAN provides limited access to unauthenticated ports. The guest VLAN can be configured using the following commands: RS G8052(config)# dot1x guestvlan ? Client ports that have not received an EAPOL response are placed into the Guest VLAN, if one is configured on the switch. Once the port is authenticated, it is moved from the Guest VLAN to its configured VLAN. When Guest VLAN enabled, the following considerations apply while a port is in the unauthenticated state: © Copyright Lenovo 2015 The port is placed in the guest VLAN. The Port VLAN ID (PVID) is changed to the Guest VLAN ID. Port tagging is disabled on the port. Chapter 6: 802.1X Port-Based Network Access Control 107 Supported RADIUS Attributes The 802.1X Authenticator relies on external RADIUS servers for authentication with EAP. Table 10 lists the RADIUS attributes that are supported as part of RADIUS-EAP authentication based on the guidelines specified in Annex D of the 802.1X standard and RFC 3580. Table 10. Support for RADIUS Attributes 108 # Attribute Attribute Value A-R A-A A-C A-R 1 User-Name The value of the Type-Data field from the supplicant’s EAP-Response/ Identity message. If the Identity is unknown (for example, Type-Data field is zero bytes in length), this attribute will have the same value as the Calling-Station-Id. 1 0-1 0 0 4 NAS-IP-Address IPv4 address of the authenticator used for Radius communication. 1 0 0 0 5 NAS-Port Port number of the authenticator port to which the supplicant is attached. 1 0 0 0 24 State Server-specific value. This is sent unmodified back to the server in an Access-Request that is in response to an Access-Challenge. 0-1 0-1 0-1 0 30 Called-Station-I D The MAC address of the authenticator encoded as an ASCII string in canonical format, such as 000D5622E3 9F. 1 0 0 0 31 Calling-Station-I D The MAC address of the supplicant encoded as an ASCII string in canonical format, such as 00034B436206. 1 0 0 0 64 Tunnel-Type Only VLAN (type 13) is currently supported (for 802.1X RADIUS VLAN assignment). The attribute must be untagged (the Tag field must be 0). 0 0-1 0 0 65 Tunnel-Medium- Only 802 (type 6) is currently Type supported (for 802.1X RADIUS VLAN assignment). The attribute must be untagged (the Tag field must be 0). 0 0-1 0 0 G8052 Application Guide for N/OS 8.3 Table 10. Support for RADIUS Attributes (continued) # Attribute Attribute Value A-R A-A A-C A-R 81 Tunnel-PrivateGroup-ID VLAN ID (1-4094). When 802.1X RADIUS VLAN assignment is enabled on a port, if the RADIUS server includes the tunnel attributes defined in RFC 2868 in the Access-Accept packet, the switch will automatically place the authenticated port in the specified VLAN. Reserved VLANs (such as for management) may not be specified. The attribute must be untagged (the Tag field must be 0). 0 0-1 0 0 79 EAP-Message Encapsulated EAP packets from the supplicant to the authentication server (Radius) and vice-versa. The authenticator relays the decoded packet to both devices. 1+ 1+ 1+ 1+ 80 MessageAuthenticator Always present whenever an EAP-Message attribute is also included. Used to integrity-protect a packet. 1 1 1 1 87 NAS-Port-ID Name assigned to the authenticator port, e.g. Server1_Port3 1 0 0 0 Legend: RADIUS Packet Types: A-R (Access-Request), A-A (Access-Accept), A-C (Access-Challenge), A-R (Access-Reject) RADIUS Attribute Support: © Copyright Lenovo 2015 0 0+ 0-1 1 1+ This attribute MUST NOT be present in a packet. Zero or more instances of this attribute MAY be present in a packet. Zero or one instance of this attribute MAY be present in a packet. Exactly one instance of this attribute MUST be present in a packet. One or more of these attributes MUST be present. Chapter 6: 802.1X Port-Based Network Access Control 109 EAPoL Configuration Guidelines When configuring EAPoL, consider the following guidelines: 110 The 802.1X port-based authentication is currently supported only in point-to-point configurations, that is, with a single supplicant connected to an 802.1X-enabled switch port. When 802.1X is enabled, a port has to be in the authorized state before any other Layer 2 feature can be operationally enabled. For example, the STG state of a port is operationally disabled while the port is in the unauthorized state. The 802.1X supplicant capability is not supported. Therefore, none of its ports can successfully connect to an 802.1X-enabled port of another device, such as another switch, that acts as an authenticator, unless access control on the remote port is disabled or is configured in forced-authorized mode. For example, if a G8052 is connected to another G8052, and if 802.1X is enabled on both switches, the two connected ports must be configured in force-authorized mode. Unsupported 802.1X attributes include Service-Type, Session-Timeout, and Termination-Action. RADIUS accounting service for 802.1X-authenticated devices or users is not currently supported. Configuration changes performed using SNMP and the standard 802.1X MIB will take effect immediately. G8052 Application Guide for N/OS 8.3 Chapter 7. Access Control Lists Access Control Lists (ACLs) are filters that permit or deny traffic for security purposes. They can also be used with QoS to classify and segment traffic to provide different levels of service to different traffic types. Each filter defines the conditions that must match for inclusion in the filter, and also the actions that are performed when a match is made. Lenovo Network Operating System 8.3 supports the following ACLs: IPv4 ACLs Up to 640 ACLs are supported for networks that use IPv4 addressing. IPv4 ACLs are configured using the following ISCLI command path: RS G8052(config)# accesscontrol list ? IPv6 ACLs Up to 128 ACLs are supported for networks that use IPv6 addressing. IPv6 ACLs are configured using the following ISCLI command path: RS G8052(config)# accesscontrol list6 ? Note: ACLs are not supported with IPv6 in Stacking mode. VLAN Maps (VMaps) Up to 128 VLAN Maps are supported for attaching filters to VLANs rather than ports. See “VLAN Maps” on page 123 for details. Management ACLs (MACLs) Up to 128 MACLs are supported for filtering traffic toward CPU. MACLs are configured using the following ISCLI command path: RS G8052(config)# accesscontrol macl ? © Copyright Lenovo 2015 111 Summary of Packet Classifiers ACLs allow you to classify packets according to a variety of content in the packet header (such as the source address, destination address, source port number, destination port number, and others). Once classified, packet flows can be identified for more processing. IPv4 ACLs, IPv6 ACLs, and VMaps allow you to classify packets based on the following packet attributes: Ethernet header options (for IPv4 ACLs and VMaps only) Source MAC address Destination MAC address VLAN number and mask Ethernet type (ARP, IP, IPv6, MPLS, RARP, etc.) Ethernet Priority (the IEEE 802.1p Priority) IPv4 header options (for IPv4 ACLs and VMaps only) Source IPv4 address and subnet mask Destination IPv4 address and subnet mask Type of Service value IP protocol number or name as shown in Table 11: Table 11. Well-Known Protocol Types 112 Number Protocol Name 1 2 6 17 89 112 icmp igmp tcp udp ospf vrrp IPv6 header options (for IPv6 ACLs only) Source IPv6 address and prefix length Destination IPv6 address and prefix length Next Header value Flow Label value Traffic Class value G8052 Application Guide for N/OS 8.3 TCP/UDP header options (for all ACLs) TCP/UDP application source port and mask as shown in Table 12 TCP/UDP application destination port as shown in Table 12 Table 12. Well-Known Application Ports TCP/UDP Port Application 20 21 22 23 25 37 42 43 53 69 70 ftp-data ftp ssh telnet smtp time name whois domain tftp gopher TCP/UDP Port Application 79 80 109 110 111 119 123 143 144 161 162 finger http pop2 pop3 sunrpc nntp ntp imap news snmp snmptrap TCP/UDP Port Application 179 194 220 389 443 520 554 1645/1812 1813 1985 bgp irc imap3 ldap https rip rtsp Radius Radius Accounting hsrp TCP/UDP flag value as shown in Table 13 Table 13. Well Known TCP Flag Values Flag Value URG ACK PSH RST SYN FIN 0x0020 0x0010 0x0008 0x0004 0x0002 0x0001 Packet format (for IPv4 ACLs and VMaps only) Ethernet format (eth2, SNAP, LLC) Ethernet tagging format IP format (IPv4, IPv6) Egress port packets (for all ACLs) Summary of ACL Actions Once classified using ACLs, the identified packet flows can be processed differently. For each ACL, an action can be assigned. The action determines how the switch treats packets that match the classifiers assigned to the ACL. G8052 ACL actions include the following: Pass or Drop the packet Re-mark the packet with a new DiffServ Code Point (DSCP) Re-mark the 802.1p field Set the COS queue © Copyright Lenovo 2015 Chapter 7: Access Control Lists 113 Assigning Individual ACLs to a Port Once you configure an ACL, you must assign the ACL to the appropriate ports. Each port can accept multiple ACLs, and each ACL can be applied for multiple ports. ACLs can be assigned individually, or in groups. To assign an individual ACLs to a port, use the following IP Interface Mode commands: RS G8052(config)# interface port RS G8052(configif)# accesscontrol list RS G8052(configif)# accesscontrol list6 When multiple ACLs are assigned to a port, higher-priority ACLs are considered first, and their action takes precedence over lower-priority ACLs. ACL order of precedence is discussed in the next section. To create and assign ACLs in groups, see “ACL Groups” on page 115. ACL Order of Precedence When multiple ACLs are assigned to a port, they are evaluated in numeric sequence, based on the ACL number. Lower-numbered ACLs take precedence over higher-numbered ACLs. For example, ACL 1 (if assigned to the port) is evaluated first and has top priority. If multiple ACLs match the port traffic, only the action of the one with the lowest ACL number is applied. The others are ignored. If no assigned ACL matches the port traffic, no ACL action is applied. 114 G8052 Application Guide for N/OS 8.3 ACL Groups To assist in organizing multiple ACLs and assigning them to ports, you can place ACLs into ACL Groups, thereby defining complex traffic profiles. ACLs and ACL Groups can then be assigned on a per-port basis. An ACL can only be assigned to one ACL group. Any ACL or ACL Group can be assigned to multiple ports. If a specific ACL is assigned to a port multiple times, only one instance is used. The redundant entries are ignored. Individual ACLs The G8052 supports up to 640 ACLs. Each ACL defines one filter rule for matching traffic criteria. Each filter rule can also include an action (permit or deny the packet). For example: ACL 1: VLAN = 1 SIP = 10.10.10.1 (255.255.255.0) Action = permit Access Control List Groups An Access Control List Group (ACL Group) is a collection of ACLs. For example: ACL Group 1 ACL 1: VLAN = 1 SIP = 10.10.10.1 (255.255.255.0) Action = permit ACL 2: VLAN = 2 SIP = 10.10.10.2 (255.255.255.0) Action = deny ACL 3: Priority = 7 DIP = 10.10.10.3 (255.255.255.0) Action = permit ACL Groups organize ACLs into traffic profiles that can be more easily assigned to ports. The G8052 supports up to 640 ACL Groups. Note: ACL Groups are used for convenience in assigning multiple ACLs to ports. ACL Groups have no effect on the order in which ACLs are applied (see “ACL Order of Precedence” on page 114). All ACLs assigned to the port (whether individually assigned or part of an ACL Group) are considered as individual ACLs for the purposes of determining their order of precedence. © Copyright Lenovo 2015 Chapter 7: Access Control Lists 115 Assigning ACL Groups to a Port To assign an ACL Group to a port, use the following command: RS G8052(configif)# accesscontrol group RS G8052(configif)# exit ACL Metering and Re-Marking You can define a profile for the aggregate traffic flowing through the G8052 by configuring a QoS meter (if desired) and assigning ACLs to ports. Note: When you add ACLs to a port, make sure they are ordered correctly in terms of precedence (see “ACL Order of Precedence” on page 114). Actions taken by an ACL are called In-Profile actions. You can configure additional In-Profile and Out-of-Profile actions on a port. Data traffic can be metered, and re-marked to ensure that the traffic flow provides certain levels of service in terms of bandwidth for different types of network traffic. Metering QoS metering provides different levels of service to data streams through user-configurable parameters. A meter is used to measure the traffic stream against a traffic profile which you create. Thus, creating meters yields In-Profile and Out-of-Profile traffic for each ACL, as follows: In-ProfileIf there is no meter configured or if the packet conforms to the meter, the packet is classified as In-Profile. Out-of-ProfileIf a meter is configured and the packet does not conform to the meter (exceeds the committed rate or maximum burst rate of the meter), the packet is classified as Out-of-Profile. Using meters, you set a Committed Rate in Kbps (1000 bits per second in each Kbps). All traffic within this Committed Rate is In-Profile. Additionally, you can set a Maximum Burst Size that specifies an allowed data burst larger than the Committed Rate for a brief period. These parameters define the In-Profile traffic. Meters keep the sorted packets within certain parameters. You can configure a meter on an ACL, and perform actions on metered traffic, such as packet re-marking. Re-Marking Re-marking allows for the treatment of packets to be reset based on new network specifications or desired levels of service. You can configure the ACL to re-mark a packet as follows: 116 Change the DSCP value of a packet, used to specify the service level that traffic receives. Change the 802.1p priority of a packet. G8052 Application Guide for N/OS 8.3 ACL Port Mirroring For IPv4 ACLs and VMaps, packets that match the filter can be mirrored to another switch port for network diagnosis and monitoring. The source port for the mirrored packets cannot be a portchannel, but may be a member of a portchannel. The destination port to which packets are mirrored must be a physical port. The action (permit, drop, etc.) of the ACL or VMap must be configured before assigning it to a port. Use the following commands to add mirroring to an ACL: For IPv4 ACLs: RS G8052(config)# accesscontrol list mirror port The ACL must be also assigned to it target ports as usual (see “Assigning Individual ACLs to a Port” on page 114). For VMaps (see “VLAN Maps” on page 123): RS G8052(config)# accesscontrol vmap mirror port See the configuration example on page 124. Viewing ACL Statistics ACL statistics display how many packets have “hit” (matched) each ACL. Use ACL statistics to check filter performance or to debug the ACL filter configuration. You must enable statistics for each ACL that you wish to monitor: RS G8052(config)# accesscontrol list statistics © Copyright Lenovo 2015 Chapter 7: Access Control Lists 117 ACL Logging ACLs are generally used to enhance port security. Traffic that matches the characteristics (source addresses, destination addresses, packet type, etc.) specified by the ACLs on specific ports is subject to the actions (chiefly permit or deny) defined by those ACLs. Although switch statistics show the number of times particular ACLs are matched, the ACL logging feature can provide additional insight into actual traffic patterns on the switch, providing packet details in the system log for network debugging or security purposes. Enabling ACL Logging By default, ACL logging is disabled. Enable or disable ACL logging on a per-ACL basis as follows: RS G8052(config)# [no] accesscontrol list log RS G8052(config)# [no] accesscontrol list6 log Logged Information When ACL logging is enabled on any particular ACL, the switch will collect information about packets that match the ACL. The information collected depends on the ACL type: For IP-based ACLs, information is collected regarding Source IP address Destination IP address TCP/UDP port number ACL action Number of packets logged For example: Sep 27 4:20:28 DUT3 NOTICE ACLLOG: %IP ACCESS LOG: list ACLIP12IN denied tcp 1.1.1.1 (0) > 200.0.1.2 (0), 150 packets. For MAC-based ACLs, information is collected regarding Source MAC address Source IP address Destination IP address TCP/UDP port number ACL action Number of packets logged For example: Sep 27 4:25:38 DUT3 NOTICE ACLLOG: %MAC ACCESS LOG: list ACLMAC12IN permitted tcp 1.1.1.2 (0) (12, 00:ff:d7:66:74:62) > 200.0.1.2 (0) (00:18:73:ee:a7:c6), 32 packets. 118 G8052 Application Guide for N/OS 8.3 Rate Limiting Behavior Because ACL logging can be CPU-intensive, logging is rate-limited. By default, the switch will log only 10 matching packets per second. This pool is shared by all log-enabled ACLs. The global rate limit can be changed as follows: RS G8052(config)# accesscontrol log ratelimit <1-1000> Where the limit is specified in packets per second. Log Interval For each log-enabled ACL, the first packet that matches the ACL initiates an immediate message in the system log. Beyond that, additional matches are subject to the log interval. By default, the switch will buffer ACL log messages for a period of 300 seconds. At the end of that interval, all messages in the buffer are written to the system log. The global interval value can be changed as follows: RS G8052(config)# accesscontrol log interval <5-600> Where the interval rate is specified in seconds. In any given interval, packets that have identical log information are condensed into a single message. However, the packet count shown in the ACL log message represents only the logged messages, which due to rate-limiting, may be significantly less than the number of packets actually matched by the ACL. Also, the switch is limited to 64 different ACL log messages in any interval. Once the threshold is reached, the oldest message will be discarded in favor of the new message, and an overflow message will be added to the system log. ACL Logging Limitations ACL logging reserves packet queue 1 for internal use. Features that allow remapping packet queues (such as CoPP) may not behave as expected if other packet flows are reconfigured to use queue 1. © Copyright Lenovo 2015 Chapter 7: Access Control Lists 119 ACL Configuration Examples ACL Example 1 Use this configuration to block traffic to a specific host. All traffic that ingresses on port 1 is denied if it is destined for the host at IP address 100.10.1.1 1. Configure an Access Control List. RS G8052(config)# accesscontrol list 1 ipv4 destinationipaddress 100.10.1.1 RS G8052(config)# accesscontrol list 1 action deny 2. Add ACL 1 to port 1. RS G8052(config)# interface port 1 RS G8052(configif)# accesscontrol list 1 RS G8052(configif)# exit ACL Example 2 Use this configuration to block traffic from a network destined for a specific host address. All traffic that ingresses in port 2 with source IP from class 100.10.1.0/24 and destination IP 200.20.2.2 is denied. 1. Configure an Access Control List. RS G8052(config)# accesscontrol list 2 ipv4 sourceipaddress 100.10.1.0 255.255.255.0 RS G8052(config)# accesscontrol list 2 ipv4 destinationipaddress 200.20.2.2 255.255.255.255 RS G8052(config)# accesscontrol list 2 action deny 2. Add ACL 2 to port 2. RS G8052(config)# interface port 2 RS G8052(configif)# accesscontrol list 2 RS G8052(configif)# exit 120 G8052 Application Guide for N/OS 8.3 ACL Example 3 Use this configuration to block traffic from a specific IPv6 source address. All traffic that ingresses in port 2 with source IP from class 2001:0:0:5:0:0:0:2/128 is denied. 1. Configure an Access Control List. RS G8052(config)# accesscontrol list6 3 ipv6 sourceaddress 2001:0:0:5:0:0:0:2 128 RS G8052(config)# accesscontrol list6 3 action deny 2. Add ACL 2 to port 2. RS G8052(config)# interface port 2 RS G8052(configif)# accesscontrol list6 3 RS G8052(configif)# exit ACL Example 4 Use this configuration to deny all ARP packets that ingress a port. 1. Configure an Access Control List. RS G8052(config)# accesscontrol list 2 ethernet ethernettype arp RS G8052(config)# accesscontrol list 2 action deny 2. Add ACL 2 to port EXT2. RS G8052(config)# interface port 2 RS G8052(configif)# accesscontrol list 2 RS G8052(configif)# exit ACL Example 5 Use the following configuration to permit access to hosts with destination MAC address that matches 11:05:00:10:00:00 FF:F5:FF:FF:FF:FF and deny access to all other hosts. 1. Configure Access Control Lists. RS G8052(config)# accesscontrol list 30 ethernet destinationmacaddress 11:05:00:10:00:00 FF:F5:FF:FF:FF:FF RS G8052(config)# accesscontrol list 30 action permit RS G8052(config)# accesscontrol list 100 ethernet destinationmacaddress 00:00:00:00:00:00 00:00:00:00:00:00 RS G8052(config)# accesscontrol list 100 action deny 2. Add ACLs to a port. RS RS RS RS © Copyright Lenovo 2015 G8052(config)# interface port 2 G8052(configif)# accesscontrol list 30 G8052(configif)# accesscontrol list 100 G8052(configif)# exit Chapter 7: Access Control Lists 121 ACL Example 6 This configuration blocks traffic from a network that is destined for a specific egress port. All traffic that ingresses port 1 from the network 100.10.1.0/24 and is destined for port 3 is denied. 1. Configure an Access Control List. RS G8052(config)# accesscontrol list 4 ipv4 sourceipaddress 100.10.1.0 255.255.255.0 RS G8052(config)# accesscontrol list 4 egressport 3 RS G8052(config)# accesscontrol list 4 action deny 2. Add ACL 4 to port 1. RS G8052(config)# interface port 1 RS G8052(configif)# accesscontrol list 4 RS G8052(configif)# exit 122 G8052 Application Guide for N/OS 8.3 VLAN Maps A VLAN map (VMap) is an ACL that can be assigned to a VLAN or VM group rather than to a switch port as with IPv4 ACLs. This is particularly useful in a virtualized environment where traffic filtering and metering policies must follow virtual machines (VMs) as they migrate between hypervisors. The G8052 supports up to 128 VMaps. Individual VMap filters are configured in the same fashion as IPv4 ACLs, except that VLANs cannot be specified as a filtering criteria (unnecessary, since the VMap are assigned to a specific VLAN or associated with a VM group VLAN). VMaps are configured using the following ISCLI configuration command path: RS G8052(config)# accesscontrol vmap ? action Set filter action egressport Set to filter for packets egressing this port ethernet Ethernet header options ipv4 IP version 4 header options meter ACL metering configuration mirror Mirror options packetformat Set to filter specific packet format types remark ACL remark configuration statistics Enable access control list statistics tcpudp TCP and UDP filtering options Once a VMap filter is created, it can be assigned or removed using the following configuration commands: For regular VLAN, use config-vlan mode: RS G8052(config)# vlan RS G8052(configvlan)# [no] vmap [serverports| nonserverports] For a VM group (see “VM Group Types” on page 276), use the global configuration mode: RS G8052(config)# [no] virt vmgroup vmap [serverports|nonserverports] Note: Each VMap can be assigned to only one VLAN or VM group. However, each VLAN or VM group may have multiple VMaps assigned to it. When the optional serverports or nonserverports parameter is specified, the action to add or remove the VMap is applied for either the switch server ports (serverports) or uplink ports (nonserverports). If omitted, the operation will be applied to all ports in the associated VLAN or VM group. © Copyright Lenovo 2015 Chapter 7: Access Control Lists 123 VMap Example In this example, EtherType 2 traffic from VLAN 3 server ports is mirrored to a network monitor on port 4. RS G8052(config)# accesscontrol vmap 21 packetformat ethernet ethernettype2 RS G8052(config)# accesscontrol vmap 21 mirror port 4 RS G8052(config)# accesscontrol vmap 21 action permit RS G8052(config)# vlan 3 RS G8052(configvlan)# vmap 21 serverports Management ACLs Management ACLs (MACLs) filter inbound traffic i.e. traffic toward the CPU. MACLs are applied switch-wide. Traffic can be filtered based on the following: IPv4 source address IPv4 destination address IPv4 protocols TCP/UDP destination or source port Lower MACL numbers have higher priority. Following is an example MACL configuration based on a destination IP address and a TCP-UDP destination port: RS G8052(config)# accesscontrol 1.1.1.1 255.255.255.0 RS G8052(config)# accesscontrol 0xffff RS G8052(config)# accesscontrol RS G8052(config)# accesscontrol RS G8052(config)# accesscontrol macl 1 ipv4 destinationipaddress macl 1 tcpudp destinationport 111 macl 1 statistics macl 1 action permit macl 1 enable Use the following command to view the MACL configuration: RS G8052(config)# show accesscontrol macl 1 MACL 1 profile : Enabled IPv4 - DST IP : 1.1.1.1/255.255.255.0 TCP/UDP - DST Port : 111/0xffff Action : Permit Statistics : Enabled 124 G8052 Application Guide for N/OS 8.3 Using Storm Control Filters Excessive transmission of broadcast or multicast traffic can result in a network storm. A network storm can overwhelm your network with constant broadcast or multicast traffic, and degrade network performance. Common symptoms of a network storm are denial-of-service (DoS) attacks, slow network response times, and network operations timing out. The G8052 provides filters that can limit the number of the following packet types transmitted by switch ports: Broadcast packets Multicast packets Unknown unicast packets (destination lookup failure) Unicast packets whose destination MAC address is not in the Forwarding Database are unknown unicasts. When an unknown unicast is encountered, the switch handles it like a broadcast packet and floods it to all other ports in the VLAN (broadcast domain). A high rate of unknown unicast traffic can have the same negative effects as a broadcast storm. Configuring Storm Control Configure broadcast filters on each port that requires broadcast storm control. Set a threshold that defines the total number of broadcast packets transmitted (0-2097151), in packets per second. When the threshold is reached, no more packets of the specified type are transmitted. To filter broadcast packets on a port, use the following commands: RS G8052(config)# interface port 1 RS G8052(configif)# stormcontrol broadcast level rate To filter multicast packets on a port, use the following commands: RS G8052(configif)# stormcontrol multicast level rate To filter unknown unicast packets on a port, use the following commands: RS G8052(configif)# stormcontrol unicast level rate RS G8052(configif)# exit © Copyright Lenovo 2015 Chapter 7: Access Control Lists 125 126 G8052 Application Guide for N/OS 8.3 Part 3: Switch Basics This section discusses basic switching functions: VLANs Port Trunking Spanning Tree Protocols (Spanning Tree Groups, Rapid Spanning Tree Protocol, and Multiple Spanning Tree Protocol) Virtual Link Aggregation Groups Quality of Service © Copyright Lenovo 2015 127 128 G8052 Application Guide for N/OS 8.3 Chapter 8. VLANs This chapter describes network design and topology considerations for using Virtual Local Area Networks (VLANs). VLANs commonly are used to split up groups of network users into manageable broadcast domains, to create logical segmentation of workgroups, and to enforce security policies among logical segments. The following topics are discussed in this chapter: “VLANs and Port VLAN ID Numbers” on page 130 “VLAN Tagging/Trunk Mode” on page 132 “VLAN Topologies and Design Considerations” on page 137 This section discusses how you can connect users and segments to a host that supports many logical segments or subnets by using the flexibility of the multiple VLAN system. “Private VLANs” on page 144 Note: VLANs can be configured from the Command Line Interface (see “VLAN Configuration” as well as “Port Configuration” in the Command Reference). © Copyright Lenovo 2015 129 VLANs Overview Setting up virtual LANs (VLANs) is a way to segment networks to increase network flexibility without changing the physical network topology. With network segmentation, each switch port connects to a segment that is a single broadcast domain. When a switch port is configured to be a member of a VLAN, it is added to a group of ports (workgroup) that belong to one broadcast domain. Ports are grouped into broadcast domains by assigning them to the same VLAN. Frames received in one VLAN can only be forwarded within that VLAN, and multicast, broadcast, and unknown unicast frames are flooded only to ports in the same VLAN. The RackSwitch G8052 (G8052) supports jumbo frames with a Maximum Transmission Unit (MTU) of 9,216 bytes. Within each frame, 18 bytes are reserved for the Ethernet header and CRC trailer. The remaining space in the frame (up to 9,198 bytes) comprise the packet, which includes the payload of up to 9,000 bytes and any additional overhead, such as 802.1q or VLAN tags. Jumbo frame support is automatic: it is enabled by default, requires no manual configuration, and cannot be manually disabled. VLANs and Port VLAN ID Numbers VLAN Numbers The G8052 supports up to 2048 VLANs per switch. Even though the maximum number of VLANs supported at any given time is 2048, each can be identified with any number between 1 and 4094. VLAN 1 is the default VLAN for the data ports. Use the following command to view VLAN information: RS G8052)# show vlan VLAN 1 2 130 Name Default VLAN VLAN 2 G8052 Application Guide for N/OS 8.3 Status ena dis Ports 148, XGE1XGE4 empty PVID/Native VLAN Numbers Each port in the switch has a configurable default VLAN number, known as its PVID. By default, the PVID for all non-management ports is set to 1, which correlates to the default VLAN ID. The PVID for each port can be configured to any VLAN number between 1 and 4094. Use the following command to view PVIDs: RS G8052# show interface information (or) RS G8052# show interface trunk Alias Port Tag RMON Lrn Fld Openflow PVID DESCRIPTION VLAN(s) Trk NVLAN 1 1 n d e e d 1 1 2 2 n d e e d 1 1 3 3 n d e e d 1 1 4 4 n d e e d 1 1 5 5 n d e e d 1 1 6 6 n d e e d 1 1 ... XGE1 49 n d e e d 23 23 XGE2 50 y d e e d 78 78 200 XGE3 51 n d e e d 23 23 XGE4 52 n d e e d 23 23 * = PVID/NativeVLAN is tagged. # = PVID is ingress tagged. Trk = Trunk mode NVLAN = NativeVLAN Use the following command to set the port PVID/Native VLAN: Access Mode Port RS G8052(config)# interface port RS G8052(configif)# switchport access vlan For Trunk Mode Port RS G8052(config)# interface port RS G8052(configif)# switchport trunk native vlan Each port on the switch can belong to one or more VLANs, and each VLAN can have any number of switch ports in its membership. Any port that belongs to multiple VLANs, however, must have VLAN tagging/trunk mode enabled (see “VLAN Tagging/Trunk Mode” on page 132). © Copyright Lenovo 2015 Chapter 8: VLANs 131 VLAN Tagging/Trunk Mode Lenovo Network Operating System software supports 802.1Q VLAN tagging, providing standards-based VLAN support for Ethernet systems. Tagging places the VLAN identifier in the frame header of a packet, allowing each port to belong to multiple VLANs. When you add a port to multiple VLANs, you also must enable tagging on that port. Since tagging fundamentally changes the format of frames transmitted on a tagged port, you must carefully plan network designs to prevent tagged frames from being transmitted to devices that do not support 802.1Q VLAN tags, or devices where tagging is not enabled. Important terms used with the 802.1Q tagging feature are: VLAN identifier (VID)—the 12-bit portion of the VLAN tag in the frame header that identifies an explicit VLAN. Port VLAN identifier (PVID)—a classification mechanism that associates a port with a specific VLAN. For example, a port with a PVID of 3 (PVID =3) assigns all untagged frames received on this port to VLAN 3. Any untagged frames received by the switch are classified with the PVID of the receiving port. Tagged frame—a frame that carries VLAN tagging information in the header. This VLAN tagging information is a 32-bit field (VLAN tag) in the frame header that identifies the frame as belonging to a specific VLAN. Untagged frames are marked (tagged) with this classification as they leave the switch through a port that is configured as a tagged port. Untagged frame— a frame that does not carry any VLAN tagging information in the frame header. Untagged member—a port that has been configured as an untagged member of a specific VLAN. When an untagged frame exits the switch through an untagged member port, the frame header remains unchanged. When a tagged frame exits the switch through an untagged member port, the tag is stripped and the tagged frame is changed to an untagged frame. Tagged member—a port that has been configured as a tagged member of a specific VLAN. When an untagged frame exits the switch through a tagged member port, the frame header is modified to include the 32-bit tag associated with the PVID. When a tagged frame exits the switch through a tagged member port, the frame header remains unchanged (original VID remains). When an access port is set as a trunk, it is automatically added to all data VLANs. To change the allowed VLAN range, use the command: switchport trunk allowed vlans Note: If a 802.1Q tagged frame is received by a port that has VLAN-tagging disabled and the port VLAN ID (PVID) is different than the VLAN ID of the packet, then the frame is dropped at the ingress port. 132 G8052 Application Guide for N/OS 8.3 Figure 2. Default VLAN settings 802.1Q Switch VLAN 1 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 Port 7 ... PVID = 1 DA CRC SA Incoming untagged packet Outgoing untagged packet (unchanged) Data CRC Data SA DA Key By default: All ports are assigned PVID = 1 All ports are untagged members of VLAN 1 BS45010A Note: The port numbers specified in these illustrations may not directly correspond to the physical port configuration of your switch model. When a VLAN is configured, ports are added as members of the VLAN, and the ports are defined as either tagged or untagged (see Figure 3 through Figure 6). The default configuration settings for the G8052 has all ports set as untagged members of VLAN 1 with all ports configured as PVID = 1. In the default configuration example shown in Figure 2, all incoming packets are assigned to VLAN 1 by the default port VLAN identifier (PVID =1). Figure 3 through Figure 6 illustrate generic examples of VLAN tagging. In Figure 3, untagged incoming packets are assigned directly to VLAN 2 (PVID = 2). Port 5 is configured as a tagged member of VLAN 2, and port 7 is configured as an untagged member of VLAN 2. Note: The port assignments in the following figures are not meant to match the G8052. Figure 3. Port-based VLAN assignment Data SA Before DA Port 2 Port 3 802.1Q Switch Port 6 Port 7 Tagged member of VLAN 2 Port 5 CRC Port 1 Port 4 PVID = 2 Untagged packet Port 8 Untagged member of VLAN 2 © Copyright Lenovo 2015 Chapter 8: VLANs 133 As shown in Figure 4, the untagged packet is marked (tagged) as it leaves the switch through port 5, which is configured as a tagged member of VLAN 2. The untagged packet remains unchanged as it leaves the switch through port 7, which is configured as an untagged member of VLAN 2. Figure 4. 802.1Q tagging (after port-based VLAN assignment) Port 4 Port 1 Port 2 Tagged member of VLAN 2 Port 3 Port 5 PVID = 2 802.1Q Switch Port 6 Untagged memeber of VLAN 2 Port 7 CRC* Data Tag SA DA (*Recalculated) Port 8 CRC 8100 Priority CFI VID = 2 16 bits 3 bits 1 bits 12 bits Data After Outgoing untagged packet (unchanged) SA Key DA Priority CFI VID - User_priority - Canonical format indicator - VLAN identifier BS45012A In Figure 5, tagged incoming packets are assigned directly to VLAN 2 because of the tag assignment in the packet. Port 5 is configured as a tagged member of VLAN 2, and port 7 is configured as an untagged member of VLAN 2. Figure 5. 802.1Q tag assignment Port 1 PVID = 2 Port 2 Port 3 Data Tag SA Before DA 802.1Q Switch Port 6 Port 7 Tagged member of VLAN 2 Port 5 CRC Port 4 Tagged packet Port 8 Untagged member of VLAN 2 BS45013A As shown in Figure 6, the tagged packet remains unchanged as it leaves the switch through port 5, which is configured as a tagged member of VLAN 2. However, the tagged packet is stripped (untagged) as it leaves the switch through port 7, which is configured as an untagged member of VLAN 2. 134 G8052 Application Guide for N/OS 8.3 Figure 6. 802.1Q tagging (after 802.1Q tag assignment) Port 4 Port 1 Port 2 802.1Q Switch Port 6 Untagged member of VLAN 2 Port 7 CRC* Tagged member of VLAN 2 Port 3 Port 5 PVID = 2 CRC Data Tag SA DA Port 8 (*Recalculated) 8100 Priority CFI VID = 2 16 bits 3 bits 1 bit 12 bits Data SA DA Outgoing untagged packet changed (tag removed) After Key Priority CFI VID - User_priority - Canonical format indicator - VLAN identifier BS45014A Ingress VLAN Tagging Tagging can be enabled on an ingress port. When a packet is received on an ingress port, and if ingress tagging is enabled on the port, a VLAN tag with the port PVID is inserted into the packet as the outer VLAN tag. Depending on the egress port setting (tagged or untagged), the outer tag of the packet is retained or removed when it leaves the egress port. Ingress VLAN tagging is used to tunnel packets through a public domain without altering the original 802.1Q status. When ingress tagging is enabled on a port, all packets, whether untagged or tagged, will be tagged again. As shown in Figure 7, when tagging is enabled on the egress port, the outer tag of the packet is retained when it leaves the egress port. If tagging is disabled on the egress port, the outer tag of the packet is removed when it leaves the egress port. © Copyright Lenovo 2015 Chapter 8: VLANs 135 Figure 7. 802.1Q tagging (after ingress tagging assignment) Untagged packet received on ingress port 802.1Q Switch CRC Data SA DA Port 4 PVID = 2 Untagged packet CRC* Port 2 Data Port 3 Tag SA Tagged member of VLAN 2 DA Port 5 Port 1 CRC* Data Tag SA DA After Before Port 6 Port 7 Port 8 Untagged member of VLAN 2 CRC Data SA DA Tagged packet received on ingress port 802.1Q Switch Data Tag 1 SA DA Port 2 Port 3 CRC* Data Tag 1 Tag 2 SA Tagged member of VLAN 2 DA Port 5 CRC* Port 1 Port 4 PVID = 2 Tagged packet CRC* Data Tag 1 Tag 2 SA DA After Before Port 6 Port 7 Port 8 Untagged member of VLAN 2 CRC* Data Tag 1 SA DA By default, ingress tagging is disabled. To enable ingress tagging on a port, use the following commands: RS G8052(config)# interface port RS G8052(configif)# tagpvidingress RS G8052(configif)# exit Limitations Ingress tagging cannot be configured with the following features/configurations: 136 vNIC ports VMready ports G8052 Application Guide for N/OS 8.3 VLAN Topologies and Design Considerations Note the following when working with VLAN topologies: By default, the G8052 software is configured so that tagging/trunk mode is disabled on all ports. By default, the G8052 software is configured so that all data ports are members of VLAN 1. When using Spanning Tree, STG 2-128 may contain only one VLAN unless Multiple Spanning-Tree Protocol (MSTP) mode is used. With MSTP mode, STG 1 to 32 can include multiple VLANs. All ports involved in both trunking and port mirroring must have the same VLAN configuration. If a port is on a trunk with a mirroring port, the VLAN configuration cannot be changed. For more information trunk groups, see Chapter 9, “Ports and Trunking” and Chapter 40, “Port Mirroring.” Multiple VLANs with Tagging/Trunk Mode Adapters Figure 8 illustrates a network topology described in Note: on page 138 and the configuration example on page page 140. Figure 8. Multiple VLANs with VLAN-Tagged Gigabit Adapters Enterprise Routing Switch Server 1 VLAN 1 Server 2 VLAN 1 Enterprise Routing Switch Server 3 VLAN 2 Server 4 VLAN 3 Server 5 VLAN 1, 2 The features of this VLAN are described in the following table. © Copyright Lenovo 2015 Chapter 8: VLANs 137 Table 14. Multiple VLANs Example Component Description G8052 switch This switch is configured with three VLANs that represent three different IP subnets. Five ports are connected downstream to servers. Two ports are connected upstream to routing switches. Uplink ports are members of all three VLANs, with VLAN tagging/trunk mode enabled. Server 1 This server is a member of VLAN 1 and has presence in only one IP subnet. The associated switch port is only a member of VLAN 1, so tagging/trunk mode is disabled. Server 2 This server is a member of VLAN 1 and has presence in only one IP subnet. The associated switch port is only a member of VLAN 1, so tagging/trunk mode is disabled. Server 3 This server belongs to VLAN 2, and it is logically in the same IP subnet as Server 5. The associated switch port has tagging/trunk mode disabled. Server 4 A member of VLAN 3, this server can communicate only with other servers via a router. The associated switch port has tagging/trunk mode disabled. Server 5 A member of VLAN 1 and VLAN 2, this server can communicate only with Server 1, Server 2, and Server 3. The associated switch port has tagging/trunk mode enabled. Enterprise Routing switches These switches must have all three VLANs (VLAN 1, 2, 3) configured. They can communicate with Server 1, Server 2, and Server 5 via VLAN 1. They can communicate with Server 3 and Server 5 via VLAN 2. They can communicate with Server 4 via VLAN 3. Tagging/trunk mode on switch ports is enabled. Note: VLAN tagging/trunk mode is required only on ports that are connected to other switches or on ports that connect to tag-capable end-stations, such as servers with VLAN-tagging/trunk mode adapters. To configure a specific VLAN on a trunk port, the following conditions must be met: The port must be in trunk mode. The VLAN must be in the trunk’s allowed VLAN range. By default, the range includes all VLANs. The VLAN must be un-reserved. The VLAN must be created. The order in which the conditions above are met is not relevant. However, all conditions must be met collectively. When all the conditions are met, the VLAN is enabled on the port. If one of the conditions is broken, the VLAN is disabled. 138 G8052 Application Guide for N/OS 8.3 If a port’s native VLAN is a private VLAN and its allowed VLAN range contains only invalid VLANs (either reserved VLANs or VLANs the port cannot belong to), removing the private VLAN mapping from the port will add the port to default VLAN and add the default VLAN to the allowed VLAN range. When setting up multiple VLANs, ports configured in private VLAN mode are not added to private VLANs unless the private VLANs are also configured for those ports. © Copyright Lenovo 2015 Chapter 8: VLANs 139 VLAN Configuration Example Use the following procedure to configure the example network shown in Figure 8 on page 137. 1. Enable VLAN tagging/trunk mode on server ports that support multiple VLANs. RS RS RS RS G8052(config)# interface port 5 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlans 1,2 G8052(configif)# exit 2. Enable tagging/trunk mode on uplink ports that support multiple VLANs. RS RS RS RS RS RS G8052(config)# interface port 19 G8052(configif)# switchport mode trunk G8052(configif)# exit G8052(config)# interface port 20 G8052(configif)# switchport mode trunk G8052(configif)# exit 3. Configure server ports that belong to a single VLAN. RS G8052(config)# interface port 4 RS G8052(configif)# switchport access vlan 2 RS G8052(configif)# exit By default, all ports are members of VLAN 1, so configure only those ports that belong to other VLANs. 140 G8052 Application Guide for N/OS 8.3 Protocol-Based VLANs Protocol-based VLANs (PVLANs) allow you to segment network traffic according to the network protocols in use. Traffic for supported network protocols can be confined to a particular port-based VLAN. You can give different priority levels to traffic generated by different network protocols. With PVLAN, the switch classifies incoming packets by Ethernet protocol of the packets, not by the configuration of the ingress port. When an untagged or priority-tagged frame arrives at an ingress port, the protocol information carried in the frame is used to determine a VLAN to which the frame belongs. If a frame’s protocol is not recognized as a pre-defined PVLAN type, the ingress port’s PVID is assigned to the frame. When a tagged frame arrives, the VLAN ID in the frame’s tag is used. Each VLAN can contain up to eight different PVLANs. You can configure separate PVLANs on different VLANs, with each PVLAN segmenting traffic for the same protocol type. For example, you can configure PVLAN 1 on VLAN 2 to segment IPv4 traffic, and PVLAN 8 on VLAN 100 to segment IPv4 traffic. To define a PVLAN on a VLAN, configure a PVLAN number (1-8) and specify the frame type and the Ethernet type of the PVLAN protocol. You must assign at least one port to the PVLAN before it can function. Define the PVLAN frame type and Ethernet type as follows: Frame type—consists of one of the following values: Ether2 (Ethernet II) SNAP (Subnetwork Access Protocol) LLC (Logical Link Control) Ethernet type—consists of a 4-digit (16 bit) hex value that defines the Ethernet type. You can use common Ethernet protocol values, or define your own values. Following are examples of common Ethernet protocol values: IPv4 = 0800 IPv6 = 86dd ARP = 0806 Port-Based vs. Protocol-Based VLANs Each VLAN supports both port-based and protocol-based association, as follows: © Copyright Lenovo 2015 The default VLAN configuration is port-based. All data ports are members of VLAN 1, with no PVLAN association. When you add ports to a PVLAN, the ports become members of both the port-based VLAN and the PVLAN. For example, if you add port 1 to PVLAN 1 on VLAN 2, the port also becomes a member of VLAN 2. When you delete a PVLAN, it’s member ports remain members of the port-based VLAN. For example, if you delete PVLAN 1 from VLAN 2, port 1 remains a member of VLAN 2. When you delete a port from a VLAN, the port is deleted from all corresponding PVLANs. Chapter 8: VLANs 141 PVLAN Priority Levels You can assign each PVLAN a priority value of 0-7, used for Quality of Service (QoS). PVLAN priority takes precedence over a port’s configured priority level. If no priority level is configured for the PVLAN (priority = 0), each port’s priority is used (if configured). All member ports of a PVLAN have the same PVLAN priority level. PVLAN Tagging/Trunk Mode When PVLAN tagging is enabled, the switch tags frames that match the PVLAN protocol. For more information about tagging, see “VLAN Tagging/Trunk Mode” on page 132. Untagged ports must have PVLAN tagging disabled. Tagged ports can have PVLAN tagging either enabled or disabled. PVLAN tagging has higher precedence than port-based tagging. If a port is tagging/trunk mode enabled, and the port is a member of a PVLAN, the PVLAN tags egress frames that match the PVLAN protocol. Use the tag list command (protocolvlan tagpvlan) to define the complete list of tag-enabled ports in the PVLAN. Note that all ports not included in the PVLAN tag list will have PVLAN tagging disabled. PVLAN Configuration Guidelines Consider the following guidelines when you configure protocol-based VLANs: 142 Each port can support up to 16 VLAN protocols. The G8052 can support up to 16 protocols simultaneously. Each PVLAN must have at least one port assigned before it can be activated. The same port within a port-based VLAN can belong to multiple PVLANs. An untagged port can be a member of multiple PVLANs. A port cannot be a member of different VLANs with the same protocol association. G8052 Application Guide for N/OS 8.3 Configuring PVLAN Follow this procedure to configure a Protocol-based VLAN (PVLAN). 1. Configure VLAN tagging/trunk mode for ports. RS G8052(config)# interface port 1, 2 RS G8052(configif)# switchport mode trunk RS G8052(configif)# exit 2. Create a VLAN and define the protocol type(s) supported by the VLAN. RS G8052(config)# vlan 2 RS G8052(configvlan)# protocolvlan 1 frametype ether2 0800 3. Configure the priority value for the protocol. RS G8052(configvlan)# protocolvlan 1 priority 2 4. Add member ports for this PVLAN. RS G8052(configvlan)# protocolvlan 1 member 1, 2 Note: If VLAN tagging is turned on and the port being added to the VLAN has a different default VLAN (PVID/Native VLAN), you will be asked to confirm changing the PVID to the current VLAN. 5. Enable the PVLAN. RS G8052(configvlan)# protocolvlan 1 enable RS G8052(configvlan)# exit 6. Verify PVLAN operation. RS G8052(config)# show vlan VLAN 1 2 © Copyright Lenovo 2015 Name Default VLAN VLAN 2 FrameType Ether2 Status ena ena PVLAN 2 Protocol 1 EtherType 0800 PVLAN none PVLANTagged Ports none Ports 148, XGE1XGE4 1 2 Priority 2 Status enabled Ports 1 2 Chapter 8: VLANs 143 Private VLANs Private VLANs provide Layer 2 isolation between the ports within the same broadcast domain. Private VLANs can control traffic within a VLAN domain, and provide port-based security for host servers. Use Private VLANs to partition a VLAN domain into sub-domains. Each sub-domain is comprised of one primary VLAN and one or more secondary VLANs, as follows: Primary VLAN—carries unidirectional traffic downstream from promiscuous ports. Each Private VLAN configuration has only one primary VLAN. All ports in the Private VLAN are members of the primary VLAN. Secondary VLAN—Secondary VLANs are internal to a private VLAN domain, and are defined as follows: Isolated VLAN—carries unidirectional traffic upstream from the host servers toward ports in the primary VLAN. Each Private VLAN configuration can contain only one isolated VLAN. Community VLAN—carries upstream traffic from ports in the community VLAN to other ports in the same community, and to ports in the primary VLAN. Each Private VLAN configuration can contain multiple community VLANs. After you define the primary VLAN and one or more secondary VLANs, you map the secondary VLAN(s) to the primary VLAN. Private VLAN Ports Private VLAN ports are defined as follows: Promiscuous—A promiscuous port is a port that belongs to the primary VLAN. The promiscuous port can communicate with all the interfaces, including ports in the secondary VLANs (Isolated VLAN and Community VLANs). Isolated—An isolated port is a host port that belongs to an isolated VLAN. Each isolated port has complete layer 2 separation from other ports within the same private VLAN (including other isolated ports), except for the promiscuous ports. 144 Traffic sent to an isolated port is blocked by the Private VLAN, except the traffic from promiscuous ports. Traffic received from an isolated port is forwarded only to promiscuous ports. Community—A community port is a host port that belongs to a community VLAN. Community ports can communicate with other ports in the same community VLAN, and with promiscuous ports. These interfaces are isolated at layer 2 from all other interfaces in other communities and from isolated ports within the Private VLAN. G8052 Application Guide for N/OS 8.3 Configuration Guidelines The following guidelines apply when configuring Private VLANs: The default VLAN 1 cannot be a Private VLAN. IGMP Snooping must be disabled on Private VLANs. All VLANs that comprise the Private VLAN must belong to the same Spanning Tree Group. Configuration Example Follow this procedure to configure a Private VLAN. 1. Select a VLAN and define the Private VLAN type as primary. RS G8052(config)# vlan 700 RS G8052(configvlan)# privatevlan primary RS G8052(configvlan)# exit 2. Configure a promiscuous port for VLAN 700. RS RS RS RS G8052(config)# interface port 1 G8052(configif)# switchport mode privatevlan G8052(configif)# switchport privatevlan mapping 700 G8052(configif)# exit 3. Configure two secondary VLANs: isolated VLAN and community VLAN. RS RS RS RS RS RS G8052(config)# vlan G8052(configvlan)# G8052(configvlan)# G8052(config)# vlan G8052(configvlan)# G8052(configvlan)# 701 privatevlan isolated exit 702 privatevlan community exit 4. Map secondary VLANs to primary VLAN. RS RS RS RS RS RS G8052(config)# vlan G8052(configvlan)# G8052(configvlan)# G8052(config)# vlan G8052(configvlan)# G8052(configvlan)# 700702 stg 1 exit 700 privatevlan association 701,702 exit 5. Configure host ports for secondary VLANs. © Copyright Lenovo 2015 RS RS RS RS G8052(config)# interface port 2 G8052(configif)# switchport mode privatevlan G8052(configif)# switchport privatevlan hostassociation 700 701 G8052(configif)# exit RS RS RS RS G8052(config)# interface port 3 G8052(configif)# switchport mode privatevlan G8052(configif)# switchport privatevlan hostassociation 700 702 G8052(configif)# exit Chapter 8: VLANs 145 6. Verify the configuration. RS G8052(config)# show vlan privatevlan Primary 700 700 146 Secondary Type Ports 701 isolated 1 2 702 community 1 3 G8052 Application Guide for N/OS 8.3 Chapter 9. Ports and Trunking Trunk groups can provide super-bandwidth, multi-link connections between the G8052 and other trunk-capable devices. A trunk group is a group of ports that act together, combining their bandwidth to create a single, larger virtual link. This chapter provides configuration background and examples for trunking multiple ports together: © Copyright Lenovo 2015 “Trunking Overview” on page 148” “Configuring a Static Port Trunk” on page 150 “Configurable Trunk Hash Algorithm” on page 157 “Link Aggregation Control Protocol” on page 152 147 Trunking Overview When using port trunk groups between two switches, as shown in Figure 9, you can create a virtual link between the switches, operating with combined throughput levels that depends on how many physical ports are included. Figure 9. Port Trunk Group Switch 1 Switch 2 Aggregate Port Trunk Trunk groups are also useful for connecting a G8052 to third-party devices that support link aggregation, such as Cisco routers and switches with EtherChannel technology (not ISL trunking technology) and Sun's Quad Fast Ethernet Adapter. Trunk Group technology is compatible with these devices when they are configured manually. Trunk traffic is statistically distributed among the ports in a trunk group, based on a variety of configurable options. Also, since each trunk group is comprised of multiple physical links, the trunk group is inherently fault tolerant. As long as one connection between the switches is available, the trunk remains active and statistical load balancing is maintained whenever a port in a trunk group is lost or returned to service. 148 G8052 Application Guide for N/OS 8.3 Static Trunks When you create and enable a static trunk, the trunk members (switch ports) take on certain settings necessary for correct operation of the trunking feature. Static Trunk Requirements Before you configure your trunk, you must consider these settings, along with specific configuration rules, as follows: 1. Read the configuration rules provided in the section, “Static Trunk Group Configuration Rules” on page 150. 2. Determine which switch ports (up to 8) are to become trunk members (the specific ports making up the trunk). 3. Ensure that the chosen switch ports are set to enabled. Trunk member ports must have the same VLAN and Spanning Tree configuration. 4. Consider how the existing Spanning Tree will react to the new trunk configuration. See Chapter 10, “Spanning Tree Protocols,” for Spanning Tree Group configuration guidelines. 5. Consider how existing VLANs will be affected by the addition of a trunk. © Copyright Lenovo 2015 Chapter 9: Ports and Trunking 149 Static Trunk Group Configuration Rules The trunking feature operates according to specific configuration rules. When creating trunks, consider the following rules that determine how a trunk group reacts in any network topology: All trunks must originate from one logical device, and lead to one logical destination device. Usually, a trunk connects two physical devices together with multiple links. However, in some networks, a single logical device may include multiple physical devices or when using VLAGs (see Chapter 11, “Virtual Link Aggregation Groups). In such cases, links in a trunk are allowed to connect to multiple physical devices because they act as one logical device. Any physical switch port can belong to only one trunk group. Trunking from third-party devices must comply with Cisco® EtherChannel® technology. All trunk member ports must be assigned to the same VLAN configuration before the trunk can be enabled. When an active port is configured in a trunk, the port becomes a trunk member when you enable the trunk. The Spanning Tree parameters for the port then change to reflect the new trunk settings. All trunk members must be in the same Spanning Tree Group (STG) and can belong to only one Spanning Tree Group (STG). However if all ports are tagged, then all trunk ports can belong to multiple STGs. If you change the Spanning Tree participation of any trunk member to enabled or disabled, the Spanning Tree participation of all trunk members changes similarly. When a trunk is enabled, the trunk’s Spanning Tree participation setting takes precedence over that of any trunk member. You cannot configure a trunk member as a monitor port in a port-mirroring configuration. Trunks cannot be monitored by a monitor port; however, trunk members can be monitored. All ports in static trunks must be have the same link configuration (speed, duplex, flow control). Configuring a Static Port Trunk In the following example, three ports are trunked between two switches. Figure 10. Port Trunk Group Configuration Example 2 1 150 Trunk 3 9 16 Trunk Group 3 combines Ports 2, 9, and 16 11 18 Trunk 1 Trunk Group 1 combines Ports 1, 11, and 18 G8052 Application Guide for N/OS 8.3 Prior to configuring each switch in this example, you must connect to the appropriate switches as the administrator. Note: For details about accessing and using any of the commands described in this example, see the RackSwitch G8052 ISCLI Reference. 1. Follow these steps on the G8052: a. Define a trunk group. RS G8052(config)# portchannel 3 port 2,9,16 RS G8052(config)# portchannel 3 enable b. Verify the configuration. # show portchannel information Examine the resulting information. If any settings are incorrect, make appropriate changes. 2. Repeat the process on the other switch. RS G8052(config)# portchannel 1 port 1,11,18 RS G8052(config)# portchannel 1 enable 3. Connect the switch ports that will be members in the trunk group. Trunk group 3 (on the G8052) is now connected to trunk group 1 (on the other switch). Note: In this example, two G8052 switches are used. If a third-party device supporting link aggregation is used (such as Cisco routers and switches with EtherChannel technology or Sun's Quad Fast Ethernet Adapter), trunk groups on the third-party device must be configured manually. Connection problems could arise when using automatic trunk group negotiation on the third-party device. 4. Examine the trunking information on each switch. # show portchannel information PortChannel 3: Enabled Protocol—Static port state: 2: STG 1 forwarding 9: STG 1 forwarding 16: STG 1 forwarding Information about each port in each configured trunk group is displayed. Make sure that trunk groups consist of the expected ports and that each port is in the expected state. The following restrictions apply: © Copyright Lenovo 2015 Any physical switch port can belong to only one trunk group. Up to 8 ports can belong to the same trunk group. All ports in static trunks must be have the same link configuration (speed, duplex, flow control). Trunking from third-party devices must comply with Cisco® EtherChannel® technology. Chapter 9: Ports and Trunking 151 Link Aggregation Control Protocol Link Aggregation Control Protocol (LACP) is an IEEE 802.3ad standard for grouping several physical ports into one logical port (known as a dynamic trunk group or Link Aggregation group) with any device that supports the standard. Please refer to IEEE 802.3ad-2002 for a full description of the standard. The 802.3ad standard allows standard Ethernet links to form a single Layer 2 link using the Link Aggregation Control Protocol (LACP). Link aggregation is a method of grouping physical link segments of the same media type and speed in full duplex, and treating them as if they were part of a single, logical link segment. If a link in a LACP trunk group fails, traffic is reassigned dynamically to the remaining link(s) of the dynamic trunk group. Note: LACP implementation in the Lenovo Network Operating System does not support the Churn machine, an option used to detect if the port is operable within a bounded time period between the actor and the partner. Only the Marker Responder is implemented, and there is no marker protocol generator. A port’s Link Aggregation Identifier (LAG ID) determines how the port can be aggregated. The Link Aggregation ID (LAG ID) is constructed mainly from the partner switch’s system ID and the port’s admin key, as follows: System ID: an integer value based on the partner switch’s MAC address and the system priority assigned in the CLI. Admin key: a port’s Admin key is an integer value (1-65535) that you can configure in the CLI. Each switch port that participates in the same LACP trunk group must have the same admin key value. The Admin key is local significant, which means the partner switch does not need to use the same Admin key value. For example, consider two switches, an Actor (the G8052) and a Partner (another switch), as shown in Table 15. Table 15. Actor vs. Partner LACP configuration Actor Switch Partner Switch Port 7 (admin key = 100) Port 1 (admin key = 50) Primary trunk group Port 8 (admin key = 100) Port 2 (admin key = 50) Primary trunk group Port 9 (admin key = 100) Port 3 (admin key = 70) Secondary trunk group Port 10 (admin key = 100) Port 4 (admin key = 70) Secondary trunk group In the configuration shown in Table 15, Actor switch ports 7 and 8 aggregate to form an LACP trunk group with Partner switch ports 1 and 2. Only ports with the same LAG ID are aggregated in the trunk group. Actor switch ports 9 and 10 are not aggregated in the same trunk group, because although they have the same 152 G8052 Application Guide for N/OS 8.3 admin key on the Actor switch, their LAG IDs are different (due to a different Partner switch admin key configuration). Instead, they form a secondary trunk group with Partner switch ports 3 and 4. LACP automatically determines which member links can be aggregated and then aggregates them. It provides for the controlled addition and removal of physical links for the link aggregation. Static LACP Trunks To prevent switch ports with the same admin key from forming multiple trunk groups, you can configure the LACP trunk as static. In a static LACP trunk, ports with the same admin key, but with different LAG IDs, compete to get aggregated in a trunk group. The LAG ID for the trunk group is decided based on the first port that is aggregated in the group. Ports with this LAG ID get aggregated and the other ports are placed in suspended mode. As per the configuration shown in Table 15 on page 152, if port 7 gets aggregated first, then the LAG ID of port 7 would be the LAG ID of the trunk. Port 8 will join the trunk while ports 9 and 10 would be placed in suspended mode. When in suspended mode, a port transmits only LACP data units (LACPDUs) and discards all other traffic. A port may also be placed in suspended mode for the following reasons: When LACP is configured on the port but it stops receiving LACPDUs from the partner switch. When the port has a different LAG ID because of the partner switch MAC or port LACP key being different. For example: when a switch is connected to two partners. Static LACP trunks are configured by associating the LACP admin key to a portchannel ID within a dedicated LACP portchannel group range: RS G8052(config)# portchannel <53-104> lacp key LACP Port Modes Each port on the switch can have one of the following LACP modes. off (default) The user can configure this port in to a regular static trunk group. active The port is capable of forming an LACP trunk. This port sends LACPDU packets to partner system ports. passive The port is capable of forming an LACP trunk. This port only responds to the LACPDU packets sent from an LACP active port. Each active LACP port transmits LACP data units (LACPDUs), while each passive LACP port listens for LACPDUs. During LACP negotiation, the admin key is exchanged. The LACP trunk group is enabled as long as the information matches at both ends of the link. If the admin key value changes for a port at either end of the link, that port’s association with the LACP trunk group is lost. © Copyright Lenovo 2015 Chapter 9: Ports and Trunking 153 When the system is initialized, all ports by default are in LACP off mode and are assigned unique admin keys. To make a group of ports aggregable, you assign them all the same admin key. You must set the port’s LACP mode to active to activate LACP negotiation. You can set other port’s LACP mode to passive, to reduce the amount of LACPDU traffic at the initial trunk-forming stage. Use the following command to check whether the ports are trunked: RS G8052 # show lacp information Note: If you configure LACP on ports with 802.1X network access control, make sure the ports on both sides of the connection are properly configured for both LACP and 802.1X. LACP Individual Ports with LACP enabled (active or passive) are prevented by default from forming individual links if they cannot join an LACP trunk group. To override this behavior, use the following commands: RS G8052(config) # interface port RS G8052(configif) # no lacp suspendindividual This allows the selected ports to be treated as normal link-up ports, which may forward data traffic according to STP, Hot Links or other applications, if they do not receive any LACPDUs. To configure the LACP individual setting for all the ports in a static LACP trunk, use the following commands: RS G8052(config)# interface portchannel lacp RS G8052(configPortChannel)# [no] lacp suspendindividual LACP Minimum Links Option For dynamic trunks that require a guaranteed amount of bandwidth in order to be considered useful, you can specify the minimum number of links for the trunk. If the specified minimum number of ports is not available, the trunk link will not be established. If an active LACP trunk loses one or more component links, the trunk will be placed in the down state if the number of links falls to less than the specified minimum. By default, the minimum number of links is 1, meaning that LACP trunks will remain operational as long as at least one link is available. The LACP minimum links setting can be configured as follows: Via interface configuration mode: RS G8052(config)# interface port RS G8052(configif)# portchannel minlinks RS G8052(configif)# exit 154 G8052 Application Guide for N/OS 8.3 Or via portchannel configuration mode: RS G8052(config)# interface portchannel lacp RS G8052(configPortChannel)# portchannel minlinks RS G8052(configif)# exit LACP Configuration Guidelines Consider the following guidelines when you configure LACP trunks: © Copyright Lenovo 2015 The range of potential LACP trunk IDs is 53-104. Each port that is configured to participate in LACP must be set to full duplex. Chapter 9: Ports and Trunking 155 Configuring LACP Use the following procedure to configure LACP for ports 7, 8, 9 and 10 to participate in link aggregation. 1. Configure port parameters. All ports that participate in the LACP trunk group must have the same settings, including VLAN membership. 2. Select the port range and define the admin key. Only ports with the same admin key can form an LACP trunk group. RS G8052(config)# interface port 710 RS G8052(configif)# lacp key 100 3. Set the LACP mode. RS G8052(configif)# lacp mode active 4. Optionally allow member ports to individually participate in normal data traffic if no LACPDUs are received. RS G8052(configif)# no lacp suspendindividual RS G8052(configif)# exit 5. Set the link aggregation as static, by associating it with trunk ID 65: RS G8052(config)# portchannel 65 lacp key 100 156 G8052 Application Guide for N/OS 8.3 Configurable Trunk Hash Algorithm Packet-Based Trunk Hashing Traffic in a trunk group is statistically distributed among member ports using a hash process where various address and attribute bits from each transmitted frame are recombined to specify the particular trunk port the frame will use. The switch can be configured to use a variety of hashing options. To achieve the most even traffic distribution, select options that exhibit a wide range of values for your particular network. Avoid hashing on information that is not usually present in the expected traffic, or which does not vary. The G8052 supports the following hashing options, which can be used in any combination: Frame MAC and IP information. One of the following combinations is required: Source MAC address (smac) RS G8052(config)# portchannel hash sourcemacaddress Destination MAC address (dmac) RS G8052(config)# portchannel hash destinationmacaddress Both source and destination MAC address RS G8052(config)# portchannel hash sourcedestinationmac IPv4/IPv6 source IP address (sip) RS G8052(config)# portchannel hash sourceipaddress IPv4/IPv6 destination IP address (dip) RS G8052(config)# portchannel hash destinationipaddress Both source and destination IPv4/IPv6 address (enabled by default) RS G8052(config)# portchannel hash sourcedestinationip © Copyright Lenovo 2015 Chapter 9: Ports and Trunking 157 Ingress port number (disabled by default) RS G8052(config)# portchannel hash ingress Layer 4 port information (disabled by default) RS G8052(config)# portchannel hash L4port When enabled, Layer 4 port information (TCP, UPD, etc.) is added to the hash if available. The L4port option is ignored when Layer 4 information is not included in the packet (such as for Layer 2 packets). Port-Based Trunk Hashing The standard hashing process that determines where traffic in a trunk group is distributed among member ports uses address and attribute bits from each transmitted frame to specify which trunk port the frame will use for egress. With port-based trunk hashing, packet data is disregarded. Instead, you configure each ingress port to use a specific egress port. When you have many ingress ports with traffic to distribute over a smaller number of egress ports with equal bandwidth, such as 40 10Gb ingress ports and four 100Gb egress ports, this may enable you to make better use of those egress ports. Note: Port-based trunk hashing is disabled by default and the standard hashing algorithm is used. To enable port-based trunk hashing: 1. Enable or disable the feature on a per-trunk basis. For static trunks: RS G8052(config)# [no] portchannel hash staticdistribution inport portchannel Or for dynamic trunks: RS G8052(config)# [no] portchannel hash staticdistribution inport lacpkey 2. For each port, specify its member hash index. RS G8052(config)# interface port RS G8052(configif)# portchannel distribution trunkmemberindex <1-8> RS G8052(configif)# exit The trunk-member index will only be used for traffic destined for a trunk where port-based trunk hashing has been enabled. Otherwise, the value is ignored. When applicable, the index specifies which member link within the trunk will be used. Traffic from ports that have the same member index will occupy the same links when destined for the same trunk. Note: The administrator must ensure that traffic is properly balanced among the individual links within the trunk. 158 G8052 Application Guide for N/OS 8.3 At any time, if a port’s member index is greater than the number of links available within a trunk where port-based hashing is enabled, a modulus approach is used. For instance, if there are four members in the trunk, traffic from a port with a trunk-member index of 1 will use the first link in the trunk, index 2 will use the second link, 3 will use the third, 4 will start again at the first link, 5 at the second, 6 at the thirds, and so on. Each time a port is added to or removed from a trunk, the mapping between its member index and physical links is updated. The trunk-member index can be configured on a per-port basis. The index assigned a given port is used with all trunks where port-based trunk hashing is enabled. The same port cannot use different trunk-member indexes for different trunks. © Copyright Lenovo 2015 Chapter 9: Ports and Trunking 159 160 G8052 Application Guide for N/OS 8.3 Chapter 10. Spanning Tree Protocols When multiple paths exist between two points on a network, Spanning Tree Protocol (STP), or one of its enhanced variants, can prevent broadcast loops and ensure that the RackSwitch G8052 uses only the most efficient network path. This chapter covers the following topics: “Spanning Tree Protocol Modes” on page 161 “Global STP Control” on page 162 “PVRST Mode” on page 162 “Rapid Spanning Tree Protocol” on page 174 “Multiple Spanning Tree Protocol” on page 176 “Port Type and Link Type” on page 180 Spanning Tree Protocol Modes Lenovo Network Operating System 8.3 supports the following STP modes: Rapid Spanning Tree Protocol (RSTP) IEEE 802.1D (2004) RSTP allows devices to detect and eliminate logical loops in a bridged or switched network. When multiple paths exist, STP configures the network so that only the most efficient path is used. If that path fails, STP automatically configures the best alternative active path on the network to sustain network operations. RSTP is an enhanced version of IEEE 802.1D (1998) STP, providing more rapid convergence of the Spanning Tree network path states on STG 1. See “Rapid Spanning Tree Protocol” on page 174 for details. Per-VLAN Rapid Spanning Tree (PVRST) PVRST mode is based on RSTP to provide rapid Spanning Tree convergence, but supports instances of Spanning Tree, allowing one STG per VLAN. PVRST mode is compatible with Cisco R-PVST/R-PVST+ mode. PVRST is the default Spanning Tree mode on the G8052. See “PVRST Mode” on page 162 for details. Multiple Spanning Tree Protocol (MSTP) IEEE 802.1Q (2003) MSTP provides both rapid convergence and load balancing in a VLAN environment. MSTP allows multiple STGs, with multiple VLANs in each. See “Multiple Spanning Tree Protocol” on page 176 for details. © Copyright Lenovo 2015 161 Global STP Control By default, the Spanning Tree feature is globally enabled on the switch, and is set for PVRST mode. Spanning Tree (and thus any currently configured STP mode) can be globally disabled using the following command: RS G8052(config)# spanningtree mode disable Spanning Tree can be re-enabled by specifying the STP mode: RS G8052(config)# spanningtree mode {pvrst|rstp|mst} where the command options represent the following modes: rstp: pvrst: mst: RSTP mode PVRST mode MSTP mode PVRST Mode Note: Per-VLAN Rapid Spanning Tree (PVRST) is enabled by default on the G8052. Using STP, network devices detect and eliminate logical loops in a bridged or switched network. When multiple paths exist, Spanning Tree configures the network so that a switch uses only the most efficient path. If that path fails, Spanning Tree automatically sets up another active path on the network to sustain network operations. N/OS PVRST mode is based on IEEE 802.1w RSTP. Like RSTP, PVRST mode provides rapid Spanning Tree convergence. However, PVRST mode is enhanced for multiple instances of Spanning Tree. In PVRST mode, each VLAN may be automatically or manually assigned to one of 127 available STGs. If you need to assign a VLAN to STG 128, it must be done manually. Each STG acts as an independent, simultaneous instance of STP. PVRST uses IEEE 802.1Q tagging to differentiate STP BPDUs and is compatible with Cisco R-PVST/R-PVST+ modes. The relationship between ports, trunk groups, VLANs, and Spanning Trees is shown in Table 16. Table 16. Ports, Trunk Groups, and VLANs Switch Element Belongs To Port Trunk group or one or more VLANs Trunk group One or more VLANs VLAN (non-default) PVRST: One VLAN per STG RSTP: All VLANs are in STG 1 MSTP: Multiple VLANs per STG 162 G8052 Application Guide for N/OS 8.3 Port States The port state controls the forwarding and learning processes of Spanning Tree. In PVRST, the port state has been consolidated to the following: discarding, learning, and forwarding. Due to the sequence involved in these STP states, considerable delays may occur while paths are being resolved. To mitigate delays, ports defined as edge ports (“Port Type and Link Type” on page 180) may bypass the discarding and learning states, and enter directly into the forwarding state. Bridge Protocol Data Units To create a Spanning Tree, the switch generates a configuration Bridge Protocol Data Unit (BPDU), which it then forwards out of its ports. All switches in the Layer 2 network participating in the Spanning Tree gather information about other switches in the network through an exchange of BPDUs. A bridge sends BPDU packets at a configurable regular interval (2 seconds by default). The BPDU is used to establish a path, much like a hello packet in IP routing. BPDUs contain information about the transmitting bridge and its ports, including bridge MAC addresses, bridge priority, port priority, and path cost. If the ports are in trunk mode/tagged, each port sends out a special BPDU containing the tagged information. The generic action of a switch on receiving a BPDU is to compare the received BPDU to its own BPDU that it will transmit. If the priority of the received BPDU is better than its own priority, it will replace its BPDU with the received BPDU. Then, the switch adds its own bridge ID number and increments the path cost of the BPDU. The switch uses this information to block any necessary ports. Note: If STP is globally disabled, BPDUs from external devices will transit the switch transparently. If STP is globally enabled, for ports where STP is turned off, inbound BPDUs will instead be discarded. Determining the Path for Forwarding BPDUs When determining which port to use for forwarding and which port to block, the G8052 uses information in the BPDU, including each bridge ID. A technique based on the “lowest root cost” is then computed to determine the most efficient path for forwarding. Bridge Priority The bridge priority parameter controls which bridge on the network is the STG root bridge. To make one switch become the root bridge, configure the bridge priority lower than all other switches and bridges on your network. The lower the value, the higher the bridge priority. Use the following command to configure the bridge priority: RS G8052(config)# spanningtree stp bridge priority <0-65535> © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 163 Port Priority The port priority helps determine which bridge port becomes the root port or the designated port. The case for the root port is when two switches are connected using a minimum of two links with the same path-cost. The case for the designated port is in a network topology that has multiple bridge ports with the same path-cost connected to a single segment, the port with the lowest port priority becomes the designated port for the segment. Use the following command to configure the port priority: RS G8052(configif)# spanningtree stp priority where priority value is a number from 0 to 240, in increments of 16 (such as 0, 16, 32, and so on). If the specified priority value is not evenly divisible by 16, the value will be automatically rounded down to the nearest valid increment whenever manually changed in the configuration, or whenever a configuration file from a release prior to N/OS 6.5 is loaded. Root Guard The root guard feature provides a way to enforce the root bridge placement in the network. It keeps a new device from becoming root and thereby forcing STP re-convergence. If a root-guard enabled port detects a root device, that port will be placed in a blocked state. You can configure the root guard at the port level using the following commands: RS G8052(config)# interface port RS G8052(configif)# spanningtree guard root The default state is “none”, i.e. disabled. Loop Guard In general, STP resolves redundant network topologies into loop-free topologies. The loop guard feature performs additional checking to detect loops that might not be found using Spanning Tree. STP loop guard ensures that a non-designated port does not become a designated port. To globally enable loop guard, enter the following command: RS G8052(config)# spanningtree loopguard Note: The global loop guard command will be effective on a port only if the port-level loop guard command is set to default as shown below: RS G8052(config)# interface port RS G8052(configif)# no spanningtree guard To enable loop guard at the port level, enter the following command: RS G8052(config)# interface port RS G8052(configif)# spanningtree guard loop 164 G8052 Application Guide for N/OS 8.3 The default state is “none” (disabled). Port Path Cost The port path cost assigns lower values to high-bandwidth ports, such as 10 Gigabit Ethernet, to encourage their use. The objective is to use the fastest links so that the route with the lowest cost is chosen. A value of 0 (the default) indicates that the default cost will be computed for an auto-negotiated link or trunk speed. Use the following command to modify the port path cost: RS G8052(config)# interface port RS G8052(configif)# spanningtree stp pathcost RS G8052(configif)# exit The port path cost can be a value from 1 to 200000000. Specify 0 for automatic path cost. Simple STP Configuration Figure 11 depicts a simple topology using a switch-to-switch link between two G8052 1 and 2. Figure 11. Spanning Tree Blocking a Switch-to-Switch Link Enterprise Routing Switches Switch 1 Switch 2 x STP Blocks Link Server Server Server Server To prevent a network loop among the switches, STP must block one of the links between them. In this case, it is desired that STP block the link between the Lenovo switches, and not one of the G8052 uplinks or the Enterprise switch trunk. © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 165 During operation, if one G8052 experiences an uplink failure, STP will activate the Lenovo switch-to-switch link so that server traffic on the affected G8052 may pass through to the active uplink on the other G8052, as shown in Figure 12. Figure 12. Spanning Tree Restoring the Switch-to-Switch Link Enterprise Routing Switches Switch 1 Server Uplink Failure STP Restores Link Server Server Switch 2 Server In this example, port 10 on each G8052 is used for the switch-to-switch link. To ensure that the G8052 switch-to-switch link is blocked during normal operation, the port path cost is set to a higher value than other paths in the network. To configure the port path cost on the switch-to-switch links in this example, use the following commands on each G8052. RS G8052(config)# interface port 10 RS G8052(configif)# spanningtree stp 1 pathcost 60000 RS G8052(configif)# exit 166 G8052 Application Guide for N/OS 8.3 Per-VLAN Spanning Tree Groups PVRST mode supports a maximum of 128 STGs, with each STG acting as an independent, simultaneous instance of STP. Multiple STGs provide multiple data paths which can be used for load-balancing and redundancy. To enable load balancing between two G8052s using multiple STGs, configure each path with a different VLAN and then assign each VLAN to a separate STG. Since each STG is independent, they each send their own IEEE 802.1Q tagged Bridge Protocol Data Units (BPDUs). Each STG behaves as a bridge group and forms a loop-free topology. The default STG 1 may contain multiple VLANs (typically until they can be assigned to another STG). STGs 2-128 may contain only one VLAN each. Using Multiple STGs to Eliminate False Loops Figure 13 shows a simple example of why multiple STGs are needed. In the figure, two ports on a G8052 are connected to two ports on an application switch. Each of the links is configured for a different VLAN, preventing a network loop. However, in the first network, since a single instance of Spanning Tree is running on all the ports of the G8052, a physical loop is assumed to exist, and one of the VLANs is blocked, impacting connectivity even though no actual loop exists. Figure 13. Using Multiple Instances of Spanning Tree Group False x Loop Switch 2 VLAN 30 VLAN 1 Switch 1 STG 1 VLAN 1 is active STG 2 VLAN 30 is active Application Switch Application Switch With a single Spanning Tree, one link becomes blocked. Using multiple STGs, both links may be active. In the second network, the problem of improper link blocking is resolved when the VLANs are placed into different Spanning Tree Groups (STGs). Since each STG has its own independent instance of Spanning Tree, each STG is responsible only for the loops within its own VLAN. This eliminates the false loop, and allows both VLANs to forward packets between the switches at the same time. © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 167 VLANs and STG Assignment In PVRST mode, up to 128 STGs are supported. Ports cannot be added directly to an STG. Instead, ports must be added as members of a VLAN, and the VLAN must then be assigned to the STG. STG 1 is the default STG. Although VLANs can be added to or deleted from default STG 1, the STG itself cannot be deleted from the system. By default, STG 1 is enabled and includes VLAN 1, which by default includes all switch ports By default, all other STGs (STG 2 through 128) are enabled, though they initially include no member VLANs. VLANs must be assigned to STGs. By default, this is done automatically using VLAN Automatic STG Assignment (VASA), though it can also be done manually (see “Manually Assigning STGs” on page 168. Note: VLAN assignment to STG 128 must be done manually. When VASA is enabled (as by default), each time a new VLAN is configured, the switch will automatically assign that new VLAN to its own STG. Conversely, when a VLAN is deleted, if its STG is not associated with any other VLAN, the STG is returned to the available pool. The specific STG number to which the VLAN is assigned is based on the VLAN number itself. For low VLAN numbers (1 through 127), the switch will attempt to assign the VLAN to its matching STG number. For higher numbered VLANs, the STG assignment is based on a simple modulus calculation; the attempted STG number will “wrap around,” starting back at the top of STG list each time the end of the list is reached. However, if the attempted STG is already in use, the switch will select the next available STG. If an empty STG is not available when creating a new VLAN, the VLAN is automatically assigned to default STG 1. If ports are tagged, each tagged port sends out a special BPDU containing the tagged information. Also, when a tagged port belongs to more than one STG, the egress BPDUs are tagged to distinguish the BPDUs of one STG from those of another STG. VASA is enabled by default, but can be disabled or re-enabled using the following commands: RS G8052(config)# [no] spanningtree stgauto If VASA is disabled, when you create a new VLAN, that VLAN automatically belongs to default STG 1. To place the VLAN in a different STG, assign it manually. VASA applies only to PVRST mode and is ignored in RSTP and MSTP modes. Manually Assigning STGs The administrator may manually assign VLANs to specific STGs, whether or not VASA is enabled. 1. If no VLANs exist (other than default VLAN 1), see “Guidelines for Creating VLANs” on page 169 for information about creating VLANs and assigning ports to them. 2. Assign the VLAN to an STG using one of the following methods: 168 G8052 Application Guide for N/OS 8.3 From the global configuration mode: RS G8052(config)# spanningtree stp vlan Or from within the VLAN configuration mode: RS G8052(config)# vlan RS G8052(configvlan)# stg RS G8052(configvlan)# exit When a VLAN is assigned to a new STG, the VLAN is automatically removed from its prior STG. Note: For proper operation with switches that use Cisco PVST+, it is recommended that you create a separate STG for each VLAN. Guidelines for Creating VLANs Follow these guidelines when creating VLANs: When you create a new VLAN, if VASA is enabled (the default), that VLAN is automatically assigned its own STG. If VASA is disabled, the VLAN automatically belongs to STG 1, the default STG. To place the VLAN in a different STG, see “Manually Assigning STGs” on page 168. The VLAN is automatically removed from its old STG before being placed into the new STG. Each VLANs must be contained within a single STG; a VLAN cannot span multiple STGs. By confining VLANs within a single STG, you avoid problems with Spanning Tree blocking ports and causing a loss of connectivity within the VLAN. When a VLAN spans multiple switches, it is recommended that the VLAN remain within the same STG (be assigned the same STG ID) across all the switches. If ports are tagged, all trunked ports can belong to multiple STGs. A port cannot be directly added to an STG. The port must first be added to a VLAN, and that VLAN added to the desired STG. Rules for VLAN Tagged/Trunk Mode Ports The following rules apply to VLAN tagged ports: © Copyright Lenovo 2015 Tagged/trunk mode ports can belong to more than one STG, but untagged/access mode ports can belong to only one STG. When a tagged/trunk mode port belongs to more than one STG, the egress BPDUs are tagged to distinguish the BPDUs of one STG from those of another STG. Chapter 10: Spanning Tree Protocols 169 Adding and Removing Ports from STGs The following rules apply when you add ports to or remove ports from STGs: When you add a port to a VLAN that belongs to an STG, the port is also added to that STG. However, if the port you are adding is an untagged port and is already a member of another STG, that port will be removed from its current STG and added to the new STG. An untagged port cannot belong to more than one STG. For example: Assume that VLAN 1 belongs to STG 1, and that port 1 is untagged and does not belong to any STG. When you add port 1 to VLAN 1, port 1 will automatically become part of STG 1. However, if port 5 is untagged and is a member of VLAN 3 in STG 2, then adding port 5 to VLAN 1 in STG 1 will change the port PVID from 3 to 1: "Port 5 is an UNTAGGED/Access Mode port and its PVID/NativeVLAN changed from 3 to 1. When you remove a port from VLAN that belongs to an STG, that port will also be removed from the STG. However, if that port belongs to another VLAN in the same STG, the port remains in the STG. As an example, assume that port 2 belongs to only VLAN 2, and that VLAN 2 belongs to STG 2. When you remove port 2 from VLAN 2, the port is moved to default VLAN 1 and is removed from STG 2. However, if port 2 belongs to both VLAN 1 and VLAN 2, and both VLANs belong to STG 1, removing port 2 from VLAN 2 does not remove port 2 from STG 1 because the port is still a member of VLAN 1, which is still a member of STG 1. An STG cannot be deleted, only disabled. If you disable the STG while it still contains VLAN members, Spanning Tree will be off on all ports belonging to that VLAN. The relationship between port, trunk groups, VLANs, and Spanning Trees is shown in Table 16 on page 162. 170 G8052 Application Guide for N/OS 8.3 The Switch-Centric Model PVRST is switch-centric: STGs are enforced only on the switch where they are configured. PVRST allows only one VLAN per STG, except for the default STG 1 to which multiple VLANs can be assigned. The STG ID is not transmitted in the Spanning Tree BPDU. Each Spanning Tree decision is based entirely on the configuration of the particular switch. For example, in Figure 14, each switch is responsible for the proper configuration of its own ports, VLANs, and STGs. Switch A identifies its own port 17 as part of VLAN 2 on STG 2, and the Switch B identifies its own port 8 as part of VLAN 2 on STG 2. Figure 14. Implementing PVRST Chassis Switch A Application Switch B 17 STG 2 8 VLAN 2 18 2 STG 3 VLAN 3 8 1 STG 1 VLAN 1 2 1 1 Application Switch C 8 Application Switch D The VLAN participation for each Spanning Tree Group in Figure 14 on page 171 is as follows: VLAN 1 Participation Assuming Switch B to be the root bridge, Switch B transmits the BPDU for STG 1 on ports 1 and 2. Switch C receives the BPDU on port 2, and Switch D receives the BPDU on port 1. Because there is a network loop between the switches in VLAN 1, either Switch D will block port 8 or Switch C will block port 1, depending on the information provided in the BPDU. VLAN 2 Participation Switch B, the root bridge, generates a BPDU for STG 2 from port 8. Switch A receives this BPDU on port 17, which is assigned to VLAN 2, STG 2. Because switch B has no additional ports participating in STG 2, this BPDU is not forwarded to any additional ports and Switch B remains the designated root. VLAN 3 Participation For VLAN 3, Switch A or Switch C may be the root bridge. If Switch A is the root bridge for VLAN 3, STG 3, then Switch A transmits the BPDU from port 18. Switch C receives this BPDU on port 8 and is identified as participating in VLAN 3, STG 3. Since Switch C has no additional ports participating in STG 3, this BPDU is not forwarded to any additional ports and Switch A remains the designated root. © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 171 Configuring Multiple STGs This configuration shows how to configure the three instances of STGs on the switches A, B, C, and D illustrated in Figure 14 on page 171. Because VASA is enabled by default, each new VLAN is automatically assigned its own STG. 1. Set the Spanning Tree mode on each switch to PVRST. RS G8052(config)# spanningtree mode pvrst Note: PVRST is the default mode on the G8052. This step is not required unless the STP mode has been previously changed, and is shown here merely as an example of manual configuration. 2. Configure the following on Switch A: a. Enable VLAN 2 and VLAN 3. RS RS RS RS G8052(config)# vlan G8052(configvlan)# G8052(config)# vlan G8052(configvlan)# 2 exit 3 exit If VASA is disabled, enter the following commands: RS G8052(config)# spanningtree stp 2 vlan 2 RS G8052(config)# spanningtree stp 3 vlan 3 b. Add port 17 to VLAN 2, port 18 to VLAN 3. RS RS RS RS G8052(config)# interface port 17 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 2 G8052(configif)# exit RS RS RS RS G8052(config)# interface port 18 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 3 G8052(configif)# exit VLAN 2 and VLAN 3 are removed from STG 1. Note: In PVRST mode, each instance of STG is enabled by default. 172 G8052 Application Guide for N/OS 8.3 3. Configure the following on Switch B: a. Add port 8 to VLAN 2. Ports 1 and 2 are by default in VLAN 1 assigned to STG 1. RS RS RS RS RS RS G8052(config)# vlan 2 G8052(configvlan)# exit G8052(config)# interface port 8 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 2 G8052(configif)# exit If VASA is disabled, enter the following command: RS G8052(config)# spanningtree stp 2 vlan 2 b. VLAN 2 is automatically removed from STG 1. By default VLAN 1 remains in STG 1. 4. Configure the following on application switch C: a. Add port 8 to VLAN 3. Ports 1 and 2 are by default in VLAN 1 assigned to STG 1. RS RS RS RS RS RS G8052(config)# vlan 3 G8052(configvlan)# exit G8052(config)# interface port 8 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 3 G8052(configif)# exit If VASA is disabled, enter the following command: RS G8052(config)# spanningtree stp 3 vlan 3 b. VLAN 3 is automatically removed from STG 1. By default VLAN 1 remains in STG 1. 5. Switch D does not require any special configuration for multiple Spanning Trees. Switch D uses default STG 1 only. © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 173 Rapid Spanning Tree Protocol RSTP provides rapid convergence of the Spanning Tree and provides the fast re-configuration critical for networks carrying delay-sensitive traffic such as voice and video. RSTP significantly reduces the time to reconfigure the active topology of the network when changes occur to the physical topology or its configuration parameters. RSTP reduces the bridged-LAN topology to a single Spanning Tree. RSTP was originally defined in IEEE 802.1w (2001) and was later incorporated into IEEE 802.1D (2004), superseding the original STP standard. RSTP parameters apply only to Spanning Tree Group (STG) 1. The PVRST mode STGs 2-128 are not used when the switch is placed in RSTP mode. RSTP is compatible with devices that run IEEE 802.1D (1998) Spanning Tree Protocol. If the switch detects IEEE 802.1D (1998) BPDUs, it responds with IEEE 802.1D (1998)-compatible data units. RSTP is not compatible with Per-VLAN Rapid Spanning Tree (PVRST) protocol. Port States RSTP port state controls are the same as for PVRST: discarding, learning, and forwarding. Due to the sequence involved in these STP states, considerable delays may occur while paths are being resolved. To mitigate delays, ports defined as edge/portfast ports (“Port Type and Link Type” on page 180) may bypass the discarding and learning states, and enter directly into the forwarding state. RSTP Configuration Guidelines This section provides important information about configuring RSTP. When RSTP is turned on, the following occurs: 174 STP parameters apply only to STG 1. Only STG 1 is available. All other STGs are turned off. All VLANs are moved to STG 1. G8052 Application Guide for N/OS 8.3 RSTP Configuration Example This section provides steps to configure RSTP. 1. Configure port and VLAN membership on the switch. 2. Set the Spanning Tree mode to Rapid Spanning Tree. RS G8052(config)# spanningtree mode rstp 3. Configure RSTP parameters. RS RS RS RS RS G8052(config)# G8052(config)# G8052(config)# G8052(config)# G8052(config)# spanning-tree stp 1 bridge priority 8192 spanning-tree stp 1 bridge hello-time 5 spanning-tree stp 1 bridge forward-delay 20 spanning-tree stp 1 bridge maximum-age 30 no spanning-tree stp 1 enable 4. Configure port parameters: RS RS RS RS RS © Copyright Lenovo 2015 G8052(config)# interface port 3 G8052(config-if)# spanning-tree stp 1 priority 240 G8052(config-if)# spanning-tree stp 1 path-cost 500 G8052(config-if)# no spanning-tree stp 1 enable G8052(config-if)# exit Chapter 10: Spanning Tree Protocols 175 Multiple Spanning Tree Protocol Multiple Spanning Tree Protocol (MSTP) extends Rapid Spanning Tree Protocol (RSTP), allowing multiple Spanning Tree Groups (STGs) which may each include multiple VLANs. MSTP was originally defined in IEEE 802.1s (2002) and was later included in IEEE 802.1Q (2003). In MSTP mode, the G8052 supports up to 32 instances of Spanning Tree, corresponding to STGs 1-32, with each STG acting as an independent, simultaneous instance of RSTP. MSTP allows frames assigned to different VLANs to follow separate paths, with each path based on an independent Spanning Tree instance. This approach provides multiple forwarding paths for data traffic, thereby enabling load-balancing, and reducing the number of Spanning Tree instances required to support a large number of VLANs. Due to Spanning Tree’s sequence of discarding, learning, and forwarding, lengthy delays may occur while paths are being resolved. Ports defined as edge/portfast ports (“Port Type and Link Type” on page 180) bypass the Discarding and Learning states, and enter directly into the Forwarding state. MSTP Region A group of interconnected bridges that share the same attributes is called an MST region. Each bridge within the region must share the following attributes: Alphanumeric name Revision number VLAN-to STG mapping scheme MSTP provides rapid re-configuration, scalability and control due to the support of regions, and multiple Spanning-Tree instances support within each region. Common Internal Spanning Tree The Common Internal Spanning Tree (CIST) or MST0 provides a common form of Spanning Tree Protocol, with one Spanning-Tree instance that can be used throughout the MSTP region. CIST allows the switch to interoperate with legacy equipment, including devices that run IEEE 802.1D (1998) STP. CIST allows the MSTP region to act as a virtual bridge to other bridges outside of the region, and provides a single Spanning-Tree instance to interact with them. CIST port configuration includes Hello time, Edge/portfast port enable/disable, and Link Type. These parameters do not affect Spanning Tree Groups 1–32. They apply only when the CIST is used. 176 G8052 Application Guide for N/OS 8.3 MSTP Configuration Guidelines This section provides important information about configuring Multiple Spanning Tree Groups: When the switch initially has PVRST mode enabled and VLANs 1-127 are configured and distributed to STGs 1-127, when you turn on MSTP, the switch moves VLAN 1 and VLANs 33-128 to the CIST. When MSTP is turned off, the switch moves VLAN 1 and VLANs 33-127 from the CIST to STG 1. When you enable MSTP, a default revision number of 1 and a blank region name are automatically configured. MSTP Configuration Examples Example 1 This section provides steps to configure MSTP on the G8052. 1. Configure port and VLAN membership on the switch. 2. Configure Multiple Spanning Tree region parameters, and set the mode to MSTP. RS G8052(config)# spanningtree mst configuration (Enter MST configuration mode) RS G8052(configmst)# name (Define the Region name) RS G8052(configmst)# revision <0 – 65535>(Define the Region revision number) RS G8052(configmst)# exit RS G8052(config)# spanningtree mode mst(Set mode to Multiple Spanning Trees) 3. Map VLANs to MSTP instances: RS G8052(config)# spanningtree mst configuration (Enter MST configuration mode) RS G8052(configmst)# instance vlan © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 177 Example 2 This configuration shows how to configure MSTP Groups on the switch, as shown in Figure 14. Figure 15. Implementing Multiple Spanning Tree Groups Enterprise Routing Switch Enterprise Routing Switch MSTP Group 1 Root MSTP Group 2 Root Passing VLAN 1 Blocking VLAN 2 Server 1 VLAN 1 Server 2 VLAN 1 Blocking VLAN 1 Passing VLAN 2 Server 3 VLAN 2 Server 4 VLAN 2 This example shows how multiple Spanning Trees can provide redundancy without wasting any uplink ports. In this example, the server ports are split between two separate VLANs. Both VLANs belong to two different MSTP groups. The Spanning Tree priority values are configured so that each routing switch is the root for a different MSTP instance. All of the uplinks are active, with each uplink port backing up the other. 1. Configure port membership and define the STGs for VLAN 1. Enable tagging on uplink ports that share VLANs. Port 19 and port 20 connect to the Enterprise Routing switches. RS G8052(config)# interface port 19, 20 RS G8052(configif)# switchport mode trunk RS G8052(configif)# exit 2. Configure MSTP: Spanning Tree mode, region name, and version. RS G8052(config)# spanningtree mst configuration RS G8052(configmst)# name MyRegion (Define the Region name) RS G8052(configmst)# revision 100 (Define the Revision level) RS G8052(configmst)# exit RS G8052(config)# spanningtree mode mst(Set mode to Multiple Spanning Trees) 178 G8052 Application Guide for N/OS 8.3 3. Map VLANs to MSTP instances: RS G8052(config)# spanningtree mst configuration RS G8052(configmst)# instance 1 vlan 1 RS G8052(configmst)# instance 2 vlan 2 4. Configure port membership and define the STGs for VLAN 2. Add server ports 3 and 4 to VLAN 2. Uplink ports 19 and 20 are automatically added to VLAN 2. Assign VLAN 2 to STG 2. RS G8052(config)# interface port 3,4 RS G8052(configif)# switchport access vlan 2 RS G8052(configif)# exit Note: Each STG is enabled by default. © Copyright Lenovo 2015 Chapter 10: Spanning Tree Protocols 179 Port Type and Link Type Edge/Portfast Port A port that does not connect to a bridge is called an edge port. Since edge ports are assumed to be connected to non-STP devices (such as directly to hosts or servers), they are placed in the forwarding state as soon as the link is up. Edge ports send BPDUs to upstream STP devices like normal STP ports, but do not receive BPDUs. If a port with edge enabled does receive a BPDU, it immediately begins working as a normal (non-edge) port, and participates fully in Spanning Tree. Use the following commands to define or clear a port as an edge port: RS G8052(config)# interface port RS G8052(configif)# [no] spanningtree portfast RS G8052(configif)# exit Link Type The link type determines how the port behaves in regard to Rapid Spanning Tree. Use the following commands to define the link type for the port: RS G8052(config)# interface port RS G8052(configif)# [no] spanningtree linktype RS G8052(configif)# exit where type corresponds to the duplex mode of the port, as follows: p2p A full-duplex link to another device (point-to-point) shared A half-duplex link is a shared segment and can contain more than one device. auto The switch dynamically configures the link type. Note: Any STP port in full-duplex mode can be manually configured as a shared port when connected to a non-STP-aware shared device (such as a typical Layer 2 switch) used to interconnect multiple STP-aware devices. 180 G8052 Application Guide for N/OS 8.3 Chapter 11. Virtual Link Aggregation Groups In many data center environments, downstream servers or switches connect to upstream devices which consolidate traffic. For example, see Figure 16. Figure 16. Typical Data Center Switching Layers with STP vs. VLAG ISL Aggregation Layer STP blocks implicit loops VLAGs VLAG Peers Links remain active Access Layer Servers As shown in the example, a switch in the access layer may be connected to more than one switch in the aggregation layer to provide for network redundancy. Typically, Spanning Tree Protocol (RSTP, PVRST, or MSTP—see Chapter 10, “Spanning Tree Protocols) is used to prevent broadcast loops, blocking redundant uplink paths. This has the unwanted consequence of reducing the available bandwidth between the layers by as much as 50%. In addition, STP may be slow to resolve topology changes that occur during a link failure, and can result in considerable MAC address flooding. Using Virtual Link Aggregation Groups (VLAGs), the redundant uplinks remain active, utilizing all available bandwidth. Two switches are paired into VLAG peers, and act as a single virtual entity for the purpose of establishing a multi-port trunk. Ports from both peers can be grouped into a VLAG and connected to the same LAG-capable target device. From the perspective of the target device, the ports connected to the VLAG peers appear to be a single trunk connecting to a single logical device. The target device uses the configured Tier ID to identify the VLAG peers as this single logical device. It is important that you use a unique Tier ID for each VLAG pair you configure. The VLAG-capable switches synchronize their logical view of the access layer port structure and internally prevent implicit loops. The VLAG topology also responds more quickly to link failure and does not result in unnecessary MAC flooding. VLAGs are also useful in multi-layer environments for both uplink and downlink redundancy to any regular LAG-capable device. For example: © Copyright Lenovo 2015 181 Figure 17. VLAG Application with Multiple Layers Layer 2/3 Border LACP-capable Routers Trunk Trunk VLAG 5 VLAG 6 ISL Layer 2 Region with multiple levels VLAG Peers C Trunk VLAG 3 VLAG 3 VLAG 4 ISL VLAG Peers A ISL VLAG Peers B VLAG 1 Trunk Servers VLAG 2 LACP-capable Switch Trunk LACP-capable Server Wherever ports from both peered switches are trunked to another device, the trunked ports must be configured as a VLAG. For example, VLAGs 1 and 3 must be configured for both VLAG Peer A switches. VLAGs 2 and 4 must be configured for both VLAG Peer B switches.VLAGs 3, 5, and 6 must be configured on both VLAG Peer C switches. Other devices connecting to the VLAG peers are configured using regular static or dynamic trunks. Note: Do not configure a VLAG for connecting only one switch in the peer set to another device or peer set. For instance, in VLAG Peer C, a regular trunk is employed for the downlink connection to VLAG Peer B because only one of the VLAG Peer C switches is involved. 182 G8052 Application Guide for N/OS 8.3 In addition, when used with VRRP, VLAGs can provide seamless active-active failover for network links. For example Figure 18. VLAG Application with VRRP: VLAG Peers ISL VRRP Master VLAG Server VRRP Backup Active Traffic Flows VLAG Capacities Servers or switches that connect to the VLAG peers using a multi-port VLAG are considered VLAG clients. VLAG clients are not required to be VLAG-capable. The ports participating in the VLAG are configured as regular port trunks on the VLAG client end. On the VLAG peers, the VLAGs are configured similarly to regular port trunks, using many of the same features and rules. See Chapter 9, “Ports and Trunking” for general information concerning all port trunks. Each VLAG begins as a regular port trunk on each VLAG-peer switch. The VLAG may be either a static trunk group (portchannel) or dynamic LACP trunk group, and consumes one slot from the overall port trunk capacity pool. The trunk type must match that used on VLAG client devices. Additional configuration is then required to implement the VLAG on both VLAG peer switches. You may configure up to 52 trunk groups on the switch, with all types (regular or VLAG, static or LACP) sharing the same pool. The maximum number of supported VLAG instances is as follows: With STP off: Maximum of 31 VLAG instances With STP on: PVRST/MSTP with one VLAG instance per VLAN/STG: Maximum of 31 VLAG instances PVRST/MSTP with one VLAG instance belonging to multiple VLANs/STGs: Maximum of 15 VLAG instances Each trunk type can contain up to 8 member ports, depending on the port type and availability. © Copyright Lenovo 2015 Chapter 11: Virtual Link Aggregation Groups 183 VLAGs versus Port Trunks Though similar to regular port trunks in many regards, VLAGs differ from regular port trunks in a number of important ways: 184 A VLAG can consist of multiple ports on two VLAG peers, which are connected to one logical client device such as a server, switch, or another VLAG device. The participating ports on the client device are configured as a regular port trunk. The VLAG peers must be the same model, and run the same software version. VLAG peers require a dedicated inter-switch link (ISL) for synchronization. The ports used to create the ISL must have the following properties: ISL ports must have VLAN tagging turned on. ISL ports must be configured for all VLAG VLANs. ISL ports must be placed into a regular port trunk group (dynamic or static). A minimum of two ports on each switch are recommended for ISL use. Dynamic routing protocols, such as OSPF, cannot terminate on VLAGs. Routing over VLAGs is not supported. However, IP forwarding between subnets served by VLAGs can be accomplished using VRRP. VLAGs are configured using additional commands. It is recommended that end-devices connected to VLAG switches use NICs with dual-homing. This increases traffic efficiency, reduces ISL load, and provides faster link failover. G8052 Application Guide for N/OS 8.3 Configuring VLAGs When configuring VLAG or making changes to your VLAG configuration, consider the following VLAG behavior: When adding a static Mrouter on VLAG links, ensure that you also add it on the ISL link to avoid VLAG link failure. If the VLAG link fails, traffic cannot be recovered through the ISL. Also ensure you add the same static entry on the peer VLAG switch for VLAG ports. If you have enabled VLAG on the switch, and you need to change the STP mode, ensure that you first disable VLAG and then change the STP mode. When VLAG is enabled, you may see two root ports on the secondary VLAG switch. One of these will be the actual root port for the secondary VLAG switch and the other will be a root port synced with the primary VLAG switch. The LACP key used must be unique for each VLAG in the entire topology. The STG to VLAN mapping on both VLAG peers must be identical. The following parameters must be identically configured on the VLAG ports of both the VLAG peers: © Copyright Lenovo 2015 VLANs Native VLAN tagging Native VLAN/PVID STP mode BPDU Guard setting STP port setting MAC aging timers Static MAC entries ACL configuration parameters QoS configuration parameters Chapter 11: Virtual Link Aggregation Groups 185 Basic VLAG Configuration Figure 19 shows an example configuration where two VLAG peers are used for aggregating traffic from downstream devices. Figure 19. Basic VLAGs ISL VLAG Peer 1 1 2 Mgmt IP: 10.10.10.1/24 8 9 VLAG Peer 2 2 3 LACP 200 VLAG 1 LACP 1000 VLAN 100 Client Switch Mgmt IP: 10.10.10.2/24 7 8 VLAG 2 LACP 2000 VLAN 100 Client Switch In this example, each client switch is connected to both VLAG peers. On each client switch, the ports connecting to the VLAG peers are configured as a dynamic LACP port trunk. The VLAG peer switches share a dedicated ISL for synchronizing VLAG information. On the individual VLAG peers, each port leading to a specific client switch (and part of the client switch’s port trunk) is configured as a VLAG. In the following example configuration, only the configuration for VLAG 1 on VLAG Peer 1 is shown. VLAG Peer 2 and all other VLAGs are configured in a similar fashion. Configuring the ISL The ISL connecting the VLAG peers is shared by all their VLAGs. The ISL needs to be configured only once on each VLAG peer. 1. Configure STP if required. Use PVRST or MSTP mode only: RS G8052(config)# spanningtree mode pvrst 2. Configure the ISL ports and place them into a port trunk group: RS RS RS RS RS RS G8052(config)# interface port 12 G8052(configif)# switchport mode trunk G8052(configif)# lacp mode active G8052(configif)# lacp key 200 G8052(configif)# exit G8052(config)# vlag isl adminkey 200 Notes: 186 G8052 Application Guide for N/OS 8.3 In this case, a dynamic trunk group is shown. A static trunk (portchannel) could be configured instead. ISL ports and VLAG ports must be members of the same VLANs. 3. Configure VLAG Tier ID. This is used to identify the VLAG switch in a multi-tier environment. RS G8052(config)# vlag tierid 10 4. Configure the ISL for the VLAG peer. Make sure you configure the VLAG peer (VLAG Peer 2) using the same ISL trunk type (dynamic or static), the same VLAN for VLAG and VLAG ISL ports, and the same STP mode and tier ID used on VLAG Peer 1. 5. Enable VLAG globally. RS G8052(config)# vlag enable Configuring the VLAG To configure the VLAG: 1. Configure the VLAN for VLAG 1 ports. Make sure members include the ISL and VLAG 1 ports. Once the VLAN is ready, the ISL ports are automatically added to it. RS RS RS RS RS RS G8052(config)# vlan 100 G8052(configvlan)# exit G8052(config)# interface port 8 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 100 G8052(configif)# exit Note: In MSTP mode, VLANs are automatically mapped to CIST. 2. Place the VLAG 1 port(s) in a port trunk group: RS RS RS RS G8052(config)# interface port 8 G8052(configif)# lacp mode active G8052(configif)# lacp key 1000 G8052(configif)# exit 3. Assign the trunk to the VLAG: RS G8052(config)# vlag adminkey 1000 enable 4. Continue by configuring all required VLAGs on VLAG Peer 1, and then repeat the configuration for VLAG Peer 2. For each corresponding VLAG on the peer, the port trunk type (dynamic or static), VLAN, STP mode, and ID must be the same as on VLAG Peer 1. © Copyright Lenovo 2015 Chapter 11: Virtual Link Aggregation Groups 187 5. Enable VLAG globally. RS G8052(config)# vlag enable 6. Verify the completed configuration: # show vlag information 188 G8052 Application Guide for N/OS 8.3 VLAG Configuration - VLANs Mapped to MSTI Follow the steps in this section to configure VLAG in environments where the STP mode is MSTP and no previous VLAG was configured. Configuring the ISL The ISL connecting the VLAG peers is shared by all their VLAGs. The ISL needs to be configured only once on each VLAG peer. Ensure you have the same region name, revision and VLAN-to-STG mapping on both VLAG switches. 1. Configure STP: RS G8052(config)# spanningtree mode mst 2. Configure the ISL ports and place them into a portchannel (dynamic or static): RS RS RS RS RS RS G8052(config)# interface port 12 G8052(configif)# switchport mode trunk G8052(configif)# lacp mode active G8052(configif)# lacp key 200 G8052(configif)# exit G8052(config)# vlag isl adminkey 200 Notes: In this case, a dynamic trunk group is shown. A static trunk (portchannel) could be configured instead. ISL ports and VLAG ports must be members of the same VLANs. 3. Configure the VLAG Tier ID. This is used to identify the VLAG switch in a multi-tier environment. RS G8052(config)# vlag tierid 10 4. Configure the ISL for the VLAG peer. Make sure you configure the VLAG peer (VLAG Peer 2) using the same ISL trunk type (dynamic or static), the same VLAN for VLAG and VLAG ISL ports, and the same STP mode and tier ID used on VLAG Peer 1. 5. Enable VLAG. RS G8052(config)# vlag enable © Copyright Lenovo 2015 Chapter 11: Virtual Link Aggregation Groups 189 Configuring the VLAG To configure the VLAG: 1. Configure the VLAN for VLAG 1 ports. Once the VLAN s ready, the ISL ports are automatically added to it. RS RS RS RS RS G8052(config)# vlan 100 G8052(configvlan)# exit G8052(config)# interface port 8 G8052(configif)# switchport mode trunk G8052(configif)# exit 2. Map the VLAN to an MSTI. RS G8052(config)# spanningtree mst configuration RS G8052(configmst)# instance 1 vlan 100 3. Place the VLAG 1 port(s) in a trunk group (static or dynamic) and assign it to the VLAG: RS RS RS RS RS G8052(config)# interface port 8 G8052(configif)# lacp mode active G8052(configif)# lacp key 1000 G8052(configif)# exit G8052(config)# vlag adminkey 1000 enable 4. Enable VLAG: RS G8052(config)# vlag enable 5. Continue by configuring all required VLAGs on VLAG Peer 1, and then follow the steps for configuring VLAG Peer 2. For each corresponding VLAG on the peer, the port trunk type (dynamic or static), the port’s VLAN, and STP mode and ID must be the same as on VLAG Peer 1. 6. Verify the completed configuration: RS G8052# show vlag information 190 G8052 Application Guide for N/OS 8.3 VLAGs with VRRP Note: In a multi-layer environment, configure VRRP separately for each layer. We recommend that you configure VRRP only on the tier with uplinks. See “Configuring VLAGs in Multiple Layers” on page 196. VRRP (see Chapter 33, “Virtual Router Redundancy Protocol”) can be used in conjunction with VLAGs and LACP-capable devices to provide seamless redundancy. Figure 20. Active-Active Configuration using VRRP and VLAGs VRRP Master Server 1 VLAG Peer 1 Layer 3 Router VLAG 1 VIR: 10.0.1.100 1 10.0.1.1 10 11 2 Internet 4 5 4 5 VLAG 2 12 Server 2 ISL 10.0.1.2 10 1 11 12 VLAG 3 Server 3 2 Layer 3 Router VRRP Backup 10.0.1.3 VLAG Peer 2 VIR: 10.0.1.100 Network 10.0.1.0/24 Task 1: Configure VLAG Peer 1 Note: Before enabling VLAG, you must configure the VLAG tier ID and ISL portchannel. 1. Configure VLAG tier ID RS G8052(config)# vlag tierid 10 2. Configure appropriate routing. RS RS RS RS G8052(config)# router ospf G8052(configrouterospf)# area 1 areaid 0.0.0.1 G8052(configrouterospf)# enable G8052(configrouterospf)# exit Although OSPF is used in this example, static routing could also be deployed. For more information, see Chapter 29, “Open Shortest Path First” or Chapter 20, “Basic IP Routing.” 3. Configure a server-facing interface. RS RS RS RS © Copyright Lenovo 2015 G8052(config)# interface ip 3 G8052(configipif)# ip address 10.0.1.10 255.255.255.0 G8052(configipif)# vlan 100 G8052(configipif)# exit Chapter 11: Virtual Link Aggregation Groups 191 4. Turn on VRRP and configure the Virtual Interface Router. RS RS RS RS RS RS G8052(config)# router vrrp G8052(configvrrp)# enable G8052(configvrrp)# virtualrouter G8052(configvrrp)# virtualrouter G8052(configvrrp)# virtualrouter G8052(configvrrp)# virtualrouter 1 1 1 1 virtualrouterid 1 interface 3 address 10.0.1.100 enable 5. Set the priority of Virtual Router 1 to 101, so that it becomes the Master. RS G8052(configvrrp)# virtualrouter 1 priority 101 RS G8052(configvrrp)# exit 6. Configure the ISL ports and place them into a port trunk group: RS RS RS RS RS G8052(config)# interface port 45 G8052(configif)# switchport mode trunk G8052(configif)# lacp mode active G8052(configif)# lacp key 2000 G8052(configif)# exit Note: In this case, a dynamic trunk group is shown. A static trunk (portchannel) could be configured instead. 7. Configure the upstream ports. RS RS RS RS RS RS G8052(config)# interface port 1 G8052(configif)# switchport access vlan 10 G8052(configif)# exit G8052(config)# interface port 2 G8052(configif)# switchport access vlan 20 G8052(configif)# exit 8. Configure the server ports. RS RS RS RS RS RS RS RS RS 192 G8052(config)# interface port 10 G8052(configif)# switchport access vlan 100 G8052(configif)# exit G8052(config)# interface port 11 G8052(configif)# switchport access vlan 100 G8052(configif)# exit G8052(config)# interface port 12 G8052(configif)# switchport access vlan 100 G8052(configif)# exit G8052 Application Guide for N/OS 8.3 9. Configure all VLANs including VLANs for the VLAGs. RS G8052(config)# vlan 10 RS G8052(configvlan)# exit RS G8052(config)# vlan 20 RS G8052(configvlan)# exit RS RS RS RS RS RS G8052(config)# vlan 100 G8052(configvlan)# exit G8052(config)# interface port 45 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 100 G8052(configif)# exit 10. Configure Internet-facing interfaces. RS RS RS RS RS RS RS RS RS RS RS RS RS RS G8052(config)# interface ip 1 G8052(configipif)# ip address 172.1.1.10 255.255.255.0 G8052(configipif)# vlan 10 G8052(configipif)# enable G8052(configipif)# ip ospf area 1 G8052(configipif)# ip ospf enable G8052(configipif)# exit G8052(config)# interface ip 2 G8052(configipif)# ip address 172.1.3.10 255.255.255.0 G8052(configipif)# vlan 20 G8052(configipif)# enable G8052(configipif)# ip ospf area 1 G8052(configipif)# ip ospf enable G8052(configipif)# exit 11. Place the VLAG port(s) in their port trunk groups. RS RS RS RS RS RS RS RS RS RS RS RS G8052(config)# interface port 10 G8052(configif)# lacp mode active G8052(configif)# lacp key 1000 G8052(configif)# exit G8052(config)# interface port 11 G8052(configif)# lacp mode active G8052(configif)# lacp key 1100 G8052(configif)# exit G8052(config)# interface port 12 G8052(configif)# lacp mode active G8052(configif)# lacp key 1200 G8052(configif)# exit 12. Assign the trunks to the VLAGs: RS G8052(config)# vlag adminkey 1000 enable RS G8052(config)# vlag adminkey 1100 enable RS G8052(config)# vlag adminkey 1200 enable 13. Globally enable VLAG RS G8052(config)# vlag enable © Copyright Lenovo 2015 Chapter 11: Virtual Link Aggregation Groups 193 14. Verify the completed configuration: # show vlag information Task 2: Configure VLAG Peer 2 The VLAG peer (VLAG Peer 2) must be configured using the same ISL trunk type (dynamic or static), the same VLAN for VLAG and VLAG ISL ports, and the same STP mode and Tier ID used on VLAG Switch 1. For each corresponding VLAG on the peer, the port trunk type (dynamic or static), VLAN, and STP mode and ID must be the same as on VLAG Switch 1. 1. Configure VLAG tier ID and enable VLAG globally. RS G8052(config)# vlag tierid 10 RS G8052(config)# vlag enable 2. Configure appropriate routing. RS RS RS RS G8052(config)# router ospf G8052(configrouterospf)# area 1 areaid 0.0.0.1 G8052(configrouterospf)# enable G8052(configrouterospf)# exit Although OSPF is used in this example, static routing could also be deployed. 3. Configure a server-facing interface. RS RS RS RS G8052(config)# interface ip 3 G8052(configipif)# ip address 10.0.1.11 255.255.255.0 G8052(configipif)# vlan 100 G8052(configipif)# exit 4. Turn on VRRP and configure the Virtual Interface Router. RS RS RS RS RS RS G8052(config)# router vrrp G8052(configvrrp)# enable G8052(configvrrp)# virtualrouter G8052(configvrrp)# virtualrouter G8052(configvrrp)# virtualrouter G8052(configvrrp)# virtualrouter 1 1 1 1 virtualrouterid 1 interface 3 address 10.0.1.100 enable 5. Configure the ISL ports and place them into a port trunk group: RS RS RS RS RS 194 G8052(config)# interface port 45 G8052(configif)# switchport mode trunk G8052(configif)# lacp mode active G8052(configif)# lacp key 2000 G8052(configif)# exit G8052 Application Guide for N/OS 8.3 6. Configure the upstream ports. RS RS RS RS RS RS G8052(config)# interface port 1 G8052(configif)# switchport access vlan 30 G8052(configif)# exit G8052(config)# interface port 2 G8052(configif)# switchport access vlan 40 G8052(configif)# exit 7. Configure the server ports. RS RS RS RS RS RS RS RS RS G8052(config)# interface port 10 G8052(configif)# switchport access vlan 100 G8052(configif)# exit G8052(config)# interface port 11 G8052(configif)# switchport access vlan 100 G8052(configif)# exit G8052(config)# interface port 12 G8052(configif)# switchport access vlan 100 G8052(configif)# exit 8. Configure all VLANs including VLANs for the VLAGs. RS G8052(config)# vlan 30 RS G8052(configvlan)# exit RS G8052(config)# vlan 40 RS G8052(configvlan)# exit RS RS RS RS RS RS G8052(config)# vlan 100 G8052(configvlan)# exit G8052(config)# interface port 45 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 100 G8052(configif)# exit 9. Configure Internet-facing interfaces. RS RS RS RS RS RS RS RS RS RS RS RS RS RS © Copyright Lenovo 2015 G8052(config)# interface ip 1 G8052(configipif)# ip address 172.1.2.11 255.255.255.0 G8052(configipif)# vlan 30 G8052(configipif)# enable G8052(configipif)# ip ospf area 1 G8052(configipif)# ip ospf enable G8052(configipif)# exit G8052(config)# interface ip 2 G8052(configipif)# ip address 172.1.4.12 255.255.255.0 G8052(configipif)# vlan 40 G8052(configipif)# enable G8052(configipif)# ip ospf area 1 G8052(configipif)# ip ospf enable G8052(configipif)# exit Chapter 11: Virtual Link Aggregation Groups 195 10. Place the VLAG port(s) in their port trunk groups. RS RS RS RS RS RS RS RS RS RS RS RS G8052(config)# interface port 10 G8052(configif)# lacp mode active G8052(configif)# lacp key 1000 G8052(configif)# exit G8052(config)# interface port 11 G8052(configif)# lacp mode active G8052(configif)# lacp key 1100 G8052(configif)# exit G8052(config)# interface port 12 G8052(configif)# lacp mode active G8052(configif)# lacp key 1200 G8052(configif)# exit 11. Assign the trunks to the VLAGs: RS G8052(config)# vlag adminkey 1000 enable RS G8052(config)# vlag adminkey 1100 enable RS G8052(config)# vlag adminkey 1200 enable 12. Verify the completed configuration: # show vlag information Configuring VLAGs in Multiple Layers Figure 21. VLAG in Multiple Layers Layer 2/3 Border LACP-capable Routers Trunk Trunk VLAG 5 VLAG 6 ISL Layer 2 Region with multiple levels Switch A VLAG Peers A Switch B VLAG Peers C VLAG 3 Trunk VLAG 3 VLAG 4 ISL ISL Switch C Switch D VLAG 1 Switch F VLAG Peers B VLAG 2 Trunk Switch G Servers Switch E LACP-capable Switch Trunk LACP-capable Server Figure 21 shows an example of VLAG being used in a multi-layer environment. Following are the configuration steps for the topology. 196 G8052 Application Guide for N/OS 8.3 Task 1: Configure Layer 2/3 border switches. Configure ports on border switch as follows: RS RS RS RS G8052(config)# interface port 1,2 G8052(configif)# lacp key 100 G8052(configif)# lacp mode active G8052(configif)# exit Repeat the previous steps for the second border switch. Task 2: Configure switches in the Layer 2 region. Consider the following: ISL ports on switches A and B - ports 1, 2 Ports connecting to Layer 2/3 - ports 5, 6 Ports on switches A and B connecting to switches C and D: ports 10, 11 Ports on switch B connecting to switch E: ports 15, 16 Ports on switch B connecting to switch F: ports 17, 18 1. Configure VLAG tier ID and enable VLAG globally. RS G8052(config)# vlag tierid 10 RS G8052(config)# vlag enable 2. Configure ISL ports on Switch A. RS RS RS RS RS G8052(config)# interface port 1,2 G8052(configif)# switchport mode trunk G8052(configif)# lacp key 200 G8052(configif)# lacp mode active G8052(configif)# exit RS G8052(config)# vlag isl adminkey 200 RS G8052(configvlan)# exit 3. Configure port on Switch A connecting to Layer 2/3 router 1. RS G8052(config)# vlan 10 VLAN number 10 with name “VLAN 10” created VLAN 10 was assigned to STG 10 RS G8052(configvlan)# exit RS G8052(config)# interface port 1,2,5 RS G8052(configif)# switchport mode trunk RS G8052(configif)# switchport trunk allowed vlan 10 RS G8052(configif)# exit RS RS RS RS G8052(config)# interface port 5 G8052(configif)# lacp key 400 G8052(configif)# lacp mode active G8052(configif)# exit RS G8052(config)# vlag adminkey 400 enable © Copyright Lenovo 2015 Chapter 11: Virtual Link Aggregation Groups 197 Repeat the previous steps on Switch B for ports connecting to Layer 2/3 router 1. 4. Configure port on Switch A connecting to Layer 2/3 router 2. RS G8052(config)# vlan 20 VLAN number 20 with name “VLAN 20” created VLAN 20 was assigned to STG 20 RS G8052(configvlan)# exit RS G8052(config)# interface port 1,2,6 RS G8052(configif)# switchport mode trunk RS G8052(configif)# switchport trunk allowed vlan 20 RS G8052(configif)# exit RS RS RS RS G8052(config)# interface port 6 G8052(configif)# lacp key 500 G8052(configif)# lacp mode active G8052(configif)# exit RS G8052(config)# vlag adminkey 500 enable Repeat these commands on Switch B for ports connecting to Layer 2/3 router 2. 5. Configure ports on Switch A connecting to downstream VLAG switches C and D. RS RS RS RS RS RS RS RS G8052(config)# vlan 20 G8052(configvlan)# exit G8052(config)# interface port 10,11 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 20 G8052(configif)# lacp key 600 G8052(configif)# lacp mode active G8052(configif)# exit RS G8052(config)# vlag adminkey 600 enable Repeat these commands on Switch B for ports connecting to downstream VLAG switch C and D. 6. Configure ports on Switch B connecting to downstream switches E and F. RS RS RS RS RS RS RS RS G8052(config)# vlan 30 G8052(configvlan)# exit G8052(config)# interface port 1518 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 30 G8052(configif)# lacp key 700 G8052(configif)# lacp mode active G8052(configif)# exit 7. Configure ISL between switches C and D, and between E and F as shown in Step 1. 8. Configure the Switch G as shown in Step 2. 198 G8052 Application Guide for N/OS 8.3 Chapter 12. Quality of Service Quality of Service features allow you to allocate network resources to mission-critical applications at the expense of applications that are less sensitive to such factors as time delays or network congestion. You can configure your network to prioritize specific types of traffic, ensuring that each type receives the appropriate Quality of Service (QoS) level. The following topics are discussed in this section: © Copyright Lenovo 2015 “QoS Overview” on page 200 “Using ACL Filters” on page 201 “Using DSCP Values to Provide QoS” on page 204 “Using 802.1p Priority to Provide QoS” on page 210 “Queuing and Scheduling” on page 211 “Control Plane Protection” on page 211 “WRED with ECN” on page 212 199 QoS Overview QoS helps you allocate guaranteed bandwidth to the critical applications, and limit bandwidth for less critical applications. Applications such as video and voice must have a certain amount of bandwidth to work correctly; using QoS, you can provide that bandwidth when necessary. Also, you can put a high priority on applications that are sensitive to timing out or that cannot tolerate delay, by assigning their traffic to a high-priority queue. By assigning QoS levels to traffic flows on your network, you can ensure that network resources are allocated where they are needed most. QoS features allow you to prioritize network traffic, thereby providing better service for selected applications. Figure 22 shows the basic QoS model used by the switch. Figure 22. QoS Model Ingress Ports Classify Packets Perform Actions ACL Filter Permit/Deny Queue and Schedule COS Queue The basic QoS model works as follows: 200 Classify traffic: Read DSCP value. Read 802.1p priority value. Match ACL filter parameters. Perform actions: Define bandwidth and burst parameters Select actions to perform on in-profile and out-of-profile traffic Deny packets Permit packets Mark DSCP or 802.1p Priority Set COS queue (with or without re-marking) Queue and schedule traffic: Place packets in one of the COS queues. Schedule transmission based on the COS queue. G8052 Application Guide for N/OS 8.3 Egress Using ACL Filters Access Control Lists (ACLs) are filters that allow you to classify and segment traffic, so you can provide different levels of service to different traffic types. Each filter defines the conditions that must match for inclusion in the filter, and also the actions that are performed when a match is made. Lenovo Network Operating System 8.3 supports up to 640 ACLs. The G8052 allows you to classify packets based on various parameters. For example: Ethernet: source MAC, destination MAC, VLAN number/mask, Ethernet type, priority. IPv4: Source IP address/mask, destination address/mask, type of service, IP protocol number. TCP/UPD: Source port, destination port, TCP flag. Packet format For ACL details, see Chapter 7, “Access Control Lists.” Summary of ACL Actions Actions determine how the traffic is treated. The G8052 QoS actions include the following: Pass or Drop Re-mark a new DiffServ Code Point (DSCP) Re-mark the 802.1p field Set the COS queue © Copyright Lenovo 2015 Chapter 12: Quality of Service 201 ACL Metering and Re-Marking You can define a profile for the aggregate traffic flowing through the G8052 by configuring a QoS meter (if desired) and assigning ACLs to ports. When you add ACLs to a port, make sure they are ordered correctly in terms of precedence. Actions taken by an ACL are called In-Profile actions. You can configure additional In-Profile and Out-of-Profile actions on a port. Data traffic can be metered, and re-marked to ensure that the traffic flow provides certain levels of service in terms of bandwidth for different types of network traffic. Metering QoS metering provides different levels of service to data streams through user-configurable parameters. A meter is used to measure the traffic stream against a traffic profile, which you create. Thus, creating meters yields In-Profile and Out-of-Profile traffic for each ACL, as follows: In-Profile–If there is no meter configured or if the packet conforms to the meter, the packet is classified as In-Profile. Out-of-Profile–If a meter is configured and the packet does not conform to the meter (exceeds the committed rate or maximum burst rate of the meter), the packet is classified as Out-of-Profile. Using meters, you set a Committed Rate in Kbps (multiples of 64 Mbps). All traffic within this Committed Rate is In-Profile. Additionally, you set a Maximum Burst Size that specifies an allowed data burst larger than the Committed Rate for a brief period. These parameters define the In-Profile traffic. Meters keep the sorted packets within certain parameters. You can configure a meter on an ACL, and perform actions on metered traffic, such as packet re-marking. 202 G8052 Application Guide for N/OS 8.3 Re-Marking Re-marking allows for the treatment of packets to be reset based on new network specifications or desired levels of service. You can configure the ACL to re-mark a packet as follows: © Copyright Lenovo 2015 Change the DSCP value of a packet, used to specify the service level traffic receives. Change the 802.1p priority of a packet. Chapter 12: Quality of Service 203 Using DSCP Values to Provide QoS The switch uses the Differentiated Services (DiffServ) architecture to provide QoS functions. DiffServ is described in IETF RFCs 2474 and 2475. The six most significant bits in the TOS byte of the IP header are defined as DiffServ Code Points (DSCP). Packets are marked with a certain value depending on the type of treatment the packet must receive in the network device. DSCP is a measure of the Quality of Service (QoS) level of the packet. The switch can classify traffic by reading the DiffServ Code Point (DSCP) or IEEE 802.1p priority value, or by using filters to match specific criteria. When network traffic attributes match those specified in a traffic pattern, the policy instructs the switch to perform specified actions on each packet that passes through it. The packets are assigned to different Class of Service (COS) queues and scheduled for transmission. Differentiated Services Concepts To differentiate between traffic flows, packets can be classified by their DSCP value. The Differentiated Services (DS) field in the IP header is an octet, and the first six bits, called the DS Code Point (DSCP), can provide QoS functions. Each packet carries its own QoS state in the DSCP. There are 64 possible DSCP values (0-63). Figure 23. Layer 3 IPv4 packet Version Length ID Length ToS Offset TTL Differentiated Services Code Point (DSCP) unused 7 1 6 5 4 3 2 FCS Proto SIP DIP Data 0 The switch can perform the following actions to the DSCP: Read the DSCP value of ingress packets. Re-mark the DSCP value to a new value Map the DSCP value to a Class of Service queue (COSq). The switch can use the DSCP value to direct traffic prioritization. With DiffServ, you can establish policies to direct traffic. A policy is a traffic-controlling mechanism that monitors the characteristics of the traffic, (for example, its source, destination, and protocol) and performs a controlling action on the traffic when certain characteristics are matched. 204 G8052 Application Guide for N/OS 8.3 Trusted/Untrusted Ports By default, all ports on the G8052 are trusted. To configure untrusted ports, re-mark the DSCP value of the incoming packet to a lower DSCP value using the following commands: RS RS RS RS RS © Copyright Lenovo 2015 G8052(config)# interface port 1 G8052(configif)# dscpmarking G8052(configif)# exit G8052(config)# qos dscp dscpmapping G8052(config)# qos dscp remarking Chapter 12: Quality of Service 205 Per Hop Behavior The DSCP value determines the Per Hop Behavior (PHB) of each packet. The PHB is the forwarding treatment given to packets at each hop. QoS policies are built by applying a set of rules to packets, based on the DSCP value, as they hop through the network. The default settings are based on the following standard PHBs, as defined in the IEEE standards: Expedited Forwarding (EF)—This PHB has the highest egress priority and lowest drop precedence level. EF traffic is forwarded ahead of all other traffic. EF PHB is described in RFC 2598. Assured Forwarding (AF)—This PHB contains four service levels, each with a different drop precedence, as shown in the following table. Routers use drop precedence to determine which packets to discard last when the network becomes congested. AF PHB is described in RFC 2597. Drop Precedence Class 1 Class 3 Class 4 Low AF11 (DSCP 10) AF21 (DSCP 18) AF31 (DSCP 26) AF41 (DSCP 34) Medium AF12 (DSCP 12) AF22 (DSCP 20) AF32 (DSCP 28) AF42 (DSCP 36) High AF13 (DSCP 14) AF23 (DSCP 22) AF33 (DSCP 30) AF43 (DSCP 38) Class Selector (CS)—This PHB has eight priority classes, with CS7 representing the highest priority, and CS0 representing the lowest priority, as shown in the following table. CS PHB is described in RFC 2474. Priority Class Selector DSCP Highest CS7 56 CS6 48 CS5 40 CS4 32 CS3 24 CS2 16 CS1 8 CS0 0 Lowest 206 Class 2 G8052 Application Guide for N/OS 8.3 QoS Levels Table 17 shows the default service levels provided by the switch, listed from highest to lowest importance: Table 17. Default QoS Service Levels Service Level Default PHB 802.1p Priority Critical CS7 7 Network Control CS6 6 Premium EF, CS5 5 Platinum AF41, AF42, AF43, CS4 4 Gold AF31, AF32, AF33, CS3 3 Silver AF21, AF22, AF23, CS2 2 Bronze AF11, AF12, AF13, CS1 1 Standard DF, CS0 0 DSCP Re-Marking and Mapping The switch can use the DSCP value of ingress packets to re-mark the DSCP to a new value, and to set an 802.1p priority value. Use the following command to view the default settings. RS G8052# show qos dscp Current DSCP Remarking Configuration: OFF DSCP 0 1 2 3 4 5 6 7 8 9 10 ... 54 55 56 57 58 59 60 61 62 63 © Copyright Lenovo 2015 New DSCP 0 1 2 3 4 5 6 7 8 9 10 54 55 56 57 58 59 60 61 62 63 New 802.1p Prio 0 0 0 0 0 0 0 0 1 0 1 0 0 7 0 0 0 0 0 0 0 Chapter 12: Quality of Service 207 Use the following command to turn on DSCP re-marking globally: RS G8052(config)# qos dscp remarking Then you must enable DSCP re-marking on any port that you wish to perform this function (Interface Port mode). Note: If an ACL meter is configured for DSCP re-marking, the meter function takes precedence over QoS re-marking. DSCP Re-Marking Configuration Examples Example 1 The following example includes the basic steps for re-marking DSCP value and mapping DSCP value to 802.1p. 1. Turn DSCP re-marking on globally, and define the DSCP-DSCP-802.1p mapping. You can use the default mapping. RS G8052(config)# qos dscp remarking RS G8052(config)# qos dscp dscpmapping RS G8052(config)# qos dscp dot1pmapping <802.1p value> 2. Enable DSCP re-marking on a port. RS G8052(config)# interface port 1 RS G8052(configif)# qos dscp remarking RS G8052(configif)# exit Example 2 The following example assigns strict priority to VoIP traffic and a lower priority to all other traffic. 1. Create an ACL to re-mark DSCP value and COS queue for all VoIP packets. RS RS RS RS RS RS G8052(config)# G8052(config)# G8052(config)# G8052(config)# G8052(config)# G8052(config)# accesscontrol accesscontrol accesscontrol accesscontrol accesscontrol accesscontrol list list list list list list 2 2 2 2 2 2 tcpudp sourceport 5060 0xffff meter committedrate 10000000 meter enable remark inprofile dscp 56 remark dot1p 7 action permit 2. Create an ACL to set a low priority to all other traffic. RS G8052(config)# accesscontrol list 3 action setpriority 1 RS G8052(config)# accesscontrol list 3 action permit 208 G8052 Application Guide for N/OS 8.3 3. Apply the ACLs to a port and enable DSCP marking. RS G8052(config)# interface port 5 RS G8052(configif)# accesscontrol list 2 RS G8052(configif)# accesscontrol list 3 ethernet sourcemacaddress 00:00:00:00:00:00 00:00:00:00:00:00 RS G8052(configif)# dscpmarking RS G8052(configif)# exit 4. Enable DSCP re-marking globally. RS G8052(config)# qos dscp remarking 5. Assign the DSCP re-mark value. RS G8052(config)# qos dscp dscpmapping 40 9 RS G8052(config)# qos dscp dscpmapping 46 9 6. Assign strict priority to VoIP COS queue. RS G8052(config)# qos transmitqueue weightcos 7 0 7. Map priority value to COS queue for non-VoIP traffic. RS G8052(config)# qos transmitqueue mapping 1 1 8. Assign weight to the non-VoIP COS queue. RS G8052(config)# qos transmitqueue weightcos 1 2 © Copyright Lenovo 2015 Chapter 12: Quality of Service 209 Using 802.1p Priority to Provide QoS The G8052 provides Quality of Service functions based on the priority bits in a packet’s VLAN header. (The priority bits are defined by the 802.1p standard within the IEEE 802.1Q VLAN header.) The 802.1p bits, if present in the packet, specify the priority to be given to packets during forwarding. Packets with a numerically higher (non-zero) priority are given forwarding preference over packets with lower priority value. The IEEE 802.1p standard uses eight levels of priority (0-7). Priority 7 is assigned to highest priority network traffic, such as OSPF or RIP routing table updates, priorities 5-6 are assigned to delay-sensitive applications such as voice and video, and lower priorities are assigned to standard applications. A value of 0 (zero) indicates a “best effort” traffic prioritization, and this is the default when traffic priority has not been configured on your network. The switch can filter packets based on the 802.1p values. Figure 24. Layer 2 802.1q/802.1p VLAN tagged packet DMAC SMAC SFD Preamble Priority 7 6 Tag FCS E Type Data VLAN Identifier (VID) 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Ingress packets receive a priority value, as follows: Tagged packets—switch reads the 802.1p priority in the VLAN tag. Untagged packets—switch tags the packet and assigns an 802.1p priority value, based on the port’s default 802.1p priority. Egress packets are placed in a COS queue based on the priority value, and scheduled for transmission based on the scheduling weight of the COS queue. To configure a port’s default 802.1p priority value, use the following commands: RS G8052(config)# interface port 1 RS G8052(configif)# dot1p <802.1p value (0-7)> RS G8052(configif)# exit 210 G8052 Application Guide for N/OS 8.3 Queuing and Scheduling The G8052 has 8 output Class of Service (COS) queues per port. If CEE is enabled, this is changed to 3 queues per port and ETS is then used to configure the scheduling in a manner different than what is described in this section. Each packet’s 802.1p priority determines its COS queue, except when an ACL action sets the COS queue of the packet. You can configure the following attributes for COS queues: Map 802.1p priority value to a COS queue Define the scheduling weight of each COS queue You can map 802.1p priority value to a COS queue, as follows: RS G8052(config)# qos transmitqueue mapping <802.1p priority value (0-7)> To set the COS queue scheduling weight, use the following command: RS G8052(config)# qos transmitqueue weightcos Control Plane Protection Control plane receives packets that are required for the internal protocol state machines. This type of traffic is usually received at low rate. However, in some situations such as DOS attacks, the switch may receive this traffic at a high rate. If the control plane protocols are unable to process the high rate of traffic, the switch may become unstable. The control plane receives packets that are channeled through protocol-specific packet queues. Multiple protocols can be channeled through a common packet queue. However, one protocol cannot be channeled through multiple packet queues. These packet queues are applicable only to the packets received by the software and does not impact the regular switching or routing traffic. Packet queue with a higher number has higher priority. You can configure the bandwidth for each packet queue. Protocols that share a packet queue will also share the bandwidth. Given below are the commands to configure the control plane protection (CoPP) feature: RS G8052(config)# qos protocolpacketcontrol packetqueuemap <0-47> (Configure a queue for a protocol) RS G8052(config)# qos protocolpacketcontrol ratelimitpacketqueue <0-47> <1-10000> (Set the bandwidth for the queue, in packets per second) © Copyright Lenovo 2015 Chapter 12: Quality of Service 211 WRED with ECN Weighted Random Early Detection (WRED) is a congestion avoidance algorithm that helps prevent a TCP collapse, where a congested port indiscriminately drops packets from all sessions. The transmitting hosts wait to retransmit resulting in a dramatic drop in throughput. Often times, this TCP collapse repeats in a cycle, which results in a saw-tooth pattern of throughput. WRED selectively drops packets before the queue gets full, allowing majority of the traffic to flow smoothly. WRED discards packets based on the CoS queues. Packets marked with lower priorities are discarded first. Explicit Congestion Notification (ECN) is an extension to WRED. For packets that are ECN-aware, the ECN bit is marked to signal impending congestion instead of dropping packets. The transmitting hosts then slow down sending packets. How WRED/ECN work together For implementing WRED, you must define a profile with minimum threshold, maximum threshold, and a maximum drop probability. The profiles can be defined on a port or a CoS. For implementing ECN, you require ECN-specific field that has two bits—the ECN-capable Transport (ECT) bit and the CE (Congestion Experienced) bit—in the IP header. ECN is identified and defined by the values in these bits in the Differentiated Services field of IP Header. Table 18 shows the combination values of the ECN bits. Table 18. ECN Bit Setting 212 ECT Bit CE Bit 0 0 Not ECN-capable 0 1 Endpoints of the transport protocol are ECN-capable 1 0 Endpoints of the transport protocol are ECN-capable 1 1 Congestion experienced G8052 Application Guide for N/OS 8.3 Description WRED and ECN work together as follows: If the number of packets in the queue is less than the minimum threshold, packets are transmitted. This happens irrespective of the ECN bit setting, and on networks where only WRED (without ECN) is enabled. If the number of packets in the queue is between the minimum threshold and the maximum threshold, one of the following occurs: If the ECN field on the packet indicates that the endpoints are ECN-capable and the WRED algorithm determines that the packet has likely been dropped based on the drop probability, the ECT and CE bits for the packet are changed to 1, and the packet is transmitted. If the ECN field on the packet indicates that neither endpoint is ECN-capable, the packet may be dropped based on the WRED drop probability. This is true even in cases where only WRED (without ECN) is enabled. If the ECN field on the packet indicates that the network is experiencing congestion, the packet is transmitted. No further marking is required. If the number of packets in the queue is greater than the maximum threshold, packets are dropped based on the drop probability. This is the identical treatment a packet receives when only WRED (without ECN) is enabled. Configuring WRED/ECN For configuring WRED, you must define a TCP profile and a non-TCP profile. WRED prioritizes TCP traffic over non-TCP traffic. For configuring ECN, you must define a TCP profile. You don’t need a non-TCP profile as ECN can be enabled only for TCP traffic. If you do not configure the profiles, the profile thresholds are set to maximum value of 0x3FFF to avoid drops. Note: WRED/ECN can be configured only on physical ports and not on trunks. WRED and ECN are applicable only to unicast traffic. Consider the following guidelines for configuring WRED/ECN: Profiles can be configured globally or per port. Global profiles are applicable to all ports. Always enable the global profile before applying the port-level profile. Note: You can enable the global profile and disable the port-level profile. However, you must not enable the port-level profile if the global profile is disabled. WRED settings are dependent on Memory Management Unit (MMU) Settings. If you change the MMU setting, it could impact WRED functionality. You cannot enable WRED if you have QoS buffer settings such as Converged Enhanced Ethernet (CEE), Priority-based Flow Control (PFC), or Enhanced Transmission Selection (ETS). The number of WRED profiles per-port must match the total number of COS Queues configured in the system. © Copyright Lenovo 2015 Chapter 12: Quality of Service 213 If you have configured a TCP profile and enabled ECN, ECN marking happens when traffic experiencing congestion is TCP, or a mix of TCP and non-TCP traffic. Configure a TCP profile only after enabling ECN on the interface. You can apply TCP and non-TCP profile configurations irrespective of ECN status (enabled/disabled). WRED/ECN Configuration Example Follow these steps to enable WRED/ECN and configure a global and/or port-level profile. If you configure global and port-level profile, WRED/ECN uses the port-level profile to make transmit/drop decisions when experiencing traffic congestion. Configure Global Profile for WRED 1. Enable WRED globally. RS G8052(config)# qos randomdetect enable 2. Enable a transmit queue. RS G8052(config)# qos randomdetect transmitqueue 0 enable 3. Configure WRED thresholds (minimum, maximum, and drop rate) for TCP traffic. RS G8052(config)# qos randomdetect transmitqueue 0 tcp minthreshold 1 maxthreshold 2 droprate 3 Note: Percentages are of Average Queue available in hardware and not percentages of traffic. 4. Configure WRED thresholds (minimum, maximum, and drop rate) for non-TCP traffic. RS G8052(config)# qos randomdetect transmitqueue 0 nontcp minthreshold 4 maxthreshold 5 droprate 6 5. Select the port. RS G8052(config)# interface port 1 6. Enable WRED for the port. RS G8052(configif)# randomdetect enable RS G8052(configif)# exit 214 G8052 Application Guide for N/OS 8.3 Configure Port-level Profile for WRED 1. Enable WRED globally. RS G8052(config)# qos randomdetect enable 2. Select the port. RS G8052(config)# interface port 1 3. Enable WRED for the port . RS G8052(configif)# randomdetect enable 4. Enable a transmit queue. RS G8052(configif)# randomdetect transmitqueue 0 enable 5. Configure WRED thresholds (minimum, maximum, and drop rate) for TCP traffic. RS G8052(configif)# randomdetect transmitqueue 0 tcp minthreshold 11 maxthreshold 22 droprate 33 Note: Percentages are of Average Queue available in hardware and not percentages of traffic. 6. Configure WRED thresholds (minimum, maximum, and drop rate) for non-TCP traffic. RS G8052(configif)# randomdetect transmitqueue 0 nontcp minthreshold 44 maxthreshold 55 droprate 66 RS G8052(configif)# exit Configure Global Profile for ECN 1. Enable ECN globally. RS G8052(config)# qos randomdetect ecn enable 2. Enable a transmit queue. RS G8052(config)# qos randomdetect transmitqueue 0 enable 3. Configure ECN thresholds (minimum, maximum, and drop rate) for TCP traffic. RS G8052(config)# qos randomdetect transmitqueue 0 tcp minthreshold 1 maxthreshold 2 droprate 3 Note: Percentages are of Average Queue available in hardware and not percentages of traffic. © Copyright Lenovo 2015 Chapter 12: Quality of Service 215 4. Select the port. RS G8052(config)# interface port 1 5. Enable ECN for the port. RS G8052(configif)# randomdetect ecn enable RS G8052(configif)# exit Configure Port-level Profile for ECN 1. Enable ECN globally. RS G8052(config)# qos randomdetect ecn enable 2. Select the port. RS G8052(config)# interface port 1 3. Enable ECN for the port. RS G8052(configif)# randomdetect ecn enable 4. Enable a transmit queue. RS G8052(configif)# randomdetect transmitqueue 0 enable 5. Configure ECN thresholds (minimum, maximum, and drop rate) for TCP traffic. RS G8052(configif)# randomdetect transmitqueue 0 tcp minthreshold 11 maxthreshold 22 droprate 33 RS G8052(configif)# exit Note: Percentages are of Average Queue available in hardware and not percentages of traffic. 216 G8052 Application Guide for N/OS 8.3 Verifying WRED/ECN Use the following command to view global WRED/ECN information: RS G8052(config)# show qos randomdetect Current wred and ecn configuration: Global ECN: Enable Global WRED: Enable TQ0:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Ena 10 20 30 10 20 30 TQ1:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ2:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ3:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ4:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ5:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ6:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ7:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 Use the following command to view port-level WRED/ECN information: RS G8052(config)# show interface port 1 randomdetect Port: 1 ECN: Enable WRED: Enable TQ0:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ1:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Ena 4 5 6 1 2 3 TQ2:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ3:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ4:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ5:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ6:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 TQ7:WREDTcpMinThrTcpMaxThrTcpDrateNonTcpMinThrNonTcpMaxThrNonTcpDrate Dis 0 0 0 0 0 0 © Copyright Lenovo 2015 Chapter 12: Quality of Service 217 218 G8052 Application Guide for N/OS 8.3 Part 4: Advanced Switching Features © Copyright Lenovo 2015 219 220 G8052 Application Guide for N/OS 8.3 Chapter 13. OpenFlow This document describes how you can create an OpenFlow Switch instance on the RackSwitch G8052. The following topics are discussed in this document: © Copyright Lenovo 2015 “OpenFlow Overview” on page 222 “Switch Profiles” on page 223 “OpenFlow Versions” on page 224 “OpenFlow Instance” on page 225 “Flow Tables” on page 226 “Static Flows” on page 228 “Table-Miss” on page 233 “Fail Secure Mode” on page 234 “Emergency Mode” on page 235 “OpenFlow Ports” on page 237 “sFlow Compatibility” on page 240 “OpenFlow Groups” on page 241 “Configuring OpenFlow” on page 242 “Feature Limitations” on page 247 221 OpenFlow Overview OpenFlow architecture consists of a control plane residing outside of the switch (typically on a server) and a data plane residing in the switch. The control plane is called OpenFlow controller. The data plane which resides in the switch consists of a set of flows which determine the forwarding of data packets. The OpenFlow protocol is described in the OpenFlow Switch Specification 1.0.0 and OpenFlow Switch Specification 1.3.1. An OpenFlow network consists of simple flow-based switches in the data path, with a remote controller to manage all switches in the OpenFlow network. OpenFlow maintains a TCP channel for communication of flow management between the controller and the switch. All controller-switch communication takes place over the switch's management network. 222 G8052 Application Guide for N/OS 8.3 Switch Profiles The RackSwitch G8052 can be used for configuring OpenFlow and legacy switching features simultaneously. However, Layer 2 and Layer 3 switching features can be configured only on the ports that are not OpenFlow ports. Legacy switching ports and OpenFlow ports do not communicate with each other. Alternately, the switch can be configured as an OpenFlow-only switch if you do not need to configure legacy switching features. Based on your requirement, select the switch boot profile using the following commands: OpenFlow-only: RS G8052(config)# boot profile openflow The switch will operate only in OpenFlow environment. None of the legacy switching features will be supported. OpenFlow and Legacy Switching: RS G8052(config)# boot profile default Legacy switching features can be configured on the non-OpenFlow ports. By default, the switch boots in this profile. Reload the switch to apply boot profile changes. © Copyright Lenovo 2015 Chapter 13: OpenFlow 223 OpenFlow Versions The RackSwitch G8052 can be configured to run either version 1.0 or version 1.3 of the OpenFlow standard. By default, the switch uses OpenFlow 1.0. To shift between versions, use the following commands: RS G8052(config)# boot openflow v1 The switch will run OpenFlow 1.0 after reboot. This version does not support the use of groups, static portchannels, or static LACP trunks in OpenFlow instances (see “Configuring OpenFlow” on page 242). RS G8052(config)# boot openflow v13 The switch will run OpenFlow 1.3 after reboot. This version does not support emergency flow tables (see “Emergency Mode” on page 235). OpenFlow 1.3 includes (but not limited to) the following key features: 224 Static portchannels and static LACP trunks MAC address/IP address masking Flexible Table Miss and Fail Secure Static CLI for Flow Programming OpenFlow Groups FDB aging timer OpenFlow 1.0 backwards compatibility G8052 Application Guide for N/OS 8.3 OpenFlow Instance The G8052 supports up to two instances of the OpenFlow protocol. Each instance appears as a switch to the controller. Instances on the same switch can be connected to different networks. Each instance maintains a separate TCP channel for communication of flow management between controller and switch. Each instance supports up to four controllers. However, only one controller per instance is active at any time. Global OpenFlow configuration applies to all instances. OpenFlow parameters for an instance can be configured using the command: RS G8052(config)# openflow instance . OpenFlow ports cannot be shared between instances. © Copyright Lenovo 2015 Chapter 13: OpenFlow 225 Flow Tables A set of a flow identification condition and an action towards a flow is called flow entry, and the database that stores the entries is called the flow table. A flow is defined as all the packets matching a flow entry in an OpenFlow flow table. Each flow entry includes: Qualifiers - These are header fields that are matched with a packet. Actions to be performed when a packet matches the qualifiers. The controller decides which flows to admit and the path their packets follow. The switch classifies the flows as ACL-based or FDB-based. When the switch operates in OpenFlow boot profile (See “Switch Profiles” on page 223), a maximum of 2000 ACL-based flows, 1024 FDB multicast flows, 30976 FDB unicast flowsWhen the switch operates in default boot profile, a maximum of 1500 ACL-based flows, 1024 FDB multicast flows, and 30976 FDB unicast flows are available. The instances share these flows dynamically. To guarantee a specific number of flows to an instance, use the following commands: OpenFlow boot profile: RS RS RS RS G8052(config)# openflow instance G8052(configopenflowinstance)# G8052(configopenflowinstance)# G8052(configopenflowinstance)# maxflowacl <0-2000> maxflowmcastfdb <0-1024> maxflowucastfdb <0-30976> Default boot profile: RS G8052(config)# openflow instance RS G8052(configopenflowinstance)# maxflowacl <0-1500> RS G8052(configopenflowinstance)# maxflowmcastfdb <0-> Note: When the switch operates in default boot profile, the number of FDB flows to an instance cannot be guaranteed. In version 1.0 of the OpenFlow standard, the G8052 supports two flow tables per switch instance; basic flow table and emergency flow table. Actions are applied to packets that match the flow entry. This is done in the data path. This system identifies packets as a flow by matching parameters in the following fields: 226 Ingress port Source MAC (SMAC) Destination MAC (DMAC) Ether Type VLAN TAG – Single VLAN tag – VLAN ID and Priority IP address (source IP and destination IP) IP Protocol DSCP bits G8052 Application Guide for N/OS 8.3 Layer 4 Port (TCP, UDP) ICMP code and type If EtherType is ARP, the specified ARP type (request/reply) or SIP in the ARP payload can be used to match a packet. Once a packet arrives, the switch searches the flow table. When a flow entry is hit in the search, the packet is processed according to the action specified in the flow entry. © Copyright Lenovo 2015 Chapter 13: OpenFlow 227 Static Flows You can configure static flow entries for OpenFlow instances. The switch forwards traffic based on these entries even if it is not connected to a controller. Up to 1000 static ACL entries across all instances can be configured. An OpenFlow controller cannot modify or delete these entries. Static flow entries can replace entries installed by a controller. Static flow entries are not lost when the switch is reloaded. Static flow entries are based on the following qualifiers, actions, and options: Table 19. Static Flow Entry Qualifiers in OpenFlow 1.0 Qualifier Description ingress-port port of the instance src-mac source MAC address dst-mac destination MAC address vlan-id VLAN identifier (untagged, tagged or <0-4094>) vlan-priority 802.1p(0-7) src-ip source IP address dst-ip destination IP address src-port Layer 4 source port (0-65535) dst-port Layer 4 destination port (0-65535) ether-type "arp"/"0806" or "ip"/"0800" or (hex-value < = 65535) protocol "tcp" or "udp" or 0-255 tos IP TOS (0-255) type "request" or "reply" (can be set only if ether type is ARP) all all qualifiers or any qualifier Table 20. Static Flow Entry Qualifiers in OpenFlow 1.3 228 Qualifier Description in-port switch input port in-portchannel switch input static trunk group (portchannel) or static LACP trunk group in-phy-port switch physical input port, valid only when in-port is specified eth-src source MAC address and mask eth-dst destination MAC address and mask G8052 Application Guide for N/OS 8.3 Table 20. Static Flow Entry Qualifiers in OpenFlow 1.3 Qualifier Description vlan-vid VLAN identifier (untagged, tagged or <0-4094>) vlan-pcp 802.1p(0-7) ipv4-src source IPv4 address and mask ipv4-dst destination IPv4 address and mask tcp-src TCP source port (0-65535) tcp-dst TCP destination port (0-65535) udp-src UDP source port (0-65535) udp-dst UDP destination port (0-65535) icmpv4-type ICMPv4 type icmpv4-code ICMPv4 code eth-type "arp"/"0806" or "ip"/"0800" or (hex-value < =65535) ip-proto "tcp" or "udp" or 0-255 ip-dscp IP DSCP (6 bits in ToS field) arp-op "request" or "reply" (can be set only if eth-type is ARP) all all qualifiers or any qualifier Table 21. Static Flow Entry Actions in OpenFlow 1.0 Action Description out-put "all","in-port","flood","controller" or a valid port set-src-mac change source MAC address set-dst-mac change destination MAC address strip-vlan-id strip VLAN set-vlan-id set VLAN ID set-vlan-priority set 802.1p priority (0-7) set-nw-tos set IP TOS (0-255) drop drop the packet Table 22. Static Flow Entry Actions in OpenFlow 1.3 © Copyright Lenovo 2015 Action Description output physical ports reserved ports: all, controller, in-port output-portchannel Logical ports: static trunk group (portchannel) or static LACP trunk group set-eth-src change source MAC address Chapter 13: OpenFlow 229 Table 22. Static Flow Entry Actions in OpenFlow 1.3 Action Description set-eth-dst change destination MAC address push-vlan push a new VLAN tag, 0x8100 pop-vlan pop the VLAN tag set-vlan-vid set VLAN ID, <0-4094> set-vlan-pcp set 802.1p priority (0-7) set-ip-dscp Set IP DSCP (0-63), 6 highest bits in TOS drop drop the packet The set-field action includes set-eth-src, set-eth-dst, set-vlan-vid, set-vlan-pcp, set-ip-dscp. Their order is not mandatory. The output action includes output and output-portchannel. Their order is not mandatory. Table 23. Static Flow Entry Options Option Description max-len maximum length of flow to send to controller Port Membership When static flow entries are configured, port membership changes are handled as follows: If a port is the “in-port” or “out-port” in a static flow entry, the port membership cannot be changed. When a port membership changes, the ingress bitmap of static entries with in-port ANY will be updated. When a port membership changes, the egress bitmap of static entries with redirect output FlOOD/ANY will be updated. FDB Aging and ECMP with OpenFlow You can enable FDB aging in OpenFlow using the following commands: RS G8052(config)# interface port RS G8052(configif)# openflow fdbaging To enable Layer 2 ECMP for OpenFlow station moves, use the following commands: RS G8052(config)# interface port RS G8052(configif)# openflow staticstationmove 230 G8052 Application Guide for N/OS 8.3 Static Flow Examples Following are examples of static flow entries for OpenFlow 1.0: Basic ACL flow: RS G8052(configopenflowinstance)# statictable add index 1 match ingressport=1 actions output=10 priority 12345 Flow with multiple qualifiers and actions: RS G8052(configopenflowinstance)# statictable add index 2 match vlanid=1,dstmac=00:00:00:00:00:01 actions setvlanpriority=3,output=20 priority 1000 Flow with action: output to controller: RS G8052(configopenflowinstance)# statictable add index 3 match all actions output=controller options maxlen=65534 priority 1000 Following are examples of static flow entries for OpenFlow 1.3: Basic ACL flow: RS G8052(configopenflowinstance)# statictable add index 1 match inport=41 actions output=50 priority 12345 Flow with multiple qualifiers and actions: RS G8052(configopenflowinstance)# statictable add index 2 match vlanvid=1,ethdst=00:00:00:00:00:01 actions setvlanpcp=3,output=50 priority 1000 Static ACL flow entries can be deleted using the command: RS G8052(configopenflowinstance)# statictable remove index © Copyright Lenovo 2015 Chapter 13: OpenFlow 231 Static flow table information can be viewed using the following commands: In OpenFlow version 1.0: RS G8052(configopenflowinstance)# show openflow table Openflow Instance Id: 1 BASIC FLOW TABLE STATIC FLOWS Flow:1 Index:1 Filter Based, priority:12345 QUALIFIERS: ingressport:1 ACTION: output:10 STATS: packets=0, bytes=0 Flow:2 Index:2 Filter Based, priority: 1000 QUALIFIERS: vlanid: 1 dstmac:000000000001 ACTION: setvlanpriority=3, output:20 STATS: packets=0, bytes=0 Flow:3 Index:3 Filter Based, priority: 1000 QUALIFIERS: ACTION: output:CONTROLLER [Max Len: 65534 / STATS: packets=26, bytes=1776 bytes (C/S)] Openflow Instance Id: 2 BASIC FLOW TABLE is Empty In OpenFlow version 1.3: RS G8052(configopenflowinstance)# show openflow table Openflow Instance Id: 1 STATIC FLOWs Flow 1, Index:2, Filter Based, priority:1000 QUALIFIERS: ethdst:00:00:00:00:00:01 vlanvid:1 Instruction: apply_action ACTION: setvlanpcp=3, output:50 STATS: packets=0, bytes=0 Flow 2, Index:1, Filter Based, priority:12345 QUALIFIERS: inport:41 Instruction: apply_action ACTION: output:50 STATS: packets=0, bytes=0 Openflow instance 2 is currently disabled 232 G8052 Application Guide for N/OS 8.3 Table-Miss In OpenFlow 1.3, if a match is not found for an arriving packet, the packet is either dropped or sent to the controller. If sent to the controller, the controller decides which action(s) to perform on all packets from the same flow. The decision is then sent to the switch and cached as an entry in the switch instance’s flow table. If the controller decides to add the flow, it sends a flow add message to the switch. The switch then adds the flow in its flow table. The next arriving packet that belongs to the same flow is then forwarded at line-rate through the switch without consulting the controller. By default, packets that don’t match any of the existing flow entries are dropped. To set up an OpenFlow instance to send non-matching packets to the controller instead of dropping them, use the following commands: RS G8052(config)# openflow instance RS G8052(configopenflowinstance)# tablemiss controller © Copyright Lenovo 2015 Chapter 13: OpenFlow 233 Fail Secure Mode In OpenFlow 1.3, if contact with all controllers is lost, the switch automatically enters a fail secure mode. In this mode, the switch continues to operate based on the existing flow entries until they expire (according to the configured flow timeout value), while packets and messages destined to the controllers are dropped. When a connection to a controller is reestablished, the controller has the option to either delete or keep any remaining flow entries. 234 G8052 Application Guide for N/OS 8.3 Emergency Mode Note: Emergency Mode is supported only in version 1.0 of the OpenFlow standard. By default, Emergency mode is disabled. In this state, if the connection to the controller fails, the switch will behave as described in Fail Secure mode for Openflow 1.3. To enable Emergency mode, use the following command: RS G8052(config)# openflow instance RS G8052(configopenflowinstance)# emergency In Emergency mode enabled state, if the connection to the controller fails, the switch tries to establish connection with any of the other configured controllers. If it is unable to connect with any controller, it enters Emergency mode. It replaces the flow entries with the entries from the emergency flow table. The switch stays in the Emergency mode for the time configured as the Emergency timeout interval (default value is 30 seconds), after which the switch tries to establish connection with any configured controller. If connection with a controller is established, the switch exits Emergency mode. Entries in the Emergency flow table are retained. If desired, the controller may delete all the emergency flow entries. If connection with a controller is not established, the switch stays in Emergency mode and continues to forward packets based on the Emergency flows. It retries to establish a connection with a controller every time the Emergency timeout interval expires. Emergency mode can be activated or deactivated per instance. To activate Emergency mode on an instance, use the following command: RS G8052# openflow instance enteremergency To deactivate Emergency mode on an instance, use the following command: RS G8052# no openflow instance enteremergency © Copyright Lenovo 2015 Chapter 13: OpenFlow 235 Table 24 displays an example of emergency flows created: Table 24. Emergency Flows RS G8052(config)# show openflow table Openflow Instance Id: 1 BASIC FLOW TABLE Flow:1 FDB Based, priority: 1000, hardtimeout: 0 QUALIFIERS: dstmac:010203050600, vlanid: ACTION: outport:21 Flow:2 Filter Based, priority:32768, hardtimeout: QUALIFIERS: vlanid: 100 dstmac:010203667600 ACTION: output:22 STATS: packets=0, bytes=0 100 0, idletimeout: 0 EMERGENCY FLOW TABLE Flow:1 FDB Based, priority: 1000, hardtimeout: 0 QUALIFIERS: dstmac:010203660600, vlanid: ACTION: outport:21 Flow:2 Filter Based, priority:32768, hardtimeout: QUALIFIERS: vlanid: 100 dstmac:010203660600 ACTION: output:22 100 0, idletimeout: Openflow Instance Id: 2 BASIC FLOW TABLE Flow:1 FDB Based, priority: 1000, hardtimeout: 0 QUALIFIERS: dstmac:015503119600, vlanid: ACTION: outport:31 200 EMERGENCY FLOW TABLE Flow:1 FDB Based, priority: 1000, hardtimeout: 0 QUALIFIERS: dstmac:015503111600, vlanid: ACTION: outport:31 236 G8052 Application Guide for N/OS 8.3 200 0 OpenFlow Ports When OpenFlow is enabled, all OpenFlow instance member ports become OpenFlow ports. OpenFlow ports have the following characteristics: Learning is turned off. Flood blocking is turned on. Spanning Tree Protocol (STP) is disabled. The switch communicates with OpenFlow controllers through controller management ports or through dedicated out-of-band management ports on the switch. All OpenFlow ports, except controller management ports, must be members of VLAN 1. Controller management ports can be members of any VLAN except VLAN 1. Note: When the switch operates in the default boot profile, we recommend that you use a non-OpenFlow port to connect the switch with the controller. Use the following command to view port information: RS G8052(config)# show interface information For each OpenFlow instance, when you configure the controller IP address and port, the switch establishes a TCP connection with the controller for flow control and management. See Step 3 on page 242. The switch supports up to four controllers per instance. The default controller port is 6633 and is reachable via out-of-band management port (port 65) or in-band port. The controller management ports must not be members of an OpenFlow instance. You can use a controller to manage and control multiple instances. Use the following command to configure a data port as a controller management port (available only in OpenFlow boot profile): RS G8052(config)# openflow mgmtport Note: In default boot profile, when you disable OpenFlow, the OpenFlow ports become legacy switch ports and are added to the default VLAN 1. OpenFlow Edge Ports You can configure a port as an OpenFlow edge port. Edge ports are connected to either non-OpenFlow switches or servers. OpenFlow edge ports have the following characteristics: Flood blocking is turned on. MAC learning is turned on. Use the following command to configure a port as an edge port: RS G8052(config)# openflow instance RS G8052(configopenflowinstance)# edgeport Note: Edge ports are not OpenFlow standard ports. You must configure edge ports only if the controller supports it. © Copyright Lenovo 2015 Chapter 13: OpenFlow 237 You may also add an existing trunk group to the edge ports list. To add either a static trunk group (portchannel) or a static LACP trunk group, use the following command: RS G8052(configopenflowinstance)# edgeport portchannel where the trunk ID is derived from the original trunk configuration: Static trunk group (portchannel) RS G8052(config)# portchannel port Static LACP trunk group RS G8052(config)# portchannel lacp key For more information about trunk groups, see Chapter 9, “Ports and Trunking.” Link Aggregation In OpenFlow 1.3, port trunk groups can be added to OpenFlow instances. A trunk aggregates its member ports to form a logical port with increased bandwidth. You can add an existing static trunk group (portchannel) or static LACP trunk group to an OpenFlow instance using the following commands: RS G8052(config)# openflow instance RS G8052(configopenflowinstance)# member portchannel where the trunk ID (the logical port ID) is derived from the original trunk configuration, based on the trunk type: Static trunk group (portchannel) RS G8052(config)# portchannel port Static LACP trunk group RS G8052(config)# portchannel lacp key Note: For more information about configuring trunk groups, see Chapter 9, “Ports and Trunking.” Once added to the instance, the trunk ports inherit the OpenFlow data properties such as MAC learning turned off, flood blocking turned on, and STP disabled. The trunk link remains active as long as at least one member port is up. The trunk link speed is an aggregation of the speed of the individual member ports. If any port in the trunk goes down, the overall trunk link speed is decreased accordingly. To add a static trunk group or static LACP trunk group to the edge ports list, use the following command: RS G8052(configopenflowinstance)# edgeport portchannel 238 G8052 Application Guide for N/OS 8.3 Data Path ID The data path ID—automatically computed—is a combination of two bytes of the instance ID and six bytes of the switch MAC address. Alternately, the data path ID can be manually configured using the following command. Each instance on the switch must have a unique data path ID: RS G8052(config)# openflow instance RS G8052(configopenflowinstance)# dpid 0x) (Hex string starting with Note: If the data path ID is changed, the switch instance closes the active connection and reconnects with the modified data path ID. © Copyright Lenovo 2015 Chapter 13: OpenFlow 239 sFlow Compatibility OpenFlow ports that are set for sFlow sampling will send incoming sample packets to both the sFlow server or analyzer and the OpenFlow controller as “packet-in.” sFlow servers must be configured as reachable over a management port or a non-OpenFlow data port. Unicast FDB flows support ingress and egress sampling. ACL-based flows, multicast FDB-based flows, packet-in, send-to-controller, and mirror-to-controller flows support only ingress sampling. 240 G8052 Application Guide for N/OS 8.3 OpenFlow Groups In OpenFlow 1.3, the RackSwitch G8052 supports OpenFlow groups based on the OpenFlow 1.3.1 specification. The following OpenFlow group features are supported: © Copyright Lenovo 2015 Group types: ALL and INDIRECT Up to 256 groups per instance Group operations: ADD, MODIFY, and DELETE Support for group multipart messages: group counter statistics, group description, and group features Flows: ACL and FDB Port types: Physical port, logical port (static portchannel or static LACP trunk) Chapter 13: OpenFlow 241 Configuring OpenFlow The RackSwitch G8052 is capable of operating both in normal switching environment (default boot profile) and in OpenFlow switch environment (OpenFlow boot profile). Note: If you disable OpenFlow, you must reboot the switch to resume normal switch environment operations. Perform the following steps to configure an OpenFlow switch instance. 1. Enable OpenFlow: RS G8052(config)# openflow enable 2. Create an OpenFlow switch instance and add data ports: RS G8052(config)# openflow instance <1-2> RS G8052(configopenflowinstance)# member In version 1.3 of the OpenFlow standard, you can also add static portchannels (1-52) or static LACP trunks (53-104) to the instance: RS G8052(configopenflowinstance)# member portchannel <1-104> 3. Configure a controller for the OpenFlow switch instance: RS G8052(configopenflowinstance)# controller <1-4> address RS G8052(configopenflowinstance)# controller <1-4> port <1-65535> 4. Enable the OpenFlow switch instance: RS G8052(configopenflowinstance)# enable The switch is ready to perform switching functions in an OpenFlow environment. 5. Verify OpenFlow configuration: RS G8052(config)# show openflow instance information Configuration Example 1 - OpenFlow Boot Profile The following example includes steps to configure an OpenFlow switch instance when the switch operates in OpenFlow boot profile. Configure OpenFlow instance 1, which connects with two controllers via in-band management ports, and OpenFlow instance 2, which connects with two controllers via in-band management ports. 242 G8052 Application Guide for N/OS 8.3 1. Configure IP interface 1 for in-band connection: RS RS RS RS RS RS G8052(config)# vlan 3000 G8052(configvlan)# exit G8052(config)# interface port 3 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 3000 G8052(configif)# exit RS RS RS RS G8052(config)# interface ip 1 G8052(configipif)# ip address 172.21.100.1 255.255.0.0 enable G8052(configipif)# vlan 3000 G8052(configipif)# exit 2. Configure IP interface 2 for in-band connection: RS RS RS RS RS RS G8052(config)# vlan 4000 G8052(configvlan)# exit G8052(config)# interface port 4 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 4000 G8052(configif)# exit RS RS RS RS G8052(config)# interface ip 2 G8052(configipif)# ip address 172.22.100.1 255.255.0.0 enable G8052(configipif)# vlan 4000 G8052(configipif)# exit 3. Enable OpenFlow globally: RS G8052(config)# openflow enable 4. Configure OpenFlow in-band management ports: RS G8052(config)# openflow mgmtport 3,4(Switch can connect with the controllers via port 3 and 4, which are connected to the controller networks) Note: Step 5 is not required when the switch operates in default boot profile. 5. Create OpenFlow switch instance 1 and add ports: RS G8052(config)# openflow instance 1 (Create OpenFlow instance 1) RS G8052(configopenflowinstance)# member 17,18,1925(Add ports 17,18, and port range 19 through 25 as members of OpenFlow instance 1) 6. Configure controller 1 IP address using in-band management port: RS G8052(configopenflowinstance)# controller 1 address 172.21.100.73 (Switch connects with controller 1 via the in-band management port configured in Step 4; default controller port is used in this example) © Copyright Lenovo 2015 Chapter 13: OpenFlow 243 7. Enable OpenFlow instance 1: RS G8052(configopenflowinstance)# enable RS G8052(configopenflowinstance)# exit 8. Create OpenFlow switch instance 2 and add member ports: RS G8052(config)# openflow instance 2 (Create OpenFlow instance 2) RS G8052(configopenflowinstance)# member 26,27,2830 (Add ports 26,27, and port range 28 through 30 as members of OpenFlow instance 2) 9. Configure controller 1 IP address using in-band management port: RS G8052(configopenflowinstance)# controller 1 address 172.21.100.73 (Switch connects with controller 1 via the in-band management port configured in Step 4; default controller port is used in this example) 10. Enable OpenFlow instance 2: RS G8052(configopenflowinstance)# enable 11. View OpenFlow Configuration: RS G8052(config)# show runningconfig Configuration Example 2 - Default Boot Profile The following example includes steps to configure an OpenFlow switch instance when the switch operates in Default boot profile. 1. Configure IP interface 1 for in-band connection: 244 RS RS RS RS RS RS G8052(config)# vlan 3000 G8052(configvlan)# exit G8052(config)# interface port 3 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 3000 G8052(configif)# exit RS RS RS RS G8052(config)# interface ip 1 G8052(configipif)# ip address 172.21.100.1 255.255.0.0 enable G8052(configipif)# vlan 3000 G8052(configipif)# exit G8052 Application Guide for N/OS 8.3 2. Configure IP interface 2 for in-band connection: RS RS RS RS RS RS G8052(config)# vlan 4000 G8052(configvlan)# exit G8052(config)# interface port 4 G8052(configif)# switchport mode trunk G8052(configif)# switchport trunk allowed vlan 4000 G8052(configif)# exit RS RS RS RS G8052(config)# interface ip 2 G8052(configipif)# ip address 172.22.100.1 255.255.0.0 enable G8052(configipif)# vlan 4000 G8052(configipif)# exit 3. Enable OpenFlow globally: RS G8052(config)# openflow enable 4. Create OpenFlow switch instance 1 and add data ports: RS G8052(config)# openflow instance 1 (Create OpenFlow instance 1) RS G8052(configopenflowinstance)# member 17,18,1925(Add ports 17,18, and port range 19 through 25 as members of OpenFlow instance 1) 5. Configure controller 2 IP address using in-band management port: RS G8052(configopenflowinstance)# controller 2 address 172.21.100.73 (Switch connects with controller 2 via the in-band management port; default controller port is used in this example) 6. Enable OpenFlow instance 1: RS G8052(configopenflowinstance)# enable RS G8052(configopenflowinstance)# exit 7. Create OpenFlow switch instance 2 and add data ports: RS G8052(config)# openflow instance 2 (Create OpenFlow instance 2) RS G8052(configopenflowinstance)# member 26,27,2832 (Add ports 26,27, and port range 28 through 32 as members of OpenFlow instance 2) 8. Configure controller 1 IP address using in-band management port: RS G8052(configopenflowinstance)# controller 1 address 172.21.100.73 (Switch connects with controller 1 via the in-band management port; default controller port is used in this example) © Copyright Lenovo 2015 Chapter 13: OpenFlow 245 9. Configure controller 2 IP address using in-band management port: RS G8052(configopenflowinstance)# controller 2 address 172.22.100.73 Switch connects with controller 2 via in-band management port; default controller port is used in this example) 10. Enable OpenFlow instance 2: RS G8052(configopenflowinstance)# enable RS G8052(configopenflowinstance)# exit View OpenFlow Configuration: RS G8052(config)# show runningconfig 246 G8052 Application Guide for N/OS 8.3 Feature Limitations When the switch is booted in the OpenFlow profile, it operates only in OpenFlow switch environment. None of the normal switching environment features are supported. If the switch is booted in default profile, normal switching environment features can be configured on the non-OpenFlow ports. However, the following features are not supported: © Copyright Lenovo 2015 ACLs FCoE/CEE Dynamic PBR IPMC with IP options IPv6 Management ACL VLAG VMap VMready vNIC Chapter 13: OpenFlow 247 248 G8052 Application Guide for N/OS 8.3 Chapter 14. Virtualization Virtualization allows resources to be allocated in a fluid manner based on the logical needs of the data center, rather than on the strict, physical nature of components. The following virtualization features are included in Lenovo Network Operating System 8.3 on the RackSwitch G8052 (G8052): Virtual Local Area Networks (VLANs) VLANs are commonly used to split groups of networks into manageable broadcast domains, create logical segmentation of workgroups, and to enforce security policies among logical network segments. For details on this feature, see Chapter 8, “VLANs.” Port trunking A port trunk pools multiple physical switch ports into a single, high-bandwidth logical link to other devices. In addition to aggregating capacity, trunks provides link redundancy. For details on this feature, see Chapter 9, “Ports and Trunking.” Virtual Link Aggregation (VLAGs) With VLAGs, two switches can act as a single logical device for the purpose of establishing port trunking. Active trunk links from one device can lead to both VLAG peer switches, providing enhanced redundancy, including active-active VRRP configuration. For details on this feature, see Chapter 11, “Virtual Link Aggregation Groups.” VMready The switch’s VMready software makes it virtualization aware. Servers that run hypervisor software with multiple instances of one or more operating systems can present each as an independent virtual machine (VM). With VMready, the switch automatically discovers virtual machines (VMs) connected to switch. For details on this feature, see Chapter 16, “VMready.” N/OS virtualization features provide a highly-flexible framework for allocating and managing switch resources. © Copyright Lenovo 2015 249 250 G8052 Application Guide for N/OS 8.3 Chapter 15. Stacking This chapter describe how to implement the stacking feature in the RackSwitch G8052. The following concepts are covered: © Copyright Lenovo 2015 “Stacking Overview” on page 252 “Stack Membership” on page 254 “Configuring a Stack” on page 258 “Managing the Stack” on page 264 “Upgrading Software in an Existing Stack” on page 266 “Replacing or Removing Stacked Switches” on page 268 “Saving Syslog Messages” on page 272 “ISCLI Stacking Commands” on page 274 251 Stacking Overview A stack is a group of up to eight RackSwitch G8052 switches with Lenovo Network Operating System that work together as a unified system. A stack has the following properties, regardless of the number of switches included: The network views the stack as a single entity. The stack can be accessed and managed as a whole using standard switch IP interfaces configured with IPv4 addresses. To get CLI access to Individual Member switches, a serial console cable must be plugged into the member switch. Telnet/SSH access to a member can then be obtained by connecting from the Master using the command: connect Once the stacking links have been established (see the next section), the number of ports available in a stack equals the total number of remaining ports of all the switches that are part of the stack. The number of available IP interfaces, VLANs, Trunks, Trunk Links, and other switch attributes are not aggregated among the switches in a stack. A maximum of 128 IP interfaces can be configured, a maximum of 2048 VLANs are supported in stand-alone mode, and a maximum of 1024 VLANs are supported in stacking mode. Stacking Requirements Before Networking OS switches can form a stack, they must meet the following requirements: 252 All switches must be the same model (RackSwitch G8052). Each switch must be installed with N/OS, version 8.3 or later. The same release version is not required, as the Master switch will push a firmware image to each differing switch which is part of the stack. The recommended stacking topology is a bidirectional ring (see Figure 25 on page 260). To achieve this, two 10Gb Ethernet ports on each switch must be reserved for stacking. By default, 10Gb Ethernet ports 49-50 are used. The cables used for connecting the switches in a stack carry low-level, inter-switch communications as well as cross-stack data traffic critical to shared switching functions. Always maintain the stability of stack links to avoid internal stack reconfiguration. G8052 Application Guide for N/OS 8.3 Stacking Limitations The G8052 with N/OS 8.3 can operate in one of two modes: Default mode, which is the regular stand-alone (or non-stacked) mode. Stacking mode, in which multiple physical switches aggregate functions as a single switching device. Note: There are two distinct software images for the G8052. One supports standalone operation only, and the other supports stacking only. When in stacking mode, the following standalone features are not supported: ACL Logging BCM Rate Control Border Gateway Protocol (BGP) Edge Control Protocol (ECP) Equal-Cost Multi-Path (ECMP) IGMP Relay, IGMP Querier, and IGMPv3 Internet Key Exchange version 2 (IKEv2) IP Security (IPsec) IP version 6 (IPv6) Loop Guard Loopback Interfaces MAC address notification MSTP Network Configuration (NETCONF) Protocol Operation, Administration, and Maintenance (OAM) OSPF and OSPFv3 Port flood blocking Precision Time Protocol (PTP) Protocol-based VLANs RIP Root Guard Router IDs Route maps sFlow port monitoring Static MAC address adding Static multicast Uni-Directional Link Detection (UDLD) VLAG Virtual Router Redundancy Protocol (VRRP) Note: In stacking mode, switch menus and command for unsupported features may be unavailable, or may have no effect on switch operation. © Copyright Lenovo 2015 Chapter 15: Stacking 253 Stack Membership A stack contains up to eight switches, interconnected by a stack trunk in a local ring topology (see Figure 25 on page 260). With this topology, only a single stack link failure is allowed. An operational stack must contain one Master and one or more Members, as follows: Master One switch controls the operation of the stack and is called the Master. The Master provides a single point to manage the stack. A stack must have one and only one Master. The firmware image, configuration information, and run-time data are maintained by the Master and pushed to each switch in the stack as necessary. Member Member switches provide additional port capacity to the stack. Members receive configuration changes, run-time information, and software updates from the Master. Backup One member switch can be designated as a Backup to the Master. The Backup takes over control of the stack if the Master fails. Configuration information and run-time data are synchronized with the Master. The Master Switch An operational stack can have only one active Master at any given time. In a normal stack configuration, one switch is configured as a Master and all others are configured as Members. When adding new switches to an existing stack, the administrator must explicitly configure each new switch for its intended role as a Master (only when replacing a previous Master) or as a Member. All stack configuration procedures in this chapter depict proper role specification. However, although uncommon, there are scenarios in which a stack may temporarily have more than one Master switch. If this occurs, the switch with the lowestMAC address will be chosen as the active Master for the entire stack. The selection process is designed to promote stable, predictable stack operation and minimize stack reboots and other disruptions. Splitting and Merging One Stack If stack links or Member switches fail, any Member which cannot access either the Master or Backup is considered isolated and will not process network traffic (see “No Backup” on page 257). Members which have access to a Master or Backup (or both), despite other link or Member failures, will continue to operate as part of their active stack. A Member that is isolated due to link failure resets itself. After it is up, if the link failure still exits, the Member stays in isolated state keeping all its data links disabled. Only the management and stacking links are enabled. If the Member was not configured when it went to isolated state, the Master pushes the configuration when the Member joins back the stack. 254 G8052 Application Guide for N/OS 8.3 If multiple stack links or stack Member switches fail, thereby separating the Master and Backup into separate sub-stacks, the Backup automatically becomes an active Master for the partial stack in which it resides. Later, if the topology failures are corrected, the partial stacks will merge, and the two active Masters will come into contact. In this scenario, if both the (original) Master and the Backup (acting as Master) are in operation when the merger occurs, the original Master will reassert its role as active Master for the entire stack. If any configuration elements were changed and applied on the Backup during the time it acted as Master (and forwarded to its connected Members), the Backup and its affected Members will reboot and will be reconfigured by the returning Master before resuming their regular roles. However, if the original Master switch is disrupted (powered down or in the process of rebooting) when it is reconnected with the active stack, the Backup (acting as Master) will retain its acting Master status to avoid disruption to the functioning stack. The deferring Master will temporarily assume a role as Backup. If both the Master and Backup are rebooted, all member switches in the stack will also reboot. When the switches resume operation, they will assume their originally configured roles. If, while the stack is still split, the Backup (acting as Master) is explicitly reconfigured to become a regular Master, then when the split stacks are finally merged, the Master with the lowest MAC address will become the new active Master for the entire stack. Merging Independent Stacks If switches from different stacks are linked together in a stack topology without first reconfiguring their roles as recommended, it is possible that more than one switch in the stack might be configured as a Master. Although all switches which are configured for stacking and joined by stacking links are recognized as potential stack participants by any operational Master switches, they are not brought into operation within the stack until explicitly assigned (or “bound”) to a specific Master switch. Consider two independent stacks, Stack A and Stack B, which are merged into one stacking topology. The stacks will behave independently until the switches in Stack B are bound to Master A (or vice versa). In this example, once the Stack B switches are bound to Master A, Master A will automatically reconfigure them to operate as Stack A Members, regardless of their original status within Stack B. However, for purposes of future Backup selection, reconfigured Masters retain their identity as configured Masters, even though they otherwise act as Members. In case the configured Master goes down and the Backup takes over as the new Master, these reconfigured Masters become the new Backup. When the original configured Master of the stack boots up again, it acts as a Member. This is one way to have multiple backups in a stack. © Copyright Lenovo 2015 Chapter 15: Stacking 255 Backup Switch Selection An operational stack can have one optional Backup at any given time. Only the Backup specified in the active Master’s configuration is eligible to take over current stack control when the Master is rebooted or fails. The Master automatically synchronizes configuration settings with the specified Backup to facilitate the transfer of control functions. The Backup retains its status until one of the following occurs: The Backup setting is deleted or changed using the following commands from the active Master: RS G8052(config)# no stack backup -orRS G8052(config)# stack backup A new Master assumes operation as active Master in the stack, and uses its own configured Backup settings. The active Master is rebooted with the boot configuration set to factory defaults (clearing the Backup setting). Master Failover When the Master switch is present, it controls the operation of the stack and pushes configuration information to the other switches in the stack. If the active Master fails, then the designated Backup (if one is defined in the Master’s configuration) becomes the new acting Master and the stack continues to operate normally. Secondary Backup When a Backup takes over stack control operations, if any other configured Masters (acting as Member switches) are available within the stack, the Backup will select one as a secondary Backup. The primary Backup automatically reconfigures the secondary Backup and specifies itself (the primary Backup) as the new Backup in case the secondary fails. This prevents the chain of stack control from migrating too far from the original Master and Backup configuration intended by the administrator. Master Recovery If the prior Master recovers in a functioning stack where the Backup has assumed stack control, the prior Master does not reassert itself as the stack Master. Instead, the prior Master will assume a role as a secondary Backup to avoid further stack disruption. Upon stack reboot, the Master and Backup will resume their regular roles. 256 G8052 Application Guide for N/OS 8.3 No Backup If a Backup is not configured on the active Master, or the specified Backup is not operating, then if the active Master fails, the stack will reboot without an active Master. When a group of stacked switches are rebooted without an active Master present, the switches are considered to be isolated. All isolated switches in the stack are placed in a WAITING state until a Master appears. During this WAITING period, all the ports, except the management port and stacking ports, of these Member switches are placed into operator-disabled state. Without the Master, a stack cannot respond correctly to networking events. Stack Member Identification Each switch in the stack has two numeric identifiers, as follows: Attached Switch Number (asnum) An asnum is automatically assigned by the Master switch, based on each Member switch’s physical connection in relation to the Master. The asnum is mainly used as an internal ID by the Master switch and is not user-configurable. Configured Switch Number (csnum): The csnum is the logical switch ID assigned by the stack administrator. The csnum is used in most stacking-related configuration commands and switch information output. It is also used as a port prefix to distinguish the relationship between the ports on different switches in the stack. It is recommended that asnum 1 and csnum 1 be used for identifying the Master switch. By default, csnum 1 is assigned to the Master. If csnum 1 is not available, the lowest available csnum is assigned to the Master. © Copyright Lenovo 2015 Chapter 15: Stacking 257 Configuring a Stack Notes: When stacking mode is enabled on the switch, the configuration is reset to factory default and the port numbering changes. When a switch mode is changed from standalone to stack or from stack to standalone, the active and backup configuration will be erased. We recommended that you save the configuration to an external device before changing the switch mode. There are two distinct software images for the G8052. One supports standalone operation only, and the other supports stacking only. Configuration Overview This section provides procedures for creating a stack of switches. The high-level procedure is as follows: Configure the stack settings to be available after the next reboot: Choose one Master switch for the entire stack. Configure the same stacking VLAN for all switches in the stack. Configure the desired stacking interlinks. Configure a management interface. Reboot the Master switch. Configure the stack after the reboot: Bind Member switches to the Master. Assign a Backup switch. These tasks are covered in detail in the following sections. Best Configuration Practices The following are guidelines for building an effective switch stack: 258 Always connect the stack switches in a complete ring topology (see Figure 25 on page 260). Avoid disrupting the stack connections unnecessarily while the stack is in operation. For enhanced redundancy when creating port trunks, include ports from different stack members in the trunks. Avoid changing the csnum definitions unnecessarily while the stack is in operation. Avoid rebooting the switches unnecessarily. When in stacking mode, the highest QoS priority queue is reserved for internal stacking requirements. Therefore, only seven priority queues will be available for regular QoS use. G8052 Application Guide for N/OS 8.3 Configure only as many QoS levels as necessary. This allows the best use of packet buffers. Before configuring the stack: Identify the VLAN to be used as the stacking VLAN. Save the current configuration to an external device. The port numbering will change once stacking is enabled. Use the saved configuration to reassign ports/interfaces as per the new port numbering scheme. Once a stack is configured, port numbers are displayed using the csnum to identify the switch, followed by the switch port number. For example: Stacking VLANs VLAN 4090 is the default VLAN reserved for internal traffic on stacking ports. You can change the VLAN, if required. Note: Do not use VLAN 4090 (or the configured VLAN) for any purpose other than internal stacking traffic. Configuring Each Switch for the Stack To configure each switch for stacking, connect to each switch via its console or management interface and perform the following steps. Note: IPv6 is not supported in stacking mode. IP interfaces must use IPv4 addressing for proper stack configuration. 1. On each switch, set the stacking membership mode. By default, each switch is set to Member mode. However, one switch must be set to Master mode. Use the following command on only the designated Master switch: RS G8052(config)# boot stack mode master Note: If any Member switches are incorrectly set to Master mode, use the mode member option to set them back to Member mode. 2. On each switch, configure the stacking VLAN (or use the default setting). Although any VLAN (except VLAN 1) may be defined for stack traffic, it is highly recommended that the default, VLAN 4090 as shown in the following example, be reserved for stacking. RS G8052(config)# boot stack vlan 4090 3. On each switch, designate the stacking links. To create the recommended topology, dedicate at least two 10Gb ports on each switch to stacking. By default, 10Gb Ethernet ports 49 and 50 are used. © Copyright Lenovo 2015 Chapter 15: Stacking 259 Use the following command to specify the links to be used in the stacking trunk: RS G8052(config)# boot stack higigtrunk Note: Ports configured as Server ports for use with VMready cannot be designated as stacking links. 4. On each switch, perform a reboot: RS G8052(config)# reload 5. Physically connect the stack trunks. To create the recommended topology, attach the two designated stacking links in a bidirectional ring. As shown in Figure 25, connect each switch in turn to the next, starting with the Master switch. To complete the ring, connect the last Member switch back to the Master. Figure 25. Example of Stacking Connections Master Switch Switches connected in bidirectional ring topology Member Switch Member Switch Member Switch Note: The stacking feature is designed such that the stacking links in a ring topology do not result in broadcast loops. The stacking ring is thus valid (no stacking links are blocked), even when Spanning Tree protocol is enabled. When two units are connected with multiple stacking links, the links are automatically added as members of a higig trunk. Once the stack trunks are connected, the switches will perform low-level stacking configuration. Note: Although stack link failover/failback is accomplished on a sub-second basis, to maintain the best stacking operation and avoid traffic disruption, it is recommended not to disrupt stack links after the stack is formed. 260 G8052 Application Guide for N/OS 8.3 Additional Master Configuration Once the stack links are connected, complete the configuration. Configuring an External IPv4 Address for the Stack In addition to the internal management IP interface assigned to the Master switch, a standard switch IP interface can be used for connecting to and managing the stack externally. Configure an IP interface with the following: Stack IPv4 address and mask IPv4 default gateway address VLAN number used for external access to the stack (rather than the internal VLAN 4090 used for inter-stack traffic) RS RS RS RS RS RS RS RS G8052(config)# interface ip
G8052(configipif)# ip address G8052(configipif)# ip netmask G8052(configipif)# vlan G8052(configipif)# enable G8052(configipif)# exit G8052(config)# ip gateway address G8052(config)# ip gateway enable Once completed, stack management can be performed via Telnet or BBI (if enabled) from any point in the configured VLAN, using the IPv4 address of the configured IP interface. In the event that the Master switch fails, if a Backup switch is configured (see “Assigning a Stack Backup Switch” on page 263), the external IP interface for the stack will still be available. Locating an External Stack Interface If the IPv4 address and VLAN of an external IP interface for the stack is unknown, connect to the Master switch using the serial console and execute the following command: RS G8052(config)# show interface ip © Copyright Lenovo 2015 Chapter 15: Stacking 261 Viewing Stack Connections To view information about the switches in a stack, execute the following command: RS G8052(config)# show stack switch Stack name: GP_STK Local switch is the master. Local switch: csnum 2 MAC fc:cf:62:9d:4f:00 Switch Type 10 (G8052) Switch Mode (cfg) Master Priority 225 Stack MAC fc:cf:62:9d:4f:1f Master switch: csnum MAC 2 fc:cf:62:9d:4f:00 Backup switch: csnum MAC 3 34:40:b5:3f:0b:00 Configured Switches: csnum MAC asnum C1 34:40:b5:3f:1d:00 A2 C2 fc:cf:62:9d:4f:00 A1 C3 34:40:b5:3f:0b:00 A5 C4 34:40:b5:41:76:00 A4 C5 34:40:b5:40:bc:00 A3 Attached Switches in Stack: asnum MAC csnum State A1 fc:cf:62:9d:4f:00 C2 IN_STACK A2 34:40:b5:3f:1d:00 C1 IN_STACK A3 34:40:b5:40:bc:00 C5 IN_STACK A4 34:40:b5:41:76:00 C4 IN_STACK A5 34:40:b5:3f:0b:00 C3 IN_STACK RS G8052(config)# RS G8052(config)# show stack attachedswitches Attached Switches in Stack: asnum MAC csnum State A1 74:99:75:d1:fc:00 C1 IN_STACK A2 74:99:75:d0:99:00 C2 IN_STACK A3 74:99:75:d1:e9:00 C3 IN_STACK RS G8052(config)# 262 G8052 Application Guide for N/OS 8.3 Binding Members to the Stack You can bind Member switches to a stack csnum using either their asnum or MAC address : RS G8052(config)# stack switchnumber mac -orRS G8052(config)# stack switchnumber bind To remove a Member switch, execute the following command: RS G8052(config)# no stack switchnumber To bind all units of a stack, use the command:: RS G8052(config)# stack bind Assigning a Stack Backup Switch To define a Member switch as a Backup (optional) which will assume the Master role if the Master switch fails, execute the following command: RS G8052(config)# stack backup © Copyright Lenovo 2015 Chapter 15: Stacking 263 Managing the Stack The stack is managed primarily through the Master switch. The Master switch then pushes configuration changes and run-time information to the Member switches. Accessing the Master Switch CLI To access the Master switch, use Telnet or the Browser-Based Interface (BBI) as follows: Use the serial console. On any switch in the stack, connect to any port that is not part of an active trunk and is a member of a VLAN. To access the stack, use the IP address of any IP interface that is member of the VLAN. Rebooting Stacked Switches via the Master Rebooting Stacked Switches using the ISCLI The administrator can reboot individual switches in the stack, or the entire stack using the following commands: (Reboot all switches in the stack) (Reboot only the stack Master) RS G8052(config)# reload switch (Reboot only the listed switches) RS G8052(config)# reload RS G8052(config)# reload master Rebooting Stacked Switches using the BBI The Configure > System > Config/Image Control window allows the administrator to perform a reboot of individual switches in the stack, or the entire stack. The following table describes the stacking Reboot buttons. Table 25. Stacking Boot Management buttons Field Description Reboot Stack Performs a software reboot/reset of all switches in the stack. The software image specified in the Image To Boot drop-down list becomes the active image. Reboot Master Performs a software reboot/reset of the Master switch. The software image specified in the Image To Boot drop-down list becomes the active image. Reboot Switches Performs a reboot/reset on selected switches in the stack. Select one or more switches in the drop-down list, and click Reboot Switches. The software image specified in the Image To Boot drop-down list becomes the active image. The Update Image/Cfg section of the window applies to the Master. When a new software image or configuration file is loaded, the file first loads onto the Master, and the Master pushes the file to all other switches in the stack, placing it in the 264 G8052 Application Guide for N/OS 8.3 same software or configuration bank as that on the Master. For example, if the new image is loaded into image 1 on the Master switch, the Master will push the same firmware to image 1 on each Member switch. © Copyright Lenovo 2015 Chapter 15: Stacking 265 Upgrading Software in an Existing Stack Upgrade all stacked switches at the same time. The Master controls the upgrade process. Use the following procedure to perform a software upgrade for a stacked system. 1. Load new software on the Master (see “Loading New Software to Your Switch” on page 72). The Master pushes the new software image to all Members in the stack, as follows: If the new software is loaded into image 1, the Master pushes the software into image 1 on all Members. If loaded into image 2, the Master pushes the software into image 2 on all Members. The software push can take several minutes to complete. 2. Verify that the software push is complete. Use either the BBI or the ISCLI: From the BBI, go to Dashboard > Stacking > Push Status and view the Image Push Status Information, or From the ISCLI, use following command to verify the software push: RS G8052(config)# show stack pushstatus Image 1 transfer status info: Switch 00:16:60:f9:33:00: last receive successful Switch 00:17:ef:c3:fb:00: not received file not sent or transfer in progress Image 2 transfer status info: Switch 00:16:60:f9:33:00: last receive successful Switch 00:17:ef:c3:fb:00: last receive successful Boot image transfer status info: Switch 00:16:60:f9:33:00: last receive successful Switch 00:17:ef:c3:fb:00: last receive successful Config file transfer status info: Switch 00:16:60:f9:33:00: last receive successful Switch 00:17:ef:c3:fb:00: last receive successful 3. Reboot all switches in the stack. Use either the ISCLI or the BBI. From the BBI, select Configure > System > Config/Image Control. Click Reboot Stack. From the ISCLI, use the following command: RS G8052(config)# reload 266 G8052 Application Guide for N/OS 8.3 4. Once the switches in the stack have rebooted, verify that all of them are using the same version of firmware. Use either the ISCLI or the BBI. From the BBI, open Dashboard > Stacking > Stack Switches and view the Switch Firmware Versions Information from the Attached Switches in Stack. From the ISCLI, use the following command: RS G8052(config)# show stack version Switch Firmware Versions: asnum csnum MAC S/W Version Serial # A1 C2 fc:cf:62:9d:4f:00 image1 8.3.0.1 US7042001C A2 C1 34:40:b5:3f:1d:00 image1 8.3.0.1 Y250VT215167 A3 C5 34:40:b5:40:bc:00 image1 8.3.0.1 Y250VT21S410 A4 C4 34:40:b5:41:76:00 image1 8.3.0.1 Y250VT21S409 A5 C3 34:40:b5:3f:0b:00 image1 8.3.0.1 Y250VT215168 © Copyright Lenovo 2015 Chapter 15: Stacking 267 Replacing or Removing Stacked Switches Stack switches may be replaced or removed while the stack is in operation. However, the following conditions must be met to avoid unnecessary disruption: If removing an active Master switch, make sure that a valid Backup exists in the stack. It is best to replace only one switch at a time. If replacing or removing multiple switches in a ring topology, when one switch has been properly disconnected (see the procedures that follow), any adjacent switch can also be removed. Removing any two, non-adjacent switches in a ring topology will divide the ring and disrupt the stack. Use the following procedures to replace a stack switch. Removing a Switch from the Stack 1. Make sure the stack is configured in a ring topology. Note: When an open-ended daisy-chain topology is in effect (either by design or as the result of any failure of one of the stacking links in a ring topology), removing a stack switch from the interior of the chain can divide the chain and cause serious disruption to the stack operation. 2. If removing a Master switch, make sure that a Backup switch exists in the stack, then turn off the Master switch. This will force the Backup switch to assume Master operations for the stack. 3. Remove the stack link cables from the old switch only. 4. Disconnect all network cables from the old switch only. 5. Remove the old switch. Installing the New Switch or Healing the Topology If using a ring topology, but not installing a new switch for the one removed, close the ring by connecting the open stack links together, essentially bypassing the removed switch. Otherwise, if replacing the removed switch with a new unit, use the following procedure: 1. Make sure the new switch meets the stacking requirements on page 252. 2. Place the new switch in its determined place according to the RackSwitch G8052 Installation Guide. 3. Connect to the ISCLI of the new switch (not the stack interface). 4. Set the stacking mode. 268 G8052 Application Guide for N/OS 8.3 By default, each switch is set to Member mode. However, if the incoming switch has been used in another stacking configuration, it may be necessary to ensure the proper mode is set. If replacing a Member or Backup switch: RS G8052(config)# boot stack mode member If replacing a Master switch: RS G8052(config)# boot stack mode master 5. Configure the stacking VLAN on the new switch, or use the default setting. Although any VLAN may be defined for stack traffic, it is highly recommended that the default, VLAN 4090, be reserved for stacking, as shown in the following command. RS G8052(config)# boot stack vlan 4090 6. Designate the stacking links. It is recommended that you designate the same number of 10Gb ports for stacking as the switch being replaced. By default, 10Gb Ethernet ports 49 and 50 are used. At least one 10Gb port is required. Use the following command to specify the links to be used in the stacking trunk: RS G8052(config)# boot stack higigtrunk 7. Attach the required stack link cables to the designated stack links on the new switch. 8. Attach the desired network cables to the new switch. 9. Reboot the new switch: RS G8052(config)# reload When the new switch boots, it will join the existing stack. Wait for this process to complete. © Copyright Lenovo 2015 Chapter 15: Stacking 269 Binding the New Switch to the Stack 1. Log in to the stack interface. Note: If replacing the Master switch, be sure to log in to the stack interface (hosted temporarily on the Backup switch) rather than logging in directly to the newly installed Master. 2. From the stack interface, assign the csnum for the new switch. You can bind Member switches to a stack csnum using either the new switch’s asnum or MAC address : RS G8052(config)# stack switchnumber