Configuring 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.
- 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.
 
- If the ASBR doesn't have a default route, you can add the keyword always to the ospf-default-information command. However, we recommend not to add the always keyword.
 
The OSPF vRouter advertises a default route into the OSPF domain, even if a route to 0.0.0.0 is configured.
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@switch) > vrouter-create
| 
    ospf-default-information none|originate|always  | 
  
    Specify if you want to use the default route information for OSPF: 
  | 
 
| 
    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@switch) > vrouter-modify
| 
    ospf-default-information none|originate|always  | 
  
    Specify if you want to use the default route information for OSPF: 
  | 
 
| 
    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@switch) > vrouter-show
| 
    ospf-default-information none|originate|always  | 
  
    Displays the default route information for OSPF: 
  | 
 
| 
    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.  | 
 
