HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference
346
Predefined user roles
network-admin
Parameters
ip-address: Specifies the IP address of a peer.
ipv6-address: Specifies the IPv6 address of a peer.
as-number: Specifies an AS number for the peer, in the range of 1 to 4294967295. If the AS numbers of
the peer and the local router are the same, the peer is an IBGP peer. If they are different, the peer is an
EBGP peer.
Usage guidelines
You can also create a peer and add it to a peer group by using the peer group command.
To modify the AS number of a peer, do not execute the peer as-number command multiple times. Instead,
you must first delete the peer and configure it again.
After you create a peer, you must use the peer enable command to enable BGP to exchange routing
information with the specified peer.
Examples
# In BGP view, create BGP peer 1.1.1.1 and specify its AS number as 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
# In BGP-VPN instance view, create BGP peer 1::1 and specify its AS number as 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1::1 as-number 100
Related commands
• display bgp peer ipv4 unicast
• display bgp peer ipv6 unicast
• peer enable
• peer group
peer as-number (for a BGP peer group)
Use peer as-number to specify an AS number for a peer group.
Use undo peer as-number to delete the AS number of a peer group.
Syntax
peer group-name as-number as-number
undo peer group-name as-number
Default
No AS number is specified for a peer group.