Fortinet Document Library

Version:

Version:

Version:


Table of Contents

Administration Guide

Download PDF
Copy Link

Configuring traffic class IDs

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, select the Traffic Shaping Policies tab.
  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.
  7. Select the newly created class ID.
  8. Configure the rest of the policy as needed.
  9. Click OK.
To configure the traffic class ID in a traffic shaping profile:
  1. Go to Policy & Objects > Traffic Shaping, select the Traffic Shaping Profiles tab.
  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 to configure a new class ID (see steps in the previous example), or select an existing class ID from the Traffic shaping class ID dropdown.

  5. Configure the guaranteed bandwidth, maximum bandwidth, and priority settings.
  6. Click OK to apply the class ID.
  7. Click OK to save the traffic shaping 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 do one of the following:
    • Select an existing profile from the dropdown.
    • Click Create to make a new profile and follow the steps in the previous example to configure the profile and class ID.

  4. Enable Outbound Bandwidth and enter a value.
  5. Configure the rest of the interface as needed.
  6. 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

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, select the Traffic Shaping Policies tab.
  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.
  7. Select the newly created class ID.
  8. Configure the rest of the policy as needed.
  9. Click OK.
To configure the traffic class ID in a traffic shaping profile:
  1. Go to Policy & Objects > Traffic Shaping, select the Traffic Shaping Profiles tab.
  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 to configure a new class ID (see steps in the previous example), or select an existing class ID from the Traffic shaping class ID dropdown.

  5. Configure the guaranteed bandwidth, maximum bandwidth, and priority settings.
  6. Click OK to apply the class ID.
  7. Click OK to save the traffic shaping 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 do one of the following:
    • Select an existing profile from the dropdown.
    • Click Create to make a new profile and follow the steps in the previous example to configure the profile and class ID.

  4. Enable Outbound Bandwidth and enter a value.
  5. Configure the rest of the interface as needed.
  6. 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