Default
route
© Copyright Lenovo 2015
Figure 48. Injecting Default Routes
Stub Area
Metric:
Area 1
900
IR
If the switch is in a transit area and has a configured default gateway, it can inject a
default route into rest of the OSPF domain. Use the following command to
configure the switch to inject OSPF default routes:
CN4093(configrouterospf)# defaultinformation
2)>
In the command above, <metric value> sets the priority for choosing this switch for
default route. The value none sets no default and 1 sets the highest priority for
default route. Metric type determines the method for influencing routing decisions
for external routes.
When the switch is configured to inject a default route, an AS‐external LSA with
link state ID 0.0.0.0 is propagated throughout the OSPF routing domain. This LSA
is sent with the configured metric value and metric type.
The OSPF default route configuration can be removed with the command:
CN4093(configrouterospf)# no defaultinformation
Backbone
Area 0
IF 1
Priority default route
Metric:
10
ASBR to
external networks
Stub Area
Metric:
Area 2
201
IR
ABR
IF 2
Priority
default route
<metric value>
<metric type (1 or
Chapter 31: OSPF
431