Addresses on IPv6 interfaces, unlike
IPv4 interfaces, can be configured without manual intervention.
With stateless address autoconfiguration, the primary interface
(lanX:0) is automatically assigned a link-local IPv6 address
by the system when the interface is configured (marked “up”). This
link-local IPv6 address is generated by prepending a fixed local address
prefix (fe80::) to a token derived from the MAC address. (The address
is verified to be unique.) This allows each IPv6 interface to have at
least one source address that can be used by Neighbor Discovery.
If an IPv6 router on the network advertises network prefixes
in router advertisements, IPv6 derives secondary IPv6 addresses
based on the network interface identifier of the primary interface
and on the network prefixes advertised. IPv6 assigns this address
to a secondary interface for the network interface.
Refer to “Stateless
Address Autoconfiguration” in Chapter 6 “ IPv6
Addressing and Concepts” of this guide, and the
ifconfig(1M) man page for more information.
Configuring
a Primary Interface |
 |
To configure a primary interface, edit the IPV6_INTERFACE[0] statement in the /etc/rc.config.d/netconf-ipv6 file to specify the interface name, such as lan0. The
interface name must be the name of the physical interface card,
as reported by lanscan.
A sample netconf-ipv6 file entry is as follows:
IPV6_INTERFACE[0]="lan0" IPV6_INTERFACE_STATE[0]="up" |
Again, in the above example, the address is automatically
assigned. Note that autoconfiguration is not mandatory, manual specification
of the address is also allowed and is described below.
Configuring
Secondary Interfaces |
 |
If an IPv6 router that advertises network prefixes resides
on the LAN, a secondary interface is automatically configured after
the primary interface comes up. IPv6 builds additional secondary
interfaces for each network prefix advertised.
If you manually configure a link-local address for the primary
interface, then autoconfigured secondary addresses are derived from
the interface identifier part of the manually configured address
for the primary interface.
For example, if an IPv6 router on the LAN advertises two prefixes
(such as 3ffe::/64 and 2000::/64), HP-UX 11i IPv6, bundled as part of TOUR 2.0,
configures two secondary interfaces.
Configuring
Route Information |
 |
HP-UX 11i v1 IPv6, bundled as part of TOUR 2.0, automatically configures
network routes based on the prefix information received from an
IPv6 router.
HP-UX 11i v1 IPv6, bundled as part of TOUR 2.0, automatically adds
the router to its list of default gateways if the router advertises
a non-zero router-lifetime value.