background image
310 Chapter 10: Managing Network Performance with Queuing and Compression
The highlighted line specifies that any traffic that enters the router through interface E0 be
placed in queue 6, regardless of the type of traffic it happens to be. It is placed at the top of the
list so that it is the first line processed in the list.
The processing of a queue list is line-by-line. Once a match has been found, processing of the
list stops. If the interface specific line was placed at the end of the list in Example 10-9, all traffic
entering through E0 would have been placed in other queues rather than the one specified.
As mentioned, any traffic that does not match any lines in a priority list is placed in the default
queue. For custom queuing, the default queue is queue 1, if not otherwise specified. The
command structure for assigning a default queue is as follows:
Router(config)#queue-list list-number default queue-number
Example 10-10 expands the configuration in Example 10-9 by adding the command to assign
a default queue.
The highlighted command specifies that any traffic not matching the other lines in the list be
moved to queue 5.
Example 10-9
Interface-Based Custom Queuing Example
RouterA(config)#access-list 101 permit tcp any any eq ftp
RouterA(config)#access-list 101 permit tcp any any eq ftp-data
RouterA(config)#queue-list 1 interface ethernet 0 6
RouterA(config)#queue-list 1 protocol ip 1 list 101
RouterA(config)#queue-list 1 protocol ip 2
RouterA(config)#queue-list 1 protocol ipx 3
RouterA(config)#queue-list 1 protocol Appletalk 4
RouterA(config)#interface serial 0
RouterA(config-if)#custom-queue-list 1
Example 10-10
Default Queue Configuration
RouterA(config)#access-list 101 permit tcp any any eq ftp
RouterA(config)#access-list 101 permit tcp any any eq ftp-data
RouterA(config)#queue-list 1 interface ethernet 0 6
RouterA(config)#queue-list 1 protocol ip 1 list 101
RouterA(config)#queue-list 1 protocol ip 2
RouterA(config)#queue-list 1 protocol ipx 3
RouterA(config)#queue-list 1 protocol Appletalk 4
RouterA(config)#queue-list 1 default 5
RouterA(config)#interface serial 0
RouterA(config-if)#custom-queue-list 1