实验目的: 熟悉CAR 流量监管和GTS流量整形
理解QOS是如何工作的
实验拓扑
实验思路
在R2的S0/6/0上作CAR
在R1的S0/6/0上作GTS
实验配置
R1
#
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 gts acl 3000 cir 8000 cbs 15000 ebs 0 queue-length 50
qos gts acl 3001 cir 8000 cbs 15000 ebs 0 queue-length 50
#
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
#
return
R2
#
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.2 255.255.255.252
qos car inbound acl 3001 cir 8000 cbs 15000 ebs 0 green pass red discard
qos car inbound acl 3000 cir 8000 cbs 15000 ebs 0 green pass red discard
#
interface Serial0/6/1
link-protocol ppp
#
interface Serial0/6/2
link-protocol ppp
#
interface Serial0/6/3
link-protocol ppp
#
interface NULL0
#
interface LoopBack0
ip address 192.168.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
#
load xml-configuration
#
user-interface con 0
user-interface vty 0 4
#
return