This example shows how a network administrator can provide equal access to the Internet (or other external network) to different departments within a company. Each of four departments has its own Class B subnet that is allocated 25 percent of the available bandwidth on the port accessing the Internet.
- 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 the class finance_dept.
- Select QoS > DiffServ > Advanced > Class Configuration.
A screen similar to the following displays.

- Enter the following information:
- In the Class Name field, enter finance_dept.
- In the Class Type list, select All.
- Click Add to create a new class finance_dept.
- Click the finance_dept to configure this class.

- Under Diffserv Class Configuration, enter the following information:
- In the Source IP Address field, enter 172.16.10.0.
- In the Source Mask field, enter 255.255.255.0.
- Click Apply.
- Select QoS > DiffServ > Advanced > Class Configuration.
- Create the class marketing_dept:
- Select QoS > DiffServ > Advanced >Class Configuration.
A screen similar to the following displays.

- Enter the following information:
- In the Class Name field, enter marketing_dept.
- In the Class Type list, select All.
- Click Add to create a new class marketing_dept.
- Click marketing_dept to configure this class.

- Under Diffserv Class Configuration, enter the following information:
- In the Source IP Address field, enter 172.16.20.0.
- In the Source Mask field, enter 255.255.255.0.
- Click Apply.
- Select QoS > DiffServ > Advanced >Class Configuration.
- Create the class test_dept:
- Select QoS > DiffServ > Advanced >Class Configuration.
A screen similar to the following displays.

- Enter the following information:
- In the Class Name field, enter test_dept.
- In the Class Type list, select All.
- Click Add to create a new class test_dept.
- Click test_dept to configure this class.

- Under Diffserv Class Configuration, enter the following information:
- In the Source IP Address field, enter 172.16.30.0.
- In the Source Mask field, enter 255.255.255.0.
- Click Apply.
- Select QoS > DiffServ > Advanced >Class Configuration.
- Create class development_dept.
- Select QoS > DiffServ > Advanced > Class Configuration.
A screen similar to the following displays.

- Enter the following information:
- In the Class Name field, enter development_dept.
- In the Class Type list, select All.
- Click the Add to create a new class development_dept.
- Click development_dept to configure this class.

- Under Diffserv Class Configuration, enter the following information:
- In the Source IP Address field, enter 172.16.40.0.
- In the Source Mask field, enter 255.255.255.0.
- Click Apply.
- Select QoS > DiffServ > Advanced > Class Configuration.
- Create a policy named internet_access and add the class finance_dept to it.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Enter the following information:
- In the Policy Selector field, enter internet_access.
- In the Member Class list, select the finance_dept.
- Click Add to create a new policy internet_access.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Add the class marketing_dept into the policy internet_access.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Under Policy Configuration, scroll down and select the internet_access check box. internet_access now appears in the Policy Selector field at the top.
- In the Member Class list, select marketing_dept.
- Click Apply to add the class marketing_dept to the policy internet_access.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Add the class test_dept into the policy internet_access.
- Select QoS > DiffServ > Advanced >Policy Configuration.
A screen similar to the following displays.

- Under Policy Configuration, scroll down and select the internet_access check box.
Internet_access now appears in the Policy Selector field at the top.
- In the Member Class list, select test_dept.
- Click Apply to add the class test_dept to the policy internet_access.
- Select QoS > DiffServ > Advanced >Policy Configuration.
- Add the class development_dept into the policy internet_access.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Under Policy Configuration, scroll down and select the internet_access check box.
Now internet_access appears in the Policy Selector field at the top.
- In the Member Class list, select development_dept.
- Click Apply to add the class development_dept to the policy internet_access.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Assign queue 1 to finance_dept.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Click the internet_access check box for the member class finance_dept.
A screen similar to the following displays.

- In the Assign Queue list, select 1.
- Click Apply.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Assign queue 2 to marketing_dept.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Click the internet_access check box for marketing_dept.
A screen similar to the following displays.

- In the Assign Queue list, select 2.
- Click Apply.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Assign queue 3 to test_dept.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Click the internet_access check mark for test_dept.
A screen similar to the following displays.

- In the Assign Queue list, select 3.
- Click Apply.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Assign queue 4 to development_dept.
- Select QoS > DiffServ > Advanced > Policy Configuration.
A screen similar to the following displays.

- Click the internet_access check mark for development_dept.
A screen similar to the following displays.

- In the Assign Queue list, select 4.
- Click Apply.
- Select QoS > DiffServ > Advanced > Policy Configuration.
- Attach the defined policy to interfaces 1/0/1 through 1/0/4 in the inbound direction.
- Select QoS > DiffServ > Advanced > Service Configuration.
A screen similar to the following displays.

- Scroll down and select the check boxes for interfaces 1/0/1, 1/0/2, 1/0/3, and 1/0/4.
- In the Policy In list, select internet_access.
- Click Apply.
- Select QoS > DiffServ > Advanced > Service Configuration.
- Set the CoS queue 1 configuration for interface 1/0/5.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
A screen similar to the following displays.

- Scroll down and select the Interface 1/0/5 check box.
Now 1/0/5 appears in the Interface field at the top.
- In the Queue ID list, select 1.
- In the Minimum Bandwidth field, enter 25.
- Click Apply.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
- Set the CoS queue 2 configuration for interface 1/0/5.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
A screen similar to the following displays.

- Under Interface Queue Configuration, scroll down and select the interface 1/0/5 check box.
Now 1/0/5 appears in the Interface field at the top.
- In the Queue ID list, select 2.
- In the Minimum Bandwidth field, enter 25.
- Click Apply.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
- Set the CoS queue 3 configuration for interface 1/0/5.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
A screen similar to the following displays.

- Under Interface Queue Configuration, scroll down and select the interface 1/0/5 check box.
Now 1/0/5 appears in the Interface field at the top.
- In the Queue ID list, select 3.
- In the Minimum Bandwidth field, enter 25.
- Click Apply.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
- Set the CoS queue 4 configuration for interface 1/0/5.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
A screen similar to the following displays.

- Under Interface Queue Configuration, scroll down and select the Interface 1/0/5 check box.
Now 1/0/5 appears in the Interface field at the top.
- In the Queue ID list, select 4.
- In the Minimum Bandwidth field, enter 25.
- Click Apply.
- Select QoS > CoS > Advanced > Interface Queue Configuration.
For more information, see the following support articles:
- What is differentiated services (DiffServ) and how does it work with my managed switch?
- How do I configure Differentiated services (DiffServ) 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