peer advertise-community (BGP-EVPN address family view)

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 peerIpv4Addr advertise-community

peer peerIpv6Addr advertise-community

undo peer peerIpv4Addr advertise-community

undo peer peerIpv6Addr advertise-community

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IPv4 address of a peer.

It is in dotted decimal notation.

peerIpv6Addr

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.

Views

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

Prerequisites

Enable the peer in current view using peer enable command.

Example

# Configure a device to advertise a community attribute to its peer in the BGP-EVPN address family view.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-evpn] peer 1.1.1.1 advertise-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >