352
Usage guidelines
If the peer's IP address/IPv6 address belongs to an interface indirectly connected to the local router,
specify that interface as the source interface for TCP connections on the peer. For example, interface A
on the local end is directly connected to interface B on the peer. When you execute the
peer
x.x.x.x
as-number
as-number
command on the local end to specify the BGP peer, and x.x.x.x is not the IP
address of interface B, use the
peer connect-interface
command on the peer to specify the interface
whose IP address is x.x.x.x as the source interface for establishing a TCP connection.
If a BGP router has multiple links to a peer, and the source interface fails, BGP has to reestablish TCP
connections, causing network oscillation. To improve link availability, HP recommends that you use a
loopback interface as the source interface.
To establish multiple BGP sessions between two routers, specify the source interface for establishing TCP
connections to each peer on the local router. Otherwise, the local BGP router might fail to establish TCP
connections to a peer when using the outbound interface of the best route to the peer as the source
interface.
The source interfaces on the local router and the peer must be reachable.
To specify an indirectly connected interface (except loopback interfaces) on an EBGP peer as the source
interface, use the
peer
ebgp-max-hop
command to allow the establishment of an EBGP session to the
indirectly connected peer.
If an interface has multiple IP addresses, use the primary IP address for establishing TCP connections. If
an interface has multiple IPv6 addresses, select an IPv6 address as defined in RFC 3484 for establishing
TCP connections.
Examples
# In BGP view, specify loopback 0 as the source interface for TCP connections to the peer group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test connect-interface loopback 0
# In BGP-VPN instance view, specify loopback 0 as the source interface for TCP connections to the peer
group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test connect-interface loopback 0
Related commands
peer ebgp-max-hop
peer default-route-advertise
Use
peer default-route-advertise
to advertise a default route to a peer or peer group.
Use
undo peer default-route-advertise
to disable default route advertisement to a peer or peer group.
Syntax
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view:
peer
{
group-name
|
ip-address
}
default-route-advertise
[
route-policy
route-policy-name
]
undo peer
{
group-name
|
ip-address
}
default-route-advertise