3560 qos: mls qos cos vs set dscp in policy-map

From: Hobbs (deadheadblues@gmail.com)
Date: Tue Sep 23 2008 - 23:45:23 ART


Hello,

I have this topology:

        cat3 cat1 cat2
r5--->3560-->3550--->3560--->R1

R5 is connected to port f0/5 on cat3
cat3 and cat1 connect via port f0/22
cat1 and cat2 connect via port f0/23
R1 is connected to port f0/1 on cat2

I am trying to get traffic from R5 marked as cos5 and show up in the stats
on cat2 with "show mls qos interface f0/23 stat"

This configuration does not do it on cat3:

interface FastEthernet0/5
 switchport access vlan 124
 switchport mode access
 mls qos cos 5

But this configuration does:

class-map match-all IP_ANY
  match access-group name ANY
!
policy-map MARKR5
  class IP_ANY
   set dscp cs5
!
interface FastEthernet0/5
 switchport access vlan 124
 switchport mode access
 service-policy input MARKR5

I am trusting with "mls qos trust cos" on all ports. This is my output when
using the policy-map:

  cos: incoming
-------------------------------

  0 - 4 : 2990 0 0 0 0
  5 - 7 : 200 0 1702

Why doesn't the "mls qos cos 5" mark traffic? This is from the command ref
12.2:

" Assign a default CoS value to a port. If packets are untagged, the default
CoS value becomes the packet CoS value. "

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sat Oct 04 2008 - 09:26:19 ART