HP VPN Firewall Appliances Network Management Command Reference
488
Examples
# In BGP view, configure the number of times the local AS number can appear in AS-path attribute of
ro u t e s f r o m p e e r 1.1.1.1 a s 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 allow-as-loop 2
# In BGP-VPN instance view, configure the number of times for which the local AS number can appear
in AS-path attribute of routes from peer 1.1.1.1 as 2. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer 1.1.1.1 allow-as-loop 2
Related commands
display bgp routing-table peer
peer as-number (BGP/BGP-VPN instance view)
Use peer { group-name | ip-address } as-number as-number to specify a peer/peer group with an AS
number.
Use undo peer group-name as-number to delete a peer group.
Use undo peer ip-address to delete a peer.
Syntax
peer { group-name | ip-address } as-number as-number
undo peer group-name as-number
undo peer ip-address
Default
No peer or peer group is specified.
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 an IP address of a peer.
as-number: Specifies the AS number of the peer or peer group, in the range of 1 to 4294967295.
Usage guidelines
You can specify the AS number of a peer in either of the following ways:
• Use the peer ip-address as-number as-number command. After that, the system creates the
specified peer by default.