HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference

357
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test description ISP1
peer ebgp-max-hop
Use peer ebgp-max-hop to enable BGP to establish an EBGP session to an indirectly-connected peer or
peer group and specify the maximum hop count.
Use undo peer ebgp-max-hop to restore the default.
Syntax
peer { group-name | ip-address | ipv6-address } ebgp-max-hop [ hop-count ]
undo peer { group-name | ip-address | ipv6-address } ebgp-max-hop
Default
BGP does not establish an EBGP session to an indirectly-connected peer or peer group.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address: Specifies a peer by its IP address. The peer must have been created.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
hop-count: Specifies the maximum number of hop counts, in the range of 1 to 255. The default is 64.
Usage guidelines
EBGP peers must be directly connected. If not, use the peer ebgp-max-hop command to establish an
EBGP session over multiple hops between two peers. If direct EBGP peers use loopback interfaces to
establish a BGP session, you do not need to configure the peer ebgp-max-hop command.
Examples
# In BGP view, enable BGP to establish EBGP sessions to an indirectly-connected EBGP peer group test,
and specify the maximum hop count as 64 (default).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test ebgp-max-hop
# In BGP-VPN instance view, enable BGP to establish EBGP sessions to an indirectly-connected EBGP
peer group test, and specify the maximum hop count as 64 (default).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test ebgp-max-hop