|
以前端口限速的工作都是由上級部門來做,最近由于分公司自己的內(nèi)部客戶需求,我們要為其提供50M的帶寬.
為此我們可是煞費苦心作了兩天的測試,先來說說我們測試的設(shè)備連接情況:
思科3560端口0/47(模擬用戶)——————思科6509端口0/1、0/2(模擬局端,兩條路有上聯(lián),熱備)
測試方法在3560及6509上分別起ftp進行測速
重點來了,來說說6509上的命令吧:
mls qos aggregate-policer test 50000000 100000 conform-action transmit exceed-action drop mls qos
class-map match-any test_limite match access-group name test_addr ! ! policy-map rate-limit-uplink class test_limite police aggregate test
ip access-list extended test_addr (因為上下行都引用策略一樣因此不單獨做acl) permit ip any x.x.x.x 0.0.0.3 (分配給用戶的互聯(lián)網(wǎng)地址段A) permit ip x.x.x.x 0.0.0.3 any permit ip any x.x.x.x 0.0.0.3 (分配給用戶的互聯(lián)網(wǎng)地址段B) permit ip x.x.x.x 0.0.0.3 any
inter f0/1 ip addre x.x.x.x 255.255.255.252 service-policy input test_uplink限制上傳
inter f0/2 ip addre x.x.x.x 255.255.255.252 service-policy input test_uplink限制上傳
inter g0/47 service-policy input rate-limit-uplink限制下載
經(jīng)過測試,這個方案成功了!哈哈,慶祝慶祝,有幾點需要解釋一下,因為35和65只有在input方向才能引用策略,所以同時對上行和下載作限速需要在上聯(lián)和下載兩方向的端口上做
其次,我們中間有很多彎路,說來給大家提個醒,開始我們用的測試設(shè)備性能很低,所以始終測試不出理想的結(jié)果,很泄氣,無意中拿了班上最好的一臺電腦去測試,結(jié)果居然出人意料,后來又找了一臺高性能設(shè)備進行測試,結(jié)果非常理想,在此提醒大家,低性能的設(shè)備在測試高帶寬的時候要特別注意。
|
|
【收藏】【打印】【進入論壇】 |
|
|
|
|
|
|
|