Configuring MBGP to Advertise the Community Attribute

The community and extended community attributes are used to simplify routing policy management.

Context

The community attribute is transmitted between MBGP peers, and its transmission is not restricted within ASs. With the community attribute, a group of routes can share the same routing policy. Before sending a route with the community attribute to peers, MBGP can change the original community attribute carried by the route.

Perform the following steps on the router that is configured as an MBGP peer:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family multicast

    The BGP-IPv4 multicast address family view is displayed.

  4. Run one of the following commands as needed.

    • To advertise the community attribute to an MBGP peer or peer group, run:

      peer { group-name | peer-address } advertise-community
      • group-name: specifies the name of an MBGP peer group.

      • peer-address: specifies the IP address of a remote MBGP peer.

    • To advertise the extended community attribute to an MBGP peer or peer group, run:

      peer { group-name | peer-address } advertise-ext-community
      • group-name: specifies the name of an MBGP peer group.

      • peer-address: specifies the IP address of a remote MBGP peer.

  5. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >