R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

397
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test description ISP1
peer ebgp-max-hop (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } ebgp-max-hop [ hop-count ]
undo peer { group-name | ip-address } ebgp-max-hop
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
hop-count: Maximum hop count, in the range of 1 to 255. The default is 64.
Description
Use peer ebgp-max-hop to allow establishing an eBGP connection with a peer/peer group that is on an
indirectly connected network.
Use undo peer ebgp-max-hop to restore the default.
By default, this feature is disabled.
You can use the argument hop-count to specify the maximum route hop count of the eBGP connection.
Examples
# In BGP view, allow establishing the eBGP connection with the peer group test that is on an indirectly
connected network.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test ebgp-max-hop
# In BGP-VPN instance view, allow establishing the eBGP connection with the peer group test that is on
an indirectly connected network (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test ebgp-max-hop
peer enable (BGP/BGP-VPN instance view)
Syntax
peer ip-address enable
undo peer ip-address enable