今日共享cisco路由器怎么对于一些ip限制速率
1、设定ACL
access-list 102 permit ip host 192.168.10.2 any
access-list 102 permit ip any host 192.168.10.2
access-list 103 permit ip host 192.168.10.3 any
access-list 103 permit ip any host 192.168.10.3
2、界定类
class-map match-all 102
match access-group 102
class-map match-all 103
match access-group 103
3、将类添加对策中
policy-map xiansu
class 102
police 1024000 128000 conform-action transmit exceed-action drop
class 103
police 1024000 128000 conform-action transmit exceed-action drop
4、将对策添加端口号中
interface FastEthernet0/0
service-policy input xiansutest
service-policy output xiansutest
对于某一子网开展速度限制(限制的是总网络带宽)
(1)设定ACL
access-list 110 permit ip 192.168.10.0 0.0.0.255 any
access-list 102 permit ip any 192.168.10.0 0.0.0.255
(2)界定类
class-map match-all 110
match access-group 110
(3)设定对策
policy-map xiansu110
class 110
police 10240000 1280000 conform-action transmit exceed-action drop
(4)将对策添加端口号
interface FastEthernet0/0
service-policy input xiansu110
service-policy output xiansu110