Sie sind auf Seite 1von 6

OSPF Lab2 – Multi-area OSPF (ATech)

Topology Diagram
ATech Base Topology 2

Area 0 Area 1
atech_R1 atech_R2 atech_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
.1 .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
Task: Configure OSPF in Area0 and Area1 (on R1, R2 and R3) so that PC1 from Area1 could Ping PC2 and PC3 in
Area1 successfully

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

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

facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: waqas@aurumme.com
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

facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: waqas@aurumme.com
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

Ping works successfully. Some ping results are shown as in below. It means that our Configuration has been successful:

facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: waqas@aurumme.com
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)

facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: waqas@aurumme.com
Complete Solution

Below is complete solution containing all commands from scratch if you want to simulate yourself:

Complete Solution
Atech_R1 Atech_R2
atech_R1(config)#hostname atech_R1 atech_R2(config)#hostname atech_R2

atech_R1(config)#interface Loopback0 atech_R2(config)#interface Loopback0


atech_R1(config-if)#ip address 1.1.1.1 255.255.255.255 atech_R2(config-if)#ip address 2.2.2.2 255.255.255.255

atech_R1(config)#interface FastEthernet0/0 atech_R2(config)#interface FastEthernet0/0


atech_R1(config-if)#ip address 12.12.12.1 255.255.255.0 atech_R2(config-if)#ip address 23.23.23.2 255.255.255.0
atech_R1(config-if)#no shutdown atech_R2(config-if)#no shutdown

atech_R2(config)#interface FastEthernet0/1
atech_R2(config-if)#ip address 12.12.12.2 255.255.255.0
atech_R2(config-if)#no shutdown

atech_R1(config)#interface FastEthernet1/1 atech_R2(config)#interface FastEthernet1/1


atech_R1(config-if)#ip address 10.0.0.1 255.255.255.0 atech_R2(config-if)# ip address 172.16.0.1 255.255.255.0
atech_R1(config-if)#no shutdown atech_R2(config-if)#no shutdown

atech_R1(config)#router ospf 1 R2(config)#router ospf 1


atech_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
atech_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
R2(config-router)#network 23.23.23.0 0.0.0.255 area 1

Atech_R3
atech_R1(config)#hostname atech_R1

atech_R1(config)#interface Loopback0
atech_R1(config-if)#ip address 3.3.3.3 255.255.255.255

atech_R1(config)#interface FastEthernet0/1
atech_R1(config-if)#ip address 23.23.23.3 255.255.255.0
atech_R1(config-if)#no shutdown

atech_R1(config)#interface FastEthernet1/1
atech_R1(config-if)#ip address 192.168.0.1 255.255.255.0
atech_R1(config-if)#no shutdown

atech_R1(config)#router ospf 1
atech_R1(config-router)# network 23.23.23.0 0.0.0.255 area 1
atech_R1(config-router)#network 192.168.0.0 0.0.0.255 area 1

Relevant Files

Packet Tracer File:


https://www.facebook.com/groups/ATechIT/252189065339285/
https://www.facebook.com/groups/ATechIT/252189378672587/

02. OSPF Lab2 - ATech ( Waqas Karim ).zip

facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: waqas@aurumme.com
GNS3 File:
https://www.facebook.com/groups/ATechIT/252189065339285/
https://www.facebook.com/groups/ATechIT/252189378672587/

facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: waqas@aurumme.com

Das könnte Ihnen auch gefallen