294
reflector, and confederation features as needed. For more information about configuring peer groups,
see "Configuring a BGP peer group."
Configuring BGP community
By default, a router does not advertise the COMMUNITY or extended community attribute to its
peers or peer groups. When the router receives a route carrying the COMMUNITY or extended
community attribute, it removes the attribute before advertising the route to other peers or peer
groups.
Perform this task to enable a router to advertise the COMMUNITY or extended community attribute
to its peers for route filtering and control. You can also use a routing policy to add or modify the
COMMUNITY or extended community attribute for specific routes. For more information about
routing policy, see "Configuring routing policies."
To configure BGP community (IPv4 unicast/multicast address family):
1. Enter system view.
system-view
N/A
2. Enter BGP IPv4 unicast
address family view,
BGP-VPN IPv4 unicast
address family view, or BGP
IPv4 multicast address family
view.
• Enter BGP IPv4 unicast
address family view:
a. bgp as-number
[ instance
instance-name ]
b. address-family ipv4
[ unicast ]
• Enter BGP-VPN IPv4 unicast
address family view:
c. bgp as-number
[ instance
instance-name ]
d. ip vpn-instance
vpn-instance-name
e. address-family ipv4
[ unicast ]
• Enter BGP IPv4 multicast
address family view:
f. bgp as-number
[ instance
instance-name ]
g. address-family ipv4
N/A