Options for Initial Configuration

After you complete the hardware installation, you need to setup the switch with configuration required to enable traffic to pass through the network. On your first day with your new device, you can perform a number of tasks to ensure that your device is online, reachable and easily configured.

When the supervisor module is shipped, the factory default setting for MANUAL_BOOT is no. This means that when you first power on the device, it will always boot automatically. So these are the first options available to you for initial configuration:

  • Configuring the Switch Using the Web User Interface

  • Configuring the Switch Using the CLI

  • Configuring the Switch in the ROMMON Mode

    This option requires you to interrupt autoboot (factory default) and enter the ROMMON prompt to enter the required settings. Use this option if you want to boot the system by using an image that is located on a TFTP server.

Connecting to the Switch

Before you begin

The bootup script runs the configuration wizard, which prompts you for basic configuration input: Would you like to enter the initial configuration dialog? [yes/no]: ). To configure Day0 settings using the Web UI, do not enter a response. Perform the following tasks instead:

Procedure


Step 1

Connect one end of an ethernet cable to one of the uplink (non-management) ports on the active supervisor and the other end of the ethernet cable to the host (PC).

Step 2

Set up your PC as a DHCP client, to obtain the IP address of the switch automatically.

Step 3

Enter the switch IP address in your browser’s address bar. For a secure connection, enter https://ip-address . For a less secure connection, enter http://ip-address .


What to do next

Create a user account.

Performing the Initial Configuration

The bootup script runs the configuration wizard, which prompts you for basic configuration input. At any point you may enter a question mark '?' for help. Use Ctrl+C to abort the configuration dialog at any prompt. Default settings are in square brackets '[ ]'.

Procedure


Step 1

Respond to whether you would like to enter the initial configuration dialog

Example:

Would you like to enter the initial configuration dialog? [yes/no]: yes
Step 2

Repond to whether you would like to enter basic management setup

Example:

Would you like to enter basic management setup? [yes/no]: yes
Step 3

Repond to whether you would like to enter basic management setup

Example:

Would you like to enter basic management setup? [yes/no]: yes
Configuring global parameters:
Enter host name [Switch]: Switch

  The enable secret is a password used to protect access to
  privileged EXEC and configuration modes. This password, after
  entered, becomes encrypted in the configuration.
  Enter enable secret: examplesecret

  The enable password is used when you do not specify an
  enable secret password, with some older software versions, and
  some boot images.
  Enter enable password: exampleenable

  The virtual terminal password is used to protect
  access to the router over a network interface.
  Enter virtual terminal password: examplevtp
Setup account for accessing HTTP server? [yes]: yes
    Username  [admin]: 
    Password  [cisco]: 
    Password is UNENCRYPTED.
  
Step 4

Repond to whether you would like to set up an account to access the HTTP server.

Example:

Setup account for accessing HTTP server? [yes]: yes
    Username  [admin]: 
    Password  [cisco]: 
    Password is UNENCRYPTED.
  
Step 5

Repond to whether you would like to configure SNMP network management.

Example:

Configure SNMP Network Management? [no]: no 

Step 6

The system displays the interface summary. From the list, enter the interface name used to connect to the management network, and then enter the IP address and subnet mask for the interface

Example:


Current interface summary
Any interface listed with OK? value "NO" does not have a valid configuration

Interface              IP-Address      OK? Method Status                Protocol
Vlan1                  unassigned      NO  unset  up                    up      
GigabitEthernet0/0     unassigned      NO  unset  up                    up      
GigabitEthernet1/0/1   unassigned      YES unset  down                  down    
<output truncated>

Enter interface name used to connect to the
management network from the above interface summary: GigabitEthernet0/0

Configuring interface GigabitEthernet0/0:
  Configure IP on this interface? [yes]: 
    IP address for this interface: 192.168.247.10
    Subnet mask for this interface [255.255.255.0] : 255.255.0.0
    Class C network is 192.168.247.0, 16 subnet bits; mask is /16

The following configuration command script was created:
hostname Switch
enable secret 5 $1$2EYv$CSkmxAlgDon2AKcfXNNwT/
enable password exampleenable
line vty 0 4
password examplevtp
username admin privilege 15 password cisco
no snmp-server
!
!
interface Vlan1
shutdown
no ip address
!
interface GigabitEthernet0/0
no shutdown
ip address 192.168.247.10 255.255.0.0
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
<output truncated>
end
Step 7

Save configuration and then verify running-configuration

Example:


[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.

Enter your selection [2]: 2
Building configuration...
[OK]
Use the enabled mode 'configure' command to modify this configuration.

Press RETURN to get started!

*Aug 17 21:16:56.780: %PKI-4-NOCONFIGAUTOSAVE: Configuration was modified.  Issue "write memory" to save new IOS PKI configuration
Switch> enable
Password: exampleenable
Switch#
Switch# show running-config interface GigabitEthernet0/0
Building configuration...

Current configuration : 118 bytes
!
interface GigabitEthernet0/0
 vrf forwarding Mgmt-vrf
 ip address 192.168.247.10 255.255.0.0
 negotiation auto

end
Step 8

Ping an interface using the Ethernet management interface through the VRF

Switch# ping vrf Mgmt-vrf 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
Switch#
*Aug 17 21:18:45.152: %PNP-6-PNP_DISCOVERY_STOPPED: PnP Discovery stopped (Config Wizard)

You have now completed the initial configuration of the switch, so you can now configure other interfaces and features over a network connection without having to directly connect to the console port of the supervisor module.

To use the CLI to perform additional configuration or management tasks, enter commands at the Switch> prompt through the console port by using a terminal program or through the network by using Telnet. For configuration information, see the switch software configuration guide along with the switch command reference.

Starting the Terminal-Emulation Software

To start the terminal emulation software, follow these steps:

Before you begin

The terminal-emulation software—frequently a PC application such as Hyperterminal or ProcommPlus—makes communication between the switch and your PC or terminal possible.

Procedure


Step 1

Start the terminal-emulation program if you are using a PC or terminal.

Step 2

Start a terminal-emulation session.

Step 3

Configure the baud rate and character format of the PC or terminal to match these console port default characteristics:

  • 9600 baud

  • 8 data bits

  • No flow control

  • 1 stop bit

  • No parity


What to do next

Connect to a power source.

Connecting to a Power Source

To connect to a power source, follow these steps:

Procedure


Step 1

Connect one end of the supplied country-specific AC power cord to the power connector on the switch.

Step 2

Plug the other end into a grounded 100 to 240 VAC, 50–60 Hz AC outlet.

The switch powers on.

If you started the terminal-emulation program before you powered on your switch, the PC or terminal displays the bootloader sequence. You need to press Enter to display the setup program prompt.


What to do next

Obtain IP settings from your network administrator.

Creating User Accounts

Setting a username and password is the first task you will perform on your device.

Procedure


Step 1

Log on using the default username and password.

The default username is admin ; the default password is the serial number of the switch chassis.

Step 2

You can change the username and set a new password of up to 25 alphanumeric characters.

The username password combination you set gives you privilege 15 access. The string cannot start with a number, is case sensitive, and allows spaces but ignores leading spaces.


What to do next

Configure basic device settings.