Adding Default Route Information Settings for OSPF Routing
An OSPF vRouter, by default, does not generate a default route into the OSPF domain. In order for OSPF to generate a default route, you must explicitly configure the vRouter with this information.
There are two ways to inject a default route into a normal area.
1. If the ASBR already has the default route in the routing table, you can advertise the existing 0.0.0.0/0 into the OSPF domain with the ospf-default-information parameter.
2. If the ASBR doesn't have a default route, you can add the keyword always to the ospf-default-information command.
 
The OSPF vRouter advertises a default route into the OSPF domain, even if a route to 0.0.0.0 is configured. Another benefit of adding always keyword is that it can add stability to the internetwork. For example, if the ASBR is learning a default route from another routing domain such as RIP and this route is flapping, then without specifying always keyword, each time the route flaps, the ASBR sends a new Type 5 LSA into the OSPF domain causing instability inside the OSPF domain. With the always keyword, the ASBR always advertises the default route inside the OSPF domain, and the flapping of the default route from the RIP domain does not cause any instability inside the OSPF domain.
When you configure the metric type, you can use the parameters described for the vrouter- commands for configuring a route map.
These parameters control default route generation for IPv4 and IPv6 default routes.
CLI network-admin@Leaf1 > vrouter-create
 
ospf-default-information none|originate|always
Specify if you want to use the default route information for OSPF.
none — no default route is generated.
originate — the default route is generated only if a default route is present in the routing table.
always — the default route is generated even if no default route is present in the routing table.
ospf-default-info-originate-metric none
Specify the metric for the default route.
ospf-default-info-originate-metric-type 1|2
Specify the metric type as 1 or 2.
 
 
CLI network-admin@Leaf1 > vrouter-modify
 
ospf-default-information none|originate|always
Specify if you want to use the default route information for OSPF.
none — no default route is generated.
originate — the default route is generated only if a default route is present in the routing table.
always — the default route is generated even if no default route is present in the routing table.
ospf-default-info-originate-metric none
Specify the metric for the default route.
ospf-default-info-originate-metric-type 1|2
Specify the metric type as 1 or 2.
ospf-default-info-originate-route-map vrouter route-map name
Specify the OSPF default information route map.
CLI network-admin@Leaf1 > vrouter-show
 
ospf-default-information none|originate|always
Displays the default route information for OSPF.
none — no default route is generated.
originate — the default route is generated only if a default route is present in the routing table.
always — the default route is generated even if no default route is present in the routing table.
ospf-default-info-originate-metric none
Displays the metric for the default route.
ospf-default-info-originate-metric-type 1|2
Displays the metric type as 1 or 2.
ospf-default-info-originate-route-map vrouter route-map name
Displays the OSPF default information route map.