Topology
Step 1 - Basic configuration
R1
hostname R1
int Se0/1/0
ip address 12.1.1.1 255.255.255.252
description **WAN_to_R2**
no shut
int gi0/0/0
ip address 192.168.1.1 255.255.255.0
description **LAN**
no shut
int loopback 1
ip address 1.1.1.1 255.255.255.255
R2
hostname R2
int Se0/1/0
ip address 12.1.1.2 255.255.255.252
description **WAN_to_R1**
no shut
int gi0/0/0
ip address 192.168.2.1 255.255.255.0
description **LAN**
no shut
int loopback 1
ip address 2.2.2.2 255.255.255.255
Step 2 - Configuration of OSPF
<Verifying no OSPF configuration>
R1#
R1#
R1#show run | section ospf
R1#
R1#show ip ospf
R1#
R2#show run | section ospf
R2#
R2#show ip ospf
R2#
<Configuring OSPF>
R1
router ospf 1
router-id 1.1.1.1
network 12.1.1.0 0.0.0.3 area 0
network 192.168.1.0 0.0.0.255 area 0
R2
router ospf 1
router-id 2.2.2.2
network 12.1.1.0 0.0.0.3 area 0
network 192.168.2.0 0.0.0.255 area 0
<Verification Commands>
<Verification 1 # OSPF is running and OSPF RID>
R1#show ip ospf
Routing Process "ospf 1" with ID 1.1.1.1
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm executed 3 times
Area ranges are
Number of LSA 2. Checksum Sum 0x01a195
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
<Verification 2 #Confirm OSPF is enabled on the correct interfaces>
R1#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se0/1/0 1 0 12.1.1.1/255.255.255.252 64 POINT 0/0
Gig0/0/0 1 0 192.168.1.1/255.255.255.0 1 DR 0/0
<Verification 3 #Confirm OSPF neighbor adjacency is formed>
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - 00:00:30 12.1.1.2 Serial0/1/0
R1#
<Verification 4 #Confirm OSPF routes are installed>
R1#
R1#show ip route ospf
O 192.168.2.0 [110/65] via 12.1.1.2, 00:04:28, Serial0/1/0
<Verification 5 # End to End PC-PC Ping>
Ping from PC0 to PC2
C:\>ping 192.168.2.200
Pinging 192.168.2.200 with 32 bytes of data:
Reply from 192.168.2.200: bytes=32 time=5ms TTL=126
Reply from 192.168.2.200: bytes=32 time=16ms TTL=126
Reply from 192.168.2.200: bytes=32 time=13ms TTL=126
Reply from 192.168.2.200: bytes=32 time=1ms TTL=126
Ping statistics for 192.168.2.200:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 16ms, Average = 8ms
Download the lab
https://drive.google.com/file/d/13x7pHJj-CQPFbby3WmwhEVgFgjogOHtK/view?usp=drive_link
Thanks for Reading !
Network Engineer Stuff
