|
| |
|
Cisco Router CLl Commands
page 1 of 2
To understand the CISCO
Router CLI commands, basic usage and configuration
of cisco routers you have to understand the command line interface(cli) of
the cisco ios. It is through the CLI, every instructions or commands are
given to the router(it is like the command prompt in windows or shell prompt
in
linux).
This means that you need to learn how to configure the Cisco IOS
operating system which runs on routers, switches and other network devices.
Acquiring this hands-on experience with the Cisco IOS CLI will help you
enormously in your network administration tasks or even for certification
exams.
The command line interface(cli) has the following modes or levels of access
for the execution of the router commands.
1. User execution mode
2. Privilege execution mode
3. Global configuration mode
3.1 interface configuration mode
3.2 sub-interface configuration mode
3.3 line configuration mode
3.4 router configuration mode
1. User execution mode
a. to view the statistics of the router
b. we cannot do any modifications to the configuration in this mode.
Examples :
To view help type the command as follows in the router
command prompt :
router>?
To display commands starting with letter 's'
router>s?
2. Privilege execution mode
Here changes can be made and will affect the configuration of this router
a. To enter into privilege mode from user mode :
router>enable
then the prompt changes to
router#
b. To quit
router#logout
c. To view various parameters that can be used with the 'show' command :
router# show ?
d. To view the ios version:
router# show version
e. To copy the configuration from dram(temporary memory) to
nvram(permanent memory) :
router# copy running-config startup-config (or)
router# copy run start (or) router# wr
f. To view the content of the running config(dram) :
router# show running-config (or) router# sh run
g. To view the content of the startup config(nvram) :
router# show startup-config (or) router# sh start
h. To view the commands previously typed in the cli (by default 10
entries are shown)
router# show history
i. To change the default history size
router# terminal history size 20
j. To view the history size setting
router# show terminal
k. To view content of flash memory
router# show flash
l. To view the settings of the ethernet port 0
router# show int e0
m. To view the settings of the serial port 0
router# show int s0
n. To view the settings of all interfaces
router# show interfaces
o.To view the settings of all interfaces
router# show ip interface brief <-- to view only
minimal details
|
Here I’m providing some useful keyboard
shortcuts that you can use when configuring a Cisco device via command
line. These shortcuts are sometimes asked in CCNA certification exam
questions.
|
Keyboard Shortcut |
Action |
| Up Arrow |
Particularly useful. It displays your
previous commands. Pressing the up arrow repeatedly will show all
previous commands typed (command history) |
| TAB Key |
Particularly useful. It completes a
partially typed CLI command. E.g if you type “show run”
and press TAB, it will complete the command as “show
running-config“ |
| CTRL+Z |
Takes you back to Privileged EXEC
Mode. E.g if you are in Global Config Mode Router(config)#
and press CTRL+Z it will take you back to Router#
mode |
| CTRL+A |
Places the cursor at the beginning of
a line |
| CTRL+E |
Places the cursor at the end of a
line |
| CTRL+R |
Redisplays the current command line |
| CTRL+W |
Erases a word (behind the cursor) |
| CTRL+U |
Erases an entire line |
The above are the most useful and most frequently used shortcuts.
There are many more but if you learn the ones above is more than
enough.
|
Continued Click Here
|
|