R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
395
To specify an indirectly connected interface (except loopback interfaces) on an EBGP peer as the source
interface, use the peer ebgp-max-hop command. The command allows the establishment of an EBGP
session to the indirectly connected peer.
If an interface has multiple IP addresses, BGP uses the primary IP address to establish TCP connections.
If an interface has multiple IPv6 addresses, BGP selects a source IPv6 address. To use a specific IPv6
address as the source address, specify that IPv6 address by using the peer source-address command.
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 source-address
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/BGP IPv4 multicast
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
In BGP VPNv4 address family view:
peer { group-name | ip-address } default-route-advertise vpn-instance vpn-instance-name
undo peer { group-name | ip-address } default-route-advertise vpn-instance vpn-instance-name
In BGP IPv6 unicast address family view:
peer { group-name | ip-address | ipv6-address } default-route-advertise [ route-policy
route-policy-name ]
undo peer { group-name | ip-address | ipv6-address } default-route-advertise
In BGP IPv6 multicast address family view:
peer { group-name | ipv6-address } default-route-advertise [ route-policy route-policy-name ]
undo peer { group-name | ipv6-address } default-route-advertise [ route-policy route-policy-name ]