470 CHAPTER 36: IPV6 BGP CONFIGURATION
for routes from a peer, the routing policy sets a non-zero preferred value for 
routes matching it. Other routes not matching the routing policy uses the value set 
with the command. If the preferred value in the routing policy is zero, the routes 
matching it will also use the value set with the command. For information about 
using a routing policy to set a preferred value, refer to the peer 
{ ipv6-group-name | ipv6-address } route-policy route-policy-name { import | 
export } command and the apply preferred-value preferred-value command.
Specifying the Source
Interface for
Establishing TCP
Connections
Follow these steps to specify the source interface for establishing TCP connections 
to a BGP peer or peer group:
n
■ To improve stability and reliability, you can specify a loopback interface as the 
source interface for establishing TCP connections to a BGP peer. By doing so, a 
connection failure upon redundancy availability will not affect TCP connection 
establishment.
■ 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.
Allowing the
establishment of a
Non-Direct EBGP
connection
Follow these steps to allow the establishment of EBGP connection to a 
non-directly connected peer/peer group:
c
CAUTION: In general, direct links should be available between EBGP peers. If not, 
you can use the peer ebgp-max-hop command to establish a multi-hop TCP 
connection in between. However, you need not use this command for direct EBGP 
connection with loopback interfaces.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter BGP view  bgp as-number Required 
Enter IPv6 address family view  ipv6-family - 
Specify the source interface for 
establishing TCP connections to 
a BGP peer or peer group 
peer { ipv6-group-name | 
ipv6-address } 
connect-interface 
interface-type 
interface-number 
Required
By default, IPv6 BGP uses the 
outbound interface of the 
best route to the BGP peer as 
the source interface for 
establishing a TCP 
connection.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter BGP view  bgp as-number Required 
Enter IPv6 address family view  ipv6-family - 
Allow the establishment of 
EBGP connection to a non 
directly connected peer/peer 
group 
peer { ipv6-group-name | 
ipv6-address } 
ebgp-max-hop [ hop-count ] 
Required
Not configured by default