The default route is widely applied on the OSPF network to reduce routing entries in the routing table and filter specific routing information.
On the area border and AS border of an OSPF network generally reside multiple routers for next-hop backup or traffic load balancing. A default route can be configured to reduce routing entries and improve resource usage on the OSPF network.
The default route is generally applied to the following scenarios:
When no exactly matched route is discovered, the router 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.
The advertising mode of the default route is determined by the type of the area to which the default route is imported, as shown in Table 1.
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 |
Automatically |
ABR |
Type 3 LSA |
NSSA |
|
Totally NSSA |
Automatically |
ABR |
Type 3 LSA |
NSSA |
Perform the following steps on the ASBR running OSPF.
The system view is displayed.
The OSPF process view is displayed.
The default route is imported into the OSPF process.
For details about how to configure the default route in the NSSA, see Configuring an NSSA.
The configuration is committed.