Sei sulla pagina 1di 29

Nexus 5000 Lab 1: Initial Switch Configuration

Lab Exercise 1: Initial Switch Configuration........................................................................................... 3 Task 1: Initial Nexus Switch Configuration............................................................................................. 7 Task 2: Exploring the Nexus 5000 CLI .................................................................................................. 10 Task 3: Saving the Nexus 5000 Switch Configuration........................................................................... 13 Task 4: Perform the initial setup of N5K-2............................................................................................. 15 Task 5: Perform the initial setup of MDS9124....................................................................................... 17 Task 6: Exploring the MDS 9124 CLI .................................................................................................... 20 Task 7: Saving the MDS9124 Switch Configuration ............................................................................. 23 Appendix A: Recovering from the Loader prompt ................................................................................. 25

Nexus 5000: Lab 1: Initial Switch Configuration

Page 2 of 29

Lab Exercise 1: Initial Switch Configuration


Complete this lab exercise to practice initial switch configuration

Exercise Objective
In this exercise you will configure the Nexus 5000 and MDS 9124 switches for out-of-band management and explore the Nexus Operating System (NxOS) command line interface (CLI). After completing the exercise you will be able to meet these objectives: Clear the current startup configuration and reboot the switch Recover from the loader prompt Start the interactive setup process on the Nexus 5000 and MDS 9124 switch Configure a Nexus 5000 and an MDS 9124 switch for out-of-band management Navigate through the switch CLI structure on the Nexus 5000 and MDS 9124 Use command completion and help Save the running configuration Save the switch configuration to a tFTP/FTP server

Visual Objective
Figure 1 illustrates what you will accomplish in this exercise.

Figure 1. Nexus 5000 and MDS 9124 switch and tFTP/FTP Server
You will configure the mgmt0 Ethernet interfaces on both switches, and save and restore configurations from the tFTP server.

Nexus 5000: Lab 1: Initial Switch Configuration

Page 3 of 29

Required Resources
These are the resources and equipment required to complete the exercise: Nexus 5000 Unified Fabric Switch with NxOS 4.2(1)N1(1) MDS 9124 Fibre Channel Switch with NxOS 5.0(1a) Access to tFTP and FTP server Command List The commands used in this exercise are described in the table below.

Table 1. Commands
Command
write erase boot boot kickstart bootflash:filename boot system bootflash:filename show boot reload setup show ? show running-config show interface brief show vlan show vsan show version show environment config term ping interface fc1/3 show module copy tftp://x.x.x.x/filename bootflash:/filename load bootflash:/filename show file volatile del file volatile dir volatile exit end shut no shut copy running-config startupconfig copy running-config tftp://ip_address/path copy tftp load bootflash show fcns database dir [volatile: | bootflash:] show file name del name

Description
Erases the switchs startup configuration Configures the boot variable for the kickstart software image to the file named in bootflash: Configures the boot variable for the system software image to the file named in bootflash: Displays the boot variable configuration Reboots the switch Enter the basic device setup dialog Displays all the permissible features for the show command for the current user Shows the running configuration Displays an interface status summary Displasy VLAN configuration and status Displays VSAN configuration and status Displays current code version Displays environment-related switch information, such as fan, power, and temperature status Enters configuration mode Packet internet gopher used to determine network connectivity Enters configuration submode for FC port 3 on module 1 Displays all the modules associated with the network device Copies a file (filename) from the tftp server with the address x.x.x.x to the bootflash: Loads the system file (filename) from the bootflash: when booting from the loader prompt Examine the contents of the configuration file in the volatile file system Deletes the file from the volatile system Display volatile file to confirm action Exits one level in the menu structure. If you are in EXEC mode this command will log you off the system Exits configuration mode to EXEC mode Disables an interface Enables an interface Saves the running configuration as the startup configuration Saves the running configuration to a TFTP server Copy the system file from the TFPT server to the local bootflash Loads the system file from bootflash Shows the FCNS database Displays the contents of the specified memory area Displays the contents of the specified file Deletes the specified file

Nexus 5000: Lab 1: Initial Switch Configuration

Page 4 of 29

Starting The tftp Server


Log on to the VC_SERVER from the SSL Dashboard. The username/password is administrator/cisco:

Nexus 5000: Lab 1: Initial Switch Configuration

Page 5 of 29

Double-click on the tftpd32 icon on the desktop. The default directory is c:\tftp:

Job Aids
Nexus 5000 CLI Configuration Guide http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/configuration/guide/cli/C LIConfigurationGuide.html

Nexus 5000: Lab 1: Initial Switch Configuration

Page 6 of 29

Task 1: Initial Nexus Switch Configuration


In this task you will complete the initial configuration of the Nexus 5000 for out-of-band management.

Exercise Procedure
Complete these steps on the N5K_1 switch: Note: If the switch is not at the System Admin Account Setup, log into the switch and issue the commands: switch# write erase Warning: This command will erase the startup-configuration. Do you wish to proceed anyway? (y/n) [n] y switch# reload WARNING: This command will reboot the system Do you want to continue? (y/n) [n] y After reboot, complete Step 1 Step 1 Log in to the Nexus 5000 using the console button on the lab interface. The prompt should be at the System Admin Account Setup. Run through the setup script. ---- System Admin Account Setup ----

Do you want to enforce secure password standard (yes/no): no Enter the password for "admin": 1234Qwer Confirm the password for "admin": 1234Qwer ---- Basic System Configuration Dialog ---This setup utility will guide you through the basic configuration of the system. Setup configures only enough connectivity for management of the system. Please register Cisco Nexus 5000 Family devices promptly with your supplier. Failure to register may affect response times for initial service calls. Nexus devices must be registered to receive entitled support services. Press Enter at anytime to skip a dialog. Use ctrl-c at anytime to skip the remaining dialogs. Would you like to enter the basic configuration dialog(yes/no): yes
Nexus 5000: Lab 1: Initial Switch Configuration Page 7 of 29

Create another login account (yes/no) [n]: n Configure read-only SNMP community string (yes/no) [n]: n Configure read-write SNMP community string (yes/no) [n]: n Enter the switch name : N5K-1 Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]: y Mgmt0 IPv4 address : 192.168.1.1 Mgmt0 IPv4 netmask : 255.255.255.0 Configure the default gateway? (yes/no) [y]:y IPv4 address of the default gateway : 192.168.1.254 Enable the telnet service? (yes/no) [n]: y Enable the http-server? (yes/no) [y]: y Enable the ssh service? (yes/no) [y]: y Type of ssh key you would like to generate (dsa/rsa) : rsa Number of key bits <768-2048> : 1024

Configure the ntp server? (yes/no) [n]: n Enter basic FC configurations (yes/no) [n]: n The following configuration will be applied: switchname N5K-1 interface mgmt0 ip address 192.168.1.1 255.255.255.0 no shutdown exit vrf context management ip route 0.0.0.0/0 192.168.1.254 exit telnet server enable feature http-server ssh key rsa 1024 force ssh server enable Would you like to edit the configuration? (yes/no) [n]: n
Nexus 5000: Lab 1: Initial Switch Configuration Page 8 of 29

Use this configuration and save it? (yes/no) [y]: y [########################################] 100%

Nexus 5000 Switch N5K-1 login: admin Password: 1234Qwer Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under license. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or the GNU Lesser General Public License (LGPL) Version 2.1. A copy of each such license is available at http://www.opensource.org/licenses/gpl-2.0.php and http://www.opensource.org/licenses/lgpl-2.1.php N5K-1# Step 2 Set routing context for VRF management interface to allow for layer 3 access, This will also allow you to ping and TFTP as needed in the following exercises N5K-1# routing-context vrf management Step 3 Ping the tFTP server N5K-1%management# ping 192.168.1.10 PING 192.168.1.10 (192.168.1.10): 56 data bytes Request 0 timed out 64 bytes from 192.168.1.10: icmp_seq=1 ttl=127 time=3.664 64 bytes from 192.168.1.10: icmp_seq=2 ttl=127 time=3.881 64 bytes from 192.168.1.10: icmp_seq=3 ttl=127 time=4.074 64 bytes from 192.168.1.10: icmp_seq=4 ttl=127 time=4.058

ms ms ms ms

--- 192.168.1.10 ping statistics --5 packets transmitted, 4 packets received, 20.00% packet loss round-trip min/avg/max = 3.664/3.919/4.074 ms N5K-1%management# Step 4 Set the routing context back to default: N5K-1%management# routing-context vrf default
Nexus 5000: Lab 1: Initial Switch Configuration Page 9 of 29

Task 2: Exploring the Nexus 5000 CLI


In this task you will briefly explore the Nexus 5000 command line interface (CLI).

Exercise Procedure
Complete these steps on the Nexus 5000: Step 1 Type ? to view the current command options. N5K-1# ? Step 2 Display all commands that begin with S, sh, and show. Press Enter or space to scroll through the list of commands. N5K-1# s? N5K-1# sh? N5K-1# show ? Step 3 Display the current running configuration. N5K-1# show running-config Abbreviate the syntax, then hit tab key to complete each word; for example, type sh<tab> ru<tab>. Step 4 Display the status of the switch interfaces. Notice that only Ethernet interfaces are listed. N5K-1# show interface brief (abbr: sh int bri) ------------------------------------------------------------------------------Ethernet VLAN Type Mode Status Reason Speed Port Interface Ch # ------------------------------------------------------------------------------Eth1/1 1 eth access down SFP validation failed 10G(D) -Eth1/2 1 eth access down SFP not inserted 10G(D) -Eth1/3 1 eth access down Link not connected 10G(D) -Eth1/4 1 eth access down Link not connected 10G(D) -Eth1/5 1 eth access down SFP not inserted 10G(D) -Eth1/6 1 eth access down SFP not inserted 10G(D) -Nexus 5000: Lab 1: Initial Switch Configuration Page 10 of 29

Eth1/7 10G(D) -Eth1/8 10G(D) -Eth1/9 10G(D) -Eth1/10 10G(D) -Eth1/11 10G(D) -Eth1/12 10G(D) -Eth1/13 10G(D) -Eth1/14 10G(D) -Eth1/15 10G(D) -Eth1/16 10G(D) -Eth1/17 10G(D) -Eth1/18 10G(D) -Eth1/19 10G(D) -Eth1/20 10G(D) -Eth2/1 10G(D) -Eth2/2 10G(D) -Eth2/3 10G(D) -Eth2/4 10G(D) --

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

eth eth eth eth eth eth eth eth eth eth eth eth eth eth eth eth eth eth

access down access down access up access up access down access down access down access down access down access down access up access up access down access down access down access down access down access down

SFP not inserted SFP not inserted none none SFP not inserted SFP not inserted SFP not inserted SFP not inserted SFP not inserted SFP not inserted none none SFP not inserted SFP not inserted SFP not inserted SFP not inserted SFP not inserted SFP not inserted

------------------------------------------------------------------------------Port VRF Status IP Address Speed MTU ------------------------------------------------------------------------------mgmt0 -up 192.168.1.1 1000 1500 Step 5 Display VLAN information. N5K-1# show vlan VLAN Name Status Ports ---- -------------------------------- --------- -----------------------------1 default active Eth1/1, Eth1/2, Eth1/3, Eth1/4 Eth1/5, Eth1/6, Eth1/7, Eth1/8
Nexus 5000: Lab 1: Initial Switch Configuration Page 11 of 29

Eth1/9, Eth1/10, Eth1/11 Eth1/12, Eth1/13, Eth1/14 Eth1/15, Eth1/16, Eth1/17 Eth1/18, Eth1/19, Eth1/20 Eth2/1, Eth2/2, Eth2/3, Eth2/4 Remote SPAN VLANs -----------------------------------------------------------------------------Primary Secondary ------- -------------------------Step 6 Display VSAN information. N5K-1# show vsan ^ % Invalid command at '^' marker. N5K-1# Note: Step 7 The fcoe feature must be activated to use the fibre channel features. Activate the fcoe features: N5K-1# configure terminal Enter configuration commands, one per line. N5K-1(config)# feature fcoe FC license checked out successfully fc_plugin extracted successfully FC plugin loaded successfully FCoE manager enabled successfully FC enabled on all modules successfully N5K-1(config)# exit Step 8 Display VSAN information. N5K-1# show vsan vsan 1 information name:VSAN0001 state:active interoperability mode:default loadbalancing:src-id/dst-id/oxid operational state:down vsan 4079:evfp_isolated_vsan vsan 4094:isolated_vsan Step 9 Display the current installed version of code and environmental information.
Page 12 of 29

Type ---------------

Ports -------------------------

End with CNTL/Z.

Nexus 5000: Lab 1: Initial Switch Configuration

N5K-1# show version N5K-1# show environment Step 10 Display the Ethernet and Fibre Channel modules of the Nexus 5020. This is where youll find the WWN range for the FC ports and the range of Ethernet addresses for the 10 Gigabit Ethernet ports. The first address (whether FC or Ethernet) is associated with port 1 of that transport type and subsequent ascending address numbers are associated with the next ascending port number. N5K-1# show module Mod Ports Module-Type Model Status --- ----- -------------------------------- --------------------- -----------1 20 20x10GE/Supervisor N5K-C5010P-BF-SUP active * 2 8 4x10GE + 4x1/2/4G FC Module N5K-M1404 ok Mod Sw Hw --- -------------- ---------------------1 4.2(1)N1(1) 1.2 2 4.2(1)N1(1) 1.0 20:44:00:05:9b:7a:03:80 World-Wide-Name(s) (WWN) ---------------------------------20:41:00:05:9b:7a:03:80 to Serial-Num ---------JAF1414ABQT JAF1409ASPA

Mod MAC-Address(es) --- -------------------------------------1 0005.9b7a.0388 to 0005.9b7a.03af 2 0005.9b7a.03b0 to 0005.9b7a.03b7 N5K-1#

Task 3: Saving the Nexus 5000 Switch Configuration


In this task you will save and restore switch configurations using the command line interface (CLI).

Exercise Procedure
Complete these steps on the Nexus 5000: Step 1 Update the startup configuration with the changes made in the running configuration. N5K-1# copy running-config startup-config [########################################] 100% N5K-1# Step 2 Step 3 Access your desktop (Username: Administrator/ password: cisco) and start your TFTP server Save your running configuration on the tFTP server. N5K-1# copy running-config tftp://192.168.1.10/N5K-1-Lab1config
Nexus 5000: Lab 1: Initial Switch Configuration Page 13 of 29

Enter vrf (If no input, current vrf 'default' is considered): management Trying to connect to tftp server...... Connection to Server Established. TFTP put operation was successful N5K-1# Note: Be sure you start the tFTP/FTP Server before attempting to save the configuration or your copy will fail. Please review Lab 0 Lab Services for instructions on how to use the tFTP/FTP server.

Use a tFTP/FTP Server in production networks to keep backup configurations and code releases for each network device. Be sure to include these servers in your regular Data Center backup plans. Step 4 Copy the file you just saved back to the switchs volatile file system. N5K-1# copy tftp://192.168.1.10/N5K-1-Lab1-config volatile: Enter vrf (If no input, current vrf 'default' is considered): management Trying to connect to tftp server...... Connection to Server Established. TFTP get operation was successful N5K-1# Step 5 Examine the contents of the configuration file in the volatile file system: N5K-1# dir volatile: 1392 Jun 07 20:41:54 2010 Usage for volatile://sup-local 4096 bytes used 62910464 bytes free 62914560 bytes total N5K-1# Step 6 Delete the file from the volatile file system and confirm that it has been deleted. N5K-1# del volatile:N5K-1-Lab1-config N5K-1# dir volatile: Usage for volatile://sup-local 0 bytes used 62914560 bytes free 62914560 bytes total N5K-1#
Nexus 5000: Lab 1: Initial Switch Configuration Page 14 of 29

N5K-1-Lab1-config

Step 7

Exit from the CLI and log off. N5K-1# exit Nexus 5000 Switch N5K-1 login:

Task 4: Perform the initial setup of N5K-2


In this task you will complete the initial configuration of the N5K_2 switch for out-of-band management. Step 1 Log in to the Nexus 5000 (N5K_2) using the console button on the lab interface. The prompt should be at the System Admin Account Setup. Run through the setup script. Do you want to enforce secure password standard (yes/no): no Enter the password for "admin": 1234Qwer Confirm the password for "admin": 1234Qwer ---- Basic System Configuration Dialog ---This setup utility will guide you through the basic configuration of the system. Setup configures only enough connectivity for management of the system. Please register Cisco Nexus 5000 Family devices promptly with your supplier. Failure to register may affect response times for initial service calls. Nexus devices must be registered to receive entitled support services. Press Enter at anytime to skip a dialog. Use ctrl-c at anytime to skip the remaining dialogs. Would you like to enter the basic configuration dialog (yes/no): yes

Create another login account (yes/no) [n]: n Configure read-only SNMP community string (yes/no) [n]: n Configure read-write SNMP community string (yes/no) [n]: n Enter the switch name : N5K-2 Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]: y
Nexus 5000: Lab 1: Initial Switch Configuration Page 15 of 29

Mgmt0 IPv4 address : 192.168.1.2 Mgmt0 IPv4 netmask : 255.255.255.0 Configure the default gateway? (yes/no) [y]: y IPv4 address of the default gateway : 192.168.1.254 Enable the telnet service? (yes/no) [n]: y Enable the http-server? (yes/no) [y]: y Enable the ssh service? (yes/no) [y]: y Type of ssh key you would like to generate (dsa/rsa) : rsa Number of key bits <768-2048> : 1024

Configure the ntp server? (yes/no) [n]: n Enter basic FC configurations (yes/no) [n]: n The following configuration will be applied: switchname N5K-2 interface mgmt0 ip address 192.168.1.2 255.255.255.0 no shutdown exit vrf context management ip route 0.0.0.0/0 192.168.1.254 exit telnet server enable feature http-server ssh key rsa 1024 force ssh server enable Would you like to edit the configuration? (yes/no) [n]: n Use this configuration and save it? (yes/no) [y]: y [########################################] 100% Step 2 Log into N5K-2 and verify connectivity from the management interface to the default gateway: N5K-2 login: admin Password: 1234Qwer N5K-2# ping 192.168.1.254 vrf management
Nexus 5000: Lab 1: Initial Switch Configuration Page 16 of 29

PING 192.168.1.254 (192.168.1.254): 56 data bytes Request 0 timed out Request 1 timed out 64 bytes from 192.168.1.254: icmp_seq=2 ttl=254 time=2.171 ms 64 bytes from 192.168.1.254: icmp_seq=3 ttl=254 time=3.888 ms 64 bytes from 192.168.1.254: icmp_seq=4 ttl=254 time=4.133 ms --- 192.168.1.254 ping statistics --5 packets transmitted, 3 packets received, 40.00% packet loss round-trip min/avg/max = 2.171/3.397/4.133 ms N5K-2# Step 3 Activate the fcoe feature on N5K-2: N5K-2# conf t Enter configuration commands, one per line. N5K-2(config)# feature fcoe FC license checked out successfully fc_plugin extracted successfully FC plugin loaded successfully FCoE manager enabled successfully FC enabled on all modules successfully N5K-2(config)# exit Step 4 Save the running configuration N5K-2# copy run st [########################################] 100% N5K-2# End with CNTL/Z.

Task 5: Perform the initial setup of MDS9124


In this task you will complete the initial configuration of the MDS 9124 switch for out-of-band management.

Exercise Procedure
Complete these steps on the MDS 9124: Note: If the switch is not at the System Admin Account Setup prompt, log into the switch and issue the following commands: switch# wr erase Warning: This command will erase the startup-configuration. Do you wish to proceed anyway? (y/n) [n] y switch# reload This command will reboot the system. (y/n)? [n] y
Nexus 5000: Lab 1: Initial Switch Configuration Page 17 of 29

Step 1

Connect to the MDS 9124 using the console button on the lab interface and perform the System Admin Account Setup: ---- System Admin Account Setup ----

Do you want to enforce secure password standard (yes/no) [y]:n Enter the password for "admin": 1234Qwer Confirm the password for "admin": 1234Qwer ---- Basic System Configuration Dialog ---This setup utility will guide you through the basic configuration of the system. Setup configures only enough connectivity for management of the system. Please register Cisco MDS 9000 Family devices promptly with your supplier. Failure to register may affect response times for initial service calls. MDS devices must be registered to receive entitled support services. Press Enter at anytime to skip a dialog. Use ctrl-c at anytime to skip the remaining dialogs. Would you like to enter the basic configuration dialog (yes/no): yes Create another login account (yes/no) [n]: n Configure read-only SNMP community string (yes/no) [n]: n Configure read-write SNMP community string (yes/no) [n]: n Enter the switch name : MDS9124 Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]: y Mgmt0 IPv4 address : 192.168.1.40 Mgmt0 IPv4 netmask : 255.255.255.0 Configure the default gateway? (yes/no) [y]: y IPv4 address of the default gateway : 192.168.1.254 Configure advanced IP options? (yes/no) [n]: n Enable the ssh service? (yes/no) [y]: y
Nexus 5000: Lab 1: Initial Switch Configuration Page 18 of 29

Type of ssh key you would like to generate (dsa/rsa) [rsa]: rsa Number of rsa key bits <768-2048> [1024]: 1024 Enable the telnet service? (yes/no) [n]: y Enable the http-server? (yes/no) [y]: y Configure clock? (yes/no) [n]: n Configure timezone? (yes/no) [n]: n Configure summertime? (yes/no) [n]: n Configure the ntp server? (yes/no) [n]: n Configure default switchport interface state (shut/noshut) [shut]: shut Configure default switchport trunk mode (on/off/auto) [on]: on Configure default switchport port mode F (yes/no) [n]: n Configure default zone policy (permit/deny) [deny]: deny Enable full zoneset distribution? (yes/no) [n]: y Configure default zone mode (basic/enhanced) [basic]: basic The following configuration will be applied: password strength-check switchname MDS interface mgmt0 ip address 192.168.1.40 255.255.255.0 no shutdown ip default-gateway 192.168.1.254 ssh key rsa 1024 force feature ssh feature telnet feature http-server system default switchport shutdown system default switchport trunk mode on no system default zone default-zone permit system default zone distribute full no system default zone mode enhanced Would you like to edit the configuration? (yes/no) [n]: n Use this configuration and save it? (yes/no) [y]: y
Nexus 5000: Lab 1: Initial Switch Configuration Page 19 of 29

[########################################] 100% Step 2 Log in to the MDS MDS login: admin Password: 1234Qwer Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under license. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or the GNU Lesser General Public License (LGPL) Version 2.1. A copy of each such license is available at http://www.opensource.org/licenses/gpl-2.0.php and http://www.opensource.org/licenses/lgpl-2.1.php MDS# Step 3 Verify management connectivity by pinging the default gateway: MDS# ping 192.168.1.254 PING 192.168.1.254 (192.168.1.254) 56(84) bytes 64 bytes from 192.168.1.254: icmp_seq=2 ttl=255 64 bytes from 192.168.1.254: icmp_seq=3 ttl=255 64 bytes from 192.168.1.254: icmp_seq=4 ttl=255 64 bytes from 192.168.1.254: icmp_seq=5 ttl=255 of data. time=0.422 time=0.382 time=0.391 time=0.403

ms ms ms ms

Note:

Press <CTL>-C to escape the continuous ping

Task 6: Exploring the MDS 9124 CLI


In this task you will briefly explore the MDS 9124 command line interface (CLI).

Exercise Procedure
Complete these steps on the MDS 9124: Step 1 Type ? to view the current command options. MDS9124# ? Step 2 Display all commands that begin with S, sh, and show. Press Enter or space to scroll through the list of commands.
Page 20 of 29

Nexus 5000: Lab 1: Initial Switch Configuration

MDS9124# s? MDS9124# sh? MDS9124# show ? Step 3 Display the current running configuration. MDS9124# show running-config Abbreviate the syntax, then hit tab key to complete each word; for example, type sh<tab> ru<tab>. Step 4 Display the status of the switch interfaces. Notice the fibre channel interfaces fc 1/1, fc 1/2, and fc 1/3 are down. MDS9124# sh int brief -----------------------------------------------------------------------------Interface Vsan Admin Admin Status SFP Oper Oper Port Mode Trunk Mode Speed Channel Mode (Gbps) -----------------------------------------------------------------------------fc1/1 1 auto off down swl --fc1/2 1 auto off down swl --fc1/3 1 auto off down swl --fc1/4 1 auto off down swl --fc1/5 1 auto off sfpAbsent ---fc1/6 1 auto off sfpAbsent ---fc1/7 1 auto off sfpAbsent ---fc1/8 1 auto off sfpAbsent ---fc1/9 1 auto off sfpAbsent ---fc1/10 1 auto off sfpAbsent ---fc1/11 1 auto off sfpAbsent ---fc1/12 1 auto off sfpAbsent ---Nexus 5000: Lab 1: Initial Switch Configuration Page 21 of 29

fc1/13 -fc1/14 -fc1/15 -fc1/16 -fc1/17 -fc1/18 -fc1/19 -fc1/20 -fc1/21 -fc1/22 -fc1/23 -fc1/24 --

1 1 1 1 1 1 1 1 1 1 1 1

auto auto auto auto auto auto auto auto auto auto auto auto

off off off off off off off off off off off off

sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent sfpAbsent

-------------

-------------

-----------------------------------------------------------------------------Interface Status Speed (Gbps) -----------------------------------------------------------------------------sup-fc0 up 1 -----------------------------------------------------------------------------Interface Status IP Address Speed MTU -----------------------------------------------------------------------------mgmt0 up 192.168.1.40/24 100 Mbps 1500 MDS9124#

Step 5

Display VSAN information. MDS9124# show vsan

Nexus 5000: Lab 1: Initial Switch Configuration

Page 22 of 29

vsan 1 information name:VSAN0001 state:active interoperability mode:default loadbalancing:src-id/dst-id/oxid operational state:down vsan 4079:evfp_isolated_vsan vsan 4094:isolated_vsan MDS9124# Step 6 Display the current installed version of code and environmental information. MDS9124# show version MDS9124# show environment

Task 7: Saving the MDS9124 Switch Configuration


In this task you will save and restore switch configurations using the command line interface (CLI).

Exercise Procedure
Complete these steps on the MDS 9124: Step 1 Update the startup configuration with the changes made in the running configuration. MDS9124# copy running-config startup-config [########################################] 100% Step 2 Save your running configuration to the tFTP server. MDS9124# copy running-config tftp://192.168.1.10/MDS9124-Lab1config Trying to connect to tftp server...... Connection to server Established. Copying Started..... | TFTP put operation was successful MDS9124# Note: Be sure you start the tFTP/FTP Server before attempting to save the configuration or your copy will fail. Please review Lab 0 Lab Services for instructions on how to use the tFTP/FTP server.

Use a tFTP/FTP Server in production networks to keep backup configurations and code releases for each network device. Be sure to include these servers in your regular Data Center backup plans. Step 3 Copy the file you just saved back to the switchs volatile file system.
Page 23 of 29

Nexus 5000: Lab 1: Initial Switch Configuration

MDS9124# copy tftp://192.168.1.10/MDS9124-Lab1-config volatile: Trying to connect to tftp server...... Connection to server Established. Copying Started..... | TFTP get operation was successful MDS9124# Step 4 Examine the contents of the configuration file in the volatile file system: MDS9124# dir volatile: 2034 Jun 07 15:14:09 2010 Usage for volatile://sup-local 4096 bytes used 62910464 bytes free 62914560 bytes total MDS9124# Step 5 Delete the file from the volatile file system and confirm it has been deleted. MDS9124# del volatile:MDS9124-Lab1-config MDS9124# dir volatile: Usage for volatile://sup-local 0 bytes used 62914560 bytes free 62914560 bytes total MDS9124# Step 6 Copy your running configuration to the startup configuration to save your changes. MDS9124# copy run st [########################################] 100% MDS9124# Step 7 Exit from the CLI and log off. MDS9124# exit User Access Verification MDS9124 login: MDS9124-Lab1-config

Nexus 5000: Lab 1: Initial Switch Configuration

Page 24 of 29

Appendix A: Recovering from the Loader prompt


Note: Do NOT complete this task if you have successfully completed all steps listed above. This should only done if loader issues occur:

In this task you will recover from the loader prompt and restore the switch configuration from the tFTP/FTP server using the command line interface (CLI). The recovery procedure for the Nexus 5000 is slightly different than the recovery procedure for the MDS 9124. Nexus 5000 Recovery when the kickstart and system files are on bootflash

Exercise Procedure
Complete these steps on the Nexus 5000: Step 1 Use the directory command to determine if the kickstart and system files required for the Nexus 5000 to work are stored locally in bootflash. You will need these file names in the boot variables set for the Nexus 5000. If you do not find the file names listed in bold print below on bootflash, you can tFTP them from the server. loader> dir bootflash: lost+found config.cfg license_SSI14100CHE_4.lic n5000-uk9-kickstart.4.2.1.N1.1.bin n5000-uk9.4.2.1.N1.1.bin mts.log vdc_2 vdc_3 vdc_4 loader> Step 2 Use the boot command to boot the kickstart image: loader> boot bootflash:n5000-uk9-kickstart.4.2.1.N1.1.bin Step 3 Use the load command to load the system file: switch(boot)# load bootflash:n5000-uk9.4.2.1.N1.1.bin Step 4 Log in to the N5K: N5K-1 login: admin Password: 1234Qwer Step 5 Set the boot system and kickstart variables: N5K-1# conf t Enter configuration commands, one per line.
Nexus 5000: Lab 1: Initial Switch Configuration

End with CNTL/Z.


Page 25 of 29

N5K-1(config)# boot system bootflash:n5000-uk9.4.2.1.N1.1.bin N5K-1(config)# boot kickstart bootflash:n5000-uk9kickstart.4.2.1.N1.1.bin N5K-1(config)# copy run st [########################################] 100% Nexus 5000 Recovery when the kickstart and system files are not on bootflash

Exercise Procedure
Complete these steps on the Nexus 5000 Step 1 Use the set command to assign an IP address to the management interface: loader> set ip 192.168.1.1 255.255.255.0 Step 2 Boot the kickstart image from the tftp server: loader> boot tftp://192.168.1.10/n5000-uk9kickstart.4.2.1.N1.1.bin Step 3 Once the kickstart is booted, configure the IP address on the management interface switch(boot)# conf t Enter configuration commands, one per line. End with CNTL/Z. switch(boot)(config)# int mgmt0 switch(boot)(config-if)# ip address 192.168.1.1 255.255.255.0 switch(boot)(config-if)# no shut switch(boot)(config-if)# end Step 4 Copy the kickstart and system files from the tftp server to bootflash: switch(boot)# copy tftp://192.168.1.10/n5000-uk9kickstart.4.2.1.N1.1.bin bootflash: switch(boot)# copy tftp://192.168.1.10/n5000uk9.4.2.1.N1.1.bin bootflash: Step 5 Load the system file: switch(boot)# load bootflash:n5000-uk9.4.2.1.N1.1.bin Step 6 Log into the switch: Nexus 5000 Switch N5K-1 login: admin Password: 1234Qwer Step 7 Set the boot system and kickstart variables: N5K-1# conf t
Nexus 5000: Lab 1: Initial Switch Configuration Page 26 of 29

Enter configuration commands, one per line. End with CNTL/Z. N5K-1(config)# boot system bootflash:n5000-uk9.4.2.1.N1.1.bin N5K-1(config)# boot kickstart bootflash:n5000-uk9kickstart.4.2.1.N1.1.bin Step 8 Save the configuration: N5K-1(config)# copy run start [########################################] 100% N5K-1(config)#

MDS9124 Recovery when the kickstart and system files are on bootflash

Exercise Procedure
Complete these steps on the MDS9124

Step 1

Use the directory command to view the files stored on bootflash. If the kickstart and system files are not on bootflash, you can tftp them from the server. loader> dir bootflash: 12288 2296 18723840 56219997 2995 lost+found/ mts.log m9100-s2ek9-kickstart-mz.5.0.1a.bin m9100-s2ek9-mz.5.0.1a.bin config.cfg

Step 2

Use the boot command to boot the kickstart image: loader> boot bootflash:m9100-s2ek9-kickstart-mz.5.0.1a.bin

Step 3

Load the system image: switch(boot)# load bootflash:m9100-s2ek9-mz.5.0.1a.bin

Step 4

Log into the switch: MDS9124 login: admin Password: 1234Qwer

Nexus 5000: Lab 1: Initial Switch Configuration

Page 27 of 29

Step 5

Set the boot system and kickstart variables: MDS9124# conf t Enter configuration commands, one per line. End with CNTL/Z. MDS9124(config)# boot system bootflash:m9100-s2ek9mz.5.0.1a.bin MDS9124(config)# boot kickstart bootflash:m9100-s2ek9kickstart-mz.5.0.1a.bin MDS9124(config)# end

Step 6

Save the configuration: MDS9124# copy run st [########################################] 100% MDS9124#

MDS9124 Recovery when the kickstart and system files are not on bootflash

Exercise Procedure
Complete these steps on the MDS9124

Step 1

Use the network command to set the ip address and mask for the management interface: loader> network --ip=192.168.1.40 --nm=255.255.255.0

Step 2

Boot the kickstart image from the tftp server: loader> boot tftp://192.168.1.10/m9100-s2ek9-kickstartmz.5.0.1a.bin

Step 3

configure the IP address on the management interface: switch(boot)# conf t Enter configuration commands, one per line. switch(boot)(config)# int mgmt0

End with CNTL/Z.

Nexus 5000: Lab 1: Initial Switch Configuration

Page 28 of 29

switch(boot)(config-if)# ip address 192.168.1.40 255.255.255.0 switch(boot)(config-if)# no shut switch(boot)(config-if)# end Step 4 Copy the kickstart and system files from tftp to bootflash: switch(boot)# mz.5.0.1a.bin switch(boot)# mz.5.0.1a.bin Step 5 copy tftp://192.168.1.10/m9100-s2ek9-kickstartbootflash: copy tftp://192.168.1.10/m9100-s2ek9bootflash:

Load the system file from bootflash: switch(boot)# load bootflash:m9100-s2ek9-mz.5.0.1a.bin

Step 6

Log into the MDS9124: MDS9124 login: admin Password: 1234Qwer

Step 7

Set the boot system and kickstart variables: MDS9124# conf t Enter configuration commands, one per line. End with CNTL/Z. MDS9124(config)# boot system bootflash:m9100-s2ek9mz.5.0.1a.bin MDS9124(config)# boot kickstart bootflash:m9100-s2ek9kickstart-mz.5.0.1a.bin

Step 8

Save the configuration: MDS9124(config)# copy run start [########################################] 100% MDS9124(config)#

Nexus 5000: Lab 1: Initial Switch Configuration

Page 29 of 29

Potrebbero piacerti anche