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

always
(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

Release
Modification
5.0(3)N1(1)
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.

Examples

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
switch(config-router)#
 

Related Commands

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