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

Table Of Contents
To configure a secondary interface with an anycast address, enter:
ifconfig lan0:2 inet6 2001:db8::6 anycast
To add a default IPv6 route, enter:
route inet6 add net default 2001:db8::1
To create an IP6-in-IP tunnel, enter:
ifconfig iptu0 inet6 tunnel ip6inip tsrc 192.1.1.1 tdst 192.2.2.2 up
To create a “6to4” tunnel, enter:
ifconfig iptu0 inet6 tunnel 6to4 2002:f0e:8cc::1 tsrc 15.13.1.2 up
NOTE: Remember that configuration using ifconfig and route is ephemeral, and
not maintained after a system reboot.
Configurable Policy Table for Default Address Selection for IPv6
The source address selection and destination address ordering are based on the default
policies specified by the default address selection for IPv6 (RFC 3484). You can override
the default policies and configure new policies using the ip6addrpol command and
the /etc/rc.config.d/ip6addrpol.conf configuration file.
Configuring Policies Using the ip6addrpol.conf File
Address selection policies are loaded from the ip6addrpol.conf file at boot time. If
the configuration file does not exist or is empty, the default policy table as defined in
RFC 3484 is automatically loaded.
Each entry in the configuration file must contain the following fields:
Prefix/Prefixlen
Precedence
Label
Prefix must be an IPv6 address prefix. You can specify IPv4 prefixes using the
IPv4-mapped IPv6 address format.
Prefixlen represents the prefix length and must be a value from 0 to 128.
Precedence is used for sorting destination addresses. Precedence must be an integer
value in the range 0 to 999999999. The precedence value is used to sort the destination
addresses in the descending order of precedence.
Label allows policies that prefer a particular source address prefix for use with a
destination address prefix. The algorithms used to choose the source address prefer to
use a source address S with a destination address D if Label(S) = Label(D). Label
must be an integer value in the range 0 to 999999999. The label value is used to match
a particular source address prefix with a destination address prefix.
30 Configuration