Configuring the Setup Program
If your switches are stacked and there are multiple console connections to individual switches in the stack, the initial setup dialog box is displayed on the console where you first press Enter.
To complete the setup program and the initial configuration for the switch:
Step 1 Enter Yes at the following two prompts:
Would you like to enter the initial configuration dialog? [yes/no]: yes
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets ''.
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system.
Would you like to enter basic management setup? [yes/no]: yes
Step 2 Enter a host name for the switch, and press Return.
On a command switch, the host name is limited to 28 characters, and to 31 characters on a member switch. Do not use -n, where n is a number, as the last character in a host name for any switch.
Enter host name [Switch]: host_name
Step 3 Enter a secret password, and press Return.
The password can be from 1 to 25 alphanumeric characters, can start with a number, is case sensitive, allows spaces, but ignores leading spaces. The secret password is encrypted, and the enable password is in plain text.
Enter enable secret: secret_password
Step 4 Enter an enable password, and press Return.
Enter enable password: enable_password
Step 5 Enter a virtual terminal (Telnet) password, and press Return.
The password can be from 1 to 25 alphanumeric characters, is case sensitive, allows spaces, but ignores leading spaces.
Enter virtual terminal password: terminal-password
Step 6 To configure the country code, enter yes and press Return.
Do you want to configure country code? [no]: yes
Step 7 Enter the country code, and press Return.
Enter the country code[US]:US
Step 8 (Optional) Configure Simple Network Management Protocol (SNMP) by responding to the prompts. You can also configure SNMP later through the CLI, Device Manager, or the Cisco Network Assistant application. To configure SNMP later, enter no.
Configure SNMP Network Management? [no]: no
Step 9 Enter the interface name (physical interface or VLAN name) of the interface that connects to the management network, and press Return.
Enter interface name used to connect to the
management network from the above interface summary: vlan1
Step 10 Configure the interface by entering the switch IP address and subnet mask and pressing Return. (The IP address and subnet masks shown here are examples.)
Configuring interface vlan1:
Configure IP on this interface? [yes]: yes
IP address for this interface: 10.4.120.106
Subnet mask for this interface [255.0.0.0]: 255.0.0.0
You have completed the initial configuration of the switch, and the switch displays its configuration. This is an example of the configuration output:
The following configuration command script was created:
enable secret 5 $1$Ulq8$DlA/OiaEbl90WcBPd9cOn1
enable password enable_password
ip address 10.4.120.106 255.0.0.0
Step 11 After you complete the initial configuration of the switch, these choices are displayed:
 Go to the IOS command prompt without saving this config.
 Return back to the setup without saving this config.
 Save this configuration to nvram and exit.
If you want to save the configuration and use it the next time the switch reboots, select option 2 to save it in nonvolatile RAM (NVRAM).
Enter your selection :2
Step 12 Make your selection, and press Return.
After you complete the setup program, the switch can run the default configuration that you created. To change this configuration or to perform other management tasks, enter commands at the
Switch> prompt, or use the Cisco Network Assistant, or another management tool for further configuration.