IPv4 Routing with OSPF

Task - OSPFv2 LSAs (Summary and External LSAs)

Solutions:

R1:

router ospf 1
 network 0.0.0.0 255.255.255.255 area 1

R4:

router ospf 1
 network 0.0.0.0 255.255.255.255 area 0

R7:

router ospf 1
 network 0.0.0.0 255.255.255.255 area 3

R8:

router ospf 1
 network 0.0.0.0 255.255.255.255 area 3

R9:

interface Loopback1
 ip address 9.9.9.9 255.255.255.255

router ospf 1
 redistribute connected subnets
 network 172.16.0.0 0.0.255.255 area 3

R10:

router ospf 1
 network 0.0.0.0 255.255.255.255 area 2

R2:

router ospf 1
 network 172.16.12.0 0.0.0.255 area 1
 network 172.16.0.0 0.0.255.255 area 0

R3:

router ospf 1
 network 172.16.13.0 0.0.0.255 area 1
 network 172.16.103.0 0.0.0.255 area 2
 network 172.16.0.0 0.0.255.255 area 0

R5:

router ospf 1
 network 172.16.57.0 0.0.0.255 area 3
 network 172.16.0.0 0.0.255.255 area 0

R6:

router ospf 1
 network 172.16.68.0 0.0.0.255 area 3
 network 172.16.106.0 0.0.0.255 area 2
 network 172.16.0.0 0.0.255.255 area 0

Verification:

R1#sh ip ospf  neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
172.16.3.3        1   FULL/DR         00:00:38    172.16.13.3     GigabitEthernet0/1
172.16.2.2        1   FULL/DR         00:00:38    172.16.12.2     GigabitEthernet0/0

R1#sh ip ro ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      9.0.0.0/32 is subnetted, 1 subnets
O E2     9.9.9.9 [110/20] via 172.16.13.3, 00:03:00, GigabitEthernet0/1
                 [110/20] via 172.16.12.2, 00:03:00, GigabitEthernet0/0
      172.16.0.0/16 is variably subnetted, 29 subnets, 2 masks
O IA     172.16.2.2/32 [110/2] via 172.16.12.2, 00:16:41, GigabitEthernet0/0
O IA     172.16.3.3/32 [110/2] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
O IA     172.16.4.4/32 [110/3] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
                       [110/3] via 172.16.12.2, 00:16:41, GigabitEthernet0/0
O IA     172.16.5.5/32 [110/3] via 172.16.12.2, 00:16:21, GigabitEthernet0/0
O IA     172.16.6.6/32 [110/3] via 172.16.13.3, 00:16:03, GigabitEthernet0/1
O IA     172.16.7.7/32 [110/4] via 172.16.12.2, 00:15:15, GigabitEthernet0/0
O IA     172.16.8.8/32 [110/4] via 172.16.13.3, 00:15:01, GigabitEthernet0/1
O IA     172.16.9.9/32 [110/5] via 172.16.13.3, 00:14:40, GigabitEthernet0/1
                       [110/5] via 172.16.12.2, 00:14:45, GigabitEthernet0/0
O IA     172.16.10.10/32 [110/3] via 172.16.13.3, 00:08:38, GigabitEthernet0/1
O IA     172.16.23.0/24 [110/2] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
O IA     172.16.24.0/24 [110/2] via 172.16.12.2, 00:16:41, GigabitEthernet0/0
O IA     172.16.25.0/24 [110/2] via 172.16.12.2, 00:16:41, GigabitEthernet0/0
O IA     172.16.34.0/24 [110/2] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
O IA     172.16.36.0/24 [110/2] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
O IA     172.16.45.0/24 [110/3] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
                        [110/3] via 172.16.12.2, 00:16:41, GigabitEthernet0/0
O IA     172.16.46.0/24 [110/3] via 172.16.13.3, 00:16:21, GigabitEthernet0/1
                        [110/3] via 172.16.12.2, 00:16:41, GigabitEthernet0/0
O IA     172.16.56.0/24 [110/3] via 172.16.13.3, 00:16:03, GigabitEthernet0/1
                        [110/3] via 172.16.12.2, 00:16:21, GigabitEthernet0/0
O IA     172.16.57.0/24 [110/3] via 172.16.12.2, 00:16:21, GigabitEthernet0/0
O IA     172.16.68.0/24 [110/3] via 172.16.13.3, 00:16:03, GigabitEthernet0/1
O IA     172.16.78.0/24 [110/4] via 172.16.13.3, 00:15:01, GigabitEthernet0/1
                        [110/4] via 172.16.12.2, 00:15:15, GigabitEthernet0/0
O IA     172.16.79.0/24 [110/4] via 172.16.12.2, 00:15:15, GigabitEthernet0/0
O IA     172.16.89.0/24 [110/4] via 172.16.13.3, 00:15:01, GigabitEthernet0/1
O IA     172.16.103.0/24 [110/2] via 172.16.13.3, 00:08:48, GigabitEthernet0/1
O IA     172.16.106.0/24 [110/3] via 172.16.13.3, 00:10:05, GigabitEthernet0/1

R1#sh ip ospf  database summary 

            OSPF  router with ID (172.16.1.1) (Process ID 1)

  Summary Net Link States (Area 1)

  LS age: 1097
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.2.2 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x3783
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 1 

  LS age: 1046
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.2.2 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x3E78
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 3 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.3.3 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x3680
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 3 

  LS age: 1080
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.3.3 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x15A1
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 1 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.4.4 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x179E
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 2 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.4.4 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xAA9
  Length: 28
  network Mask: /32
        MTID: 0  Metric: 2 

  LS age: 1036
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.5.5 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x2B1
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 2 

  LS age: 1037
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.5.5 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xFEB1
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 3 

  LS age: 1025
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.6.6 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xF6B9
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 3 

  LS age: 1015
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.6.6 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000002
  Checksum: 0xDDD0
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 2 

  LS age: 968
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.7.7 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xE1CC
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 3 

  LS age: 968
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.7.7 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xDECC
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 4 

  LS age: 953
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.8.8 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xD6D4
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 4 

  LS age: 953
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.8.8 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xBFEA
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 3 

  LS age: 937
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.9.9 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xC1E7
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 4 

  LS age: 932
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.9.9 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000002
  Checksum: 0xB2F3
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 4 

  LS age: 652
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.10.10 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xACFA
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 4 

  LS age: 570
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.10.10 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000002
  Checksum: 0x891D
  Length: 28
  network Mask: /32
 MTID: 0  Metric: 2 

  LS age: 1046
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.23.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000002
  Checksum: 0x752F
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 1080
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.23.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x564F
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 1 

  LS age: 1097
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.24.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x584E
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 1 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.24.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x554E
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1097
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.25.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x4D58
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 1 

  LS age: 1046
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.25.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x544D
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.34.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xF3A7
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1080
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.34.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xDCBD
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 1 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.36.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xE7B0
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 1080
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.36.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xC6D1
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 1 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.45.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x7A16
  Length: 28
  network Mask: /24
        MTID: 0  Metric: 2 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.45.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x6D21
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.46.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x6F20
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1056
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.46.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x622B
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1036
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.56.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x184
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1015
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.56.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000002
  Checksum: 0xF190
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1036
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.57.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xF58E
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 1037
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.57.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xF28E
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 1043
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.68.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x86F1
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 1033
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.68.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000002
  Checksum: 0x6D09
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2 

  LS age: 986
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.78.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0x1856
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 971
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.78.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000002
  Checksum: 0x962
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 989
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.79.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xD60
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 989
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.79.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0xA60
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 4 

  LS age: 974
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.89.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000001
  Checksum: 0xA8B9
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 4 

  LS age: 974
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.89.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000001
  Checksum: 0x91CF
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 601
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.103.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000003
  Checksum: 0xFF53
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 601
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.103.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000003
  Checksum: 0xDE74
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 1 

  LS age: 678
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.106.0 (summary network Number)
  Advertising Router: 172.16.2.2
  LS Seq Number: 80000005
  Checksum: 0xDA73
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 3 

  LS age: 681
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 172.16.106.0 (summary network Number)
  Advertising Router: 172.16.3.3
  LS Seq Number: 80000006
  Checksum: 0xC18A
  Length: 28
  network Mask: /24
 MTID: 0  Metric: 2

R1#sh ip ospf  database external 

            OSPF  router with ID (172.16.1.1) (Process ID 1)

  Type-5 AS External Link States

  LS age: 357
  Options: (No TOS-capability, DC, Upward)
  LS Type: AS External Link
  Link State ID: 9.9.9.9 (External network Number )
  Advertising Router: 172.16.9.9
  LS Seq Number: 80000001
  Checksum: 0x406D
  Length: 36
  network Mask: /32
 Metric Type: 2 (Larger than any link state path)
 MTID: 0 
 Metric: 20 
 Forward Address: 0.0.0.0
 External Route Tag: 0