Cisco Catalyst Switch QOS
!-- Enable QOS mls qos !-- Map COS values to DSCP !-- Each position represents a COS value 0-7. e.g COS0= DSCP0, COS5=DSCP46, COS7=DSCP56 mls qos map cos-dscp 0 8 16 26 32 46 48 56 !-- Map DSCP to COS mls qos map dscp-cos 1 2 3 4 5 to 0 mls qos map dscp-cos 8 9 10 11 12 to 1 mls qos map dscp-cos 46 to 5 !-- Configure Trusts on an interface !-- Usually used with cisco phones (cdp must be enabled) interface Fa0/10 mls qos trust device cisco-phone interface Fa0/11 mls qos trust ip-precedence interface Fa0/12 mls qos trust dscp interface Fa0/13 mls qos trust cos !-- Configuring Weighted Round Robin (WRR) Queuing on an interface. !-- In this example (very standard config) !-- COS values 0, 1 & 2 will go into standard Q #1 !-- COS values 3 & 4 will go into standard Q #2 !-- COS values 6 & 7 will go into standard Q #3 !-- COS values 5 will go into priority Q #5 ! !-- The 'bandwidth' statement sets % of the bandwidth in round robin fashion !-- Q#1 = 10% of the bandwidth !-- Q#2 = 20% of the bandwidth !-- Q#3 = 70% of the bandwidth !-- Q#4 = Priority queue due to the 'priority-queue out' command interface Fa0/10 wrr-queue cos-map 1 0 1 2 wrr-queue cos-map 2 3 4 wrr-queue cos-map 3 6 7 wrr-queue cos-map 4 5 wrr-queue bandwidth 10 20 70 1 priority-queue out !-- Statically assign a COS value to a port interface Fa0/10 mls qos cos 4





Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: