源是R1,目的主机是R3,在R2上配置PQ,定义优先级队列3,使得通往R3的包中,ICMP包有最高优先级,并可以排队80个包,TCP包具有中等优先级,可以排队120个包,UDP包有最低优先级,可以排200个包。其余的可以排160个包
 
R1
conf t
int f 0/0
ip ad 10.1.1.1 255.255.255.0
no shut
router rip
ver 2
no au
net 10.0.00.0
end
 
R2
conf t
int f 0/0
ip ad 10.1.1.2 255.255.255.0
no shut
int s2/0
ip ad 10.1.2.2 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.2.3 203 b
no shut
exit
access-list 100 permit icmp host 10.1.1.1 host 10.1.2.3
access-list 101 permit tcp host 10.1.1.1 host 10.1.2.3
access-list 102 permit udp host 10.1.1.1 host 10.1.2.3
priority-list 3 protocol ip high list 100
priority-list 3 protocol ip medium list 101
priority-list 3 protocol ip low list 102
priority-list 3 queue-limit 80 120 160 200

int s2/0
priority-group 3
exit
router rip
ver 2
no au
net 10.0.0.0
end
 
R3
conf t
int s2/0
ip ad 10.1.2.3 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.2.2 302 b
no shut
router rip
ver 2
no au
net 10.0.0.0
end

校验
R2#sh queueing priority
Current DLCI priority queue configuration:
Current priority queue configuration:
List   Queue  Args
3      high   protocol ip          list 100
3      medium protocol ip          list 101
3      low    protocol ip          list 102
3      high   limit 80
3      medium limit 120
3      normal limit 160
3      low    limit 200

R2#sh int s2/0      
Serial2/0 is up, line protocol is up
 。。。。。。。。。。。。。。。。。。。。。。。。。。。。
  Queueing strategy: priority-list 3
  Output queue (queue priority: size/max/drops):
     high: 0/80/0, medium: 0/120/0, normal: 0/160/0, low: 0/200/0
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。