Fortinet black logo

Cookbook

Configuring traffic class IDs

Copy Link
Copy Doc ID fed12558-14f5-11e9-b86b-00505692583a:812630
Download PDF

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:

Note

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:
  1. Go to Policy & Objects > Traffic Shaping Policy.
  2. Edit an existing policy, or create a new one.
  3. In the Then: Action section, click Assign Shaping Class ID.
  4. In Traffic shaping class ID, click Create.
  5. Enter a value for the ID (integer) and a description for the Name.
  6. Click OK to save the class ID.

  7. Configure the rest of the policy as needed.
  8. Click OK to save the policy.
To configure the traffic class ID in a traffic shaping profile:
  1. Go to Policy & Objects > Traffic Shaping Profile.
  2. Edit an existing profile, or create a new one.
  3. In the Traffic Shaping Classes section, click Create New. The Select Traffic Shaping Class ID window opens.
  4. Click Create. The New Traffic Shaping Class ID window opens.
  5. Enter a value for the ID (integer) and a description for the Name.
  6. Click OK to save the class ID.

  7. Click OK to add the class ID.
  8. Configure the rest of the profile as needed.
  9. Click OK to save the profile.
To configure the traffic class ID in an interface:
  1. Go to Network > Interfaces.
  2. Edit an existing interface, or create a new one.
  3. In the Traffic Shaping section, enable Outbound shaping profile and Outbound Bandwidth.
  4. Click Create. The Create Traffic Shaping Profile window opens.
  5. Click Create New. The Select Traffic Shaping Class ID window opens.
  6. Select an existing class ID, or create a new one.
  7. Click OK to save the class ID.

  8. Click OK to add the class ID .
  9. Configure the rest of the interface as needed.
  10. 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

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:

Note

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:
  1. Go to Policy & Objects > Traffic Shaping Policy.
  2. Edit an existing policy, or create a new one.
  3. In the Then: Action section, click Assign Shaping Class ID.
  4. In Traffic shaping class ID, click Create.
  5. Enter a value for the ID (integer) and a description for the Name.
  6. Click OK to save the class ID.

  7. Configure the rest of the policy as needed.
  8. Click OK to save the policy.
To configure the traffic class ID in a traffic shaping profile:
  1. Go to Policy & Objects > Traffic Shaping Profile.
  2. Edit an existing profile, or create a new one.
  3. In the Traffic Shaping Classes section, click Create New. The Select Traffic Shaping Class ID window opens.
  4. Click Create. The New Traffic Shaping Class ID window opens.
  5. Enter a value for the ID (integer) and a description for the Name.
  6. Click OK to save the class ID.

  7. Click OK to add the class ID.
  8. Configure the rest of the profile as needed.
  9. Click OK to save the profile.
To configure the traffic class ID in an interface:
  1. Go to Network > Interfaces.
  2. Edit an existing interface, or create a new one.
  3. In the Traffic Shaping section, enable Outbound shaping profile and Outbound Bandwidth.
  4. Click Create. The Create Traffic Shaping Profile window opens.
  5. Click Create New. The Select Traffic Shaping Class ID window opens.
  6. Select an existing class ID, or create a new one.
  7. Click OK to save the class ID.

  8. Click OK to add the class ID .
  9. Configure the rest of the interface as needed.
  10. 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