default-information originate

Use this command to create a default external route into an OSPF routing domain.

Use the no parameter with this command to disable this feature.

The system acts like an Autonomous System Boundary Router (ASBR) when you use the default-information originate command to redistribute routes into an OSPF routing domain. An ASBR does not by default generate a default route into the OSPF routing domain.

When you give the default-information originate command, also specify a route-map to avoid a dependency on the default network in the routing table.

Command Syntax

Copy
default-information originate
default-information originate {metric <0-16777214>|metric-type (1|2)|route-map WORD|always}
no default-information originate
no default-information originate {metric|metric-type|route-map|always}

Parameters

always

Used to advertise the default route regardless of whether there is a default route.

metric <0-16777214>

Sets the OSPF metric used in creating the default route. The default metric value is 10. The value used is specific to the protocol.

metric-type 1

The external link type associated with the default route advertised into the OSPF routing domain (see RFC 3101). Sets OSPF External Type 1 metric.

metric-type 1

The external link type associated with the default route advertised into the OSPF routing domain (see RFC 3101). Sets OSPF External Type 2 metric (default).

route-map WORD

Specify the name of route map.

Default

Sets the OSPF metric used in creating the default route. The default metric value is 10.

The value used is specific to the protocol. metric-type The external link type associated with the default route advertised into the OSPF routing domain (see RFC 3101).

By default, 2 Sets OSPF External Type 2 metric.

Command Mode

Router mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
#configure terminal
(config)#router ospf 100
(config-router)#default-information originate always metric 23 metric-type 2 route-map myinfo
 
(config)#router ospf 100
(config-router)#no default-information originate metric metric-type route-map