Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

protocols ospf default-information originate

Sets the characteristics of an external default route that is originated into an OSPF routing domain.

set protocols ospf[ process pid ] default-information originate{ always | metric metric | metric-type type | route-map map-name }
delete protocols ospf[ process pid ] default-information originate [ always | metric | metric-type | route-map ]
show protocols ospf[ process pid ] default-information originate [ always | metric | metric-type | route-map ]

By default, the system does not generate an external default route into the OSPF routing domain. When enabled to do so, the default route depends on the type of area into which the default route is being advertised.

  • In stub areas, a Type 3 link-state advertisement is generated with a metric of 1 and the metric type is ignored.
  • In not-so-stubby areas (NSSAs) that are configured to import summary advertisements, a Type 7 LSA with a metric of 1 and a metric type of 2 is generated.
  • In NSSAs that are configured not to import summary advertisements, a Type 3 LSA with metric of 1 and the metric type is ignored.
  • In a totally stub area, only a default route is advertised and allowed into the area. Summary and external routes are not advertised in the area.
process pid
Specifies the PID of an IPv4 OSPF process.
always
Always advertises the default route.
metric metric
Specifies the metric to apply to the default route. The metric ranges from 0 through 16777214.
metric-type type
The metric type of an external route, which specifies how cost is calculated, to associate with the Type 5 default link-state advertisement (LSA). The metric type is either of the following:

1: Adds internal cost to external cost. (E1 routes use the redistributed cost plus the cost to the ASBR.)

2: Uses only external cost. (E2 routes use only the redistributed cost.) In case of two ASBRs advertising the same E2 cost, the internal cost to ASBR is used to break the tie.

The default type is 2.

map-name
The default route is generated if the specified route map is satisfied.

Configuration mode

protocols {
	ospf {
		default-information {
			originate {
				always
				metric metric
				metric-type type
				route-map map-name
			}
		}
	}
}

Use this command to redistribute the default route (0.0.0.0) into an OSPF routing domain.

If routes are redistributed in this way, the router automatically becomes an Autonomous System Boundary Router (ASBR). The router must have a default route configured before it can generate one, unless the always keyword is specified.

Use the set form of this command to enable generation of an external default route into the OSPF routing domain.

Use the delete form of this command to disable generation of an external default route into the OSPF routing domain or to restore default parameter values.

Use the show form of this command to display default route distribution configuration. Use this command to redistribute the default route (0.0.0.0) into an OSPF routing domain.

Note: When extended ACLs are used directly or in a route map, the route must be specified in the source field of the ACL and the net mask of the route must be specified in the destination field of the ACL. The inverse mask of the source field is applied to the prefix prior to the comparison with the source. The inverse mask for the destination field is applied to the net mask of the prefix prior to the comparison with the net-mask as specified in the destination field. Effectively, the prefix must match the source with the application of inverse mask of the source field. And the net mask for the prefix must match the destination with the application of the inverse mask of the destination field.