六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 網(wǎng)絡(luò)知識(shí) > 路由器 > 路由器設(shè)置 > cisco思科 > cisco交換機(jī)端口限速

cisco交換機(jī)端口限速

時(shí)間: 春健736 分享

cisco交換機(jī)端口限速

  有不少網(wǎng)友不知道cisco交換機(jī)端口限速怎么設(shè)置?下面學(xué)習(xí)啦小編為大家講解具體設(shè)置方法,供你參考!

  cisco交換機(jī)端口限速設(shè)置方法

  限速方式1: rate-limit

  例: 對(duì)GigabitEthernet 3/2端口上下行均限速為 10Mbps

  interface GigabitEthernet 3/2 //用戶接口

  rate-limit input 10000000 1000 2000 conform-action drop exceed-action

  rate-limit output 10000000 1000 2000 conform-action drop exceed-action

  限速方式2:service-policy

  例對(duì)對(duì)GigabitEthernet 3/2接口中傳送的某一段IP( 192.168.0.0 0.0.0.31) 上下行均限速為 100Mbps

  Extended IP access list 112

  permit ip any 192.168.0.0 0.0.0.31

  deny ip any any

  Extended IP access list 113

  permit ip 192.168.0.0 0.0.0.31 any

  deny ip any any

  class-map match-all Test-up

  match access-group 113

  class-map match-all Test-down

  match access-group 112

  !

  !

  policy-map Test-up

  class Test-up

  police 100000000 2000000 2000000 conform-action transmit exceed-action drop

  policy-map Test-down

  class Test-down

  police 100000000 1000000 1000000 conform-action transmit exceed-action drop

  ! 因Cisco 6509 只能制作input方向的限速,因此在用戶接口、設(shè)備的上行接口均需制作限速

  interface GigabitEthernet3/2 用戶接口

  description Test

  ip address 192.168.0.1 255.255.255.0

  speed nonegotiate

  service-policy input Test-up

  二、詳細(xì)配置過程

  注:每個(gè)接口每個(gè)方向只支持一個(gè)策略;一個(gè)策略可以用于多個(gè)接口。因此所有PC的下載速率的限制都應(yīng)該定義在同一個(gè)策略(在本例子當(dāng)中

  為policy

  1、在交換機(jī)上啟動(dòng)QOS

  Switch(config)#mls qos //在交換機(jī)上啟動(dòng)QOS

  2、分別定義PC1(10.10.1.1)和PC2(10.10.2.1)訪問控制列表

  Switch(config)#access-list 10 permit 10.10.1.0 0.0.0.255 //控制pc1上行流量

  Switch(config)#access-list 100 permit any 10.10.1.0 0.0.0.255 //控制pc1下行流量

  Switch(config)#access-list 11 permit 10.10.2.0 0.0.0.255 //控制pc2上行流量

  Switch(config)#access-list 111 permit any 10.10.2.0 0.0.0.255 //控制pc2下行流量

  3、定義類,并和上面定義的訪問控制列表綁定

  Switch(config)# class-map user1-up //定義PC1上行的類,并綁定訪問列表10

  Switch(config-cmap)# match access-group 10

  Switch(config-cmap)# exit

  Switch(config)# class-map user2-up

  Switch(config-cmap)# match access-group 11 //定義PC2上行的類,并綁定訪問列表10

  Switch(config-cmap)# exit

  Switch(config)# class-map user1-down

  Switch(config-cmap)# match access-group 100 //定義PC1下行的類,并綁定訪問列表100

  Switch(config-cmap)# exit

  Switch(config)# class-map user2-down

  Switch(config-cmap)# match access-group 111 //定義PC2下行的類,并綁定訪問列表111

  Switch(config-cmap)# exit

  4、定義策略,把上面定義的類綁定到該策略

  Switch(config)# policy-map user1-up //定義PC1上行的速率為1M

  Switch(config-pmap)# class user1-up

  Switch(config-pmap-c)# trust dscp

  Switch(config-pmap-c)# police 1024000 1024000 exceed-action drop

  Switch(config)# policy-map user2-up //定義PC2上行的速率為2M

  Switch(config-pmap)# class user2-up

  Switch(config-pmap-c)# trust dscp

  Switch(config-pmap-c)# police 2048000 1024000 exceed-action drop

  Switch(config)# policy-map user-down

  Switch(config-pmap)# class user1-down

  Switch(config-pmap-c)# trust dscp

  Switch(config-pmap-c)# police 1024000 1024000 exceed-action drop

  Switch(config-pmap-c)# exit

  Switch(config-pmap)# class user2-down

  Switch(config-pmap-c)# trust dscp

  Switch(config-pmap-c)# police 2048000 1024000 exceed-action drop

  Switch(config-pmap-c)# exit

  5、在接口上運(yùn)用策略

  Switch(config)# interface f0/1

  Switch(config-if)# service-policy input user1-up

  Switch(config)# interface f0/2

  Switch(config-if)# service-policy input user2-up

  Switch(config)# interface g0/1

  Switch(config-if)# service-policy input user-down

  學(xué)習(xí)啦小編分享了cisco交換機(jī)端口限速怎么設(shè)置的解決方法,希望大家喜歡。

566580