接上一篇的的实验

QoS CAR 和GTS实验

 

 

 

将R1

的配置改成如下:

 

<R1> dis cu

#

 version 5.20, Alpha 1011

#

 sysname R1

#

 password-control login-attempt 3 exceed lock-time 120

#

 undo voice vlan mac-address 00e0-bb00-0000

#

 ipsec cpu-backup enable

#

 undo cryptoengine enable

#

 domain default enable system

#

 qos pql 1 queue middle queue-length 30

 qos pql 1 queue normal queue-length 30

 qos pql 1 queue bottom queue-length 20

 qos pql 1 protocol ip acl 3001 queue top

 qos pql 1 protocol ip acl 3000 queue bottom

#

vlan 1

#

domain system   

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

acl number 3000

 rule 0 permit ip source 172.16.1.1 0 destination 192.168.1.1 0

 rule 1 deny ip

acl number 3001

 rule 0 permit ip source 172.16.1.2 0 destination 192.168.1.1 0

 rule 1 deny ip

#

interface Serial0/6/0

 link-protocol ppp

 ip address 10.0.0.1 255.255.255.252

 qos pq pql 1

 qos qmtoken 1

#

interface Serial0/6/1

 link-protocol ppp

 ip address 10.0.0.5 255.255.255.252

#

interface Serial0/6/2

 link-protocol ppp

#

interface Serial0/6/3

 link-protocol ppp

#

interface NULL0

#

interface LoopBack0

 ip address 172.16.1.1 255.255.255.255

#

interface Ethernet0/4/0

 port link-mode bridge

#

interface Ethernet0/4/1

 port link-mode bridge

#

interface Ethernet0/4/2

 port link-mode bridge

#

interface Ethernet0/4/3

 port link-mode bridge

#

interface Ethernet0/4/4

 port link-mode bridge

#

interface Ethernet0/4/5

 port link-mode bridge

#

interface Ethernet0/4/6

 port link-mode bridge

#

interface Ethernet0/4/7

 port link-mode bridge

#

 ip route-static 0.0.0.0 0.0.0.0 Serial0/6/0

 ip route-static 0.0.0.0 0.0.0.0 Serial0/6/1

#

 load xml-configuration

#

user-interface con 0

user-interface vty 0 4

#

 

 

 

这时就完成报PQ的相关配置:

 

说明:将两条ACL的流量设置不同的报文优先级top bottom ,并更改队列的长度。

 

 

 

 

<R1>

<R1>dis qos pq interface s0/6/0

Interface: Serial0/6/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0 

Output queue : (Priority queuing : PQL 1 Size/Length/Discards)

Top:  0/20/0    Middle:  0/30/0    Normal:  0/30/0    Bottom:  0/20/0    

<R1>

<R1>dis qos pql 1

Current PQL Configuration:

List  Queue  Params

------------------------------------------------------

1     Middle Length 30

1     Normal Length 30

1     Bottom Length 20

1     Top    Protocol ip acl 3001 

1     Bottom Protocol ip acl 3000 

<R1>

<R1>

<R1>