Technical Tip: VLAN CoS marking with firewall policy and traffic shaping policy
Description | This article describes how to configure VLAN CoS Marking in various scenarios. |
Scope | FortiOS. |
Solution | To affect how network devices, such as switches, handle traffic, VLAN CoS (Class of Service) marking gives Ethernet frames inside an 802.1Q tagged frame a priority number (0–7). VLAN CoS Marking can be configured in different ways. Here is how to configure it, referring to FortiOS v7.6.4 and the newest releases.
 All traffic matching the policy will be correctly marked with CoS equal to <value>. Â
 All traffic matching the traffic shaping policy will be marked with CoS equal to <3-bit_binary>. As explained in the documentation, VLAN CoS matching on a traffic shaping policy, anything defined in the firewall shaping-policy takes precedence over anything configured in the firewall policy if a specific session matches both the firewall policy and the firewall shaping-policy.  However, it is important to understand that firewall shaping-policy overrides firewall policy configuration, even if CoS is not enabled in the shaper. If traffic matches a traffic shaping policy, even if CoS is not configured in it, CoS marking will not work.  In this case, traffic will be marked with CoS equal to 5, according to the firewall policy.
|
