Globally Define the Classification Methods

Step 1: Globally Define the Classification Methods

Router(config)# access-list 101 permit ip any any precedence internet Creates an ACL to define interesting traffic.


Step 2: Assign Traffic for Individual Queues

Router(config)# priority-list 5 protocol ip high list 101 Assigns access list 101 to specify traffic to the "high" priority queue.
Router(config)# priority-list 5 protocol ip medium tcp 22 Assigns TCP port 22 traffic to the "medium" priority queue.
Router(config)# priority-list 5 protocol ip medium tcp 23 Assigns TCP port 23 traffic to the "medium" priority queue.
Router(config)# priority-list 5 protocol ip normal tcp 123 Assigns TCP port 123 traffic to the "normal" priority queue.
Router(config)# priority-list 5 default low Defines a default queue for traffic not specified in another queue.


Step 3: Optionally Establish the Packet Limit for Each Queue

Router(config)# priority-list 5 queue-limit 20 40 60 100 Specifies the maximum number of packets for each queue.


Note

No packet in a priority queue is sent until all higher priority queues are empty. This can result in the starvation of the lower priority queues.


Step 4: Apply the Priority Queuing List to an Interface

Router(config)# interface serial0/0 Enters interface programming mode.
Router(config-if)# priority-group 5 Applies the priority list.