Sunday, August 23, 2015

OSPF - Stub and Totally Stub



STUB Area
1. Area 3 is stub
2. R9  Redistributing 99.9.9.9/32 into Ospf as E2 route

Stub Area does not have LSA 4 & LSA 5
in R5 & R6

router ospf 10
area  3 stub

R9

Lo10 99.9.9.9/32

router ospf 10
 auto-cost reference-bandwidth 1000
 redistribute connected metric 50 subnets route-map con

ip prefix-list con seq 5 permit 99.9.9.9/32
!
route-map con permit 10
 match ip address prefix-list con

**************Database  &  Route************

R6

R6#sh ip route
::::::::::::::
Gateway of last resort is 56.0.0.5 to network 0.0.0.0

O*IA  0.0.0.0/0 [110/11] via 56.0.0.5, 00:09:03, FastEthernet0/1
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/11] via 56.0.0.5, 00:09:03, FastEthernet0/1
      6.0.0.0/32 is subnetted, 1 subnets
C        6.6.6.6 is directly connected, Loopback0
      9.0.0.0/32 is subnetted, 1 subnets
O IA     9.9.9.9 [110/10021] via 56.0.0.5, 00:09:03, FastEthernet0/1
      13.0.0.0/24 is subnetted, 1 subnets
O IA     13.0.0.0 [110/30] via 56.0.0.5, 00:09:03, FastEthernet0/1
      15.0.0.0/24 is subnetted, 1 subnets
O IA     15.0.0.0 [110/20] via 56.0.0.5, 00:09:03, FastEthernet0/1
      16.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        16.0.0.0/24 is directly connected, FastEthernet0/0
L        16.0.0.6/32 is directly connected, FastEthernet0/0
      23.0.0.0/24 is subnetted, 1 subnets
O IA     23.0.0.0 [110/30] via 56.0.0.5, 00:09:04, FastEthernet0/1
      25.0.0.0/24 is subnetted, 1 subnets
O IA     25.0.0.0 [110/20] via 56.0.0.5, 00:09:04, FastEthernet0/1
      34.0.0.0/24 is subnetted, 1 subnets
O IA     34.0.0.0 [110/31] via 56.0.0.5, 00:09:04, FastEthernet0/1
      55.0.0.0/32 is subnetted, 1 subnets
O IA     55.5.5.5 [110/11] via 56.0.0.5, 00:09:04, FastEthernet0/1
      56.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        56.0.0.0/24 is directly connected, FastEthernet0/1
L        56.0.0.6/32 is directly connected, FastEthernet0/1
      66.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
C        66.1.0.0/24 is directly connected, Loopback2
L        66.1.0.1/32 is directly connected, Loopback2
C        66.1.1.0/24 is directly connected, Loopback3
L        66.1.1.1/32 is directly connected, Loopback3
C        66.1.2.0/24 is directly connected, Loopback4
L        66.1.2.1/32 is directly connected, Loopback4
C        66.1.3.0/24 is directly connected, Loopback5
L        66.1.3.1/32 is directly connected, Loopback5
C        66.6.6.6/32 is directly connected, Loopback1
      102.0.0.0/24 is subnetted, 1 subnets
O IA     102.1.0.0 [110/21] via 56.0.0.5, 00:09:05, FastEthernet0/1
      172.16.0.0/32 is subnetted, 3 subnets
O IA     172.16.0.2 [110/20] via 56.0.0.5, 00:09:05, FastEthernet0/1
O IA     172.16.0.4 [110/31] via 56.0.0.5, 00:09:05, FastEthernet0/1
O IA     172.16.0.9 [110/10020] via 56.0.0.5, 00:09:05, FastEthernet0/1

************
R6# sh ip ospf database

            OSPF Router with ID (66.6.6.6) (Process ID 10)

                Router Link States (Area 3)  LSA 1

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         2094  (DNA) 0x8000000B 0x009C53 1
55.5.5.5        55.5.5.5        132   (DNA) 0x80000041 0x00DC79 3
66.6.6.6        66.6.6.6        636         0x80000043 0x0060B7 4

                Summary Net Link States (Area 3) LSA 3

Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         55.5.5.5        158   (DNA) 0x80000001 0x0057A0
9.9.9.9         1.1.1.1         2094  (DNA) 0x8000000A 0x008D32
9.9.9.9         55.5.5.5        157   (DNA) 0x80000010 0x00FE84
13.0.0.0        1.1.1.1         2094  (DNA) 0x8000000A 0x001405
13.0.0.0        55.5.5.5        157   (DNA) 0x8000000D 0x005477
15.0.0.0        1.1.1.1         2094  (DNA) 0x8000000A 0x00F91D
15.0.0.0        55.5.5.5        157   (DNA) 0x8000000D 0x00D5FD
23.0.0.0        1.1.1.1         2094  (DNA) 0x8000000A 0x00F50F
23.0.0.0        55.5.5.5        157   (DNA) 0x80000010 0x00CBF2

::::::::::::::::::;;

We can see no LSA 4 &  5 in the AREA 3 ( No Route for 99.9.9.9/32  and one default route is installed in routing tale,

while in R5

R5# sh ip route 99.9.9.9
Routing entry for 99.9.9.9/32
  Known via "ospf 10", distance 110, metric 50, type extern 2, forward metric 10010
  Last update from 25.0.0.2 on FastEthernet0/0, 00:08:16 ago
  Routing Descriptor Blocks:
  * 25.0.0.2, from 172.16.0.9, 00:08:16 ago, via FastEthernet0/0
      Route metric is 50, traffic share count is 1
R5#

R5#sh ip ospf database

            OSPF Router with ID (55.5.5.5) (Process ID 10)

                Router Link States (Area 0)  LSA 1

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         1120        0x8000003A 0x00FB94 2
2.2.2.2         2.2.2.2         878         0x8000005E 0x004479 3
39.1.4.1        39.1.4.1        1590        0x8000004D 0x005763 3
44.4.4.4        44.4.4.4        802         0x80000034 0x00AA97 1
55.5.5.5        55.5.5.5        767         0x80000058 0x001262 3

                Net Link States (Area 0)  LSA 2

Link ID         ADV Router      Age         Seq#       Checksum
13.0.0.3        39.1.4.1        576         0x8000001F 0x008B22
15.0.0.1        1.1.1.1         1120        0x8000000F 0x00DCF0
23.0.0.3        39.1.4.1        1590        0x80000014 0x005159
25.0.0.5        55.5.5.5        767         0x8000000C 0x002557
34.0.0.4        44.4.4.4        802         0x80000021 0x00381E

                Summary Net Link States (Area 0)  LSA 3

Link ID         ADV Router      Age         Seq#       Checksum
5.5.5.5         55.5.5.5        1287        0x8000000C 0x003C9A
6.6.6.6         55.5.5.5        902         0x80000003 0x00844D
9.9.9.9         2.2.2.2         1624        0x8000000C 0x00A22B
9.9.9.9         44.4.4.4        1564        0x8000000C 0x00FD68
16.0.0.0        1.1.1.1         1123        0x8000000B 0x00EA2A
16.0.0.0        55.5.5.5        902         0x80000003 0x0023AD
56.0.0.0        55.5.5.5        1290        0x8000000C 0x00A207
172.16.0.2      2.2.2.2         1624        0x8000000C 0x009DCD
172.16.0.2      44.4.4.4        1564        0x8000000C 0x00F80B
172.16.0.4      2.2.2.2         1624        0x8000000C 0x008AA7
172.16.0.4      44.4.4.4        299         0x80000025 0x00B16E
172.16.0.9      2.2.2.2         1624        0x8000000C 0x0058D4
172.16.0.9      44.4.4.4        1564        0x8000000C 0x00B312

                Summary ASB Link States (Area 0)   LSA 4

Link ID         ADV Router      Age         Seq#       Checksum
172.16.0.9      2.2.2.2         623         0x80000001 0x0060D6
172.16.0.9      44.4.4.4        624         0x80000001 0x00BB14



                Router Link States (Area 3)  LSA1

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         2093  (DNA) 0x8000000B 0x009C53 1
55.5.5.5        55.5.5.5        1049        0x80000041 0x00DC79 3
66.6.6.6        66.6.6.6        1     (DNA) 0x80000043 0x0060B7 4

                Summary Net Link States (Area 3)  LSA 3

Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         55.5.5.5        1075        0x80000001 0x0057A0
9.9.9.9         1.1.1.1         2093  (DNA) 0x8000000A 0x008D32
9.9.9.9         55.5.5.5        771         0x80000011 0x00FC85
13.0.0.0        1.1.1.1         2093  (DNA) 0x8000000A 0x001405
13.0.0.0        55.5.5.5        1075        0x8000000D 0x005477
15.0.0.0        1.1.1.1         2093  (DNA) 0x8000000A 0x00F91D
15.0.0.0        55.5.5.5        1075        0x8000000D 0x00D5FD
23.0.0.0        1.1.1.1         2093  (DNA) 0x8000000A 0x00F50F
23.0.0.0        55.5.5.5        771         0x80000011 0x00C9F3
25.0.0.0        1.1.1.1         2093  (DNA) 0x8000000A 0x00DB27
25.0.0.0        55.5.5.5        1075        0x8000000D 0x005376
34.0.0.0        1.1.1.1         2093  (DNA) 0x8000000A 0x000CF6
34.0.0.0        55.5.5.5        1075        0x8000000D 0x004C69
55.5.5.5        1.1.1.1         2093  (DNA) 0x8000000A 0x00548A
55.5.5.5        55.5.5.5        1075        0x8000000D 0x00CBD9
102.1.0.0       1.1.1.1         2093  (DNA) 0x8000000A 0x00ECC6
102.1.0.0       55.5.5.5        772         0x80000011 0x005C1A
172.16.0.2      1.1.1.1         2093  (DNA) 0x8000000A 0x0088D4
172.16.0.2      55.5.5.5        772         0x80000011 0x00F728
172.16.0.4      1.1.1.1         2093  (DNA) 0x8000000A 0x001A4A
172.16.0.4      55.5.5.5        1075        0x8000000D 0x005ABC
172.16.0.9      1.1.1.1         2093  (DNA) 0x8000000A 0x0043DB
172.16.0.9      55.5.5.5        772         0x80000011 0x00B22F

                Type-5 AS External Link States    LSA 5

Link ID         ADV Router      Age         Seq#       Checksum Tag
99.9.9.9        172.16.0.9      630         0x80000001 0x001628 0
R5#

****Area 3 does not have LSA 4 and LSA 5 

Totally stub

in R5  & R6

Router ospf 10
area 3 stub no-summary


R6

O*IA  0.0.0.0/0 [110/11] via 56.0.0.5, 00:02:11, FastEthernet0/1
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/11] via 56.0.0.5, 00:02:11, FastEthernet0/1
R6#

we can see there is no inter-area route
R6#sh ip ospf database

            OSPF Router with ID (66.6.6.6) (Process ID 10)

                Router Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         2094  (DNA) 0x8000000B 0x009C53 1
55.5.5.5        55.5.5.5        1     (DNA) 0x80000046 0x00D27E 3
66.6.6.6        66.6.6.6        223         0x80000048 0x00CD6F 3

                Summary Net Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         55.5.5.5        638   (DNA) 0x80000003 0x0053A2




No comments:

Post a Comment