国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

如何在路由器上做上網下行限速

2019-11-05 00:30:04
字體:
來源:轉載
供稿:網友

  前一段時間一直有客戶問我路由器可不可以做到限制內部某些機子的下行速率,我很自然的答了句:可以做限速的。其實限速肯定是可以的,但是需要考慮一個具體的問題。
  
  一般接入路由器都作了地址轉換,但是了解到路由器的操作步驟會發現如下的執行步驟:
  check input rate limits ------->nat outside to inside------->check output rate limits
  所以針對內部部分主機做限速策略,由于必須在ACL里面指定inside local 地址,所以應該在內網接口上應用service-policy output xxx,而不是在外網接口上的service-policy input xxx!
  下面是一個具體的例子:
  Router#sh run
  Building configuration...
  
  Current configuration : 1026 bytes
  !
  version 12.2
  service timestamps debug datetime msec
  service timestamps log datetime msec
  no service passWord-encryption
  !
  hostname Router
  !
  !
  ip subnet-zero
  !
  !
  no ip domain lookup
  !
  !
  class-map match-all test-class
  match access-group 100
  !
  !
  policy-map speed
  class test-class
  police cir 80000 bc 32000
  conform-action transmit
  exceed-action drop
  !
  !
  !
  !
  !
  interface FastEthernet0/0
  ip address 192.168.1.111 255.255.255.0
  ip nat outside
  duplex auto
  speed auto
  !
  interface FastEthernet0/1
  ip address 172.16.1.1 255.255.255.0
  ip nat inside
  duplex auto
  speed auto
  service-policy output speed
  !
  ip nat inside source list 1 interface FastEthernet0/0 overload
  !
  ip classless
  ip route 0.0.0.0 0.0.0.0 192.168.1.1
  no ip http server
  !
  !
  access-list 1 permit any
  access-list 100 deny ip any host 172.16.1.100
  access-list 100 permit ip any any
  !
  line con 0
  line aux 0
  line vty 0 4
  !
  !
  end

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 恩平市| 焦作市| 连城县| 桂平市| 德昌县| 利辛县| 通化县| 邹平县| 台中市| 彭州市| 石嘴山市| 四平市| 宜都市| 边坝县| 谢通门县| 乌兰浩特市| 盱眙县| 利川市| 高雄市| 金昌市| 克拉玛依市| 永仁县| 宾川县| 资兴市| 宣恩县| 稷山县| 开封县| 陆川县| 磐安县| 沁水县| 临安市| 武陟县| 望奎县| 昌宁县| 法库县| 济阳县| 眉山市| 盐源县| 扬中市| 桐乡市| 鄂托克前旗|