B-3
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Appendix B QoS Policy Propagation Through the Border Gateway Protocol
QPPB Configuration Example
Define the community lists.
Router(config)# ip community-list 1 permit 60:1
Router(config)# ip community-list 2 permit 60:2
Router(config)# ip community-list 3 permit 60:3
Router(config)# ip community-list 4 permit 60:4
Router(config)# ip community-list 5 permit 60:5
Router(config)# ip community-list 6 permit 60:6
Router(config)# ip community-list 7 permit 60:7
Define the AS path.
Router(config)# ip as-path access-list 1 permit ^10_60
Define the access control list.
Router(config)# access-list 69 permit 69.0.0.0
Router B Running Configuration
RouterB(config)# router bgp 10
RouterB(config-router)# neighbor 30.30.30.1 remote-as 30
RouterB(config-router)# neighbor 30.30.30.1 send-community
RouterB(config-router)# neigh 30.30.30.1 route-map send_community out
!
RouterB(config)# ip bgp-community new-format
Match prefix 10 and set community to 60:1.
RouterB(config)# route-map send_community permit 10
RouterB(config-route-ma)# match ip address 10
RouterB(config-route-ma)# set community 60:1
Match prefix 20 and set community to 60:2.
RouterB(config)# route-map send_community permit 20
RouterB(config-route-ma)# match ip address 20
RouterB(config-route-ma)# set community 60:2
Match prefix 30 and set community to 60:3.
RouterB(config)# route-map send_community permit 30
RouterB(config-route-ma)# match ip address 30
RouterB(config-route-ma)# set community 60:3
Match prefix 40 and set community to 60:4.
RouterB(config)# route-map send_community permit 40
RouterB(config-route-ma)# match ip address 40
RouterB(config-route-ma)# set community 60:4
Match prefix 50 and set community to 60:5.
RouterB(config)# route-map send_community permit 50
RouterB(config-route-ma)# match ip address 50
RouterB(config-route-ma)# set community 60:5
Match prefix 60 and set community to 60:6.
RouterB(config)# route-map send_community permit 60
RouterB(config-route-ma)# match ip address 60
RouterB(config-route-ma)# set community 60:6