IP Routing—Configuring RIP, OSPF, BGP, and PBR
Configuring BGP
15-94
Filtering Advertised Routes According to Community. If your network
places routes in communities, you can filter the routes that the local router
advertises according to these communities.
A route can be a member of one or more communities. A community is simply
a way of grouping routes together and applying a consistent policy to the
group. In order for a route's membership in a community to mean anything,
administrators must define policies that apply to the community, specifying,
in particular, the neighbors to which the local routers may advertise routes in
that community.
You can create such a policy by configuring a route map for each of your
router's BGP neighbors. You then match an entry in each route map to a list
of communities that the router can and cannot advertise to that neighbor.
First, create a community list as described in "Configuring a Community List"
on page 15-90.
Syntax: ip community-list <name>
For example:
ProCurve(config)# ip community-list Advertised
Then enter a deny statement for the routes that the router should not advertise
to the neighbor and a permit statement for the routes that it should. Use this
command:
Syntax: [deny | permit] [internet | local-as | no-advertise | no-export | <1-
42949672957>]
Table 15-12 shows a list of well-known communities and the policy expected
for these communities. The ProCurve Secure Router can also select privately
defined communities with values between 1 and 42929672957.