Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(X)
Total Page:16
File Type:pdf, Size:1020Kb
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) First Published: 2019-07-20 Last Modified: 2021-03-05 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883 THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. All printed copies and duplicate soft copies of this document are considered uncontrolled. See the current online version for the latest version. Cisco has more than 200 offices worldwide. Addresses and phone numbers are listed on the Cisco website at www.cisco.com/go/offices. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: https://www.cisco.com/c/en/us/about/legal/trademarks.html. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1721R) © 2019–2020 Cisco Systems, Inc. All rights reserved. CONTENTS PREFACE Preface xi Audience xi Document Conventions xi Related Documentation for Cisco Nexus 9000 Series Switches xii Documentation Feedback xii Communications, Services, and Additional Information xii CHAPTER 1 New and Changed Information 1 New and Changed Information 1 CHAPTER 2 Overview 3 Licensing Requirements 3 Software Image 3 Software Compatibility 3 Spine/Leaf Topology 3 Modular Software Design 4 Serviceability 4 Switched Port Analyzer 4 Ethanalyzer 4 Smart Call Home 4 Online Diagnostics 5 Embedded Event Manager 5 Manageability 5 Simple Network Management Protocol 5 Configuration Verification and Rollback 5 Role-Based Access Control 5 Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) iii Contents Cisco NX-OS Device Configuration Methods 5 Programmability 6 Python API 6 Tcl 6 Cisco NX-API 6 Bash Shell 7 Broadcom Shell 7 Traffic Routing, Forwarding, and Management 7 Ethernet Switching 7 IP Routing 7 IP Services 8 IP Multicast 8 Quality of Service 9 Network Security Features 9 Supported Standards 9 CHAPTER 3 Using the Cisco NX-OS Setup Utility 15 About the Cisco NX-OS Setup Utility 15 Prerequisites for the Setup Utility 16 Setting Up Your Cisco NX-OS Device 17 Additional References for the Setup Utility 21 Related Documents for the Setup Utility 21 CHAPTER 4 Using PowerOn Auto Provisioning 23 About PowerOn Auto Provisioning 23 Network Requirements for POAP 23 Disabling POAP 24 POAP Configuration Script 25 Using the POAP Script and POAP Script Options 25 Setting up the DHCP Server without DNS for POAP 28 Downloading and Using User Data, Agents, and Scripts as part of POAP 29 POAP Process 29 Power-Up Phase 30 USB Discovery Phase 31 Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) iv Contents DHCP Discovery Phase 31 Script Execution Phase 33 Post-Installation Reload Phase 33 POAPv3 33 Guidelines and Limitations for POAP 35 Setting Up the Network Environment to Use POAP 36 Configuring a Switch Using POAP 37 Creating md5 Files 37 Verifying the Device Configuration 39 Troubleshooting for POAP 39 Managing the POAP Personality 39 POAP Personality 39 Backing Up the POAP Personality 40 Configuring the POAP Personality 41 Restoring the POAP Personality 42 POAP Personality Sample Script 42 CHAPTER 5 Using Network Plug and Play 45 About Network Plug and Play 45 Guidelines and Limitations for Network Plug and Play 52 Troubleshooting Examples for Network Plug and Play 53 CHAPTER 6 Understanding the Command-Line Interface 59 About the CLI Prompt 59 Command Modes 60 EXEC Command Mode 60 Global Configuration Command Mode 60 Interface Configuration Command Mode 61 Subinterface Configuration Command Mode 61 Saving and Restoring a Command Mode 62 Exiting a Configuration Command Mode 62 Command Mode Summary 63 Special Characters 64 Keystroke Shortcuts 64 Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) v Contents Abbreviating Commands 67 Completing a Partial Command Name 67 Identifying Your Location in the Command Hierarchy 68 Using the no Form of a Command 68 Configuring CLI Variables 69 About CLI Variables 69 Configuring CLI Session-Only Variables 70 Configuring Persistent CLI Variables 70 Command Aliases 71 About Command Aliases 71 Defining Command Aliases 72 Configuring Command Aliases for a User Session 73 Command Scripts 73 Running a Command Script 73 Echoing Information to the Terminal 74 Delaying Command Action 75 Context-Sensitive Help 75 Understanding Regular Expressions 76 Special Characters 76 Multiple-Character Patterns 77 Anchoring 77 Searching and Filtering show Command Output 78 Filtering and Searching Keywords 78 diff Utility 80 grep and egrep Utilities 80 less Utility 81 Mini AWK Utility 81 sed Utility 81 sort Utility 82 Searching and Filtering from the --More-- Prompt 82 Using the Command History 83 Recalling a Command 84 Controlling CLI History Recall 84 Configuring the CLI Edit Mode 84 Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) vi Contents Displaying the Command History 84 Enabling or Disabling the CLI Confirmation Prompts 85 Setting CLI Display Colors 86 Sending Commands to Modules 86 Sending Command Output in Email 87 BIOS Loader Prompt 89 Examples Using the CLI 89 Using the System-Defined Timestamp Variable 89 Using CLI Session Variables 89 Defining Command Aliases 90 Running a Command Script 90 Sending Command Output in Email 91 CHAPTER 7 Configuring Terminal Settings and Sessions 93 About Terminal Settings and Sessions 93 Terminal Session Settings 93 Console Port 93 Virtual Terminals 94 Default Settings for File System Parameters 94 Configuring the Console Port 94 Configuring Virtual Terminals 96 Configuring the Inactive Session Timeout 96 Configuring the Session Limit 97 Clearing Terminal Sessions 98 Displaying Terminal and Session Information 98 CHAPTER 8 Basic Device Management 101 About Basic Device Management 101 Device Hostname 101 Message-of-the-Day Banner 101 Device Clock 101 Clock Manager 102 Time Zone and Summer Time (Daylight Saving Time) 102 User Sessions 102 Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) vii Contents Default Settings for Basic Device Parameters 102 Changing the Device Hostname 102 Configuring the MOTD Banner 103 Configuring the Time Zone 104 Configuring Summer Time (Daylight Saving Time) 105 Manually Setting the Device Clock 106 Setting the Clock Manager 107 Managing Users 108 Displaying Information about the User Sessions 108 Sending a Message to Users 108 Verifying the Device Configuration 108 CHAPTER 9 Using the Device File Systems, Directories, and Files 111 About the Device File Systems, Directories, and Files 111 File Systems 111 Directories 112 Files 112 Guidelines and Limitations 113 Default Settings for File System Parameters 113 Configuring the FTP, HTTP, or TFTP Source Interface 113 Working with Directories 114 Identifying the Current Directory 114 Changing the Current Directory 114 Creating a Directory 115 Displaying Directory Contents 115 Deleting a Directory 115 Accessing Directories on the Standby Supervisor Module 116 Working with Files 116 Moving Files 116 Copying Files 117 Deleting Files 118 Displaying File Contents 118 Displaying File Checksums 119 Compressing and Uncompressing Files 119 Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 9.3(x) viii Contents Displaying the Last Lines in a File 120 Redirecting show Command Output