R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
329
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
View
BGP view, BGP VPN instance view
Default level
2: System level
Parameters
ip-address: IP address of a peer.
Description
Use the peer enable command to enable the specified peer.
Use the undo peer enable command to disable the specified peer.
By default, the BGP peer is enabled.
If a peer is disabled, the router will not exchange routing information with the peer.
Examples
# Disable peer 18.10.0.9.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 18.10.0.9 group group1
[Sysname-bgp] undo peer 18.10.0.9 enable
peer fake-as (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } fake-as as-number
undo peer { group-name | ip-address } fake-as