peer advertise-large-community (BGP-EVPN address family view)

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 peerIpv4Addr advertise-large-community [ disable ]

undo peer peerIpv4Addr advertise-large-community [ disable ]

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IPv4 address of a peer.

It is in dotted decimal notation.

disable

Disables the Large-Community attribute from being advertised to a BGP 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 peer.
<HUAWEI> system-view
[~HUAWEI] ip ip-prefix 1 permit 10.1.1.0 24
[*HUAWEI] route-policy RP permit node 10
[*HUAWEI-route-policy] if-match ip-prefix 1
[*HUAWEI-route-policy] apply large-community 35551:100:65552 additive
[*HUAWEI-route-policy] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.2 as-number 200
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer 10.1.1.2 enable
[*HUAWEI-bgp-af-evpn] peer 10.1.1.2 route-policy RP export
[*HUAWEI-bgp-af-evpn] peer 10.1.1.2 advertise-large-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >