< Home

peer advertise-ext-community (BGP)

Function

The peer advertise-ext-community command configures routers to advertise the extended community attributes to a peer or peer group.

The undo peer advertise-ext-community command cancels the existing configuration.

By default, the extended community attribute is not advertised to any peer or peer group.

Format

peer { group-name | ipv4-address | ipv6-address } advertise-ext-community

undo peer { group-name | ipv4-address | ipv6-address } advertise-ext-community

Parameters

Parameter Description Value
group-name Specifies the name of the peer group. The name is a string of 1 to 47 characters without any space. It is case-sensitive.
ipv4-address Specifies the IPv4 address of the peer. -
ipv6-address Specifies the IPv6 address of the peer. -
  • ipv4-address is valid only in the BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, and BGP-VPN instance IPv4 address family view.

  • ipv6-address is valid only in the BGP-IPv6 unicast address family view and BGP-VPN instance IPv6 address family view.

Views

BGP view, BGP-IPv4 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The peer advertise-ext-community command is used to configure a device to advertise an extended community attribute to a specified peer or peer group. If a device advertises an extended community attribute to a specified peer group, all the members of the peer group will inherit the community attribute. This simplifies the application of routing policies and facilitates route maintenance and management.

Prerequisites

A specific extended community attribute has been defined in a routing policy.

Configuration Impact

After the peer advertise-ext-community command is run to configure a device to advertise an extended community attribute to its peer, routing updates sent by the peer carry the extended community attribute.

Example

# Advertise the extended community attributes to the peers.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.2 as-number 200
[sysname-bgp] ipv4-family unicast
[sysname-bgp-af-ipv4] peer 1.1.1.2 advertise-ext-community
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >