peer advertise-ext-community (BGP-IPv4 multicast address family view) (group)

Function

The peer advertise-ext-community command configures a device to advertise an extended community attribute to its peer group.

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

By default, a device does not advertise extended community attribute to its peer group.

Format

peer peerGroupName advertise-ext-community

undo peer peerGroupName advertise-ext-community

Parameters

Parameter Description Value
peerGroupName

Specifies the name of an MBGP peer group.

The value is a string of 1 to 47 case-sensitive characters, spaces not supported.

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The peer advertise-ext-community command is used to enable a device to advertise an extended community attribute to a specified peer or peer group. If a device advertises an extended community attribute to a specified 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.

Configuration Impact

After the peer advertise-ext-community command is run to configure a device to advertise an extended community attribute to its peer, routing updates sent by the peer carry the extended community attribute.

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 an extended community attribute to a peer group named test.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group test internal
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer test enable
[*HUAWEI-bgp-af-multicast] peer test advertise-ext-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >