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.

 

  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.


  1. 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:

  • 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@switch) > 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@switch) > 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.



north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south