neighbor default-originate

Configures the device to send the default IPv4 route 0.0.0.0 or the default IPv6 route ::/0 to a neighbor or a peer-group. Route maps can also be applied to the default-originated routes.

Syntax

neighbor { ip-address | ipv6-address | peer-group-name } default-originate [ route-map route-map-name ]
no neighbor { ip-address | ipv6-address | peer-group-name } default-originate [ route-map route-map-name ]

Command Default

Disabled.

Parameters

ip-address
IPv4 address of the neighbor.
ipv6-address
IPv6 address of the neighbor.
peer-group-name
Peer group name configured by the neighbor peer-group-name command.
route-map route-map-name
Applies a route map route-map-name to a default originated route.

Modes

BGP address-family IPv4 unicast configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

Usage Guidelines

The no form of the command withdraws the default routes.

Examples

The following example sends the IPv4 default route to the BGP4 neighbor 10.11.12.13.

device# configure terminal 
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# neighbor 10.11.12.13 default-originate 

The following example sends IPv6 default route to the BGP4 neighbor 10.11.12.13.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor 10.11.12.13 default-originate