peer advertise-community (BGP-VPNv6 address family view)(IPv6)

Function

The peer advertise-community command configures a device to advertise a community attribute to its peer.

The undo peer advertise-community command cancels the existing configuration.

By default, a device advertises no community attribute to its peer.

Format

peer ipv6-address advertise-community

undo peer ipv6-address advertise-community

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a peer.

The value is in the format X:X:X:X:X:X:X:X.

Views

BGP-VPNv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The peer advertise-community command is used to configure a device to advertise a community attribute to its peer or peer group. If a device advertises a community attribute to its peer group, all the members of the peer group will inherit the configuration. This simplifies the application of routing policies and facilitates route maintenance and management.

Precautions

Before running the peer advertise-community command to advertise BGP community attributes, you can use a routing policy to define specific community attributes.

Example

# Configure a device to advertise a community attribute to its peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 2001:db8:1::1 as-number 100
[*HUAWEI-bgp] ipv6-family vpnv6
[*HUAWEI-bgp-af-vpnv6] peer 2001:db8:1::1 enable
[*HUAWEI-bgp-af-vpnv6] peer 2001:db8:1::1 advertise-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >