05-11-2016
04:59 AM
- last edited on
03-25-2019
04:38 PM
by
ciscomoderator
Im working with WS-C2960X-24TS-L IOS 15.0(2a)EX5 trying to set cos incoming traffic in a port. I try to use follow configuration, later used in a C4900M:
class-map match-all c1
!
policy-map pm1
class c1
set cos 7
interface GigabitEthernet1/1
service-policy input pm1
But when I try to use the line set cos 7, is unavailable in C2960, I try it in a 3560X same thing, command not available.
How can I set cos value for layer 2 in this Switch, better if I can set it for output traffic in a trunk port for specific VLAN.
Solved! Go to Solution.
05-11-2016 05:39 AM
mls qos cos 7 --- set this at the access port if your trying to mark the port as cos 7 , if the device is already marking at the source like a phone just set the port to trust the marking ---mls qos trust cos
You will need to enable mls globally as well and make sure it has the mapping from cos to dscp (mls qos map cos-dscp 0 8 16 24 32 46 48 56) and then set the trunk uplink as either mls qos trust cos or dscp if its going to layer 3 device
05-11-2016 05:39 AM
mls qos cos 7 --- set this at the access port if your trying to mark the port as cos 7 , if the device is already marking at the source like a phone just set the port to trust the marking ---mls qos trust cos
You will need to enable mls globally as well and make sure it has the mapping from cos to dscp (mls qos map cos-dscp 0 8 16 24 32 46 48 56) and then set the trunk uplink as either mls qos trust cos or dscp if its going to layer 3 device
05-11-2016 06:24 AM
Mark thank you very much for your fast reply, one more question about the subject, do I must configure mls qos cos 7 and mls qos cos override to mark all incoming packets in the port or only with mls qos cos 7 is enough.
Thanks in advance.
Fernando
05-11-2016 06:41 AM
Hi you will only require the override statement if the source device connected is marking with some other Cos value like cos 3 , if the source device is not marking at all there's no requirement for it
So if it was a Cisco phone it would mark on the phone itself as 5 as an example and send to the port , if you wanted cos 7 you would set the value and then use the override as well
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide