< Home

group (BGP)

Function

The group command creates a peer group.

The undo group command deletes a peer group.

By default, no peer group is configured.

Format

group group-name [ external | internal ]

undo group group-name

Parameters

Parameter Description Value
group-name Specifies the name of the peer group. The name is a string of 1 to 47 characters without any space. It is case-sensitive.
external Creates the EBGP peer groups. -
internal Creates the IBGP peer groups. -

Views

BGP view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A peer group is a group of peers with the same routing policies. After a peer is added to a peer group, it inherits the configurations of this peer group. Peers in a peer group inherit the configurations of the peer group. When the configurations of the peer group are changed, the configurations of these peers are changed accordingly.

On a large-scale BGP network, there are a large number of peers and many of them have the same policies. To configure these peers, you have to repeatedly use some commands. In such a case, configuring peer groups can simplify configurations. If the configurations for several peers are the same, these peers can be added to a created and configured peer group. The peers in the peer group then inherit the configurations of the peer group.

Configuration Impact

If the group command is run more than once, the latest configuration does not override the previous one.

After the group command is run, the system creates a specific type of BGP peer groups.

Precautions

If the type (IBGP or EBGP) of peer group is not specified, an IBGP peer group is created by default.

Deleting a peer group closes the connections on the peers that have no AS numbers in the peer group. Before deleting a peer group, you are recommended to delete these peers or configure AS numbers for these peers.

Example

# Create the IBGP peer group in.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] group in internal

# Create the EBGP peer group ex, and set its AS number as 500.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] group ex external
[sysname-bgp] peer ex as-number 500
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >