peer advertise-community (BGP-Flow VPN instance IPv6 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 | ipv6-address } advertise-community

undo peer { ipv4-address | ipv6-address } advertise-community

Parameters

Parameter Description Value
ipv4-address

Specifies the IP address of a peer.

It is in dotted decimal notation.

ipv6-address

Specifies the IPv6 address of a BGP peer.

The value is in the format of X:X:X:X:X:X:X:X.

Views

BGP-Flow VPN instance IPv6 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] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv6] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpna
[*HUAWEI-bgp-instance-vpna] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp-instance-vpna] quit
[*HUAWEI-bgp] ipv6-flow vpn-instance vpna
[*HUAWEI-bgp-flow-6-vpna] peer 1.1.1.1 enable
[*HUAWEI-bgp-flow-6-vpna] peer 1.1.1.1 advertise-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >