esr(config-ospf)# area 1.1.1.1
esr(config-ospf-area)# enable
esr(config-ospf-area)# exit
Enable advertising of the routing information from RIP:
esr(config-ospf)# redistribute rip
Enable OSFP process:
esr(config-ospf)# enable
esr(config-ospf)# exit
Neighbouring routers are connected to gi1/0/5 and gi1/0/15 interfaces. To establish the neighbouring with
other routers, map them to OSPF process and the area. Next, enable OSPF routing for the interface.
esr(config)# interface gigabitethernet 1/0/5
esr(config-if-gi)# ip ospf instance 10
esr(config-if-gi)# ip ospf area 1.1.1.1
esr(config-if-gi)# ip ospf
esr(config-if-gi)# exit
esr(config)# interface gigabitethernet 1/0/15
esr(config-if-gi)# ip ospf instance 10
esr(config-if-gi)# ip ospf area 1.1.1.1
esr(config-if-gi)# ip ospf
esr(config-if-gi)# exit
esr(config)# exit
11.4.3 OSPF stub area configuration example
Objective:
Change 1.1.1.1 area type, area should be stub. Stub router should advertise routes received via RIP.
Solution:
Pre-configure OSPF protocol and IP addresses on interfaces according to the network structure shown in
figure.
Change area type to stub. For each router from 1.1.1.1 area, execute the following command in the
configuration mode:
esr(config-ospf-area)# area-type stub