07.1.1. Multi-Area OSPF Lab v2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Multi-area OSPF Lab

Network Walks Academy

Cisco Certifications www.networkwalks.com [email protected]


Multi-area OSPF Configuration Lab
Topology Diagram

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

PC1 PC2 PC3

IP: 10.0.0.2 IP: 172.16.0.2 IP: 192.168.0.2


Gateway: 10.0.0.1 Gateway: 172.16.0.1 Gateway: 192.168.0.1

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

Step3: Enable OSPF on Router Interfaces where PC’s are connected:


R1(config-router)#network 10.0.0.0 0.0.0.255 area 0
R2(config-router)#network 172.16.0.0 0.0.0.255 area 0
R3(config-router)#network 192.168.0.0 0.0.0.255 area 1

Step4: Enable OSPF on Loopback interfaces:


R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0
R3(config-router)#network 3.3.3.3 0.0.0.0 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:

*Note the difference of 172.16.0.0 route seen from R1 and R3 in above.


On R1, it is appearing as Route Type ‘O’ (normal OSPF Route)
On R3, it is appearing as Route type ‘OIA’ (OSPF Inter-Area Route).

✓ 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

Other relevant OSPF Verification/Show Commands:


R1#show ip protocols (check the current OSPF Router ID’s & other detail)
R1#show ip ospf (check the current OSPF Detail and Router ID)
R1#show ip ospf interface (check the current OSPF interfaces on a Router)
R1#show ip ospf neighbor (check the OSPF neighbor’s detail)

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_R1 (Router 1) nw_R2 (Router 2)


hostname nw_R1 hostname nw_R2
! !
interface Loopback0 interface Loopback0
ip address 1.1.1.1 255.255.255.255 ip address 2.2.2.2 255.255.255.255
! !
interface FastEthernet0/0 interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0 ip address 23.23.23.2 255.255.255.0
no shutdown no shutdown
! !
! interface FastEthernet0/1
! ip address 12.12.12.2 255.255.255.0
! no shutdown
! !
interface FastEthernet1/1 interface FastEthernet1/1
ip address 10.0.0.1 255.255.255.0 ip address 172.16.0.1 255.255.255.0
no shutdown no shutdown
! !
router ospf 1 router ospf 1
network 12.12.12.0 0.0.0.255 area 0 network 12.12.12.0 0.0.0.255 area 0
network 10.0.0.0 0.0.0.255 area 0 network 172.16.0.0 0.0.0.255 area 0
network 1.1.1.1 0.0.0.0 area 0 network 23.23.23.0 0.0.0.255 area 1
network 2.2.2.2 0.0.0.0 area 0

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

© All Rights are reserved, Network Walks Academy


Leave your feedback at: [email protected]. Your Technical Questions, comments & suggestions are always Welcomed.
www.networkwalks.com

5 www.networkwalks.com [email protected]

You might also like