F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
476
1487BSpecifying the source interface for TCP connections
By default, BGP uses the output interface of the optimal route to a peer or peer group as the source
interface for establishing TCP connections to the peer or peer group, and it uses the primary IP address
of the output interface as the source IP address of TCP connections. You can change the source interface
(primary IP address) for TCP connections in the following scenarios:
• If the peer's IP address belongs to an interface indirectly connected to the local router, you must
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. If you execute the peer x.x.x.x
as-number as-number command in which x.x.x.x is not the IP address of interface B on the local
end, you must 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.
• On a BGP router that has multiple links to a peer, if the source interface fails, BGP has to reestablish
TCP connections. To avoid this problem, use a loopback interface as the source interface.
• To establish multiple BGP sessions between two routers, you must specify the source interface for
establishing TCP connections to each peer on the local router. Otherwise, the local BGP router may
fail to establish a TCP connection to a peer when using the outbound interface of the best route to
the peer as the source interface.
To specify the source interface for TCP connections:
Step Command Remarks
493. Enter system view.
system-view N/A
494. Enter BGP view or
BGP-VPN instance
view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either approach.
495. Specify the source
interface for
establishing TCP
connections to a peer
or peer group.
peer { group-name | ip-address }
connect-interface interface-type
interface-number
By default, BGP uses the outbound
interface of the best route to the BGP peer
or peer group as the source interface for
establishing a TCP connection to the peer
or peer group.
710BGenerating BGP routes
BGP can generate routes can be done in the following ways:
• Advertise local networks.
• Redistribute IGP routes.
1488BConfiguration prerequisites
Create and configure a routing policy. For more information, see "Configuring routing policies."
1489BInjecting a local network
Perform this task to inject a network in the local routing table to the BGP routing table, so that BGP can
advertise the network to BGP peers. The ORIGIN attribute of BGP routes advertised in this way is IGP.
You can also use a routing policy to flexibly control route advertisement.
To inject a local network: