peer advertise-large-community (BGP-VPN instance IPv6 address family view) (group)

Function

The peer advertise-large-community command enables a device to advertise the Large-Community attribute to a BGP peer group.

The undo peer advertise-large-community command cancels the configuration.

By default, a device does not advertise the Large-Community attribute to its BGP peer group.

Format

peer group-name advertise-large-community

undo peer group-name advertise-large-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

To enable a device to advertise the Large-Community attribute to its BGP peer group, run the peer advertise-large-community command. If the Large-Community attribute is advertised to a peer group, all the peer members in the group inherit this configuration. This simplifies the application of route-policies and facilitates route maintenance and management.

Prerequisites

Specific Large-Community values have been defined in a route-policy.

Example

# Enable a device to advertise the Large-Community attribute to a BGP peer group.
<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 advertise-large-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >