Chinaunix首页 | 论坛 | 博客
  • 博客访问: 467578
  • 博文数量: 1496
  • 博客积分: 79800
  • 博客等级: 大将
  • 技术积分: 9940
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 13:22
文章分类

全部博文(1496)

文章存档

2011年(1)

2008年(1495)

我的朋友

分类:

2008-09-09 13:32:14

用户疯狂bt(p2p软件)对网络的使用造成了极大危害,目前常用的办法是:

  方法1、采用公司的nbar来限制;

  配置步骤如下:

  ------------定义Class-map-------------;

  !
  class-map match-all bittorrent
  match protocol bittorrent
  class-map match-all edonkey
  match protocol edonkey
  !

   注意:如果match protocol命令里没有bittorrent、edonkey选项,那么说明你的IOS版本还没有包括此,此时你需要到网站上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的继续努力;

  

[1]  

【责编:Kittoy】

--------------------next---------------------

阅读(84) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~