331
Syntax
group
group-name
[
external
|
internal
]
undo group
group-name
Default
No peer group is created.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a name for the peer group, a case-sensitive string of 1 to 47 characters.
external
: Creates an EBGP peer group.
internal
: Creates an IBGP peer group.
Usage guidelines
In a large-scale network, many peers can use the same route selection policy. You can configure a peer
group and add these peers into this group. In this way, peers can share the same policy as the peer
group. When the policy of the group is modified, the modification also applies to peers in it.
If the
internal
or
external
keyword is not specified, the command creates an IBGP peer group.
If you perform configurations on a peer group and peers of the peer group, the last configuration takes
effect.
After you create a peer group, you must use the
peer enable
command to enable BGP to exchange
routing information with the specified peer group.
Examples
# In BGP view, create an EBGP peer group
test
with AS number 200, and add EBGP peers 10.1.1.1 and
10.1.2.1 into the group.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer test as-number 200
[Sysname-bgp] peer 10.1.1.1 group test
[Sysname-bgp] peer 10.1.2.1 group test
# In BGP-VPN instance view, create an EBGP peer group
test
with AS number 200, and add EBGP peers
10.1.1.1 and 10.1.2.1 into the group.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] group test external
[Sysname-bgp-vpn1] peer test as-number 200
[Sysname-bgp-vpn1] peer 10.1.1.1 group test
[Sysname-bgp-vpn1] peer 10.1.2.1 group test
# In BGP view, create an EBGP peer group
test
with AS number 200, and add EBGP peers 1::1 and 1::2
into the group.