Examples of Commands
Prompt Name ofMode | Used to Reach This Mode
hostname(config)# configure terminal
hostname(config-line)# line console 0 line vty 0.15
hostname(config-if)# interface fastethernet 0/0
hostame(config-router)# router rip router eigrp 100Command Description Command Syntax
Enter global configuration mode. Switch# configure terminal
Configure a name for the device. Switch (config) # hostname SI
Enter the interface configuration mode for the S1 (config) # interface vlan 1
VLAN 1 interface.
Configure the interface IP address. S1 (config—if) # ip address
172,17.99.11 255.255.2550
Enable the interface. Sl (config-if) # ne shutdown
Return to global configuration mode. S1 (config-if) # exit
Enter the interface to assign the VLAN. Sl (config) # interface sastethernet
06
Define the VLAN membership mode forthe | S1 (config—if) # switchport mode!
port. access
Assign the port to a VLAN. Sl (config-if) # switchport
access vlan 123
Configure the interface duplex mode to enable | $1 (config-if) # duplex auto
AUTO duplex configuration.
Configure the interface speed and enable AUTO] S51 (config—if) # speed auto
speed configuration.
Enable auto-MDIX on the interface. Sl (config-if) # mdix auto
Return to global configuration mode. Si (config-if) # exitEnable auto-MDLX on the interface.
S1 (config-if) # mdix auto
Retum to global configuration mode.
S1 (config-if) # exit
Configure the default gateway on the switch.
Configure the HTTP server for authentication
using the enable password, which is the default
method of HTTP server user authentication.
Si (config) # ip default-gateway
I72.17,50.1
S1 (config) # ip hap
authentication enable
Enable the HTTP server.
S1 (config) # ip hip server
Switch from global configuration mode to line
configuration mode for console 0.
S1 (config) # tine consoie 0
Set cisco as the password for the console 0 line
on the switch.
Set the console line to require the password to be
entered before access is granted.
51 (config-line) # password
cisco
Si (config-line}# login
Return to global configuration mode.
51 (config-if) # exitSwitch from global configuration mode to line | S1 (config) # line vty 015
configuration mode for vty terminals 0-15.
Set cisco as the password for the vty lines on the] S1 (config-line) # password
switch. elsco
Set the vty line to require the password tobe == | S1 (config-line) # login
entered before access is granted.
Retum to global configuration mode, $1 (config-line) # exit
Configure cisco as the enable password to enter a (config) # enable password
Configure class as the enable secret password to | $1 (config) # enable secret class
enter privileged EXEC mode. This password
overrides enable password.
Encrypt all the system passwords that are stored | 1 (config) # service password-
in plaintext.Encrypt all the system passwords that are stored | $1 (config) # service password-
in plaintext. encryption
Configure a login banner. The # character $1 (config) # banner login
delimits the beginning and end of the banner. | #4uthorized Personnel Only!#
Configure a message of the day (MOTD) login | S1 (config) # banner motd #Device
banner. The # character delimits the beginning | maintenance will be occurring on
and end of the banner. Friday!#
Return to privileged EXEC mode. S1 (config) # end
Save the running configuration to the switch —_| $1# copy running-config startup-
startup configuration. configCisco Router Configuration Commands
pilaccbtat ece
Router(config)#line con 0
Router(config-line)#login
Router(config-line)}#password cisco
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line}#password cisco
Router(config)#line con 0
Router(config-line)}#exec-timeout 0 0
Router(config)#enable password cisco
Router(config)#enable secret peter
Router(config-if}#no shutdown
Router(config-if}##shutdown
Router(config-ifjclock rate 64000
Router(config-iffbandwidth 64
Note that the zeroes are not missing
Router(config-if}#ip addr 10.1.1.1
255.255.255.0
Router(config)#router rip
Router(config-router}#network 172.16.0.0
Router(config)#no router rip
Router(config)#router igrp 200
Router(config-router}#network 172.16.0.0
Router(config)#no router igrp 200
Router(config}#ip route 172.16.1.0
255.255.255.0 172.16.2.15
Router(config)#no cdp run
Router(config)#edp run
Router(config-if}#no cdp enable
Set a console password to cisco
Set a telnet password
Stop console timing out
Set the enable password to cisco
Set the enable secret password to
peter.This password overrides the
enable password and is encypted
within the config file
Enable an interface
To disable an interface
Set the clock rate for a router with
a DCE cable to 64K
Set a logical bandwidth
assignment of 64K to the serial
interface
To add an IP address toa
interface
To enable RIP on all 172.16.x.y
interfaces
Disable RIP
To enable IRGP with a AS of 200,
to all interfaces
Disable IGRP
Static route the remote network is
172.16.1.0, with a mask of
255,255.255.0, the next hap is.
172.16.2.1, at a cost of 5 hops
Disable CDP for the whole router
Enable CDP for he whole router
Disable CDP on an interface
ficenrn Daiitar Chayws CAmmanacCisco Router Show Commands
becebiziceiie _teeienest |
show version
show running-config
show startup-config
show flash
show log
show interface e0
show ip interfaces brief
show controllers 0 (note the space between
the 's’ and the ‘0)
show cdp neighbor
* show cdp entry
show ip protocols
show ip route
show access-lists
show isdn status
show frame-relay pvc
show frame-relay Imi
show frame-relay map
View version information
View current configuration (DRAM)
View startup configuration
(NVRAM)
Show IOS file and flash space
Shows all logs that the router has
in its memory
View the interface status of
interface e0
Overview all interfaces on the
router
View type of serial cable on sO
Display a summary of connected
cdp devices
Display detailed information on all
devices
Display current routing protocols
Display IP routing table
Display access lists, this includes
the number of displayed matches
Check the router can see the ISDN
switch
Check a Frame Relay PVC
connections
show Imi traffic stats
Display the frame inverse ARP table
Cisco Router Basic Operations
baeailiidd tater |
Enter privileged mode
disable
Logout or exit or quit
and and 6 then x>
TAB
Enable
Return to user made from
privileged
Exit Router
Recall last command
Recall next command
Suspend or abort
Refresh screen output
Compleat Command
Cisco Router Copy Commands
Cisco Command Dy
copy running-config startup-config
copy startup-config running-config
copy runing-config tftp
copy tftp runing-config
copy flash tftp
copy tftp flash
Save the current configuration from
DRAM to NVRAM
Merge NVRAM configuration to
DRAM
Copy DRAM configuration to a TFTP
server
Merge TFTP configuration with
current router configuration held in
DRAM
Backup the lOS onto a TFTP server
Upgrade the router lOS fram a
TFTP serverCisco Router Debug Commands
debug ip rip Enable debug for RIP
debug ip igrp events Enable summary IGRP debug
information
debug ip igrp transactions Enable detailed IGRP debug
information
debug ipx routing activity Debug IPX RIP
debug IPX SAP Debug IPX SAP
debug ppp authentication Enable debug for CHAP or PAP
no debug allundebug all Switch all debugging offeed
ee eee
eer a eC Eee
eed RN
Rear
ey
en
eer eT
peu eee
Revere
eee Pere)
Eee erry
ous
shunner
Beers
ere,
ee eee
ne
eee
nee
+ iproute.
Peerssof eee Faeyr mnNOO FIV
Coton a CE
ae eure
Poe)
Span aaa
Pre rated
Cee
ree
eee mreCer or ewer)
i Reena)
repo
co
prererer sty
acti
ca
ans
ee ee
og
RereerererY
Earn
eee
Cr
Loe a ag eT Foe
Ces eee eer
cing eer
prone pere)
fener)
eee ier]
pei eroe pees
Sd
Cee
Peery
cere
ewrweee
Sed
Saree ener er Pore]
Cree
Perens
eee eres
Seip reg
ao
een
viper
ti
aos
Sseee
Ree ee ec TT
retary ee
Se Ee
Se
od ere
peer]
ernie sans
poorer ree
ee er eee at ae
Pe eon Pee
peste reer)
ee
Se
oe eer)
Sees pempners)
eae ee
eae
Saree eee 8 pe
ee eee ere CTU
eee
eee ae ore