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 terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list101permit ip any any precedence5tosRouter(config)#12access-list102permit ip any any precedenceRouter(config)#4access-list103permit ip any any precedenceRouter(config)#3priority-list1protocol ip high listRouter(config)#101priority-list1protocol ip medium listRouter(config)#102priority-list1protocol ip normal listRouter(config)#103priority-list1default lowRouter(config)#interfaceRouter(config-if)#Ethernet0priority-groupRouter(config-if)#1exitRouter(config)#endRouter#
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 ...