R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)
223
• If the source interface fails on a BGP router that has multiple links to a peer, BGP must 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.
To specify the source address of TCP connections (IPv4 unicast/multicast address family):
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A
3. Specify the source address of
TCP connections to a peer or
peer group.
peer { group-name | ip-address }
source-address source-ip-address
By default, BGP uses the primary IP
address of the output interface in
the optimal route to a peer or peer
group as the source address of TCP
connections to the peer or peer
group.
4. Specify the source interface of
TCP connections to a peer or
peer group.
peer { group-name | ip-address }
connect-interface interface-type
interface-number
To specify the source address of TCP connections (IPv6 unicast/multicast address family):
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A
3. Specify the source IPv6
address for establishing TCP
connections to a peer or peer
group.
peer { group-name |
ipv6-address } source-address
source-ipv6-address
By default, BGP uses the IPv6
address of the output interface in
the optimal route to the BGP peer or
peer group as the source address
for establishing a TCP connection
to the peer or peer group.
4. Specify the source interface of
TCP connections to a peer or
peer group.
peer { group-name |
ipv6-address } connect-interface
interface-type interface-number
Generating BGP routes
BGP can generate routes in the following ways:
• Advertise local networks.