07.1.1. Multi-Area OSPF Lab v2
07.1.1. Multi-Area OSPF Lab v2
07.1.1. Multi-Area OSPF Lab v2
Area 0 Area 1
nw_R1 nw_R2 nw_R3
.1 12.12.12.0 /24 .2 .2 23.23.23.0 /24 .3
R1 Fa0/0 Fa0/1 R2 Fa0/0 Fa0/1 R3
Loop0: 1.1.1.1/32 Loop0: 2.2.2.2/32 .1 Loop0: 3.3.3.3/32 .1
.1
Fa1/1 Fa1/1
Fa1/1
10.0.0.0/24 172.16.0.0/24 192.168.0.0/24
Task
Configure OSPF in Area0 and Area1 (on R1, R2 and R3) so that PC1 from Area0 could Ping PC2 and PC3 in
Area1 successfully. The Loopbacks of all Routers should also be reachable from every other Router.
Related Info:
‐ OSPF Process ID: 1
‐ OSPF Areas: Area0, Area1
‐ All Loopback IP’s, Interface IP’s are mentioned in this topology Diagram
‐ PC IP/Gateway, Router Interface IP’s and Loopback IP’s are already configured (so that you
can focus on the OSPF configuration)
‐ PC2 should be configured in Area0
1 www.networkwalks.com [email protected]
Solution
Step1: Enable OSPF Protocol on all Routers. Assign Process ID 1 to this new OSPF instance.
R1(config)#router ospf 1
R2(config)#router ospf 1
R3(config)#router ospf 1
Step2: Enable OSPF on Router Interfaces connected to each other in relevant Areas:
R1(config-router)#network 12.12.12.0 0.0.0.255 area 0
R2(config-router)#network 12.12.12.0 0.0.0.255 area 0
R2(config-router)#network 23.23.23.0 0.0.0.255 area 1
R3(config-router)#network 23.23.23.0 0.0.0.255 area 1
2 www.networkwalks.com [email protected]
Verification
✓ Verification1: Verify the connectivity and routes using Show commands on R1, R2 and R3 as in
below:
R1#show ip route
R2#show ip route
R3#show ip route
It shows that our configuration is successful because both routers are exchanging their routes with each
other now. R1 has routes to reach R2’s/R3’s subnets(PC2/PC3) and similar for R2 and R3 as in below:
✓ Verification2: Verify the connectivity and routes using Ping from PC1 to PC2 and from PC2 to PC1:
PC1#ping 172.16.0.2
PC1#ping 192.168.0.2
PC2#ping 10.0.0.2
PC2#ping 192.168.0.2
PC3#ping 10.0.0.2
PC3#ping 172.16.0.2
3 www.networkwalks.com [email protected]
Ping works successfully. Some ping results are shown as in below. It means that our Configuration has
been successful:
✓ Verification3: Verify the connectivity between Router Loopback interfaces using Ping from each
router to every other router:
R1#ping 2.2.2.2
R1#ping 3.3.3.3
R2#ping 1.1.1.1
R2#ping 3.3.3.3
R3#ping 1.1.1.1
R3#ping 2.2.2.2
4 www.networkwalks.com [email protected]
Complete Solution
Below is complete solution containing all commands from scratch if you want to simulate
yourself on any other platform like GNS3, EVE-NG, VIRL, …
nw_R3 (Router 3)
hostname nw_R3
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/1
ip address 23.23.23.3 255.255.255.0
no shutdown
!
interface FastEthernet1/1
ip address 192.168.0.1 255.255.255.0
no shutdown
!
router ospf 1
network 23.23.23.0 0.0.0.255 area 1
network 192.168.0.0 0.0.0.255 area 1
network 3.3.3.3 0.0.0.0 area 1
5 www.networkwalks.com [email protected]