ifconfig.1m (2011 09)
i
ifconfig(1M) ifconfig(1M)
# ifconfig iptu0 inet6 tunnel ip6inip fe80::1 fe80::2 \
tsrc 10.10.1.1 tdst 10.10.2.2 up
Secondary addresses to the tunnel interfaces can be assigned as shown below:
# ifconfig iptu0:1 inet6 2ffe::1 3ffe::1 up
IP-in-IP6 tunnel interface configuration
"IP-in-IP6" tunnel configuration allows transmission of IPv4 packets encapsulated in an IPv6 header.
"IP-in-IP6" tunnels can be configured as shown below:
ifconfig ip6tu0 inet tunnel ipinip6 source_IPv4_address
\
destination_IPv4_address
tsrc
tunnel_local_IPv6_address
\
tdst tunnel_remote_IPv6_address
up
The tunnel_local_IPv6_address should be an unicast address configured on the local system, and
tunnel_remote_IPv6_address should be an unicast address configured on the remote system. The tunnel
configuration should be done on both the local and the remote systems.
Example. On the local system:
# ifconfig ip6tu0 inet tunnel ipinip6 10.10.1.1 10.10.2.2 \
tsrc 2ffe::1 tdst 3ffe::1 up
Example. On the remote system:
# ifconfig ip6tu0 inet tunnel ipinip6 10.10.2.2 10.10.1.1 \
tsrc 3ffe::1 tdst 2ffe::1 up
IP6-in-IP6 tunnel interface configuration
"IP6-in-IP6" tunnel configuration allows transmission of IPv6 packets encapsulated in an IPv6 header.
"IP6-in-IP6" tunnels can be configured as shown below:
ifconfig ip6tu0 inet6 tunnel ip6inip6 source_link-local_address
\
destination_link-local_address
tsrc tunnel_local_IPv6_address
\
tdst tunnel_remote_IPv6_address
up
The tunnel_local_IPv6_address should be an unicast address configured on the local system, and
tunnel_remote_IPv6_address should be an unicast address configured on the remote system. The tunnel
configuration should be done on both the local and the remote systems.
Example. On the local system:
# ifconfig ip6tu1 inet6 tunnel ip6inip6 fe80::1 fe80::2 \
tsrc 2ffe::1 tdst 3ffe::1 up
Example. On the remote system:
# ifconfig ip6tu1 inet6 tunnel ip6inip6 fe80::2 fe80::1 \
tsrc 3ffe::1 tdst 2ffe::1 up
6to4 tunnel interface configuration
6to4 tunnel configuration allows automatic tunneling of IPv6 packets encapsulated in an IPv4 header
over an IPv4 infrastructure. 6to4 tunnel interface can be configured as shown below:
ifconfig iptu1 inet6 tunnel 6to4 [6to4_primary_address] \
tsrc tunnel_local_IPv4_address up
The tunnel_local_IPv4_address should be a global IPv4 address. The primary address of the
6to4 inter-
face should be a
6to4 address and not a link-local address. The 6to4 primary address is optional, if it
is not specified, a 6to4 address will be autoconfigured based on tunnel_local_IPv4_address.
Example:
# ifconfig iptu1 inet6 tunnel 6to4 tsrc 15.13.136.204 up
A 6to4 address can be manually assigned as shown below:
# ifconfig iptu1 inet6 tunnel 6to4 2002:f0d:88cc::1 \
tsrc 15.13.136.204 up
To advertise a 6to4 prefix, see rtradvd (1M).
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: September 2011