R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
427
peer source-address
Use peer source-address to specify a source IP or IPv6 address for establishing TCP connections to a
peer or peer group.
Use undo peer source-address to restore the default.
Syntax
peer ip-address source-address source-ip-address
peer ipv6-address source-address source-ipv6-address
undo peer { ip-address | ipv6-address } source-address
peer group-name source-address { source-ip-address | source-ipv6-address } *
undo peer group-name source-address [ source-ip-address | source-ipv6-address ]
Default
BGP uses the primary IP or IPv6 address of the egress interface in the optimal route destined for the BGP
peer or peer group as the source address for establishing a TCP connection to the peer or peer group.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
ip-address: Specifies a peer by its IP address. The peer must have been created.
source-ip-address: Specifies a source IP address.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
source-ipv6-address: Specifies a source IPv6 address.
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
Usage guidelines
The peer connect-interface command and the peer source-address command can both change the
source address for establishing TCP connections. If you execute both commands, the most recent
configuration takes effect.
You can change the source address in the following scenarios:
• If the source interface fails on a BGP router that has multiple links to a peer, BGP has to reestablish
TCP connections. To avoid this problem, use a loopback interface as the source interface or use the
IP address of a loopback interface as the source address.
• If the BGP sessions use the IP addresses of different interfaces, specify a source address or source
interface for each peer to establish multiple BGP sessions to a router. Specify a source address for
each peer if the BGP sessions use the different addresses of the same interface. Otherwise, the local
BGP router might fail to establish a TCP connection to a peer when it uses the optimal route to
determine the source address.
The source addresses on the local router and the peer must be reachable to each other.