peer advertise-ext-community (BGP multi-instance VPN instance IPv4 address family view)

Function

The peer advertise-ext-community command enables a device to advertise an extended community attribute to its peer.

The undo peer advertise-ext-community command cancels the existing configuration.

By default, a device does not advertise extended community attribute to its peer.

Format

peer ipv4-address advertise-ext-community

undo peer ipv4-address advertise-ext-community

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

Views

BGP multi-instance VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The peer advertise-ext-community command is used to enable a device to advertise an extended community attribute to a specified peer.

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 an extended community attribute to its peer.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-instance-vpna] quit
[*HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-instance-a-vpna] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp-instance-a-vpna] peer 10.1.1.1 advertise-ext-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >