HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)

i
ifconfig(1M) ifconfig(1M)
Tunnel interface configuration:
HP-UX supports "IP6-in-IP" configured tunnels as specified in RFC 2893, "IP-in-IP6" and "IP6-in-IP6"
configured tunnels as specified in RFC 2473, and
6to4 automatic tunnel as specified in RFC 3056.
IP6-in-IP tunnel interface configuration:
"IP6-in-IP" configured tunnel allows dual stack IPv6/IPv4 nodes to communicate over an IPv4 infrastruc-
ture, by encapsulating the IPv6 packet inside an IPv4 header. The tunnel configuration must be done on
both the local (tunnel entry-point) system and the remote (tunnel exit-point) system. "IP6-in-IP" tunnels
can be configured as shown below:
ifconfig iptu0 inet6 tunnel ip6inip [source_link-local_address]
\
[destination_link-local_address]
tsrc tunnel_local_IPv4_address
\
tdst tunnel_remote_IPv4_address
up
The source and destination link-local IPv6 addresses of the tunnel interface are optional; if they are not
specified, they will be autoconfigured based on the tunnel_local_IPv4_address and
tunnel_remote_IPv4_address, respectively.
The tunnel_local_IPv4_address should be an address configured on the local system, and
tunnel_remote_IPv4_address should be an address configured on the remote system.
Example. On the local system:
# ifconfig iptu0 inet6 tunnel ip6inip tsrc 192.168.1.1 \
tdst 192.168.2.2 up
Example. On the remote system:
# ifconfig iptu0 inet6 tunnel ip6inip tsrc 192.168.2.2 \
tdst 192.168.1.1 up
If multiple tunnels are configured with the same tunnel_local_IPv4_address, autoconfiguration of only
the first tunnel will succeed. Other tunnels should be manually configured with link-local addresses.
Manual link-local addresses can be assigned to the tunnel interface as shown below:
# 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 address configured on the local system, and
tunnel_remote_IPv6_address should be an 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
HP-UX 11i Version 2: September 2004 5 Hewlett-Packard Company Section 1M303