peer advertise-community (BGP-IPv4 multicast 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

undo peer peerIpv4Addr advertise-community

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IP address of an MBGP 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-community command can be 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 community attribute.

Example

# Configure a device to advertise a 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-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >