peer discard-ext-community (BGP view)

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 ipv4-address discard-ext-community

undo peer ipv4-address discard-ext-community

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After the command is run, the device discards the extended community attributes carried by routes received from a specified peer.

Example

# Configure a BGP device to discard the extended community attribute carried by a route.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] peer 10.1.1.1 discard-ext-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >