ip6addrpol.1m (2010 09)
i
ip6addrpol(1M) ip6addrpol(1M)
ip6addrpol - display and configure the IPv6 source and destination address selection policy table
SYNOPSIS
ip6addrpol
ip6addrpol -a prefix[/
prefixlen] precedence label
ip6addrpol -c [policyfile]
ip6addrpol -d prefix[/prefixlen]
ip6addrpol -F
ip6addrpol -R
DESCRIPTION
The ip6addrpol command is used to display or modify the IPv6 source and destination address selec-
tion policy table. If invoked without an argument, it simply displays the current policy table installed in
the kernel.
Options
ip6addrpol recognizes the following options and arguments to manage the policy table:
-a prefix[/prefixlen] precedence label
Add or update an entry in the kernel policy table. The prefix argument is expressed in
the form of an IPv6 address. IPv4 prefixes can be specified using the IPv4-mapped IPv6
address format. The low-order bits of the prefix should be set to zero. The prefixlen argu-
ment should be a value from 0 to 128. If prefixlen is not specified, it will be set to 64 by
default. The precedence and label arguments should be integer values in the range 0 to
999999999. The precedence value will be used to sort destination addresses in the des-
cending order of precedence. The label value will be used to match a particular source
address prefix with a destination address prefix.
-c [policyfile]
Set the kernel policy table to contain only the policy entries specified in the configuration
file policyfile. If policyfile is not specified, the default policy configuration file
/etc/rc.config.d/ip6addrpol.conf
will be read. Each entry is specified by a
single line containing three fields: prefix/prefixlen, precedence, and label. The format of
these fields is the same as described for the
-a option. The fields are separated by white
space. Lines beginning with the pound-sign (#) are considered comments and are
ignored. For example, the content of this file can be:
# prefix/prefixlen precedence label
2ffe::/16 35 5
::ffff:0:0/96 70 4
To configure the equivalent of an empty policy table, such that all addresses are treated
equally, the contents of this file can be set to:
# prefix/prefixlen precedence label
::/0 0 0
The policy table specified in the /etc/rc.config.d/ip6addrpol.conf
file will be
loaded at system startup. If that file does not exist, or does not contain any policy
entries, the system will use the default policy table as defined in RFC 3484.
-d prefix[/prefixlen]
Delete an entry from the kernel policy table. The prefix and prefixlen arguments are the
same as described for the -a option.
-F Delete all the policy entries from the kernel policy table.
-R Restore the default policy table as defined by RFC 3484. Restoring the default policy
table this way only changes the policy table on the currently running kernel, the change
will not be persistent across reboot.
The use of the
-a, -c, -d, -F and -R options requires superuser privilege.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1