peer group enable (BGP-VPN instance IPv6 address family view) (IPv6)

Function

The peer group enable command enables a peer to be added to a peer group in the BGP VPN instance address family.

The undo peer group enable command disables a peer from being added to a peer group in the BGP VPN instance address family.

By default, a peer is disabled from being added to a peer group in the BGP VPN instance address family.

Format

peer ipv6-address group group-name enable

undo peer ipv6-address group group-name enable

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

A large number of BGP peers may exist on a large-scale BGP network. Among these BGP peers, many of them may use the same policies and have the same command configurations. In this situation, you can use peer groups to simplify configurations. Specifically, when configuring multiple peers in the same way, you can create and configure a peer group, and add multiple peers to the peer group. Then, all peers in the peer group will inherit the configurations of the peer group. The peer group enable command enables a peer to be added to a peer group in the BGP VPN instance address family. After being added to a peer group, a peer automatically inherits the configurations of the peer group.

Prerequisites

BGP peers and BGP peer groups have been configured in the BGP VPN instance view.

Precautions

Peers in the same peer group can have different import and export routing policies.

The undo peer group enable command provides the same function as the undo peer enable command.

Example

# Enable a peer to be added to a peer group in the BGP VPN instance IPv4 address family view.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpn1
[*HUAWEI-bgp-instance-vpn1] group yy internal
[*HUAWEI-bgp-instance-vpn1] peer 2001:DB8:1::1 group yy
[*HUAWEI-bgp-instance-vpn1] quit
[*HUAWEI-bgp] ipv6-family vpn-instance vpn1
[*HUAWEI-bgp-6-vpn1] peer yy enable
[*HUAWEI-bgp-6-vpn1] peer 2001:DB8:1::1 group yy enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >