IOS Commands
IOS Commands
IOS Commands
Router modes
Modes Description
Router> User mode
Router# Privileged mode
Router(config)# Global configuration mode
Router(config-if)# Interface mode
Router#ping 172.16.10.2
Interface Puts you in interface configuration mode Router(config)#int fa 0/0
Fastethernet 0/0 for a fastethernet port
Interface Serial 1 Puts you in configuration mode for Router(config)#int serial 1
interface serial 1 and can be used for
show commands
Ip Address Sets an IP address on an interface Router(config)#ip address
172.16.10.2 255.255.255.0
Bandwidth Sets the bandwidth on a serial interface Router(config-if)#bandwidth 64
Copy Run Start Short for copy running-config, startup- Router#copy run start
config. Places a configuration into
NVRAM
Erase Startup Deletes the startup-config Router#erase startup-config
Show Controllers Show the DTE or DCE status of an Router#sh controllers s 0
S0 interface
Show History Shows you the last 10 commands Router#sh history
entered by default
Show Interface S Shows the statistics of interface serial 0 Router#sh int s 0
0
Show Run Short for show running-config. Shows Router#sh run
the configuration currently running on
the router
Show Start Short for show startup-config. Shows Router#sh start
the backup configuration stored in
NVRAM
Show Terminal Shows you your configured history size Router#sh terminal
Show Version Shows you statistic of the router Router#sh ver
Shutdown Puts an interface in administratively- Router(config-if)#shutdown
down mode
IP Routing Commands
Example: Router(config)#ip
host router2 172.16.10.2
No ip host Removes a hostname from a host table Router(config)#no ip host
router2 172.16.10.2
Show cdp Displays the cdp timer and holdtime Router#sh cdp
frequencies
Show cdp Same as show cdp neighbor detail, but does not Router#sh cdp entry
entry work on a 1900 switch
Show cdp Shows the individual interfaces enabled with Router#sh cdp interface
interface cdp
Show cdp Shows the directly connected neighbors and the Router#sh cdp nei
neighbor details about them
Show cdp Shows the ip address and IOS version and type, Router#sh cdp neighbor detail
neighbor detail and includes all of the information from the
show cdp neighbor command
Show cdp Shows the cdp packets sent and received on a Router#sh cdp traffic
traffic device and any errors
Show flash Shows the files in flash memory Router#sh flash
Show hosts Shows the contents of the host table Router#sh hosts
Show sessions Shows your connections via telnet to remote Router#sh sessions
device