Cisco認證基礎之Cisconbar限制BT方法(1)
采用Cisco公司的nbar來限制BT
配置步驟如下:
------------定義Class-map-------------;
- !
- class-map match-all bittorrent
- match protocol bittorrent
- class-map match-all edonkey
- match protocol edonkey
- !
注意:如果match protocol命令里沒有bittorrent、edonkey選項,那么說明你的IOS版本還沒有包括此協議,此時你需要到Cisco網站上下載bittorrent.pdlm、edonkey.pdlm文件,上傳到路由器上,然后定義這種協議:
ip nbar pdlm bittorrent.pdlm
ip nbar pdlm edonkey.pdlm
------------定義policy-map-------------;
- !
- policy-map limit-bt
- class bittorrent
- drop
- class edonkey
- drop
- !
------------應用到接口上--------------;
- !
- interface f0/0
- service-policy input limit-bt
- service-policy output limit-bt
- !
說明:這種方法使用后對一些p2p軟件確實起作用,但目前Cisco只定義了少數幾個協議(bittorrent、edonkey、 kazaa2、gnutella、napster、winmx、fasttrack等),不能覆蓋所有的此類軟件,這有待于Cisco的繼續(xù)努力。
限制BT的其他方法請閱讀:
【編輯推薦】