You can create BGP community lists so that you can configure route maps based on community lists.

Community lists are user-defined lists of community attribute values. These lists can be used for matching or manipulating the communities attribute in BGP update messages.

Both the BGP Communities attribute (RFC 1997) and the BGP Large Communities attribute (RFC 8092) are supported. The BGP Communities attribute is a 32-bit value split into two 16-bit values. The BGP Large Communities attribute has 3 components, each 4 octets in length.

In route maps we can match on or set the BGP Communities or Large Communities attribute. Using this feature, network operators can implement network policy based on the BGP communities attribute.

Procedure

  1. With admin privileges, log in to NSX Manager.
  2. Open the instance page.

    Skip the following sub-steps if the instance page is open.

    1. Log in to the VMware Cloud Console at https://console.cloud.vmware.com.
      The VMware Cloud Services home page displays the services available to your organization.
    2. Under My Services, go to the NSX+ card and select Launch Service.
    3. Select Global and select the instance to manage.
  3. Select Networking > Tier-0 Gateways.
  4. To edit a tier-0 gateway, click the menu icon (three dots) and select Edit.
  5. Click Routing.
  6. Click Set next to Community List.
  7. Click Add Community List.
  8. Enter a name for the community list.
  9. Specify a list of communities. For a regular community, use the aa:nn format, for example, 300:500. For a large community, use the format aa:bb:cc, for example, 11:22:33. Note that the list cannot have both regular communities and large communities. It must contain only regular communities, or only large communities.
    In addition, you can select one or more of the following regular communities. Note that they cannot be added if the list contains large communinities.
    • NO_EXPORT_SUBCONFED - Do not advertise to EBGP peers.
    • NO_ADVERTISE - Do not advertise to any peer.
    • NO_EXPORT - Do not advertise outside BGP confederation
  10. Click Save.