如何做到路由器限速 让网络更加合理

网络 路由交换
其实很多用户在是使用路由器过程中,很不注重路由器限速问题,对路由器进行限速,能够很好的安排我们的网络流量,上网的同时也不影响下载速度。

怎样才能进行有效的路由器限速?让我们的网络更加的合理,前一段时间一直有客户问我路由器可不可以做到限制内部某些机子的下行速率,我很自然的答了句:可以做路由器限速的,其实限速肯定是可以的,但是需要考虑一个具体的问题。

一般接入路由器都作了地址转换,但是了解到路由器的操作步骤会发现如下的执行步骤:check input rate limits ------->nat outside to inside------->check output rate limits,所以针对内部部分主机做路由器限速策略,由于必须在ACL里面指定inside local 地址,所以应该在内网接口上应用service-policy output xxx,而不是在外网接口上的service-policy input xxx!下面是一个具体路由器配置例子:

 

  1. Router#sh run  
  2. Building configuration...  
  3. Current configuration : 1026 bytes  
  4. !  
  5. version 12.2  
  6. service timestamps debug datetime msec  
  7. service timestamps log datetime msec  
  8. no service password-encryption  
  9. !  
  10. hostname Router  
  11. !  
  12. !  
  13. ip subnet-zero  
  14. !  
  15. !  
  16. no ip domain lookup  
  17. !  
  18. !  
  19. class-map match-all test-class  
  20. match access-group 100  
  21. !  
  22. !  
  23. policy-map speed  
  24. class test-class  
  25. police cir 80000 bc 32000  
  26. conform-action transmit  
  27. exceed-action drop  
  28. interface FastEthernet0/0  
  29. ip address 192.168.1.111 255.255.255.0  
  30. ip nat outside  
  31. duplex auto  
  32. speed auto  
  33. !  
  34. interface FastEthernet0/1  
  35. ip address 172.16.1.1 255.255.255.0  
  36. ip nat inside  
  37. duplex auto  
  38. speed auto  
  39. service-policy output speed  
  40. !  
  41. ip nat inside source list 1 interface FastEthernet0/0 overload  
  42. !  
  43. ip classless  
  44. ip route 0.0.0.0 0.0.0.0 192.168.1.1  
  45. no ip http server  
  46. !  
  47. !  
  48. access-list 1 permit any  
  49. access-list 100 deny ip any host 172.16.1.100  
  50. access-list 100 permit ip any any  
  51. !  
  52. line con 0  
  53. line aux 0  
  54. line vty 0 4  
  55. !  
  56. !  
  57. end  
  58.  

 

责任编辑:王晓东 来源: 计世网
相关推荐

2011-09-14 17:16:14

2013-07-15 10:45:42

2011-08-08 09:10:09

2009-12-03 11:04:57

路由器限速

2009-11-23 14:37:47

路由器设置方法

2009-12-16 14:05:51

路由器故障分析

2011-08-29 17:55:25

2011-09-08 11:15:51

思科路由器如何限速路由器设置思科路由器

2009-12-01 11:19:02

路由器IP限制

2009-12-14 11:18:59

无线路由器

2009-11-19 15:10:23

路由器设置

2010-08-05 11:00:15

2009-12-03 14:16:36

思科路由器

2010-08-04 10:26:24

路由器

2010-08-13 10:24:03

思科路由器限速

2010-08-04 11:30:33

路由器设置

2012-06-05 09:34:47

2009-11-09 15:35:47

2009-12-08 13:02:12

2010-08-06 10:33:32

思科路由器限速
点赞
收藏

51CTO技术栈公众号