peer advertise-large-community

Function

The peer advertise-large-community command enables the function to advertise routes carrying the large-community attribute to a BGP EVPN peer.

The undo peer advertise-large-community command disables the function to advertise routes carrying the large-community attribute to a BGP EVPN peer.

By default, a device does not advertise routes carrying the large-community attribute to a BGP EVPN peer.

Format

peer peerIpv6Addr advertise-large-community [ disable ]

undo peer peerIpv6Addr advertise-large-community [ disable ]

Parameters

Parameter Description Value
peerIpv6Addr

Specifies the IPv6 address of a BGP EVPN peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

disable

The device is disabled from advertising the large-community attribute to its peer.

-

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To enable the function to advertise routes carrying the large-community attribute to the BGP EVPN peer, run the peer advertise-large-community command.

Prerequisites

A route-policy has been used to define the large-community attribute.

Example

# Enables the function to advertise routes carrying the large-community attribute to a BGP EVPN IPv6 peer.
<HUAWEI> system-view
[~HUAWEI] ip ipv6-prefix 1 permit 2001:db8::2 96
[*HUAWEI] route-policy RP permit node 10
[*HUAWEI-route-policy] if-match ipv6-prefix 1
[*HUAWEI-route-policy] apply large-community 35551:100:65552 additive
[*HUAWEI-route-policy] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] peer 2001:db8::2 as-number 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer 2001:db8::2 enable
[*HUAWEI-bgp-af-evpn] peer 2001:db8::2 advertise-large-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >