peer advertise-community (BGP-Flow VPNv4 address family view)

Function

The peer advertise-community command configures a device to advertise a community attribute to its peer or peer group. 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

undo peer ipv4-address advertise-community

Parameters

Parameter Description Value
ipv4-address

Specifies the IP address of a peer.

It is in dotted decimal notation.

Views

BGP-Flow VPNv4 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 or peer group. If a device advertises a community attribute to its 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.

Precautions

Before running the peer advertise-community command to configure a device to advertise a BGP community attribute, you can use a route-policy to define this community attribute.

Example

# Configure a device to advertise a community attribute to its peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-flow vpnv4
[*HUAWEI-bgp-af-flow-vpnv4] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-flow-vpnv4] peer 1.1.1.1 advertise-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >