You are on page 1of 3

Router >

Router > enable


Router # sh version
Router # sh flash (show memory status)
Router # sh run (show configuration)
Router # sh interface
Router # sh protocol
Router # config
Router (config) #
Router # sh interface se0/0/0
Router (config) # do show interface se0/0/0
Router (config) # interface se0/0/0
Router (config-if) # ip address 192.168.1.0 255.255.255.0
Router (config-if) # clock rate 9600
Router (config-if) # no shut
Router (config-if) # exit
Router (config) # interface fa0/0
Router (config-if) # ip address 192.168.30.1 255.255.255.0
Router (config-if) # no shut
Router (config-if) # exit
Router # hostname kyn
For dynamic ip
Kyn (config) # ipdhcp ?
Kyn (config) # ipdhco pool hcl
Kyn (dhcp-config)# network 192.168.30.0 255.255.255.0
Kyn (dhcp-config) # default-router ?
Kyn (dhcp-config) # default- router 192.168.30.1

For excluded IP from network


Kyn (dhcp-config) #exit
Kyn (config) # ipdhcp excluded address 192.168.30.3 192.168.30.5
Kyn (config) # wr (for saving)

STATIC ROUTING
Router > enable
Router # config t
Router (config) # hostname kyn
Kyn (config) # interface se0/0/0
Kyn (config-if) # ip address 10.33.22.1 255.255.255.0
Kyn (config-if) # interface Fa0/0
Kyn (config-if) # ip address 10.33.21.1 255.255.255.0
Kyn (config-if) #interface se0/0/0
Kyn (config-if) # clockrate 9600
Kyn (config-if) # no shut
Kyn (config-if) # interface fa0/0
Kyn (config-if) # no shut
Kyn (config-if) # exit
Kyn # wr
Kyn (config-if) # ip route 10.33.23.0 255.255.255.0 10.33.22.2
Kyn (config-if) # ip route 10.33.24.0 255.255.255.0 10.33.22.2
Kyn (config-if) # ip route 10.33.25.0 255.255.255.0 10.33.22.2
Kyn (config-if) # ip route (indirect n/w ip add) (subnet mask) (next hop add)
Kyn # config t
Kyn (config) # line cosole 0
Kyn (config-line) # password cisco
Kyn (config-line) # login
Kyn # wr
Kyn # sh run

Delete password
Kyn # config t
Kyn (config) # line console 0
Kyn (config-line) # no password cisco

Enable mode
Kyn (config) # enable password cisco

Secret password
Kyn (config) # enable secret cisco

For telnet
Kyn (config) # line vty 0 4
Kyn (config) # password cisco
Kyn (config) # login
kyn # wr
kyn (config) # service password encryption
kyn (config) # username cicso password cisco
kyn (config) # line vty 0 4
kyn (config-line) # login local

RIP ROUTING PROTOCOL


Kyn # config t
Kyn (config) # router rip
Kyn (config- router) # network (direct connected network)
Kyn (config- router) # network 10.33.21.0
Kyn (config- router) # network 10.33.22.0
Kyn # wr

Wild card mask is reverse of subnet mask i.e


255.255.255.0 (subnet) 0.0.0.255 (wild card mask)

OSPF
only used for Autonomous system
kyn (config) # router ospf 100
kyn (config-router) # network 10.33.21.0 0.0.255 area 0
kyn (config-router) # network 10.33.22.0 0.0.255 area o
kyn (config-router) # network (connected network ) wild card mask ) area 0
kyn # wr
DEFAULT ROUTING
Kyn # config t
Kyn (config) # ip route 0.0.0.0 0.0.0.0 (next hop n/w add)
Kyn (config) # ip route 0.0.0.0 0.0.0.0 10.33.22.0
Kyn # wr

EIGRP- ENHANCED INTERIOR GATEWAY ROUTING PROTOCOL


Kyn # config t
Kyn (config ) # router eigrp (AS no) i.e (1-65535) AS= Autonomous system
Kyn (config-router ) #network (directly connected n/w add)
Kyn (config ) # router eigrp 1
Kyn (config-router ) # network 10.33.21.0
Kyn (config-router ) # network 10.33.23.0
Kyn (config-router ) # no auto-summary
Kyn # wr

You might also like