Using Custom Queuing
Problem
You want to configure Custom Queuing on an interface to give different traffic streams a share of the bandwidth according to their IP Precedence levels.
Solution
Implementing Custom Queuing on a router is a two-step procedure. First, you must define the traffic types that will populate your queues. And then you apply the queuing method to an interface:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list
103
permit ip any any precedence
Router(config)#
5
access-list
104
permit ip any any precedence
Router(config)#
4
access-list
105
permit ip any any precedence
Router(config)#
3
access-list
106
permit ip any any precedence
Router(config)#
2
access-list
107
permit ip any any precedence
Router(config)#
1
queue-list 1 protocol ip
3
list
Router(config)#
103
queue-list 1 protocol ip
4
list
Router(config)#
104
queue-list 1 protocol ip
5
list
Router(config)#
105
queue-list 1 queue 5 byte-count 3000 limit 55
Router(config)#queue-list 1 protocol ip
6
list
Router(config)#
106
queue-list 1 protocol ip
7
list
Router(config)#
107
queue-list 1 default 8
Router(config)#interface
Router(config-if)#
HSSI0/0
custom-queue-list
Router(config-if)#
1
exit
Router(config)#end
Router#
Discussion
When you enable Custom Queuing, the router automatically creates 16 queues for application traffic plus one more for system requirements. You can look at the queues with a normal show interface command:
Router#show interface
Ethernet0 ...
Ethernet0
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.