Using Priority Queuing
Problem
You want to enable strict priority queues on an interface so that the router always handles high priority packets first.
Solution
To enable priority queuing on an interface, you must first define the priority list, and then you can apply it to the interface:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list
101
permit ip any any precedence
5
tos
Router(config)#
12
access-list
102
permit ip any any precedence
Router(config)#
4
access-list
103
permit ip any any precedence
Router(config)#
3
priority-list
1
protocol ip high list
Router(config)#
101
priority-list
1
protocol ip medium list
Router(config)#
102
priority-list
1
protocol ip normal list
Router(config)#
103
priority-list
1
default low
Router(config)#interface
Router(config-if)#
Ethernet0
priority-group
Router(config-if)#
1
exit
Router(config)#end
Router#
Discussion
As we discuss in Appendix B, priority queues strictly ensure that high priority packets are always handled before lower priority packets. We stress that using pure priority queuing like this is usually a bad idea because the higher priority traffic can take all of the available bandwidth and completely starve all other network traffic. You only want to use this style of queuing when you can be absolutely certain that the aggregate bandwidth of all high priority traffic will never consume the available link bandwidth. This could be the case, for example, if the high priority traffic is ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.