|
|
This chapter briefly describes procedures for configuring the router, and contains the following sections:
Each time you power on the router, it goes through the following boot sequence:
The first time you boot your router, you will need to configure the router interfaces and then save the configuration to a file in NVRAM. See the section "Configuring the Router for the First Time" or refer to the configuration note for the appropriate module for interface configuration information. See the section "Saving Configuration Changes" later in this chapter for information on how to save the router configuration to NVRAM.
Because many privileged-level EXEC commands are used to set operating parameters, you should password-protect access to privileged mode to prevent unauthorized use.
You can set two passwords to do this:
The enable password and enable secret password must be different. In both cases, a number cannot be the first character. Spaces are also valid password characters; for example, "two words" is a valid password. Leading spaces are ignored; trailing spaces are recognized.
For information about setting passwords, refer to the Cisco IOS configuration guides and command references. You can also set these passwords using the setup facility. See the section "Using the System Configuration Dialog" later in this chapter.
If you lose or forget your enable password, see the section "Recovering a Lost Enable Password" in the appendix "Troubleshooting." The enable secret password is encrypted, and cannot be recovered; you must replace it with a new enable secret password.
You can configure the router using one of the following procedures, which are described in this section:
Proceed with the procedure that best fits the needs of your network configuration and Cisco IOS software experience level.
![]() | Time Saver Acquire the correct network addresses from your system administrator or consult your network plan to determine the correct addresses before you begin to configure the router. |
If you will be using configuration mode or AutoInstall to configure the router, and you would like a quick review of the Cisco IOS software, refer to the section "Cisco IOS Software Basics" later in this chapter.
If you do not plan to use AutoInstall, make sure all the WAN cables are disconnected from the router. The router will attempt to run AutoInstall whenever you power it on if there is a WAN connection on both ends and the router does not have a configuration file stored in NVRAM. It can take several minutes for the router to determine that AutoInstall is not connected to a remote Transmission Control Protocol/Internet Protocol (TCP/IP) host.
If your router does not have a configuration (setup) file and you are not using AutoInstall, the router will automatically start the setup command facility. An interactive dialog called the System Configuration Dialog appears on the console screen. This dialog helps you navigate through the configuration process by prompting you for the configuration information necessary for the router to operate.
Many prompts in the System Configuration Dialog include default answers, which are included in square brackets following the question. To accept a default answer, press Return; otherwise, enter your response.
This section gives an example configuration using the System Configuration Dialog. When you are configuring your router, respond as appropriate for your network.
At any time during the System Configuration Dialog, you can request help by typing a question mark (?) at a prompt.
Before proceeding with the System Configuration Dialog, obtain from your system administrator the node addresses and the number of bits in the subnet field (if applicable) of the router ports. For more information about IP addresses and subnets, refer to the Internetworking Technology Overview publication.
Take the following steps to configure the router using the System Configuration Dialog:
Step 1 Connect a console terminal to the console port on the front panel of your router, and then power ON the router. (For more information, refer to the section "Connecting the Console Terminal and Modem" in the chapter "Installing the Router.")
Step 2 After about 30 seconds, information similar to the following is displayed on the console screen:
Step 3 Press Return or enter yes to begin the configuration process.
Step 4 When the System Configuration Dialog asks whether you want to view the current interface summary, press Return or enter yes:
Step 5 Configure the global parameters. A typical configuration follows:
Next, you are prompted to enter an enable secret password. There are two types of privileged-level passwords:
The enable password is used when the enable secret password does not exist.
For maximum security, be sure the passwords are different. If you enter the same password for both, the router will accept your entry, but will display a warning message indicating that you should enter a different password.
Step 6 Enter an enable secret password:
pail
Step 7 Enter the enable and virtual terminal passwords:
shovel
vterm1
Step 8 Press Return to accept Simple Network Management Protocol (SNMP) management, or enter no to refuse it:
no
Step 9 In the following example, the router is configured for AppleTalk, Internet Protocol (IP), and Internetwork Packet Exchange (IPX). Configure the appropriate protocols for your router:
yes
yes
15
yes
Step 10 If your router includes an ISDN BRI port, enter the ISDN BRI switch type. The switch type appropriate for the router depends on the ISDN service provider's equipment. Table 4-1 lists the ISDN switch types.
basic-5ess
| Country | ISDN Switch Type | Description |
|---|---|---|
| Australia | basic-ts013 | Australian TS013 switches |
| Europe | basic-1tr6 | German 1TR6 ISDN switches |
| basic-nwnet3 | Norwegian NET3 ISDN switches (phase 1) | |
| basic-net3 | NET3 ISDN switches (UK and others) | |
| Europe | basic-net5 | NET5 switches (UK and Europe) |
| vn2 | French VN2 ISDN switches | |
| vn3 | French VN3 ISDN switches | |
| Japan | ntt | Japanese NTT ISDN switches |
| New Zealand | basic-nznet3 | New Zealand NET3 switches |
| North America | basic-5ess | AT&T basic rate switches |
| basic-dms100 | NT DMS-100 basic rate switches | |
| basic-ni1 | National ISDN-1 switches |
This section describes how to configure the ISDN BRI interface. If your router does not include an ISDN BRI interface, proceed to the next section, "Configuring Ethernet Interfaces."
The ISDN BRI interface is configured to allow connection to ISDN WANs. Determine which protocols to support on the ISDN BRI interface and enter the appropriate responses. In the following example, the system is being configured for IP, AppleTalk, and IPX:
Configuring interface BRI0/0: Is this interface in use? [yes] Configure IP on this interface? [yes] IP address for this interface:172.16.71.1Number of bits in subnet field [0]:8Class B network is 172.16.0.0, 8 subnet bits; mask is 255.255.255.0 Configure AppleTalk on this interface? [no]:yesExtended AppleTalk network? [no]:yesAppleTalk starting cable range [0]:1AppleTalk ending cable range [1]:2AppleTalk zone name [myzone]: AppleTalk additional zone name:otherzoneAppleTalk additional zone name: Configure IPX on this interface? [no]:yesIPX network number [1]:B000
The Ethernet interfaces are configured to allow connection to a LAN. To configure the interface parameters, you need to know the Ethernet interface network addresses.
Take the following steps to configure an Ethernet interface to allow communication over a LAN:
Step 1 Press Return or enter yes to configure the LAN interface:
Step 2 Determine which protocols you want to support on the LAN interface and enter the appropriate responses. In the following example, the system is being configured for IP, AppleTalk, and IPX:
172.16.72.1
8
yes
yes
3
3
otherzone
yes
B001
Step 3 If there is more than one LAN interface on your router, repeat this procedure to configure the second and subsequent LAN interfaces.
The Fast Ethernet interfaces are configured to allow connection to a LAN. To configure the interface parameters, you need to know the Fast Ethernet interface network addresses.
Take the following steps to configure an Ethernet interface to allow communication over a LAN:
Step 1 Press Return or enter yes to configure the LAN interface:
Step 2 Determine which protocols you want on the LAN interface and enter the appropriate responses. (You must have previously enabled these protocols as part of global configuration.) In the following example, the interface is being configured for IP, AppleTalk, and IPX:
172.16.74.3
8
yes
yes
3
3
ZZEth
yes
B005
Step 3 If there is more than one LAN interface on your router, repeat this procedure to configure the second and subsequent LAN interfaces.
The Token Ring interfaces are configured to allow connection to a LAN. To configure the interface parameters, you need to know the Token Ring interface network addresses.
Take the following steps to configure a Token Ring interface to allow communication over a LAN:
Step 1 Press Return or enter yes to configure the LAN interface:
Step 2 Determine which protocols you want to support on the LAN interface and enter the appropriate responses. In the following example, the system is being configured for IP, AppleTalk, and IPX:
172.16.73.1
8
yes
yes
4
4
otherzone
yes
B002
Step 3 If there is more than one LAN interface on your router, repeat this procedure to configure the second and subsequent LAN interfaces.
Take the following steps to configure the serial port(s):
Step 1 Press Return or enter yes to configure serial port 0 in slot 0:
Step 2 Determine which protocols you want on the synchronous serial interface and enter the appropriate responses. In the following example, the system is being configured for IP, AppleTalk, and IPX:
172.16.74.1
yes
5
5
ZZ Serial
yes
B003
Step 3 If there is more than one serial interface on your router, repeat this procedure to configure the remaining serial interfaces.
Step 4 The configuration you entered is now displayed and you are asked if you want to use the displayed configuration. If you enter no, you will lose the configuration information you just entered and you can begin the configuration again. If you enter yes, the configuration will be entered and saved in the startup configuration:
yes
If you have asynchronous serial, T1, or E1 interfaces installed in your router, proceed to the section "Additional Startup Configuration Tasks."
Refer to the section "Cisco IOS Software Basics" for more information about the Cisco IOS software.
To configure a switched 56 interface, you must use configuration mode (manual configuration). In this mode, you can enter Cisco Internetwork Operating System (Cisco IOS) commands at the router prompt.
Before you begin to configure a switched 56 interface, disconnect all WAN cables from the router to keep it from trying to run the AutoInstall process. The router tries to run AutoInstall whenever you power it ON if there is a WAN connection on both ends and the router does not have a valid configuration file stored in nonvolatile random-access memory (NVRAM) (for instance, when you add a new interface). It can take several minutes for the router to determine that AutoInstall is not connected to a remote Transmission Control Protocol/Internet Protocol (TCP/IP) host.
If you have questions or need help, refer to the section "Obtaining Service and Support" later in this document for further information.
The switched 56 WAN interface card is configured for dedicated or leased-line service by default, but you can also configure it for circuit-switched service.
Generally, circuit-switched service is suited for short-duration data transmissions or as an alternative route if a dedicated line fails. For example, circuit-switched service is ideal for sending electronic mail messages or updating inventory and order records from one network database to another at the end of each day. To configure the card for circuit-switched service, continue with the next section, "Configuring Circuit-Switched Service."
Dedicated service is suited for heavy network traffic. Dedicated service is ideal if you need a constant network connection or if you need connection for more than eight hours per day. To configure the card for dedicated service, continue with the section "Configuring Dedicated Line Service" later in this document.
Follow these steps to configure the switched 56 WAN interface card for circuit-switched service, substituting the addresses and host names for your network:
Step 1 Enter enable mode:
enable
enablepassword
Step 2 Enter configuration mode:
config term
Step 3 Assign an IP address to the serial port on the WAN interface card:
interface serial port_number
ip address ipaddress subnetmask
no keepalive
Step 4 Set the network type to "switched":
service-module 56k network-type switched
Step 5 Set the carrier type, where carrier can be att, sprint, or other:
Step 6 Enter dialer information:
dialer in-band
dialer string targetrouter_phonenumber
dialer-group groupnumber
exit
dialer-list groupnumber protocol protocol permit
Step 7 Return to user EXEC mode:
exit
Follow these steps to configure the switched 56 WAN interface card for dedicated or leased-line service, substituting the addresses and host names for your network:
Step 1 Enter enable mode:
enable
enablepassword
Step 2 Enter configuration mode:
Step 3 Assign an IP address to the serial port on the WAN interface card:
interface serial port_number
ip address ipaddress subnetmask
no keepalive
Step 4 Set the network type to Digital Data System (DDS) for dedicated or leased-line service:
service-module 56k network-type dds
Step 5 Return to user EXEC mode:
exit
exit
exit
Refer to the section "Cisco IOS Software Basics" later in this chapter for more information about Cisco IOS software.
When you have completed the setup facility, you might need to complete some additional configuration tasks. Complete the following tasks that apply to your installation:
The ports you plan to use as asynchronous serial ports must be reconfigurated after the initital setup. The following steps provide an example of how to configure a synchronous serial port to be an asynchronous serial port.
Step 1 Enter the command config terminal to enter configuration mode:
config terminal
The router enters global configuration mode, indicated by the Router(config)# prompt.
Step 2 Select the serial interface to configure:
interface serial 0/0
The prompt changes again to show that you are in interface configuration mode.
Step 3 Because all serial ports are initially configured as synchronous, you must change the port to asynchronous operation by entering the physical-layer command:
physical-layer async
Configure other asynchronous parameters according to your needs, for example:
async mode dedicated
async default routing
Step 4 To configure asynchronous line settings, use the line async command. A serial port's line number is related to its slot number and unit number in the following way:
line-number = (16 x slot-number) + unit-number + 1
For example, serial port 1/2 corresponds to line number (16 x 1) + 2 + 1 = 19. To set this port to a speed of 115200 bps, you would enter the following commands:
line async 19
To return an asynchronous port to synchronous operation, use the configuration mode physical-layer sync command.
Step 5 If you have completed the configuration, press Ctrl-Z to exit configuration mode.
Step 6 Write the new configuration to memory, as follows:
copy running-config startup-config
The system displays a confirmation message when the configuration is saved.
Step 7 Enter the disable command to return to the user level:
disable
Step 8 Enter the show commands to check the configuration of the interface.
For information on using the show commands, see the section "Network Statistics" later in this chapter.
This completes the procedure to configure a synchronous serial interface for asynchronous operation.
Use this procedure if it is necessary to set a serial port previously configured for asynchronous operation back to synchronous operation.
Take the following steps to configure a low-speed asynchronous serial port to be a low-speed synchronous serial port:
Step 1 Enter the config terminal command at the privileged EXEC prompt to enter configuration mode:
config terminal
Step 2 Enter the interface command to select the port you are configuring:
interface serial 1/4
Step 3 Enter the physical-layer command to set the port to synchronous:
physical-layer sync
Step 4 When you have completed the configuration, press Ctrl-Z to exit configuration mode.
Step 5 Write the new configuration to memory, as follows:
copy running-config startup-config
The system displays a confirmation message when the configuration is saved.
Step 6 Enter the disable command to return to the user level:
disable
Step 7 Enter the show commands to check the configuration of the interface.
This completes the procedure to configure an asynchronous serial interface for synchronous operation.
Low-speed serial ports that are set as DCE can be set to use either controlled carrier mode or constant carrier mode.
Constant carrier mode (the default for low-speed interfaces) activates DCD at all times.
Take the following steps to enable controlled carrier mode:
Step 1 Enter the config terminal command at the privileged EXEC prompt to enter configuration mode:
config terminal
Step 2 Enter the half-duplex command to reset the port from constant carrier mode to controlled carrier mode:
interface serial 1/4
half-duplex controlled carrier
Step 3 Enter the no half-duplex command to return to constant carrier mode:
interface serial 1/4
no half-duplex controlled carrier
Step 4 Enter the half-duplex timer command to specify the time that the interface delays when in controlled carrier mode. For example, to configure the DCD drop delay, enter the following commands, using appropriate values for your system:
interface serial 1/4
half-duplex timer dcd-drop-delay 100
The amount of time is specified in milliseconds.
Step 5 Enter the timer command to tailor the delay times for the router ports. Table 4-1 lists the timer commands and their default settings.
| Timer | Syntax | Default Setting (Milliseconds) |
|---|---|---|
| CTS1 delay | half-duplex timer cts-delay | 100 |
| CTS drop timeout | half-duplex timer cts-drop-timeout | 5000 |
| DCD drop delay | half-duplex timer dcd-drop-delay | 100 |
| DCD transmission start delay | half-duplex timer dcd-txstart-delay | 100 |
| RTS2 drop delay | half-duplex timer rts-drop-delay | 100 |
| RTS timeout | half-duplex timer rts-timeout | 2000 |
| Transmit delay | half-duplex transmit-delay | 0 |
Step 6 When you have completed the configuration, press Ctrl-Z to exit configuration mode.
Step 7 Write the new configuration to memory, as follows:
copy running-config startup-config
The system displays a confirmation message when the configuration is saved.
Step 8 Enter the disable command to return to the user level:
disable
Step 9 Enter the show commands to check the configuration of the interface.
This completes the procedure to set half-duplex mode in a serial interface.
All serial interfaces support DTE and DCE modes, and nonreturn to zero (NRZ) and nonreturn to zero inverted (NRZI) formats.
Step 1 To use a port as a DTE interface, connect a DTE serial cable to the port. When the router detects the cable, it automatically uses the external timing signal. To use a port in DCE mode, connect a DCE serial cable and set the internal transmit clock signal (TXC) speed in bits per second with the clockrate command, for example:
clockrate 72000
Acceptable clock rate settings are as follows:
| 300 1200 2400 4800 9600 14400 19200 28800 | 32000 38400 56000 57600 64000 72000 115200 128000 |
Speeds above 64 kbps (64000) are not supported for EIA/TIA-232.
Use the no clockrate command to remove the clock rate for DTE operation.
Step 2 When a port is operating in DCE mode, the default operation is for the DCE to send serial clock transmit (SCT) and serial clock receive (SCR) clock signals to the DTE, and for the DTE to return a serial clock transmit external (SCTE) signal to the DCE. If the DTE does not return SCTE, you must use the dce-terminal-timing-enable command to configure the DCE port to use its own clock signal:
dce-terminal-timing-enable
To disable this command, use the no dce-terminal-timing-enable command.
Step 3 Routers that use long cables may experience high error rates when operating at higher transmission speeds, because the clock and data signals can shift out of phase. If a DCE port is reporting a high number of error packets, inverting the clock using the invert-txc command can often correct this shift:
invert-txc
Use the no invert-txc command to change the clock signal back to its original phase.
Step 4 All serial interfaces support both NRZ and NRZI formats. NRZ is the default; NRZI is commonly used with EIA/TIA-232 connections in IBM environments. To enable NRZI encoding on an interface, enter the nrzi-encoding command:
nrzi-encoding
To disable NRZI encoding on a port, enter the no nrzi-encoding command.
Step 5 If you have completed the configuration, press Ctrl-Z to exit configuration mode.
Step 6 Write the new configuration to memory, as follows:
copy running-config startup-config
The system displays a confirmation message when the configuration is saved.
Step 7 Enter the disable command to return to the user level:
disable
Step 8 Enter the show commands to check the configuration of the interface.
This completes the procedure to configure a serial interface for DTE/DCE and NRZ/NRZI operation.
If your router includes a CT1/PRI (or CT1/PRI-CSU) module, you must enter configuration mode to configure the interfaces.
This procedure can also be used to change the configuration of an existing CT1/PRI module or to configure a CT1/PRI module newly installed in an existing system. If you replaced a CT1/PRI module that was previously configured, the system will recognize the new module and bring it up with the existing configuration.
Use the privileged-level configure command to configure the new module. Have the following information ready when you begin your configuration:
Take the following steps to complete a basic T1 configuration:
Step 1 At the privileged EXEC prompt, enter the configure terminal command to enter configuration mode and specify that the console terminal will be the source of the configuration commands:
conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#Step 2 Enter the controller t1 command to specify the slot number and unit number of the module you are configuring. For more information on slot and unit numbers, refer to the sections "Slot Numbering" and "Unit Numbering" in the chapter "Overview." For example, if you are configuring a T1 interface in slot 1 and that is unit 0, enter the following command:
cont t1 1/0
Step 3 Specify the clock source for the module. The clock source command determines which end of the circuit provides the clocking:
clock source line
Step 4 Specify the framing type:
framing esf
Step 5 Specify the line code format:
linecode b8zs
Step 6 Specify the channel group and time slots to be mapped. The command shown sets the channel group to 0 and time slots 1, 3 through 5, and 7 are selected for mapping.
channel-group 0 timeslots 1,3-5,7 Step 7 Specify the serial interface, unit number, and channel group you want to modify:
int serial 1/0:0
Step 8 Assign an IP address and subnet mask to the interface using the ip address command as follows, substituting the appropriate IP address and subnet mask for your site:
ip address 1.1.15.1 255.255.255.0
Step 9 Add any additional configuration commands required to enable routing protocols and adjust the interface characteristics. Refer to the Cisco IOS configuration guides and command references for more information on configuration subcommands.
Step 10 When you have completed the configuration, press Ctrl-Z to exit configuration mode.
Step 11 Write the new configuration to memory, as follows:
copy running-config startup-config
The system displays a confirmation message when the configuration is saved.
Step 12 Enter the disable command to return to the user level:
disable
Step 13 Enter the show commands to check the configuration of the interface.
This completes the procedure to configure a CT1/PRI interface.
If your router includes a CE1/PRI module (balanced or unbalanced), you must enter configuration mode to configure the interface.
This procedure can also be used to change the configuration of an existing CE1/PRI module or to configure a CE1/PRI module newly installed in an existing system. If you replaced a CE1/PRI module that was previously configured, the system will recognize the new module and bring it up with the existing configuration.
When you have verified that the new CE1/PRI module is recognized by the router, use the privileged-level configure command to configure the new CE1/PRI module. Have the following information ready when you begin your configuration:
Take the following steps to complete a basic E1 configuration.
Step 1 At the privileged EXEC prompt, enter the configure terminal command to enter configuration mode and specify that the console terminal will be the source of the configuration commands:
conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#Step 2 Enter the controller e1 command to specify the slot and unit number of the E1 interface you are configuring. For more information on slot and unit numbers, refer to the sections "Slot Numbering" and "Unit Numbering" in the chapter "Overview." For example, if you are configuring an E1 interface that is in slot 1 and that is unit 0, enter the following command:
cont e1 1/0
Step 3 Specify the framing type:
framing crc4
Step 4 Specify the channel group and time slots to be mapped. The command shown below sets the channel group to 0 and time slots 1, 3 through 5, and 7 are selected for mapping:
channel-group 0 timeslots 1,3-5,7 Step 5 Specify the serial interface, unit number, and channel group you want to modify:
int serial 1/0:0
Step 6 Assign an IP address and subnet mask to the interface using the ip address command as follows, substituting the appropriate IP address and subnet mask for your site:
ip address 1.1.15.1 255.255.255.0
Step 7 Add any additional configuration subcommands required to enable routing protocols and adjust the interface characteristics. Refer to the Cisco IOS configuration guides and command references for more information on configuration subcommands.
Step 8 When you have completed the configuration, press Ctrl-Z to exit configuration mode.
Step 9 Write the new configuration to memory, as follows:
copy running-config startup-config
The system displays a confirmation message when the configuration is saved.
Step 10 Enter the disable command to return to the user level:
disable
Step 11 Enter the show commands to check the configuration of the interface.
This completes the procedure to configure a CE1/PRI interface.
System configurations with multiple ISDN PRI interfaces or 12 or more ISDN BRI interfaces require more I/O memory than the default.
Cisco 3600 series routers ship with a 75/25 processor/I/O memory split. If your router has 2 ISDN PRI interfaces or more than 12 ISDN BRI interfaces, you must change the memory split to 60/40. The following sections provide information about reallocating processor and I/O memory and provide examples of the memory-size iomem command. Note that if you do not reallocate memory, you will get an error code.
DRAM memory in Cisco 3600 series routers is organized as one continuous address space divided between processor memory and I/O memory. Depending on the type and number of network interfaces you have configured in the router, you may need to reallocate the DRAM memory partitioned to processor memory and I/O memory.
Cisco manufacturing configures most Cisco 3600 series routers to have 25 percent of the address space allocated to I/O memory and 75 percent allocated to processor memory. But for customers who use two or more ISDN PRI interfaces, DRAM memory must be configured to provide 40 percent of the address space for I/O memory and 60 percent for processor memory. See Figure 4-1.

After you receive your router, you may have to manually reallocate the DRAM memory split between processor memory and I/O memory.
The following example uses a Cisco 3640 router with the following running configuration:
Later on, however, you add a 4-port ISDN BRI network module to the router. You now have a total of 12 ISDN BRI interfaces running on the router. At this point, you must use the memory-size iomem command to configure 40 percent of the address space for I/O memory and 60 percent for processor memory.
To view your current mix of processor and I/O memory and reassign memory distribution accordingly, enter the following commands beginning in privileged EXEC mode:
| Task | Command |
|---|---|
| Step 1 View the total amount of memory loaded on the router. | show version |
| Step 2 Determine the amount of free memory. | show memory1 |
| Step 3 Enter global configuration mode. | configure terminal |
| Step 4 Allocate processor memory and I/O memory. | memory-size iomem I/O-memory-percentage2 |
| Step 5 Exit global configuration mode. | Ctrl-Z |
| Step 6 Write the new configuration to NVRAM. | copy running-config startup-config |
| Step 7 Reload the router to run the new image. | reload |
Valid I/O memory percentage values are 25, 30, 40 (the default), and 50. I/O memory size is the specified percentage of total memory size, rounded down to the nearest multiple of 1 MB. The remaining memory is processor memory.
The memory-size iomem command is not effective until you save it to NVRAM using the copy running-config startup-config EXEC command and reload the router. However, when you enter the command, the software checks whether the new memory distribution leaves enough processor memory for the currently running Cisco IOS image. If not, the following message appears:
Warning: Attempting a memory partition that does not provide enough Processor memory for the current image.If you write memory now, this version of software may not be able to run.
When you enter the reload command to run a new image, the software calculates the new processor and I/O memory split. If there is not enough processor memory, it automatically reduces I/O memory to an alternative setting to load the image. If there is still not enough processor memory for the image to run, then you do not have enough DRAM.
See the next section for an example of how to configure the memory-size iomem command.
The percentage of DRAM allocated to I/O memory and processor memory is configurable.
The following example allocates 40 percent of DRAM to I/O memory and the remaining 60 percent to processor memory:
Step 1 From EXEC mode, enter the show memory command to see whether you need to allocate different percentages of processor and I/O memory. The Free(b) column shows how much I/O memory is available:
show memory
Step 2 Enter global configuration mode and configure the memory-size iomem command.
configure terminal
memory-size iomem 40
Ctrl-Z
Step 3 Write the new configuration to NVRAM:
copy running-config startup-config
Step 4 Enter the reload command to run the new image and boot the router from ROM monitor mode:
reload
Instead of using the system configuration dialog to configure your router, you can use either of the following methods:
Follow the procedure that best fits the needs of your network configuration. If you would like a quick review of Cisco IOS software commands, refer to the section "Cisco IOS Software Basics" later in this chapter.
![]() | Time Saver Obtain network addresses from your system administrator or your network plan before you begin router configuration. |
Before you configure an interface, have the following information available:
Take the following steps to configure the router manually:
Step 1 Connect a console by following the instructions in the section "Console Port" in the chapter "Installing the Router," and power ON the router.
Step 2 When asked if you would like to enter the initial dialog, answer no:
no
You now enter the normal operating mode of the router.
Step 3 After a few seconds you see the user EXEC prompt (Router>). Type enable to enter privileged EXEC mode:
enable
Configuration changes can be made only in privileged EXEC mode. The prompt changes to the privileged EXEC (enable) prompt (Router#):
Step 4 Enter the config terminal command to enter configuration mode:
config terminal
You can now enter changes to the configuration, one command per line. For information about configuration commands, refer to the Cisco IOS configuration guides and command references.
Step 5 When you have completed the configuration, press Ctrl-Z to exit configuration mode.
To see the current operating configuration, including any changes you just made, enter the show running-config command at the privileged EXEC prompt:
Router# show running-config
To see the configuration currently stored in NVRAM, enter the show startup-config command at the privileged EXEC prompt.
Router# show startup-config
The results of the show running-config and show startup-config commands differ from each other if you have made changes to the configuration and have not yet written them to NVRAM.
To write your changes to NVRAM, making them permanent, enter the copy running-config startup-config command at the privileged EXEC prompt:
Router# copy running-config startup-config
Building configuration. . .
[OK]
Router#
The router is now configured to boot using the new configuration.
The AutoInstall process is designed to configure the router automatically after connection to your WAN. In order for AutoInstall to work properly, a TCP/IP host on your network must be configured to provide the required configuration files.
The TCP/IP host can reside anywhere on the network as long as the following two conditions are satisfied:
This functionality is coordinated by your system administrator at the site where the TCP/IP host is located. You should not attempt to use AutoInstall unless the required files have been installed on the TCP/IP host.
Take the following steps to prepare your router for the AutoInstall process:
Step 1 Attach the appropriate WAN cable to the router.
Step 2 Power ON the router.
The router loads the operating system image from Flash memory. If the remote end of the WAN connection is connected and properly configured, the AutoInstall process begins.
Step 3 If AutoInstall succeeds, you may want to write the configuration data to the router's NVRAM. To do this, enter the copy running-config startup-config command at the # prompt:
copy running-config startup-config
This step saves the configuration settings that the AutoInstall process created. If you fail to do this, the new configuration will be lost the next time you reload the router.
This section provides you with some basic information about the Cisco IOS software and includes the following sections:
Cisco IOS software provides access to several different command modes. Each command mode provides a different group of related commands.
For security purposes, Cisco IOS software provides two levels of access to commands: user and privileged. The unprivileged user mode is called user EXEC mode. The privileged mode is called privileged EXEC mode and requires a password. The commands available in user EXEC mode are a subset of the commands available in privileged EXEC mode.
Table 4-3 describes some of the most commonly used modes, how to enter the modes, and the resulting prompts. The prompt helps you identify which mode you are in and, therefore, which commands are available to you.
| Mode of Operation | Usage | How to Enter the Mode | Prompt |
|---|---|---|---|
| User EXEC | User EXEC commands allow you to connect to remote devices, change terminal settings on a temporary basis, perform basic tests, and list system information. The EXEC commands available at the user level are a subset of those available at the privileged level. | Log in. | Router> |
| Privileged EXEC | Privileged EXEC commands set operating parameters. The privileged command set includes those commands contained in user EXEC mode, and also the configure command through which you can access the remaining command modes. Privileged EXEC mode also includes high-level testing commands, such as debug. | From user EXEC mode, enter the enable EXEC command.
| Router# |
| Global configuration | Global configuration commands apply to features that affect the system as a whole. | From global configuration mode, enter the configure privileged EXEC command. | Router(config)# |
| Interface configuration | Interface configuration commands modify the operation of an interface such as an Ethernet, Token Ring, or serial port. Many features are enabled on a per-interface basis. Interface configuration commands always follow an interface global configuration command, which defines the interface type. | From global configuration mode, enter the interface type number command. For example, enter the interface serial 0 command to configure the serial 0 interface. | Router(config-if)# |
| ROM monitor | ROM monitor commands are used to perform low-level diagnostics. You can also use the ROM monitor commands to recover from a system failure and stop the boot process in a specific operating environment.1 | From privileged EXEC mode, enter the reload EXEC command. Press Break during the first 60 seconds while the system is booting. | rommon> |
Almost every configuration command also has a no form. In general, use the no form to disable a feature or function. Use the command without the keyword no to reenable a disabled feature or to enable a feature that is disabled by default. For example, IP routing is enabled by default. To disable IP routing, enter the no ip routing command and enter ip routing to reenable it. The Cisco IOS software command reference publication provides the complete syntax for the configuration commands and describes what the no form of a command does.
In any command mode, you can get a list of available commands by entering a question mark (?).
Router> ?
To obtain a list of commands that begin with a particular character sequence, enter those characters followed immediately by the question mark (?). Do not include a space. This form of help is called word help, because it completes a word for you.
Router# co?
configure connect copy
To list keywords or arguments, enter a question mark in place of a keyword or argument. Include a space before the question mark. This form of help is called command syntax help, because it reminds you which keywords or arguments are applicable based on the command, keywords, and arguments you have already entered.
Router# configure ?
memory Configure from NV memory
network Configure from a TFTP network host
terminal Configure from the terminal
<cr>
You can also abbreviate commands and keywords by entering just enough characters to make the command unique from other commands. For example, you can abbreviate the show command to sh.
Any time you make changes to the router configuration, you must save the changes to memory because if you do not, they will be lost if there is a system reload or power outage. There are two types of configuration files: the running (currently operating) configuration and the startup configuration. The running configuration is stored in RAM; the startup configuration is stored in NVRAM.
To display the current running configuration, enter the show running-config command. Enter the copy running-config startup-config command to save the current running configuration to the startup configuration file in NVRAM.
Router>enableRouter#copy running-config startup-config
To display the startup configuration, enter the show startup-config command. Enter the copy startup-config running-config command to write the startup configuration to the running configuration:
Router>enableRouter#copy startup-config running-config
To erase both configuration files (and start over), enter the write erase and reload commands:
Router>enableRouter#write eraseRouter#reload
![]() | Caution This command sequence will erase the entire router configuration in RAM and NVRAM and reload the router. |
To check the settings you have configured, enter the show running-config command at the enable (#) prompt:
Router# show running-config
To store the configuration, enter the copy running-config startup-config command at the enable (#) prompt:
Hostname# copy running-config startup-config
This command saves the configuration settings that the setup process created. If you fail to do this, your new configuration will be lost the next time you reload the router.
When you have finished configuring the network interfaces, use the show interface command to check network interface statistics. Options to the show interface command include the following:
The following example shows the output of the show interface serial 0/0 command:
Router> show interface serial 0/0
Serial0/0 is administratively down, line protocol is down
Hardware is QUICC Serial
Internet address is 172.16.74.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queshowue: 0/75/0 (size/max/drops); Total output drops: 0
Output queue: 0/64/0 (size/threshold/drops)
Conversations 0/0 (active/max active)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 16 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
To display the current internal status of a module, use the show controller command with the interface number options. The following example shows the output of the show controller serial 0/1 command:
Router> show controller serial 0/1
Interface Serial0/1
Hardware is Quicc 68360
idb at 0x60879DA8, driver data structure at 0x6087E140
SCC Registers:
General [GSMR]=0x2:0x00380000, Protocol-specific [PSMR]=0x0
Events [SCCE]=0x0000, Mask [SCCM]=0x0000, Status [SCCS]=0x0000
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
Interrupt Registers:
Config [CICR]=0x00C9CF00, Pending [CIPR]=0x00000000
Mask [CIMR]=0xA0000000, In-srv [CISR]=0x00000000
SDMA Registers:
[SDSR]=0x00000000, [SDAR]=0x00010428, [SDCR]=0x00000772
Command register [CR]=0x640
Port A [PADIR]=0x0130, [PAPAR]=0xFFFF
[PAODR]=0x0000, [PADAT]=0xD8FF
Port B [PBDIR]=0x0011FF, [PBPAR]=0x00100E
[PBODR]=0x000000, [PBDAT]=0x00FF7C
Port C [PCDIR]=0x0000, [PCPAR]=0x020E
[PCSO]=0x0030, [PCDAT]=0x0DFF, [PCINT]=0x0001
Receive Ring
rmd(3C010020): status 9000 length 600 address C84E44
rmd(3C010028): status 9000 length 600 address C85484
rmd(3C010030): status 9000 length 600 address C85AC4
rmd(3C010038): status 9000 length 600 address C86104
rmd(3C010040): status 9000 length 600 address C86744
rmd(3C010048): status 9000 length 600 address C86D84
rmd(3C010050): status 9000 length 600 address C873C4
rmd(3C010058): status 9000 length 600 address C87A04
rmd(3C010060): status 9000 length 600 address C88044
rmd(3C010068): status 9000 length 600 address C88684
rmd(3C010070): status 9000 length 600 address C88CC4
rmd(3C010078): status 9000 length 600 address C89304
rmd(3C010080): status 9000 length 600 address C89944
rmd(3C010088): status 9000 length 600 address C89F84
rmd(3C010090): status 9000 length 600 address C8A5C4
rmd(3C010098): status B000 length 600 address C8AC04
Transmit Ring
tmd(3C0100A0): status 0 length 0 address 0
tmd(3C0100A8): status 0 length 0 address 0
tmd(3C0100B0): status 0 length 0 address 0
tmd(3C0100B8): status 0 length 0 address 0
tmd(3C0100C0): status 0 length 0 address 0
tmd(3C0100C8): status 0 length 0 address 0
tmd(3C0100D0): status 0 length 0 address 0
tmd(3C0100D8): status 0 length 0 address 0
tmd(3C0100E0): status 0 length 0 address 0
tmd(3C0100E8): status 0 length 0 address 0
tmd(3C0100F0): status 0 length 0 address 0
tmd(3C0100F8): status 0 length 0 address 0
tmd(3C010100): status 0 length 0 address 0
tmd(3C010108): status 0 length 0 address 0
tmd(3C010110): status 0 length 0 address 0
tmd(3C010118): status 2000 length 0 address 0
No serial cable attached
SCC GENERAL PARAMETER RAM (at 0x3C010C00)
Rx BD Base [RBASE]=0x20, Fn Code [RFCR]=0x18
Tx BD Base [TBASE]=0xA0, Fn Code [TFCR]=0x18
Max Rx Buff Len [MRBLR]=1536
Rx State [RSTATE]=0x0, BD Ptr [RBPTR]=0x20
Tx State [TSTATE]=0x4000, BD Ptr [TBPTR]=0xA0
SCC HDLC PARAMETER RAM (at 0x3C010C38)
CRC Preset [C_PRES]=0xFFFF, Mask [C_MASK]=0xF0B8
Errors: CRC [CRCEC]=0, Aborts [ABTSC]=0, Discards [DISFC]=0
Nonmatch Addr Cntr [NMARC]=0
Retry Count [RETRC]=0
Max Frame Length [MFLR]=1524
Rx Int Threshold [RFTHR]=1, Frame Cnt [RFCNT]=1
User-defined Address 0000/0000/0000/0000
User-defined Address Mask 0x0000
buffer size 1524
QUICC SCC specific errors:
0 input aborts on receiving flag sequence
0 throttles, 0 enables
0 overruns
0 transmitter underruns
0 transmitter CTS losts
Router>
Note that in this example, the cable type is shown as no cable. If a cable is attached to the port, the cable type is shown, as in the following example:
buffer size 2108 Universal Serial: DTE V.24 (RS-232) cable
If the cable is DCE, the output of the show controller command displays the clock rate. For complete command descriptions and instructions, refer to the Cisco IOS configuration guides and command references.
If you need more information, refer to the publications that shipped with the router:
The router runs Cisco IOS software. The Cisco IOS configuration guides and command references are available in the following forms:
|
|