|
|
Cisco IOS includes a number of configuration tools that simplify the process of setting up the initial configuration of a router or access server. This chapter describes the following configuration tools:
For a complete description of the configuration tools commands in this chapter, refer to the "Configuration Tools Commands" chapter in the Configuration Fundamentals Command Reference. To locate documentation of other commands, use the command reference index or search online.
This section provides information about AutoInstall, a procedure that allows you to configure a new router automatically and dynamically. The AutoInstall procedure involves connecting a new router to a network where an existing router is preconfigured, turning on the new router, and enabling it with a configuration file that is automatically downloaded from a Trivial File Transfer Protocol (TFTP) server.
The following sections provide the requirements for AutoInstall and an overview of how the procedure works. To start the procedure, see the "Perform the AutoInstall Procedure" section.
For the AutoInstall procedure to work, your system must meet the following requirements:
ip helper 171.69.2.75
frame-relay map ip 172.21.177.100 100 dlci
AutoInstall over Frame Relay and other WAN encapsulations support downloading configuration files from UNIX-based and DOS-based TFTP servers. Other booting mechanisms such as RARP and SLARP also support UNIX-based and DOS-based TFTP servers.
The DOS format of the UNIX network-confg file that must reside on the server must be 8 characters or fewer, with a 3-letter extension. Therefore, when an attempt to load network-confg fails, AutoInstall automatically attempts to download the file cisconet.cfg from the TFTP server.
If cisconet.cfg exists and is downloaded successfully, the server is assumed to be a DOS machine. The AutoInstall program then attempts to resolve the host name for the router through host commands in cisconet.cfg.
If cisconet.cfg does not exist or cannot be downloaded, or the program is unable to resolve a host name, DNS attempts to resolve the host name. If DNS cannot resolve the host name, the router attempts to download ciscortr.cfg. If the host name is longer than eight characters, it is truncated to eight characters. For example, a router with a host name "australia" will be treated as "australi" and AutoInstall will attempt to download australi.cfg.
The format of cisconet.cfg and ciscortr.cfg is to be the same as those described for network-confg and hostname-confg.
If neither network-confg nor cisconet.cfg exists and DNS is unable to resolve the host name, AutoInstall attempts to load router-confg, and then ciscortr.cfg if router-confg does not exist or cannot be downloaded. The cycle is repeated three times.
Once the requirements for using AutoInstall are met, the dynamic configuration of the new router occurs in the following order:
The new router (newrouter) resolves its interface's IP addresses by one of the following means:
The existing router (existing) responds in one of the following ways depending on the request type:


As of Software Release 9.21, routers can be configured to act as RARP servers.
Because the router attempts to resolve its host name as soon as one interface resolves its IP address, only one IP address needs to be set up with SLARP, BOOTP, or RARP.
The new router resolves its IP address-to-host name mapping by sending a TFTP broadcast requesting the file network-confg, as shown in Figure 7.
The network-confg file is a configuration file generally shared by several routers. In this case, it is used to map the IP address of the new router (just obtained dynamically) to the name of the new router. The file network-confg must reside on a reachable TFTP server and must be globally readable.
The following is an example of a minimal network-confg file that maps the IP address of the new router (131.108.10.2) to the name newrouter. The address of the new router was learned via SLARP and is based on existing's IP address of 131.108.10.1.
ip host newrouter 131.108.10.2
If you are not using AutoInstall over Frame Relay, the host portion of the address must be 1 or 2. AutoInstall over Frame Relay does not have this addressing constraint.
If newrouter does not receive a network-confg or a cisconet.cfg file, or if the IP address-to-host-name mapping does not match the newly acquired IP address, newrouter sends a DNS broadcast. If DNS is configured and has an entry that maps newrouter's SLARP, BOOTP, or RARP-acquired IP address to its name, newrouter successfully resolves its name.
If DNS does not have an entry that maps the new router's SLARP, BOOTP, or RARP-acquired address to its name, the new router cannot resolve its host name. The new router attempts to download a default configuration file as described in the next section, and failing that, enters setup mode--or enters user EXEC mode with AutoInstall over Frame Relay.

After the router successfully resolves its host name, newrouter sends a TFTP broadcast requesting the file newrouter-confg or newrouter.cfg. The name newrouter-confg must be in all lowercase letters, even if the true host name is not. If newrouter cannot resolve its host name, it sends a TFTP broadcast requesting the default host configuration file router-confg. The file is downloaded to newrouter, where the configuration commands take effect immediately.
When using AutoInstall over Frame Relay, you are put into setup mode while the AutoInstall process is running. If the configuration file is successfully installed, the setup process is terminated. If you expect the AutoInstall process to be successful, either do not respond to the setup prompts or respond to the prompts as follows:
Would you like to enter the initial configuration dialog? [yes]:noWould you like to terminate autoinstall? [yes]:no
If you do not expect the AutoInstall process to be successful, create a configuration file by responding to the setup prompts. The AutoInstall process is terminated transparently.
You will see the following display as the AutoInstall operation is in progress:
Please Wait. AutoInstall being attempted!!!!!!!!!!!!!!!!!!!
If the host configuration file contains only the minimal information, you must connect using Telnet into existing, from there connect via Telnet to newrouter, and then run the setup command to configure newrouter. Refer to the "Using Setup for Configuration Changes" section later in this chapter for details on the setup command.
If the host configuration file is complete, newrouter should be fully operational. You can enter the enable command (with the system administrator password) at the system prompt on newrouter, and then issue the copy running-config startup-config command to save the information in the recently obtained configuration file into nonvolatile random-access memory (NVRAM) or to the location specified by the CONFIG_FILE environment variable. If it must reload, newrouter simply loads its configuration file from NVRAM.
If the TFTP request fails, or if newrouter still has not obtained the IP addresses of all its interfaces, and those addresses are not contained in the host configuration file, then newrouter enters setup mode automatically. Setup mode prompts you for manual configuration of the Cisco IOS software at the console. The new router continues to issue broadcasts to attempt to learn its host name and obtain any unresolved interface addresses. The broadcast frequency will dwindle to every 10 minutes after several attempts. Refer to the "Using Setup for Configuration Changes" section later in this chapter for details on the setup command.
To dynamically configure a new router using AutoInstall, complete the following tasks. Steps 1, 2, and 3 are completed by the central administrator. Step 4 is completed by the person at the remote site.
Step 1 Modify the existing router's configuration to support the AutoInstall procedure.
Step 2 Set up the TFTP server to support the AutoInstall procedure.
Step 3 Set up the BOOTP or RARP server if needed. A BOOTP or RARP server is required for AutoInstall using an Ethernet, Token Ring, FDDI, or Frame Relay-encapsulated serial interface. With a Frame Relay-encapsulated serial interface, the existing router acts as the BOOTP server. A BOOTP or RARP server is not required for AutoInstall using an HDLC-encapsulated serial interface.
Step 4 Connect the new router to the network.
You can use any of the following types of interfaces:
To set up AutoInstall via a serial line with HDLC encapsulation (the default), you must configure the existing router. Perform the following steps, beginning in global configuration mode:
| Task | Command |
|---|---|
| Step 1 Configure the serial interface that connects to the new router with HDLC encapsulation (the default), and enter interface configuration mode. | interface serial interface-number |
| Step 2 Enter an IP address for the interface. The host portion of the address must have a value of 1 or 2. (AutoInstall over Frame Relay does not have this address constraint.) | ip address address mask |
| Step 3 Configure a helper address for the serial interface to forward broadcasts associated with the TFTP, BOOTP, and DNS requests. | ip helper-address address |
| Step 4 Optionally, configure a DCE clock rate for the serial line, unless an external clock is being used. This step is needed only for DCE appliques. | clock rate bps |
| Step 5 Exit configuration mode. | ^Z |
| Step 6 Save the configuration file to your startup configuration. On most platforms, this step saves the configuration to NVRAM. On the Cisco 7000 family, this step saves the configuration to the location specified by the CONFIG_FILE environment variable. | copy running-config startup-config |
Router#configure terminalinterface serial 0ip address 172.31.10.1 255.255.255.0ip helper-address 172.31.20.5Ctrl-ZRouter(config)#copy running-config startup-config
To set up AutoInstall using an Ethernet, Token Ring, or FDDI interface, you must modify the configuration of the existing router. Perform the following steps, beginning in global configuration mode:
| Task | Command |
|---|---|
| Step 1 Configure a LAN interface, and enter interface configuration mode. | interface {ethernet | tokenring | fddi} interface-number |
| Step 2 Enter an IP address for the interface. | ip address address mask |
| Step 3 Optionally, configure a helper address to forward broadcasts associated with the TFTP, BOOTP, and DNS requests. | ip helper-address address |
| Step 4 Exit configuration mode. | ^Z |
| Step 5 Save the configuration file to your startup configuration. On most platforms, this step saves the configuration to NVRAM. On the Cisco 7000 family, this step saves the configuration to the location specified by the CONFIG_FILE environment variable. | copy running-config startup-config |
Typically, the local-area network (LAN) interface and IP address are already configured on the existing router. You might need to configure an IP helper address if the TFTP server is not on the same network as the new router.
Router#configure terminalinterface Ethernet 0ip address 172.31.10.1 255.255.255.0ip helper-address 172.31.20.5Ctrl-ZRouter(config)#copy running-config startup-config
To set up AutoInstall via a serial line with Frame Relay encapsulation, you must configure the existing router. Perform the following tasks, beginning in global configuration mode:
| Task | Command |
|---|---|
| Step 1 Configure the serial interface that connects to the new router, and enter interface configuration mode. | interface serial 0 |
| Step 2 Configure Frame Relay encapsulation on the interface that connects to the new router. | encapsulation frame-relay |
| Step 3 Create a Frame Relay map pointing back to the new router.
or For point-to-point subinterfaces, assign a data link connection identifier (DLCI) to the interface that connects to the new router, and provide the IP address of the serial port on the new router. | frame-relay map ip ip-address dlci
or frame-relay interface-dlci dlci option [protocol ip ip-address] |
| Step 4 Enter an IP address for the interface. This step sets the IP address of the existing router. | ip address address mask |
| Step 5 Configure a helper address for the TFTP server. | ip helper-address address |
| Step 6 Optionally, configure a DCE clock rate for the serial line, unless an external clock is being used. This step is needed only for DCE appliques. | clock rate bps |
| Step 7 Exit configuration mode. | ^Z |
| Step 8 Save the configuration file to your startup configuration. On most platforms, this step saves the configuration to NVRAM. On the Cisco 7000 family, this step saves the configuration to the location specified by the CONFIG_FILE environment variable. | copy running-config startup-config |
You must use a DTE interface on the new router because the network always provides the clock signal.
Router#configure terminalinterface serial 0ip address 172.31.20.20 255.255.255.0encapsulation frame-relayframe-relay map ip 172.31.10.1 255.255.255.0 48ip helper-address 172.31.20.5
For AutoInstall to work correctly, the new router must be able to resolve its host name and then download a name-confg or a name.cfg file from a TFTP server. The new router can resolve its host name by using a network-confg or a cisconet.cfg file downloaded from a TFTP server or by using the DNS.
To set up a TFTP server to support AutoInstall, complete the following tasks. Step 2 includes two ways to resolve the new router's host name. Use the first method if you want to use a network-config file to resolve the new router's host name. Use the second method if you want to use DNS to resolve the new router's host name.
| Task | Command |
|---|---|
| Step 1 Enable TFTP on a server. | Consult your host vendor's TFTP server documentation and RFCs 906 and 783. |
Step 2 If you want to use a network-confg or cisconet.cfg file to resolve the new router's name, create the network-confg or cisconet.cfg file containing an IP address-to-host name mapping for the new router. Enter the ip host command into the TFTP config file, not into the router. The IP address must match the IP address that is to be dynamically obtained by the new router. or If you want to use DNS to resolve the new router's name, create an address-to-name mapping entry for the new router in the DNS database. The IP address must match the IP address that is to be dynamically obtained by the new router. | ip host hostname address
Contact the DNS administrator or refer to RFCs 1101 and 1183. |
| Step 3 Create the name-confg or name.cfg file, which should reside in the tftpboot directory on the TFTP server. The name part of name-confg or name.cfg filename must match the host name you assigned for the new router in the previous step. Enter configuration commands for the new router into this file. | See the appropriate chapter in this guide for specific commands. |
The name-confg or the name.cfg file can contain either the new router's full configuration or a minimal configuration.
The minimal configuration file is a virtual terminal password and an enable password. It allows an administrator to Telnet into the new router to configure it. If you are using BOOTP or RARP to resolve the address of the new router, the minimal configuration file must also include the IP address to be obtained dynamically using BOOTP or RARP.
You can use the copy running-config tftp command to help you generate the configuration file that you will download during the AutoInstall process.
ip host newrouter 131.108.170.1
The following host configuration file contains the minimal set of commands needed for AutoInstall using SLARP or BOOTP:
enable-password letmein ! line vty 0 password letmein ! end
The preceding example shows a minimal configuration for connecting from a router one hop away. From this configuration, use the setup facility to configure the rest of the interfaces. If the router is more than one hop away, you also must include routing information in the minimal configuration.
The following minimal network configuration file maps the new router's IP address, 131.108.10.2, to the host name newrouter. The new router's address was learned via SLARP and is based on the existing router's IP address of 131.108.10.1.
ip host newrouter 131.108.10.2
If the new router is connected to the existing router using an Ethernet, Token Ring, or FDDI interface, you must configure a BOOTP or RARP server to map the new router's MAC address to its IP address. If the new router is connected to the existing router using a serial line with HDLC encapsulation or if you are configuring AutoInstall over Frame Relay, the tasks in this section are not required.
To configure a BOOTP or RARP server, complete one of the following tasks:
| Task | Command |
|---|---|
| If BOOTP is to be used to resolve the new router's IP address, configure your BOOTP server. | Refer to your host vendor's manual pages and to RFCs 951 and 1395 |
| If RARP is to be used to resolve the new router's IP address, configure your RARP server. | Refer to your host vendor's manual pages and to RFC 903 |
interface ethernet 0 ip address 131.108.10.2 255.255.255.0 enable-password letmein ! line vty 0 password letmein ! end
Connect the new router to the network using either an HDLC-encapsulated or Frame Relay-encapsulated serial interface or an Ethernet, Token Ring, or FDDI interface. After the router successfully resolves its host name, newrouter sends a TFTP broadcast requesting the file name-confg or name.cfg. The router name must be in all lowercase, even if the true host name is not. The file is downloaded to the new router, where the configuration commands take effect immediately. If the configuration file is complete, the new router should be fully operational. To save the complete configuration to NVRAM, complete the following tasks in privileged EXEC mode:
| Task | Command |
|---|---|
| Step 1 Enter privileged mode at the system prompt on the new router. | enable password |
| Step 2 Save the information from the name-config file into your startup configuration. On most platforms, this step saves the configuration to NVRAM. On the Cisco 7000 family, this step saves the configuration to the location specified by the CONFIG_FILE environment variable. | copy running-config startup-config |
![]() | Caution Verify that the existing and new routers and/or access servers are connected before entering the copy running-config startup-config EXEC command to save configuration changes. Use the ping EXEC command to verify connectivity. If an incorrect configuration file is downloaded, the new router will load NVRAM configuration information before it can enter AutoInstall mode. |
If the configuration file is a minimal configuration file, the new router comes up, but with only one interface operational. Complete the following steps to connect to the new router and configure it:
| Task | Command |
|---|---|
| Step 1 Establish a Telnet connection to the existing router. | telnet existing |
| Step 2 From the existing router, establish a Telnet connection to the new router. | telnet newrouter |
| Step 3 Enter privileged EXEC mode. | enable password |
| Step 4 Enter setup mode to configure the new router. | setup |
The setup command facility is an interactive facility that allows you to perform first-time configuration and other basic configuration procedures on all routers. The facility prompts you to enter basic information needed to start a router functioning quickly and uneventfully.
Although the setup command facility is a quick way to "set up" a router, you can also use it after first-time startup to perform basic configuration changes. This section focuses on the following:
Refer to your hardware platform's user guide for more information on how to use setup for first-time startup.
Whenever you use the setup command facility, be sure that you know the following:
You can perform the tasks in the following sections to make configuration changes using the setup command facility. Both tasks are optional.
The command parser allows you to make very detailed changes to your configurations. However, some major configuration changes do not require the granularity provided by the command parser. In these cases, you can use the setup command facility to make major enhancements to your configurations. For example, you might want to use setup to add a protocol suite, to make major addressing scheme changes, or to configure a newly installed interface. Although you can use the command parser to make these major changes, the setup command facility provides you with a high-level view of the configuration and guides you through the configuration change process.
Additionally, if you are not familiar with Cisco products and the command parser, the setup command facility is a particularly valuable tool because it asks you the questions required to make configuration changes.
To enter the setup command facility, perform the following task in privileged EXEC mode:
| Task | Command |
|---|---|
| Enter the setup command facility. | setup |
When you enter the setup command facility after first-time startup, an interactive dialog called the System Configuration Dialog appears on the system console screen. The System Configuration Dialog guides you through the configuration process. It prompts you first for global parameters and then for interface parameters. The values shown in brackets next to each prompt are the default values last set using either the setup command facility or the configure command.
You must run through the entire System Configuration Dialog until you come to the item that you intend to change. To accept default settings for items that you do not want to change, press the Return key.
To return to the privileged EXEC prompt without making changes and without running through the entire System Configuration Dialog, press Ctrl-C.
The facility also provides help text for each prompt. To access help text, press the question mark (?) key at a prompt.
When you complete your changes, the setup command facility shows you the configuration command script that was created during the setup session. It also asks you if you want to use this configuration. If you answer Yes, the configuration is saved to NVRAM. If you answer No, the configuration is not saved and the process begins again. There is no default for this prompt; you must answer either Yes or No.
The following example shows how to use the setup command facility to configure interface serial 0 and to add ARAP and IP/IPX PPP support on the asynchronous interfaces:
Router# setup
--- System Configuration Dialog ---
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 '[]'.
Continue with configuration dialog? [yes]:
First, would you like to see the current interface summary? [yes]:
Interface IP-Address OK? Method Status Protocol
Ethernet0 172.16.72.2 YES manual up up
Serial0 unassigned YES not set administratively down down
Serial1 172.16.72.2 YES not set up up
Configuring global parameters:
Enter host name [Router]:
The enable secret is a one-way cryptographic secret used
instead of the enable password when it exists.
Enter enable secret [
The streamlined setup command facility is available only if your router is running from ROM monitor and has RXBOOT ROMs installed. The following routers can have this type of ROM installed:
The streamlined setup command facility permits your router to load a system image from a network server when there are problems with the startup configuration. The Cisco IOS software automatically puts you in the streamlined setup command facility when your router is accidentally or intentionally rebooted (or you are attempting to load a system image from a network server) after any of the following circumstances:
The streamlined setup command facility differs from the standard setup command facility because the streamlined facility does not ask you to configure global router parameters. You are prompted only to configure interface parameters, which permit your router to boot.
The following example shows a router entering the streamlined setup command facility:
--- System Configuration Dialog ---
Default settings are in square brackets '[]'.
Configuring interface IP parameters for netbooting:
The streamlined setup command facility continues by prompting you for interface parameters for each installed interface. The facility asks if an interface is in use. If so, the facility then prompts you to provide an IP address and subnet mask bits for the interface. Enter the subnet mask bits as a decimal value, such as 5.
The following example shows the portion of the streamlined setup command facility that prompts for interface parameters. In the example, the facility is prompting for Ethernet0 interface parameters and Serial0 interface parameters:
Configuring interface Ethernet0:
Is this interface in use? [yes]:
Configure IP on this interface? [yes]:
IP address for this interface: 192.195.78.50
Number of bits in subnet field [0]: 5
Class C network is 192.195.78.0, 5 subnet bits; mask is 255.255.255.248
Configuring interface Serial0:
Is this interface in use? [yes]:
Configure IP on this interface? [yes]:
IP address for this interface: 192.195.78.34
Number of bits in subnet field [5]:
Class C network is 192.195.78.0, 5 subnet bits; mask is 255.255.255.248
The configuration information you provide on this screen is temporary and exists only so that you can proceed with booting your system. When you reload the system, your original configuration is left intact. If your startup configuration is corrupted, enter the setup command facility, and configure the basic parameters. Then issue the copy running-config startup-config command to write this configuration to NVRAM.
You can also you configure the Cisco IOS using one of the following tools:
For more information on using these configuration tools, refer to the documentation shipped with your product or configuration tool.
ClickStart enables you to configure and monitor a router using a World Wide Web browser. ClickStart can be used to configure a router to connect a small office or home PC to the Internet or to another network. In this environment, your PC is connected to the router via an Ethernet connection. You configure the router to dial your Internet service provider, and your Internet service provider supplies an ISDN, Frame Relay, or Asynchronous Serial connection to the Internet. You do not need to have an extensive background in networks and routers to configure your router using ClickStart.
You can use ClickStart to configure a Cisco 1003 or Cisco 1004 ISDN router running Cisco IOS Release 11.0(6) or later software, or Cisco IOS Release 11.1(2) or later software. You can also use ClickStart to configure a Cisco 1005 Frame Relay or Asynchronous Serial router running Cisco IOS Release 11.1(5) or later software. ClickStart is also available for the Cisco 1600 series and Cisco 700 series.
Use Cisco ConfigMaker on a Windows 95 or Windows NT system to quickly and easily configure Cisco 1000 series, Cisco 1600 series, Cisco 2500 series, and Cisco 3600 series routers and access servers from a single PC. Use this application to create a network of devices, make connections between devices, automatically assign addresses, and deliver configurations to routers by using the COM port on the computer. Cisco ConfigMaker is designed for resellers and network administrators of small to medium-sized businesses who are proficient in LAN fundamentals and basic network design.
ConfigMaker makes configuring a High-Level Data Link Control (HDLC), Frame Relay or ISDN wide-area network connection between routers or the Internet as easy as drawing a network diagram. The tool guides users step-by-step through network design and addressing tasks and automatically delivers configuration files to individual routers on the network. ConfigMaker provides a graphical view of the entire network and lets the user build network diagrams using standard copy/paste, drag/drop and online editing functions. ConfigMaker enables the user to monitor router and network configuration status at a glance with simple color codes.
|
|