HP-UX IPv6 Transport Administrator Guide HP-UX 11i v3 (5992-6426, May 2013)

Table Of Contents
Following is a sample ip6addrpol.conf file to configure higher precedence for IPv4
addresses over IPv6:
# Prefix/Prefixlen Precedence Label
::1/128 50 0
::ffff:0.0.0.0/96 60 4
2002::/16 30 2
::/0 40 1
For more information, see the /etc/rc.config.d/ip6addrpol.conf configuration
file.
Activating the ip6addrpol.conf File
You can activate the ip6addrpol.conf configuration in either of the following ways:
Rebooting the system.
Executing the ip6addrpol command with the -c option.
Configuring Policies Using the ip6addrpol Command
You can use the ip6addrpol command to display the policy table or to add, delete,
and update entries in the policy table.
For example, following is the command to configure higher precedence for IPv4 addresses
over IPv6:
ip6addrpol -a ::ffff:0.0.0.0/96 60 4
For more information on the ip6addrpol command, ip6addrpol(1M).
NOTE: The changes made using the ip6addrpol command are ephemeral and not
maintained after a system reboot.
Host Names and IPv6 Addresses
The following section provides additional information on how addressing works on HP-UX
11i v3 IPv6.
Creating the /etc/hosts File
It is generally recommended to add IPv6 addresses (known as AAAA records) to a DNS
Name Server only when the following conditions are true:
The IPv6 address is assigned to the interface on the node
The address is configured on the interface
The interface is on a link which connects to the IPv6 infrastructure
HP recommends beginning with IPv6 addresses and host names in the /etc/hosts file
on a development network; then adding IPv6 addresses and hosts to a Domain Name
Service when moving IPv6 to a production backbone network.
Host Names and IPv6 Addresses 31