Cisco IOS Basic Skills: Configuring The Router From A PC
Cisco IOS Basic Skills: Configuring The Router From A PC
Understanding these concepts saves you time when you are configuring your router. If you have
never used the Cisco IOS software or need a refresher, take a few minutes to read this chapter before
you proceed to the next chapter.
If you are already familiar with the Cisco IOS software, you can proceed to the configuration chapter
that is appropriate for your network.
Table 2-1
PC Operating System
Software
Windows 3.1
Macintosh
You can use the terminal emulation to change settings for the type of device that is connected to the
PC, in this case a router. Configure the software to the following settings, so that your PC can
communicate with your router:
9600 baud
8 data bits
No parity
1 stop bit
No flow control
User EXEC
Privileged EXEC
Global configuration
Interface configuration
Router configuration
Line configuration
Note Throughout the examples in this guide, there are steps for verifying your router configuration
by using different Cisco IOS commands. If you plan to use these verification steps, you must
understand how to change from one command mode to another, as summarized in Table 2-2.
Table 2-2 lists the command modes that are used in this guide, how to access each mode, the prompt
you see in that mode, and how to exit that mode. The examples in the table use the host name 1700.
2-2
Table 2-2
Mode
Access Method
Prompt
Exit Method
User EXEC
1700>
Privileged
EXEC
1700#
Global
configuration
1700(config)#
To enter interface
configuration mode, enter
the interface command.
Interface
configuration
Router
configuration
Line
configuration
1700(config-if)#
To exit to global
configuration mode, enter
the end command.
To exit to privileged EXEC
mode, enter the exit
command, or press Ctrl-Z.
1700(config-router)#
1700(config-line)#
To enter subinterface
configuration mode, specify
a subinterface with the
interface command.
ISDN interface.
To exit to global
configuration mode, enter
the end command.
1. For any of the modes, you can see a comprehensive list of the available commands by entering a question mark (?) at the prompt.
Getting Help
Getting Help
You can use the question mark (?) and arrow keys to help you enter commands. Here are some ways to get help
while in any command mode:
1 Enter a question mark to list the commands that are available in the current mode. You can restrict the list to
all commands starting with a specific letter by entering that letter, followed by a question mark (no space):
Router (config-if)# s?
shutdown
snapshot
snmp
standby
2 Enter a command, a space, and a question mark to list the available keywords (and a short definition of the
3 Enter a command, a keyword, a space, and a question mark to list the range of values (and a short definition of
4 Enter a few known characters to have the router complete the command. In this example, the command is show
hosts:
Router> sh ho
Default domain is not set
Name/address lookup uses domain service
Name servers are 255.255.255.25
5 To redisplay a command you previously entered, press the up arrow key. You can continue to press the up arrow
key for more commands. The commands are shown in the reverse order that they were entered.
You must enter an enable secret password to gain access to privileged EXEC mode commands.
For maximum security, the passwords should be different. If you enter the same password for both
during the setup process, your router accepts the passwords, but warns you that they should be
different.
An enable secret password can contain from 1 to 25 uppercase and lowercase alphanumeric
characters. An enable password can contain any number of uppercase and lowercase alphanumeric
characters. 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.
2-4
If you lose or forget your enable password, refer to the Troubleshooting appendix in the
Cisco 1700 Router Hardware Installation Guide that came with your router.
After your router boots up, answer no when the following question displays:
Would you like to enter the initial configuration dialog [yes]: no
Step 2
If you have configured your router with an enable password, enter the enable command,
and enter the enable password when you are prompted for it.
The enable password does not show on the screen when you enter it. This example shows
how to enter configuration mode on a Cisco 1700 router:
1603> enable
Password: <enable_password>
Router#
Enable mode is indicated by the # in the prompt. You can now make changes to your
router configuration.
Step 3
Enter the configure terminal command to enter configuration mode, indicated by the
(config)# in the prompt:
Router# configure terminal
Router (config)#
Using Commands
This section provides some tips about entering Cisco IOS commands at the command-line
interface (CLI).
Abbreviating Commands
You only have to enter enough characters for the router to recognize the command as unique. This
example show how to enter the show configuration command:
1603# show conf
Using 385 out of 7506 bytes
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
.
.
.
Error Message
% Ambiguous command:
"show con"
Meaning
% Incomplete command.
Undoing Commands
If you want to disable a feature or undo a command you entered, you can enter the keyword no before
most commands, for example, no ip routing.
It might take a minute or two to save the configuration to NVRAM. After the configuration has been
saved, the following appears:
[OK]
Router#
2-6
unusable. For this reason, use debug commands only to troubleshoot specific problems.The best time to use
debug commands is during periods of low network traffic and few users to decrease the likelihood that the
debug command processing overhead affects network users.
Table 2-4
What
Information
Additional documentation
You can find additional information and documentation about the debug commands in the Debug
Command Reference document on the Cisco IOS software documentation CD-ROM that came with your
router.
If you are not sure where to find this document on the CD-ROM, use the Search function in the
Verity Mosaic browser that comes with the CD-ROM.
Disabling debugging
Telnet sessions
If you want to use debug commands during a Telnet session with your router, you must first enter the
terminal monitor command.
Where to Go Next
Now that you have learned some Cisco IOS software basics, you can begin to configure your router.
Remember that
You can use the question mark (?) and arrow keys to help you enter commands.
If you want to disable a feature, enter the keyword no before the command, for example, no ip
routing.
You need to save your configuration changes to NVRAM so that they are not lost if there is a
system reload or power outage.
Each command mode restricts you to a set of commands. If you are having difficulty entering a
command, check the prompt, and then enter the question mark (?) for a list of available
commands. You might be in the wrong command mode or using the wrong syntax.
Proceed to any one of the configuration chapters to begin configuring your router.
Where to Go Next
2-8