This command provides a simple wizard that helps you setup your router with a simple configuration. If you find yourself accidentally in setup mode (by pressing ‘yes’ when the router boots then hold down the control and c keys to exit.
In the below example, the setup command is demonstrated.
R1#setup — System Configuration Dialog — 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 Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [R1]: 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 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: plaintext The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password [cisco]: Configure SNMP Network Management? [no]: Current interface summary Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.1.1.1 YES NVRAM up up FastEthernet1/0 unassigned YES unset administratively down down Loopback0 126.96.36.199 YES NVRAM up up Enter interface name used to connect to the management network from the above interface summary: Fa0/0 Invalid interface Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/0 Configuring interface FastEthernet0/0: Use the 100 Base-TX (RJ-45) connector? [yes]: Operate in full-duplex mode? [no]: Configure IP on this interface? [yes]: IP address for this interface [10.1.1.1]: 10.1.1.1 Subnet mask for this interface [255.0.0.0] : 255.255.255.0 Class A network is 10.0.0.0, 24 subnet bits; mask is /24 The following configuration command script was created: hostname R1 enable secret 5 $1$puP5$qg8lX5KSv9wdQtskWhg2f0 enable password plaintext line vty 0 4 password cisco no snmp-server ! no ip routing ! interface FastEthernet0/0 no shutdown media-type 100BaseX half-duplex ip address 10.1.1.1 255.255.255.0 no mop enabled ! interface FastEthernet1/0 shutdown no ip address ! end  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. Enter your selection : 2