B-2
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
Cisco 10000 Series Router Configuration
Router(config)# router bgp 30
Router(config)# table-map precedence-map
Router(config-router)# neighbor 20.20.20.1 remote-as 10
Router(config-router)# neighbor 20.20.20.1 send-community
Router(config-router)# neigh 20.20.20.1 route-map precedence-map out
!
Router(config)# ip bgp-community new-format
Match community 1, set the IP precedence to priority, and set the QoS group to 1.
Router(config)# route-map precedence-map permit 10
Router(config-route-ma)# match community 1
Router(config-route-ma)# set ip precedence priority
Router(config-route-ma)# set ip qos-group 1
Match community 2 and set the IP precedence to immediate.
Router(config)# route-map precedence-map permit 20
Router(config-route-ma)# match community 2
Router(config-route-ma)# set ip precedence immediate
Match community 3 and set the IP precedence to Flash.
Router(config)# route-map precedence-map permit 30
Router(config-route-ma)# match community 3
Router(config-route-ma)# set ip precedence flash
Match community 4 and set the IP precedence to Flash-override.
Router(config)# route-map precedence-map permit 40
Router(config-route-ma)# match community 4
Router(config-route-ma)# set ip precedence flash-override
Match community 5 and set the IP precedence to critical.
Router(config)# route-map precedence-map permit 50
Router(config-route-ma)# match community 5
Router(config-route-ma)# set ip precedence critical
Match community 6 and set the IP precedence to internet.
Router(config)# route-map precedence-map permit 60
Router(config-route-ma)# match community 6
Router(config-route-ma)# set ip precedence internet
Match community 7 and set the IP precedence to network.
Router(config)# route-map precedence-map permit 70
Router(config-route-ma)# match community 7
Router(config-route-ma)# set ip precedence network
Match IP address access list 69 or match AS path 1, set the IP precedence to critical, and set the QoS
group to 9.
Router(config)# route-map precedence-map permit 75
Router(config-route-ma)# match ip address 69
Router(config-route-ma)# match as-path 1
Router(config-route-ma)# set ip precedence critical
Router(config-route-ma)# set ip qos-group 9
For everything else, set the IP precedence to routine.
Router(config)# route-map precedence-map permit 80
Router(config-route-ma)# set ip precedence routine