HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference

364
If you have specified the AS number of a peer group with the peer as-number command, only the peers
with the same AS number can be added to the peer group. All peers in the group share the same AS
number. If you have not specified the AS number for a peer group, peers added to it can use their own
AS numbers.
After you add a peer to a peer group, you must use the peer enable command to enable BGP to
exchange routing information with the peer group.
Examples
# In BGP view, add peer 10.1.1.1 to the EBGP peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer 10.1.1.1 group test as-number 2004
# In BGP-VPN instance view, add peer 10 .1.1.1 t o t h e E B G P p e e r g r o u p test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] group test external
[Sysname-bgp-vpn1] peer 10.1.1.1 group test as-number 2004
# In BGP view, add peer 1::1 to the EBGP peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer 1::1 group test as-number 2004
# In BGP-VPN instance view, add peer 1::1 to the EBGP peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] group test external
[Sysname-bgp-vpn1] peer 1::1 group test as-number 2004
Related commands
group
peer as-number
peer enable
peer ignore
Use peer ignore to disable BGP session establishment with a peer or peer group.
Use undo peer ignore to restore the default.
Syntax
peer { group-name | ip-address | ipv6-address } ignore
undo peer { group-name | ip-address | ipv6-address } ignore
Default
BGP can establish a session to a peer or peer group.