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

Table Of Contents
HP-UX IPQoS Configuration Files
Configuration File Syntax
Chapter 458
Configuration File Syntax
This section provides a simple example of a valid HP-UX IPQoS configuration file and several
general rules that apply to HP-UX IPQoS configuration files. For more specific syntax
information, See “Filter Blocks” on page 64, “Policy Blocks” on page 71, and “Adapter Blocks”
on page 76.
A sample configuration file follows. In this example, outbound ftp traffic on lan0 will have
reserved a minimum of 20% of the available bandwidth and up to a maximum of 30% of
available bandwidth. To accomplish this, the example defines the filter manage_ftp_f, which
is used by the policy manage_ftp_p, which is used by (assigned to) lan0.
########
# Sample file for managing outbound ftp traffic
#
####
# all ftp traffic will match the following filter
##
filter manage_ftp_f { #Filter Block
srcportlo 20
srcporthi 21
priority 1
}
####
# For all outbound ftp traffic (that is traffic that matches
# filter manage_ftp_f) reserve 20% of lan0’s outbound bandwidth
# and only allow a maximum of 30% of lan0’s available bandwidth
# to outbound ftp traffic.
##
policy manage_ftp_p { #Policy Block
uses manage_ftp_f
res 20%
max 30%
}
adapter lan0 { #Adapter Block
uses manage_ftp_p
}
####
As seen in the example, information in a configuration file falls into one of three block types,
or is a comment. The three block types are filter, policy and adapter. The purpose of the blocks
is as follows:
Filter blocks define traffic classes. Keywords identify specific attributes of a filter.