Refer to the commands and guidelines in the section “Types of BGP Route Maps” on
page 71 for more information about configuring route maps.
Configuring the Community Attribute
A community is a logical group of prefixes that share some common attribute.
Community members can be on different networks and in different autonomous
systems. BGP allows you to define the community to which a prefix belongs. A prefix
can belong to more than one community. The community attribute lists the
communities to which a prefix belongs.
You can use communities to simplify routing policies by configuring which routing
information a BGP speaker will accept, prefer, or distribute to other neighbors
according to community membership. When a route is learned, advertised, or
redistributed, a BGP speaker can set, append, or modify the community of a route.
When routes are aggregated, the resulting BGP update contains a community attribute
that contains all communities from all of the aggregated routes (if the aggregate is
an AS-set aggregate).
Several well-known communities have been predefined. Table 19 on page 92
describes how a BGP speaker handles a route based on the setting of its community
attribute.
Table 19: Action Based on Well-Known Community Membership
BGP Speaker Action
Well-Known Community
Does not advertise the route to any EBGP peers (does not
advertise the route beyond the local AS)
no-export
Does not advertise the route to any peers, IBGP or EBGP
no-advertise
Advertises the route only to peers within the local
confederation
local-as (also known as
no-export-subconfed)
Advertises this route to the Internet community; by
default, all prefixes are members of the Internet
community
internet
In addition to the well-known communities, you can define local-use communities,
also known as private communities or general communities. These communities
serve as a convenient way to categorize groups of routes to facilitate the use of routing
policies. The community attribute consists of four octets, but it is common practice
to designate communities in the
AA
:
NN
format. The autonomous system number
(
AA
) comprises the higher two octets, and the community number (
NN
) comprises
the lower two octets. Both are expressed as decimal numbers. For example, if a
prefix in AS 23 belongs to community 411, the attribute can be expressed as 23:411.
Use the
ip bgp-community new-format
command to specify that the
show
commands display communities in this format.
92
■
Configuring BGP Routing Policy
JUNOSe 11.0.x BGP and MPLS Configuration Guide
Содержание JUNOSE
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 24: ...xxiv Table of Contents JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1...
Страница 38: ...2 Border Gateway Protocol JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 234: ...198 Monitoring BGP JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 236: ...200 Multiprotocol Layer Switching JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 298: ...262 Point to Multipoint LSPs Configuration JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 346: ...310 Example Traffic Class Configuration for Differentiated Services JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 535: ...There is no no version See undebug ip mbgp Monitoring BGP MPLS VPNs 499 Chapter 5 Configuring BGP MPLS Applications...
Страница 536: ...500 Monitoring BGP MPLS VPNs JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 538: ...502 Layer 2 Services Over MPLS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 592: ...556 Multiple ATM Virtual Circuits over a Single Pseudowire Example JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 604: ...568 Virtual Private LAN Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 618: ...582 VPLS References JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 642: ...606 VPLS Configuration Example with LDP Signaling JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 674: ...638 Virtual Private Wire Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 718: ...682 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 719: ...Part 6 Index Index on page 685 Index 683...
Страница 720: ...684 Index JUNOSe 11 0 x BGP and MPLS Configuration Guide...