Preparing to Configure the Switch
Before you configure Cisco Nexus 5000 Series switch for the first time, you need the following information:
Note If a password is weak (short, easy-to-decipher), your password configuration is rejected. Be sure to configure a strong password.
- If you are using an IPv4 address for the management interface, you need the following information:
– IPv4 subnet mask for the switch’s management interface.
– IPv4 address of the default gateway (optional).
- SSH service on the switch (optional).
To enable this service, select the type of SSH key (dsa/rsa/rsa1) and number of SSH key bits (768 to 2048).
- NTP server IPv4 address (optional).
- SNMP community string (optional).
- Switch name (optional).
This is your switch prompt.
- An additional login account and password (optional).
Note If you are using IPv4, be sure to configure the IPv4 route, the IPv4 default network address, and the IPv4 default gateway address to enable SNMP access.
Configuring the Switch
This section describes how to initially configure the switch.
Note Press Ctrl-C at any prompt to skip the remaining configuration options and proceed with what you have configured up to that point. Entering the new password for the administrator is a requirement and cannot be skipped.
Tip If you do not want to answer a previously configured question, or if you want to skip answers to any questions, press Enter. If a default answer is not available (for example, switch name), the switch uses what was previously configured and skips to the next question.
To configure the switch for first time, follow these steps:
Step 1 Ensure that the switch is on. Switches in the Cisco Nexus 5000 Series boot automatically.
Step 2 Enter the new password for the administrator.
Enter the password for admin: password
Tip If a password is weak (short, easy-to-decipher), your password configuration is rejected. Be sure to configure a strong password. Passwords are case-sensitive.
Step 3 Enter yes to enter the setup mode.
This setup utility will guide you through the basic configuration of
the system. Setup configures only enough connectivity for management
*Note: setup is mainly used for configuring the system initially,
when no configuration is present. So setup always assumes system
defaults and not the current system configuration values.
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
The setup utility guides you through the basic configuration process. Press Ctrl-C at any prompt to end the configuration process.
Step 4 Enter the new password for the administrator (admin is the default).
Enter the password for admin: admin
Step 5 Enter yes (no is the default) to create additional accounts.
Create another login account (yes/no) [n]: yes
While configuring your initial setup, you can create an additional user account (in the network-admin role) besides the administrator’s account. See the “Configuring RBAC” section for information on default roles and permissions.
a. Enter the user login ID.
Enter the user login ID: user_name
b. Enter the user password.
Enter the password for user_name: user-password
Step 6 Enter yes (yes is the default) to create an SNMP read-only community string.
Configure read-only SNMP community string (yes/no) [n]: yes
SNMP community string: snmp_community
Step 7 Enter a name for the switch.
Note The switch name is limited to 32 alphanumeric characters. The default is switch.
Enter the switch name: switch_name
Step 8 Enter yes (yes is the default) to configure out-of-band management.
Continue with Out-of-band (mgmt0) management configuration? [yes/no]: yes
a. Enter the mgmt0 IPv4 address.
Mgmt0 IPv4 address: ip_address
Step 9 Enter yes (yes is the default) to configure the IPv4 default gateway (recommended).
Configure the default-gateway: (yes/no) [y]: yes
a. Enter the default gateway IPv4 address.
IPv4 address of the default-gateway: default_gateway
Step 10 Enter yes (yes is the default) to enable the Telnet service.
Enable the telnet service? (yes/no) [y]: yes
Step 11 Enter yes (no is the default) to enable the SSH service.
Enabled SSH service? (yes/no) [n]: yes
Step 12 Enter the SSH key type that you would like to generate.
Type the SSH key you would like to generate (dsa/rsa/rsa1)? dsa
Step 13 Enter the number of key bits within the specified range.
Enter the number of key bits? (768 to 2048): 768
Step 14 Enter yes (no is the default) to configure the NTP server.
Configure NTP server? (yes/no) [n]: yes
a. Enter the NTP server IPv4 address.
NTP server IP address: ntp_server_IP_address
Step 15 Enter yes (yes is the default) to configure basic Fibre Channel configurations.
Enter basic FC configurations (yes/no) [n]: yes
Step 16 Enter shut (shut is the default) to configure the default Fibre Channel switch port interface to the shut (disabled) state.
Configure default physical FC switchport interface state (shut/noshut) [shut]: shut
Step 17 Enter on (on is the default) to configure the switch port trunk mode.
Configure default physical FC switchport trunk mode (on/off/auto) [on]: on
Step 18 Enter permit (deny is the default) to deny a default zone policy configuration.
Configure default zone policy (permit/deny) [deny]: permit
Permits traffic flow to all members of the default zone.
Note If you are executing the setup script after entering a write erase command, you explicitly must change the default zone policy to permit for VSAN 1 after finishing the script using the following command:
switch(config)# zone default-zone permit vsan 1
Step 19 Enter yes (no is the default) to enable a full zone set distribution.
Enable full zoneset distribution (yes/no) [n]: yes
Overrides the switch-wide default for the full zone set distribution feature.
You see the new configuration. Review and edit the configuration that you have just entered.
Step 20 Enter no (no is the default) if you are satisfied with the configuration.
The following configuration will be applied:
username admin password <user-password> role network-admin
snmp-server community snmp_community ro
system default switchport shutdown san
system default switchport trunk mode on
system default zone default-zone permit
system default zone distribute full
Would you like to edit the configuration? (yes/no) [n]: no
Step 21 Enter yes (yes is default) to use and save this configuration:
Use this configuration and save it? (yes/no) [y]: yes
Caution If you do not save the configuration at this point, none of your changes are updated the next time the switch is rebooted. Type
yes to save the new configuration. This operation ensures that the kickstart and system images are also automatically configured (see
“Image Files on the Switch” section).