Cisco:Routing protocols OSPF

How to setup OSPF routing :

How to view what protocols is running:

show ip protocols

how to kill rip protocols (if exists)

configure terminal
no router rip

How create OSPF protocols

configure terminal
router ospf 1   [ here 1 is the process id, which has to be same to every router in the organization ]
network 192.168.1.1 0.0.0.0 area 0
Or
network 192.168.1.0 0.0.255.255 area 0

How to set default route to go to internet
From main router :

configure terminal
router ospf 1
default-information originate

How to join Area 0 with Area 1
(Ip of Area 1 is :172.30.0.0-172.30.0.7 , Summary route: 172.30.0.0/21, Wild card mask for ospf 0.0.7.255)

configure terminal
router ospf 1
network 172.30.0.0 0.0.7.255 area 1

How to summarize Are 1 Network before adding to Area 0(How to create range) :

configure terminal
router ospf 1
area 1 range 172.30.0.0 255.255.248.0

How to debug ospf relation

debug ip ospf adj
clear ip ospf process

Leave a Reply