F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
497
Syntax
peer { group-name | ip-address } ebgp-max-hop [ hop-count ]
undo peer { group-name | ip-address } ebgp-max-hop
Default
This feature is disabled.
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 of 1 to 47 characters.
ip-address: Specifies the IP address of a peer.
hop-count: Specifies the maximum hop count, in the range of 1 to 255. The default is 64.
Usage guidelines
You can use the argument hop-count to specify the maximum route hop count of the EBGP session.
Examples
# In BGP view, allow establishing the EBGP session 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 session 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-ipv4-vpn1] peer test ebgp-max-hop
peer enable (BGP/BGP-VPN instance view)
Use peer enable to enable the specified peer.
Use undo peer enable to disable the specified peer.
Syntax
peer ip-address enable
undo peer ip-address enable
Default
The BGP peer is enabled.
Views
BGP view, BGP VPN instance view