Sunday, February 26, 2023

OSPF LAB Building with Authentication

  1. We will configure IP addresses between the routers using the following 192.168.YY.x/24 scheme and also, we will configure the loopback interface for each router as per the router number.
  2. Also, Configure OSPF on all router with router-ID as loopback interface and place each interface on your router into the area specified by the diagram.
  3. Also, Configure OSPF md5 authentication throughout your OSPF domain.

  • Router 1 – 3 = 192.168.13.x
  • Router 2 – 3 = 192.168.23.x
  • Router 3 – 4 = 192.168.34.x
  • Router 4 – 5 = 192.168.45.x
  • Router 4 – 7 = 192.168.47.x
  • Router 5 – 6 = 192.168.56.x
  • Router 7 – 8 = 192.168.78.x
  • Router 7 – 9 = 192.168.79.x
  • Router 9 – 10 = 192.168.109.x
  • Router 9 - 11 = 192.168.119.x
Configuration for R1
configure terminal
interface gigabitEthernet0/0
ip address 192.168.13.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 123
exit
!
router ospf 1
router-id 1.1.1.1
network 192.168.13.0 255.255.255.0 area 123
area 123 authentication message-digest
exit
!
end
wr

Configuration for R2
configure terminal
interface FastEthernet1/0
ip address 192.168.23.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 123
exit
!
router ospf 1
router-id 2.2.2.2
network 192.168.23.0 255.255.255.0 area 123
area 123 authentication message-digest
exit
!
end
wr

Configuration for R3
configure terminal
interface gigabitEthernet0/0
ip address 192.168.13.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 3.3.3.3 255.255.255.255
ip ospf 1 area 0
exit
!
interface FastEthernet1/0
ip address 192.168.23.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface Serial2/0
ip address 192.168.34.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
router ospf 1
router-id 3.3.3.3
network 192.168.13.0 255.255.255.0 area 123
network 192.168.23.0 255.255.255.0 area 123
network 192.168.34.0 255.255.255.0 area 0
area 123 authentication message-digest
area 0 authentication message-digest
exit
!
end
wr

R3#
*Feb 26 16:03:02.103: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done
*Feb 26 16:03:02.159: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet1/0 from LOADING to FULL, Loading Done
R3#

Configuration for R4
configure terminal
interface Serial2/0
ip address 192.168.34.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 4.4.4.4 255.255.255.255
ip ospf 1 area 0
exit
!
interface gigabitEthernet0/0
ip address 192.168.45.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface Serial2/1
ip address 192.168.47.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
router ospf 1
router-id 4.4.4.4
network 192.168.34.0 255.255.255.0 area 0
network 192.168.45.0 255.255.255.0 area 56
network 192.168.47.0 255.255.255.0 area 0
area 0 authentication message-digest
area 56 authentication message-digest
exit
end
wr

R4#
*Feb 26 16:04:04.127: %SYS-5-CONFIG_I: Configured from console by console
*Feb 26 16:04:04.179: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Serial2/0 from LOADING to FULL, Loading Done
R4#

Configuration for R5
configure terminal
interface GigabitEthernet0/0
ip address 192.168.45.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 5.5.5.5 255.255.255.255
ip ospf 1 area 56
exit
!
interface ethernet3/0
ip address 192.168.56.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
router ospf 1
router-id 5.5.5.5
network 192.168.45.0 255.255.255.0 area 56
network 192.168.56.0 255.255.255.0 area 56
area 56 authentication message-digest
exit
!
end
wr

R5#
*Feb 26 16:04:10.279: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/0 from LOADING to FULL, Loading Done
R5#

Configuration for R6
configure terminal
interface ethernet3/0
ip address 192.168.56.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 6.6.6.6 255.255.255.255
ip ospf 1 area 56
exit
!
router ospf 1
router-id 6.6.6.6
network 192.168.56.0 255.255.255.0 area 56
area 56 authentication message-digest
exit
!
end
wr

R6#
*Feb 26 16:10:59.411: %OSPF-5-ADJCHG: Process 1, Nbr 5.5.5.5 on Ethernet3/0 from LOADING to FULL, Loading Done
R6#

Configuration for R7
configure terminal
interface Serial2/0
ip address 192.168.79.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 7.7.7.7 255.255.255.255
ip ospf 1 area 0
exit
!
interface gigabitEthernet0/0
ip address 192.168.78.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface Serial2/1
ip address 192.168.47.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
router ospf 1
router-id 7.7.7.7
network 192.168.47.0 255.255.255.0 area 0
network 192.168.79.0 255.255.255.0 area 0
network 192.168.78.0 255.255.255.0 area 8
area 0 authentication message-digest
area 8 authentication message-digest
exit
!
end
wr

R7#
*Feb 26 16:21:20.699: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on Serial2/1 from LOADING to FULL, Loading Done
R7#

Configuration for R8
configure terminal
interface gigabitethernet0/0
ip address 192.168.78.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 8.8.8.8 255.255.255.255
ip ospf 1 area 8
exit
!
router ospf 1
router-id 8.8.8.8
network 192.168.78.0 255.255.255.0 area 8
area 8 authentication message-digest
exit
!
end
wr

R8#
*Feb 26 16:18:30.047: %OSPF-5-ADJCHG: Process 1, Nbr 7.7.7.7 on GigabitEthernet0/0 from LOADING to FULL, Loading Done
R8#

Configuration for R9
configure terminal
interface Serial2/0
ip address 192.168.79.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 9.9.9.9 255.255.255.255
ip ospf 1 area 0
exit
!
interface gigabitEthernet0/0
ip address 192.168.119.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface Fastethernet1/0
ip address 192.168.109.0 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
router ospf 1
router-id 9.9.9.9
network 192.168.79.0 255.255.255.0 area 0
network 192.168.109.0 255.255.255.0 area 10
network 192.168.119.0 255.255.255.0 area 10
area 0 authentication message-digest
area 10 authentication message-digest
exit
!
end
wr

R9#
*Feb 26 16:25:11.527: %OSPF-5-ADJCHG: Process 1, Nbr 7.7.7.7 on Serial2/0 from LOADING to FULL, Loading Done
R9#

Configuration for R10
configure terminal
interface Fastethernet1/0
ip address 192.168.109.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 10.10.10.10 255.255.255.255
ip ospf 1 area 10
exit
!
router ospf 1
router-id 10.10.10.10
network 192.168.109.0 255.255.255.0 area 10
area 10 authentication message-digest
exit
!
end
wr

R10#
*Feb 26 16:26:37.115: %OSPF-5-ADJCHG: Process 1, Nbr 9.9.9.9 on FastEthernet1/0 from LOADING to FULL, Loading Done
R10#

Configuration for R11
configure terminal
interface GigabitEthernet0/0
ip address 192.168.119.1 255.255.255.254
ip ospf message-digest-key 1 md5 RJS
no shut
exit
!
interface loopback0
ip address 11.11.11.11 255.255.255.255
ip ospf 1 area 10
exit
!
router ospf 1
router-id 11.11.11.11
network 192.168.119.0 255.255.255.0 area 10
area 10 authentication message-digest
exit
!
end
wr

R11#
*Feb 26 16:27:11.239: %OSPF-5-ADJCHG: Process 1, Nbr 9.9.9.9 on GigabitEthernet0/0 from LOADING to FULL, Loading Done
R11#

Check all OSPF neighbor is up, and all networks are reachable in the OSPF domain

R1#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/BDR        00:00:35    192.168.13.1    GigabitEthernet0/0
R1#
 
R2#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/BDR        00:00:38    192.168.23.1    FastEthernet1/0
R2#
 
R3#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
4.4.4.4           0   FULL/  -        00:00:37    192.168.34.1    Serial2/0
2.2.2.2           1   FULL/DR         00:00:35    192.168.23.0    FastEthernet1/0
1.1.1.1           1   FULL/DR         00:00:33    192.168.13.0    GigabitEthernet0/0
R3#
 
R4#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
7.7.7.7           0   FULL/  -        00:00:38    192.168.47.1    Serial2/1
3.3.3.3           0   FULL/  -        00:00:39    192.168.34.0    Serial2/0
5.5.5.5           1   FULL/DR         00:00:38    192.168.45.1    GigabitEthernet0/0
R4#
 
R5#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
6.6.6.6           1   FULL/BDR        00:00:36    192.168.56.1    Ethernet3/0
4.4.4.4           1   FULL/BDR        00:00:32    192.168.45.0    GigabitEthernet0/0
R5#
 
R6#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
5.5.5.5           1   FULL/DR         00:00:34    192.168.56.0    Ethernet3/0
R6#
 
R7#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
9.9.9.9           0   FULL/  -        00:00:34    192.168.79.1    Serial2/0
4.4.4.4           0   FULL/  -        00:00:37    192.168.47.0    Serial2/1
8.8.8.8           1   FULL/BDR        00:00:36    192.168.78.1    GigabitEthernet0/0
R7#
 
R8#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
7.7.7.7           1   FULL/DR         00:00:34    192.168.78.0    GigabitEthernet0/0
R8#
 
R9#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
7.7.7.7           0   FULL/  -        00:00:37    192.168.79.0    Serial2/0
11.11.11.11       1   FULL/BDR        00:00:30    192.168.119.1   GigabitEthernet0/0
10.10.10.10       1   FULL/BDR        00:00:30    192.168.109.1   FastEthernet1/0
R9#
 
R10#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
9.9.9.9           1   FULL/DR         00:00:39    192.168.109.0   FastEthernet1/0
R10#
 
R11#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
9.9.9.9           1   FULL/DR         00:00:35    192.168.119.0   GigabitEthernet0/0
R11#
============================================================= 
R1#ping 11.11.11.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.11.11.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 132/146/156 ms
R1#
 
R10#traceroute 2.2.2.2
Type escape sequence to abort.
Tracing the route to 2.2.2.2
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.109.0 24 msec 28 msec 24 msec
  2 192.168.79.0 32 msec 60 msec 56 msec
  3 192.168.47.0 104 msec 72 msec 104 msec
  4 192.168.34.0 136 msec 120 msec 120 msec
  5 192.168.23.0 128 msec 148 msec 152 msec
R10#
 
R6#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/117/144 ms
R6#traceroute 11.11.11.11
Type escape sequence to abort.
Tracing the route to 11.11.11.11
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.56.0 24 msec 24 msec 32 msec
  2 192.168.45.0 28 msec 88 msec 28 msec
  3 192.168.47.1 104 msec 88 msec 88 msec
  4 192.168.79.1 140 msec 104 msec 136 msec
  5 192.168.119.1 128 msec 152 msec 144 msec
R6#

No comments:

Post a Comment