Cisco Ios Basic Skills
Cisco Ios Basic Skills
Cisco Ios Basic Skills
Using Commands
Saving Configuration Changes
PC Operating System
Software
Windows 3.1
Macintosh
You can use the terminal emulation software 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
standard VT-100 emulation settings so that your PC can communicate with your router:
9600 baud
8 data bits
No parity
1 stop bit
No flow control
These settings should match the default settings of your router. To change the router baud,
data bits, parity, or stop bits settings, you must reconfigure parameters in the ROM monitor.
For more information, refer to Appendix A, ROM Monitor. To change the router flow
control setting, use the flowcontrol line configuration command.
2-2
For information on how to enter global configuration mode so that you can configure you
router, refer to the Entering Global Configuration Mode section later in this chapter.
User EXEC
Privileged EXEC
Global configuration
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 to a mode or enter the next mode. Because
each mode configures different router elements, you might need to enter and exit modes
frequently. You can see a list of available commands for a particular mode by entering a
question mark (?) at the prompt. For a description of each command, including syntax, refer
to the Cisco IOS 12.0 documentation set.
Table 2-2
Mode
Access Method
Prompt
User EXEC
Router>
Exit/Entrance
Method
To exit router session,
enter the logout
command.
Privileged
EXEC
2-4
Router#
To enter global
configuration mode,
enter the configure
command.
To prevent unauthorized
changes to your router
configuration, access to
this mode should be
protected with a
password as described in
Enable Secret and
Enable Passwords later
in this chapter.
Table 2-2
Mode
Access Method
Prompt
Global
configuration
Router
(config)#
Exit/Entrance
Method
To exit to privileged
EXEC mode, enter the
exit or end command,
or press Ctrl-Z.
To enter interface
configuration mode,
enter the interface
command.
Interface
configuration
Router
(config-if)#
To exit to global
configuration mode,
enter the exit
command.
To exit to privileged
EXEC mode, enter the
end command, or
press Ctrl-Z.
To enter subinterface
configuration mode,
specify a subinterface
with the interface
command.
Router
configuration
Router
(configrouter)#
To exit to global
configuration mode,
enter the exit
command.
To exit to privileged
EXEC mode, enter the
end command, or
press Ctrl-Z.
Getting Help
Table 2-2
Mode
Access Method
Prompt
Line
configuration
Router
(configline)#
Exit/Entrance
Method
To exit to global
configuration mode,
enter the exit
command.
To enter privileged
EXEC mode, enter the
end command, or
press Ctrl-Z.
Getting Help
You can use the question mark (?) and arrow keys to help you enter commands.
For a list of available commands at that command mode, enter a question mark:
router> ?
access-enable
access-profile
clear
...
To complete a command, enter a few known characters followed by a question mark (with
no space):
router> s?
* s=show set show slip systat
For a list of command variables, enter the command followed by a space and a question
mark:
router> show ?
clock
Display the system clock
dialer
Dialer parameters and statistics
exception
exception information
...
2-6
To redisplay a command you previously entered, press the up-arrow key. You can continue
to press the up arrow key for more commands.
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.
If you lose or forget your enable password, refer to Appendix E, Recovering a Lost Enable
Password.
Using Commands
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
Step 3
If you have configured your router with an enable password, enter it when you
are prompted.
The enable password does not show on the screen when you enter it. This
example shows how to enter privileged EXEC mode:
Password: <enable_password>
router#
Enable mode is indicated by the # in the prompt. You can now make changes to
your router configuration.
Step 4
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 shows how to enter the show version command:
router # sh v
2-8
Undoing Commands
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.
Error Message
Meaning
% Ambiguous command:
"show con"
% Incomplete command.
Press the Return key to accept the default destination filename startup-config, or enter your
desired destination filename and press the Return key.
It might take a minute or two to save the configuration to NVRAM. After the configuration
has been saved, the following message appears:
Building configuration...
router #
Summary
Now that you have reviewed some Cisco IOS software basics, you can begin to configure
your router. Remember:
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.
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.
Where to Go Next
To begin configuring your router, go to either Chapter 3, Configuring Remote Office to
Corporate Office Networks or Chapter 4, Configuring Small Office to ISP Networks.
2-10