default-information originate (OSPF)

To generate a default external route into an Open Shortest Path First (OSPF) routing domain, use the default-information originate command. To disable this feature, use the no form of this command.

default-information originate [ always ] [ route-map map-name ]

no default-information originate [ always ] [ route-map map-name ]

Syntax Description

(Optional) Specifies to always advertise the default route regardless of whether the route table has a default route.
route-map map-name
(Optional) Specifies to advertise the default route if the route map is satisfied. The map-name argument can be any alphanumeric string up to 63 characters.

Command Default

Advertises the default route if the route is in the route table.

Command Modes

Router configuration mode

Command History

This command was introduced.

Usage Guidelines

Use this command to assign a default route for redistributed routes. Whenever you use the redistribute command to redistribute routes into an OSPF routing domain, Cisco NX-OS automatically becomes an Autonomous System Boundary Router (ASBR). However, an ASBR does not, by default, generate a default route into the OSPF routing domain.

Use the route-map keyword to filter redistributed routes so that Cisco NX-OS generates a default route only for routes that pass the route map. Use the always keyword to generate the default route regardless of whether the default route is in the route table.

Note The default-information originate command ignores match statements in the optional route map.

This command requires the LAN Base Services license.


This example shows how to configure the default route redistributed into the OSPF routing domain for the Enhanced Interior Gateway Protocol (EIGRP):

switch(config)# router ospf 109
switch(config-router)# redistribute eigrp 108 route-map EigrpPolicy
switch(config-router)# default-information originate always

Related Commands

copy running-config startup-config
Saves the configuration changes to the startup configuration file.
redistribute (OSPF)
Redistributes routes from one routing domain into OSPF.
Defines a filter policy for routes.
show ip ospf
Displays OSPF information.