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

Function

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

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

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

Format

peer peerIpv4Addr advertise-ext-community

undo peer peerIpv4Addr advertise-ext-community

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IPv4 address of a peer.

The address is in dotted decimal notation.

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.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 10
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-multicast] peer 1.1.1.1 advertise-ext-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >