Tuesday, February 28, 2023

OSPF LAB - NSSA/Totally NSSA Area

Now let continue further on the previous network lab from OSPF LAB – Stub/Totally Stub Area.
We will now perform some static route redistribution and see how its work.

On each router, we will create a loopback interface with the following address 66.XX.1.1/16, where XX is your router number as:

R1 – 66.1.1.1/16
R2 – 66.2.1.1/16
R3 – 66.3.1.1/16
R4 – 66.4.1.1/16
R5 – 66.5.1.1/16
R6 – 66.6.1.1/16
R7 – 66.7.1.1/16
R8 – 66.8.1.1/16
R9 – 66.9.1.1/16
R10 – 66.10.1.1/16
R11 – 66.11.1.1/16

Also, will create static routes on each router to the following networks - 77.XX.0.0/24, 77.XX.1.0/24, 77.XX.2.0/24, 77.XX.3.0/24,  and set a next hop of 66.XX.1.2.
And then redistribute these static routes in the OSPF process

Configuration for R1
configure terminal
interface loopback1
ip address 66.1.1.1 255.255.0.0
exit
!
ip route 77.1.0.0 255.255.255.0 66.1.1.2
ip route 77.1.1.0 255.255.255.0 66.1.1.2
ip route 77.1.2.0 255.255.255.0 66.1.1.2
ip route 77.1.3.0 255.255.255.0 66.1.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R2
configure terminal
interface loopback1
ip address 66.2.1.1 255.255.0.0
exit
!
ip route 77.2.0.0 255.255.255.0 66.2.1.2
ip route 77.2.1.0 255.255.255.0 66.2.1.2
ip route 77.2.2.0 255.255.255.0 66.2.1.2
ip route 77.2.3.0 255.255.255.0 66.2.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R3
configure terminal
interface loopback1
ip address 66.3.1.1 255.255.0.0
exit
!
ip route 77.3.0.0 255.255.255.0 66.3.1.2
ip route 77.3.1.0 255.255.255.0 66.3.1.2
ip route 77.3.2.0 255.255.255.0 66.3.1.2
ip route 77.3.3.0 255.255.255.0 66.3.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr 

Configuration for R4
configure terminal
interface loopback1
ip address 66.4.1.1 255.255.0.0
exit
!
ip route 77.4.0.0 255.255.255.0 66.4.1.2
ip route 77.4.1.0 255.255.255.0 66.4.1.2
ip route 77.4.2.0 255.255.255.0 66.4.1.2
ip route 77.4.3.0 255.255.255.0 66.4.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R5
configure terminal
interface loopback1
ip address 66.5.1.1 255.255.0.0
exit
!
ip route 77.5.0.0 255.255.255.0 66.5.1.2
ip route 77.5.1.0 255.255.255.0 66.5.1.2
ip route 77.5.2.0 255.255.255.0 66.5.1.2
ip route 77.5.3.0 255.255.255.0 66.5.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R6
configure terminal
interface loopback1
ip address 66.6.1.1 255.255.0.0
exit
!
ip route 77.6.0.0 255.255.255.0 66.6.1.2
ip route 77.6.1.0 255.255.255.0 66.6.1.2
ip route 77.6.2.0 255.255.255.0 66.6.1.2
ip route 77.6.3.0 255.255.255.0 66.6.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R7
configure terminal
interface loopback1
ip address 66.7.1.1 255.255.0.0
exit
!
ip route 77.7.0.0 255.255.255.0 66.7.1.2
ip route 77.7.1.0 255.255.255.0 66.7.1.2
ip route 77.7.2.0 255.255.255.0 66.7.1.2
ip route 77.7.3.0 255.255.255.0 66.7.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr 

Configuration for R8
configure terminal
interface loopback1
ip address 66.8.1.1 255.255.0.0
exit
!
ip route 77.8.0.0 255.255.255.0 66.8.1.2
ip route 77.8.1.0 255.255.255.0 66.8.1.2
ip route 77.8.2.0 255.255.255.0 66.8.1.2
ip route 77.8.3.0 255.255.255.0 66.8.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr 

Configuration for R9
configure terminal
interface loopback1
ip address 66.9.1.1 255.255.0.0
exit
!
ip route 77.9.0.0 255.255.255.0 66.9.1.2
ip route 77.9.1.0 255.255.255.0 66.9.1.2
ip route 77.9.2.0 255.255.255.0 66.9.1.2
ip route 77.9.3.0 255.255.255.0 66.9.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R10
configure terminal
interface loopback1
ip address 66.10.1.1 255.255.0.0
exit
!
ip route 77.10.0.0 255.255.255.0 66.10.1.2
ip route 77.10.1.0 255.255.255.0 66.10.1.2
ip route 77.10.2.0 255.255.255.0 66.10.1.2
ip route 77.10.3.0 255.255.255.0 66.10.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

Configuration for R11
configure terminal
interface loopback1
ip address 66.11.1.1 255.255.0.0
exit
!
ip route 77.11.0.0 255.255.255.0 66.11.1.2
ip route 77.11.1.0 255.255.255.0 66.11.1.2
ip route 77.11.2.0 255.255.255.0 66.11.1.2
ip route 77.11.3.0 255.255.255.0 66.11.1.2
!
router ospf 1
redistribute static subnets
exit
!
end
wr

But now  if we see the routing table in Area 123, Area 8, Area 56, and Area 10 we don’t see the static route is redistributed.
As in stub area, redistribution is not allowed, which means type 4 and 5 are not allowed.
So, if we want redistribution, we need to convert stub area to normal area or NSSA area.
As in NSSA area, we will have Type 7 LSA which will carry external redistributed routes.

So, as Area 123 and Area 8 are Totally Stub area, we will convert them to Totally NSSA Area.
And Area 56 and Area 10 are Stub area, we will convert them to NSSA Area.

For Area 123
Router R1, R2 and R3 configuration
configure terminal
router ospf 1
no area 123 stub no-summary
no area 123 stub
area 123 nssa no-summary
exit
!
end
wr

For Area 8
Router R7 and R8 configuration
configure terminal
router ospf 1
no area 8 stub no-summary
no area 8 stub
area 8 nssa no-summary
exit
!
end
wr

For Area 56
Router R4, R5 and R6 configuration
configure terminal
router ospf 1
no area 56 stub
area 56 nssa
exit
!
end
wr

For Area 10
Router R9, R10 and R11 configuration
configure terminal
router ospf 1
no area 10 stub
area 10 nssa
exit
!
end
wr

Now, suppose when we check the routing  table  for R1 of Area 1, for the local route redistributed we will see routes as N2, and in OSPF database we will see Type-7 LSA database

R1#show  ip ospf database | begin Type-7
                Type-7 AS External Link States (Area 123)
 
Link ID         ADV Router      Age         Seq#       Checksum Tag
77.1.0.0        1.1.1.1         460         0x80000001 0x006ED1 0
77.1.1.0        1.1.1.1         460         0x80000001 0x0063DB 0
77.1.2.0        1.1.1.1         460         0x80000001 0x0058E5 0
77.1.3.0        1.1.1.1         460         0x80000001 0x004DEF 0
77.2.0.0        2.2.2.2         455         0x80000001 0x0076C0 0
77.2.1.0        2.2.2.2         455         0x80000001 0x006BCA 0
77.2.2.0        2.2.2.2         455         0x80000001 0x0060D4 0
77.2.3.0        2.2.2.2         455         0x80000001 0x0055DE 0
77.3.0.0        3.3.3.3         449         0x80000001 0x0060E1 0
77.3.1.0        3.3.3.3         449         0x80000001 0x0055EB 0
77.3.2.0        3.3.3.3         449         0x80000001 0x004AF5 0
77.3.3.0        3.3.3.3         449         0x80000001 0x003FFF 0
R1#

But for same above route in Area 0 of router R4, we will see as E2 routes, and in OSPF database we will have Type-5 database for those routes with advertising router as ABR router.
As ABR router of Area 123, have converted Type-7 LSA to Type-5 LSA

R4#show  ip route 77.2.2.0
Routing entry for 77.2.2.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 66
  Last update from 192.168.34.0 on Serial2/0, 00:02:09 ago
  Routing Descriptor Blocks:
  * 192.168.34.0, from 3.3.3.3, 00:02:09 ago, via Serial2/0
      Route metric is 20, traffic share count is 1
R4#

Ensure  all networks are reachable

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 = 136/144/160 ms
R1#
R1#traceroute 8.8.8.8
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.13.1 24 msec 24 msec 32 msec
  2 192.168.34.1 56 msec 28 msec 52 msec
  3 192.168.47.1 100 msec 116 msec 92 msec
  4 192.168.78.1 136 msec 92 msec 136 msec
R1#

R6#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/101/148 ms
R6#
R6#traceroute 10.10.10.10
Type escape sequence to abort.
Tracing the route to 10.10.10.10
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.56.0 24 msec 40 msec 24 msec
  2 192.168.45.0 32 msec 52 msec 56 msec
  3 192.168.47.1 88 msec 84 msec 68 msec
  4 192.168.79.1 132 msec 124 msec 96 msec
  5 192.168.109.1 132 msec 132 msec 120 msec
R6#

Monday, February 27, 2023

OSPF LAB - Stub/Totally Stub Area

We will consider the same OSPF LAB which we build and proceed after that for further route injection on each router and troubleshoot for various issue and see how it works.
For OSPF LAB building, refer OSPFLAB BUILDING

First, we will insert external route on router R7.
For external route, we can advertise default route with the help of command “default-information originate”.
OSPF won’t advertise a default route if you don’t already have it in your routing table. If you add the always keyword, it will advertise the default route even if you don’t have it in the routing table.

Let advertise default route on router R7
Note: This default route feature of OSPF is just demo , I will not configure in actual lab

configure terminal
router ospf 1
default-information originate always
exit
!
end
wr

Once you have advertised the default route, it will look like this on other routers, like on router R1:

R1#show ip ospf database | begin Type-5
                Type-5 AS External Link States
 
Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         7.7.7.7         688         0x80000001 0x00682E 1
R1#

So, Now let configure external network as EIGRP, and then we will advertise external route from EIGRP domain from Router R12.

Configuration for Router R12       
configure terminal
interface f1/0
ip address 192.168.127.0 255.255.255.254
no shut
exit
!
interface loopback0
ip address 12.12.12.12 255.255.255.255
!
interface loopback11
ip address 11.0.0.1 255.255.255.255
exit
!
interface loopback12
ip address 12.0.0.1 255.255.255.255
exit
!
interface loopback13
ip address 13.0.0.1 255.255.255.255
exit
!
interface loopback14
ip address 14.0.0.1 255.255.255.255
exit
!
interface loopback15
ip address 15.0.0.1 255.255.255.255
exit
!
interface loopback16
ip address 16.0.0.1 255.255.255.255
exit
!
interface loopback17
ip address 17.0.0.1 255.255.255.255
exit
!
interface loopback18
ip address 18.0.0.1 255.255.255.255
exit
!
interface loopback19
ip address 19.0.0.1 255.255.255.255
exit
!
interface loopback20
ip address 20.0.0.1 255.255.255.255
exit
!
router eigrp 12
no auto-summary
network 192.168.127.0 255.255.255.0
network 12.12.12.12 255.255.255.255
network 11.0.0.1 255.255.255.255
network 12.0.0.1 255.255.255.255
network 13.0.0.1 255.255.255.255
network 14.0.0.1 255.255.255.255
network 15.0.0.1 255.255.255.255
network 16.0.0.1 255.255.255.255
network 17.0.0.1 255.255.255.255
network 18.0.0.1 255.255.255.255
network 19.0.0.1 255.255.255.255
network 20.0.0.1 255.255.255.255
exit
!
end
wr

Configuration for Router R7
configure terminal
interface f1/0
ip address 192.168.127.1 255.255.255.254
no shut
exit
!
router eigrp 12
no auto-summary
network 192.168.127.0 255.255.255.0
redistribute ospf 1 metric 1 1 1 1 1
exit
!
router ospf 1
redistribute eigrp 12 subnets
!
end
wr

R7#
*Feb 26 22:32:03.955: %DUAL-5-NBRCHANGE: EIGRP-IPv4 12: Neighbor 192.168.127.0 (FastEthernet1/0) is up: new adjacency
R7#

Once you have advertised the eigrp route in ospf on router R7, it will look like this on other routers, like on router R1:

R1#show  ip ospf database | begin Type-5
                Type-5 AS External Link States
 
Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         7.7.7.7         1001        0x80000001 0x00682E 1
11.0.0.1        7.7.7.7         88          0x80000001 0x007BFC 0
12.0.0.1        7.7.7.7         88          0x80000001 0x006E09 0
12.12.12.12     7.7.7.7         250         0x80000001 0x00EA69 0
13.0.0.1        7.7.7.7         88          0x80000001 0x006115 0
14.0.0.1        7.7.7.7         87          0x80000001 0x005421 0
15.0.0.1        7.7.7.7         87          0x80000001 0x00472D 0
16.0.0.1        7.7.7.7         86          0x80000001 0x003A39 0
17.0.0.1        7.7.7.7         85          0x80000001 0x002D45 0
18.0.0.1        7.7.7.7         85          0x80000001 0x002051 0
19.0.0.1        7.7.7.7         85          0x80000001 0x00135D 0
20.0.0.1        7.7.7.7         250         0x80000001 0x000669 0
192.168.127.0   7.7.7.7         250         0x80000001 0x00E2B9 0
R1#

Ensure, Area 123 and Area 8 should not accept Type 3, 4, or 5 LSAs. Area 56 and Area 10 should not accept Type 4 or 5 LSAs. However, all areas should accept Type 7 LSA

As for Area 123 and Area 8, we don’t need Type 3, 4, and 5 LSA. For these  we know that we need to set the Area 123  and Area 8 as Totally Stub Area.

For Area 123
Router R1, R2 and R3 configuration
configure terminal
router ospf 1
area 123 stub no-summary
exit
!
end
wr 

For Area 8
Router R7 and R8 configuration
configure terminal
router ospf 1
area 8 stub no-summary
exit
!
end
wr

So, now if we look at the routing table of Area 123/Area 8, we will not see O IA and O E1/E2 route (no route for LSA Type 3, 4 and 5), instead we will see the summary default route for external and inter-area routes

R1#show ip route
Gateway of last resort is 192.168.13.1 to network 0.0.0.0
 
O*IA  0.0.0.0/0 [110/2] via 192.168.13.1, 00:12:49, GigabitEthernet0/0
      1.0.0.0/32 is subnetted, 1 subnets
C        1.1.1.1 is directly connected, Loopback0
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/3] via 192.168.13.1, 00:12:44, GigabitEthernet0/0
      192.168.13.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.13.0/31 is directly connected, GigabitEthernet0/0
L        192.168.13.0/32 is directly connected, GigabitEthernet0/0
      192.168.23.0/31 is subnetted, 1 subnets
O        192.168.23.0 [110/2] via 192.168.13.1, 00:12:49, GigabitEthernet0/0
R1#
 
Also, in OSPF database, no Type 3, 4 and 5 database
R1#show ip ospf database
 
            OSPF Router with ID (1.1.1.1) (Process ID 1)
 
                Router Link States (Area 123)
 
Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         776         0x80000005 0x0064C1 2
2.2.2.2         2.2.2.2         774         0x80000004 0x000AFC 2
3.3.3.3         3.3.3.3         770         0x80000005 0x00868F 2
 
                Net Link States (Area 123)
 
Link ID         ADV Router      Age         Seq#       Checksum
192.168.13.1    3.3.3.3         775         0x80000003 0x00A601
192.168.23.1    3.3.3.3         774         0x80000003 0x006A2F
 
                Summary Net Link States (Area 123)
 
Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         3.3.3.3         780         0x80000001 0x0057DA
R1#

Also, for Area 56 and Area 10, we don’t need Type 4 and 5 LSAs. For these, we know  we need to set the Area 56 and Area 10 as Stub area.

For Area 56
Router R4, R5 and R6 configuration
configure terminal
router ospf 1
area 56 stub
exit
!
end
wr 

For Area 10
Router R9, R10 and R11 configuration
configure terminal
router ospf 1
area 10 stub
exit
!
end
wr

So, now if we look at the routing table of Area 56/Area 10, we will not see O E1/E2 route (no route for LSA Type 4 and 5), instead we will see the summary default route for external routes.

Ensure  all networks are reachable

R1#ping 12.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/108/140 ms
R1#
 
R10#traceroute 14.0.0.1
Type escape sequence to abort.
Tracing the route to 14.0.0.1
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.109.0 36 msec 40 msec 28 msec
  2 192.168.79.0 24 msec 44 msec 44 msec
  3 192.168.127.0 72 msec 92 msec 72 msec
R10#
 
R8#ping 12.12.12.12
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.12.12.12, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/50/60 ms
R8#

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#