neighbor next-hop-unchanged

Enables BGP to send updates to eBGP peers with the next-hop attribute unchanged.

Syntax

neighbor { ip-address | ipv6-address | peer-group-name } next-hop-unchanged
no neighbor { ip-address | ipv6-address | peer-group-name } next-hop-unchanged

Command Default

This functionality is not enabled.

Parameters

ip-address
Specifies an IPv4 address.
ipv6-address
Specifies an IPv6 address.
peer-group-name
Specifies a peer group.

Modes

BGP address-family L2VPN EVPN configuration mode

Usage Guidelines

By default, BGP speakers change the next hop while sending the updates to eBGP neighbors. Use this command to override this behavior. When this command is used, the next hop attribute remains unchanged while updates are sent to eBGP peers, and the BGP speaker is forced to retain the next hop address in the BGP updates received from neighbors.

The no form of the command disables the sending of updates to eBGP peers with the next-hop attribute unchanged.

Examples

The following example disables the sending of updates to eBGP peers with the next-hop attribute unchanged.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-evpn)# no neighbor 10.11.12.13 next-hop-unchanged