OSPF – Lab 1 (ATech)
Topology Diagram
ATech Reference Topology 1
atech_R1 atech_R2
.1 12.12.12.0 /24 .2
R1 Fa0/0 Fa0/1 R2
Lo: 1.1.1.1/32 Lo: 2.2.2.2/32
10.0.0.0/24 .1 .1 192.168.0.0/24
IP: 10.0.0.2 IP: 192.168.0.2
Gateway: 10.0.0.1 Gateway: 192.168.0.1
Task
Task: Configure OSPF on R1 and R2 so that PC1 and PC2 could Ping each other successfully
Related Info:
‐ OSPF Process ID: 1
‐ OSPF Area: 0
‐ 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)
*This lab is based on Cisco as vendor. For same lab with other vendor equipment, please browse to ATech
Solution
Step1: Enable OSPF Protocol on Router. Assign Process ID 1 to this new OSPF
R1(config)#router ospf 1
Step2: Enable OSPF on Router Interfaces connected to each other:
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
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 192.168.0.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: [email protected]
Verification
✓ Verification1: Verify the connectivity and routes using Show commands on R1 and R2 as in below:
R1#show ip route
R2#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 subnets(PC2) and R2 has routes to R1’s subnets (PC1).
✓ Verification2: Verify the connectivity and routes using Ping from PC1 to PC2 and from PC2 to PC1:
PC1#ping 192.168.0.2
PC2#ping 10.0.0.2
Ping works successfully as in below. It means that our Configuration has been successful:
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: [email protected]
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/1
atech_R1(config-if)#ip address 12.12.12.1 255.255.255.0 atech_R2(config-if)#ip address 12.12.12.2 255.255.255.0
atech_R1(config-if)#no shutdown 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 192.168.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 192.168.0.0 0.0.0.255 area 0
Relevant Files
Packet Tracer File:
https://www.facebook.com/groups/ATechIT/250980652126793/
01. OSPF Lab1 - ATech).zip
GNS3 File:
https://www.facebook.com/groups/ATechIT/250980652126793/
01. OSPF Lab1 - ATech.zip
facebook.com/ATechIT1 Youtube.com/c/ATechIT Linkedin.com/company/ATechIT/ Aurumme.com/ATech Your Feedback, Comments are Welcomed: [email protected]