Configuring IPv6 BGP community

When configuring IPv6 BGP community, you must configure a routing policy to define the COMMUNITY attribute, and apply the routing policy to route advertisement. For routing policy configuration, see "Configuring routing policies."

Advertising community attribute to an IPv6 peer or peer group

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view.

bgp as-number

N/A

3. Enter IPv6 address family view.

ipv6-family

N/A

4. Advertise COMMUNITY attribute to an IPv6 peer or peer group.

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

Not advertised by default.

5. Advertise extended community attribute to an IPv6 peer or peer group.

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

Not advertised by default.

Applying a routing policy to routes advertised to a peer or peer group

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view.

bgp as-number

N/A

3. Enter IPv6 address family view.

ipv6-family

N/A

4. Apply a routing policy to routes advertised to an IPv6 peer or peer group.

peer { ipv6-group-name | ipv6-address } route-policy route-policy-name export

Not applied by default.