Basic Command
|
|
All
Command
|
Router
> ?
|
To
get to Privileged Mode
|
Router
> enable
|
To
get back to User Mode
|
Router
# disable
|
To
set the command buffer size
|
Router
> terminal history size
|
To
disable advanced editing features
|
Router
> terminal no editing
|
To
show the command buffer
|
Router
> show history
|
Enter
global configuration mode
|
Router
# config t
|
View
IOS version
|
Router
# show version
|
Display
interfaces on router and their status
|
Router
# show interface
|
Check
interface status
|
Router
# show ip interface brief
|
Display
ip protocol info
|
Router
# show ip protocol
|
Display
which protocols are configured on the router
|
Router
# show protocol
|
View
IOS version, size of IOS, and free space in FLASH
|
Router
# show flash
|
View
current configuration file (RAM)
|
Router
# show running-config
|
View
saved configuration file (NVRAM)
|
Router
# show startup-config
|
View
CPU utilization
|
Router
# show processes cpu
|
View
info about programs in RAM
|
Router
# show processes
|
Reboot
the router and reload the startup config from NVRAM
|
Router
# reload
|
Disable
IP routing on a router (enabled by default)
|
Router(config)
# no ip routing
|
Give
the router a hostname
|
Router(config)#
hostname Router1
|
To move
to the beginning of the command line
|
Ctrl+A
|
To
move to the end of the command line
|
Ctrl+E
|
To
move forward one character
|
Ctrl+F
|
To
move back one character
|
Ctrl+B
|
To
move forward one word
|
Ctrl+W
|
To
erase a line
|
Ctrl+U
|
To
redisplay a line
|
Ctrl+R
|
Ends
configuration mode and returns to privileged mode
|
Router
# Ctrl+Z
|
View
the IP routing table
|
Router
# show ip route
|
View
RIP Debug
|
Router
# debug ip rip
|
View
IGRP Debug
|
Router
# debug ip igrp events
|
Disable
RIP routing
Backup
IOS to file server
|
Router(config)
# no router rip
Router
# copy flash tftp
|
Upgrade
the IOS from the file server
|
Router#copy tftp flash
|
Copy
running config file from RAM to TFTP
|
Router
# copy running-config tftp
|
Copy
startup config file from TFTP to RAM
|
Router
# copy tftp running-config
|
Copy
startup config file from TFTP to NVRAM
|
Router
# copy tftp startup-config
|
Erase
the configuration file in NVRAM [run initial config dialog]
|
Router
# erase startup-config
|
Tell
router which IOS file in Flash to boot from
|
Router(config)#
boot system flash (ios_filename)
|
Tell
router which IOS to request from the TFTP server (fallback)
|
Router(config)
# boot system tftp (ios_filename) tftp_ip_address
|
Tell
router to boot from IOS in ROM
|
Router(config)
# boot rom
|
Passwords
can be encrypted
|
(Router
config) # service password-encryption
|
To
de-encrypt the passwords
|
(Router
config) # no service password-encryption
|