1.基本的GTS,在接口模式下。
traffic-shape rate ?
2.擴展的GTS,先定義ACL,然後在接口模式下應用,只能應用在出方向。
access-list 100 permit ip any host 192.168.10.1 //定義從哪太服務器進來的流量
traffic-shape group ?
show traffic-shape f0/0
show traffic-shape statistics
show traffic-shape queue
----------------------------
1.基本CAR
rate-limit input|output 8000000 2000 4000 conform-action 動作 exceed-action 動作
2.擴展的CAR
access-list 100 permit ip any host 192.168.10.1
rate-limit input|output access-group ******* 後面和基本CAR一樣。
show inter f0/0 rate-limit
-------------------------------
GTS 和CAR基於類映射表的配置
1.
access-list 100 permit ip any host 192.168.10.1
2.
class-map match-all 類圖名
match access-group 100
match ?
3.
policy-map 策略名
class 類圖名
配置GTS
shape average ?
配置CAR
police *******
inter f0/0
service-policy output 策略名
show policy-map 策略名
-----------------------------
配置CBWFQ,用於帶寬的保證。
在調用class map 後定義CBWFQ
bandwidth *******************
CBWFQ只能應用在出方向