Using the Setup Command Facility to Perform Initial Configuration
This section explains how to configure a hostname for the router, set passwords, and configure an interface for communication with the management network.
Note The messages that are displayed will vary based on your router model, the installed interface modules, and the software image. The following example and the user entries (in bold) are shown as examples only.
Note If you make a mistake while using the setup command facility, you can exit and run the setup command facility again. Press Ctrl-C, and enter the setup command in privileged EXEC mode (Router#).
Step 1 Enter the
setup
command facility using the Cisco IOS command-line interface (CLI) in privileged EXEC mode:
--- System Configuration Dialog --- Continue with configuration dialog? [yes/no]: y
By entering y(es), you are now in the Setup Configuration Utility.
The prompts in the setup command facility vary; depending on your router model, on the installed interface modules, and on the software image. The following steps and the user entries (in
bold
) are shown as examples only.
Note If you make a mistake while using the setup command facility, you can exit and run the setup command facility again. Press Ctrl-C, and enter the setup command at the privileged EXEC mode prompt (Router#). For more information on using the setup command facility, see The Setup Command chapter in Cisco IOS Configuration Fundamentals Command Reference, Release 12.2T.
Step 2 To proceed using the setup command facility, enter
yes
.
Continue with 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
Step 3 Basic management setup configures only enough connectivity.
Would you like to enter basic management setup? [yes/no]: yes
Step 4 Enter a hostname for the router (this example uses
myrouter
):
Configuring global parameters: Enter host name [Router]: myrouter
Step 5 Enter an enable secret password. This password is encrypted (for more security) and cannot be seen when viewing the configuration.
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: cisco
Step 6 Enter an enable password that is different from the enable secret password. This password is
not
encrypted (and is less secure) and can be seen when viewing the configuration.
The enable password is used when you do not specify an enable secret password, with some older software versions, and Enter enable password: cisco123
Step 7 Enter the virtual terminal password, which prevents unauthenticated access to the router through ports other than the console port:
The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: cisco
Step 8 Respond to the following prompts as appropriate for your network:
Configure SNMP Network Management? [no]: yes Community string [public]:
A summary of the available interfaces is displayed.
Note The interface summary includes interface numbering, which is dependent on the router model and the installed modules and interface cards.
Current interface summary Interface IP-Address OK? Method Status Prol GigabitEthernet0/0 192.168.1.2 YES NVRAM administratively down dow GigabitEthernet0/1 unassigned YES NVRAM up up Serial0/0/1 unassigned YES NVRAM administratively down dow Serial0/0/2 unassigned YES NVRAM administratively down dow Serial0/0/3 unassigned YES NVRAM administratively down dow Serial0/0/4 unassigned YES NVRAM administratively down dow Serial0/0/5 unassigned YES NVRAM administratively down dow Serial0/0/6 unassigned YES NVRAM administratively down dow Serial0/0/7 unassigned YES NVRAM administratively down dow Serial0/0/0 unassigned YES NVRAM up up Enter interface name used to connect to the management network from the above interface summary:
Step 9 Select one of the available interfaces for connecting the router to the management network:
Enter interface name used to connect to the management network from the above interface summary: gigabitethernet0/0
Step 10 Respond to the following prompts as appropriate for your network:
Configuring interface GigabitEthernet0/0: Configure IP on this interface? [yes]: yes IP address for this interface [1.8.83.134]: Subnet mask for this interface [255.0.0.0] : 255.255.255.0 Class A network is 1.0.0.0, 24 subnet bits; mask is /24 The following configuration command script was created: enable secret 5 $1$qjk5$63TwshQT6hdlzZcc.v4VK1 snmp-server community public interface GigabitEthernet0/0 ip address 1.8.83.134 255.255.255.0 interface GigabitEthernet0/1
Step 11 Respond to the following prompts. Select [2] to save the initial configuration:
[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... Feb 22 04:43:44.835: %SYS-5-CONFIG_I: Configured from console by console[OK] Use the enabled mode 'configure' command to modify this configuration.
The user prompt is displayed: