Escolar Documentos
Profissional Documentos
Cultura Documentos
Instead of transmitting learned AS external routes, area border route, in a stub area, generates a
default route and advertises the route to non-ABRs in the stub area. In short, stub area reduces
entries in the routing table of ABR and the amount of routing information to be transmitted.
Lets try to configure a simple lab. We would like to see what happens if AREA1 becomes a stub area.
[Krakow]dis c c ospf
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
[Warsaw]dis c c ospf
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
area 0.0.0.1
network 172.16.1.0 0.0.0.255
[Gdansk]dis c c ospf
ospf 1
area 0.0.0.1
network 3.3.3.3 0.0.0.0
network 172.16.1.0 0.0.0.255
[Krakow]ospf
[Krakow-ospf-1]import-route direct
[Krakow-ospf-1]import-route static
[Gdansk]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 15 Routes : 15
Total Nets: 9
Intra Area: 2 Inter Area: 3 ASE: 4 NSSA: 0
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 2.2.2.2 2.2.2.2 69 36 80000006 1
Router 3.3.3.3 3.3.3.3 67 48 80000007 0
Network 172.16.1.2 3.3.3.3 67 32 80000003 0
Sum-Net 2.2.2.2 2.2.2.2 114 28 80000003 0
Sum-Net 10.1.1.0 2.2.2.2 114 28 80000003 1
Sum-Net 1.1.1.1 2.2.2.2 114 28 80000003 1
Sum-Asbr 1.1.1.1 2.2.2.2 114 28 80000003 1
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 6.6.6.6 1.1.1.1 38 36 80000004 1
External 5.5.5.5 1.1.1.1 38 36 80000004 1
External 100.100.100.0 1.1.1.1 1789 36 80000003 1
External 10.1.1.0 1.1.1.1 38 36 80000004 1
External 1.1.1.1 1.1.1.1 38 36 80000004 1
External 200.200.200.0 1.1.1.1 1789 36 80000003 1
[Warsaw]ospf
[Warsaw-ospf-1]area 1
[Warsaw-ospf-1-area-0.0.0.1]stub
[Gdansk]ospf
[Gdansk-ospf-1]are 1
[Gdansk-ospf-1-area-0.0.0.1]stub
[Gdansk]dis ip rout
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 12
Total Nets: 6
Intra Area: 2 Inter Area: 4 ASE: 0 NSSA: 0
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 2.2.2.2 2.2.2.2 88 36 80000005 1
Router 3.3.3.3 3.3.3.3 81 48 80000005 0
Network 172.16.1.2 3.3.3.3 81 32 80000002 0
Sum-Net 0.0.0.0 2.2.2.2 156 28 80000001 1
Sum-Net 2.2.2.2 2.2.2.2 156 28 80000001 0
Sum-Net 10.1.1.0 2.2.2.2 156 28 80000001 1
Sum-Net 1.1.1.1 2.2.2.2 156 28 80000001 1
As you can see, in the stub area, AS external routes are invisible. Instead, there is a default route.
Lets stop advertisement of type 3 LSAs into the stub area, on ABR (router Warsaw):
[Warsaw]ospf
[Warsaw-ospf-1]area 1
[Warsaw-ospf-1-area-0.0.0.1]stub no-summary
[Gdansk]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Total Nets: 3
Intra Area: 2 Inter Area: 1 ASE: 0 NSSA: 0
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 2.2.2.2 2.2.2.2 114 36 80000006 1
Router 3.3.3.3 3.3.3.3 106 48 8000000A 0
Network 172.16.1.2 3.3.3.3 106 32 80000002 0
Sum-Net 0.0.0.0 2.2.2.2 572 28 80000001 1
The routing entries of the stub router are further reduced and only the default route, to a destination
outside the AS, is reserved.