HP-UX IPQoS A.01.00 Administrator's Guide (October 2005)

Table Of Contents
HP-UX IPQoS Configuration Files
Creating an HP-UX IPQoS Configuration File
Chapter 4 61
Creating an HP-UX IPQoS Configuration File
The following procedure provides a simple example of how to create an HP-UX IPQoS
configuration file.
In this example, outbound traffic on lan0 and lan1 must adhere to the policy
limit_ftp_policy for all traffic that matches the filter limit_ftp_filter. The effective
result of loading this configuration file is to allow outbound ftp traffic at most 25% of the
available network bandwidth on lan0 and lan1 respectively.
Use this procedure as a general guideline and modify as needed for your specific configuration
file.
Step 1. Open a file using a text editor such as vi. For example, at the prompt, enter:
#vi ftp_mgmt.qosconf
Step 2. Within the file, create filter blocks for all the traffic classes you need to define. Add
lines to the file similar to the following:
####
## define a filter called limit_ftp_filter
####
filter limit_ftp_filter {
srcportlo 20
srcporthi 21
priority 1
}
This example defines one filter, limit_ftp_filter. As defined, all ftp traffic will
match this filter.
Step 3. Within the file, create policy blocks for all the actions you need to apply to various
filters. Add lines to the file similar to the following:
####
## define a policy called limit_ftp_policy
####
policy limit_ftp_policy {
uses limit_ftp_filter
max 25%
}