Configuring OSPF to Advertise the Default Route to an OSPF Area
Context
On an OSPF network, multiple switches often reside on the area border and AS border for next-hop backup or traffic load balancing. To reduce routing entries and improve resource usage on the OSPF network, a default route can be configured in the following scenarios:
- An ABR advertises a Type 3 LSA carrying the default route for guiding switches to forward inter-area packets.
- An ASBR advertises Type 5 or Type 7 LSAs carrying the default route for guiding switches to forward AS external packets.
When no matching route is discovered, the switch can forward packets through the default route.
The preference of the default route in Type 3 LSAs is higher than that of the route in Type 5 or Type 7 LSAs.
Default route advertisement is determined by the type of the area to which the default route is imported. Table 5-20 lists the default route advertisement by area type.
Area Type |
Generated By |
Advertised By |
LSA Type |
Flooding Area |
---|---|---|---|---|
Common area |
The default-route-advertise command |
ASBR |
Type 5 LSA |
Common area |
Stub area |
Automatically |
ABR |
Type 3 LSA |
Stub area |
NSSA |
The nssa [ default-route-advertise ] command |
ASBR |
Type 7 LSA |
NSSA |
Totally NSSA |
Automatically |
ABR |
Type 3 LSA |
NSSA |
Perform the following steps on the ASBR running OSPF.