HP VPN Firewall Appliances Network Management Command Reference
499
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
Default command level
2: System level
Parameters
ip-address: Specifies the IP address of a peer.
Usage guidelines
If a peer is disabled, the router does 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)
NOTE:
The peer fake-as command is only applicable to an EBGP peer or peer group.