neighbor update-source

This command specifies the source IP address to be used in all TCP and BGP messages sent to the peer.

Syntax

neighbor ip-address update-source source-addr
no neighbor ip-address update-source source-addr

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.
source-addr The local IP interface address.

Defaults

None.

Mode

BGP Router Configuration.

Usage

The neighbor update-source command is typically used when peering between IBGP routers that are not directly connected and an alternative route is available or when using virtual interfaces as the peer address. In order to accept a connection, IBGP requires that the source IP address of the received OPEN message match the configured IP address of the peer. By default the source IP address is set to the IP address of the outgoing interface to reach the peer. In the case of a failed direct link, if the peer address is the address of the outgoing interface, peering will not establish.

The no neighbor update-source command resets the update source address to the default value of a shared interface address.

Example

The following example causes the TCP session to peer 1.2.3.4 to be established over the interface 4.3.2.1:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 1.1.1.1
System(su-config-bgp)->neighbor 1.2.3.4 remote-as 5
System(su-config-bgp)->neighbor 1.2.3.4 update-source 4.3.2.1

The following example causes the TCP session to be established over the outgoing interface to the peer:

System(su-config)->router bgp 65151
System(su-config-bgp)->no neighbor 1.2.3.4 update-source 4.3.2.1