精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦>學(xué)習(xí)電腦>網(wǎng)絡(luò)知識(shí)>路由器>路由器設(shè)置>cisco思科>

      cisco 端口限速

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

        關(guān)于網(wǎng)友問(wèn)到cisco 的端口限速。學(xué)習(xí)啦小編整理了相關(guān)資料,供您參考。

        具體步驟:

        限速方式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

        end

        Cisco 3550 QOS 端口限速配置

        PC1接在Cisco3550 F0/1上,速率為1M;

        PC2 接在Cisco3550 F0/2上,速率為2M;

        Cisco3550的G0/1為出口。

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

        注:每個(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)訪問(wèn)控制列表

        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、定義類,并和上面定義的訪問(wèn)控制列表綁定

        Switch(config)# class-map user1-up //定義PC1上行的類,并綁定訪問(wèn)列表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上行的類,并綁定訪問(wèn)列表10

        Switch(config-cmap)# exit

        Switch(config)# class-map user1-down

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

        Switch(config-cmap)# exit

        Switch(config)# class-map user2-down

        Switch(config-cmap)# match access-group 111 //定義PC2下行的類,并綁定訪問(wèn)列表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

        !

        !

        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

        end

        interface GigabitEthernet3/1 上行接口

        ip address 192.168.168.1 255.255.255.252

        load-interval 30

        speed nonegotiate

        service-policy input Test-down

        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

        至此,配置完畢。大家是不是看暈了呢?

        以上就是小編為大家?guī)?lái)的cisco 端口限速教程方法介紹。希望大家喜歡哦!

      544971