- Set queue 5 on all interfaces to use strict mode.
- Select QoS > CoS > Advanced > CoS Interface Configuration.
A screen similar to the following displays.

- Under Interface Queue Configuration, select all the interfaces.
- In the Queue ID list, select 5.
- In the Scheduler Type list, select Strict.
- Click Apply to save the settings.
- Select QoS > CoS > Advanced > CoS Interface Configuration.
- Enable DiffServ.
- Select QoS > DiffServ > Basic > DiffServ Configuration.
A screen similar to the following displays.

- For Diffserv Admin Mode, select the Enable radio button.
- Click Apply to save the settings.
- Select QoS > DiffServ > Basic > DiffServ Configuration.
- Create a class class_voip.
- Select QoS > DiffServ > Advanced > DiffServ Configuration.
A screen similar to the following displays.

- In the Class Name field, enter class_voip.
- In the Class Type list, select All.
- Click Add to create a new class.
- Click class_voip.
A screen similar to the following displays:

- In the Protocol Type list, select UDP.
- Click Apply to create a new class.
- Select QoS > DiffServ > Advanced > DiffServ Configuration.
- Create a class class_ef:
- Select QoS > DiffServ > Advanced > DiffServ Configuration.
A screen similar to the following displays.

- In the Class Name field, enter class_ef.
- In the Class Type list, select All.
- Click Add to create a new class.
- Click class_ef.
Another screen similar to the following displays:

- In the IP DSCP list, select ef.
- Click Apply to create a new class.
- Select QoS > DiffServ > Advanced > DiffServ Configuration.
- Create a policy pol_voip. and add class_voip to this policy.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- In the Policy Selector field, enter pol_voip.
- In the Member Class list, select class_voip.
- Click Add to create a new policy.
- Click the pol_voip whose class member is class_voip.
A screen similar to the following displays.

- In the Assign Queue list, select 5.
- For Policy Attribute, select the Mark IP DSCP radio button, and select ef.
- Click Apply to create a new policy.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Add class_ef to the policy pol_voip.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Under Policy Configuration, scroll down and select the pol_voip check box.
Pol_voip now appears in the Policy Selector field at the top.
- In the Member Class list, select class_ef in.
- Click Apply to add the class class_ef to the policy pol_voip.
- Click the pol_voip whose class member is class_ef, and a screen similar to the following displays.

- In the Assign Queue list, select 5.
- Click Apply to create a new policy.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Attach the defined policy to interface 1/0/2 in the inbound direction.
- Select QoS > DiffServ > Advanced > Service Configuration.
A screen similar to the following displays.

- Scroll down and select the Interface 1/0/2 check box.
Now 1/0/2 appears in the Interface field at the top.
- In the Policy In list, select pol_voip.
- Click Apply to create a new policy.
- Select QoS > DiffServ > Advanced > Service Configuration.
For more information, see the following support articles:
- What is differentiated services (DiffServ) for Voice over IP (VoIP) and how does it work with my managed switch?
- How do I configure differentiated services (DiffServ) for Voice over IP (VoIP) using CLI commands on my managed switch?
This article applies to the following managed switches and their respective firmware:
- M5300 - firmware version 10.0.0.x
-
- M5300-28G (GSM7228S)
- M5300-5G (GSM7252S)
- M5300-28G3 (GSM7328Sv2h2)
- M5300-52G3 (GSM7352Sv2h2)
- M5300-28G_POE+ (GSM7228PSv1h2)
- M5300-52G-POE+ (GSM7252PSv1h2)
- M5300-28GF3 (GSM7328FSv2)
- M4100 - firmware version 10.0.1.x
-
- M4100-26G (GSM7224v2h2)
- M4100-50G (GSM7248v2h2)
- M4100-26G-POE (GSM7226Pv1h1)
- M4100-50G-POE+ (GSM7248Pv1h1)
- M4100-26G-POE (FSM7226Pv1h1)
- M4100-50-POE (FSM7250Pv1h1)
- M4100-D12G (GSM5212v1h1)
- M4100-D10-POE (FSM5210Pv1h1)
- M7100 - firmware version 10.0.1.x
-
- M7100-24X (XSM7224)
- XSM7224S - firmware version 9.0.1.x