I've written the below config for the following network topology:
6509 switch acting as collapsed core for data access switches, voice access switches and wifi access switches. The 6509 then connects to a cisco edge router which then connects to the ISP MPLS network.
I want to first mark voice packets coming from the access switch, then prioritise them as they pass through the 6509 up to the router and then prioritise them once more while they pass through the router and onto the mpls network.
Will my code work?
Marking the voice packets on the core switch:
class-map match-all Mark_Voice match access-group 107 ! policy-map MARK_VOIP class Mark_Voice set ip dscp ef ! int port-channel 2 service-policy input MARK_VOIP
Then on the router facing interface of the core switch I want to prioritise VOICE packets:
class-map match-all SWITCH_to_ROUTER_Voice match dscp ef ! policy-map Voice class SWITCH_to_ROUTER_Voice priority 6200 set ip dscp ef class class-default fair-queue random-detect ! int gi 1/1/1: service-policy output Voice
Finally when the voice packets get to the WAN interface of the Router, prioritise again:
class-map match-all MPLS_Voice match dscp ef ! policy-map MPLS_Voice class MPLS_Voice priority 6200 set ip dscp ef class class-default fair-queue random-detect ! int gi 0/0/0: service-policy output MPLS_Voice