cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
617
Views
0
Helpful
3
Replies

How to set COS in C2960X ipbase for output or input traffic

feryubero
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni

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

View solution in original post

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

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

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

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