Friday, 17 January 2025

Cisco Bandwidth Limit

 Switch# configure terminal
Switch(config)# qos
Switch(config)# class-map match-all CLASS_ALL
Switch(config-cmap)# match any
Switch(config-cmap)# exit



Switch(config)# interface GigabitEthernet1/0/1
Switch(config-if)# service-policy input POLICY_LIMIT_150MB
Switch(config-if)# exit


Switch(config)# interface GigabitEthernet1/0/1
Switch(config-if)# service-policy output POLICY_LIMIT_150MB
Switch(config-if)# exit


Switch(config)# policy-map POLICY_LIMIT_100MB
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# police cir 100000000 bc 3125000 conform-action transmit exceed-action drop
Switch(config-pmap-c)# exit

Switch(config)# policy-map POLICY_LIMIT_900MB
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# police cir 900000000 bc 28125000 conform-action transmit exceed-action drop
Switch(config-pmap-c)# exit

Switch(config)# policy-map POLICY_LIMIT_850MB
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# police cir 850000000 bc 26562500 conform-action transmit exceed-action drop
Switch(config-pmap-c)# exit


Switch(config)# policy-map POLICY_LIMIT_150MB
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# police cir 150000000 bc 4687500 conform-action transmit exceed-action drop
Switch(config-pmap-c)# exit




Switch(config)# interface GigabitEthernet1/0/1
Switch(config-if)# service-policy input POLICY_LIMIT_850MB
Switch(config-if)# exit


Switch(config)# interface GigabitEthernet1/0/1
Switch(config-if)# service-policy output POLICY_LIMIT_850MB
Switch(config-if)# exit


Switch# show policy-map interface GigabitEthernet1/0/1

Switch# show policy-map interface




No comments:

Post a Comment