Configuring traffic class IDs
As of FortiOS 6.2.2, you can configure traffic class IDs with a descriptive name in the GUI or CLI. Class IDs can help you correlate traffic shaping policy and profile entries.
GUI configurations
Within the GUI, there are three locations to configure the traffic class ID:
Assign Shaping Class ID replaces the Assign Group functionality in earlier versions of FortiOS. |
To configure the traffic class ID in a traffic shaping policy:
- Go to Policy & Objects > Traffic Shaping Policy.
- Edit an existing policy, or create a new one.
- In the Then: Action section, click Assign Shaping Class ID.
- In Traffic shaping class ID, click Create.
- Enter a value for the ID (integer) and a description for the Name.
- Click OK to save the class ID.
- Configure the rest of the policy as needed.
- Click OK to save the policy.
To configure the traffic class ID in a traffic shaping profile:
- Go to Policy & Objects > Traffic Shaping Profile.
- Edit an existing profile, or create a new one.
- In the Traffic Shaping Classes section, click Create New. The Select Traffic Shaping Class ID window opens.
- Click Create. The New Traffic Shaping Class ID window opens.
- Enter a value for the ID (integer) and a description for the Name.
- Click OK to save the class ID.
- Click OK to add the class ID.
- Configure the rest of the profile as needed.
- Click OK to save the profile.
To configure the traffic class ID in an interface:
- Go to Network > Interfaces.
- Edit an existing interface, or create a new one.
- In the Traffic Shaping section, enable Outbound shaping profile and Outbound Bandwidth.
- Click Create. The Create Traffic Shaping Profile window opens.
- Click Create New. The Select Traffic Shaping Class ID window opens.
- Select an existing class ID, or create a new one.
- Click OK to save the class ID.
- Click OK to add the class ID .
- Configure the rest of the interface as needed.
- Click OK to save the interface.
CLI configuration
To configure the traffic class ID in the CLI:
config firewall traffic-class edit 2 set class-name "High priority voice." next ... end