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

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

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

一般接入路由器都作了地址转换,但是了解到路由器的操作步骤会发现如下的执行步骤: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  
 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.

 

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

2011-09-14 17:16:14

2011-08-08 09:10:09

2013-07-15 10:45:42

2009-12-03 11:04:57

路由器限速

2009-11-23 14:37:47

路由器设置方法

2009-12-16 14:05:51

路由器故障分析

2009-12-01 11:19:02

路由器IP限制

2011-08-29 17:55:25

2011-09-08 11:15:51

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

2009-11-19 15:10:23

路由器设置

2009-12-14 11:18:59

无线路由器

2012-06-05 09:34:47

2010-08-05 11:00:15

2010-08-04 10:26:24

路由器

2009-12-03 14:16:36

思科路由器

2010-08-04 11:30:33

路由器设置

2010-08-13 10:24:03

思科路由器限速

2010-08-06 10:33:32

思科路由器限速

2009-12-03 11:19:39

路由器设置路由器限速

2009-11-09 15:35:47

点赞
收藏

51CTO技术栈公众号