Managing IP Quality of Service in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Define Filters in the IPQoS Configuration File

Before You Begin

The procedure assumes that you have already started file creation and have defined classes. It continues building the IPQoS configuration file that is created in How to Create the IPQoS Configuration File and Define Traffic Classes.


Note - As you create the IPQoS configuration file, be very careful to start and end each class clause and each filter clause with curly braces ({ }). For an example of the use of braces, use Example 3–1.
  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. If the IPQoS configuration file is not open, open it.
  3. Locate the end of the last class that you defined.

    For example, on the IPQoS-enabled server Goldweb, you would start after the following class clause:

    class {
            name video
            next_action markEF
            enable_stats FALSE
        }
  4. Define a filter clause to select outgoing traffic from the IPQoS system.
        filter {
            name webout
            sport 80
            direction LOCAL_OUT
            class goldweb
        }
    name webout

    Assigns the name webout to the filter.

    sport 80

    Selects traffic with a source port of 80, the usual port for HTTP (web) traffic.

    direction LOCAL_OUT

    Further selects traffic that is outgoing from the local system.

    class goldweb

    Identifies the class to which the filter belongs, in this instance, class goldweb.

    For detailed information about the filter clause in the IPQoS configuration file, refer to filter Clause.

  5. Define a filter clause to select streaming video traffic on the IPQoS system.
        filter {
            name videoout
            sport videosrv
            direction LOCAL_OUT
            class video
        }
    name videoout

    Assigns the name videoout to the filter.

    sport videosrv

    Selects traffic with a source port of videosrv, a previously defined port for the streaming video application on this system.

    direction LOCAL_OUT

    Further selects traffic that is outgoing from the local system.

    class video

    Identifies the class to which the filter belongs, in this instance, class video.

  6. Save changes to the /etc/inet/ipqosinit.conf file.