peer advertise-community (BGP-MVPN address family view) (BGPMVPN)

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 ipv4-address advertise-community

peer ipv6-address advertise-community

undo peer ipv4-address advertise-community

undo peer ipv6-address advertise-community

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The address is in dotted decimal notation.

ipv6-address

Specifies the address of the IPv6 peer to be displayed.

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

Views

BGP-MVPN 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.

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 10.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-family mvpn
[*HUAWEI-bgp-af-mvpn] peer 10.1.1.1 enable
[*HUAWEI-bgp-af-mvpn] peer 10.1.1.1 advertise-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >