HP VPN Firewall Appliances Network Management Command Reference
496
undo peer { group-name | ip-address } connect-interface
Default
BGP uses the outbound interface of the best route to the BGP peer/peer group as the source interface for
establishing a TCP connection to the peer/peer group.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string 1 to 47 characters.
ip-address: IP address of a peer.
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
Suppose interface A on the local device is connected to interface B on the peer device. When using the
peer x.x.x.x as-number as-number command on the local device but x.x.x.x is not the IP address of
interface B
, you need to execute the peer connect-interface command on the peer to specify the source
interface (the owner of IP address x.x.x.x) for establishing TCP connections.
To establish multiple BGP connections to another 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 might fail to establish TCP connections to the peers when using the
outbound interfaces of the best routes as the source interfaces.
Examples
# In BGP view, specify loopback 0 as the source interface for routing updates 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 routing updates to the peer
group test. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test connect-interface loopback 0
peer default-route-advertise (BGP/BGP-VPN instance view)
Use peer default-route-advertise to advertise a default route to a peer/peer group.
Use undo peer default-route-advertise to disable default route advertisement to a peer/peer group.
Syntax
peer { group-name | ip-address } default-route-advertise [ route-policy route-policy-name ]
undo peer { group-name | ip-address } default-route-advertise