neighbor next-hop-self

This command sets this neighbor‘s next hop as the router's own address on advertisement.

Syntax

neighbor {ip-address | groupID} next-hop-self
no neighbor {ip-address | groupID} next-hop-self

Parameters

ip-address A BGP peer specified as a valid IPv4 address in dotted-quad format or as a valid IPv6 address in colon-separated format.
groupID A BGP peer group name specified as a string of characters. If an invalid IP address is specified (for example, 256.1.1.1), it will be read as a group name.

Defaults

None.

Mode

BGP Router Configuration.

Usage

The neighbor next-hop-self command sets the specified peer‘s nexthop to the router's own address. When routes are learned using EBGP and advertised to an IBGP neighbor, this command sets the next hop information to the IP address of the interface used to communicate with the IBGP neighbor.

Example

The following example specifies that the neighbor will use the router‘s own address as the next hop.

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 159.1.1.9
System(su-config-bgp)->neighbor 1.2.3.4 remote-as 5
System(su-config-bgp)->neighbor 1.2.3.4 next-hop-self