Figure 27: Community Lists
Suppose you want router Albany to set metrics for routes that it forwards to router
Boston based on the communities to which the routes belong. You can create
community lists and filter the routes with a route map that matches on the community
list. The following commands demonstrate how to configure router Albany:
host1(config)#
router bgp 293
host1(config-router)#
neighbor 10.5.5.2 remote-as 32
host1(config-router)#
neighbor 10.2.2.1 remote-as 451
host1(config-router)#
neighbor 10.2.2.4 remote-as 17
host1(config-router)#
neighbor 10.2.2.4 route-map commtrc out
host1(config-router)#
exit
host1(config)#
route-map commtrc permit 1
host1(config-route-map)#
match community 1
host1(config-route-map)#
set metric 20
host1(config-route-map)#
exit
host1(config)#
route-map commtrc permit 2
host1(config-route-map)#
match community 2
host1(config-route-map)#
set metric 75
host1(config-route-map)#
exit
host1(config)#
route-map commtrc permit 3
host1(config-route-map)#
match community 3
host1(config-route-map)#
set metric 85
host1(config-route-map)#
exit
host1(config)#
ip community-list 1 permit 25
host1(config)#
ip community-list 2 permit 62
host1(config)#
ip community-list 3 permit internet
Community list 1 comprises routes with a community of 25; their metric is set to
20. Community list 2 comprises routes with a community of 62; their metric is set
to 75. Community 3 catches all remaining routes by matching the internet community;
their metric is set to 85.
ip community-list
96
■
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...