home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Configure a QoS policy and attach it to an interface

An example of how to create a basic QoS policy and attach it to an interface.

For all QoS configurations, there must be at least one QoS policy.

To have any effect, a QoS policy must be attached to an interface. You can attach a QoS policy to multiple interfaces. Each interface can only have one QoS policy attached to it.

  1. Define a policy.
    user@system# set policy qos name policy-1 shaper
  2. Specify a profile and bandwidth for the policy.
    user@system# set policy qos name policy-1 shaper profile def bandwidth 3mbit
  3. Assign the profile to receive non-classified traffic. That is, default traffic.
    user@system# set policy qos name policy-1 shaper default def
  4. Attach the policy to a dataplane interface.
    For platforms in router mode:
    user@system# set interfaces dataplane dp0s3 policy qos policy-1
    For platforms in switch mode:
    user@system# set interfaces dataplane dp0ce10 switch-group port-parameters policy qos policy-1
  5. Commit the configuration.
    user@system# commit
  6. Optional: Switch to operational mode and view the configuration, to check that the policy is created and attached to an interface as you expect.
    user@system:~$ show policy qos
    For the router mode example, the output will be similar to this:
    Interface	TC	Counters
    -------------------------------------
    dp0s3		0		0 Bytes
    				0 Packets
    				0 Tail-drop
    				0 RED-drop
    		1		0 Bytes
    				0 Packets
    				0 Tail-drop
    				0 RED-drop
    		2		0 Bytes
    				0 Packets
    				0 Tail-drop
    				0 RED-drop
    		3		0 Bytes
    				0 Packets
    				0 Tail-drop
    				0 RED-drop

    For the switch mode example, the output would be the same except with interface dp0ce10 instead.

The QoS policy is created and attached to an interface.