peer discard-ext-community (BGP-VPN instance IPv6 address family view) (group)

Function

The peer discard-ext-community command configures a BGP device to discard the extended community attributes carried by routes received from a specified peer.

The undo peer discard-ext-community command cancels the configuration.

By default, a BGP device does not discard the extended community attribute carried by any received route.

Format

peer group-name discard-ext-community

undo peer group-name discard-ext-community

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After the peer discard-ext-community command is run on a peer, the peer discards the extended community attributes carried by routes.

Example

# Configure a BGP device to discard the extended community attribute carried by a route.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vpn1
[*HUAWEI-bgp-6-vpn1] group test external
[*HUAWEI-bgp-6-vpn1] peer test as-number 200
[*HUAWEI-bgp-6-vpn1] peer test discard-ext-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >