I'm working on testing CoS in our lab to get a handle on how it works and how we want it to work before rolling it into production. I understand how to change the p-bit on ingressing traffic that goes into a VS but I'm stuck on how to change it on a VLAN. I want to be able to change the p-bit on a per VLAN basis rather than changing it for the whole port because we may want services to have a different priority than others on the same ENNI.

Has anyone done this in their environment? Can you share what worked for you?

Try this Chelsi. Its from a QoS class that we occasionaly run.. should work ok. Basically you create a custom CoS map with all the p bit changes then apply it to the port. In the lab we remark all the streams to p0

For example this part of the command string changes pbit 3 to pbit 0 for dei0 traffic :

dot1dpri-cos 3 dot1dpri-dei 0 r-cos 0E-663 Lab 1: Ingress CoS Mapping in SAOS 6:SW1.All teams: Display the default cos map:traffic-services cos-mapping resolved-cos-map show cos-map DefaultFcosRcos

Team1:traffic-services cos-mapping resolved-cos-map create cos-map all-to-pri0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 1 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 1 dot1dpri-dei 1 r-cos 0

port set port 3 resolved-cos-map all-to-pri0 resolved-cos-remark-l2 true

Team 2:traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 2 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 2 dot1dpri-dei 1 r-cos 0

Team 3:traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 3 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 3 dot1dpri-dei 1 r-cos 0

Team 4:traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 4 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 4 dot1dpri-dei 1 r-cos 0

Team 5:traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 5 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 5 dot1dpri-dei 1 r-cos 0

Team 6:traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 6 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 6 dot1dpri-dei 1 r-cos 0

Instructor:traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 7 dot1dpri-dei 0 r-cos 0

traffic-services cos-mapping resolved-cos-map set cos-map all-to-pri0 dot1dpri-cos 7 dot1dpri-dei 1 r-cos 0

Check the port configuration: port show port 3

Display the RCOS map: traffic-services cos-mapping resolved-cos-map show cos-map all-to-pri0