neighbor default-originate

This command to advertise the default route regardless of whether the default route is present in the local routing table.

Syntax

neighbor ip-address default-originate [route-map name]
no neighbor ip-address default-originate [route-map name]

Parameters

ip-address Specifies a BGP peer as a valid IPv4 address in dotted-quad format or as a valid IPv6 address in colon-separated format.
route-map name Specifies a route-map containing routes that, at least one of which, must be present for the default route to be advertised.

Defaults

None.

Mode

BGP Router Configuration, BGP IPV6/Unicast address-family, BGP IPV4/Multicast address-family, or BGP IPV6/Multicast address-family mode.

Usage

With a redistribute static command that is referencing a route-map in the bgp config a network 0.0.0.0/0 command will not result in the default route being advertised. The neighbor default-originate command causes the BGP peer to advertise the default route under the current address-family regardless of whether the default route is present in the local router's routing table.

Using the route-map option results BGP advertising the default route if at least one prefix, matching the route-map match criteria, is present in the BGP RIB under the current address-family. While other matching criteria are possible, the most common use of the route-map for this application is with a prefix-list.

This command will not apply a default route within an L3VPN configuration context.

The no neighbor default-originate command removes the default-originate configuration for this neighbor.

Example

The following example configures BGP to advertise the default route if at least one prefix matching the match criteria present in map1 is present in the BGP RIB:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 192.1.1.9
System(su-config-bgp)->neighbor 192.168.12.112 default-originate route-map map1
System(su-config-bgp)->