310
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 2001::1 as-number 200
[Sysname-bgp-af-ipv6] peer 2001::1 capability-advertise suppress-4-byte-as
peer connect-interface (IPv6 address family view)
Syntax
peer { ipv6-group-name | ipv6-address } connect-interface interface-type interface-number
undo peer { ipv6-group-name | ipv6-address } connect-interface
View
IPv6 address family view
Default level
2: System level
Parameters
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
interface-type interface-number: Specifies an interface by its type and number.
Description
Use peer connect-interface to specify the source interface for establishing TCP connections to an IPv6
BGP peer or peer group.
Use undo peer connect-interface to restore the default.
By default, BGP uses the outbound interface of the best route to the IPv6 BGP peer/peer group as the
source interface for establishing a TCP connection.
To enhance stability of IPv6 BGP connections, HP recommends using a loopback interface as the source
interface for establishing a TCP connection.
To establish multiple BGP connections to a BGP router, you need to specify on the local router the
respective source interfaces for establishing TCP connections to the peers on the peering BGP router;
otherwise, the local BGP router may fail to establish TCP connections to the peers when using the
outbound interfaces of the best routes as the source interfaces.
Examples
# Specify loopback 0 as the source interface for routing updates to peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 connect-interface loopback 0
peer default-route-advertise
Syntax
peer { group-name | ipv4-address | ipv6-address } default-route-advertise [ route-policy
route-policy-name ]