OSPF-Multi Area

R1 Configuration

R1(config)#router ospf 1
R1(config-router)#network 192.168.12.0 0.0.0.255 area 1

R2 Configuration

R2(config)#router ospf 1
R2(config-router)#network 192.168.12.0 0.0.0.255 area 1
R2(config-router)#network 192.168.23.0 0.0.0.255 area 1

R3 Configuration

R3(config-if)#router ospf 1
R3(config-router)#network 192.168.23.0 0.0.0.255 area 1
R3(config-router)#network 192.168.34.0 0.0.0.255 area 0

R4 Configuration

R4(config-if)#router ospf 1
R4(config-router)#network 192.168.45.0 0.0.0.255 area 2
R4(config-router)#network 192.168.34.0 0.0.0.255 area 0

R5 Configuration

R5(config-if)#router ospf 1
R5(config-router)#network 192.168.45.0 0.0.0.255 area 2
R5(config-router)#network 192.168.56.0 0.0.0.255 area 2

R6 Configuration

R6(config-if)#router ospf 1
R6(config-router)#network 192.168.56.0 0.0.0.255 area 2


 

Verification on R1

R1#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

C 192.168.12.0/24 is directly connected, Serial1/0
O IA 192.168.45.0/24 [110/256] via 192.168.12.2, 00:00:30, Serial1/0
O IA 192.168.56.0/24 [110/320] via 192.168.12.2, 00:00:30, Serial1/0
O 192.168.23.0/24 [110/128] via 192.168.12.2, 00:07:23, Serial1/0
O IA 192.168.34.0/24 [110/192] via 192.168.12.2, 00:00:52, Serial1/0
R1#

R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
Serial1/0 192.168.12.1 YES NVRAM up up
Serial1/1 unassigned YES NVRAM administratively down down
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down
R1#

R1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
192.168.23.2 0 FULL/ – 00:00:33 192.168.12.2 Serial1/0

R1#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se1/0 1 1 192.168.12.1/24 64 P2P 1/1
R1#

Verification on R2

R2#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

C 192.168.12.0/24 is directly connected, Serial1/0
O IA 192.168.45.0/24 [110/192] via 192.168.23.3, 00:03:50, Serial1/1
O IA 192.168.56.0/24 [110/256] via 192.168.23.3, 00:03:50, Serial1/1
C 192.168.23.0/24 is directly connected, Serial1/1
O IA 192.168.34.0/24 [110/128] via 192.168.23.3, 00:04:12, Serial1/1
R2#
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
Serial1/0 192.168.12.2 YES NVRAM up up
Serial1/1 192.168.23.2 YES NVRAM up up
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down

R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
192.168.34.3 0 FULL/ – 00:00:33 192.168.23.3 Serial1/1
192.168.12.1 0 FULL/ – 00:00:39 192.168.12.1 Serial1/0

R2#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se1/1 1 1 192.168.23.2/24 64 P2P 1/1
Se1/0 1 1 192.168.12.2/24 64 P2P 1/1
R2#

Verification on R3

R3#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

O 192.168.12.0/24 [110/128] via 192.168.23.2, 00:07:59, Serial1/1
O IA 192.168.45.0/24 [110/128] via 192.168.34.4, 00:07:31, Serial1/0
O IA 192.168.56.0/24 [110/192] via 192.168.34.4, 00:07:31, Serial1/0
C 192.168.23.0/24 is directly connected, Serial1/1
C 192.168.34.0/24 is directly connected, Serial1/0

R3#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
Serial1/0 192.168.34.3 YES NVRAM up up
Serial1/1 192.168.23.3 YES NVRAM up up
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down

R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
192.168.45.4 0 FULL/ – 00:00:36 192.168.34.4 Serial1/0
192.168.23.2 0 FULL/ – 00:00:36 192.168.23.2 Serial1/1
R3#

R3#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se1/0 1 0 192.168.34.3/24 64 P2P 1/1
Se1/1 1 1 192.168.23.3/24 64 P2P 1/1

Verification on R4

Router>en
Router#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

O IA 192.168.12.0/24 [110/192] via 192.168.34.3, 00:46:11, Serial1/0
C 192.168.45.0/24 is directly connected, Serial1/1
O 192.168.56.0/24 [110/128] via 192.168.45.5, 00:46:16, Serial1/1
O IA 192.168.23.0/24 [110/128] via 192.168.34.3, 00:46:11, Serial1/0
C 192.168.34.0/24 is directly connected, Serial1/0

R4#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
192.168.34.3 0 FULL/ – 00:00:35 192.168.34.3 Serial1/0
192.168.56.5 0 FULL/ – 00:00:31 192.168.45.5 Serial1/1
R4#

R4#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial1/0 192.168.34.4 YES manual up up
Serial1/1 192.168.45.4 YES manual up up
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down

R4#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se1/0 1 0 192.168.34.4/24 64 P2P 1/1
Se1/1 1 2 192.168.45.4/24 64 P2P 1/1

Verification on R5

R5#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

O IA 192.168.12.0/24 [110/256] via 192.168.45.4, 00:52:15, Serial1/1
C 192.168.45.0/24 is directly connected, Serial1/1
C 192.168.56.0/24 is directly connected, Serial1/0
O IA 192.168.23.0/24 [110/192] via 192.168.45.4, 00:52:15, Serial1/1
O IA 192.168.34.0/24 [110/128] via 192.168.45.4, 00:52:15, Serial1/1

R5#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
Serial1/0 192.168.56.5 YES NVRAM up up
Serial1/1 192.168.45.5 YES NVRAM up up
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down
R5#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
192.168.56.6 0 FULL/ – 00:00:36 192.168.56.6 Serial1/0
192.168.45.4 0 FULL/ – 00:00:39 192.168.45.4 Serial1/1
R5#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se1/0 1 2 192.168.56.5/24 64 P2P 1/1
Se1/1 1 2 192.168.45.5/24 64 P2P 1/1
R5#

Verification on R6

R6#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

O IA 192.168.12.0/24 [110/320] via 192.168.56.5, 00:01:51, Serial1/0
O 192.168.45.0/24 [110/128] via 192.168.56.5, 00:01:51, Serial1/0
C 192.168.56.0/24 is directly connected, Serial1/0
O IA 192.168.23.0/24 [110/256] via 192.168.56.5, 00:01:51, Serial1/0
O IA 192.168.34.0/24 [110/192] via 192.168.56.5, 00:01:51, Serial1/0

R6#ping 192.168.12.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 164/200/256 ms

R6#ping 192.168.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/158/200 ms

R6#ping 192.168.23.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.23.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 104/164/208 ms

R6#ping 192.168.23.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.23.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 104/121/156 ms

R6#ping 192.168.34.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.34.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/78/104 ms

R6#ping 192.168.34.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.34.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 104/121/136 ms

R6#ping 192.168.45.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.45.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/86/100 ms

R6#ping 192.168.45.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.45.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/43/72 ms

R6#ping 192.168.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.56.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/44/64 ms
R6#