The set protocols bgp neighbor default-originate command enables the local router to send the default route 0.0.0.0 to a neighbor. The neighbor can then use this route to reach the router when all other routes are unavailable.
The delete protocols bgp neighbor default-originate command disables this feature.
Command Syntax
set protocols bgp [vrf <vrf-name>] [ipv4 unicast|ipv4 labeled-unicast|ipv6 unicast|ipv6 labeled-unicast] neighbor <bgppeer> default-originate [route-map <MAP-NAME>]
delete protocols bgp [vrf <vrf-name>] [ipv4 unicast|ipv4 labeled-unicast|ipv6 unicast|ipv6 labeled-unicast] neighbor <bgppeer> default-originate [route-map <MAP-NAME>]
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>]. |
neighbor <bgppeer> | Specifies the IP address of a peer. |
route-map <MAP-NAME> | Optional. Sets the route map to modify the default route attributes. |
Example
• This example enables the local router to send the default route 0.0.0.0 to a neighbor.
admin@XorPlus# set protocols bgp neighbor 2.2.2.2 default-originate admin@XorPlus# commit